| <?xml version="1.0" encoding="UTF-8"?> | 
| <ValidationRule xmlns="http://soap.sforce.com/2006/04/metadata"> | 
|     <fullName>OPDNoReportMCode</fullName> | 
|     <active>true</active> | 
|     <description>OPD计划出借目的选择模型出借时,必填写模型出借配套</description> | 
|     <errorConditionFormula>(ISCHANGED( RentalReson__c )|| ISNEW()) && TEXT( RentalReson__c ) =='模型出借'&& ISBLANK( ModelLending__c)&&TEXT( OPDType__c)!='学会'&& ISBLANK(OriginalOpdPlanRental__c)</errorConditionFormula> | 
|     <errorDisplayField>ModelLending__c</errorDisplayField> | 
|     <errorMessage>出借目的选择模型出借时,模型出借配套必填</errorMessage> | 
| </ValidationRule> |