From 82662b0e9ab839c72ec3734f18b691d5f037c0a3 Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期三, 12 二月 2025 08:43:36 +0800
Subject: [PATCH] 外协订单不要松活信息   新增采购信息改为新增采购订单    角色查询增加查询条件,有效无效

---
 CY_ECommercePlatform/CY.WebForm/Pages/personnel/FirmRoleList.aspx.cs |   21 ++++++++++++++++++++-
 1 files changed, 20 insertions(+), 1 deletions(-)

diff --git a/CY_ECommercePlatform/CY.WebForm/Pages/personnel/FirmRoleList.aspx.cs b/CY_ECommercePlatform/CY.WebForm/Pages/personnel/FirmRoleList.aspx.cs
index 164321c..acad232 100644
--- a/CY_ECommercePlatform/CY.WebForm/Pages/personnel/FirmRoleList.aspx.cs
+++ b/CY_ECommercePlatform/CY.WebForm/Pages/personnel/FirmRoleList.aspx.cs
@@ -55,10 +55,23 @@
         //鑾峰彇閬嶅巻缁撴灉
         public void InitialData()
         {
+          var youxiao =  this.selSPS_Department.Value.ToInt32();
+            var oA_FirmRoles = bll_OA_FirmRoleBLL.SelectList(CurrentUser.MemberId);
+            if (youxiao>0)
+            {
+                if (youxiao == 1)
+                {
+                    oA_FirmRoles = oA_FirmRoles.Where(x => x.IsUsed == true);
+                }
+                else if (youxiao == 2)
+                {
+                    oA_FirmRoles = oA_FirmRoles.Where(x => x.IsUsed == false);
+                }
+            }
 
             treeHtml = "{GetMenuRoleId:'0', id: 99999, parentId: 900009, name: '鏈�楂樻潈闄�', open: true },";
 
-            this.RepClientList.DataSource = bll_OA_FirmRoleBLL.SelectList(CurrentUser.MemberId);
+            this.RepClientList.DataSource = oA_FirmRoles;// bll_OA_FirmRoleBLL.SelectList(CurrentUser.MemberId);
             this.RepClientList.DataBind();
 
             Sys_Permissions_UserRoleRelation m_Sys_Permissions_UserRoleRelation = bll_Sys_Permissions_RoleBLL.SelectSys_Permissions_UserRoleRelation(CurrentUser.MemberId);
@@ -100,6 +113,12 @@
             treeHtml = treeHtml.Trim(',');
         }
 
+        //鏌ヨ浜嬩欢
+        protected void btn_Search_Click(object src, EventArgs e)
+        {
+            InitialData();
+        }
+
         //淇濆瓨瑙掕壊鏉冮檺
         protected void btn_SaveRole_Click(object sender, EventArgs e)
         {

--
Gitblit v1.9.1