Li Jun
2022-05-11 b776940205e893302f77d24c4285613f228b44c6
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
34
35
36
37
38
<?xml version="1.0" encoding="UTF-8"?>
<WebLink xmlns="http://soap.sforce.com/2006/04/metadata">
    <fullName>Create_Service_Contract_new</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 Servicecustomer = &apos;{!Account.Service_customer_hospital__c}&apos;; 
//alert (Servicecustomer); 
if (Servicecustomer != true){ 
alert(&quot;暂时不能签约现行合同,请等待新服务合同确定!&quot;); 
return; 
 
 
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; 
window.top.location.href = url; 
 
 
foo();</url>
</WebLink>