Li Jun
2022-05-10 51fb56f3f5b0dc96d7f93a71f9b61263e303243f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?xml version="1.0" encoding="UTF-8"?>
<WebLink xmlns="http://soap.sforce.com/2006/04/metadata">
    <fullName>cancelApply</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;)}
//2021-10-22 gwy 版本更改为51.0
if (confirm(&quot;确定取消?&quot;)) {
    var rs = sforce.apex.execute(&quot;TransferApplyWebService&quot;,&quot;cancelApply&quot;,{taId:&apos;{!TransferApply__c.Id}&apos;});
    if(rs == &apos;1&apos;){
        alert(&apos;取消成功&apos;);
        window.location.href = window.location;
    }
    else{
        alert(rs);
    }
}</url>
</WebLink>