binxie
2024-01-20 e0de9222da210f9c8eb1a9f5400f936a14923e11
force-app/main/default/objects/Report__c/validationRules/Only_OPDtoSIS.validationRule-meta.xml
@@ -6,22 +6,22 @@
    <errorConditionFormula>ISCHANGED(RecordTypeId) &amp;&amp;
(
/**OPD或SIS变到非OPDSIS**/
 ((PRIORVALUE(RecordTypeId) = &quot;012C600000003KJ&quot;
 ((PRIORVALUE(RecordTypeId) = &quot;01210000000RLTi&quot;
  ||
 PRIORVALUE(RecordTypeId) = &quot;012C600000003KG&quot;)
 PRIORVALUE(RecordTypeId) = &quot;01210000000Qekj&quot;)
 &amp;&amp; 
 (RecordTypeId &lt;&gt; &quot;012C600000003KJ&quot;
 (RecordTypeId &lt;&gt; &quot;01210000000RLTi&quot;
  &amp;&amp;
 RecordTypeId &lt;&gt; &quot;012C600000003KG&quot;))
 RecordTypeId &lt;&gt; &quot;01210000000Qekj&quot;))
||
/**非OPDSIS变到OPD或SIS**/
 ((PRIORVALUE(RecordTypeId) &lt;&gt; &quot;012C600000003KJ&quot;
 ((PRIORVALUE(RecordTypeId) &lt;&gt; &quot;01210000000RLTi&quot;
  &amp;&amp;
 PRIORVALUE(RecordTypeId) &lt;&gt; &quot;012C600000003KG&quot;)
 PRIORVALUE(RecordTypeId) &lt;&gt; &quot;01210000000Qekj&quot;)
 &amp;&amp; 
 (RecordTypeId = &quot;012C600000003KJ&quot;
 (RecordTypeId = &quot;01210000000RLTi&quot;
  ||
 RecordTypeId = &quot;012C600000003KG&quot;))
 RecordTypeId = &quot;01210000000Qekj&quot;))
)</errorConditionFormula>
    <errorDisplayField>AWS_Data_Id__c</errorDisplayField>
    <errorMessage>只能在OPD报告书和SIS报告书的类型之间相互变换</errorMessage>