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 CY.BLL.OA; namespace CY.WebForm.Pages.business { public partial class xiaoshouyejiKehu : BasePage { OA_CorporateClientsBLL bll_OA_CorporateClientsBLL = null; Sys_DictionaryBLL _Sys_DictionaryBLL = null; OA_StaffBLL bll_OA_StaffBLL = null; OA_CustomerApplyBLL bll_OA_CustomerApplyBLL = null; EC_MemberBasicBLL bll_EC_MemberBasicBLL = null; Sys_CitySiteBLL bll_Sys_CitySiteBLL = null; //初始化 public xiaoshouyejiKehu() { _Sys_DictionaryBLL = new Sys_DictionaryBLL(); bll_OA_CorporateClientsBLL = new OA_CorporateClientsBLL(); bll_OA_StaffBLL = new OA_StaffBLL(); bll_OA_CustomerApplyBLL = new OA_CustomerApplyBLL(); bll_EC_MemberBasicBLL = new EC_MemberBasicBLL(); bll_Sys_CitySiteBLL = new Sys_CitySiteBLL(); } //页面加载 protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { BindList(); } } //绑定列表 private void BindList() { string BusinessManagerId = Request["BusinessManagerId"]; string chaxuntime = Request["chaxuntime"]; string leixing = Request["leixing"]; DateTime datebegin = DateTime.Parse(chaxuntime); DateTime dateend = datebegin.AddMonths(1); Pagination pa = new Pagination(); pa.PageSize = 10000; pa.PageIndex = 1; if(leixing== "gendan") { this.RepClientList.DataSource = bll_OA_CorporateClientsBLL.GetModelPageList(pa, CurrentUser.MemberId, "", null, null, "", BusinessManagerId, "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", false, CurrentUser.TrueMemberId, CurrentUser.StaffId, "").Where(x => (x.Shifouwanjie == null || x.Shifouwanjie == 2) && x.CreateTime < dateend); this.RepClientList.DataBind(); } else if (leixing == "xinzeng") { this.RepClientList.DataSource = bll_OA_CorporateClientsBLL.GetModelPageList(pa, CurrentUser.MemberId, "", null, null, "", BusinessManagerId, "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", false, CurrentUser.TrueMemberId, CurrentUser.StaffId, "").Where(x =>x.CreateTime>= datebegin && x.CreateTime < dateend); this.RepClientList.DataBind(); } } } }