GWY
2022-04-27 12b7399736e90d33bfe0c2d29917d6f075246e00
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
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
<?xml version="1.0" encoding="UTF-8"?>
<Workflow xmlns="http://soap.sforce.com/2006/04/metadata">
    <alerts>
        <fullName>ANIAllUser</fullName>
        <description>ANI全员通知邮件</description>
        <protected>false</protected>
        <recipients>
            <field>Director_email__c</field>
            <type>email</type>
        </recipients>
        <recipients>
            <recipient>NDTAllUser</recipient>
            <type>group</type>
        </recipients>
        <recipients>
            <type>owner</type>
        </recipients>
        <senderType>CurrentUser</senderType>
        <template>unfiled$public/ThawingPermissions_Mail</template>
    </alerts>
    <alerts>
        <fullName>NDTAllUser</fullName>
        <description>NDT全员邮件</description>
        <protected>false</protected>
        <recipients>
            <field>Director_email__c</field>
            <type>email</type>
        </recipients>
        <recipients>
            <recipient>NDTAllUser</recipient>
            <type>group</type>
        </recipients>
        <recipients>
            <type>owner</type>
        </recipients>
        <recipients>
            <recipient>prectech@ssbg.com</recipient>
            <type>user</type>
        </recipients>
        <senderType>CurrentUser</senderType>
        <template>unfiled$public/ThawingPermissions_Mail</template>
    </alerts>
    <alerts>
        <fullName>ThawingPermissions</fullName>
        <description>解冻借用权限</description>
        <protected>false</protected>
        <recipients>
            <field>Violations_User__c</field>
            <type>userLookup</type>
        </recipients>
        <senderType>CurrentUser</senderType>
        <template>unfiled$public/ThawingPermissions_Mail</template>
    </alerts>
    <alerts>
        <fullName>lockingEmail</fullName>
        <description>冻结邮件</description>
        <protected>false</protected>
        <recipients>
            <field>Director_email__c</field>
            <type>email</type>
        </recipients>
        <recipients>
            <type>owner</type>
        </recipients>
        <senderType>CurrentUser</senderType>
        <template>unfiled$public/NDT_Violation</template>
    </alerts>
    <alerts>
        <fullName>lockingEmailcc</fullName>
        <description>冻结邮件cc</description>
        <protected>false</protected>
        <recipients>
            <recipient>NDTAllUser</recipient>
            <type>group</type>
        </recipients>
        <senderType>CurrentUser</senderType>
        <template>unfiled$public/NDT_Violationcc</template>
    </alerts>
    <fieldUpdates>
        <fullName>finish_date</fullName>
        <field>Violations_Stop_Date__c</field>
        <formula>TODAY()</formula>
        <name>结束冻结</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>finish_date1</fullName>
        <field>Violations_Stop_Date__c</field>
        <formula>TODAY()</formula>
        <name>结束冻结</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>finish_date3</fullName>
        <field>Violations_Stop_Date__c</field>
        <formula>TODAY()</formula>
        <name>结束冻结</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>finish_date4</fullName>
        <field>Violations_Stop_Date__c</field>
        <formula>TODAY()</formula>
        <name>结束冻结</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>finish_date5</fullName>
        <field>Violations_Stop_Date__c</field>
        <formula>TODAY()</formula>
        <name>结束冻结</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>finish_date6</fullName>
        <field>Violations_Stop_Date__c</field>
        <formula>TODAY()</formula>
        <name>结束冻结</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>finish_date7</fullName>
        <field>Violations_Stop_Date__c</field>
        <formula>TODAY()</formula>
        <name>结束冻结</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>finish_date8</fullName>
        <field>Violations_Stop_Date__c</field>
        <formula>TODAY()</formula>
        <name>结束冻结</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>get_Director_email</fullName>
        <field>Director_email__c</field>
        <formula>Violations_Loaner__r.Director_email__c</formula>
        <name>获取责任人邮箱</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>pass</fullName>
        <field>Is_locking__c</field>
        <literalValue>0</literalValue>
        <name>解冻批准</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Literal</operation>
        <protected>false</protected>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>pass1</fullName>
        <field>Is_locking__c</field>
        <literalValue>0</literalValue>
        <name>解冻批准</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Literal</operation>
        <protected>false</protected>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>pass2</fullName>
        <field>Is_locking__c</field>
        <literalValue>0</literalValue>
        <name>解冻批准</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Literal</operation>
        <protected>false</protected>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>pass3</fullName>
        <field>Is_locking__c</field>
        <literalValue>0</literalValue>
        <name>解冻批准</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Literal</operation>
        <protected>false</protected>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>pass4</fullName>
        <field>Is_locking__c</field>
        <literalValue>0</literalValue>
        <name>解冻批准</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Literal</operation>
        <protected>false</protected>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>pass5</fullName>
        <field>Is_locking__c</field>
        <literalValue>0</literalValue>
        <name>解冻批准</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Literal</operation>
        <protected>false</protected>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>pass6</fullName>
        <field>Is_locking__c</field>
        <literalValue>0</literalValue>
        <name>解冻批准</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Literal</operation>
        <protected>false</protected>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>pass7</fullName>
        <field>Is_locking__c</field>
        <literalValue>0</literalValue>
        <name>解冻批准</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Literal</operation>
        <protected>false</protected>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>user_type</fullName>
        <field>user_type_txt__c</field>
        <formula>user_type__c</formula>
        <name>用户分类记录</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
    </fieldUpdates>
    <rules>
        <fullName>NDT%2FANI违规邮件</fullName>
        <actions>
            <name>lockingEmail</name>
            <type>Alert</type>
        </actions>
        <actions>
            <name>lockingEmailcc</name>
            <type>Alert</type>
        </actions>
        <active>false</active>
        <formula>IF( AND(OR(user_type__c = &apos;NDT&apos;,
        user_type__c  = &apos;ANI&apos;), 
        Is_locking__c = true, 
        Is_effective__c = true ),
    IF( OR(Violations_User__r.ProfileId = &apos;00e28000000YMiL&apos;,
           Violations_User__r.ProfileId = &apos;00e28000000eN64&apos;, 
           Violations_User__r.ProfileId = &apos;00e0K000001l1E2&apos;,
           Violations_User__r.ProfileId = &apos;00e0K000001l1Dx&apos;,
           Violations_User__r.ProfileId = &apos;00e28000000YMif&apos;,
           Violations_User__r.ProfileId = &apos;00e28000000eN61&apos;,
           Violations_User__r.ProfileId = &apos;00e28000001wf2h&apos;,
           Violations_User__r.ProfileId = &apos;00e0K000001l1E7&apos;),
        false,
        true),
    false
)</formula>
        <triggerType>onCreateOrTriggeringUpdate</triggerType>
    </rules>
    <rules>
        <fullName>NDT%2FANI违规邮件_NEW</fullName>
        <actions>
            <name>lockingEmail</name>
            <type>Alert</type>
        </actions>
        <actions>
            <name>lockingEmailcc</name>
            <type>Alert</type>
        </actions>
        <active>true</active>
        <description>新的获取简档信息</description>
        <formula>IF( AND(OR(user_type__c = &apos;NDT&apos;,         user_type__c  = &apos;ANI&apos;),          Is_locking__c = true,          Is_effective__c = true ),     IF(CONTAINS($Label.NDT_ANI_violation_email,LEFT($User.Id,15)),         false,         true),     false )</formula>
        <triggerType>onCreateOrTriggeringUpdate</triggerType>
    </rules>
    <rules>
        <fullName>用户分类记录</fullName>
        <actions>
            <name>user_type</name>
            <type>FieldUpdate</type>
        </actions>
        <active>true</active>
        <criteriaItems>
            <field>User_Violations__c.user_type__c</field>
            <operation>notEqual</operation>
        </criteriaItems>
        <triggerType>onAllChanges</triggerType>
    </rules>
    <rules>
        <fullName>责任人邮箱</fullName>
        <actions>
            <name>get_Director_email</name>
            <type>FieldUpdate</type>
        </actions>
        <active>true</active>
        <criteriaItems>
            <field>loaner_application__c.Equipment_Type__c</field>
            <operation>equals</operation>
            <value>NDT,ANI</value>
        </criteriaItems>
        <triggerType>onCreateOnly</triggerType>
    </rules>
</Workflow>