From 10cada58c5ea2aa95b8eaaa1731b543582d618dc Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期二, 20 五月 2025 08:43:55 +0800
Subject: [PATCH] 提交
---
CY_ECommercePlatform/CY.WebForm/Pages/work/Adm_zhanghaomimaList.aspx.cs | 23 +++++++++++++++++++++--
1 files changed, 21 insertions(+), 2 deletions(-)
diff --git a/CY_ECommercePlatform/CY.WebForm/Pages/work/Adm_zhanghaomimaList.aspx.cs b/CY_ECommercePlatform/CY.WebForm/Pages/work/Adm_zhanghaomimaList.aspx.cs
index 123dc8a..8ff0948 100644
--- a/CY_ECommercePlatform/CY.WebForm/Pages/work/Adm_zhanghaomimaList.aspx.cs
+++ b/CY_ECommercePlatform/CY.WebForm/Pages/work/Adm_zhanghaomimaList.aspx.cs
@@ -19,6 +19,7 @@
Adm_zhanghaomimaBLL bll_Adm_zhanghaomimaBLL = null;
Sys_DictionaryBLL bll_Sys_DictionaryBLL = null;
OA_StaffBLL bll_OA_StaffBLL = null;
+ public string BF_IsChangyongziliao = "";
//鍒濆鍖�
public Adm_zhanghaomimaList()
@@ -58,7 +59,7 @@
this.seltype.DataTextField = "Name";
this.seltype.DataBind();
this.seltype.Items.Insert(0, new ListItem("鍏ㄩ儴", ""));
-
+
BindList();
}
@@ -89,13 +90,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_zhanghaomimaBLL.SelectModelPage(pa, CurrentUser.MemberId, this.seltype.Value, this.txtchanpinxiangmu.Value.Trim());
+ this.RepClientList.DataSource = bll_Adm_zhanghaomimaBLL.SelectModelPage(pa, CurrentUser.MemberId, this.seltype.Value, this.txtchanpinxiangmu.Value.Trim(), IsChangyongziliao, CurrentUser.StaffId);
this.RepClientList.DataBind();
UCPager1.AspNetPager.RecordCount = pa.RecordCount;
}
--
Gitblit v1.9.1