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
{
///
/// 收货查询补打模块管理业务处理类
///
public class ROSerchPrintService : BaseService, IROSerchPrintService
{
private readonly IROSerchPrintRepository repository;
public ROSerchPrintService(IROSerchPrintRepository _repository) : base(_repository)
{
repository = _repository;
}
#region 收货查询补打
///
/// 根据分页条件获取列表
///
///
///
///
///
///
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;
}
///
/// 获取库位列表
///
///
///
public List getLocateList()
{
return repository.getLocateList();
}
///
/// 打印
///
///
///
public String print(String ids)
{
ids = ids.Substring(0, ids.Length - 1);
List dt = this.repository.getCartonListByRuid(ids);
if (dt == null || dt.Count == 0)
{
return "Fail";
}
else
{
//return Printer.PrintSerialNumber(dt);
return dt.Count.ToString();
}
}
#endregion
}
}