|
|
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
|
|
|
}
|
|
|
} |