高章伟
2023-03-28 32ca554edf2f2533790ad095e5691bbe478468a3
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
31
32
33
<?xml version="1.0" encoding="UTF-8"?>
<WebLink xmlns="http://soap.sforce.com/2006/04/metadata">
    <fullName>Create_NewServiceContract</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;)}
{!RequireScript(&quot;/resource/CommonUtilJs&quot;)}
var foo = function() {
 
var Hospital = &apos;{!URLENCODE(Account.Hospital__c)}&apos;;
var Hospitalid = &apos;{!URLENCODE(Account.HospitalId__c)}&apos;;
var Department = &apos;{!URLENCODE(Account.Department_Class__c)}&apos;;
var Departmentid = &apos;{!URLENCODE(Account.Department_ClassId__c)}&apos;;
var accountname = &apos;{!URLENCODE(Account.Name)}&apos;;
var accountid = &apos;{!URLENCODE(Account.Id)}&apos;;
 
 
var url = &apos;/a0H/e?CF00N10000002Dx56=&apos; + Hospital +&apos;&amp;CF00N10000002Dx56_lkid=&apos;
+ Hospitalid + &apos;&amp;CF00N10000002Dx4p=&apos; + Department + &apos;&amp;CF00N10000002Dx4p_lkid=&apos;
+ Departmentid + &apos;&amp;CF00N10000002Dx4q=&apos; + accountname + &apos;&amp;CF00N10000002Dx4q_lkid=&apos;
+ accountid + &apos;&amp;RecordType=01210000000gTYq&apos;;
window.open(url);
 
}
 
foo();</url>
</WebLink>