private void BindData(int articletype, int pageno, string title) { ArticleQuery entity = new ArticleQuery { Title = title, ArticleType = articletype, SortBy = "PubTime", SortOrder = SortAction.Desc }; Globals.EntityCoding(entity, true); entity.PageIndex = pageno; entity.PageSize = this.pager.PageSize; DbQueryResult articleRequest = ArticleHelper.GetArticleRequest(entity); this.rptList.DataSource = articleRequest.Data; this.rptList.DataBind(); int totalRecords = articleRequest.TotalRecords; this.pager.TotalRecords = totalRecords; this.recordcount = totalRecords; if (this.pager.TotalRecords <= this.pager.PageSize) { this.pager.Visible = false; } }
private void BindData(int articletype, int pageno, string title) { ArticleQuery articleQuery = new ArticleQuery(); articleQuery.Title = title; articleQuery.ArticleType = articletype; if (articletype == 1) { articleQuery.ArticleType = 0; articleQuery.IsShare = 1; } articleQuery.SortBy = "PubTime"; articleQuery.SortOrder = SortAction.Desc; Globals.EntityCoding(articleQuery, true); articleQuery.PageIndex = pageno; articleQuery.PageSize = this.pager.PageSize; DbQueryResult articleRequest = ArticleHelper.GetArticleRequest(articleQuery); this.rptList.DataSource = articleRequest.Data; this.rptList.DataBind(); int totalRecords = articleRequest.TotalRecords; this.pager.TotalRecords = totalRecords; this.recordcount = totalRecords; if (this.pager.TotalRecords <= this.pager.PageSize) { this.pager.Visible = false; } }
private void BindData() { ArticleQuery articleQuery = new ArticleQuery(); articleQuery.SortBy = "ArticleId"; articleQuery.SortOrder = SortAction.Desc; Globals.EntityCoding(articleQuery, true); articleQuery.PageIndex = this.pager.PageIndex; articleQuery.PageSize = this.pager.PageSize; articleQuery.IsShare = 1; DbQueryResult articleRequest = ArticleHelper.GetArticleRequest(articleQuery); this.refriendscircle.DataSource = articleRequest.Data; this.refriendscircle.DataBind(); this.pager.TotalRecords = articleRequest.TotalRecords; }
private void BindData() { ArticleQuery entity = new ArticleQuery { SortBy = "ArticleId", SortOrder = SortAction.Asc }; Globals.EntityCoding(entity, true); entity.PageIndex = this.pager.PageIndex; entity.PageSize = this.pager.PageSize; DbQueryResult articleRequest = ArticleHelper.GetArticleRequest(entity); this.refriendscircle.DataSource = articleRequest.Data; this.refriendscircle.DataBind(); this.pager.TotalRecords = articleRequest.TotalRecords; if (this.pager.TotalRecords <= this.pager.PageSize) { this.pager.Visible = false; } }
public DbQueryResult GetGraphicesTable(HttpContext context) { return(ArticleHelper.GetArticleRequest(this.GetGraphiceSearch(context))); }