From 7e7317ada7c9ec536a475f22c4d3aa548e6bb3fb Mon Sep 17 00:00:00 2001 From: 杨乐 <yang.le.192@qq.com> Date: 星期五, 28 一月 2022 10:22:59 +0800 Subject: [PATCH] 2658,2659 权限编辑 --- WebAPI/Controllers/BaseSet/Gy_MaterialController.cs | 24 +++++++++++++++++------- 1 files changed, 17 insertions(+), 7 deletions(-) diff --git a/WebAPI/Controllers/BaseSet/Gy_MaterialController.cs b/WebAPI/Controllers/BaseSet/Gy_MaterialController.cs index 41081e7..d1a9256 100644 --- a/WebAPI/Controllers/BaseSet/Gy_MaterialController.cs +++ b/WebAPI/Controllers/BaseSet/Gy_MaterialController.cs @@ -283,7 +283,7 @@ try { //鍒犻櫎鏉冮檺 - //if (!DBUtility.ClsPub.Security_Log(ModRightNameCheck, 1, true, CurUserName)) + //if (!DBUtility.ClsPub.Security_Log(ModRightNameCheck, 1, false, CurUserName)) //{ // objJsonResult.code = "0"; // objJsonResult.count = 0; @@ -353,7 +353,7 @@ { try { - if (!DBUtility.ClsPub.Security_Log(ModRightNameSelect, 1, true, user)) + if (!DBUtility.ClsPub.Security_Log(ModRightNameSelect, 1, false, user)) { objJsonResult.code = "0"; objJsonResult.count = 0; @@ -457,10 +457,20 @@ /// </summary> [Route("Gy_BarCodeBillList/GetBarCodeBillList")] [HttpGet] - public object GetBarCodeBillList(string sWhere) + public object GetBarCodeBillList(string sWhere,string user) { try { + //鍒ゆ柇鏄惁鏈夋煡璇㈡潈闄� + if (!DBUtility.ClsPub.Security_Log("Gy_BarCodeBill_Query", 1, false, user)) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "鏃犳潈闄愭煡璇�!"; + objJsonResult.data = null; + return objJsonResult; + } + if (sWhere == null || sWhere.Equals("")) { ds = oCN.RunProcReturn("select * from h_v_IF_BarCodeBillList " + sWhere + "order by 鏃ユ湡 desc", "h_v_IF_BarCodeBillList"); @@ -517,7 +527,7 @@ string msg4 = sArray[2].ToString();//褰撳墠浜� oCN.BeginTran(); - if (!DBUtility.ClsPub.Security_Log(msg3, 1, true, msg4)) + if (!DBUtility.ClsPub.Security_Log(msg3, 1, false, msg4)) { objJsonResult.code = "0"; objJsonResult.count = 0; @@ -675,7 +685,7 @@ string msg4 = sArray[2].ToString();//褰撳墠浜� try { - if (!DBUtility.ClsPub.Security_Log(msg3, 1, true, msg4)) + if (!DBUtility.ClsPub.Security_Log(msg3, 1, false, msg4)) { objJsonResult.code = "0"; objJsonResult.count = 0; @@ -855,7 +865,7 @@ DAL.ClsGy_MouldFile oBill = new DAL.ClsGy_MouldFile(); try { - if (!DBUtility.ClsPub.Security_Log(ModRightNameDelete, 1, true, user)) + if (!DBUtility.ClsPub.Security_Log(ModRightNameDelete, 1, false, user)) { objJsonResult.code = "0"; objJsonResult.count = 0; @@ -972,7 +982,7 @@ try { //瀹℃牳鏉冮檺 - if (!DBUtility.ClsPub.Security_Log(ModRightNameCheck, 1, true, CurUserName)) + if (!DBUtility.ClsPub.Security_Log(ModRightNameCheck, 1, false, CurUserName)) { objJsonResult.code = "0"; objJsonResult.count = 0; -- Gitblit v1.9.1