付煜
2022-03-28 a1a28f05f9560cd6a265caef72e0ca07977510ac
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
<?xml version="1.0" encoding="UTF-8"?>
<WebLink xmlns="http://soap.sforce.com/2006/04/metadata">
    <fullName>SolutionCopy</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;)}
{!RequireScript(&quot;/resource/CommonUtilJs&quot;)}
//2021-10-21 gwy 版本更改为51.0
sforce.connection.sessionId = &quot;{!GETSESSIONID()}&quot;;
var ids = &apos;{!Solution_Programme__c.Id}&apos;;
//var rtn = &apos;&apos;;
try{
//rtn = sforce.apex.execute(&quot;SolutionProjectUtil&quot;, &quot;Solution_Copy_Func&quot;, {solID:ids});
//if(rtn==&apos;存在未终止的SI需求表,不能复制&apos;){
//alert(rtn);
//}else{
var url = ids+&quot;/e?clone=1&amp;00Np00000044oaO=01草案中&amp;00Np00000044oaT=&amp;retURL=%2F&quot;+ids;
//window.top.location.reload();
window.top.location.href=url;
//}
}catch(e){
alert(e);
}</url>
</WebLink>