| <?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("/soap/ajax/51.0/connection.js")} | 
| {!RequireScript("/soap/ajax/51.0/apex.js")} | 
| var foo = function() { | 
|     var sId = '{!eSignForm__c.Statu_Achievements_DNId__c}'; | 
|     var esId = '{!eSignForm__c.Id}'; | 
|     try { | 
|         var rtn = sforce.apex.execute("SetFrameNumManageWebService", "insertFrameNumManag", {"Id": sId,"esId":esId}); | 
|         if (rtn == '1') { | 
|             alert('更新数据中,请等待执行完毕。'); | 
|         } else { | 
|             alert(rtn); | 
|         } | 
|     } catch(e) { | 
|         if (e.faultcode == 'sf:INSUFFICIENT_ACCESS') { | 
|             alert('没有执行权限。'); | 
|         } else { | 
|             alert(e); | 
|         } | 
|     } | 
|     window.location.reload(); | 
| }; | 
| foo();</url> | 
| </WebLink> |