<?xml version="1.0" encoding="UTF-8"?> 
 | 
<ValidationRule xmlns="http://soap.sforce.com/2006/04/metadata"> 
 | 
    <fullName>Need_ContractDate_When_Contract</fullName> 
 | 
    <active>true</active> 
 | 
    <errorConditionFormula>$Profile.Id != '00eC600000003SX' /* GPI_系统管理员 不报错 */  
 | 
&& 
 | 
$Profile.Id != '00eC800000005Cb' /* 系统管理员 不报错 */  
 | 
&&   
 | 
$User.Id != '005C60000001UFN' /* Batch User 不报错 */  
 | 
&&  
 | 
Len( Maintenance_Contract_No__c ) > 1 && Isnull(Contract_Conclusion_Date__c)</errorConditionFormula> 
 | 
    <errorDisplayField>Contract_Conclusion_Date__c</errorDisplayField> 
 | 
    <errorMessage>状态变为合同时,必须输入「合同日」</errorMessage> 
 | 
</ValidationRule> 
 |