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

📄 adminlist.cs

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

    public class AdminList : AdminPage
    {
        protected Button BtnSearch;
        protected DataList DlstAdmin;
        protected HtmlForm form1;
        private string m_AdminName;
        protected string m_JsFunctionName;
        private int m_OperateCode = -1;
        protected AspNetPager Pager;
        protected TextBox TxtKeyWord;

        protected void BtnSearch_Click(object sender, EventArgs e)
        {
            this.m_AdminName = this.TxtKeyWord.Text;
            this.DlstAdminBind();
        }

        private void DlstAdminBind()
        {
            IList<AdministratorInfo> list = new List<AdministratorInfo>();
            if ((this.m_OperateCode != -1) && string.IsNullOrEmpty(this.m_AdminName))
            {
                list = Administrators.GetAdminListByOperateCode((this.Pager.CurrentPageIndex - 1) * this.Pager.PageSize, this.Pager.PageSize, this.m_OperateCode);
            }
            else
            {
                list = Administrators.GetAdminList((this.Pager.CurrentPageIndex - 1) * this.Pager.PageSize, this.Pager.PageSize, this.m_AdminName);
            }
            this.DlstAdmin.DataSource = list;
            this.Pager.RecordCount = Administrators.GetTotalOfAdmin();
            this.DlstAdmin.DataBind();
        }

        protected void Page_Load(object sender, EventArgs e)
        {
            if (string.Compare(BasePage.RequestString("OperateCode"), "OrderManage", true) == 0)
            {
                this.m_OperateCode = 0x614719c;
            }
            this.m_JsFunctionName = BasePage.RequestString("JsFunctionName", "SelectAdmin");
            if (!this.Page.IsPostBack)
            {
                this.DlstAdminBind();
            }
        }

        protected void Pager_PageChanged(object src, PageChangedEventArgs e)
        {
            this.Pager.CurrentPageIndex = e.NewPageIndex;
            this.DlstAdminBind();
        }
    }
}

⌨️ 快捷键说明

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