binxie
2024-01-20 1d91be0be5220ce19ee64de5a5c9a8237b1c15b1
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
<?xml version="1.0" encoding="UTF-8"?>
<WebLink xmlns="http://soap.sforce.com/2006/04/metadata">
    <fullName>AgencyContractClone</fullName>
    <availability>online</availability>
    <description>复制经销商合同
UTF8修改前
{!RequireScript(&quot;/soap/ajax/26.0/connection.js&quot;)}
{!RequireScript(&quot;/soap/ajax/26.0/apex.js&quot;)} 
 
if (&apos;{!$User.Id}&apos; == &apos;00510000002YSBI&apos;
    || &apos;{!$User.Id}&apos; == &apos;00510000004PMMc&apos;
    || &apos;{!$User.Id}&apos; == &apos;00510000006Vsuo&apos;
    || &apos;{!$User.ProfileId}&apos; == &apos;00e10000000Y3o5&apos;
    || &apos;{!$User.ProfileId}&apos; == &apos;00e10000000tiSl&apos;) {
    window.open(&quot;/{!Account.Id}/e?clone=1&amp;retURL=%2F{!Account.Id}&quot;);
} else {
    alert(&apos;没有复制经销商合同的权限&apos;);
}</description>
    <displayType>button</displayType>
    <linkType>javascript</linkType>
    <masterLabel>复制合同</masterLabel>
    <openType>onClickJavaScript</openType>
    <protected>false</protected>
    <url>{!RequireScript(&quot;/soap/ajax/51.0/connection.js&quot;)}
{!RequireScript(&quot;/soap/ajax/51.0/apex.js&quot;)} 
 
if (&apos;{!$User.Id}&apos; == &apos;00510000002YSBI&apos;
    || &apos;{!$User.Id}&apos; == &apos;00510000004PMMc&apos;
    || &apos;{!$User.Id}&apos; == &apos;00510000006Vsuo&apos;
    || &apos;{!$User.ProfileId}&apos; == &apos;00e10000000Y3o5&apos;
    || &apos;{!$User.ProfileId}&apos; == &apos;00e10000000tiSl&apos;) {
    window.open(&quot;/{!Account.Id}/e?clone=1&amp;retURL=%2F{!URLENCODE(Account.Id)}&quot;);
} else {
    alert(&apos;没有复制经销商合同的权限&apos;);
}</url>
</WebLink>