<?xml version="1.0" encoding="UTF-8"?>
|
<ValidationRule xmlns="http://soap.sforce.com/2006/04/metadata">
|
<fullName>CheckDepartRecord</fullName>
|
<active>false</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',
|
$User.Batch_User__c
|
))</errorConditionFormula>
|
<errorDisplayField>Department__c</errorDisplayField>
|
<errorMessage>请选择三层级的表述,如XX医院 XX科 XX科</errorMessage>
|
</ValidationRule>
|