| | |
| | | _stockRepository.Db.Updateable<Dt_StockInfoDetail>().SetColumns(it => new Dt_StockInfoDetail |
| | | { |
| | | Status = StockStatusEmun.鍏ュ簱瀹屾垚.ObjToInt() |
| | | }).Where(it => it.StockId == stockInfo.Id).ExecuteCommand(); |
| | | }).Where(it => it.OrderNo == inboundOrder.InboundOrderNo).ExecuteCommand(); |
| | | } |
| | | else |
| | | { |
| | |
| | | _stockRepository.Db.Updateable<Dt_StockInfoDetail>().SetColumns(it => new Dt_StockInfoDetail |
| | | { |
| | | Status = StockStatusEmun.鍏ュ簱瀹屾垚.ObjToInt() |
| | | }).Where(it => it.StockId == stockInfo.Id).ExecuteCommand(); |
| | | }).Where(it => it.OrderNo == inboundOrder.InboundOrderNo).ExecuteCommand(); |
| | | } |
| | | else |
| | | { |
| | |
| | | string reqTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"); |
| | | string requestData = string.Empty; |
| | | List<string> lineNos = new List<string>(); |
| | | if (outboundOrder.OrderStatus == OutOrderStatusEnum.鍑哄簱瀹屾垚.ObjToInt()) |
| | | Dt_AllocateMaterialInfo allocateMaterialInfo = _allocateMaterialInfo.QueryFirst(x => x.OrderNo == outboundOrder.OrderNo); |
| | | if (outboundOrder.OrderStatus == OutOrderStatusEnum.鍑哄簱瀹屾垚.ObjToInt() && outboundOrder.OrderStatus == 0 && allocateMaterialInfo == null) |
| | | { |
| | | |
| | | Dt_AllocateOrder allocateOrder = _allocateOrderRepository.QueryFirst(x => x.OrderNo == outboundOrder.OrderNo); |
| | | if (allocateOrder == null) |
| | | { |