| | |
| | | private List<GwOp> OpList; |
| | | 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; } |
| | | |
| | | public DateTime StartTime { get; set; } |
| | |
| | | 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) |
| | |
| | | return string.Empty; |
| | | GwClient gwClient = this.ClientList.Find((Predicate<GwClient>)(client => client.ClientID == clientID)); |
| | | if (gwClient != null) |
| | | return string.Format("{0}-{1}", (object)gwClient.ClientID, (object)gwClient.ClientName); |
| | | return string.Format("{0}", (object)gwClient.ClientName); |
| | | return string.Format("{0}", (object)clientID); |
| | | } |
| | | |
| | |
| | | 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>"); |