From d145c38d85c1962e4564d6730695dacfa3116ccf Mon Sep 17 00:00:00 2001
From: llj <132905093+newwwwwwtree@users.noreply.github.com>
Date: 星期一, 03 十一月 2025 10:46:39 +0800
Subject: [PATCH] 供应商平台,添加新增送货物料信息的保存权限、删除权限,条码档案添加删除权限

---
 WebAPI/Controllers/MaterialHandingController.cs |   19 +++++++++++++++++--
 WebAPI/Controllers/BarCodeController.cs         |   10 +++++++++-
 2 files changed, 26 insertions(+), 3 deletions(-)

diff --git a/WebAPI/Controllers/BarCodeController.cs b/WebAPI/Controllers/BarCodeController.cs
index b1c62b2..1304b08 100644
--- a/WebAPI/Controllers/BarCodeController.cs
+++ b/WebAPI/Controllers/BarCodeController.cs
@@ -2181,6 +2181,7 @@
         public object DeltetBarCodeBill([FromBody] JObject oData)
         {
             SQLHelper.ClsCN oCN = new SQLHelper.ClsCN();
+
             try
             {
                 var _value = oData["oData"].ToString();
@@ -2189,7 +2190,14 @@
                 string HInter = sArray[0].ToString();
                 string HInterID = HInter.Replace("\"", "");
                 string HUserName = sArray[1].ToString();
-
+                if (!DBUtility.ClsPub.Security_Log("Gy_SupMaterPack_Delete", 1, false, HUserName))
+                {
+                    objJsonResult.code = "0";
+                    objJsonResult.count = 0;
+                    objJsonResult.Message = "鏃犱繚瀛樻潈闄愶紒";
+                    objJsonResult.data = null;
+                    return objJsonResult;
+                }
                 string FCusName = oSystemParameter.GetSingleSystemParameter("WMS_CampanyName", ref DBUtility.ClsPub.sExeReturnInfo);
                 string sql = "select HItemID,HBarCode,HSourceInterID,HSourceEntryID,HQty,HBarCodeType,HSourceBillType from Gy_BarCodeBill where  HItemID in(" + HInterID + ") ";
                 //LogService.Write("鍒犻櫎sql:" + sql);
diff --git a/WebAPI/Controllers/MaterialHandingController.cs b/WebAPI/Controllers/MaterialHandingController.cs
index 98a85c5..a6cea28 100644
--- a/WebAPI/Controllers/MaterialHandingController.cs
+++ b/WebAPI/Controllers/MaterialHandingController.cs
@@ -35,6 +35,14 @@
                 string VsWhere = sWhere;
                 SQLHelper.ClsCN oCn = new SQLHelper.ClsCN();
                 DataSet ds;
+                if (!DBUtility.ClsPub.Security_Log("Gy_SupMaterPack_Query", 1, false, user))
+                {
+                    objJsonResult.code = "0";
+                    objJsonResult.count = 0;
+                    objJsonResult.Message = "鏃犱繚瀛樻潈闄愶紒";
+                    objJsonResult.data = null;
+                    return objJsonResult;
+                }
                 //鍏朵粬杩囨护
                 //string sql = " where 1 = 1 " + sqlWhere;
                 ////杞崲鐗规畩瀛楃
@@ -576,8 +584,15 @@
                         objJsonResult.data = null;
                         return objJsonResult;
                     }
-
-                    oCN.BeginTran();
+                if (!DBUtility.ClsPub.Security_Log("Gy_SupMaterPack_Delete", 1, false, user))
+                {
+                    objJsonResult.code = "0";
+                    objJsonResult.count = 0;
+                    objJsonResult.Message = "鏃犱繚瀛樻潈闄愶紒";
+                    objJsonResult.data = null;
+                    return objJsonResult;
+                }
+                oCN.BeginTran();
 
                    // oCN.RunProc("delete from Gy_UserMaterRelation where HInterID = " + HItemID);
                     oCN.RunProc("delete from Gy_UserMaterRelation where HItemID='" + HItemID + "'");

--
Gitblit v1.9.1