| <?xml version="1.0" encoding="UTF-8"?> | 
| <WebLink xmlns="http://soap.sforce.com/2006/04/metadata"> | 
|     <fullName>SI_Copy_Custom_New</fullName> | 
|     <availability>online</availability> | 
|     <displayType>button</displayType> | 
|     <linkType>javascript</linkType> | 
|     <masterLabel>复制SI需求表</masterLabel> | 
|     <openType>onClickJavaScript</openType> | 
|     <protected>false</protected> | 
|     <url>{!RequireScript("/soap/ajax/51.0/connection.js")}  | 
| {!RequireScript("/soap/ajax/51.0/apex.js")}  | 
| {!RequireScript("/resource/CommonUtilJs")}  | 
| //2021-10-21 gwy 版本更改为51.0 | 
| sforce.connection.sessionId = "{!GETSESSIONID()}";  | 
| var ids = '{!IS_Opportunity_Demand__c.Id}';  | 
| var rtn = '';  | 
| try{  | 
| rtn = sforce.apex.execute("ControllerUtil", "ISO_Copy_Func", {isoID:ids});  | 
| if(rtn=='存在未终止的SI需求表,不能复制'){  | 
| alert(rtn);  | 
| }else{  | 
| var url = "apex/ISO_DemandOperAndDemonsNew?id="+rtn;  | 
| //window.top.location.reload();  | 
| window.top.location.href=url;  | 
| }  | 
| }catch(e){  | 
| alert(e);  | 
| }</url> | 
| </WebLink> |