<?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 ('/apex/Enquiry?id='+url, '', 'height=300, width=600, top=300, left=350,location=no');</description>
|
<displayType>button</displayType>
|
<linkType>javascript</linkType>
|
<masterLabel>关联已有询价</masterLabel>
|
<openType>onClickJavaScript</openType>
|
<protected>false</protected>
|
<url>function RelateOpp(){
|
|
var ProfileId = "{!$Profile.Id}";
|
if( ProfileId!= '00e1m000000MSci'
|
// 系统管理员
|
&& ProfileId!= '00e10000000Y3o5'
|
// 2s1
|
&& ProfileId!= '00e10000000xnp2' && ProfileId!= '00e10000000xzQ0'
|
|
// 2s2
|
&& ProfileId!= '00e10000000xnp7'&& ProfileId!= '00e10000001220i'
|
|
// 2s4
|
&& ProfileId!= '00e10000000xnpH' && ProfileId!= '00e10000000xzQA'
|
|
&& ProfileId!= '00e10000000hkas'
|
|
// 2s6
|
&& ProfileId!= '00e10000000xnpR' && ProfileId!= '00e10000000xyK6'
|
|
// 2s7
|
&& ProfileId!= '00e10000000xnpW'
|
|
){
|
alert('只有担当和助理才能关联询价!');
|
return;
|
}
|
|
|
|
url = window.location.pathname;
|
url = url.substring(url.lastIndexOf('/') + 1, url.length);
|
window.open ('/apex/Enquiry?id='+url, '_blank');
|
}
|
RelateOpp();</url>
|
</WebLink>
|