Li Jun
2022-05-11 b776940205e893302f77d24c4285613f228b44c6
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
<?xml version="1.0" encoding="UTF-8"?>
<WebLink xmlns="http://soap.sforce.com/2006/04/metadata">
    <fullName>QuarterlyReport</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() { 
var MaintenanceContractId = &quot;{!Maintenance_Contract__c.Id}&quot;; 
var RecordTypeName = &quot;{!Maintenance_Contract__c.RecordType_DeveloperName__c}&quot;; 
var EstimateTarget = &quot;{!TEXT(Maintenance_Contract__c.Estimate_Target__c)}&quot;; 
var url = &apos;&apos;; 
if(EstimateTarget==&quot;经销商&quot;&amp;&amp;(RecordTypeName==&quot;NewMaintenance_Contract&quot;||RecordTypeName==&quot;VM_Contract&quot;)){ 
url = &quot;/apex/MoreMaintenanceContractPop?Id=&quot;+MaintenanceContractId+ &quot;&amp;RecordTypeName=&quot;+RecordTypeName; 
} else { 
url= &quot;http://powerbi.olympus.com.cn/Home/Login&quot;; 
window.open(url,&apos;_bank&apos;); 
foo();</url>
</WebLink>