| | |
| | | throw ex; |
| | | } |
| | | } |
| | | private static void AddRecord(dbmodel mod, OutInFlag _outInFlag, string positionName, 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 |
| | |
| | | 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(); |
| | | System.Collections.Generic.List<productStockList> productStocks = mod.productStockList.Where(a => a.stockId == stock.positionId).ToList(); |
| | | AddRecord(mod, _outInFlag, positionName, _task, remark, |
| | | productStocks, currentTaskType); |
| | | } |