From 733c975cd8647f6d006736f1863bad731e32e6fb Mon Sep 17 00:00:00 2001
From: wangxinhui <wangxinhui@hnkhzn.com>
Date: 星期日, 26 十月 2025 17:15:52 +0800
Subject: [PATCH] 上传最新代码,ERP接口,MES接口优化,WMS业务优化等

---
 项目代码/WMS/WMSServices/WIDESEA_External/MESService/InvokeMESService.cs |   66 ++++++++++++++++++++++++++++++++
 1 files changed, 65 insertions(+), 1 deletions(-)

diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSServices/WIDESEA_External/MESService/InvokeMESService.cs" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSServices/WIDESEA_External/MESService/InvokeMESService.cs"
index e7c3177..2537e9b 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSServices/WIDESEA_External/MESService/InvokeMESService.cs"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSServices/WIDESEA_External/MESService/InvokeMESService.cs"
@@ -28,6 +28,70 @@
         {
             ContractResolver = new CamelCasePropertyNamesContractResolver()
         };
-        
+        /// <summary>
+        /// MES閰嶉�佸嚭鍙戦�氱煡
+        /// </summary>
+        /// <param name="mESDispatchModel"></param>
+        /// <returns></returns>
+        public string MESDispatchUp(MESDispatchModel mESDispatchModel)
+        {
+            Dt_ApiInfo apiInfo = _apiInfoRepository.QueryFirst(x => x.ApiCode == APIEnum.MESDispatchUp.ToString());
+
+            string response = HttpMesHelper.Post(apiInfo.ApiAddress, JsonConvert.SerializeObject(mESDispatchModel));
+
+            return response;
+        }
+        /// <summary>
+        /// MES閰嶉�佸埌杈鹃�氱煡
+        /// </summary>
+        /// <param name="mESDeliveryModel"></param>
+        /// <returns></returns>
+        public string MESDelivery(MESDeliveryModel mESDeliveryModel)
+        {
+            Dt_ApiInfo apiInfo = _apiInfoRepository.QueryFirst(x => x.ApiCode == APIEnum.MESDelivery.ToString());
+
+            string response = HttpMesHelper.Post(apiInfo.ApiAddress, JsonConvert.SerializeObject(mESDeliveryModel));
+
+            return response;
+        }
+        /// <summary>
+        /// MES閫�鏂欑┖鎵樻帴鏀堕�氱煡
+        /// </summary>
+        /// <param name="mESRecepNoticeModel"></param>
+        /// <returns></returns>
+        public string MESRecepNotice(MESRecepNoticeModel mESRecepNoticeModel)
+        {
+            Dt_ApiInfo apiInfo = _apiInfoRepository.QueryFirst(x => x.ApiCode == APIEnum.MESRecepNotice.ToString());
+
+            string response = HttpMesHelper.Post(apiInfo.ApiAddress, JsonConvert.SerializeObject(mESRecepNoticeModel));
+            
+            return response;
+        }
+        /// <summary>
+        /// MES灏忚溅鍒拌揪閫氱煡
+        /// </summary>
+        /// <param name="mESAvgArriveNoticeModel"></param>
+        /// <returns></returns>
+        public string MESAvgArriveNotice(MESAvgArriveNoticeModel mESAvgArriveNoticeModel)
+        {
+            Dt_ApiInfo apiInfo = _apiInfoRepository.QueryFirst(x => x.ApiCode == APIEnum.MESAvgArriveNotice.ToString());
+
+            string response = HttpMesHelper.Post(apiInfo.ApiAddress, JsonConvert.SerializeObject(mESAvgArriveNoticeModel));
+
+            return response;
+        }
+        /// <summary>
+        /// MES浜ч噺鍥炰紶
+        /// </summary>
+        /// <param name="boxCode">鎴愬搧绠辩爜</param>
+        /// <returns></returns>
+        public string MESBoxCodeNotice(string boxCode)
+        {
+            Dt_ApiInfo apiInfo = _apiInfoRepository.QueryFirst(x => x.ApiCode == APIEnum.MESBoxCodeNotice.ToString());
+
+            string response = HttpMesHelper.Post(apiInfo.ApiAddress+ "?boxCode="+boxCode);
+
+            return response;
+        }
     }
 }

--
Gitblit v1.9.3