binxie
2024-01-20 e0de9222da210f9c8eb1a9f5400f936a14923e11
1
2
3
4
5
6
7
8
9
10
11
12
13
<?xml version="1.0" encoding="UTF-8"?>
<ValidationRule xmlns="http://soap.sforce.com/2006/04/metadata">
    <fullName>ServiceCannotUpdateBasicInformation</fullName>
    <active>true</active>
    <description>2S5提交后不能修改基本信息</description>
    <errorConditionFormula>$Profile.Name != &apos;系统管理员&apos;  &amp;&amp; 
RecordType.DeveloperName = &apos;ServiceEngineerTraining&apos; &amp;&amp;  Text(Status) != &apos;草案中&apos; &amp;&amp; ( ISCHANGED(TrainingType__c) || ISCHANGED(Lesson_Type__c) || ISCHANGED(Event_Type__c)
|| ISCHANGED(CooperatorName__c) || ISCHANGED(comment__c)|| ISCHANGED(Cover_Area__c)|| ISCHANGED(TeachingFrequency__c)
|| ISCHANGED(TeachingFrequencyOther__c)
|| ISCHANGED(TrainingLecturer1__c) || ISCHANGED(TrainingLecturer2__c)|| ISCHANGED(TrainingLecturer3__c) || ISCHANGED(TrainingLecturer4__c)|| ISCHANGED(TrainingLecturer5__c))</errorConditionFormula>
    <errorDisplayField>Introduction__c</errorDisplayField>
    <errorMessage>领导批准后不可以编辑基础信息和授课内容</errorMessage>
</ValidationRule>