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.Model; using CY.Infrastructure.Query; using CY.Infrastructure.Common; namespace CY.WebForm.Pages.sysglobal { //吴辉 //城市区域管理 public partial class CitySiteList : BasePage { Sys_CitySiteBLL bll_Sys_CitySiteBLL = null; //初始化 public CitySiteList() { bll_Sys_CitySiteBLL = new Sys_CitySiteBLL(); } //页面加载 protected void Page_Load(object sender, EventArgs e) { this.UCPager1.AspNetPager.PageChanged += new EventHandler(AspNetPager1_PageChanged); if (!IsPostBack) { BindList(); } } /// /// 绑定数据 /// private void BindList() { Pagination pa = new Pagination(); pa.PageSize = UCPager1.AspNetPager.PageSize; pa.PageIndex = UCPager1.AspNetPager.CurrentPageIndex; this.Repeater1.DataSource = bll_Sys_CitySiteBLL.GetModelPageList(pa); this.Repeater1.DataBind(); UCPager1.AspNetPager.RecordCount = pa.RecordCount; } //分页事件 protected void AspNetPager1_PageChanged(object src, EventArgs e) { BindList(); } } }