<?xml version="1.0" encoding="UTF-8"?>
|
<WebLink xmlns="http://soap.sforce.com/2006/04/metadata">
|
<fullName>CustomCreateQoute</fullName>
|
<availability>online</availability>
|
<displayType>massActionButton</displayType>
|
<linkType>javascript</linkType>
|
<masterLabel>创建报价</masterLabel>
|
<openType>onClickJavaScript</openType>
|
<protected>false</protected>
|
<requireRowSelection>false</requireRowSelection>
|
<url>{!RequireScript("/soap/ajax/51.0/connection.js")}
|
{!RequireScript("/soap/ajax/51.0/apex.js")}
|
{!RequireScript("/resource/CommonUtilJs")}
|
function foo(){
|
var RecordTypeid = '{!JSENCODE(Opportunity.RecordTypeId)}';
|
if(RecordTypeid=='012100000006KMe'){
|
window.open('/apex/SI_NewQuoteEntry?oppid={!URLENCODE(Opportunity.Id)}');
|
}else{
|
window.open('/apex/NewQuoteEntry?oppid={!URLENCODE(Opportunity.Id)}');
|
}
|
}
|
foo();</url>
|
</WebLink>
|