<?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 = '{!Account.Service_customer_hospital__c}';
|
//alert (Servicecustomer);
|
if (Servicecustomer != true){
|
alert("暂时不能签约现行合同,请等待新服务合同确定!");
|
return;
|
}
|
|
|
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;
|
window.top.location.href = url;
|
|
}
|
|
foo();</url>
|
</WebLink>
|