private void BindData()
        {
            #region 组装查询条件
            string whereStr  = " 1 = 1 ";
            string _keywords = keywords.Replace("'", "");

            if (!string.IsNullOrEmpty(_keywords))
            {
                if (Utils.IsSafeSqlString(_keywords))
                {
                    whereStr += " and (Title like  '%" + _keywords + "%')";
                }
                else
                {
                    JscriptMsg("搜索关键词中包含危险字符,检索终止!", Utils.CombUrlTxt("Manage.aspx", "keywords={0}", ""));
                    return;
                }
            }
            #endregion

            this.page        = RequestHelper.GetQueryInt("page", 1);
            txtKeywords.Text = this.keywords;
            BLL.user_order bll = new BLL.user_order();
            this.rptList.DataSource = bll.GetListByPage(whereStr, "ID DESC", this.page, this.pageSize);
            this.rptList.DataBind();

            this.totalCount = bll.GetRecordCount(whereStr);
            //绑定页码
            txtPageNum.Text = this.pageSize.ToString();
            string pageUrl = Utils.CombUrlTxt("Manage.aspx", "keywords={0}&page={1}", this.keywords, "__id__");
            PageContent.InnerHtml = Utils.OutPageList(this.pageSize, this.page, this.totalCount, pageUrl, 8);
        }
        private void BindData()
        {
            #region 组装查询条件
            string whereStr  = " del_status = " + (int)EnumCollection.order_delStatus.未删除;
            string _keywords = keywords.Replace("'", "");

            if (!string.IsNullOrEmpty(_keywords))
            {
                if (Utils.IsSafeSqlString(_keywords))
                {
                    whereStr += " and (order_no like  '%" + _keywords + "%')";
                }
                else
                {
                    JscriptMsg("搜索关键词中包含危险字符,检索终止!", Utils.CombUrlTxt("order_list.aspx", "keywords={0}", ""));
                    return;
                }
            }

            if (this.status != 0)
            {
                this.ddlStatus.SelectedValue = this.status + "";

                whereStr += " and status = " + this.status;
            }

            #endregion

            BLL.user_order bll = new BLL.user_order();
            DataTable      dt  = bll.GetList(" status = " + (int)EnumCollection.order_status.待收货 + " and confirm_time < getdate() ");
            string         ids = string.Empty;
            foreach (DataRow item in dt.Rows)
            {
                ids += Convert.ToInt32(item["id"]) + ",";
            }
            if (!string.IsNullOrEmpty(ids))
            {
                ids = Utils.DelLastComma(ids);
                bll.UpdateStatus((int)EnumCollection.order_status.待评价, " id in (" + ids + ") ");
            }

            this.page        = RequestHelper.GetQueryInt("page", 1);
            txtKeywords.Text = this.keywords;

            this.rptList.DataSource = bll.GetListByPage(whereStr, " add_time desc ", this.page, this.pageSize);
            this.rptList.DataBind();

            this.totalCount = bll.GetRecordCount(whereStr);
            //绑定页码
            txtPageNum.Text = this.pageSize.ToString();
            string pageUrl = Utils.CombUrlTxt("order_list.aspx", "keywords={0}&page={1}&status={2}", this.keywords, "__id__", this.status + "");
            PageContent.InnerHtml = Utils.OutPageList(this.pageSize, this.page, this.totalCount, pageUrl, 8);
        }