高章伟
2022-03-10 8db20630a2675ca14e03ccdee91c614397b5c964
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>date123_order_chk</fullName>
    <active>true</active>
    <description>1.故障发生日&lt;=2.故障品接收日&lt;=3.修理品RC预计寄送日</description>
    <errorConditionFormula>$Profile.Id != &apos;00e10000000dEQx&apos;   /* GPI_系统管理员 不报错 */
&amp;&amp;
$Profile.Id != &apos;00e10000000Y3o5&apos;    /* 系统管理员 不报错 */
&amp;&amp;
$User.Id != &apos;00510000000fSYI&apos;   /* Batch User 不报错 */
&amp;&amp;
OR(Text(Status__c) = &apos;草案中&apos;, IsBlank(Text(Status__c)))   /* 草案中 だけチェックする */
&amp;&amp;
OR(On_Site_Repair_Order_Date__c &lt; Failure_Occurrence_Date__c, Send_To_RC_Date__c &lt; Failure_Occurrence_Date__c, Send_To_RC_Date__c &lt; On_Site_Repair_Order_Date__c)</errorConditionFormula>
    <errorMessage>“2.故障品接收日”不能在“1.故障发生日”之前,“3.修理品RC预计寄送日”不能在“2.故障品接收日”和“1.故障发生日”之前</errorMessage>
</ValidationRule>