protected void InitList() { string typeStr = Utils.GetConfigString("appSettings", "JCtype"); EyouSoft.Model.TravelArticleOrderBy orderBy = new EyouSoft.Model.TravelArticleOrderBy(); orderBy.FiledOrder = Eyousoft_yhq.Model.TravelArticleFiledOrder.IssueTime; orderBy.OrderBy = Eyousoft_yhq.Model.OrderBy.DESC; List <EyouSoft.Model.TravelArticleOrderBy> orderBys = new List <EyouSoft.Model.TravelArticleOrderBy>(); orderBys.Add(orderBy); EyouSoft.Model.MTravelArticleCX chaxun = new EyouSoft.Model.MTravelArticleCX(); if (typeStr.Length > 0) { chaxun.ZXtype = typeStr.Split(','); } pageIndex = UtilsCommons.GetPagingIndex("Page"); IList <EyouSoft.Model.MTravelArticle> list = new EyouSoft.BLL.OtherStructure.BTravelArticle().GetList(pageSize, pageIndex, ref recordCount, chaxun, orderBys); if (list != null && list.Count > 0) { rpt_Notices.DataSource = list; rpt_Notices.DataBind(); this.ExporPageInfoSelect1.intPageSize = pageSize; this.ExporPageInfoSelect1.CurrencyPage = pageIndex; this.ExporPageInfoSelect1.intRecordCount = recordCount; } else { litMsg.Visible = true; } }
protected void InitList() { string typeStr = Utils.GetConfigString("appSettings", "JCtype"); EyouSoft.Model.TravelArticleOrderBy orderBy = new EyouSoft.Model.TravelArticleOrderBy(); orderBy.FiledOrder = Eyousoft_yhq.Model.TravelArticleFiledOrder.IssueTime; orderBy.OrderBy = Eyousoft_yhq.Model.OrderBy.DESC; List<EyouSoft.Model.TravelArticleOrderBy> orderBys = new List<EyouSoft.Model.TravelArticleOrderBy>(); orderBys.Add(orderBy); EyouSoft.Model.MTravelArticleCX chaxun = new EyouSoft.Model.MTravelArticleCX(); if (typeStr.Length > 0) { chaxun.ZXtype = typeStr.Split(','); } pageIndex = UtilsCommons.GetPagingIndex("Page"); IList<EyouSoft.Model.MTravelArticle> list = new EyouSoft.BLL.OtherStructure.BTravelArticle().GetList(pageSize, pageIndex, ref recordCount, chaxun, orderBys); if (list != null && list.Count > 0) { rpt_Notices.DataSource = list; rpt_Notices.DataBind(); this.ExporPageInfoSelect1.intPageSize = pageSize; this.ExporPageInfoSelect1.CurrencyPage = pageIndex; this.ExporPageInfoSelect1.intRecordCount = recordCount; } else { litMsg.Visible = true; } }
/// <summary> /// 初始化页面 /// </summary> private void PageInit() { EyouSoft.Model.TravelArticleOrderBy orderBy = new EyouSoft.Model.TravelArticleOrderBy(); orderBy.FiledOrder = Eyousoft_yhq.Model.TravelArticleFiledOrder.IssueTime; orderBy.OrderBy = Eyousoft_yhq.Model.OrderBy.DESC; List<EyouSoft.Model.TravelArticleOrderBy> orderBys = new List<EyouSoft.Model.TravelArticleOrderBy>(); orderBys.Add(orderBy); EyouSoft.Model.MTravelArticleCX chaxun = new EyouSoft.Model.MTravelArticleCX(); chaxun.IsSystem = new Eyousoft_yhq.Model.ArticleType[] { Eyousoft_yhq.Model.ArticleType.公告 }; IList<EyouSoft.Model.MTravelArticle> list = new EyouSoft.BLL.OtherStructure.BTravelArticle().GetTopList(1, chaxun, orderBys); if (list != null && list.Count > 0) { lbltext.Text = string.Format(" <div class=\"hot\"><a href=\"/NoticeInfo.aspx?NotIceId={0}\"><b>公告:</b>{1}</a><a href=\"/NoticeList.aspx\" class=\"more\">更多 ></a></div>", list[0].ArticleID, list[0].ArticleTitle); } }
/// <summary> /// 初始化页面 /// </summary> private void PageInit() { EyouSoft.Model.TravelArticleOrderBy orderBy = new EyouSoft.Model.TravelArticleOrderBy(); orderBy.FiledOrder = Eyousoft_yhq.Model.TravelArticleFiledOrder.IssueTime; orderBy.OrderBy = Eyousoft_yhq.Model.OrderBy.DESC; List <EyouSoft.Model.TravelArticleOrderBy> orderBys = new List <EyouSoft.Model.TravelArticleOrderBy>(); orderBys.Add(orderBy); EyouSoft.Model.MTravelArticleCX chaxun = new EyouSoft.Model.MTravelArticleCX(); chaxun.IsSystem = new Eyousoft_yhq.Model.ArticleType[] { Eyousoft_yhq.Model.ArticleType.公告 }; IList <EyouSoft.Model.MTravelArticle> list = new EyouSoft.BLL.OtherStructure.BTravelArticle().GetTopList(1, chaxun, orderBys); if (list != null && list.Count > 0) { lbltext.Text = string.Format(" <div class=\"hot\"><a href=\"/NoticeInfo.aspx?NotIceId={0}\"><b>公告:</b>{1}</a><a href=\"/NoticeList.aspx\" class=\"more\">更多 ></a></div>", list[0].ArticleID, list[0].ArticleTitle); } }
protected void InitList() { EyouSoft.Model.TravelArticleOrderBy orderBy = new EyouSoft.Model.TravelArticleOrderBy(); orderBy.FiledOrder = Eyousoft_yhq.Model.TravelArticleFiledOrder.IssueTime; orderBy.OrderBy = Eyousoft_yhq.Model.OrderBy.DESC; List<EyouSoft.Model.TravelArticleOrderBy> orderBys = new List<EyouSoft.Model.TravelArticleOrderBy>(); orderBys.Add(orderBy); EyouSoft.Model.MTravelArticleCX chaxun = new EyouSoft.Model.MTravelArticleCX(); chaxun.IsSystem = new Eyousoft_yhq.Model.ArticleType[] { Eyousoft_yhq.Model.ArticleType.公告 }; pageIndex = UtilsCommons.GetPagingIndex("Page"); IList<EyouSoft.Model.MTravelArticle> list = new EyouSoft.BLL.OtherStructure.BTravelArticle().GetList(pageSize, pageIndex, ref recordCount, chaxun, orderBys); UtilsCommons.Paging(pageSize, ref pageIndex, recordCount); string pagingScript = "pagingConfig.pageSize={0};pagingConfig.pageIndex={1};pagingConfig.recordCount={2};"; if (list != null && list.Count > 0) { rpt_Notices.DataSource = list; rpt_Notices.DataBind(); } RegisterScript(string.Format(pagingScript, pageSize, pageIndex, recordCount)); }
protected void InitList() { EyouSoft.Model.TravelArticleOrderBy orderBy = new EyouSoft.Model.TravelArticleOrderBy(); orderBy.FiledOrder = Eyousoft_yhq.Model.TravelArticleFiledOrder.IssueTime; orderBy.OrderBy = Eyousoft_yhq.Model.OrderBy.DESC; List <EyouSoft.Model.TravelArticleOrderBy> orderBys = new List <EyouSoft.Model.TravelArticleOrderBy>(); orderBys.Add(orderBy); EyouSoft.Model.MTravelArticleCX chaxun = new EyouSoft.Model.MTravelArticleCX(); chaxun.IsSystem = new Eyousoft_yhq.Model.ArticleType[] { Eyousoft_yhq.Model.ArticleType.公告 }; pageIndex = UtilsCommons.GetPagingIndex("Page"); IList <EyouSoft.Model.MTravelArticle> list = new EyouSoft.BLL.OtherStructure.BTravelArticle().GetList(pageSize, pageIndex, ref recordCount, chaxun, orderBys); UtilsCommons.Paging(pageSize, ref pageIndex, recordCount); string pagingScript = "pagingConfig.pageSize={0};pagingConfig.pageIndex={1};pagingConfig.recordCount={2};"; if (list != null && list.Count > 0) { rpt_Notices.DataSource = list; rpt_Notices.DataBind(); } RegisterScript(string.Format(pagingScript, pageSize, pageIndex, recordCount)); }