/// <summary> /// 初始化页面 /// </summary> protected void InitList() { Eyousoft_yhq.Model.SerProduct serModel = new Eyousoft_yhq.Model.SerProduct(); serModel.PType = Utils.GetInt(Utils.GetQueryStringValue("tp")); serModel.PurductName = Utils.GetQueryStringValue("keys"); serModel.SFTJ = Utils.GetInt(Utils.GetQueryStringValue("ishot")); serModel.DDXL = Utils.GetInt(Utils.GetQueryStringValue("sale")); serModel.SJPX = Utils.GetInt(Utils.GetQueryStringValue("issue")); serModel.JGPX = Utils.GetInt(Utils.GetQueryStringValue("price")); int Productype = Utils.GetInt(Utils.GetQueryStringValue("routype")); serModel.PurductType = Productype > 0 ? Productype.ToString() : ""; #region 输出样式 //tj = getClass(serModel.SFTJ); xl = getClass(serModel.DDXL); zx = getClass(serModel.SJPX); jg = getClass(serModel.JGPX); #endregion pageIndex = UtilsCommons.GetPagingIndex("Page"); IList <Eyousoft_yhq.Model.Product> list = new Eyousoft_yhq.BLL.Product().GetList(pageSize, pageIndex, ref recordCount, serModel); UtilsCommons.Paging(pageSize, ref pageIndex, recordCount); string pagingScript = "pagingConfig.pageSize={0};pagingConfig.pageIndex={1};pagingConfig.recordCount={2};"; if (list != null && list.Count > 0) { rpt_products.DataSource = list; rpt_products.DataBind(); } RegisterScript(string.Format(pagingScript, pageSize, pageIndex, recordCount)); }
private void PageInit() { pageindex = Utils.GetInt(Utils.GetQueryStringValue("page"), 1); var list = new BLL.OtherStructure.BArticleClass().GetList(pagesize, pageindex, ref pagecount, null); UtilsCommons.Paging(pagesize, ref pageindex, pagecount); rptList.DataSource = list; rptList.DataBind(); BindExportPage(); }
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)); }