<?xml version="1.0" encoding="UTF-8"?>
|
<WebLink xmlns="http://soap.sforce.com/2006/04/metadata">
|
<fullName>refresh_status</fullName>
|
<availability>online</availability>
|
<description>From 耗材Set</description>
|
<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")}
|
//2021-10-22 gwy 版本更改为51.0
|
var raeSet = '{!Consum_Apply_Equipment_Set__c.Id}';
|
try {
|
var rtn = sforce.apex.execute("RentalApplyWebService", "eSetRefreshStatus", {raeSetId: raeSet});
|
if (rtn = '1') {
|
alert("状态更新完毕!");
|
location.href = "/{!Consum_Apply_Equipment_Set__c.Id}";
|
} else {
|
alert(rtn);
|
}
|
} catch(e) {
|
alert(e);
|
}</url>
|
</WebLink>
|