| <?xml version="1.0" encoding="UTF-8"?> | 
| <ValidationRule xmlns="http://soap.sforce.com/2006/04/metadata"> | 
|     <fullName>Estimate_Target_Agency_Require</fullName> | 
|     <active>true</active> | 
|     <errorConditionFormula>$Profile.Id != '00e10000000dEQx' /* GPI_系统管理员 不报错 */  | 
| &&  | 
| $User.Id != '00510000000fSYI' /* Batch User 不报错 */  | 
| &&  | 
| !$User.Batch_User__c /* Batch User 不报错 */  | 
| &&  | 
| NOT(  | 
| /* 可以更新的字段 */  | 
| OR( | 
|   ISCHANGED(Sum_repair_price__c), | 
|   ISCHANGED(Estimate_Asset_Cnt__c), | 
|   ISCHANGED(Estimate_Num__c) | 
| )) | 
| && | 
| OR( | 
| (Text(Estimate_Target__c)=='经销商' && ISBLANK(Dealer__c)), | 
| (Text(Estimate_Target__c)!='经销商' && Not(ISBLANK(Dealer__c))) | 
| )</errorConditionFormula> | 
|     <errorDisplayField>Dealer__c</errorDisplayField> | 
|     <errorMessage>报价提交对象为经销商时必须输入经销商名</errorMessage> | 
| </ValidationRule> |