涂煌豪
2022-05-06 ff435968945d457f9ee653a9620fa1c7d78d2d4c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?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(&quot;/soap/ajax/51.0/connection.js&quot;)} 
{!RequireScript(&quot;/soap/ajax/51.0/apex.js&quot;)} 
{!RequireScript(&quot;/resource/CommonUtilJs&quot;)}
//2021-10-21 gwy 版本更改为51.0 
var foo = function(){ 
var RecordTypeid = &apos;{!HTMLENCODE(Opportunity.RecordTypeId)}&apos;; 
    if(RecordTypeid==&apos;012100000006KMe&apos;){ 
          var url = &quot;apex/ISO_DemandOperAndDemons?OppoerID={!URLENCODE(Opportunity.Id)}&quot;; 
          window.top.location.href=url; 
    }else{ 
        alert(&quot;非SI询价,不能新建SI需求表&quot;); 
    } 
foo();</url>
</WebLink>