| <?xml version="1.0" encoding="UTF-8"?> | 
| <WebLink xmlns="http://soap.sforce.com/2006/04/metadata"> | 
|     <fullName>CustomNew</fullName> | 
|     <availability>online</availability> | 
|     <displayType>massActionButton</displayType> | 
|     <linkType>javascript</linkType> | 
|     <masterLabel>新建维修合同报价</masterLabel> | 
|     <openType>onClickJavaScript</openType> | 
|     <protected>false</protected> | 
|     <requireRowSelection>false</requireRowSelection> | 
|     <url>if ("{!Maintenance_Contract__c.Status__c}" != "引合中") { | 
|     alert("维修合同不是询价中的状态,不能新建报价"); | 
| } else { | 
|     if("{!Maintenance_Contract__c.RecordTypeId}"  == "01210000000gTYq"){ | 
|         window.open( "/apex/SelectAssetEstimateVM?mcid={!URLENCODE(Maintenance_Contract__c.Id)}", "_top"); | 
|     }else{ | 
|         window.open( "/apex/SelectAssetEstimate?mcid={!URLENCODE(Maintenance_Contract__c.Id)}", "_top"); | 
|     } | 
|      | 
| }</url> | 
| </WebLink> |