| | |
| | | { |
| | | |
| | | private int _userId = -1; |
| | | private int _userType = -1; |
| | | private string _userType = ""; |
| | | private string _account = ""; |
| | | |
| | | protected void Page_Load(object sender, EventArgs e) |
| | |
| | | |
| | | Model.GwClient x = clientlist.Find(delegate(Model.GwClient client) { return client.ClientID == clientID; }); |
| | | |
| | | return x == null ? string.Format("{0}", clientID) : string.Format("{0}-{1}", x.ClientID, x.ClientName); |
| | | return x == null ? string.Format("{0}", clientID) : string.Format("{0}-{1}", x.ClientID, x.Company); |
| | | } |
| | | |
| | | |
| | |
| | | int recordCount = 0; |
| | | int pageSize = this.AppContext.GetInt("pageSize", 999999999); |
| | | |
| | | int isSub = AppContext.GetInt("isSub",0); |
| | | |
| | | string str = ""; |
| | | using (GwClientDao dao = new GwClientDao()) |
| | | { |
| | | string permissionsSQL = dao.GetClientPermissions(_userId, _userType, "gwc"); |
| | | var list = dao.LoadInfoList(out recordCount, pageIndex, pageSize, ClientID, ClientName, Telephone, Agent, Company, Salesman, SupportStaff, ProductId, IsEnable, permissionsSQL); |
| | | var list = dao.LoadInfoList(out recordCount, pageIndex, pageSize, ClientID, ClientName, Telephone, Agent, Company, Salesman, SupportStaff, ProductId, IsEnable,isSub, permissionsSQL); |
| | | if (recordCount> 1000000) |
| | | { |
| | | this.Response.Write("<script type='text/javascript'>alert('导出数据不能大于100万条!');location.href='GwClient.aspx?IsEnable=" + IsEnable + "';</script>"); |