//绑定记录 public void binddr() { string sqlstr = ""; ps_here_depot bll = new ps_here_depot(); if (Convert.ToInt32(Session["DepotID"]) == 0 && Convert.ToInt32(Session["DepotCatID"]) == 0) { sqlstr = "id>0"; sqlstr = sqlstr + CombSqlTxt(this.product_category_id, this.note_no); } sqlstr = sqlstr + " order by add_time desc,id desc"; DataView dv = bll.GetList(sqlstr).Tables[0].DefaultView; repCategory.DataSource = dv; repCategory.DataBind(); }
private void RptBind(string _strWhere, string _orderby) { this.page = AXRequest.GetQueryInt("page", 1); if (this.product_category_id > 0) { this.ddlproduct_category_id.SelectedValue = this.product_category_id.ToString(); } txtNote_no.Text = this.note_no; ps_here_depot bll = new ps_here_depot(); this.rptList.DataSource = bll.GetList(this.pageSize, this.page, _strWhere, _orderby, out this.totalCount); this.rptList.DataBind(); //绑定页码 txtPageNum.Text = this.pageSize.ToString(); string pageUrl = Utils.CombUrlTxt("depot_manager.aspx", "product_category_id={0}¬e_no={1}&page={2}", this.product_category_id.ToString(), this.note_no, "__id__"); PageContent.InnerHtml = Utils.OutPageList(this.pageSize, this.page, this.totalCount, pageUrl, 8); }