| | |
| | | using Microsoft.AspNetCore.Mvc; |
| | | using Newtonsoft.Json; |
| | | using System.Threading.Tasks; |
| | | using WIDESEA_Common.OrderEnum; |
| | | using WIDESEA_Core; |
| | | using WIDESEA_Core.Attributes; |
| | | using WIDESEA_Core.BaseController; |
| | | using WIDESEA_Core.CodeConfigEnum; |
| | | using WIDESEA_Core.Helper; |
| | | using WIDESEA_DTO.Inbound; |
| | | using WIDESEA_DTO.Outbound; |
| | | using WIDESEA_IOutboundService; |
| | |
| | | BarcodeMoveQty=detailitem.moveQty, |
| | | BarcodeQty=detailitem.qty, |
| | | BarcodeUnit=detailitem.unit, |
| | | OrderQuantity = detailitem.qty |
| | | OrderQuantity = detailitem.qty, |
| | | Remark = detailitem.remark??"", |
| | | }; |
| | | dt_OutboundOrder.Details.Add(inboundOrderDetail); |
| | | } |
| | |
| | | dt_OutboundOrder.BusinessType = model.business_type; |
| | | dt_OutboundOrder.IsBatch = model.isBatch; |
| | | dt_OutboundOrder.FactoryArea = model.factoryArea; |
| | | dt_OutboundOrder.CreateType = OrderCreateTypeEnum.UpperSystemPush.ObjToInt(); |
| | | dt_OutboundOrder.DepartmentName = model.lineName??""; |
| | | |
| | | var content =await Service.ReceiveOutboundOrder(dt_OutboundOrder, model.operationType); |
| | | |
| | |
| | | } |
| | | return WebResponseContent.Instance.OK(null, order); |
| | | } |
| | | |
| | | [HttpGet, Route("GetOrderNoByPalletCode"), AllowAnonymous, MethodParamsValidate] |
| | | public WebResponseContent GetOrderNoByPalletCode(string palletCode) |
| | | { |
| | | return Service.GetOrderNoByPalletCode(palletCode); |
| | | } |
| | | } |
| | | } |