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; using CY.Infrastructure.Common; using CY.BLL.Sys; using CY.Model; namespace CY.WebForm.Pages.pay { //吴辉 //积分记录列表 public partial class MemberScoreList : BasePage { Pay_IncExpRecordBLL bll_Pay_IncExpRecordBLL = null; //Pay_ScoreRecordBLL bll_Pay_ScoreRecordBLL = null; //初始化 public MemberScoreList() { bll_Pay_IncExpRecordBLL = new Pay_IncExpRecordBLL(); } //页面加载 protected void Page_Load(object sender, EventArgs e) { UCPager1.AspNetPager.PageChanged += AspNetPager1_PageChanged; if (!IsPostBack) { this.hidFirmId.Value = this.CurrentUser.MemberId.ToString(); BindList(); } } //绑定数据 private void BindList() { Pagination pa = new Pagination(); pa.PageSize = UCPager1.AspNetPager.PageSize; pa.PageIndex = UCPager1.AspNetPager.CurrentPageIndex; this.RepClientList.DataSource = bll_Pay_IncExpRecordBLL.SelectAllModel(pa, CurrentPayAccount.Keyid, this.ddlTradingType.SelectedValue.ToInt32(), null, this.txtBeginData.Value.ToDateTime2(),this.txtEndDate.Value.ToDateTime2()); this.RepClientList.DataBind(); UCPager1.AspNetPager.RecordCount = pa.RecordCount; } //分页事件 protected void AspNetPager1_PageChanged(object src, EventArgs e) { BindList(); } //查询事件 protected void btn_Query_Click(object sender, EventArgs e) { BindList(); } } }