| 1
2
3
4
5
6
7
8
9
10
11
12
13
 | | <?xml version="1.0" encoding="UTF-8"?> |  | <ValidationRule xmlns="http://soap.sforce.com/2006/04/metadata"> |  |     <fullName>Is_Same_Hospital</fullName> |  |     <active>true</active> |  |     <errorConditionFormula>(  |  | ISNEW()  |  | ||  |  | (InsReportStatus__c <> "申请中" && InsReportStatus__c <> "批准")  |  | )  |  | &&  |  | AssetId__c != null && AssetId__r.Hospital__c <> Inspection_ReportId__r.Hospital__c</errorConditionFormula> |  |     <errorMessage>请选择和点检报告书是同一医院的设备</errorMessage> |  | </ValidationRule> | 
 |