| <?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>var foo = function() { | 
|   | 
| var Hospital = '{!URLENCODE(Account.Hospital__c)}'; | 
| var Hospitalid = '{!URLENCODE(Account.HospitalId__c)}'; | 
| var Department = '{!URLENCODE(Account.Department_Class__c)}'; | 
| var Departmentid = '{!URLENCODE(Account.Department_ClassId__c)}'; | 
| var accountname = '{!URLENCODE(Account.Name)}'; | 
| var accountid = '{!URLENCODE(Account.Id)}'; | 
|   | 
|   | 
| var url = 'a0H/e?CF00N10000002Dx56=' + Hospital +'&CF00N10000002Dx56_lkid=' | 
| + Hospitalid + '&CF00N10000002Dx4p=' + Department + '&CF00N10000002Dx4p_lkid=' | 
| + Departmentid + '&CF00N10000002Dx4q=' + accountname + '&CF00N10000002Dx4q_lkid=' | 
| + accountid + '&RecordType=01210000000gTYq'; | 
| window.top.location.href = url; | 
|   | 
| } | 
|   | 
| foo();</url> | 
| </WebLink> |