Hidistro.UI.Web/Admin/Shop/GetArticles.cs
(开头部分) 9KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Text;
using System.Web.UI.WebControls;
using ASPNET.WebControls;
using ControlPanel.WeiBo;
using Hidistro.Core;
using Hidistro.Core.Entities;
using Hidistro.Core.Enums;
using Hidistro.Entities.Weibo;
using Hidistro.UI.ControlPanel.Utility;
namespace Hidistro.UI.Web.Admin.Shop
{
public class GetArticles : AdminPage
{
protected string ArticleTitle;
protected int articletype;
private int pageno;
protected Pager pager;
protected int recordcount;
protected Repeater rptList;
private string title;
protected GetArticles()
: base("m01", "dpp06")
{
this.ArticleTitle = string.Empty;
this.title = string.Empty;
}
private void BindData(int articletype, int pageno, string title)
{
ArticleQuery entity = new ArticleQuery
{
Title = title,
ArticleType = articletype
};
if (articletype == 1)
{
entity.ArticleType = 0;
entity.IsShare = 1;
}
entity.SortBy = "PubTime";
entity.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;
}
}
protected string FormatArticleShow(object articleId, object articletype, object title, object pubtime, object imgurl, object memo, object IsShare)
后面还有 116 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
