<?xml version="1.0" encoding="UTF-8"?>
|
<ValidationRule xmlns="http://soap.sforce.com/2006/04/metadata">
|
<fullName>ServiceCannotUpdateDate</fullName>
|
<active>true</active>
|
<description>服务技师项目批准后不允许更新时间数据</description>
|
<errorConditionFormula>$Profile.Name != '系统管理员' &&
|
RecordType.DeveloperName = 'ServiceEngineerTraining' && is_pass_or_fail__c =0 && Text(Status) != '草案中' && ( ISCHANGED(StartDate__c) || ISCHANGED(Lesson1Date__c)|| ISCHANGED(Lesson2Date__c)|| ISCHANGED(Lesson3Date__c) || ISCHANGED(Lesson4Date__c)|| ISCHANGED(Lesson5Date__c)|| ISCHANGED(Lesson6Date__c)|| ISCHANGED(Lesson7Date__c)|| ISCHANGED(Lesson8Date__c) ||
|
ISCHANGED(FinalExamDate__c))</errorConditionFormula>
|
<errorDisplayField>Introduction__c</errorDisplayField>
|
<errorMessage>提交后时间不能修改,如想修改请提交时间修改申请</errorMessage>
|
</ValidationRule>
|