| <?xml version="1.0" encoding="UTF-8"?> | 
| <ValidationRule xmlns="http://soap.sforce.com/2006/04/metadata"> | 
|     <fullName>Must_Is_DeptClas</fullName> | 
|     <active>true</active> | 
|     <description>必须填写该医院下的战略科室</description> | 
|     <errorConditionFormula>$User.ProfileId <>'00e10000000Y3o5'  | 
| &&  | 
| NOT($User.Batch_User__c)  | 
| && | 
| Isnew() && OR (  | 
| /* 看父记录,是医院,没有选相应的战略科室 ==> 报错 */  | 
| AND(Account__r.Parent.Parent.RecordTypeId = "01210000000QemG",  | 
| Account__r.ParentId <> Strategic_dept__c  | 
| )  | 
| )</errorConditionFormula> | 
|     <errorDisplayField>Strategic_dept__c</errorDisplayField> | 
|     <errorMessage>请选择相对应的战略科室</errorMessage> | 
| </ValidationRule> |