From f63d8ead25bdb3c32dacca817a059bd30390e9bc Mon Sep 17 00:00:00 2001
From: yzh <snbbt@21cn.com>
Date: 星期三, 15 六月 2022 22:20:07 +0800
Subject: [PATCH] 1.系统账户数据库优化:   修改“账户类型”的数据类型为VARCHAR2(1024),多个角色时以半角“,”分隔。   加密盐。 密码加密优化;账户登录优化;角色权限管理(作废用户权限); 2.字典类型管理(定义:用户角色) 3.字典数据管理(初始化用户角色数据) 3.角色权限管理 4.系统账户管理,账户类型对应用户角色(可多选)。

---
 web/web/GwStatisProfit.aspx.cs |   12 +++++++++---
 1 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/web/web/GwStatisProfit.aspx.cs b/web/web/GwStatisProfit.aspx.cs
index d7b8704..810a9e0 100644
--- a/web/web/GwStatisProfit.aspx.cs
+++ b/web/web/GwStatisProfit.aspx.cs
@@ -15,7 +15,10 @@
     private List<GwClient> ClientList;
     private List<GwAp> ApList;
 
-    
+    private int _userId = -1;
+    private string _userType = "";
+    private string _account = "";
+    string permissionsSQL = null;
 
     public StatisOption SelectedOptions { get; set; }
 
@@ -32,10 +35,13 @@
     protected void Page_Load(object sender, EventArgs e)
     {
         this.CheckRight("502", FailedOperation.ErrorMsgOnly);
+        permissionsSQL = new GwClientDao().GetClientPermissions(_userId, _userType, null);
         using (GwOpDao gwOpDao = new GwOpDao())
             this.OpList = gwOpDao.LoadInfoList();
         using (GwClientDao gwClientDao = new GwClientDao())
-            this.ClientList = gwClientDao.LoadInfoList("", "", "", "");
+        {
+            this.ClientList = gwClientDao.LoadInfoList("", "", "", "", permissionsSQL);
+        }
         using (GwApDao gwApDao = new GwApDao())
             this.ApList = gwApDao.LoadInfoList();
         if (this.IsPostBack)
@@ -70,7 +76,7 @@
         StringBuilder stringBuilder = new StringBuilder();
         using (GwSpDao gwSpDao = new GwSpDao())
         {
-            List<GwSp> list = gwSpDao.LoadInfoList("", "", "");
+            List<GwSp> list = gwSpDao.LoadInfoList("", "", "", permissionsSQL);
             if (list.Count == 0)
             {
                 stringBuilder.Append("<option value=\"\">鏆傛棤甯愬彿淇℃伅</option>");

--
Gitblit v1.9.1