涂煌豪
2022-04-11 a002dc01b27e6281f163eb35661c4a9e9541ea52
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?xml version="1.0" encoding="UTF-8"?>
<ValidationRule xmlns="http://soap.sforce.com/2006/04/metadata">
    <fullName>After_Request_approve</fullName>
    <active>true</active>
    <description>申请单批准后,不能编辑耗材备品借用信息</description>
    <errorConditionFormula>((TEXT( Status__c) &lt;&gt; &apos;草案中&apos;  &amp;&amp;  TEXT( Status__c) &lt;&gt; &apos;填写完毕&apos;  &amp;&amp;  TEXT( Status__c) &lt;&gt; &apos;申请中&apos; ))
&amp;&amp;
(($User.ProfileId &lt;&gt;&apos;00e10000000Y3o5&apos;)&amp;&amp;
($User.ProfileId &lt;&gt;&apos;00e10000000xnoT&apos;)&amp;&amp;
($User.ProfileId &lt;&gt;&apos;00e10000000xo1D&apos;)
)
&amp;&amp;
(ISCHANGED(Person_In_Charge__c) || ISCHANGED(applyUser__c) || ISCHANGED(ApplyPerson_Phone__c) || ISCHANGED(Hospital__c) || ISCHANGED(Strategic_dept__c) || ISCHANGED(Account__c) || ISCHANGED(Loaner_medical_Staff__c) || ISCHANGED(Phone_number__c) || ISCHANGED(demo_purpose2__c) || ISCHANGED(Product_category__c) || ISCHANGED(AnimalExerimentFlag__c) || ISCHANGED(Campaign__c)|| ISCHANGED(Demo_purpose_text__c) ||  ISCHANGED(Request_demo_detail__c) || ISCHANGED(Request_shipping_day__c) ||
ISCHANGED(Shipment_address__c) || ISCHANGED(Dealer__c)
|| ISCHANGED(Loaner_received_staff__c) || ISCHANGED(direct_shippment_address__c) || ISCHANGED(direct_send__c) || ISCHANGED(pickup_time__c) || ISCHANGED(Loaner_received_staff_phone__c)  || ISCHANGED(Post_Code__c) || ISCHANGED(Is_Special_Rental__c)
)
 &amp;&amp;  NOT($User.Batch_User__c) &amp;&amp;  NOT($User.Batch_User__c) &amp;&amp; $User.ProfileId &lt;&gt;&apos;00e10000000dEQx&apos;</errorConditionFormula>
    <errorMessage>申请单批准后,不能编辑耗材备品借用信息</errorMessage>
</ValidationRule>