From 71dec792e53e631390781685d9adcb098f0e677b Mon Sep 17 00:00:00 2001
From: yangle <admin@YINMOU>
Date: 星期一, 23 十月 2023 13:13:30 +0800
Subject: [PATCH] 删除包装单方法

---
 WebAPI/Controllers/LMESController.cs |   30 ++++++++++++++++++++++++++++++
 1 files changed, 30 insertions(+), 0 deletions(-)

diff --git a/WebAPI/Controllers/LMESController.cs b/WebAPI/Controllers/LMESController.cs
index 6c3b6b9..c84981e 100644
--- a/WebAPI/Controllers/LMESController.cs
+++ b/WebAPI/Controllers/LMESController.cs
@@ -1099,6 +1099,36 @@
         }
 
         /// <summary>
+        /// 鍒犻櫎瀵瑰簲鐨勫寘瑁呭崟
+        /// </summary>
+        /// <param name="sWhere"></param>
+        /// <returns></returns>
+        [Route("LEMS/DelMES_ProductionLinePackagingList")]
+        [HttpGet]
+        public object DelMES_ProductionLinePackagingList(string HInterID)
+        {
+            try
+            {
+                SQLHelper.ClsCN oCN = new SQLHelper.ClsCN();
+                oCN.RunProc("Delete from Sc_PackUnionBillMain where HInterID = " + HInterID);
+                oCN.RunProc("Delete from Sc_PackUnionBillSub where HInterID = " + HInterID);
+                oCN.RunProc("Delete from KF_PonderationBillMain_Temp where HInterID = " + HInterID);
+                objJsonResult.code = "1";
+                objJsonResult.count = 1;
+                objJsonResult.Message = "鍒犻櫎鎴愬姛锛�";
+                objJsonResult.data = null;
+                return objJsonResult;
+            }
+            catch (Exception e)
+            {
+                objJsonResult.code = "0";
+                objJsonResult.count = 0;
+                objJsonResult.Message = "鍒犻櫎澶辫触锛�";
+                objJsonResult.data = e.ToString();
+                return objJsonResult;
+            }
+        }
+        /// <summary>
         /// 鎵壒娆℃潯鐮佹柟娉曪紙浜х嚎缁勮杩芥函鍗曪級--鏍规嵁鎵规鏉$爜鍒版潯鐮佹。妗堣〃涓幏鍙栨暟鎹繚瀛樺埌temp琛�
         ///鍙傛暟锛歴tring sql銆�
         ///杩斿洖鍊硷細object銆�

--
Gitblit v1.9.1