From 3a9f82bd8410419dc88bcbe621763ee7e494ed7c Mon Sep 17 00:00:00 2001 From: YL <YL@LAPTOP-SE03PLUR> Date: 星期二, 09 十一月 2021 22:05:08 +0800 Subject: [PATCH] 用户关联权限,权限列表树型、及点击树型带出权限交互列表 --- WebAPI/Controllers/GG_NoticeController.cs | 39 +++++++++++++++++++++++++++++++++++++++ WebAPI/Controllers/PublicPageMethodController.cs | 5 +++++ 2 files changed, 44 insertions(+), 0 deletions(-) diff --git a/WebAPI/Controllers/GG_NoticeController.cs b/WebAPI/Controllers/GG_NoticeController.cs index 74910c0..e52323c 100644 --- a/WebAPI/Controllers/GG_NoticeController.cs +++ b/WebAPI/Controllers/GG_NoticeController.cs @@ -255,5 +255,44 @@ } #endregion + #region 鍏憡鍒楄〃鍒犻櫎 + [Route("GG_Notice/Get_GG_Notice_DeleteBill")] + [HttpGet] + public object Get_GG_Notice_DeleteBill(string HInterID, string user) + { + try + { + //鍒犻櫎鏉冮檺 + //if (!DBUtility.ClsPub.Security_Log_second("", 1, true, user)) + //{ + // objJsonResult.code = "0"; + // objJsonResult.count = 0; + // objJsonResult.Message = "鏃犲垹闄ゆ潈闄愶紒"; + // objJsonResult.data = null; + // return objJsonResult; + //} + + SQLHelper.ClsCN oCN = new SQLHelper.ClsCN(); + oCN.RunProc("delete from OA_InformBillSub where HInterID=" + HInterID); + oCN.RunProc("delete from OA_InformBillMain where HInterID=" + HInterID); + oCN.Commit();//鎻愪氦浜嬪姟 + objJsonResult.code = "1"; + objJsonResult.count = 1; + objJsonResult.Message = "鍏憡鏁版嵁鍒犻櫎鎴愬姛锛�"; + objJsonResult.data = null; + return objJsonResult; ; + + } + catch (Exception e) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "鍏憡鏁版嵁鍒犻櫎澶辫触锛�" + e.ToString(); + objJsonResult.data = null; + return objJsonResult; + } + } + #endregion + } } diff --git a/WebAPI/Controllers/PublicPageMethodController.cs b/WebAPI/Controllers/PublicPageMethodController.cs index 7cceb0b..26339ef 100644 --- a/WebAPI/Controllers/PublicPageMethodController.cs +++ b/WebAPI/Controllers/PublicPageMethodController.cs @@ -3367,7 +3367,12 @@ if (sGnbm != "" && sGnbm != null) { sName = sGnbm.Substring(1, sGnbm.Length - 1); + if (sName == "鏉冮檺绠$悊-鐢ㄦ埛") + { + sName = ""; + } } + ds = oCN.RunProcReturn("select * from Gy_Czygl where czybm='" + czybm + "'", "Gy_Czygl"); string AuthorityID = ClsPub.isStrNull(ds.Tables[0].Rows[0]["AuthorityID"]); ds = oCN.RunProcReturn("SELECT id hid,case when id<=" + AuthorityID.Length + " then case when SUBSTRING('" + AuthorityID + "',id,1)=1 then 1 else 0 end else 0 end 鏄惁鏉冮檺,gnms 鍔熻兘璇存槑,gnbm hgnbm FROM xt_xtgnb where useflag=1 and sjgnbm='" + sName + "' and rightflag=1 order by gnbm", "xt_xtgnb"); -- Gitblit v1.9.1