using System; using System.Collections.Generic; using SlnMesnac.Model.domain; namespace SlnMesnac.Repository.service.Impl { public class WmsTaskOutServiceImpl:IWmsTaskOutService { private readonly Repository _rep; public WmsTaskOutServiceImpl(Repository rep) { _rep = rep; } /// /// 获取WMS出库记录 /// /// /// public List GetWmsTaskOutList() { try { return _rep.GetList();; } catch (Exception e) { throw new ArgumentException($"获取WMS出库记录异常:{e.Message}"); } } /// /// 通过标签唯一编码获取出库记录,获取物料信息 /// /// /// /// public WmsTaskOut GetWmsTaskOutBySerialNum(string SerialNum) { try { return _rep.GetFirst(x=>x.SerialNum == SerialNum); } catch (Exception e) { throw new ArgumentException($"通过标签唯一编码获取出库记录异常:{e.Message}"); } } } }