| | |
| | | using System.Data; |
| | | using MES.Service.DB; |
| | | using MES.Service.Dto.@base; |
| | | using MES.Service.Dto.service; |
| | | using MES.Service.Modes; |
| | | using MES.Service.util; |
| | | using Microsoft.Extensions.Options; |
| | | using Newtonsoft.Json; |
| | | using SqlSugar; |
| | | using DbType = System.Data.DbType; |
| | |
| | | base.GetSingle(it => it.ItemBarcode == entity.barcode); |
| | | |
| | | if (mesInvItemInCDetails == null) |
| | | throw new Exception("出现异常"); // 抛出异常以供前台处理 |
| | | throw new Exception("物料入库条码明细不存在"); // 抛出异常以供前台处理 |
| | | |
| | | var itemInId = mesInvItemInCDetails.ItemInId; |
| | | entity.id = itemInId; |
| | |
| | | |
| | | return result; |
| | | } |
| | | |
| | | |
| | | public MessageCenter MesToErpParam(WarehouseQuery query) |
| | | { |
| | | var erpParameters = ""; |
| | |
| | | title = "采购入库单" + query.billNo + "反审核"; |
| | | } |
| | | |
| | | string ErpUrl = AppsettingsUtility.Settings.TestErpUrl; |
| | | var ErpUrl = AppsettingsUtility.Settings.ProductionErpUrl; |
| | | var message = new MessageCenter |
| | | { |
| | | TableName = tableName, |
| | |
| | | Method = "POST", |
| | | Seq = 1, |
| | | Data = erpParameters, |
| | | IsMessage = 0, |
| | | ContentType = "application/x-www-form-urlencoded" |
| | | }; |
| | | return message; |