binxie
2024-01-20 e0de9222da210f9c8eb1a9f5400f936a14923e11
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
<?xml version="1.0" encoding="UTF-8"?>
<WebLink xmlns="http://soap.sforce.com/2006/04/metadata">
    <fullName>NewAgencyContract</fullName>
    <availability>online</availability>
    <description>UTF8对应前
/* 经营企划特约店管理成员 or 系统管理员 */
if (&apos;{!$User.Id}&apos; == &apos;00510000002YSBI&apos;
        || &apos;{!$User.ProfileId}&apos; == &apos;00e10000000Y3o5&apos;
) {
    alert(&apos;会自动分配新建合同的客户编码,保留旧编码的时候请用复制合同。&apos;);
    var newUrl = &quot;/001/e?retURL=%2F{!Account.Id}&quot; + 
&quot;&amp;RecordType=01210000000QjCN&quot; +
&quot;&amp;acc3_lkid={!Account.Id}&quot; + 
&quot;&amp;acc3={!HTMLENCODE(Account.Name)}&quot; +
&quot;&amp;CF00N10000002FDYW_lkid={!Account.Id}&quot; +
&quot;&amp;CF00N10000002FDYW={!HTMLENCODE(Account.Name)}&quot; +
&quot;&amp;acc2=*&quot;;
    if (window.top == window.self) {
        location.href = newUrl;
    } else {
        top.location.href = newUrl;
    }
} else {
    alert(&apos;没有新建的权限&apos;);
}</description>
    <displayType>massActionButton</displayType>
    <linkType>javascript</linkType>
    <masterLabel>新建合同</masterLabel>
    <openType>onClickJavaScript</openType>
    <protected>false</protected>
    <requireRowSelection>false</requireRowSelection>
    <url>/* 经营企划特约店管理成员 or 系统管理员 */
if (&apos;{!$User.Id}&apos; == &apos;00510000002YSBI&apos;
        || &apos;{!$User.ProfileId}&apos; == &apos;00e10000000Y3o5&apos;
) {
    alert(&apos;会自动分配新建合同的客户编码,保留旧编码的时候请用复制合同。&apos;);
    var newUrl = &quot;/001/e?retURL=%2F{!Account.Id}&quot; + 
&quot;&amp;RecordType=01210000000QjCN&quot; +
&quot;&amp;acc3_lkid={!Account.Id}&quot; + 
&quot;&amp;acc3={!URLENCODE(Account.Name)}&quot; +
&quot;&amp;CF00N10000002FDYW_lkid={!Account.Id}&quot; +
&quot;&amp;CF00N10000002FDYW={!URLENCODE(Account.Name)}&quot; +
&quot;&amp;acc2=*&quot;;
    if (window.top == window.self) {
        location.href = newUrl;
    } else {
        top.location.href = newUrl;
    }
} else {
    alert(&apos;没有新建的权限&apos;);
}</url>
</WebLink>