1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
| <?xml version="1.0" encoding="UTF-8"?>
| <ValidationRule xmlns="http://soap.sforce.com/2006/04/metadata">
| <fullName>DeptClassHospital_IsEquals_Hospital</fullName>
| <active>true</active>
| <description>战略科室的医院要和科室的医院一致</description>
| <errorConditionFormula>IF(
| Parent.Parent.RecordTypeId = '01210000000QemG',
| IF(
| Hospital__c <> Parent.ParentId,
| TRUE,
| FALSE
| ),
| FALSE
| )</errorConditionFormula>
| <errorMessage>战略科室的医院要和科室的医院一致</errorMessage>
| </ValidationRule>
|
|