<?xml version="1.0" encoding="UTF-8"?>
|
<ValidationRule xmlns="http://soap.sforce.com/2006/04/metadata">
|
<fullName>ServiceStartDateCheck</fullName>
|
<active>true</active>
|
<description>开班日期不能选择当前及之前的日期</description>
|
<errorConditionFormula>$Profile.Name != '系统管理员' && $User.Id != ServiceDesignDep__c &&
|
RecordType.DeveloperName = 'ServiceEngineerTraining' &&( ISBLANK(StartDate__c) || (
|
StartDate__c <= Today() && (ISNew() || ISCHANGED(StartDate__c)) && Text(Status) = '草案中'))</errorConditionFormula>
|
<errorMessage>开班日期不得早于今天!</errorMessage>
|
</ValidationRule>
|