You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

78 lines
2.4 KiB
C#

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

using System.Collections;
using Estsh.Core.Models;
using Estsh.Core.Repository.IRepositories;
using Estsh.Core.Util;
using Estsh.Core.Services.IServices;
using Estsh.Core.Model.Result;
/***************************************************************************************************
*
* 更新人sitong.dong
* 描述:收货查询补打模块业务处理类
* 修改时间2022.06.22
* 修改日志:系统迭代升级
*
**************************************************************************************************/
namespace Estsh.Core.Services
{
/// <summary>
/// 收货查询补打模块管理业务处理类
/// </summary>
public class ROSerchPrintService : BaseService<SysStock>, IROSerchPrintService
{
private readonly IROSerchPrintRepository repository;
public ROSerchPrintService(IROSerchPrintRepository _repository) : base(_repository)
{
repository = _repository;
}
#region 收货查询补打
/// <summary>
/// 根据分页条件获取列表
/// </summary>
/// <param name="account"></param>
/// <param name="pager"></param>
/// <param name="direction"></param>
/// <param name="sort"></param>
/// <returns></returns>
public Hashtable getListByPage(Hashtable requestHt, Pager pager, String direction, String sort)
{
Hashtable result = new Hashtable();
result = repository.getListByPage(requestHt, pager.pageSize, pager.pageNo, direction, sort);
return result;
}
/// <summary>
/// 获取库位列表
/// </summary>
/// <param name="enumType"></param>
/// <returns></returns>
public List<KeyValueResult> getLocateList()
{
return repository.getLocateList();
}
/// <summary>
/// 打印
/// </summary>
/// <param name="ids"></param>
/// <returns></returns>
public String print(String ids)
{
ids = ids.Substring(0, ids.Length - 1);
List<SysStock> dt = this.repository.getCartonListByRuid(ids);
if (dt == null || dt.Count == 0)
{
return "Fail";
}
else
{
//return Printer.PrintSerialNumber(dt);
return dt.Count.ToString();
}
}
#endregion
}
}