using System;
|
using System.Collections.Generic;
|
using System.Linq;
|
using System.Web;
|
using System.Web.UI;
|
using System.Web.UI.WebControls;
|
using CY.BLL;
|
using CY.Infrastructure.Query;
|
|
namespace CY.WebForm.Pages.Alliance
|
{
|
//吴辉
|
//网站联盟-最新上线列表
|
public partial class NewOnLineInfoList : System.Web.UI.Page
|
{
|
Info_AllianceBLL bll_Info_AllianceBLL = null;
|
Info_AllianceBasicBLL bll_Info_AllianceBasicBLL = null;
|
|
//初始化
|
public NewOnLineInfoList()
|
{
|
bll_Info_AllianceBLL = new Info_AllianceBLL();
|
bll_Info_AllianceBasicBLL = new Info_AllianceBasicBLL();
|
}
|
|
//页面加载
|
protected void Page_Load(object sender, EventArgs e)
|
{
|
UCPager1.AspNetPager.PageChanged += AspNetPager1_PageChanged;
|
if (!IsPostBack)
|
{
|
BindList();
|
}
|
}
|
//绑定数据
|
private void BindList()
|
{
|
Pagination pa1 = new Pagination();
|
pa1.PageSize = UCPager1.AspNetPager.PageSize;
|
pa1.PageIndex = UCPager1.AspNetPager.CurrentPageIndex;
|
this.RepClientList1.DataSource = bll_Info_AllianceBLL.SelectModelPage(pa1, "最新上线");
|
this.RepClientList1.DataBind();
|
UCPager1.AspNetPager.RecordCount = pa1.RecordCount;
|
}
|
|
//分页事件
|
protected void AspNetPager1_PageChanged(object src, EventArgs e)
|
{
|
BindList();
|
}
|
}
|
}
|