⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 authorlistcontrol.cs

📁 动易SiteFactory&#8482 网上商店系统1.0源代码
💻 CS
字号:
namespace PowerEasy.WebSite.Controls
{
    using PowerEasy.Accessories;
    using PowerEasy.Common;
    using PowerEasy.Controls;
    using PowerEasy.Web.UI;
    using System;
    using System.Web.UI.WebControls;

    public class AuthorListControl : BaseUserControl
    {
        protected string AuthorInput;
        protected int i;
        protected AspNetPager Pager;
        protected Repeater RepAuthors;
        protected Repeater RptAuthorType;

        private void AuthorsBindData(int listType, string searchType, string keyword)
        {
            this.RepAuthors.DataSource = Author.GetAuthorList((this.Pager.CurrentPageIndex - 1) * this.Pager.PageSize, this.Pager.PageSize, listType, searchType, keyword, true);
            this.Pager.RecordCount = Author.GetTotalOfAuthor(4, searchType, keyword);
            this.RepAuthors.DataBind();
        }

        protected void Page_Load(object sender, EventArgs e)
        {
            string searchType = BaseUserControl.RequestString("SearchType");
            string keyword = base.Request.Form["Author"];
            int listType = BaseUserControl.RequestInt32("ListType", 0);
            if (listType == 0)
            {
                listType = DataConverter.CLng(base.Request.Form["HdnListType"]);
            }
            this.RptAuthorType.DataSource = Choiceset.GetDictionaryFieldValueByName("PE_Author", "Type");
            this.RptAuthorType.DataBind();
            this.AuthorsBindData(listType, searchType, keyword);
        }

        protected void Pager_PageChanged(object src, PageChangedEventArgs e)
        {
            this.Pager.CurrentPageIndex = e.NewPageIndex;
            string searchType = BaseUserControl.RequestString("SearchType");
            string keyword = base.Request.Form["Author"];
            int listType = BaseUserControl.RequestInt32("ListType");
            this.AuthorsBindData(listType, searchType, keyword);
        }
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -