From dfbeaf00996f22400dd0b6a11d61550da8d6d32a Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期五, 16 五月 2025 08:36:37 +0800
Subject: [PATCH] 这个查看权限这里要修改,这个部门前面加个框框,如果我没这个框框打勾,这个部门的人的名字就不出来好,我在框框部门的前面的框框里面打了勾过后。好,这个部门的人就全部出来,而且系统自动把它打起。好,我再具体哪个人那儿再那个给我再点一下,就是不打,就那样子做。
---
CY_ECommercePlatform/CY.WebForm/Pages/work/Adm_tongxunluList.aspx.cs | 23 ++++++++++++++++++++++-
1 files changed, 22 insertions(+), 1 deletions(-)
diff --git a/CY_ECommercePlatform/CY.WebForm/Pages/work/Adm_tongxunluList.aspx.cs b/CY_ECommercePlatform/CY.WebForm/Pages/work/Adm_tongxunluList.aspx.cs
index 38fbdef..44ed4ad 100644
--- a/CY_ECommercePlatform/CY.WebForm/Pages/work/Adm_tongxunluList.aspx.cs
+++ b/CY_ECommercePlatform/CY.WebForm/Pages/work/Adm_tongxunluList.aspx.cs
@@ -19,6 +19,7 @@
Adm_tongxunluBLL bll_Adm_tongxunluBLL = null;
Sys_DictionaryBLL bll_Sys_DictionaryBLL = null;
OA_StaffBLL bll_OA_StaffBLL = null;
+ public string BF_IsChangyongziliao = "";
//鍒濆鍖�
public Adm_tongxunluList()
@@ -59,6 +60,8 @@
this.seltype.DataBind();
this.seltype.Items.Insert(0, new ListItem("鍏ㄩ儴", ""));
+
+
BindList();
}
@@ -89,13 +92,31 @@
//缁戝畾鏁版嵁
private void BindList()
{
+ var oA_Staff = bll_OA_StaffBLL.GetModelByKeyid(CurrentUser.StaffId);
+ var IsChangyongziliao = false;
+ if (oA_Staff != null)
+ {
+ if (oA_Staff.BF_IsChangyongziliao.HasValue && oA_Staff.BF_IsChangyongziliao.Value == true)
+ {
+ BF_IsChangyongziliao = "";
+ }
+ else
+ {
+ BF_IsChangyongziliao = "style=\"display:none;\"";
+ }
+ if (oA_Staff.BF_IsChangyongziliao.HasValue)
+ {
+ IsChangyongziliao = oA_Staff.BF_IsChangyongziliao.Value;
+ }
+ }
+
Pagination pa = new Pagination();
pa.PageSize = UCPager1.AspNetPager.PageSize;
pa.PageIndex = UCPager1.AspNetPager.CurrentPageIndex;
- this.RepClientList.DataSource = bll_Adm_tongxunluBLL.SelectModelPage(pa, CurrentUser.MemberId, this.seltype.Value, this.txtdanwei_name.Value.Trim());
+ this.RepClientList.DataSource = bll_Adm_tongxunluBLL.SelectModelPage(pa, CurrentUser.MemberId, this.seltype.Value, this.txtdanwei_name.Value.Trim(), IsChangyongziliao, CurrentUser.StaffId);
this.RepClientList.DataBind();
UCPager1.AspNetPager.RecordCount = pa.RecordCount;
}
--
Gitblit v1.9.1