| | |
| | | using Microsoft.AspNetCore.Mvc; |
| | | using Newtonsoft.Json; |
| | | using SqlSugar; |
| | | using SqlSugar.Extensions; |
| | | using System.Net; |
| | | using System.Threading.Tasks; |
| | | using WIDESEA_BasicService; |
| | |
| | | OutBoxbarcodes = barcode.outBoxbarcodes, |
| | | BarcodeUnit = barcode.unit, |
| | | BarcodeQty = barcode.qty, |
| | | OrderQuantity = barcode.qty |
| | | OrderQuantity = barcode.qty, |
| | | Remark = detailitem.remark??"", |
| | | |
| | | }; |
| | | |
| | | dt_InboundOrder.Details.Add(inboundOrderDetail); |
| | |
| | | OrderQuantity = detailitem.qty, |
| | | BarcodeUnit = detailitem.unit, |
| | | BarcodeQty = detailitem.qty, |
| | | MaterielName = materialName |
| | | MaterielName = materialName, |
| | | Remark = detailitem.remark??"" |
| | | }; |
| | | dt_InboundOrder.Details.Add(inboundOrderDetail); |
| | | } |
| | |
| | | dt_InboundOrder.BusinessType = item.business_type; |
| | | dt_InboundOrder.IsBatch = item.isBatch; |
| | | dt_InboundOrder.FactoryArea = item.factoryArea; |
| | | |
| | | dt_InboundOrder.CreateType = OrderCreateTypeEnum.UpperSystemPush.ObjToInt(); |
| | | dt_InboundOrder.IsTestMaterials = item.isTestMaterials; |
| | | inboundOrders.Add(dt_InboundOrder); |
| | | } |
| | | |
| | |
| | | } |
| | | |
| | | [HttpPost, Route("UndoPalletGroup"), AllowAnonymous, MethodParamsValidate] |
| | | public WebResponseContent UndoPalletGroup(string palletCode,string barcode="") |
| | | public WebResponseContent UndoPalletGroup(string code) |
| | | { |
| | | return Service.UndoPalletGroup(palletCode,barcode); |
| | | return Service.UndoPalletGroup(code); |
| | | } |
| | | /// <summary> |
| | | /// |
| | |
| | | return await _invokeMESService.BatchOrderFeedbackToMes(request.orderNos, request.inout); |
| | | } |
| | | |
| | | |
| | | [HttpPost, Route("HandCloseOrder"), AllowAnonymous, MethodParamsValidate] |
| | | public WebResponseContent HandCloseOrder(List<string> orderIds) |
| | | { |
| | | return Service.HandCloseOrder(orderIds); |
| | | } |
| | | |
| | | [HttpPost, Route("GetLocationType"), AllowAnonymous, MethodParamsValidate] |
| | | public WebResponseContent GetLocationType(string code) |
| | | { |
| | | return Service.GetLocationType(code); |
| | | } |
| | | } |
| | | } |