<?xml version="1.0" encoding="UTF-8"?> 
 | 
<WebLink xmlns="http://soap.sforce.com/2006/04/metadata"> 
 | 
    <fullName>new_opportunityfile</fullName> 
 | 
    <availability>online</availability> 
 | 
    <displayType>massActionButton</displayType> 
 | 
    <linkType>javascript</linkType> 
 | 
    <masterLabel>新建询价文件</masterLabel> 
 | 
    <openType>onClickJavaScript</openType> 
 | 
    <protected>false</protected> 
 | 
    <requireRowSelection>false</requireRowSelection> 
 | 
    <url>var status = '{!Opportunity.Stock_apply_status__c}'; 
 | 
if (status == '批准') { 
 | 
  alert('备货审批已经批准,不能添加新询价文件。'); 
 | 
} else { 
 | 
  window.top.location.href = '/a2c/e?CF00N100000072rn8={!Opportunity.Name}' + '&CF00N100000072rn8_lkid={!Opportunity.Id}' + 
 | 
'&retURL=%2F{!Opportunity.Id}'; 
 | 
}</url> 
 | 
</WebLink> 
 |