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; using CY.BLL.Sys; using System.Data; namespace CY.WebForm.Pages.business { //吴辉 //车辆配置管理 public partial class ShejijijianList : BasePage { OA_ShejijijianBLL bll_OA_ShejijijianBLLBLL = null; SysInquiry_PrintingTypeBLL _sysInquiry_PrintingTypeBLL = null; //初始化 public ShejijijianList() { bll_OA_ShejijijianBLLBLL = new OA_ShejijijianBLL(); _sysInquiry_PrintingTypeBLL = new SysInquiry_PrintingTypeBLL(); } //页面加载 protected void Page_Load(object sender, EventArgs e) { UCPager1.AspNetPager.PageChanged += AspNetPager1_PageChanged; if (!IsPostBack) { this.selDingdanleixing.DataSource = _sysInquiry_PrintingTypeBLL.SelectUsedModlesByFirm(CurrentUser.MemberId).OrderBy(x => x.orderNumHome); this.selDingdanleixing.DataBind(); this.selDingdanleixing.Items.Insert(0, new ListItem("请选择", "")); this.selDingdanleixing.Items.Add(new ListItem("其他", "-1")); BindList(); } if (Request["delete"] != null) { if (bll_OA_ShejijijianBLLBLL.DelAllModel(Request["delete"].ToString2(),CurrentUser.MemberId)) { JavaScript.MessageBox("删除成功", this, "window.location='/Pages/business/ShejijijianList.aspx'"); } else { JavaScript.MessageBox("删除失败", this); } } } //绑定数据 private void BindList() { Pagination pa = new Pagination(); pa.PageSize = UCPager1.AspNetPager.PageSize; pa.PageIndex = UCPager1.AspNetPager.CurrentPageIndex; this.RepClientList.DataSource = bll_OA_ShejijijianBLLBLL.SelectModelPage(pa, CurrentUser.MemberId,"","", this.selDingdanleixing.Value , this.selFengmianneiye.Value, this.selShejileixing.Value,0); this.RepClientList.DataBind(); UCPager1.AspNetPager.RecordCount = pa.RecordCount; } //分页事件 protected void AspNetPager1_PageChanged(object src, EventArgs e) { BindList(); } protected void btn_Search_Click(object sender, EventArgs e) { BindList(); } } }