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 SendAllIntPrint : BasePage
|
{
|
OA_CustomerAccessRecordBLL _OA_CustomerAccessRecordBLL = null;
|
OA_StaffBLL _OA_StaffBLL = null;
|
Sys_DictionaryBLL bll_Sys_DictionaryBLL = null;
|
|
public SendAllIntPrint()
|
{
|
_OA_StaffBLL = new OA_StaffBLL();
|
_OA_CustomerAccessRecordBLL = new OA_CustomerAccessRecordBLL();
|
bll_Sys_DictionaryBLL = new Sys_DictionaryBLL();
|
}
|
|
protected void Page_Load(object sender, EventArgs e)
|
{
|
if (!IsPostBack)
|
{
|
InitialSel();
|
BindList();
|
}
|
}
|
|
protected void InitialSel()
|
{
|
this.selStatus.DataSource = bll_Sys_DictionaryBLL.GetDataByType("员工在职状态");
|
this.selStatus.DataTextField = "Name";
|
this.selStatus.DataValueField = "Name";
|
this.selStatus.DataBind();
|
this.selStatus.Items.Insert(0, new ListItem("全部", ""));
|
this.selStatus.Value = "在职";
|
|
//this.dwStuffList.DataSource = _OA_StaffBLL.SelectListByFirmId(CurrentUser.MemberId, true, true);
|
//this.dwStuffList.DataValueField = "Keyid";
|
//this.dwStuffList.DataTextField = "Name";
|
//this.dwStuffList.DataBind();
|
//this.dwStuffList.Items.Insert(0, new ListItem("全部", ""));
|
}
|
|
/// <summary>
|
/// 加载全部数据
|
/// </summary>
|
private void BindList()
|
{
|
try
|
{
|
Pagination pa = new Pagination();
|
pa.PageSize = 500;
|
pa.PageIndex = 1;
|
this.RepCustomerList.DataSource = _OA_CustomerAccessRecordBLL.getAllIntentionAccessList(pa, CurrentUser.MemberId, this.txtMemberName.Value, this.selStatus.Value, this.txtStartTime.Value.ToDateTime2(), this.txtEndTime.Value.ToDateTime2());
|
this.RepCustomerList.DataBind();
|
|
OA_CustomerAccessRecord m_OA_CustomerAccessRecord = _OA_CustomerAccessRecordBLL.SumAllIntentionAccessList(pa, CurrentUser.MemberId, this.txtMemberName.Value, this.selStatus.Value, this.txtStartTime.Value.ToDateTime2(), this.txtEndTime.Value.ToDateTime2());
|
if (m_OA_CustomerAccessRecord != null)
|
{
|
this.SumAllCustom.InnerText = (m_OA_CustomerAccessRecord.AllCustom ?? 0).ToString("0");
|
this.SumAllIntention.InnerText = (m_OA_CustomerAccessRecord.AllIntention ?? 0).ToString("0");
|
this.SumNupdoor.InnerText = (m_OA_CustomerAccessRecord.Nupdoor ?? 0).ToString("0");
|
this.SumNphone.InnerText = (m_OA_CustomerAccessRecord.Nphone ?? 0).ToString("0");
|
this.SumNqq.InnerText = (m_OA_CustomerAccessRecord.Nqq ?? 0).ToString("0");
|
this.SumNmessage.InnerText = (m_OA_CustomerAccessRecord.Nmessage ?? 0).ToString("0");
|
this.SumNDirectMail.InnerText = (m_OA_CustomerAccessRecord.NDirectMail ?? 0).ToString("0");
|
this.SumNemial.InnerText = (m_OA_CustomerAccessRecord.Nemial ?? 0).ToString("0");
|
this.SumNall.InnerText = (m_OA_CustomerAccessRecord.Nall ?? 0).ToString("0");
|
this.SumNowMoney.InnerText = (m_OA_CustomerAccessRecord.NowMoney ?? 0).ToString("0.00");
|
this.SumOldMoney.InnerText = (m_OA_CustomerAccessRecord.OldMoney ?? 0).ToString("0.00");
|
this.SumAllMoney.InnerText = (m_OA_CustomerAccessRecord.AllMoney ?? 0).ToString("0.00");
|
}
|
|
}
|
catch (Exception ex)
|
{
|
throw ex;
|
}
|
}
|
protected void search_Click(object sender, EventArgs e)
|
{
|
BindList();
|
}
|
}
|
}
|