<?xml version="1.0" encoding="UTF-8"?> 
 | 
<ValidationRule xmlns="http://soap.sforce.com/2006/04/metadata"> 
 | 
    <fullName>Hosp_Effective_Check</fullName> 
 | 
    <active>false</active> 
 | 
    <errorConditionFormula>AND(Opportunity_on_count__c > 0, 
 | 
 Parent.Parent.RecordTypeId = '01210000000QemG', 
 | 
  ISCHANGED(Is_Active__c), 
 | 
 TEXT(Is_Active__c) = '無効')</errorConditionFormula> 
 | 
    <errorMessage>有状态不是完毕的询价,不允许医院做无效操作。</errorMessage> 
 | 
</ValidationRule> 
 |