public override int LoadData(int pageNumber, int pageSize) { int totalCount = 0; BusinessRule.SystemManage.User rule = new BusinessRule.SystemManage.User(); this.tblSchema = rule.GetUserList(out totalCount, pageSize, pageNumber, BusinessRule.Common.OrderByType.ASC, this.CurrentFilter); return(totalCount); }
private void LoadData(int pageNumber, int pageSize) { //BusinessFilter filter = new BusinessFilter("User"); //if (this.GetLastQueryCondition(this.dgUser.UniqueID) != null && this.GetLastQueryCondition(this.dgUser.UniqueID).Filter.ToString() != string.Empty && this.GetLastQueryCondition(this.dgUser.UniqueID).Filter.ToString().Trim() != "AND (1=1") //{ // filter.AddFilter(this.GetLastQueryCondition(this.dgUser.UniqueID), AndOr.AND); //} int totalCount = 0; BusinessRule.SystemManage.User rule = new BusinessRule.SystemManage.User(); //if (filter.Filter.Trim() == "AND (1=1" || ((filter.Filter == null || filter.Filter == string.Empty) && (filter.CustomFilter == null || filter.CustomFilter == string.Empty))) //{ // filter.AddFilterItem("PKID", "-1", Operation.Equal, FilterType.NumberType, AndOr.AND); //} this.tblSchema = rule.GetUserList(out totalCount, pageSize, pageNumber, BusinessRule.Common.OrderByType.ASC, this.GetLastQueryCondition(this.dgUser.UniqueID)); ucCustomPaging.TotalRecords = totalCount; this.BindGrid(); }