<?xml version="1.0" encoding="UTF-8"?>
|
<WebLink xmlns="http://soap.sforce.com/2006/04/metadata">
|
<fullName>SI_SOD_Create</fullName>
|
<availability>online</availability>
|
<displayType>massActionButton</displayType>
|
<linkType>javascript</linkType>
|
<masterLabel>创建SI需求表</masterLabel>
|
<openType>onClickJavaScript</openType>
|
<protected>false</protected>
|
<requireRowSelection>true</requireRowSelection>
|
<url>{!RequireScript("/soap/ajax/51.0/connection.js")}
|
{!RequireScript("/soap/ajax/51.0/apex.js")}
|
{!RequireScript("/resource/CommonUtilJs")}
|
//2021-10-21 gwy 版本更改为51.0
|
var foo = function(){
|
var RecordTypeid = '{!HTMLENCODE(Opportunity.RecordTypeId)}';
|
if(RecordTypeid=='012100000006KMe'){
|
var url = "apex/ISO_DemandOperAndDemons?OppoerID={!URLENCODE(Opportunity.Id)}";
|
window.top.location.href=url;
|
}else{
|
alert("非SI询价,不能新建SI需求表");
|
}
|
}
|
foo();</url>
|
</WebLink>
|