| | |
| | | switch (task.TaskType) |
| | | { |
| | | case (int)TaskTypeEnum.EmptyProductBack: |
| | | EmptyProBackCompleted(task); |
| | | content = EmptyProBackCompleted(task); |
| | | break; |
| | | case (int)TaskTypeEnum.InProduct: |
| | | content = InProCompleted(task); |
| | |
| | | _inboundRepository.MesProInOrderDetailRepository.UpdateData(mesProInOrder.Details); |
| | | _recordService.LocationStatusChangeRecordSetvice.AddLocationStatusChangeRecord(locationInfo, lastStatus, LocationStatusEnum.InStock, LocationChangeType.InboundCompleted); |
| | | _unitOfWorkManage.CommitTran(); |
| | | //涓婁紶ERP |
| | | _inboundOrderService.FeedbackProIn(mesProInOrder); |
| | | ////涓婁紶ERP |
| | | //_inboundOrderService.FeedbackProIn(mesProInOrder); |
| | | content.OK(); |
| | | } |
| | | catch (Exception ex) |
| | |
| | | } |
| | | proStockInfoDetails.ForEach(x => |
| | | { |
| | | x.OutboundQuantity = 0; |
| | | x.ProOutDetailStatus = StockStatusEmun.鍑哄簱瀹屾垚.ObjToInt(); |
| | | }); |
| | | //澶勭悊搴撳瓨鏁版嵁 |
| | |
| | | BaseDal.DeleteAndMoveIntoHty(task, App.User.UserId == 0 ? OperateTypeEnum.鑷姩瀹屾垚 : OperateTypeEnum.浜哄伐瀹屾垚); |
| | | _unitOfWorkManage.CommitTran(); |
| | | //MES鎴愬搧鍑哄簱鍚屾 |
| | | ShipmentOrderSync(MesOutSync(outProStockInfo, proOutOrderDetail)); |
| | | ShipmentOrderSync(MesOutSync(outProStockInfo, proOutOrderDetail, proStockInfoDetails)); |
| | | content.OK(); |
| | | } |
| | | catch (Exception ex) |