| | |
| | | private List<GwStrategy> _StrategyList; |
| | | private List<GwProduct> _ProductList; |
| | | |
| | | private int _userId = -1; |
| | | private int _userType = -1; |
| | | private string _account = ""; |
| | | |
| | | private List<GwOp> OpList |
| | | { |
| | | get |
| | |
| | | { |
| | | if (this._ClientList == null) |
| | | { |
| | | using (GwClientDao gwClientDao = new GwClientDao()) |
| | | this._ClientList = gwClientDao.LoadInfoList("", "", "", ""); |
| | | using (GwClientDao gwClientDao = new GwClientDao()) { |
| | | string permissionsSQL = gwClientDao.GetClientPermissions(_userId, _userType, null); |
| | | this._ClientList = gwClientDao.LoadInfoList("", "", "", "", permissionsSQL); |
| | | } |
| | | } |
| | | return this._ClientList; |
| | | } |
| | |
| | | public override JsonPageResult ProcessRequestInternal(PageContext<SysUser> context) |
| | | { |
| | | string @string = context.GetString("action"); |
| | | _userId = context.SessionObject.UserID; |
| | | _userType = context.SessionObject.UserType; |
| | | _account = context.SessionObject.Account; |
| | | |
| | | switch (@string) |
| | | { |
| | | case "updateSpStatus": |
| | |
| | | apId = string1; |
| | | //if (string.IsNullOrEmpty(clientId) && !string.IsNullOrEmpty(string4)) |
| | | // clientId = new GwClientDao().GetClientName(string4).ClientID; |
| | | |
| | | string permissionsSQL = new GwClientDao().GetClientPermissions(_userId, _userType, null); |
| | | |
| | | //加载账号列表信息 |
| | | List<GwSp> list = gwSpDao.LoadInfoList(string2, apId, clientId, string4, int1, string3, int2, int4, int3, int5.ToString(),out recordCount, productId); |
| | | List<GwSp> list = gwSpDao.LoadInfoList(string2, apId, clientId, string4, int1, string3, int2, int4, int3, int5.ToString(), productId, permissionsSQL, out recordCount); |
| | | string str1 = ""; |
| | | if (list != null && list.Count > 0) |
| | | { |