<?xml version="1.0" encoding="UTF-8"?>
|
<WebLink xmlns="http://soap.sforce.com/2006/04/metadata">
|
<fullName>NewAgencyContract</fullName>
|
<availability>online</availability>
|
<description>UTF8对应前
|
/* 经营企划特约店管理成员 or 系统管理员 */
|
if ('{!$User.Id}' == '00510000002YSBI'
|
|| '{!$User.ProfileId}' == '00e10000000Y3o5'
|
) {
|
alert('会自动分配新建合同的客户编码,保留旧编码的时候请用复制合同。');
|
var newUrl = "/001/e?retURL=%2F{!Account.Id}" +
|
"&RecordType=01210000000QjCN" +
|
"&acc3_lkid={!Account.Id}" +
|
"&acc3={!HTMLENCODE(Account.Name)}" +
|
"&CF00N10000002FDYW_lkid={!Account.Id}" +
|
"&CF00N10000002FDYW={!HTMLENCODE(Account.Name)}" +
|
"&acc2=*";
|
if (window.top == window.self) {
|
location.href = newUrl;
|
} else {
|
top.location.href = newUrl;
|
}
|
} else {
|
alert('没有新建的权限');
|
}</description>
|
<displayType>massActionButton</displayType>
|
<linkType>javascript</linkType>
|
<masterLabel>新建合同</masterLabel>
|
<openType>onClickJavaScript</openType>
|
<protected>false</protected>
|
<requireRowSelection>false</requireRowSelection>
|
<url>/* 经营企划特约店管理成员 or 系统管理员 */
|
if ('{!$User.Id}' == '00510000002YSBI'
|
|| '{!$User.ProfileId}' == '00e10000000Y3o5'
|
) {
|
alert('会自动分配新建合同的客户编码,保留旧编码的时候请用复制合同。');
|
var newUrl = "/001/e?retURL=%2F{!Account.Id}" +
|
"&RecordType=01210000000QjCN" +
|
"&acc3_lkid={!Account.Id}" +
|
"&acc3={!URLENCODE(Account.Name)}" +
|
"&CF00N10000002FDYW_lkid={!Account.Id}" +
|
"&CF00N10000002FDYW={!URLENCODE(Account.Name)}" +
|
"&acc2=*";
|
if (window.top == window.self) {
|
location.href = newUrl;
|
} else {
|
top.location.href = newUrl;
|
}
|
} else {
|
alert('没有新建的权限');
|
}</url>
|
</WebLink>
|