| | |
| | | public class GwStatisV3 : PageHandler<SysUser> |
| | | { |
| | | private GwStatisV3Dao _Dao = new GwStatisV3Dao(); |
| | | private int _userId = -1; |
| | | private int _userType = -1; |
| | | private string _account = ""; |
| | | |
| | | public override JsonPageResult ProcessRequestInternal(PageContext<Model.SysUser> context) |
| | | { |
| | | string action = context.GetString("action"); |
| | | _userId = context.SessionObject.UserID; |
| | | _userType = context.SessionObject.UserType; |
| | | _account = context.SessionObject.Account; |
| | | |
| | | switch (action) |
| | | { |
| | |
| | | string opID = context.GetString("opid"); |
| | | string statistype = context.GetString("statistype"); |
| | | StatisOption statisoption = (StatisOption)context.GetInt("statisoption"); |
| | | |
| | | string permissionsSQL = new GwClientDao().GetClientPermissions(_userId, _userType, null); |
| | | |
| | | List<GwOp> opList; |
| | | |
| | |
| | | |
| | | using (GwClientDao dao = new GwClientDao()) |
| | | { |
| | | clientList = dao.LoadInfoList("", "", "", ""); |
| | | clientList = dao.LoadInfoList("", "", "", "", permissionsSQL); |
| | | } |
| | | |
| | | List<GwAp> apList; |
| | |
| | | |
| | | apList = dao.LoadInfoList("", "", "", out recordCount, 99999, 1); |
| | | } |
| | | |
| | | //var list = _Dao.Query(beginTime, endTime, clientID, spID, apID, opID, statistype, (StatisOption)statisoption); |
| | | |
| | | |
| | | var list = _Dao.Query(beginTime, endTime, clientID, spID, apID, opID, statistype, (StatisOption)statisoption); |
| | | //根据系统用户获取有权限客户 |
| | | var list = _Dao.Query(beginTime, endTime, clientID, spID, apID, opID, statistype, permissionsSQL, (StatisOption)statisoption); |
| | | |
| | | System.Text.StringBuilder sb = new System.Text.StringBuilder(); |
| | | |