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
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
<apex:page Controller="TydelikeAccController" 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() {
        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="acc_accName"/>
                    <apex:inputField value="{!acc.FacilityNameD__c}" id="acc_accName" required="true"/>
                </apex:pageBlockSectionItem>
                <apex:pageBlockSectionItem >
                    <apex:outputLabel value="SAP编码" for="acc_Account"/>
                    <apex:outputField value="{!acc.ManagementCode_Ext__c}" id="acc_Account"/>
                </apex:pageBlockSectionItem>
                <apex:pageBlockSectionItem >
                    <apex:outputLabel value="英文名称." for="acc_CurrencyIsoCode"/>
                    <apex:inputField value="{!acc.EnglishNameD__c}" id="acc_CurrencyIsoCode"/>
                </apex:pageBlockSectionItem>
                <apex:pageBlockSectionItem >
                    <apex:outputLabel value="部门名称." for="acc_Type"/>
                    <apex:inputField value="{!acc.DivisionName_D__c}" id="acc_Type2" required="true"/>
                </apex:pageBlockSectionItem>
                <apex:pageBlockSectionItem >
                    <apex:outputLabel value="科室." for="acc_BudgetAmount"/>
                    <apex:inputField value="{!acc.DepartmentNameD__c}" id="acc_BudgetAmount" required="true"/>
                </apex:pageBlockSectionItem>
                <apex:pageBlockSectionItem >
                    <apex:outputLabel value="OCSM 服务担当姓名" for="acc_Amount1"/>
                    <apex:inputField value="{!acc.OCNServiceStaff__c}" id="acc_Amount1"/>
                </apex:pageBlockSectionItem>
                <apex:pageBlockSectionItem >
                    <apex:outputLabel value="全球客户名称    " for="acc_Amount"/>
                    <apex:inputField value="{!acc.GlobalAccountName__c}" id="acc_Amount"/>
                </apex:pageBlockSectionItem>
                <apex:pageBlockSectionItem >
                    <apex:outputLabel value="审批人" for="acc_DealerSelectOwner1"/>
                    <apex:inputField value="{!acc.DealerSelectOwner__c}" id="acc_DealerSelectOwner1" required="true"/>
                </apex:pageBlockSectionItem>
                <apex:pageBlockSectionItem >
                    <apex:outputLabel value="是否为OEM客户" for="compo_acc2"/>
                    <apex:inputField value="{!acc.Whether_OEM__c}" id="compo_acc2"/>
                </apex:pageBlockSectionItem>
            </apex:pageBlockSection>
 
            <apex:pageBlockSection title="客户地址信息" columns="2">
                <apex:pageBlockSectionItem >
                    <apex:outputLabel value="省" for="acc_accName"/>
                    <apex:inputField value="{!acc.Province__c}" id="acc_accName" required="true"/>
                </apex:pageBlockSectionItem>
                <apex:pageBlockSectionItem >
                    <apex:outputLabel value="邮编." for="acc_Account"/>
                    <apex:inputField value="{!acc.PostCodeD__c}" id="acc_Account"/>
                </apex:pageBlockSectionItem>
                <apex:pageBlockSectionItem >
                    <apex:outputLabel value="城市." for="acc_CurrencyIsoCode"/>
                    <apex:inputField value="{!acc.CityD__c}" id="acc_CurrencyIsoCode" required="true"/>
                </apex:pageBlockSectionItem>
                <apex:pageBlockSectionItem >
                    <apex:outputLabel value="电话." for="acc_Type"/>
                    <apex:inputField value="{!acc.PhoneD__c}" id="acc_Type"/>
                </apex:pageBlockSectionItem>
                <apex:pageBlockSectionItem >
                    <apex:outputLabel value="地址1." for="acc_BudgetAmount"/>
                    <apex:inputField value="{!acc.Address1D__c}" id="acc_BudgetAmount" required="true"/>
                </apex:pageBlockSectionItem>
                <apex:pageBlockSectionItem >
                    <apex:outputLabel value="传真." for="acc_Amount1"/>
                    <apex:inputField value="{!acc.FaxD__c}" id="acc_Amount1"/>
                </apex:pageBlockSectionItem>
                <apex:pageBlockSectionItem >
                    <apex:outputLabel value="网址." for="acc_Amount"/>
                    <apex:inputField value="{!acc.WebsiteD__c}" id="acc_Amount"/>
                </apex:pageBlockSectionItem>
            </apex:pageBlockSection>
 
            <apex:pageBlockSection title="客户附加信息" columns="2">
                <apex:pageBlockSectionItem >
                    <apex:outputLabel value="用户属性" for="acc_accName"/>
                    <apex:inputField value="{!acc.UserType__c}" id="acc_accName" required="true"/>
                </apex:pageBlockSectionItem>
                <apex:pageBlockSectionItem >
                    <apex:outputLabel value="关键客户" for="acc_Account"/>
                    <apex:inputField value="{!acc.KeyAccount__c}" id="acc_Account"/>
                </apex:pageBlockSectionItem>
                <apex:pageBlockSectionItem >
                    <apex:outputLabel value="产品分类" for="acc_CurrencyIsoCode"/>
                    <apex:inputField value="{!acc.ProductSegment__c}" id="acc_CurrencyIsoCode" required="true"/>
                </apex:pageBlockSectionItem>
                <apex:pageBlockSectionItem >
                    <apex:outputLabel value="出口限制用户" for="acc_Type"/>
                    <apex:inputField value="{!acc.ExportRegulatedCustomer__c}" id="acc_Type"/>
                </apex:pageBlockSectionItem>
                <apex:pageBlockSectionItem >
                    <apex:outputLabel value="市场分类." for="acc_BudgetAmount"/>
                    <apex:inputField value="{!acc.MarketVerticalsD__c}" id="acc_BudgetAmount" required="true"/>
                </apex:pageBlockSectionItem>
                <apex:pageBlockSectionItem >
                &nbsp;
                </apex:pageBlockSectionItem>
                <apex:pageBlockSectionItem >
                    <apex:outputLabel value="用途." for="acc_Amount1"/>
                    <apex:inputField value="{!acc.UseD__c}" id="acc_Amount1" required="true"/>
                </apex:pageBlockSectionItem>
                <apex:pageBlockSectionItem >
                &nbsp;
                </apex:pageBlockSectionItem>
                <apex:pageBlockSectionItem >
                    <apex:outputLabel value="行业1." for="acc_Amount"/>
                    <apex:inputField value="{!acc.IndustryBD__c}" id="acc_Amount" required="true"/>
                </apex:pageBlockSectionItem>
                <apex:pageBlockSectionItem >
                &nbsp;
                </apex:pageBlockSectionItem>
                <apex:pageBlockSectionItem >
                    <apex:outputLabel value="Sub Use." for="acc_Amount"/>
                    <apex:outputField value="{!acc.Sub_UseD__c}" id="acc_Amount"/>
                </apex:pageBlockSectionItem>
            </apex:pageBlockSection>
 
            <apex:pageBlockSection title="客户保有BS产品" columns="2">
                <apex:pageBlockSectionItem >
                    <apex:outputLabel value="Leica." for="acc_accName"/>
                    <apex:inputField value="{!acc.AssetBS3D__c}" id="acc_accName"/>
                </apex:pageBlockSectionItem>
                <apex:pageBlockSectionItem >
                    <apex:outputLabel value="Nikon." for="acc_Account"/>
                    <apex:inputField value="{!acc.AssetBS2D__c}" id="acc_Account"/>
                </apex:pageBlockSectionItem>
                <apex:pageBlockSectionItem >
                    <apex:outputLabel value="OLYMPUS." for="acc_CurrencyIsoCode"/>
                    <apex:inputField value="{!acc.AssetBS1D__c}" id="acc_CurrencyIsoCode"/>
                </apex:pageBlockSectionItem>
                <apex:pageBlockSectionItem >
                    <apex:outputLabel value="Others." for="acc_Type"/>
                    <apex:inputField value="{!acc.AssetBS5D__c}" id="acc_Type"/>
                </apex:pageBlockSectionItem>
                <apex:pageBlockSectionItem >
                    <apex:outputLabel value="Zeiss." for="acc_BudgetAmount"/>
                    <apex:inputField value="{!acc.AssetBS4D__c}" id="acc_BudgetAmount"/>
                </apex:pageBlockSectionItem>
            </apex:pageBlockSection>
 
            <apex:pageBlockSection title="客户系统信息" columns="2">
                <apex:pageBlockSectionItem >
                    <apex:outputLabel value="客户名"/>
                    <apex:inputField value="{!acc.Name}" id="acc_CompetitorProduct3"/>
                </apex:pageBlockSectionItem>
                <apex:pageBlockSectionItem >
                    <apex:outputLabel value="审批状态."/>
                    <apex:outputField value="{!acc.stautesD__c}" id="acc_CompetitorProduct"/>
                </apex:pageBlockSectionItem>
                <apex:pageBlockSectionItem >
                    <apex:outputLabel value="账户状态." for="acc_CompetitorProductCode"/>
                    <apex:inputField value="{!acc.AccountStatusD__c}" id="acc_CompetitorProductCode" required="true"/>
                </apex:pageBlockSectionItem>
                <apex:pageBlockSectionItem >
                    <apex:outputLabel value="取消原因." for="acc_CompetitorProduct2"/>
                    <apex:inputField value="{!acc.CancelReasonD__c}" id="acc_CompetitorProduct2"/>
                </apex:pageBlockSectionItem>
                <apex:pageBlockSectionItem >
                    <apex:outputLabel value="全国企业用户." for="acc_CompetitorProduct2"/>
                    <apex:outputField value="{!acc.NationalEnterpriseUser__c}" id="acc_CompetitorProduct2"/>
                </apex:pageBlockSectionItem>
            </apex:pageBlockSection>
 
            <apex:pageBlockSection title="客户备注" columns="2">
                <apex:pageBlockSectionItem >
                    <apex:outputLabel value="备注" for="acc_Remark"/>
                    <apex:inputField value="{!acc.Remark__c}" id="acc_Remark" style="width: 75%;"/>
                </apex:pageBlockSectionItem>
            </apex:pageBlockSection>
 
             <apex:outputPanel layout="none" rendered="{!if(tycoId == null || tycoId == '', false,true)}">
            <apex:pageBlockSection title="联系人信息" columns="2">
                <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_CurrencyIsoCode" 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_ExpctedOrdrDate"/>
                    <apex:inputField value="{!con.PostcodeD__c}" id="con_ExpectdOrdeDate" required="true"/>
                </apex:pageBlockSectionItem>
                <apex:pageBlockSectionItem >
                    <apex:outputLabel value="地址1." for="con_ExpctedDeliveryDte"/>
                    <apex:inputField value="{!con.Address1D__c}" id="on_ExpctedDeliveyDate" required="true"/>
                </apex:pageBlockSectionItem>
                <apex:pageBlockSectionItem >
                    <apex:outputLabel value="地址2(其他地址)." for="con_EpectedDeliveryDate"/>
                    <apex:inputField value="{!con.Address2D__c}" id="con_ExpectedDeleryDate"/>
                </apex:pageBlockSectionItem>
                <apex:pageBlockSectionItem >
                    <apex:outputLabel value="地址3(其他地址)." for="con_ExpecteDelivryDate"/>
                    <apex:inputField value="{!con.Address3D__c}" id="con_ExpeedDeliveryDate"/>
                </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:outputPanel>
 
            <apex:pageBlockButtons location="bottom">
                <apex:commandButton style="width:50px"  value="保存" onclick="saveJs(); return false;"/>
                <apex:commandButton style="width:50px"  value="取消" onclick="cancelJs(); return false;"/>
            </apex:pageBlockButtons>
        </apex:pageBlock>
    </apex:form>
</apex:page>