<?xml version="1.0" encoding="UTF-8"?> 
 | 
<WebLink xmlns="http://soap.sforce.com/2006/04/metadata"> 
 | 
    <fullName>ReactionOpportunityStatus</fullName> 
 | 
    <availability>online</availability> 
 | 
    <displayType>button</displayType> 
 | 
    <linkType>javascript</linkType> 
 | 
    <masterLabel>反应询价状态</masterLabel> 
 | 
    <openType>onClickJavaScript</openType> 
 | 
    <protected>false</protected> 
 | 
    <url>{!RequireScript("/soap/ajax/51.0/connection.js")} 
 | 
{!RequireScript("/soap/ajax/51.0/apex.js")} 
 | 
{!RequireScript("/resource/CommonUtilJs")} 
 | 
//2021-10-22 gwy 版本更改为51.0 
 | 
var foo = function(){ 
 | 
     if('{!Tender_information__c.IsRelateProject__c}'== "否"){ 
 | 
        alert('招投标项目不相关后不能反应询价状态!'); 
 | 
        return; 
 | 
     }  
 | 
   var listss = []; 
 | 
   listss.push('{!Tender_information__c.Id}'); 
 | 
     var rtn = sforce.apex.execute("UpdateTenderInformationBatch", "updateOpportunityInformation", {TenderIdList : listss } ); 
 | 
   
 | 
  if(rtn != 'OK'){ 
 | 
      alert(rtn); 
 | 
  }else { 
 | 
     alert('反映完了'); 
 | 
  } 
 | 
 //重新加载页面 
 | 
 window.location.reload(); 
 | 
} 
 | 
  
 | 
foo();</url> 
 | 
</WebLink> 
 |