using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using CY.BLL.EC; namespace CY.WebForm.Pages.front { /* * 特价业务列表(前台展示) * * 作用:特价业务列表(前台展示) * 创建时间:2013-4-19 9:45 * 修改时间:2013-4-19 9:45 * 创建人:吴崎均 * 修改人:吴崎均 */ /// /// 特价业务列表(前台展示) /// public partial class SeckillBusinessList : FrontBasePage { private EC_SeckillBusinessBLL _eC_SeckillBusinessBLL = null;//特价秒杀业务逻辑操作对象 /// /// 初始化 /// public SeckillBusinessList() { _eC_SeckillBusinessBLL = new EC_SeckillBusinessBLL(); } protected void Page_Load(object sender, EventArgs e) { try { switch (Request["Target"]) { case "BatchDelete": break; default: UCPager1.AspNetPager.PageChanged += AspNetPager1_PageChanged; if (!IsPostBack && !IsCallback) { BingData(); } else { } return; } } catch (Exception ex) { PAGEHandleException(ex); Response.Clear(); Response.Write("-1"); } Response.End(); } /// /// 分页事件 /// /// /// protected void AspNetPager1_PageChanged(object src, EventArgs e) { BingData(); } /// /// 绑定数据 /// private void BingData() { Infrastructure.Query.Pagination pagination = new Infrastructure.Query.Pagination() { PageSize = UCPager1.AspNetPager.PageSize, PageIndex = UCPager1.AspNetPager.CurrentPageIndex }; rptData.DataSource = _eC_SeckillBusinessBLL.SelectModelPage(pagination, "", 0, null, null); UCPager1.AspNetPager.RecordCount = pagination.RecordCount; rptData.DataBind(); } } }