| <?xml version="1.0" encoding="UTF-8"?> | 
| <ValidationRule xmlns="http://soap.sforce.com/2006/04/metadata"> | 
|     <fullName>date123_order_chk</fullName> | 
|     <active>true</active> | 
|     <description>1.故障发生日<=2.故障品接收日<=3.修理品RC预计寄送日</description> | 
|     <errorConditionFormula>$Profile.Id != '00e10000000dEQx'   /* GPI_系统管理员 不报错 */ | 
| && | 
| $Profile.Id != '00e10000000Y3o5'    /* 系统管理员 不报错 */ | 
| && | 
| $User.Id != '00510000000fSYI'   /* Batch User 不报错 */ | 
| && | 
| OR(Text(Status__c) = '草案中', IsBlank(Text(Status__c)))   /* 草案中 だけチェックする */ | 
| && | 
| OR(On_Site_Repair_Order_Date__c < Failure_Occurrence_Date__c, Send_To_RC_Date__c < Failure_Occurrence_Date__c, Send_To_RC_Date__c < On_Site_Repair_Order_Date__c)</errorConditionFormula> | 
|     <errorMessage>“2.故障品接收日”不能在“1.故障发生日”之前,“3.修理品RC预计寄送日”不能在“2.故障品接收日”和“1.故障发生日”之前</errorMessage> | 
| </ValidationRule> |