binxie
2024-01-16 4d3febe8045eb0fa0283af3c53b0c48344b8664d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?xml version="1.0" encoding="UTF-8"?>
<WebLink xmlns="http://soap.sforce.com/2006/04/metadata">
    <fullName>infrastructureProjectRelatedOpp</fullName>
    <availability>online</availability>
    <displayType>button</displayType>
    <linkType>javascript</linkType>
    <masterLabel>关联询价</masterLabel>
    <openType>onClickJavaScript</openType>
    <protected>false</protected>
    <url>{!REQUIRESCRIPT(&apos;/soap/ajax/51.0/connection.js&apos;)}
{!REQUIRESCRIPT(&apos;/soap/ajax/51.0/apex.js&apos;)}
var foo = function(){
    var OCSMHospital = &apos;{!Infrastructure_Project__c.OCSM_Hospital__c}&apos;
    if(OCSMHospital){
        window.open(&apos;/apex/InfrastructureProjectRelatedOpp?Id={!Infrastructure_Project__c.Id}&apos;,&apos;&apos;,&apos;height=500, width=800, top=200, left=250,location=no&apos;);
    }else{
        alert(&quot;请先确认关联医院&quot;);
    }
}
foo();</url>
</WebLink>