From 639ea7256f10697d19c19cc878e999bcb7b1e6a1 Mon Sep 17 00:00:00 2001
From: zrg <z1873@LAPTOP-EAVL132E>
Date: 星期一, 09 三月 2026 22:53:49 +0800
Subject: [PATCH] 1

---
 WebAPI/Controllers/JHGL/Gy_MaterialTechParamBillController.cs |   55 +++++++++++++++++++++++++++++++++++++++++++++++++++----
 1 files changed, 51 insertions(+), 4 deletions(-)

diff --git a/WebAPI/Controllers/JHGL/Gy_MaterialTechParamBillController.cs b/WebAPI/Controllers/JHGL/Gy_MaterialTechParamBillController.cs
index 301c267..2a9e0d1 100644
--- a/WebAPI/Controllers/JHGL/Gy_MaterialTechParamBillController.cs
+++ b/WebAPI/Controllers/JHGL/Gy_MaterialTechParamBillController.cs
@@ -268,7 +268,7 @@
                 List<DataTable> tableList = new List<DataTable>();
 
                 //鏌ョ湅鏉冮檺
-                if (!DBUtility.ClsPub.Security_Log("Gy_MaterialTechParamBillMain_Edit", 1, false, User))
+                if (!DBUtility.ClsPub.Security_Log("Gy_MaterialTechParamBillMain_Query", 1, false, User))
                 {
                     objJsonResult.code = "0";
                     objJsonResult.count = 0;
@@ -716,16 +716,16 @@
         }
         #endregion
 
-        #region 瀹夌伅閫愮骇鍛煎彨瑙勫垯  浣滃簾/鍙嶄綔搴�
+        #region 浜у搧宸ヨ壓鍙傛暟娓呭崟鍒楄〃  浣滃簾/鍙嶄綔搴�
         /// <summary>
         /// </summary>
         /// <param name="HInterID">鍗曟嵁ID</param>
         /// <param name="IsAudit">浣滃簾(0),鍙嶄綔搴�(1)</param>
         /// <param name="CurUserName">浣滃簾浜�</param>
         /// <returns></returns>
-        [Route("Gy_MaterialTechParamBill/DeleteGy_MaterialTechParamBill")]
+        [Route("Gy_MaterialTechParamBill/DropGy_MaterialTechParamBill")]
         [HttpGet]
-        public object DeleteGy_MaterialTechParamBill(int HInterID, int IsAudit, string CurUserName)
+        public object DropGy_MaterialTechParamBill(int HInterID, int IsAudit, string CurUserName)
         {
             string ModRightNameCheck = "Gy_MaterialTechParamBillMain_Delete";
             DBUtility.ClsPub.CurUserName = CurUserName;
@@ -1380,5 +1380,52 @@
         #endregion
         #endregion
 
+        #region 浜у搧宸ヨ壓鍙傛暟娓呭崟 鏇存柊鐩稿悓鐗╂枡+妯″叿鐨勪笂涓嬫爣鍑� 鍊�  浜х敓涓�涓柊鐗堟湰锛岃�佺殑浣滃簾
+        [Route("Gy_MaterialTechParamBill/SaveGy_MaterialTechParamBill_Update")]
+        [HttpGet]
+        public object SaveGy_MaterialTechParamBill_Update(string HInterID, string User)
+        {
+            try
+            {
+                List<DataTable> tableList = new List<DataTable>();
+
+                //鏌ョ湅鏉冮檺
+                if (!DBUtility.ClsPub.Security_Log("Gy_MaterialTechParamBillMain_Edit", 1, false, User))
+                {
+                    objJsonResult.code = "0";
+                    objJsonResult.count = 0;
+                    objJsonResult.Message = "鏃犳洿鏂版潈闄愶紒";
+                    objJsonResult.data = null;
+                    return objJsonResult;
+                }
+
+                if (HInterID == null || HInterID.Equals(""))
+                {
+                    objJsonResult.code = "0";
+                    objJsonResult.count = 0;
+                    objJsonResult.Message = "HInterID涓嶈兘涓虹┖锛�";
+                    objJsonResult.data = null;
+                    return objJsonResult;
+                }
+
+                ds = oCN.RunProcReturn("exec h_p_Gy_MaterialTechParamBillMain_Insert  '"+HInterID+"','"+User+"' ", "h_p_Gy_MaterialTechParamBillMain_Insert");
+
+                objJsonResult.code = "1";
+                objJsonResult.count = 1;
+                objJsonResult.Message = "鏇存柊鎴愬姛";
+                objJsonResult.data = null;
+                return objJsonResult;
+            }
+            catch (Exception e)
+            {
+                objJsonResult.code = "0";
+                objJsonResult.count = 0;
+                objJsonResult.Message = "Exception锛�" + e.ToString();
+                objJsonResult.data = null;
+                return objJsonResult;
+            }
+        }
+        #endregion
+
     }
 }
\ No newline at end of file

--
Gitblit v1.9.1