username@email.com
2025-05-15 6fe02a16e55f17e45a3997171e1b2284d45af25b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
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();
        }
    }
}