username@email.com
2025-05-21 a980cd04341d71216e0f59bd4b7327fe9fc50032
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
100
101
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.adminclient
{
    //吴辉
    //查看合作客户资料
    public partial class CorporateClientsDetail : BasePage
    {
        OA_CorporateClientsBLL bll_OA_CorporateClientsBLL = null;
        Sys_DictionaryBLL bll_Sys_DictionaryBLL = null;//字典业务逻辑操作类对象
        SysInquiry_PrintingTypeBLL bll_SysInquiry_PrintingTypeBLL = null;//印刷业务类型业务逻辑操作类对象
 
        //初始化
        public CorporateClientsDetail()
        {
            bll_OA_CorporateClientsBLL = new OA_CorporateClientsBLL();
            bll_Sys_DictionaryBLL = new Sys_DictionaryBLL();
            bll_SysInquiry_PrintingTypeBLL = new SysInquiry_PrintingTypeBLL();
        }
 
        //页面加载
        protected void Page_Load(object sender, EventArgs e)
        {
 
            if (Request["Keyid"] != null  || Request["MemberId"] != null)
            {
                OA_CorporateClients m_OA_CorporateClients = bll_OA_CorporateClientsBLL.GetModelDetail(Request["Keyid"].ToGuid2());
                if (m_OA_CorporateClients == null)
                {
                    m_OA_CorporateClients = bll_OA_CorporateClientsBLL.SelectModelByFirmIdandMemberId( CurrentUser.MemberId, Request["MemberId"].ToGuid2());
                }
 
                if (m_OA_CorporateClients != null)
                {
                    OA_CustomerCommunications m_OA_CustomerCommunications = bll_OA_CorporateClientsBLL.GetModel_CustomerCommunications(m_OA_CorporateClients.Keyid);
                    EC_AcceptWayByCustomers m_EC_AcceptWayByCustomers = bll_OA_CorporateClientsBLL.GetModel_AcceptWayByCustomers(m_OA_CorporateClients.Keyid);
 
                    #region 页面初始合作客户基础信息
                    this.spanSourcesInfoId.InnerText = m_OA_CorporateClients.SourcesInfoIdName.ToString2();
                    this.spanCustomerIndustriesId.InnerText = m_OA_CorporateClients.CustomerIndustriesIdName.ToString2();
                    this.spanCustomerTypeId.InnerText = m_OA_CorporateClients.CustomerTypeIdName.ToString2();
                    this.spanCreditId.InnerText = m_OA_CorporateClients.CreditIdName.ToString2();
                    this.spanDegreeImportanId.InnerText = m_OA_CorporateClients.DegreeImportanIdName.ToString2();
                    this.spanBusinessAnalysisId.InnerText = m_OA_CorporateClients.BusinessAnalysisIdName.ToString2();
 
                    this.spanBusinessManagerId.InnerText = m_OA_CorporateClients.BusinessmanagerName.ToString2();
                    this.spanAccountManagerId.InnerText = m_OA_CorporateClients.AccountmanagerName.ToString2();
 
                    //this.spanIsLoginCorporateWeb.InnerText = m_OA_CorporateClients.IsLoginCorporateWeb ? "允许" : "拒绝";
                    this.spanCompanyName.InnerText = m_OA_CorporateClients.CompanyName.ToString2();
                    //this.spanCorporateWebsite.InnerText = m_OA_CorporateClients.CorporateWebsite.ToString2();
                    //this.spanCredit.InnerText = m_OA_CorporateClients.Credit.ToDecimal2Yen();
                    //this.spanLoginPhone.InnerText = m_OA_CorporateClients.LoginPhone.ToString2();
                    this.spanBank.InnerText = m_OA_CorporateClients.Bank.ToString2();
                    this.spanTaxID.InnerText = m_OA_CorporateClients.TaxID.ToString2();
                    this.spanAccountID.InnerText = m_OA_CorporateClients.AccountID.ToString2();
                    this.spanRemark.InnerText = m_OA_CorporateClients.Remark.ToString2();
 
                    #endregion
 
                    #region 页面初始合作客户通讯信息
 
                    this.spanProvince.InnerText = (m_OA_CustomerCommunications.City.ToString2().IndexOf(m_OA_CustomerCommunications.Province.ToString2()) >= 0 ? "" : m_OA_CustomerCommunications.Province.ToString2());
                    this.spanCity.InnerText = (m_OA_CustomerCommunications.City.ToString2().IndexOf("其他") >= 0 ? "" : m_OA_CustomerCommunications.City.ToString2());
                    this.spanCounty.InnerText = m_OA_CustomerCommunications.County.ToString2();
                    this.spanDetailedAddress.InnerText = m_OA_CustomerCommunications.DetailedAddress.ToString2();
                    this.spanCompanyPhone.InnerText = m_OA_CustomerCommunications.CompanyPhone.ToString2();
                    this.spanPostcode.InnerText = m_OA_CustomerCommunications.Postcode.ToString2();
                    this.spanMobile.InnerText = m_OA_CustomerCommunications.Mobile.ToString2();
                    this.spanFax.InnerText = m_OA_CustomerCommunications.Fax.ToString2();
                    this.spanEmail.InnerText = m_OA_CustomerCommunications.Email.ToString2();
                    this.spanQQ.InnerText = m_OA_CustomerCommunications.QQ.ToString2();
                    this.spanLegalRepresentative.InnerText = m_OA_CustomerCommunications.LegalRepresentative.ToString2();
                    this.spanLegalMobile.InnerText = m_OA_CustomerCommunications.LegalMobile.ToString2();
                    this.spanLegalQQ.InnerText = m_OA_CustomerCommunications.LegalQQ.ToString2();
                    this.spanBusinessManagers.InnerText = m_OA_CustomerCommunications.BusinessManagers.ToString2();
                    this.spanManagersMobile.InnerText = m_OA_CustomerCommunications.ManagersMobile.ToString2();
                    this.spanManagersQQ.InnerText = m_OA_CustomerCommunications.ManagersQQ.ToString2();
                    this.spanFinancialOfficers.InnerText = m_OA_CustomerCommunications.FinancialOfficers.ToString2();
                    this.spanOfficersMobile.InnerText = m_OA_CustomerCommunications.OfficersMobile.ToString2();
                    this.spanOfficersQQ.InnerText = m_OA_CustomerCommunications.OfficersQQ.ToString2();
 
                    this.spanProvince.InnerText = m_OA_CustomerCommunications.Province.ToString2();
                    this.spanCity.InnerText = m_OA_CustomerCommunications.City.ToString2();
                    this.spanCounty.InnerText = m_OA_CustomerCommunications.County.ToString2();
                    #endregion
                }
            }
        }
    }
}