From f2fa318161407b936f70aa3b918dd38f24ea9a88 Mon Sep 17 00:00:00 2001 From: yzh <snbbt@21cn.com> Date: 星期一, 13 六月 2022 07:08:28 +0800 Subject: [PATCH] 数据字典表相关功能 系统账号管理优化 订单管理 API账号管理 客户信息管理 --- web/web/GwStatis.aspx.cs | 20 ++++++++++++++++---- 1 files changed, 16 insertions(+), 4 deletions(-) diff --git a/web/web/GwStatis.aspx.cs b/web/web/GwStatis.aspx.cs index f62afac..85c8f51 100644 --- a/web/web/GwStatis.aspx.cs +++ b/web/web/GwStatis.aspx.cs @@ -17,7 +17,11 @@ private List<GwClient> ClientList; private List<GwAp> ApList; - + private int _userId = -1; + private int _userType = -1; + private string _account = ""; + string permissionsSQL = null; + public StatisOption SelectedOptions { get; set; } @@ -38,10 +42,18 @@ protected void Page_Load(object sender, EventArgs e) { this.CheckRight("502", FailedOperation.ErrorMsgOnly); + + _userId = this.AppContext.SessionObject.UserID; + _userType = this.AppContext.SessionObject.UserType; + _account = this.AppContext.SessionObject.Account; + 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) @@ -136,7 +148,7 @@ foreach (GwClient gwClient in this.ClientList) { if (this.AppContext.HasRight("502")) - stringBuilder.AppendFormat("<option value=\"{0}\" {2}>{0}-{1}</option>", (object)gwClient.ClientID, (object)gwClient.ClientName, gwClient.ClientID == this.SelectedClientID ? (object)"selected" : (object)""); + stringBuilder.AppendFormat("<option value=\"{0}\" {2}>{0}-{1}</option>", (object)gwClient.ClientID, (object)gwClient.Company, gwClient.ClientID == this.SelectedClientID ? (object)"selected" : (object)""); } } return stringBuilder.ToString(); @@ -147,7 +159,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