From ba76af92c90c52823b8140ac3be26fbf69d467bd Mon Sep 17 00:00:00 2001 From: duhe <226547893@qq.com> Date: 星期三, 18 十二月 2024 10:04:10 +0800 Subject: [PATCH] 1 --- WebAPI/Controllers/ReportPlatFormController.cs | 22 ++++++++++++++++++++++ 1 files changed, 22 insertions(+), 0 deletions(-) diff --git a/WebAPI/Controllers/ReportPlatFormController.cs b/WebAPI/Controllers/ReportPlatFormController.cs index 5a410a8..34de546 100644 --- a/WebAPI/Controllers/ReportPlatFormController.cs +++ b/WebAPI/Controllers/ReportPlatFormController.cs @@ -71,6 +71,17 @@ try { + + //缂栬緫鏉冮檺 + if (!DBUtility.ClsPub.Security_Log_second("IpadIndex_Edit", 1, false, HUserName)) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "鏂板浜х嚎澶辫触锛佹棤鏉冮檺锛�"; + objJsonResult.data = null; + return objJsonResult; + } + ds = oCN.RunProcReturn("select * from Gy_SourceRelationSet where HSourceID='" + HSourceID + "' and HUserName='" + HUserName + "'", "Gy_SourceRelationSet"); if (ds.Tables[0].Rows.Count > 0) @@ -165,6 +176,17 @@ { try { + + //缂栬緫鏉冮檺 + if (!DBUtility.ClsPub.Security_Log_second("IpadIndex_Delete", 1, false, user)) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "鍒犻櫎浜х嚎澶辫触锛佹棤鏉冮檺锛�"; + objJsonResult.data = null; + return objJsonResult; + } + oCN.BeginTran(); //鏇存柊鍒囨崲鐘舵�佸�� string sql = string.Format(@"delete Gy_SourceRelationSet where HSourceID='" + HSourceID + "' and HUserName = '" + user + "'"); -- Gitblit v1.9.1