private void RptBind(string strWhere, string orderby)
 {
     if (!int.TryParse(Request.Params["page"] as string, out this.page))
     {
         this.page = 0;
     }
     Spread.BLL.ReportSet bll = new Spread.BLL.ReportSet();
     //获得总条数
     this.pcount = bll.GetRecordCount(strWhere);
     this.rptList.DataSource = bll.GetPageList(this.pagesize, this.page, strWhere, orderby);
     this.rptList.DataBind();
 }
 protected void rptList_ItemCommand(object source, RepeaterCommandEventArgs e)
 {
     int id = Convert.ToInt32(((HiddenField)e.Item.FindControl("lb_id")).Value);
     Spread.BLL.ReportSet bll = new Spread.BLL.ReportSet();
     Spread.Model.ReportSet model = bll.GetModel(id);
     switch (e.CommandName.ToLower())
     {
         case "btndel":
                 bll.Delete(id);
             break;
     }
     RptBind("Id>0" + this.CombSqlTxt(this.keywords), "ID asc");
 }