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.member
|
{
|
//吴辉
|
//新闻信息
|
public partial class PromotionMemberList : BasePage
|
{
|
Sys_DictionaryBLL bll_Sys_DictionaryBLL = null;
|
EC_MemberBasicBLL bll_EC_MemberBasicBLL = null;
|
public string Province = ""; //接收值 Request["selectProvince"].ToString2();
|
public string City = "";//接收值 Request["selectCity"].ToString2();
|
public string County = "";//接收值 Request["selectCounty"].ToString2();
|
|
//初始化
|
public PromotionMemberList()
|
{
|
bll_Sys_DictionaryBLL = new Sys_DictionaryBLL();
|
bll_EC_MemberBasicBLL = new EC_MemberBasicBLL();
|
}
|
|
//页面加载
|
protected void Page_Load(object sender, EventArgs e)
|
{
|
UCPager1.AspNetPager.PageChanged += AspNetPager1_PageChanged;
|
Province = Request["selectProvince"].ToString2();
|
City = Request["selectCity"].ToString2();
|
County = Request["selectCounty"].ToString2();
|
if (!IsPostBack)
|
{
|
Province = CurrentUser.Province;
|
BindList();
|
InitialSelectData();
|
}
|
}
|
|
//加载查询条件
|
protected void InitialSelectData()
|
{
|
this.selMemberType.Items.Insert(0, new ListItem("全部", ""));
|
this.selMemberType.Items.Insert(1, new ListItem("印刷厂商", "印刷厂商"));
|
this.selMemberType.Items.Insert(2, new ListItem("个人网店", "个人网店"));
|
this.selMemberType.Items.Insert(3, new ListItem("买家会员", "买家会员"));
|
}
|
|
//绑定数据
|
private void BindList()
|
{
|
Pagination pa = new Pagination();
|
pa.PageSize = UCPager1.AspNetPager.PageSize;
|
pa.PageIndex = UCPager1.AspNetPager.CurrentPageIndex;
|
DateTime? RegStTime = this.txtRegTimeStart.Value == null ? null : this.txtRegTimeStart.Value.ToDateTime2();
|
DateTime? RegEnTime = this.txtRegTimeEnd.Value == null ? null : this.txtRegTimeEnd.Value.ToDateTime2();
|
this.RepClientList.DataSource = bll_EC_MemberBasicBLL.MyPromotionMemberList(pa, RegStTime, RegEnTime, Request["selectProvince"].ToString2(), Request["selectCity"].ToString2(), Request["selectCounty"].ToString2(), this.selMemberType.Value, this.txtCompanyName.Value, CurrentUser.MemberId);
|
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();
|
}
|
}
|
}
|