<?xml version="1.0" encoding="UTF-8"?> 
 | 
<ValidationRule xmlns="http://soap.sforce.com/2006/04/metadata"> 
 | 
    <fullName>Must_Input_InspectionNo</fullName> 
 | 
    <active>false</active> 
 | 
    <description>点検の4項目を変更した場合、かつ 点検番号がない、あるいは「OCM-」の場合、エラーにします。</description> 
 | 
    <errorConditionFormula>(ISBLANK(Inspection_report_number__c) || Inspection_report_number__c == "OCM-" || Inspection_report_number__c == "OCM" || Inspection_report_number__c == "OCSM-" || Inspection_report_number__c == "OCSM")&&  
 | 
   ((NOT(ISBLANK(TEXT(Inspection_Result__c))) && ISCHANGED(Inspection_Result__c)) 
 | 
|| (NOT(ISBLANK(Last_inspection_staff__c)) && ISCHANGED(Last_inspection_staff__c)) 
 | 
|| (NOT(ISBLANK(Final_Examination_Date__c)) && ISCHANGED(Final_Examination_Date__c)) 
 | 
|| (NOT(ISBLANK(Inspection_Comment__c)) && ISCHANGED(Inspection_Comment__c)) 
 | 
)</errorConditionFormula> 
 | 
    <errorDisplayField>Inspection_report_number__c</errorDisplayField> 
 | 
    <errorMessage>点检时必须先输入检测单号</errorMessage> 
 | 
</ValidationRule> 
 |