/// <summary> /// 初始化 /// </summary> private void DataInit(string guidname, int year, int month, DateTime?startTime, DateTime?endTime, string location) { //获取分页参数并强转 pageIndex = Utils.GetInt(Utils.GetQueryStringValue("page")); EyouSoft.BLL.SourceStructure.BSource bll = new EyouSoft.BLL.SourceStructure.BSource(); startTime = (startTime == null ? null : (DateTime?)startTime); endTime = (endTime == null ? null : (DateTime?)endTime); IList <EyouSoft.Model.SourceStructure.MGuidePlanWork> list = bll.GetGuidePlanWork(this.SiteUserInfo.CompanyId, guidname, year, month, startTime, endTime, location, pageIndex, pageSize, ref recordCount); if (list != null && list.Count > 0) { this.rptList.DataSource = list; this.rptList.DataBind(); //绑定分页 BindPage(); } else { this.lbMsg.Text = "<tr><td colspan=\"36\" align=\"center\">暂无信息</td></tr>"; } }