| | |
| | | .Where(x => x.OrderNo == stockLockInfo.OrderNo) |
| | | .Includes(x => x.Details) |
| | | .First(); |
| | | |
| | | string Operator = outboundOrder.Modifier; |
| | | if (outboundOrder != null) |
| | | { |
| | | var allocatInfo =_allocateMaterialInfo.Db.Queryable<Dt_AllocateMaterialInfo>().Where(x => x.OrderNo == outboundOrder.OrderNo).ToList(); |
| | |
| | | } |
| | | } |
| | | |
| | | 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>(); |
| | | string reqCode = Guid.NewGuid().ToString(); |
| | | string reqTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"); |
| | |
| | | } |
| | | Dt_OutboundOrder outboundOrder = _outboundOrderService.Db.Queryable<Dt_OutboundOrder>().Where(x => x.OrderNo == stockInfo.Details.FirstOrDefault().OrderNo).Includes(x=>x.Details).First(); |
| | | |
| | | if(outboundOrder != null) |
| | | string Operator = outboundOrder.Modifier; |
| | | if (outboundOrder != null) |
| | | { |
| | | foreach (var item in stockInfo.Details.Where(x => x.OrderNo == outboundOrder.OrderNo).ToList()) |
| | | { |
| | |
| | | } |
| | | } |
| | | } |
| | | 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; |
| | | |
| | | ///鍥炶皟MES |
| | | HttpResponseResult<MesResponseDTO> httpResponseResult = new HttpResponseResult<MesResponseDTO>(); |
| | | string reqCode = Guid.NewGuid().ToString(); |
| | |
| | | { |
| | | return WebResponseContent.Instance.Error($"鏋勫缓鍥炶皟瀵硅薄澶辫触"); |
| | | } |
| | | string apiUrl = AppSettings.GetValue("AllocationFeedbackUrl"); ; |
| | | string apiUrl = AppSettings.GetValue("AllocationFeedbackUrl"); |
| | | returnDTO.ReqCode = reqCode; |
| | | returnDTO.ReqTime = reqTime; |
| | | JsonSerializerSettings settings = new JsonSerializerSettings |