| <?xml version="1.0" encoding="UTF-8"?> | 
| <ValidationRule xmlns="http://soap.sforce.com/2006/04/metadata"> | 
|     <fullName>Cannot_Change_Estimate_Target</fullName> | 
|     <active>true</active> | 
|     <errorConditionFormula>NOT(  | 
| /* 可以更新的字段 */  | 
| OR( | 
|   ISCHANGED(Sum_repair_price__c), | 
|   ISCHANGED(Estimate_Asset_Cnt__c), | 
|   ISCHANGED(Estimate_Num__c) | 
| )) | 
| && | 
| AND(Text(Status__c)!='引合中' | 
|   , Text(Status__c)!='草案中' | 
|   , Ischanged(Estimate_Target__c) | 
| )</errorConditionFormula> | 
|     <errorDisplayField>Estimate_Target__c</errorDisplayField> | 
|     <errorMessage>合同中 或 曾经合同中过,不能更改。</errorMessage> | 
| </ValidationRule> |