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