From 3a6f7cb36dff0ec99edddbb53078947fcf08a47e Mon Sep 17 00:00:00 2001
From: 南骏 池 <chiffly@163.com>
Date: 星期六, 19 七月 2025 09:32:15 +0800
Subject: [PATCH] 1.用料清单变更

---
 MES.Service/service/WomcaaManager.cs |   18 +++++++++++++++++-
 MESApplication/appsettings.json      |    1 +
 2 files changed, 18 insertions(+), 1 deletions(-)

diff --git a/MES.Service/service/WomcaaManager.cs b/MES.Service/service/WomcaaManager.cs
index c5bc955..cb30102 100644
--- a/MES.Service/service/WomcaaManager.cs
+++ b/MES.Service/service/WomcaaManager.cs
@@ -68,8 +68,24 @@
             .IgnoreColumnsNull()
             .ExecuteCommand() > 0;
 
-        if (orUpdate && baOrUpdate) return true;
+        // if (orUpdate && baOrUpdate) 
+        // throw new NotImplementedException("鎻掑叆鎴栨洿鏂板け璐�");
+
+        if (orUpdate && baOrUpdate) 
+        {
+            // 璋冪敤瀛樺偍杩囩▼鏇存柊鐢ㄦ枡娓呭崟
+            db.Ado.ExecuteCommand("exec [dbo].[prc_update_womdab] @outMsg output,@outSum output,@inEdtUserGuid,@inCaaGuid",
+                new {
+                    outMsg = (string)null,  // 杈撳嚭鍙傛暟
+                    outSum = (int?)null,     // 杈撳嚭鍙傛暟
+                    inEdtUserGuid = new Guid("11111111-1111-1111-1111-111111111111"),
+                    inCaaGuid = new Guid(mesWomcaa.Guid.ToString())
+                });
+            return true;
+        }
         throw new NotImplementedException("鎻掑叆鎴栨洿鏂板け璐�");
+        
+
     }
 
     private bool UpdateData(SqlSugarScope db, Womcaa mesWomcaa,
diff --git a/MESApplication/appsettings.json b/MESApplication/appsettings.json
index 6285023..8747d92 100644
--- a/MESApplication/appsettings.json
+++ b/MESApplication/appsettings.json
@@ -11,5 +11,6 @@
     "TestErpUrl": "http://192.168.0.208:8066/WebService1.asmx/MesToErpinfoTest",
     "ProductionErpUrl": "http://192.168.0.208:8066/WebService1.asmx/MesToErpinfoTest",
     "DataBaseConn": "Data Source=192.168.1.146;Initial Catalog=GS_MES;User ID=mesUser;Password =mesUser123;Encrypt=True;TrustServerCertificate=True;"
+    //"DataBaseConn": "Data Source=192.168.1.146;Initial Catalog=TEST_MES;User ID=testUser;Password =testUser123;Encrypt=True;TrustServerCertificate=True;"
   }
 }

--
Gitblit v1.9.3