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