<?xml version="1.0" encoding="UTF-8"?>
|
<WebLink xmlns="http://soap.sforce.com/2006/04/metadata">
|
<fullName>W_proposal_report</fullName>
|
<availability>online</availability>
|
<description>医院</description>
|
<displayType>button</displayType>
|
<linkType>javascript</linkType>
|
<masterLabel>W.客户现状分析模板</masterLabel>
|
<openType>onClickJavaScript</openType>
|
<protected>false</protected>
|
<url>{!RequireScript("/soap/ajax/51.0/connection.js")}
|
{!RequireScript("/soap/ajax/51.0/apex.js")}
|
|
if ({!$User.CanDownloadHospitalPPT__c} == true) {
|
sforce.apex.execute("ControllerUtil", "addBatchIfLog", {typeStr:"DL_HP_Template",isError:0,logStr:'{!Account.Id} {!Account.Name} Download Clicked'});
|
var accessToken = sforce.apex.execute("ControllerUtil", "getAccessToken", {});
|
var url = "/resource/" + new Date().getTime() + "/HospitalReport?" + accessToken + "={!URLENCODE(Account.Id)}={!URLENCODE($User.Id)}";
|
window.open(url, "_blank");
|
} else {
|
alert("你没有下载提案书的权限");
|
}</url>
|
</WebLink>
|