Li Jun
2022-05-11 b776940205e893302f77d24c4285613f228b44c6
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
<?xml version="1.0" encoding="UTF-8"?>
<WebLink xmlns="http://soap.sforce.com/2006/04/metadata">
    <fullName>Reassign</fullName>
    <availability>online</availability>
    <displayType>massActionButton</displayType>
    <linkType>javascript</linkType>
    <masterLabel>重新分配</masterLabel>
    <openType>onClickJavaScript</openType>
    <protected>false</protected>
    <requireRowSelection>true</requireRowSelection>
    <url>{!RequireScript(&quot;/soap/ajax/51.0/connection.js&quot;)} 
{!RequireScript(&quot;/soap/ajax/51.0/apex.js&quot;)}
//2021-10-21 gwy 版本更改为51.0
var records = {!GETRECORDIDS($ObjectType.Rental_Apply_Equipment_Set__c)};
 
if (records.length &lt; 1) {
    alert(&quot;请选择借出备品一览&quot;);
} else {
if (confirm(&quot;你确定要重新分配吗&quot;)) {
var rs1 = sforce.apex.execute(&quot;RentalApplyEquipmentSetWebService&quot;, &quot;rentalApplyEquipmentSetReassign&quot;, {raesID : records[0]});
 
if (rs1 == &quot;1&quot;) {
    alert(&quot;已重新分配&quot;);
    location.reload();
} else {
    alert(rs1);
}
}
}</url>
</WebLink>