binxie
2024-01-20 e0de9222da210f9c8eb1a9f5400f936a14923e11
1
2
3
4
5
6
7
8
9
10
11
<?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  !=  &apos;系统管理员&apos;   &amp;&amp; 
 RecordType.DeveloperName = &apos;ServiceEngineerTraining&apos; &amp;&amp; is_pass_or_fail__c =0 &amp;&amp; Text(Status) != &apos;草案中&apos; &amp;&amp; ( 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>