binxie
2024-01-20 e0de9222da210f9c8eb1a9f5400f936a14923e11
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?xml version="1.0" encoding="UTF-8"?>
<WebLink xmlns="http://soap.sforce.com/2006/04/metadata">
    <fullName>repairContractReflect</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;)} 
sforce.connection.sessionId = &quot;{!GETSESSIONID()}&quot;;
var assertTargetId = &apos;{!Asset.Id}&apos;; 
try{
var rs = sforce.apex.execute(&quot;UpdateAssetToCurrentMCWebService&quot;,&quot;UpdateAssetToCurrentMC&quot;,{targetAssetId:assertTargetId});
alert(&quot;维修合同反映成功&quot;);
}catch(e) {
alert(&quot;维修合同反映失败,异常信息:&quot;+ e);
}</url>
</WebLink>