Li Jun
2022-04-13 5c01ebbfddb6b8674430b47c22977bea2e350084
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
26
27
28
29
30
31
32
33
<?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(&quot;/soap/ajax/51.0/connection.js&quot;)}
{!RequireScript(&quot;/soap/ajax/51.0/apex.js&quot;)}
{!RequireScript(&quot;/resource/CommonUtilJs&quot;)}
//2021-10-22 gwy 版本更改为51.0
var foo = function(){
     if(&apos;{!Tender_information__c.IsRelateProject__c}&apos;== &quot;否&quot;){
        alert(&apos;招投标项目不相关后不能反应询价状态!&apos;);
        return;
     } 
   var listss = [];
   listss.push(&apos;{!Tender_information__c.Id}&apos;);
     var rtn = sforce.apex.execute(&quot;UpdateTenderInformationBatch&quot;, &quot;updateOpportunityInformation&quot;, {TenderIdList : listss } );
  
  if(rtn != &apos;OK&apos;){
      alert(rtn);
  }else {
     alert(&apos;反映完了&apos;);
  }
 //重新加载页面
 window.location.reload();
}
 
foo();</url>
</WebLink>