<?xml version="1.0" encoding="UTF-8"?> 
 | 
<ValidationRule xmlns="http://soap.sforce.com/2006/04/metadata"> 
 | 
    <fullName>isNewNull</fullName> 
 | 
    <active>true</active> 
 | 
    <description>如果来源为空,不允许新建OPD计划</description> 
 | 
    <errorConditionFormula>isNew() && isBlank(Text(OPDType__c))&&  Not($User.Batch_User__c )</errorConditionFormula> 
 | 
    <errorMessage>请从新建事件、科室、询价或日报中新建OPD计划 。</errorMessage> 
 | 
</ValidationRule> 
 |