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
<?xml version="1.0" encoding="UTF-8"?>
<ValidationRule xmlns="http://soap.sforce.com/2006/04/metadata">
    <fullName>HospitalsoNotHavePermissionToModi</fullName>
    <active>true</active>
    <errorConditionFormula>AND (
OR(
ISCHANGED(Name),
ISCHANGED(Site),
ISCHANGED(Alias_Name2__c),
ISCHANGED(Abbreviation__c),
ISCHANGED(Attribute_Type__c),
ISCHANGED(Grade__c),
ISCHANGED(Speciality_Type__c),
ISCHANGED(Field3_companyname__c),
ISCHANGED(State_Master__c),
ISCHANGED(City_Master__c),
ISCHANGED(Town__c),
ISCHANGED(Postal_Code__c)
),
Acc_Record_Type__c = &apos;病院&apos;,
$User.ProfileId !=&apos;00e10000000dEQx&apos;,
$User.ProfileId !=&apos;00e10000000Y3o5&apos;,
Text(Is_Active__c )!= &apos;草案中&apos;
)</errorConditionFormula>
    <errorMessage>医院以批准无法更改信息</errorMessage>
</ValidationRule>