username@email.com
2025-05-14 99ddfbcecf0fa2881eb3a91028257eef87dab6de
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
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.OA;
using CY.BLL.Sys;
 
 
namespace CY.WebForm.Pages.business
{
    //吴辉
    //访问记录
    public partial class CustomerAccessRecordDetailList : BasePage
    {
        OA_CustomerAccessRecordBLL _OA_CustomerAccessRecordBLL = null;
        OA_StaffBLL bll_OA_StaffBLL = null;
        Sys_DictionaryBLL bll_Sys_DictionaryBLL = null;
 
        public CustomerAccessRecordDetailList()
        {
            _OA_CustomerAccessRecordBLL = new OA_CustomerAccessRecordBLL();
            bll_OA_StaffBLL = new OA_StaffBLL();
            bll_Sys_DictionaryBLL = new Sys_DictionaryBLL();
        }
 
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                InitialSelectData();
                BindList();
            }
        }
 
        protected void InitialSelectData()
        {
 
            this.selSourcesInfoId.DataSource = bll_Sys_DictionaryBLL.GetDataByType("客户访问类型");
            this.selSourcesInfoId.DataTextField = "Name";
            this.selSourcesInfoId.DataValueField = "MeanValue";
            this.selSourcesInfoId.DataBind();
            this.selSourcesInfoId.Items.Insert(0, new ListItem("全部", ""));
 
            this.selAccountManagerId.DataSource = bll_OA_StaffBLL.SelectListByFirmId(CurrentUser.MemberId,true,true);
            this.selAccountManagerId.DataTextField = "Name";
            this.selAccountManagerId.DataValueField = "Keyid";
            this.selAccountManagerId.DataBind();
            this.selAccountManagerId.Items.Insert(0, new ListItem("全部", ""));
        }
 
        /// <summary>
        /// 加载全部数据
        /// </summary>
        private void BindList()
        {
            Pagination pa = new Pagination();
            pa.PageSize = int.MaxValue;
            pa.PageIndex = 1;
            this.RepFirmAccountIncomeListRecord.DataSource = _OA_CustomerAccessRecordBLL.SelectModelPage(pa, Request["Keyid"].ToString2(), Request["type"] == "cor" ? "True" : "False", CurrentUser.MemberId, this.selSourcesInfoId.Value, this.txtRegTimeStart.Value == null ? null : this.txtRegTimeStart.Value.ToDateTime2(), this.txtRegTimeEnd.Value == null ? null : this.txtRegTimeEnd.Value.ToDateTime2(), this.selAccountManagerId.Value);
            this.RepFirmAccountIncomeListRecord.DataBind();
        }
 
        protected void btn_Search_Click(object sender, EventArgs e)
        {
            BindList();
        }
 
    }
}