username@email.com
2025-04-23 d34ca25b9754e49b2d1220ff9f0de6af9b734d99
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
95
96
97
98
99
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 IntentionCustomerDetail : BasePage
    {
        OA_IntentionCustomerBLL _OA_IntentionCustomerBLL = null;
        OA_IntentionCustomer intentionCustomer = null;
        OA_StaffBLL _OA_StaffBLL = null;
 
        public IntentionCustomerDetail()
        {
            _OA_StaffBLL = new OA_StaffBLL();
            intentionCustomer = new OA_IntentionCustomer();
            _OA_IntentionCustomerBLL = new OA_IntentionCustomerBLL();
        }
 
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                if (Request["Keyid"].ToInt32() > 0)
                {
 
                    BindIntentionCustomer();
                }
                else
                {
 
                    JavaScript.RefreshDIVOpener(this);
                }
            }
 
        }
 
        private void BindIntentionCustomer()
        {
            string Keyid = Request["Keyid"].ToString2();
            intentionCustomer = _OA_IntentionCustomerBLL.getSingleIntentionCustomer(Keyid);
 
            OA_Staff m_OA_Staff_account = _OA_StaffBLL.GetModelByKeyid(intentionCustomer.AccountManagerId);
            if (m_OA_Staff_account == null)
            {
                this.spanAccountManagerId.InnerText = "";
            }
            else
            {
                this.spanAccountManagerId.InnerText = m_OA_Staff_account.Name;
            }
 
            OA_Staff m_OA_Staff_Bussiness = _OA_StaffBLL.GetModelByKeyid(intentionCustomer.BusinessManagerId);
            if (m_OA_Staff_Bussiness == null)
            {
                this.spanBusinessManagerId.InnerText = "";
            }
            else
            {
                this.spanBusinessManagerId.InnerText = m_OA_Staff_Bussiness.Name;
            }
 
            this.spanTurnoverIntention.InnerText = intentionCustomer.TurnoverIntention.Name.ToString2();
            this.spanCustomerIndustriesId.InnerText = intentionCustomer.CustomerIndustries.Name.ToString2();
            this.spanCustomerStatus.InnerText = intentionCustomer.CustomerStatus.Name.ToString2();
            this.spanCustomerTypeId.InnerText = intentionCustomer.CustomerType.Name.ToString2();
            this.spanDegreeImportanId.InnerText = intentionCustomer.DegreeImportan.Name.ToString2();
            this.spanSourcesInfoId.InnerText = intentionCustomer.SourcesInfo.Name.ToString2();
            this.spanBusinessManagers.InnerText = intentionCustomer.BusinessManagers.ToString2();
            this.spanCompanyName.InnerText = intentionCustomer.CompanyName.ToString2();
            this.spanCompanyOfficers.InnerText = intentionCustomer.CompanyOfficers.ToString2();
            this.spanCompanyPhone.InnerText = intentionCustomer.PhoneNum.ToString2();
            this.spanCuPost.InnerText = intentionCustomer.CuPost.ToString2();
            this.spanDetailedAddress.InnerText = intentionCustomer.DetailedAddress.ToString2();
            this.spanEmail.InnerText = intentionCustomer.Email.ToString2();
            this.spanMobile.InnerText = intentionCustomer.MobileNum.ToString2();
            this.spanOfficersMobileD.InnerText = intentionCustomer.OfficersMobile.ToString2();
            this.spanQQ.InnerText = intentionCustomer.QQ.ToString2();
            this.spanRemark.InnerText = intentionCustomer.Remark.ToString2();
            this.spanPostcode.InnerText = intentionCustomer.Postcode.ToString2();
            this.spanProvince.InnerText = intentionCustomer.Province.ToString2();
            this.spanBusinessMobile.InnerText = intentionCustomer.BusinessMobile.ToString2();
            this.spanOperator.InnerText = intentionCustomer.Operator.ToString2();
            this.spanCity.InnerText = intentionCustomer.City.ToString2();
            this.spanCounty.InnerText = intentionCustomer.County.ToString2();
            this.spanCreateTime.InnerText = intentionCustomer.CreateTime.ToString2();
            this.spanLastUpdateTime.InnerText = intentionCustomer.LastUpdateTime.ToString2();
        }
    }
}