GWY
2022-05-16 a9baff8a4508c1850e650f68831d857b953eace4
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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
<apex:page Controller="TydelikeConController" sidebar="false" action="{!init}" id="Page">
    <apex:stylesheet value="{!URLFOR($Resource.blockUIcss)}"/>
    <apex:includeScript value="{!URLFOR($Resource.jquery183minjs)}"/>
    <apex:includeScript value="{!URLFOR($Resource.PleaseWaitDialog)}"/>
    <script>
    function saveJs() {
        /*var MobilePhoneD = j$(escapeVfId('Page:mainForm:saamvoegCon:' + ':con_CursoCode')).value();
        if (MobilePhoneD == '') {
            alert('手机号码不能为空');
        }else{*/
            blockme();
            save();  
        /*}*/
        
    }
    function cancelJs() {
        var baseUrl = '{!baseUrl}';
        url =baseUrl + '/apex/TydelikeAC';
        window.top.location.href = url;
    }
    </script>
 
    <apex:form id="mainForm">
        <apex:actionFunction action="{!save}" name="save" reRender="mainForm,message" oncomplete="unblockUI();"/>
 
        <apex:outputPanel id="message">
            <apex:messages styleClass="editListError"/>
        </apex:outputPanel>
        <apex:inputHidden id="baseUrl" value="{!baseUrl}"/>
 
        <apex:pageBlock id="saamvoegCon" title="合并联系人" tabStyle="Contact">
            <apex:pageBlockButtons location="top">
                <apex:commandButton style="width:50px"  value="保存" onclick="saveJs(); return false;"/>
                <apex:commandButton style="width:50px"  value="取消" onclick="cancelJs(); return false;"/>
            </apex:pageBlockButtons>
 
            <apex:pageBlockSection title="联系人信息" columns="2">
                <apex:pageBlockSectionItem >
                    <apex:outputLabel value="客户名" for="con_accName"/>
                    <apex:inputField value="{!con.AccountId}" id="con_accName" required="true"/>
                </apex:pageBlockSectionItem>
                <apex:pageBlockSectionItem >
                    <apex:outputLabel value="科室" for="con_Account"/>
                    <apex:inputField value="{!con.Department}" id="con_Account"/>
                </apex:pageBlockSectionItem>
                <apex:pageBlockSectionItem >
                    <apex:outputLabel value="手机." for="con_CurrencyIsoCode"/>
                    <apex:inputField value="{!con.MobilePhoneD__c}" id="con_CursoCode" required="true"/>
                </apex:pageBlockSectionItem>
                <apex:pageBlockSectionItem >
                    <apex:outputLabel value="职务." for="con_Type"/>
                    <apex:inputField value="{!con.TitleD__c}" id="con_Type"/>
                </apex:pageBlockSectionItem>
                <apex:pageBlockSectionItem >
                    <apex:outputLabel value="电话." for="con_BudgetAmount"/>
                    <apex:inputField value="{!con.PhoneD__c}" id="con_BudgetAmount"/>
                </apex:pageBlockSectionItem>
                <apex:pageBlockSectionItem >
                    <apex:outputLabel value="称谓" for="con_Amount1"/>
                    <apex:inputField value="{!con.Salutation}" id="con_Amount1"/>
                </apex:pageBlockSectionItem>
                <apex:pageBlockSectionItem >
                    <apex:outputLabel value="传真." for="con_Amount"/>
                    <apex:inputField value="{!con.FaxD__c}" id="con_Amount"/>
                </apex:pageBlockSectionItem>
                <apex:pageBlockSectionItem >
                    <apex:outputLabel value="姓氏" for="con_DealerSelectOwner1"/>
                    <apex:inputField value="{!con.lastname}" id="con_DealerSelectOwner1" required="true"/>
                </apex:pageBlockSectionItem>
                <apex:pageBlockSectionItem >
                    <apex:outputLabel value="其他电话." for="compo_con2"/>
                    <apex:inputField value="{!con.OtherPhoneD__c}" id="compo_con2"/>
                </apex:pageBlockSectionItem>
                <apex:pageBlockSectionItem >
                    <apex:outputLabel value="名字" for="con_DealerSelectOwner"/>
                    <apex:inputField value="{!con.firstname}" id="con_DealerSelectOwner"/>
                </apex:pageBlockSectionItem>
                <apex:pageBlockSectionItem >
                    <apex:outputLabel value="电子邮件." for="compo_con1"/>
                    <apex:inputField value="{!con.EmailD__c}" id="compo_con1"/>
                </apex:pageBlockSectionItem>
                <apex:pageBlockSectionItem >
                    <apex:outputLabel value="英文名" for="co123o_con1"/>
                    <apex:inputField value="{!con.ContactEnglishName__c}" id="yingwen_con1"/>
                </apex:pageBlockSectionItem>
            </apex:pageBlockSection>
 
            <apex:pageBlockSection title="地址信息" columns="1">
                <apex:pageBlockSectionItem >
                    <apex:outputLabel value="邮政编码." for="con_ExpectedOrderDate"/>
                    <apex:inputField value="{!con.PostcodeD__c}" id="con_ExpectedOrderDate" required="true"/>
                </apex:pageBlockSectionItem>
                <apex:pageBlockSectionItem >
                    <apex:outputLabel value="地址1." for="con_ExpectedDeiveryDae"/>
                    <apex:inputField value="{!con.Address1D__c}" id="cn_xpectedeliveryDate" required="true"/>
                </apex:pageBlockSectionItem>
                <apex:pageBlockSectionItem >
                    <apex:outputLabel value="地址2(其他地址)." for="con_ExpectedDeliverate"/>
                    <apex:inputField value="{!con.Address2D__c}" id="con_ExpectedliveryDate"/>
                </apex:pageBlockSectionItem>
                <apex:pageBlockSectionItem >
                    <apex:outputLabel value="地址3(其他地址)." for="con_ExpecteDeliveryDate"/>
                    <apex:inputField value="{!con.Address3D__c}" id="con_ExpectedDeliveryate"/>
                </apex:pageBlockSectionItem>
                <apex:pageBlockSectionItem >
                    <apex:outputLabel value="英文地址" for="con_yingeliveryDate"/>
                    <apex:inputField value="{!con.EnglishAddress__c}" id="con_eliveryDate"/>
                </apex:pageBlockSectionItem>
            </apex:pageBlockSection>
 
            <apex:pageBlockSection title="产品部分" columns="2">
                <apex:pageBlockSectionItem >
                    <apex:outputLabel value="BS" for="con_LeadSource"/>
                    <apex:inputField value="{!con.ProductSegmentBS__c}" id="con_LeadSource" />
                </apex:pageBlockSectionItem>
                <apex:pageBlockSectionItem >
                    <apex:outputLabel value="RVI" for="con_TradeType"/>
                    <apex:inputField value="{!con.ProductSegmentRVI__c}" id="con_TradeType" />
                </apex:pageBlockSectionItem>
                <apex:pageBlockSectionItem >
                    <apex:outputLabel value="IE" for="con_SalesChannel"/>
                    <apex:inputField value="{!con.ProductSegmentIE__c}" id="con_SalesChannel" />
                </apex:pageBlockSectionItem>
                <apex:pageBlockSectionItem >
                    <apex:outputLabel value="NDT" for="con_SalesChannel"/>
                    <apex:inputField value="{!con.ProductSegmentNDT__c}" id="con_SalesChannel" />
                </apex:pageBlockSectionItem>
                <apex:pageBlockSectionItem >
                    <apex:outputLabel value="ANI" for="con_SalesChannel"/>
                    <apex:inputField value="{!con.ProductSegmentANI__c}" id="con_SalesChannel" />
                </apex:pageBlockSectionItem>
            </apex:pageBlockSection>
 
            <apex:pageBlockSection title="系统信息" columns="1">
                <apex:pageBlockSectionItem >
                    <apex:outputLabel value="审批状态."/>
                    <apex:outputField value="{!con.StatusD__c}" id="con_CompetitorProduct"/>
                </apex:pageBlockSectionItem>
                <apex:pageBlockSectionItem >
                    <apex:outputLabel value="状态" for="con_CompetitorProductCode"/>
                    <apex:inputField value="{!con.ContactStatus__c}" id="con_CompetitorProductCode" required="true"/>
                </apex:pageBlockSectionItem>
                <apex:pageBlockSectionItem >
                    <apex:outputLabel value="取消原因." for="con_CompetitorProduct2"/>
                    <apex:inputField value="{!con.CancelReasonD__c}" id="con_CompetitorProduct2"/>
                </apex:pageBlockSectionItem>
            </apex:pageBlockSection>
 
            <apex:pageBlockSection title="备注" columns="2">
                <apex:pageBlockSectionItem >
                    <apex:outputLabel value="备注" for="con_Remark"/>
                    <apex:inputField value="{!con.Remark__c}" id="con_Remark" style="width: 75%;"/>
                </apex:pageBlockSectionItem>
            </apex:pageBlockSection>
 
        </apex:pageBlock>
    </apex:form>
</apex:page>