buli
2023-07-07 f08088add834965ea9ee07dbd35804507e47f5e7
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
<?xml version="1.0" encoding="UTF-8"?>
<WebLink xmlns="http://soap.sforce.com/2006/04/metadata">
    <fullName>insertFrameNumManag</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;)}
var foo = function() {
    var sId = &apos;{!eSignForm__c.Statu_Achievements_DNId__c}&apos;;
    var esId = &apos;{!eSignForm__c.Id}&apos;;
    try {
        var rtn = sforce.apex.execute(&quot;SetFrameNumManageWebService&quot;, &quot;insertFrameNumManag&quot;, {&quot;Id&quot;: sId,&quot;esId&quot;:esId});
        if (rtn == &apos;1&apos;) {
            alert(&apos;更新数据中,请等待执行完毕。&apos;);
        } else {
            alert(rtn);
        }
    } catch(e) {
        if (e.faultcode == &apos;sf:INSUFFICIENT_ACCESS&apos;) {
            alert(&apos;没有执行权限。&apos;);
        } else {
            alert(e);
        }
    }
    window.location.reload();
};
foo();</url>
</WebLink>