/// <summary> /// 初始化 /// </summary> private void DataInit() { //获取分页参数并强转 pageIndex = Utils.GetInt(Utils.GetQueryStringValue("page")); IList <EyouSoft.Model.IndStructure.MOrderRemind> list = null; BIndividual bllBIndividual = new BIndividual(); list = bllBIndividual.GetOrderRemindLst(pageSize, pageIndex, ref recordCount, SiteUserInfo.UserId, SiteUserInfo.CompanyId); if (list != null && list.Count > 0) { this.rptList.DataSource = list; this.rptList.DataBind(); //绑定分页 BindPage(); } else { this.lblMsg.Text = "没有相关数据!"; this.ExporPageInfoSelect1.Visible = false; this.ExporPageInfoSelect2.Visible = false; } }
private void IntoDate() { #region 待处理事项 BIndividual bllBIndividual = new BIndividual(); IList <MMemo> listMMemo = bllBIndividual.GetMemoLst(6, SiteUserInfo.UserId, null, null); if (listMMemo != null && listMMemo.Count > 0) { rptFirst.DataSource = listMMemo; rptFirst.DataBind(); } else { lblMsgFirst.Text = "暂无数据"; } #endregion #region 订单提醒 pageIndex = Utils.GetInt(Utils.GetQueryStringValue("page"), 1); IList <MOrderRemind> listMOrderRemind = bllBIndividual.GetOrderRemindLst(pageSize, pageIndex, ref recordCount, SiteUserInfo.UserId, SiteUserInfo.CompanyId); if (listMOrderRemind != null && listMOrderRemind.Count > 0) { this.rptSecond.DataSource = listMOrderRemind; this.rptSecond.DataBind(); this.ExporPageInfoSelect1.PageLinkURL = Request.ServerVariables["SCRIPT_NAME"].ToString() + "?"; this.ExporPageInfoSelect1.UrlParams = Request.QueryString; this.ExporPageInfoSelect1.intPageSize = pageSize; this.ExporPageInfoSelect1.CurrencyPage = pageIndex; this.ExporPageInfoSelect1.intRecordCount = recordCount; } else { this.ExporPageInfoSelect1.Visible = false; this.lblMsgSecond.Text = "暂无订单数据"; } #endregion #region 公告列表 IList <MNoticeRemind> listMGovNotice = bllBIndividual.GetNoticeRemindLst(5, 1, ref recordCount, SiteUserInfo.UserId, SiteUserInfo.DeptId, SiteUserInfo.CompanyId); if (listMGovNotice != null && listMGovNotice.Count > 0) { rptThird.DataSource = listMGovNotice; rptThird.DataBind(); } else { lblMsgThird.Text = "暂无数据"; } #endregion #region 获取今后两天备忘录 //今天 IList <MMemo> listMMemoToday = bllBIndividual.GetMemoLst( 5, SiteUserInfo.UserId, Utils.GetDateTimeNullable(DateTime.Now.ToShortDateString()), Utils.GetDateTimeNullable(DateTime.Now.ToShortDateString())); IList <MMemo> listMMemoTodayCount = bllBIndividual.GetMemoLst( 0, SiteUserInfo.UserId, Utils.GetDateTimeNullable(DateTime.Now.ToShortDateString()), Utils.GetDateTimeNullable(DateTime.Now.ToShortDateString())); if (listMMemoToday != null && listMMemoToday.Count > 0) { if (listMMemoTodayCount.Count > 5) { litTodayAll.Text = "<span class=\"jsh_text_li\"><a href=\"javascript:void(0)\" onclick=\"AllBoxy('" + DateTime.Now.ToString("M") + "')\">更多</a></span>"; } rptFour.DataSource = listMMemoToday; rptFour.DataBind(); } //明天 IList <MMemo> listMMemoTom = bllBIndividual.GetMemoLst( 1, SiteUserInfo.UserId, Utils.GetDateTimeNullable(DateTime.Now.AddDays(1).ToShortDateString()), Utils.GetDateTimeNullable(DateTime.Now.AddDays(1).ToShortDateString())); IList <MMemo> listMMemoTomCount = bllBIndividual.GetMemoLst( 0, SiteUserInfo.UserId, Utils.GetDateTimeNullable(DateTime.Now.AddDays(1).ToShortDateString()), Utils.GetDateTimeNullable(DateTime.Now.AddDays(1).ToShortDateString())); if (listMMemoTom != null && listMMemoTom.Count > 0) { if (listMMemoTomCount.Count > 1) { litTomorrowAll.Text = "<span class=\"jsh_text_li\"><a href=\"javascript:void(0)\" onclick=\"AllBoxy('" + DateTime.Now.AddDays(1).ToString("M") + "')\">更多</a></span>"; } rptFive.DataSource = listMMemoTom; rptFive.DataBind(); } #endregion }