From cd78554c3da306ed8c866d971bee94457665f80c Mon Sep 17 00:00:00 2001 From: wangxinhui <wangxinhui@hnkhzn.com> Date: 星期六, 30 八月 2025 17:35:51 +0800 Subject: [PATCH] ERP一期接口 --- 项目代码/WMS/WMSServices/WIDESEA_TaskInfoService/MesProductService.cs | 40 +--------------------------------------- 1 files changed, 1 insertions(+), 39 deletions(-) diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSServices/WIDESEA_TaskInfoService/MesProductService.cs" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSServices/WIDESEA_TaskInfoService/MesProductService.cs" index 52ad0d5..2189143 100644 --- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSServices/WIDESEA_TaskInfoService/MesProductService.cs" +++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSServices/WIDESEA_TaskInfoService/MesProductService.cs" @@ -7,7 +7,6 @@ using WIDESEA_Common.StockEnum; using WIDESEA_Common.TaskEnum; using WIDESEA_Core; -using WIDESEA_DTO.MES; using WIDESEA_DTO; using WIDESEA_Model.Models; using WIDESEA_Core.Helper; @@ -26,43 +25,6 @@ { public partial class TaskService { - /// <summary> - /// WMS鍚屾鎴愬搧鍑哄簱鑷矼ES - /// </summary> - public WebResponseContent ShipmentOrderSync(MesShipmentOrderSync model) - { - WebResponseContent content = new WebResponseContent(); - try - { - Dt_ApiInfo apiInfo = _apiInfoRepository.QueryFirst(x => x.ApiCode == APIEnum.WMS_MES_ShipmentOrderSync.ToString()); - MESRoot<MesShipmentOrderSync> root = new MESRoot<MesShipmentOrderSync>() - { - From = "WMS", - DateTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"), - Content = model - }; - JsonSerializerSettings settings = new JsonSerializerSettings - { - ContractResolver = new CamelCasePropertyNamesContractResolver() - }; - string request = JsonConvert.SerializeObject(root, settings); - string response = HttpMesHelper.Post(apiInfo.ApiAddress, request); - MesResponseContent mesResponseContent = response.DeserializeObject<MesResponseContent>(); - //璋冪敤鎺ュ彛 - if (mesResponseContent.BSucc == true) - { - content.OK(mesResponseContent.StrMsg); - } - else - { - content.Error(mesResponseContent.StrMsg); - } - } - catch (Exception ex) - { - content.Error(ex.Message); - } - return content; - } + } } -- Gitblit v1.9.3