| | |
| | | public partial class ExportDocument : PageBase<SysUser>, IRequiresSessionState |
| | | { |
| | | |
| | | private int _userId = -1; |
| | | private int _userType = -1; |
| | | private string _account = ""; |
| | | |
| | | protected void Page_Load(object sender, EventArgs e) |
| | | { |
| | | _userId = this.AppContext.SessionObject.UserID; |
| | | _userType = this.AppContext.SessionObject.UserType; |
| | | _account = this.AppContext.SessionObject.Account; |
| | | |
| | | switch (this.AppContext.GetString("action")) |
| | | { |
| | | case "exPortGwSp": |
| | |
| | | string statistype = this.AppContext.GetString("Statistype"); |
| | | StatisOption statisoption = (StatisOption)this.AppContext.GetInt("Statisoption"); |
| | | |
| | | string permissionsSQL = new GwClientDao().GetClientPermissions(_userId, _userType, null); |
| | | |
| | | List<GwOp> opList; |
| | | |
| | | using (GwOpDao dao = new GwOpDao()) |
| | |
| | | |
| | | using (GwClientDao dao = new GwClientDao()) |
| | | { |
| | | clientList = dao.LoadInfoList("", "", "", ""); |
| | | clientList = dao.LoadInfoList("", "", "", "", permissionsSQL); |
| | | } |
| | | |
| | | List<GwAp> apList; |
| | |
| | | apList = dao.LoadInfoList("", "", "", out recordCount, 99999, 1); |
| | | } |
| | | |
| | | |
| | | GwStatisV3Dao _Dao = new GwStatisV3Dao(); |
| | | var list = _Dao.Query(Convert.ToDateTime(beginTime), Convert.ToDateTime(endTime), clientId, spid, apMid, opid, statistype, (StatisOption)statisoption); |
| | | var list = _Dao.Query(Convert.ToDateTime(beginTime), Convert.ToDateTime(endTime), clientId, spid, apMid, opid, statistype, permissionsSQL, (StatisOption)statisoption); |
| | | |
| | | List<Model.GwStatisV3> statisList = new List<Model.GwStatisV3>(); |
| | | foreach (GwStatisV3Item item in list) |