<?xml version="1.0" encoding="UTF-8"?> 
 | 
<ValidationRule xmlns="http://soap.sforce.com/2006/04/metadata"> 
 | 
    <fullName>Not_Modify_government_department</fullName> 
 | 
    <active>true</active> 
 | 
    <description>医院批准后不能修改政府部门</description> 
 | 
    <errorConditionFormula>AND ( 
 | 
ISCHANGED(government_department__c) , 
 | 
OR ( $User.ProfileId='00e10000000xnpR' , 
 | 
$User.ProfileId='00e10000000xyK6' , 
 | 
$User.ProfileId='00e10000000NbCE' , 
 | 
$User.ProfileId='00e10000000xnpb' ) , 
 | 
NOT ( ISBLANK ( Approved_Confirm_Date__c ) ) 
 | 
)</errorConditionFormula> 
 | 
    <errorDisplayField>government_department__c</errorDisplayField> 
 | 
    <errorMessage>医院批准后助理不能修改政府部门</errorMessage> 
 | 
</ValidationRule> 
 |