From 4b02d54422910170d2cedabf6866b6e6bec20dac Mon Sep 17 00:00:00 2001
From: schangxiang@126.com <schangxiang@126.com>
Date: 周四, 18 9月 2025 13:12:46 +0800
Subject: [PATCH] 优化

---
 siemenswmssditcode/wmsService/wcftest/BussinessExtension/SAP/SAPHelper.cs |   24 +++++++++++++++++-------
 1 files changed, 17 insertions(+), 7 deletions(-)

diff --git a/siemenswmssditcode/wmsService/wcftest/BussinessExtension/SAP/SAPHelper.cs b/siemenswmssditcode/wmsService/wcftest/BussinessExtension/SAP/SAPHelper.cs
index ad11696..8c10bc1 100644
--- a/siemenswmssditcode/wmsService/wcftest/BussinessExtension/SAP/SAPHelper.cs
+++ b/siemenswmssditcode/wmsService/wcftest/BussinessExtension/SAP/SAPHelper.cs
@@ -29,7 +29,7 @@
         {
             string msg = "";
             string result = "";
-            
+
             // return form.textBox7.Text.Trim();
             var logTitle = GetSapLog("moveStockConfirm", "绉诲簱纭", moveList);
             try
@@ -37,7 +37,7 @@
                 Log4NetHelper.WriteInfoLog(LogType.SAPService, "寮�濮嬫帹閫�" + logTitle);
                 MovMaterialEntity[] results = JsonConvert.DeserializeObject<MovMaterialEntity[]>(moveList);
                 //ConfirmMOV
-                 result = sendSap.ConfirmMOV(results, out msg);
+                result = sendSap.ConfirmMOV(results, out msg);
 
                 if (msg == "")
                 {
@@ -73,8 +73,10 @@
             }
             catch (Exception ex)
             {
-                MovMaterialEntity[] results2 = JsonConvert.DeserializeObject<MovMaterialEntity[]>(moveList);
-                SapSendFailRecodInfoHandler.AddForMove(results2, result, msg);//澧炲姞 [EditBy shaocx,2022-02-22]
+                //澶辫触鍚庯紝涓嶅啀鎺ㄩ�侊紝鐪嬫棩蹇楀嵆鍙� 銆怑ditby shaocx,2025-09-18銆�
+                //MovMaterialEntity[] results2 = JsonConvert.DeserializeObject<MovMaterialEntity[]>(moveList);
+                //SapSendFailRecodInfoHandler.AddForMove(results2, result, msg);//澧炲姞 [EditBy shaocx,2022-02-22]
+
                 Log4NetHelper.WriteInfoLog(LogType.SAPService, "鎺ㄩ�佸紓甯�:" + logTitle + ",杩斿洖缁撴灉:" + msg + ",寮傚父:" + ex.Message);
                 Log4NetHelper.WriteErrorLog(LogType.SAPService, "鎺ㄩ�佸紓甯�:" + logTitle + ",杩斿洖缁撴灉:" + msg + ",寮傚父:" + ex.Message, ex);
                 var data = new
@@ -143,7 +145,9 @@
                 Log4NetHelper.WriteInfoLog(LogType.SAPService, "鎺ㄩ�佸紓甯�:" + logTitle + ",杩斿洖缁撴灉:" + msg + ",寮傚父:" + ex.Message);
                 Log4NetHelper.WriteErrorLog(LogType.SAPService, "鎺ㄩ�佸紓甯�:" + logTitle + ",杩斿洖缁撴灉:" + msg + ",寮傚父:" + ex.Message, ex);
 
-                SapSendFailRecodInfoHandler.AddForOutStore(results, "WMS鎶涘嚭寮傚父", "WMS鎶涘嚭寮傚父:" + ex.Message);//璁板綍澶辫触琛�
+                //澶辫触鍚庯紝涓嶅啀鎺ㄩ�侊紝鐪嬫棩蹇楀嵆鍙� 銆怑ditby shaocx,2025-09-18銆�
+                //SapSendFailRecodInfoHandler.AddForOutStore(results, "WMS鎶涘嚭寮傚父", "WMS鎶涘嚭寮傚父:" + ex.Message);//璁板綍澶辫触琛�
+
                 var data = new
                 {
                     result = false,
@@ -194,7 +198,10 @@
                 msg = "WMS寮傚父:" + ex.Message;
                 Log4NetHelper.WriteInfoLog(LogType.SAPService, "鎺ㄩ�佸紓甯�:" + logTitle + ",杩斿洖缁撴灉:" + msg + ",寮傚父:" + ex.Message);
                 Log4NetHelper.WriteErrorLog(LogType.SAPService, "鎺ㄩ�佸紓甯�:" + logTitle + ",杩斿洖缁撴灉:" + msg + ",寮傚父:" + ex.Message, ex);
-                SapSendFailRecodInfoHandler.AddForReverser(res, result, msg);//璁板綍澶辫触琛� [Editby shaocx,2025-06-13]
+
+                //澶辫触鍚庯紝涓嶅啀鎺ㄩ�侊紝鐪嬫棩蹇楀嵆鍙� 銆怑ditby shaocx,2025-09-18銆�
+                //SapSendFailRecodInfoHandler.AddForReverser(res, result, msg);//璁板綍澶辫触琛� [Editby shaocx,2025-06-13]
+
                 return msg;
             }
         }
@@ -236,7 +243,10 @@
                 msg = "WMS寮傚父:" + ex.Message;
                 Log4NetHelper.WriteInfoLog(LogType.SAPService, "鎺ㄩ�佸紓甯�:" + logTitle + ",杩斿洖缁撴灉:" + msg + ",寮傚父:" + ex.Message);
                 Log4NetHelper.WriteErrorLog(LogType.SAPService, "鎺ㄩ�佸紓甯�:" + logTitle + ",杩斿洖缁撴灉:" + msg + ",寮傚父:" + ex.Message, ex);
-                SapSendFailRecodInfoHandler.AddForSH(results, info, msg);//璁板綍澶辫触琛� [Editby shaocx,2025-06-13]
+
+                //澶辫触鍚庯紝涓嶅啀鎺ㄩ�侊紝鐪嬫棩蹇楀嵆鍙� 銆怑ditby shaocx,2025-09-18銆�
+                //SapSendFailRecodInfoHandler.AddForSH(results, info, msg);//璁板綍澶辫触琛� [Editby shaocx,2025-06-13]
+
                 return false;
             }
         }

--
Gitblit v1.9.3