using System.Data; using System.Collections; using Estsh.Core.Models; using Estsh.Core.Repository.IRepositories; using Estsh.Core.Services.IServices; using Estsh.Core.Model.Result; using Estsh.Core.Model.ExcelModel; /*************************************************************************************************** * * 更新人:sitong.dong * 描述:采购日程单维护 * 修改时间:2022.06.22 * 修改日志:系统迭代升级 * **************************************************************************************************/ namespace Estsh.Core.Services { public class PurchaseScheduleSingleService : BaseService, IPurchaseScheduleSingleService { private readonly IPurchaseScheduleSingleRepository repository; public PurchaseScheduleSingleService(IPurchaseScheduleSingleRepository _repository) : base(_repository) { repository = _repository; } /// /// 根据查询条件得出日程单收货数据结果集 /// /// 查询条件 /// 符合条件的结果集 public Hashtable GetQuery(string aWhere) { return repository.GetQuery(aWhere); } public List getTableListByPage(string aWhere) { return repository.getTableListByPage(aWhere); } /// /// 根据单号和车型查询库存明细 /// /// 单据号 /// 车型名称 /// public Hashtable GetStockDetail(string orderNo, string typeName) { return repository.GetStockDetail(orderNo, typeName); } /// /// 获取所有的零件号 /// /// public List GetPart(string part_no) { return repository.GetPart(part_no); } /// /// 获取所有的供应商名称 /// /// public List GetVendor(string key) { return repository.GetVendor(key); } /// /// 获取所有的厂区名称 /// /// public List GetFactory() { return repository.GetFactory(); } /// /// 获取所有的车型名称 /// /// public List GetType() { return repository.GetType(); } /// /// 更新日程收获数据的is_close字段 /// /// 编号 /// public bool UpdateIsClose(string ruid) { return repository.UpdateIsClose(ruid); } /// ///更改可用状态 /// /// true or false /// 当前行 /// public bool ChangeDetailStatus(bool status, DataRow dr) { return repository.ChangeDetailStatus(status, dr); } public bool DeleteDetail(DataRow dr) { return repository.DeleteDetail(dr); } /// /// 获取采购订单关闭的密码 /// /// 密码 public string GetSysBase() { return repository.GetSysBase(); } } }