<?xml version="1.0" encoding="UTF-8"?> 
 | 
<WebLink xmlns="http://soap.sforce.com/2006/04/metadata"> 
 | 
    <fullName>Service_Follow</fullName> 
 | 
    <availability>online</availability> 
 | 
    <displayType>button</displayType> 
 | 
    <linkType>javascript</linkType> 
 | 
    <masterLabel>服务跟进</masterLabel> 
 | 
    <openType>onClickJavaScript</openType> 
 | 
    <protected>false</protected> 
 | 
    <url>{!REQUIRESCRIPT('/soap/ajax/51.0/connection.js')} 
 | 
{!REQUIRESCRIPT('/soap/ajax/51.0/apex.js')} 
 | 
var foo = function() { 
 | 
var Status = "{!Inquiry_form__c.Service_Status__c}"; 
 | 
var FSEOwner = "{!Inquiry_form__c.FSE_OwnerId__c}"; 
 | 
//alert( FSEOwner+'==='+"{!$User.Id}"); 
 | 
if(null!=FSEOwner && (FSEOwner=="{!$User.Id}" || "{!$User.Id}" == "00510000005sEEM")){ 
 | 
window.open ('/apex/ServiceFollowPage?id='+"{!Inquiry_form__c.Id}", '服务跟进', 
 | 
'height=400, width=700, top=200, left=400, toolbar=no, menubar=no, scrollbars=no, location=no, status=no'); 
 | 
}else{ 
 | 
alert("此按钮只有FSE可以点击!"); 
 | 
} 
 | 
} 
 | 
foo();</url> 
 | 
</WebLink> 
 |