/// <summary> /// 初始化 /// </summary> private void DataInit() { //获取分页参数并强转 pageIndex = Utils.GetInt(Utils.GetQueryStringValue("page"), 1); BIndividual bllBIndividual = new BIndividual(); IList <MTourChangeRemind> listChangeRemind = bllBIndividual.GetTourChangeRemindLst(pageSize, pageIndex, ref recordCount, SiteUserInfo.CompanyId, SiteUserInfo.UserId); if (listChangeRemind != null && listChangeRemind.Count > 0) { this.rptList.DataSource = listChangeRemind; this.rptList.DataBind(); //绑定分页 BindPage(); } else { this.lblMsg.Text = "没有相关数据!"; this.ExporPageInfoSelect1.Visible = false; this.ExporPageInfoSelect2.Visible = false; } }