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;
|
|
namespace CY.WebForm.Pages.business
|
{
|
//吴辉
|
//合作客户-群发短信
|
public partial class SendAllCorEmail : BasePage
|
{
|
OA_CorporateClientsBLL bll_OA_CorporateClientsBLL = null;
|
Sys_DictionaryBLL _Sys_DictionaryBLL = null;
|
OA_StaffBLL bll_OA_StaffBLL = null;
|
public string Province = ""; //接收值 Request["selectProvince"].ToString2();
|
public string City = "";//接收值 Request["selectCity"].ToString2();
|
public string County = "";//接收值 Request["selectCounty"].ToString2();
|
//初始化
|
public SendAllCorEmail()
|
{
|
_Sys_DictionaryBLL = new Sys_DictionaryBLL();
|
bll_OA_CorporateClientsBLL = new OA_CorporateClientsBLL();
|
bll_OA_StaffBLL = new OA_StaffBLL();
|
}
|
|
//页面加载
|
protected void Page_Load(object sender, EventArgs e)
|
{
|
if (!IsPostBack)
|
{
|
BindList();
|
InitialSelectData();
|
}
|
}
|
|
protected void InitialSelectData()
|
{
|
|
this.selSourcesInfoId.DataSource = _Sys_DictionaryBLL.GetDataByType("客户来源");
|
this.selSourcesInfoId.DataBind();
|
this.selSourcesInfoId.Items.Insert(0, new ListItem("请选择", ""));
|
|
this.selCustomerIndustriesId.DataSource = _Sys_DictionaryBLL.GetDataByType("客户所属行业");
|
this.selCustomerIndustriesId.DataBind();
|
this.selCustomerIndustriesId.Items.Insert(0, new ListItem("请选择", ""));
|
|
this.selCustomerTypeId.DataSource = _Sys_DictionaryBLL.GetDataByType("客户类型");
|
this.selCustomerTypeId.DataBind();
|
this.selCustomerTypeId.Items.Insert(0, new ListItem("请选择", ""));
|
|
this.selDegreeImportanId.DataSource = _Sys_DictionaryBLL.GetDataByType("客户重要程度");
|
this.selDegreeImportanId.DataBind();
|
this.selDegreeImportanId.Items.Insert(0, new ListItem("请选择", ""));
|
|
this.selTurnoverIntentionId.DataSource = _Sys_DictionaryBLL.GetDataByType("客户信誉");
|
this.selTurnoverIntentionId.DataBind();
|
this.selTurnoverIntentionId.Items.Insert(0, new ListItem("请选择", ""));
|
|
this.selBusinessManagerId.DataSource = bll_OA_StaffBLL.SelectListByFirmId(CurrentUser.MemberId, true, false);
|
this.selBusinessManagerId.DataTextField = "Name";
|
this.selBusinessManagerId.DataValueField = "Keyid";
|
this.selBusinessManagerId.DataBind();
|
this.selBusinessManagerId.Items.Insert(0, new ListItem("请选择", ""));
|
|
this.selAccountManagerId.DataSource = bll_OA_StaffBLL.SelectListByFirmId(CurrentUser.MemberId, false, true);
|
this.selAccountManagerId.DataTextField = "Name";
|
this.selAccountManagerId.DataValueField = "Keyid";
|
this.selAccountManagerId.DataBind();
|
this.selAccountManagerId.Items.Insert(0, new ListItem("请选择", ""));
|
}
|
|
/// <summary>
|
/// 绑定数据
|
/// </summary>
|
private void BindList()
|
{
|
|
DateTime? beginTime = null;
|
DateTime? endTime = null;
|
Pagination pa = new Pagination();
|
pa.PageSize =int.MaxValue;
|
pa.PageIndex = 1;
|
this.RepClientList.DataSource = bll_OA_CorporateClientsBLL.GetModelPageList(pa,
|
CurrentUser.MemberId,
|
txtquery_userName.Value,
|
string.IsNullOrEmpty(this.txtRegTimeStart.Value) ? beginTime : Convert.ToDateTime(this.txtRegTimeStart.Value),
|
string.IsNullOrEmpty(this.txtRegTimeEnd.Value) ? endTime : Convert.ToDateTime(this.txtRegTimeEnd.Value),
|
selAccountManagerId.Value,
|
selBusinessManagerId.Value,
|
selCustomerIndustriesId.Value,
|
selCustomerTypeId.Value,
|
selDegreeImportanId.Value,
|
selLastOrderTime.Value,
|
selOrderCount.Value,
|
selOrderMoney.Value,
|
selSourcesInfoId.Value,
|
selTurnoverIntentionId.Value,
|
txtOrderCount.Value,
|
txtOrderMoney.Value,
|
txtUserNum.Value,
|
txtLastOrderTime.Value,
|
Request["selectProvince"].ToString2(), Request["selectCity"].ToString2(), Request["selectCounty"].ToString2(),
|
(CurrentUser.TrueType == "员工"),
|
CurrentUser.TrueMemberId,
|
CurrentUser.StaffId);
|
this.RepClientList.DataBind();
|
}
|
|
//分页事件
|
protected void AspNetPager1_PageChanged(object src, EventArgs e)
|
{
|
BindList();
|
}
|
|
protected void btn_Search_Click(object sender, EventArgs e)
|
{
|
BindList();
|
}
|
}
|
}
|