Hidistro.UI.Web/Admin/Shop/SelectArtice.cs

(开头部分) 4KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Web.UI.HtmlControls;
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 SelectArtice : AdminPage
    {
        protected string ArticleTitle;
        protected int articletype;
        protected Button btnSearch;
        protected HtmlForm form1;
        protected string htmlMenuTitleAdd;
        private int pageno;
        protected Pager pager;
        protected int recordcount;
        protected Repeater rptList;
        private string title;
        protected TextBox txtSearchText;

        protected SelectArtice()
            : base("m01", "00000")
        {
            this.htmlMenuTitleAdd = string.Empty;
            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,
                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;
            }
        }

        protected void btnSearch_Click(object sender, EventArgs e)
后面还有 72 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。