| | |
| | | } |
| | | } |
| | | |
| | | if (outboundOrder.Details.All(x => x.OrderDetailStatus == (int)OrderDetailStatusEnum.Over) && !allocatInfo.Any()) |
| | | { |
| | | outboundOrder.OrderStatus = (int)InOrderStatusEnum.鍏ュ簱瀹屾垚; |
| | | _outboundOrderService.UpdateData(outboundOrder); |
| | | } |
| | | |
| | | // 7. 鍥炶皟MES |
| | | string Operator = outboundOrder.Modifier; |
| | | HttpResponseResult<MesResponseDTO> httpResponseResult = new HttpResponseResult<MesResponseDTO>(); |
| | |
| | | await Db.Deleteable(task).ExecuteCommandAsync(); |
| | | } |
| | | Dt_OutboundOrder outboundOrder = _outboundOrderService.Db.Queryable<Dt_OutboundOrder>().Where(x => x.OrderNo == stockInfo.Details.FirstOrDefault().OrderNo).Includes(x=>x.Details).First(); |
| | | |
| | | |
| | | if(outboundOrder != null) |
| | | if (outboundOrder != null) |
| | | { |
| | | foreach (var item in stockInfo.Details.Where(x => x.OrderNo == outboundOrder.OrderNo).ToList()) |
| | | { |
| | |
| | | await Db.Deleteable(task).ExecuteCommandAsync(); |
| | | } |
| | | } |
| | | } |
| | | var allocateMaterialInfos = _allocateMaterialInfo.QueryData(x => x.OrderNo == outboundOrder.OrderNo); |
| | | if (outboundOrder.Details.All(x => x.OrderDetailStatus == (int)OrderDetailStatusEnum.Over) && !allocateMaterialInfos.Any()) |
| | | { |
| | | outboundOrder.OrderStatus = (int)InOrderStatusEnum.鍏ュ簱瀹屾垚; |
| | | _outboundOrderService.UpdateData(outboundOrder); |
| | | } |
| | | } |
| | | string Operator = outboundOrder.Modifier; |
| | |
| | | { |
| | | return WebResponseContent.Instance.Error($"鏋勫缓鍥炶皟瀵硅薄澶辫触"); |
| | | } |
| | | string apiUrl = AppSettings.GetValue("AllocationFeedbackUrl"); ; |
| | | string apiUrl = AppSettings.GetValue("AllocationFeedbackUrl"); |
| | | returnDTO.ReqCode = reqCode; |
| | | returnDTO.ReqTime = reqTime; |
| | | JsonSerializerSettings settings = new JsonSerializerSettings |