yzh
2022-05-23 94f6f81692eee7567e24be26e63bc30460307cbd
web/web/GwStatisV3.ashx
@@ -10,10 +10,16 @@
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)
        {
@@ -75,6 +81,8 @@
        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;
        
@@ -87,7 +95,7 @@
        
        using (GwClientDao dao = new GwClientDao())
        {
             clientList = dao.LoadInfoList("", "", "", "");
             clientList = dao.LoadInfoList("", "", "", "", permissionsSQL);
        }
        
        List<GwAp> apList;
@@ -98,9 +106,11 @@
             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();