binxie
2024-01-20 0a2fc19461a141fbbb2c303142afdee22c72daac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?xml version="1.0" encoding="UTF-8"?>
<ValidationRule xmlns="http://soap.sforce.com/2006/04/metadata">
    <fullName>FSECannotChangeFieldinPage</fullName>
    <active>true</active>
    <description>销售担当2S1,2S4不能更改页面上的字段</description>
    <errorConditionFormula>($User.ProfileId = &quot;00e10000000xnp2&quot; || 
$User.ProfileId = &quot;00e10000000hkas&quot; || 
$User.ProfileId = &quot;00e10000000xnpH&quot;) &amp;&amp; RecordType.DeveloperName = &apos;HP&apos; &amp;&amp; 
( ISCHANGED(Name) || 
ISCHANGED(Feature__c) || 
ISCHANGED(Website) || 
ISCHANGED(Phone) || 
ISCHANGED(OwnerId) || 
ISCHANGED(RegistrationNumber__c) || 
ISCHANGED(Fax) || 
ISCHANGED(GI_Main__c) || 
ISCHANGED(GI_Product_Leader__c) || 
ISCHANGED(BF_owner__c) || 
ISCHANGED(BF_Product_Leader__c) || 
ISCHANGED(SP_Main__c) || 
ISCHANGED(GS_Product_Leader__c) || 
ISCHANGED(URO_owner_ID__c) || 
ISCHANGED(URO_Produc_Leader__c) || 
ISCHANGED(GYN_owner__c) || 
ISCHANGED(GYN_Product_Leader__c) || 
ISCHANGED(ENT_owner_ID__c) || 
ISCHANGED(ENT_Product_Leader__c) || 
ISCHANGED(FSE_SP_Main_Leader__c) || 
ISCHANGED(FSE_SP_Vice_Leader__c) || 
ISCHANGED(FSE_GI_Main_Leader__c) || 
ISCHANGED(FSE_GI_Vice_Leader__c) || 
ISCHANGED(Energy_LeaderStr__c) || 
ISCHANGED(FSE_ENG_Main_Leader__c) || 
ISCHANGED(FSE_ENG_Vice_Leader__c) || 
ISCHANGED(Valid_From__c) || 
ISCHANGED(Valid_To__c) || 
 
ISCHANGED(Quolified_App_Date__c) 
)</errorConditionFormula>
    <errorMessage>销售担当不能对医院做任何修改。</errorMessage>
</ValidationRule>