<?xml version="1.0" encoding="UTF-8"?>
|
<WebLink xmlns="http://soap.sforce.com/2006/04/metadata">
|
<fullName>IfResponse</fullName>
|
<availability>online</availability>
|
<description>||{!Tender_information__c.OpportunityNum__c} == 0</description>
|
<displayType>button</displayType>
|
<linkType>javascript</linkType>
|
<masterLabel>不应标申请</masterLabel>
|
<openType>onClickJavaScript</openType>
|
<protected>false</protected>
|
<url>function IfResponse(){
|
console.log('{!ISBLANK(Tender_information__c.OpportunityNum__c)}');
|
|
// 关联询价之后不能在招标里申请不应标
|
if('{!Tender_information__c.OpportunityNum__c}' > 0) {
|
alert('项目已关联过询价,请到询价里做不应标申请');
|
return;
|
}
|
|
window.open ('/apex/Bidding?id={!Tender_information__c.Id}', '', 'height=350, width=600, top=200, left=350,location=no');
|
|
}
|
IfResponse();</url>
|
</WebLink>
|