Exemplo n.º 1
0
        private void RptBind(string _strWhere, string _orderby)
        {
            this.page = DTRequest.GetQueryInt("page", 1);
            if (_goods > 0)
            {
                ddlGoods.SelectedValue = _goods.ToString();
            }
            if (_customer1 > 0)
            {
                ddlCustomer1.SelectedValue = _customer1.ToString();
            }
            if (_customer2 > 0)
            {
                ddlCustomer2.SelectedValue = _customer2.ToString();
            }
            if (!string.IsNullOrEmpty(_address1))
            {
                ddlLoadingAddress.SelectedValue = _address1;
            }
            if (!string.IsNullOrEmpty(_address2))
            {
                ddlUnloadingAddress.SelectedValue = _address2;
            }
            if (!string.IsNullOrEmpty(_beginTime))
            {
                txtBeginTime.Text = _beginTime;
            }
            if (!string.IsNullOrEmpty(_endTime))
            {
                txtEndTime.Text = _endTime;
            }
            if (_isAllot > 0)
            {
                ddlIsAllot.SelectedValue = _isAllot.ToString();
            }
            this.txtKeywords.Text = this.keywords;
            BLL.Order bll = new BLL.Order();
            this.rptList.DataSource = bll.GetFullList(this.pageSize, this.page, _strWhere, _orderby, out this.totalCount);
            this.rptList.DataBind();

            //绑定页码
            txtPageNum.Text = this.pageSize.ToString();
            string pageUrl = Utils.CombUrlTxt("order_list.aspx", "goods={0}&customer1={1}&customer2={2}&beginTime={3}&endTime={4}&address1={5}&address2={6}&isAllot={7}&keywords={8}&page={9}",
                                              _goods.ToString(), _customer1.ToString(), _customer2.ToString(), _beginTime, _endTime, _address1, _address2, _isAllot.ToString(), this.keywords, "__id__");

            PageContent.InnerHtml = Utils.OutPageList(this.pageSize, this.page, this.totalCount, pageUrl, 8);
        }
Exemplo n.º 2
0
        private void RptBind(string _strWhere, string _orderby)
        {
            this.page = DTRequest.GetQueryInt("page", 1);
            if (_goods > 0)
            {
                ddlGoods.SelectedValue = _goods.ToString();
            }
            if (_customer1 > 0)
            {
                ddlCustomer1.SelectedValue = _customer1.ToString();
            }
            if (_customer2 > 0)
            {
                ddlCustomer2.SelectedValue = _customer2.ToString();
            }
            if (!string.IsNullOrEmpty(_address1))
            {
                ddlLoadingAddress.SelectedValue = _address1;
            }
            if (!string.IsNullOrEmpty(_address2))
            {
                ddlUnloadingAddress.SelectedValue = _address2;
            }
            if (!string.IsNullOrEmpty(_beginTime))
            {
                txtBeginTime.Text = _beginTime;
            }
            if (!string.IsNullOrEmpty(_endTime))
            {
                txtEndTime.Text = _endTime;
            }
            if (_isAllot > 0)
            {
                ddlIsAllot.SelectedValue = _isAllot.ToString();
            }
            this.txtKeywords.Text = this.keywords;
            BLL.Order bll = new BLL.Order();
            this.rptList.DataSource = bll.GetFullList(this.pageSize, this.page, _strWhere, _orderby, out this.totalCount);
            this.rptList.DataBind();

            //绑定页码
            txtPageNum.Text = this.pageSize.ToString();
            string pageUrl = Utils.CombUrlTxt("order_list.aspx", "goods={0}&customer1={1}&customer2={2}&beginTime={3}&endTime={4}&address1={5}&address2={6}&isAllot={7}&keywords={8}&page={9}",
                _goods.ToString(), _customer1.ToString(), _customer2.ToString(), _beginTime, _endTime, _address1, _address2, _isAllot.ToString(), this.keywords, "__id__");
            PageContent.InnerHtml = Utils.OutPageList(this.pageSize, this.page, this.totalCount, pageUrl, 8);
        }