<?xml version="1.0" encoding="UTF-8"?>
|
<WebLink xmlns="http://soap.sforce.com/2006/04/metadata">
|
<fullName>NewOpp</fullName>
|
<availability>online</availability>
|
<description>/006/e?retURL=%2F{!Tender_information__c.Id}
|
&RecordType=01210000000QekK
|
&00N10000002CX2c=ET
|
&CF00N1s000001QlfW_lkid={!Tender_information__c.Id}
|
&CF00N1s000001QlfW={!Tender_information__c.Name}
|
&ent=Opportunity
|
&00N10000002CpF4=OCM%e7%9b%b4%e6%8e%a5%e8%b2%a9%e5%a3%b2
|
&00N10000002ppti={!$User.Province_Text__c}
|
&opp11=%e5%bc%95%e5%90%88</description>
|
<displayType>button</displayType>
|
<linkType>javascript</linkType>
|
<masterLabel>创建询价</masterLabel>
|
<openType>onClickJavaScript</openType>
|
<protected>false</protected>
|
<url>function NewOpp(){
|
|
|
var ProfileId = "{!$Profile.Id}";
|
|
|
|
var Close_Forecasted_Date = "{!SUBSTITUTE(TEXT(ADDMONTHS(DATEVALUE( NULLVALUE( Tender_information__c.OpenBidingTime__c, Tender_information__c.TenderEndTime__c)),1)), '-', '/')}";
|
|
|
|
var closeDate = "{!SUBSTITUTE(TEXT(ADDMONTHS(DATEVALUE( NULLVALUE( Tender_information__c.OpenBidingTime__c, Tender_information__c.TenderEndTime__c)),2)), '-', '/')}";
|
|
|
|
|
var Url =
|
'/006/e?retURL=%2F' + '{!Tender_information__c.Id}' +
|
'&00N10000002ppti='+'{!$User.Province_Text__c}' +
|
'&opp11=%e5%bc%95%e5%90%88'+
|
'&CF00N1m000003tR70_lkid={!Tender_information__c.Id}'+
|
'&CF00N1m000003tR70={!Tender_information__c.Name}'+
|
'&RecordType=01210000000QekK'+
|
'&ent=Opportunity'+
|
|
|
'&CF00N10000002CYBC_lkid='+ '{!Tender_information__c.HospitalId__c}' +
|
|
'&CF00N10000002CYBC=' + '{!Tender_information__c.Hospital__c}'
|
// 招标日 上线时要改成线上的招标日
|
+ '&00N1m000004q5Lg=' + '{!Tender_information__c.TenderBeginTime__c}'
|
// 上线时记得改成是否公开招标的ID
|
+'&00N1m0000047QAM=公开招标'
|
+ '&opp6=招标网'
|
|
+ '&opp6=招标网'
|
+ '&00N10000002Cbww=' + Close_Forecasted_Date
|
+ '&opp9=' + closeDate
|
;
|
|
|
|
window.open(Url);
|
|
}
|
NewOpp();</url>
|
</WebLink>
|