From dac1d793ad118eebf9048588a356ae0ea8a3aa95 Mon Sep 17 00:00:00 2001 From: zzr99 <1940172413@qq.com> Date: 星期四, 10 二月 2022 17:42:41 +0800 Subject: [PATCH] 基础建模每个模块的权限 --- WebAPI/Controllers/BaseSet/Gy_ProcessController.cs | 29 ++++++++++++++--------------- 1 files changed, 14 insertions(+), 15 deletions(-) diff --git a/WebAPI/Controllers/BaseSet/Gy_ProcessController.cs b/WebAPI/Controllers/BaseSet/Gy_ProcessController.cs index cfdb9b7..9c9a4a8 100644 --- a/WebAPI/Controllers/BaseSet/Gy_ProcessController.cs +++ b/WebAPI/Controllers/BaseSet/Gy_ProcessController.cs @@ -322,15 +322,15 @@ long HDeptID = list[0].HDeptID; long HProcID = list[0].HProcID; - ////鍒ゆ柇鏉冮檺 - //if (!ClsPub.Security_Log(msg5, 1, false, msg4)) - //{ - // objJsonResult.code = "0"; - // objJsonResult.count = 0; - // objJsonResult.Message = "娌℃湁鎵惧埌璇ュ姛鑳芥ā鍧楋紒"; - // objJsonResult.data = null; - // return objJsonResult; - //} + //鍒ゆ柇鏉冮檺 + if (!ClsPub.Security_Log("Gy_Process_Edit", 1, false, msg3)) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "娌℃湁鎵惧埌璇ュ姛鑳芥ā鍧楋紒"; + objJsonResult.data = null; + return objJsonResult; + } //if (!DBUtility.ClsPub.AllowNumber(HNumber)) //{ @@ -428,12 +428,12 @@ { try { - //鍒ゆ柇鏄惁鏈夋煡璇㈡潈闄� + //鏌ョ湅鏉冮檺 if (!DBUtility.ClsPub.Security_Log("Gy_Process_Query", 1, false, user)) { objJsonResult.code = "0"; objJsonResult.count = 0; - objJsonResult.Message = "鏃犳潈闄愭煡璇�!"; + objJsonResult.Message = "鏃犳煡鐪嬫潈闄愶紒"; objJsonResult.data = null; return objJsonResult; } @@ -521,19 +521,18 @@ /// <returns></returns> [Route("DeltetGy_Process")] [HttpGet] - public object DeltetGy_Process(string HItemID,string user) + public object DeltetGy_Process(string HItemID, string user) { DataSet ds; DataSet ds1; - string ModRightNameCheck = "Gy_Process_Delete"; try { //鍒犻櫎鏉冮檺 - if (!DBUtility.ClsPub.Security_Log(ModRightNameCheck, 1, false, user)) + if (!DBUtility.ClsPub.Security_Log("Gy_Process_Delete", 1, false, user)) { objJsonResult.code = "0"; objJsonResult.count = 0; - objJsonResult.Message = "鏃犳潈闄愬垹闄わ紒"; + objJsonResult.Message = "鏃犲垹闄ゆ潈闄愶紒"; objJsonResult.data = null; return objJsonResult; } -- Gitblit v1.9.1