binxie
2024-01-20 2ff0f0a7ab276c3466d9e06e14222db802194efc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
<?xml version="1.0" encoding="UTF-8"?>
<Workflow xmlns="http://soap.sforce.com/2006/04/metadata">
    <alerts>
        <fullName>AssessmentReportEmailService</fullName>
        <description>考核报告审批通过邮件提醒</description>
        <protected>false</protected>
        <recipients>
            <type>owner</type>
        </recipients>
        <senderAddress>lu_liu@olympus.com.cn</senderAddress>
        <senderType>OrgWideEmailAddress</senderType>
        <template>CampainFolder/AssessmentReportApprovalEmailTemplateService</template>
    </alerts>
    <alerts>
        <fullName>ServiceAssessmentAproval</fullName>
        <description>服务技师考核报告审批通过</description>
        <protected>false</protected>
        <recipients>
            <type>owner</type>
        </recipients>
        <senderAddress>lu_liu@olympus.com.cn</senderAddress>
        <senderType>OrgWideEmailAddress</senderType>
        <template>CampainFolder/AssessmentReportApprovalEmailTemplateService</template>
    </alerts>
    <alerts>
        <fullName>ServiceAssessmentNotAproval</fullName>
        <description>服务技师授课报告审批拒绝</description>
        <protected>false</protected>
        <recipients>
            <type>owner</type>
        </recipients>
        <senderAddress>lu_liu@olympus.com.cn</senderAddress>
        <senderType>OrgWideEmailAddress</senderType>
        <template>CampainFolder/Meetting_AssessmentNotApproved</template>
    </alerts>
    <alerts>
        <fullName>ServiceTeachingreportAproval</fullName>
        <description>服务技师授课报告审批通过</description>
        <protected>false</protected>
        <recipients>
            <type>owner</type>
        </recipients>
        <senderAddress>lu_liu@olympus.com.cn</senderAddress>
        <senderType>OrgWideEmailAddress</senderType>
        <template>CampainFolder/teachingReportApprovalEmailTemplateService</template>
    </alerts>
    <alerts>
        <fullName>TeachingReportEmailService</fullName>
        <description>授课报告审批通过邮件提醒</description>
        <protected>false</protected>
        <recipients>
            <type>owner</type>
        </recipients>
        <senderAddress>lu_liu@olympus.com.cn</senderAddress>
        <senderType>OrgWideEmailAddress</senderType>
        <template>CampainFolder/teachingReportApprovalEmailTemplateService</template>
    </alerts>
    <fieldUpdates>
        <fullName>UpdateMailFlag_ApprovedToTrue</fullName>
        <description>设定cc审核邮件标签为真</description>
        <field>MailFlag_Approved__c</field>
        <literalValue>1</literalValue>
        <name>设定cc审核邮件标签为真</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Literal</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>UpdateStatusToDraft</fullName>
        <description>设定-状态修改到草案中</description>
        <field>Status__c</field>
        <literalValue>草案中</literalValue>
        <name>设定-状态修改到草案中</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Literal</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>UpdateStatusToNotApproved</fullName>
        <field>Status__c</field>
        <literalValue>不批准</literalValue>
        <name>设定-状态修改到不批准</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Literal</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>UpdateStatustoApproved</fullName>
        <description>设定-状态修改到已批准</description>
        <field>Status__c</field>
        <literalValue>批准</literalValue>
        <name>设定-状态修改到已批准</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Literal</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>UpdateTeachingHours</fullName>
        <field>TeachingHour__c</field>
        <formula>if(Text(TeachingHourSelect__c) = &apos;其他&apos;, TeachingHourOther__c, VALUE(Text(TeachingHourSelect__c)))</formula>
        <name>更新授课时长</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>Update_open_request</fullName>
        <description>设定-状态修改到申请中</description>
        <field>Status__c</field>
        <literalValue>审批中</literalValue>
        <name>设定-状态修改到申请中</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Literal</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>updateReportDate</fullName>
        <description>设置报告提交日期</description>
        <field>ReportDate__c</field>
        <formula>Today()</formula>
        <name>设置报告提交日期</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <rules>
        <fullName>生成授课时长</fullName>
        <actions>
            <name>UpdateTeachingHours</name>
            <type>FieldUpdate</type>
        </actions>
        <active>true</active>
        <criteriaItems>
            <field>AssessmentReport__c.TeachingHourSelect__c</field>
            <operation>notEqual</operation>
        </criteriaItems>
        <description>生成授课时长</description>
        <triggerType>onAllChanges</triggerType>
    </rules>
</Workflow>