<?xml version="1.0" encoding="UTF-8"?> 
 | 
<ValidationRule xmlns="http://soap.sforce.com/2006/04/metadata"> 
 | 
    <fullName>After_Request_approve_PIPL</fullName> 
 | 
    <active>true</active> 
 | 
    <description>申请单批准后,不能编辑耗材备品借用信息</description> 
 | 
    <errorConditionFormula>((TEXT( Status__c) <> '草案中' && TEXT( Status__c) <> '填写完毕' && TEXT( Status__c) <> '申请中' )) 
 | 
&& 
 | 
(($Profile.Name  <>'系统管理员')&& 
 | 
($Profile.Name <>'2B1_备品中心受理窗口') 
 | 
/*&&($User.ProfileId <>'00e10000000xo1D')*/ 
 | 
) 
 | 
&& 
 | 
(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(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_send__c) || ISCHANGED(pickup_time__c)  
 | 
|| ISCHANGED(Loaner_received_staff_phone__c) || ISCHANGED(Post_Code__c) || ISCHANGED(Is_Special_Rental__c) 
 | 
|| ISCHANGED(NoDirectReason__c)||ISCHANGED(NoDirectNoteReason__c) 
 | 
|| ISCHANGED(Medical_Institution_Address__c)||ISCHANGED(Medical_Institution_Address_sup__c) 
 | 
) 
 | 
&& NOT($User.Batch_User__c)   
 | 
&& $Profile.Name  <>'GPI_系统管理员'</errorConditionFormula> 
 | 
    <errorMessage>申请单批准后,不能编辑耗材备品借用信息</errorMessage> 
 | 
</ValidationRule> 
 |