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.BLL.Sys; using CY.Model; using CY.Infrastructure.Query; using CY.Infrastructure.Common; namespace CY.WebForm.Pages.wage { //吴辉 //工作考评 public partial class WorkScoreList : BasePage { Sys_DictionaryBLL bll_Sys_DictionaryBLL = null; OA_WageAwardPunishBLL bll_OA_WageAwardPunishBLL = null; //初始化 public WorkScoreList() { bll_Sys_DictionaryBLL = new Sys_DictionaryBLL(); bll_OA_WageAwardPunishBLL = new OA_WageAwardPunishBLL(); } //页面加载 protected void Page_Load(object sender, EventArgs e) { UCPager1.AspNetPager.PageChanged += AspNetPager1_PageChanged; if (!IsPostBack) { BindList(); } } //绑定数据 private void BindList() { Pagination pa = new Pagination(); pa.PageSize = UCPager1.AspNetPager.PageSize; pa.PageIndex = UCPager1.AspNetPager.CurrentPageIndex; this.RepClientList.DataSource = bll_OA_WageAwardPunishBLL.SelectModelPage(pa, CurrentUser.MemberId, Request["gid"].ToGuid2(),"",this.txtRegTimeStart.Value.ToDateTime2(),this.txtRegTimeEnd.Value.ToDateTime2(),this.selIsFinish.Value.ToInt32(),"",null,null,null,null,""); this.RepClientList.DataBind(); UCPager1.AspNetPager.RecordCount = pa.RecordCount; } //分页事件 protected void AspNetPager1_PageChanged(object src, EventArgs e) { BindList(); } //查询事件 protected void btn_Search_Click(object src, EventArgs e) { BindList(); } } }