| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <ValidationRule xmlns="http://soap.sforce.com/2006/04/metadata"> |
| | | <fullName>CheckDepartRecord</fullName> |
| | | <active>false</active> |
| | | <active>true</active> |
| | | <description>除管理员batch用户等,科室只能填第三级。</description> |
| | | <errorConditionFormula>Not(Or(Department__r.RecordTypeId ='012C600000003HJ', |
| | | Department__r.RecordTypeId ='012C600000003HT', |
| | | Department__r.RecordTypeId ='012C600000003HU', |
| | | Department__r.RecordTypeId='012C600000003HV', |
| | | Department__r.RecordTypeId='012C600000003HX', |
| | | Department__r.RecordTypeId='012C600000003HW', |
| | | Department__r.RecordTypeId='012C600000003HY', |
| | | <errorConditionFormula>Not(Or(Department__r.RecordTypeId ='01210000000QfmM', |
| | | Department__r.RecordTypeId ='01210000000QfmH', |
| | | Department__r.RecordTypeId ='01210000000QfmC', |
| | | Department__r.RecordTypeId='01210000000Qfm7', |
| | | Department__r.RecordTypeId='01210000000Qfm2', |
| | | Department__r.RecordTypeId='01210000000Qfmb', |
| | | Department__r.RecordTypeId='01210000000QfmR', |
| | | $User.Batch_User__c |
| | | ))</errorConditionFormula> |
| | | <errorDisplayField>Department__c</errorDisplayField> |