| <?xml version="1.0" encoding="UTF-8"?> | 
| <WebLink xmlns="http://soap.sforce.com/2006/04/metadata"> | 
|     <fullName>CustomAnew</fullName> | 
|     <availability>online</availability> | 
|     <displayType>massActionButton</displayType> | 
|     <linkType>javascript</linkType> | 
|     <masterLabel>合同再报价</masterLabel> | 
|     <openType>onClickJavaScript</openType> | 
|     <protected>false</protected> | 
|     <requireRowSelection>true</requireRowSelection> | 
|     <url>if ("{!Maintenance_Contract__c.Status__c}" != "引合中") { | 
|     alert("维修合同不是询价中的状态,不能再报价"); | 
| } else { | 
|     var ids = {!GETRECORDIDS( $ObjectType.Maintenance_Contract_Estimate__c)}; | 
|     if (ids.length == 1) { | 
|         if("{!Maintenance_Contract__c.RecordTypeId}"  == "01210000000gTYq"){ | 
|              window.open( "/apex/SelectAssetEstimateVM?copyid=" + ids[0], "_top"); | 
|         }else{ | 
|              window.open( "/apex/SelectAssetEstimate?copyid=" + ids[0], "_top"); | 
|         } | 
|          | 
|     } else { | 
|         alert('请选择一个报价'); | 
|     } | 
| }</url> | 
| </WebLink> |