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