高章伟
2022-03-10 8db20630a2675ca14e03ccdee91c614397b5c964
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
<?xml version="1.0" encoding="UTF-8"?>
<WebLink xmlns="http://soap.sforce.com/2006/04/metadata">
    <fullName>RelateOpp</fullName>
    <availability>online</availability>
    <description>window.open (&apos;/apex/Enquiry?id=&apos;+url, &apos;&apos;, &apos;height=300, width=600, top=300, left=350,location=no&apos;);</description>
    <displayType>button</displayType>
    <linkType>javascript</linkType>
    <masterLabel>关联已有询价</masterLabel>
    <openType>onClickJavaScript</openType>
    <protected>false</protected>
    <url>function RelateOpp(){
 
var ProfileId = &quot;{!$Profile.Id}&quot;;
if( ProfileId!= &apos;00e1m000000MSci&apos;
// 系统管理员
&amp;&amp; ProfileId!= &apos;00e10000000Y3o5&apos;
// 2s1
&amp;&amp; ProfileId!= &apos;00e10000000xnp2&apos; &amp;&amp; ProfileId!= &apos;00e10000000xzQ0&apos;
 
// 2s2
&amp;&amp; ProfileId!= &apos;00e10000000xnp7&apos;&amp;&amp; ProfileId!= &apos;00e10000001220i&apos;
 
// 2s4
&amp;&amp; ProfileId!= &apos;00e10000000xnpH&apos; &amp;&amp; ProfileId!= &apos;00e10000000xzQA&apos;
 
&amp;&amp; ProfileId!= &apos;00e10000000hkas&apos;
 
// 2s6
&amp;&amp; ProfileId!= &apos;00e10000000xnpR&apos; &amp;&amp; ProfileId!= &apos;00e10000000xyK6&apos;
 
// 2s7
&amp;&amp; ProfileId!= &apos;00e10000000xnpW&apos;
 
){
    alert(&apos;只有担当和助理才能关联询价!&apos;);
   return;
 
 
 
url = window.location.pathname;
            url = url.substring(url.lastIndexOf(&apos;/&apos;) + 1, url.length);
window.open (&apos;/apex/Enquiry?id=&apos;+url, &apos;_blank&apos;);
}
RelateOpp();</url>
</WebLink>