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

📄 sourcelistcontrol.cs

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

    public class SourceListControl : BaseUserControl
    {
        protected Button BtnSearch;
        protected ObjectDataSource OdsSourceType;
        protected string openerInput;
        protected AspNetPager Pager;
        protected Repeater RptSource;
        protected Repeater RptSourceType;
        protected TextBox TxtSource;

        private void BindData()
        {
            IList<SourceInfo> list = Source.GetSourceList((this.Pager.CurrentPageIndex - 1) * this.Pager.PageSize, this.Pager.PageSize, 0, this.TxtSource.Text, BaseUserControl.RequestString("type"), true);
            this.Pager.RecordCount = Source.GetTotalOfSource(0, this.TxtSource.Text, BaseUserControl.RequestString("type"));
            this.Pager.PageSize = 10;
            this.RptSource.DataSource = list;
            this.RptSource.DataBind();
        }

        protected void Page_Load(object sender, EventArgs e)
        {
            this.BindData();
        }

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

⌨️ 快捷键说明

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