| | |
| | | /// <param name="productStocks"></param> |
| | | /// <param name="currentTaskType"></param> |
| | | public static void AddRecordForPersonDelete(dbmodel mod, OutInFlag _outInFlag, string remark, |
| | | System.Collections.Generic.List<productStockList> productStocks, productStock modfiyStock) |
| | | System.Collections.Generic.List<productStockList> productStocks, productStock modfiyStock, string positionName) |
| | | { |
| | | try |
| | | { |
| | |
| | | Wms_outInStockRecord_V2_Mes log = new Wms_outInStockRecord_V2_Mes() |
| | | { |
| | | ID = Yitter.IdGenerator.YitIdHelper.NextId(), |
| | | sourcePlace = "", |
| | | sourcePlace = positionName, |
| | | toPlace = "", |
| | | containerCode = modfiyStock.containerCode, |
| | | |
| | |
| | | throw ex; |
| | | } |
| | | } |
| | | private static void AddRecord(dbmodel mod, OutInFlag _outInFlag, string sourcePlace, string toPlace, task _task, string remark, |
| | | public static void AddRecord(dbmodel mod, OutInFlag _outInFlag, string positionName, task _task, string remark, |
| | | System.Collections.Generic.List<productStockList> productStocks, taskType currentTaskType) |
| | | { |
| | | try |
| | |
| | | Wms_outInStockRecord_V2_Mes log = new Wms_outInStockRecord_V2_Mes() |
| | | { |
| | | ID = Yitter.IdGenerator.YitIdHelper.NextId(), |
| | | sourcePlace = sourcePlace, |
| | | toPlace = toPlace, |
| | | sourcePlace = positionName, |
| | | toPlace = "", |
| | | containerCode = _task.containerCode, |
| | | |
| | | LastModifier = _task.creator, |
| | |
| | | } |
| | | } |
| | | |
| | | public static void AddRecord(dbmodel mod, OutInFlag _outInFlag, string sourcePlace, string toPlace, task _task, string remark, |
| | | public static void AddRecord(dbmodel mod, OutInFlag _outInFlag, string positionName, task _task, string remark, |
| | | taskType currentTaskType) |
| | | { |
| | | var stock = mod.productStock.Where(a => a.containerCode == _task.containerCode).FirstOrDefault(); |
| | | if (stock != null) |
| | | { |
| | | System.Collections.Generic.List<productStockList> productStocks = mod.productStockList.Where(a => a.stockId == stock.stockId).ToList(); |
| | | AddRecord(mod, _outInFlag, sourcePlace, toPlace, _task, remark, |
| | | AddRecord(mod, _outInFlag, positionName, _task, remark, |
| | | productStocks, currentTaskType); |
| | | } |
| | | } |