private void RptBind(string _strWhere, string _orderby) { this.page = DTRequest.GetQueryInt("page", 1); if (!string.IsNullOrEmpty(_carNumber)) { ddlCarNumber.SelectedValue = _carNumber; } if (!string.IsNullOrEmpty(_customer1)) { ddlCustomer1.SelectedValue = _customer1; } if (!string.IsNullOrEmpty(_beginTime)) { txtBeginTime.Text = _beginTime; } if (!string.IsNullOrEmpty(_endTime)) { txtEndTime.Text = _endTime; } this.txtKeywords.Text = this.keywords; BLL.TransportOrder bll = new BLL.TransportOrder(); this.rptList.DataSource = bll.GetRecordsList(this.pageSize, this.page, _strWhere, _orderby, out this.totalCount); this.rptList.DataBind(); //绑定页码 txtPageNum.Text = this.pageSize.ToString(); string pageUrl = Utils.CombUrlTxt("dispatch_records.aspx", "carNumber={0}&customer1={1}&customer2={2}&beginTime={3}&endTime={4}&keywords={5}&page={6}", _carNumber, _customer1, _customer2, _beginTime, _endTime, this.keywords, "__id__"); PageContent.InnerHtml = Utils.OutPageList(this.pageSize, this.page, this.totalCount, pageUrl, 8); }
private void RptBind(string _strWhere, string _orderby) { this.page = DTRequest.GetQueryInt("page", 1); if (!string.IsNullOrEmpty(_carNumber)) { ddlCarNumber.SelectedValue = _carNumber; } if (!string.IsNullOrEmpty(_customer1)) { ddlCustomer1.SelectedValue = _customer1; } if (!string.IsNullOrEmpty(_beginTime)) { txtBeginTime.Text = _beginTime; } if (!string.IsNullOrEmpty(_endTime)) { txtEndTime.Text = _endTime; } this.txtKeywords.Text = this.keywords; BLL.TransportOrder bll = new BLL.TransportOrder(); this.rptList.DataSource = bll.GetRecordsList(this.pageSize, this.page, _strWhere, _orderby, out this.totalCount); this.rptList.DataBind(); //绑定页码 txtPageNum.Text = this.pageSize.ToString(); string pageUrl = Utils.CombUrlTxt("dispatch_records.aspx", "carNumber={0}&customer1={1}&customer2={2}&beginTime={3}&endTime={4}&keywords={5}&page={6}", _carNumber, _customer1, _customer2, _beginTime, _endTime, this.keywords, "__id__"); PageContent.InnerHtml = Utils.OutPageList(this.pageSize, this.page, this.totalCount, pageUrl, 8); }