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
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
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
<?xml version="1.0" encoding="UTF-8"?>
<Workflow xmlns="http://soap.sforce.com/2006/04/metadata">
    <alerts>
        <fullName>EmailRejectToCreatedBy</fullName>
        <description>驳回后发送批准邮件</description>
        <protected>false</protected>
        <recipients>
            <type>owner</type>
        </recipients>
        <senderType>CurrentUser</senderType>
        <template>OPDPlan/OPDNoReportRejectTemplate</template>
    </alerts>
    <alerts>
        <fullName>EmailToCreatedBy</fullName>
        <description>批准后发送批准邮件</description>
        <protected>false</protected>
        <recipients>
            <type>owner</type>
        </recipients>
        <senderType>CurrentUser</senderType>
        <template>OPDPlan/OPDNoReportApprovalTemplate</template>
    </alerts>
    <alerts>
        <fullName>Login_Report</fullName>
        <description>OPD实施后三天内,提醒登录报告书;</description>
        <protected>false</protected>
        <recipients>
            <type>owner</type>
        </recipients>
        <senderType>CurrentUser</senderType>
        <template>OPDPlan/Login_Report</template>
    </alerts>
    <alerts>
        <fullName>OPDPlanAutomaticSystemDelay</fullName>
        <ccEmails>Xin_Prectech@olympus.com.cn</ccEmails>
        <description>OPD计划-系统自动延期</description>
        <protected>false</protected>
        <recipients>
            <type>owner</type>
        </recipients>
        <senderType>CurrentUser</senderType>
        <template>unfiled$public/OPDPlanAutomaticSystemDelay</template>
    </alerts>
    <alerts>
        <fullName>OPDPlanReject</fullName>
        <description>OPD计划驳回时邮件通知</description>
        <protected>false</protected>
        <recipients>
            <type>owner</type>
        </recipients>
        <senderType>CurrentUser</senderType>
        <template>OPDPlan/OPDRejectTemplate</template>
    </alerts>
    <alerts>
        <fullName>OPDPlan_7daysAgo_BorrowSpare</fullName>
        <description>OPD计划实施日7天前,提醒借备品</description>
        <protected>false</protected>
        <recipients>
            <type>owner</type>
        </recipients>
        <senderType>CurrentUser</senderType>
        <template>OPDPlan/RemindBorrowSpare</template>
    </alerts>
    <alerts>
        <fullName>OPD_Spare_Outbound</fullName>
        <description>OPD计划的备品发出后,提醒准备实施OPD</description>
        <protected>false</protected>
        <recipients>
            <type>owner</type>
        </recipients>
        <senderType>CurrentUser</senderType>
        <template>OPDPlan/Implement_OPD</template>
    </alerts>
    <alerts>
        <fullName>ShortageOfSpareParts</fullName>
        <ccEmails>Xin_Prectech@olympus.com.cn</ccEmails>
        <description>OPD计划取消并且备品不足</description>
        <protected>false</protected>
        <recipients>
            <type>owner</type>
        </recipients>
        <senderType>CurrentUser</senderType>
        <template>unfiled$public/ShortageOfSpareParts</template>
    </alerts>
    <fieldUpdates>
        <fullName>FinalDateNullUpdate</fullName>
        <field>FinalDate__c</field>
        <name>清空最终处理日</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Null</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>FinalDateUpdate</fullName>
        <field>FinalDate__c</field>
        <formula>today()</formula>
        <name>设置最终处理日</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>NoNSupplementaryApplication</fullName>
        <field>NoNSupplementaryApplication__c</field>
        <literalValue>1</literalValue>
        <name>非补充申请(后台用)</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Literal</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>OCSM_Rental_Text_Assignment</fullName>
        <field>OPDPlanOCM_man_province_Rental_Txt__c</field>
        <formula>Owner:User.OCM_man_province_Rental__c</formula>
        <name>从所有人OCSM省赋值(备用品)给文本</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>OCSM_Text_Assignment</fullName>
        <field>OPDPlanOCM_man_province_txt__c</field>
        <formula>Owner:User.OCM_man_province__c</formula>
        <name>从所有人OCSM省赋值给文本</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>OPDStatusPlan</fullName>
        <field>Status__c</field>
        <literalValue>计划中</literalValue>
        <name>OPD状态自动完成未报告到计划中</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Literal</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>OPDStatusUpdate</fullName>
        <field>Status__c</field>
        <literalValue>完毕未报告</literalValue>
        <name>OPD状态自动完成未报告</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Literal</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>OPDStatusUpdateFinish</fullName>
        <field>Status__c</field>
        <literalValue>完毕</literalValue>
        <name>OPD状态自动完成</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Literal</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>OPD_No</fullName>
        <field>Name</field>
        <formula>AutoNumber__c +&apos;&apos;</formula>
        <name>OPD计划No</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>UpdateJumpDate</fullName>
        <description>更新插队的时候,顺便更新插队日期</description>
        <field>JumpDate__c</field>
        <formula>TODAY()</formula>
        <name>更新插队日期</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>UpdateNoReportStatus</fullName>
        <field>noReportStatus__c</field>
        <literalValue>计划中</literalValue>
        <name>更新无报告状态计划中</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Literal</operation>
        <protected>false</protected>
        <reevaluateOnChange>true</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>UpdateNoReportStatus2</fullName>
        <field>noReportStatus__c</field>
        <literalValue>草案中</literalValue>
        <name>更新无报告状态草案中</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Literal</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>UpdateOPDApprover</fullName>
        <field>SalesManager__c</field>
        <name>清空批准人</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>LookupValue</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>UpdateRentalResonFlag</fullName>
        <field>RentalResonFlag__c</field>
        <literalValue>1</literalValue>
        <name>更新可以修改出借目的标识</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Literal</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>UpdateStatusComplete</fullName>
        <field>Status__c</field>
        <literalValue>完毕</literalValue>
        <name>更新状态完毕</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Literal</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>UpdateStatusCompletedToBeReported</fullName>
        <field>Status__c</field>
        <literalValue>完毕未报告</literalValue>
        <name>更新状态完毕未报告</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Literal</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>UpdateStatusWaitCommitReport</fullName>
        <description>//2021-12-15  mzy   SWAG-C8E6LE</description>
        <field>Status__c</field>
        <literalValue>待提交报告</literalValue>
        <name>更新状态待提交报告</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Literal</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>UpdateStatus_caoanzhong</fullName>
        <description>拒绝时需要将状态变回 &apos;草案中&apos;</description>
        <field>Status__c</field>
        <literalValue>草案中</literalValue>
        <name>更新状态_草案中</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Literal</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>UpdateStatus_jihuazhong</fullName>
        <description>将OPD计划的状态从&quot;提交&quot;改为&quot;计划中&quot;</description>
        <field>Status__c</field>
        <literalValue>计划中</literalValue>
        <name>更新状态_计划中</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Literal</operation>
        <protected>false</protected>
        <reevaluateOnChange>true</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>UpdatedOPDCancelDate</fullName>
        <field>CancelDate__c</field>
        <formula>TODAY()</formula>
        <name>记录opd计划取消日</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>UpdateedOPDImplementDate</fullName>
        <description>OPD计划实施日期temp】,变化时,更新到【OPD计划实施日期】</description>
        <field>OPDPlan_ImplementDate__c</field>
        <formula>OPDPlan_ImplementDate_temp__c</formula>
        <name>更新到OPD计划实施日期</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>opdUpdatedOPDCompleteDate</fullName>
        <field>CompleteDate__c</field>
        <formula>TODAY()</formula>
        <name>记录opd计划完成日</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>statusFieldUpdate</fullName>
        <description>来源是学会的,只要OPD实施日小于今天,状态变为完毕未报告
//2021-12-13 mzy SWAG-C8E6LE 来源是学会的,只要OPD实施日小于今天,状态变为待提交报告</description>
        <field>Status__c</field>
        <literalValue>待提交报告</literalValue>
        <name>状态等于待提交报告</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Literal</operation>
        <protected>false</protected>
        <reevaluateOnChange>true</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>updateStatus_jhz</fullName>
        <description>来源是学会的,只要OPD实施日大于今天,状态变为计划中</description>
        <field>Status__c</field>
        <literalValue>计划中</literalValue>
        <name>更新状态为计划中</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Literal</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <rules>
        <fullName>OCSM管理省%EF%BC%88备品%EF%BC%89文本赋值</fullName>
        <actions>
            <name>OCSM_Rental_Text_Assignment</name>
            <type>FieldUpdate</type>
        </actions>
        <active>true</active>
        <criteriaItems>
            <field>User.CreatedDate</field>
            <operation>notEqual</operation>
        </criteriaItems>
        <description>取OPD计划的所有人OCSM管理省(备品用)的值
用于共享给李海红   课题:SWAG-C548V6</description>
        <triggerType>onAllChanges</triggerType>
    </rules>
    <rules>
        <fullName>OCSM管理省文本赋值</fullName>
        <actions>
            <name>OCSM_Text_Assignment</name>
            <type>FieldUpdate</type>
        </actions>
        <active>true</active>
        <criteriaItems>
            <field>OPDPlan__c.CreatedDate</field>
            <operation>notEqual</operation>
        </criteriaItems>
        <description>取OPD计划的所有人OCSM管理省的值
用于共享给广东--熊美琴   (课题)</description>
        <triggerType>onAllChanges</triggerType>
    </rules>
    <rules>
        <fullName>OPD状态自动完成</fullName>
        <actions>
            <name>OPDStatusUpdateFinish</name>
            <type>FieldUpdate</type>
        </actions>
        <active>true</active>
        <description>不需要报告书,状态直接更新成完毕</description>
        <formula>if(And(!isBlank(Text(OPDType__c)),!isBlank(StayOrNot__c))&amp;&amp;Text(OPDType__c) == &apos;学会&apos; &amp;&amp; StayOrNot__c == &apos;已离职&apos;,false,True) &amp;&amp; Text(Status__c) !=&apos;取消&apos; &amp;&amp; Text(Status__c) != &apos;完毕&apos;  &amp;&amp; !isBlank(Text(OPDType__c)) &amp;&amp; Text(OPDType__c) != &apos;学会&apos;  &amp;&amp; ((!isBlank(Rental_Apply2__c)&amp;&amp; Rental_Apply2_Status__c == &apos;OVER&apos;) || (!isBlank(Rental_Apply1__c)&amp;&amp; Rental_Apply1_Status__c == &apos;OVER&apos;) || (!isBlank(Rental_Apply3__c) &amp;&amp; Rental_Apply3_Status__c == &apos;OVER&apos;) || (!isBlank(Rental_Apply4__c)&amp;&amp; Rental_Apply4_Status__c == &apos;OVER&apos;) || (!isBlank(Rental_Apply5__c) &amp;&amp; Rental_Apply5_Status__c == &apos;OVER&apos;))&amp;&amp; NeedReport__c = &apos;否&apos;</formula>
        <triggerType>onCreateOrTriggeringUpdate</triggerType>
    </rules>
    <rules>
        <fullName>OPD状态自动完成未报告</fullName>
        <actions>
            <name>OPDStatusUpdate</name>
            <type>FieldUpdate</type>
        </actions>
        <active>true</active>
        <description>所有的备品状态都已出库或取消(OVER),并且当前状态不是完毕。
2021-01-08日加上了第一行代码 byrentx SWAG-BWSBW3
2021-12-10 mzy  加上判断非  待提交报告状态  SWAG-C8E6LE</description>
        <formula>if(And(!isBlank(Text(OPDType__c)),!isBlank(StayOrNot__c))&amp;&amp;Text(OPDType__c) == &apos;学会&apos; &amp;&amp; StayOrNot__c == &apos;已离职&apos;,false,True) &amp;&amp; Text(Status__c) !=&apos;取消&apos;&amp;&amp; Text(Status__c) != &apos;待提交报告&apos;  &amp;&amp; Text(Status__c) != &apos;完毕&apos;  &amp;&amp; !isBlank(Text(OPDType__c)) &amp;&amp; Text(OPDType__c) != &apos;学会&apos;  &amp;&amp; ((!isBlank(Rental_Apply2__c)&amp;&amp; Rental_Apply2_Status__c == &apos;OVER&apos;))&amp;&amp; NeedReport__c != &apos;否&apos;</formula>
        <triggerType>onAllChanges</triggerType>
    </rules>
    <rules>
        <fullName>OPD状态自动计划中</fullName>
        <actions>
            <name>OPDStatusPlan</name>
            <type>FieldUpdate</type>
        </actions>
        <active>false</active>
        <formula>Text(Status__c)==&apos;完毕未报告&apos;  &amp;&amp;(!isBlank(Rental_Apply2__c)&amp;&amp;isBlank(Rental_Apply2_Status__c)||(!isBlank(Rental_Apply1__c)&amp;&amp;isBlank(Rental_Apply1_Status__c))||(!isBlank(Rental_Apply3__c)&amp;&amp;isBlank(Rental_Apply3_Status__c))||(!isBlank(Rental_Apply4__c)&amp;&amp;isBlank(Rental_Apply4_Status__c))||(!isBlank(Rental_Apply5__c)&amp;&amp;isBlank(Rental_Apply5_Status__c)))</formula>
        <triggerType>onCreateOrTriggeringUpdate</triggerType>
    </rules>
    <rules>
        <fullName>OPD计划-系统自动延期</fullName>
        <actions>
            <name>OPDPlanAutomaticSystemDelay</name>
            <type>Alert</type>
        </actions>
        <active>true</active>
        <formula>AND(ISCHANGED(SystemDelayMark__c),SystemDelayMark__c)</formula>
        <triggerType>onAllChanges</triggerType>
    </rules>
    <rules>
        <fullName>OPD计划No</fullName>
        <actions>
            <name>NoNSupplementaryApplication</name>
            <type>FieldUpdate</type>
        </actions>
        <actions>
            <name>OPD_No</name>
            <type>FieldUpdate</type>
        </actions>
        <active>true</active>
        <formula>AND(ISBLANK(OriginalOpdPlanRental__c),NOT(supplementaryApplication__c))</formula>
        <triggerType>onCreateOnly</triggerType>
    </rules>
    <rules>
        <fullName>OPD计划取消并且备品不足</fullName>
        <actions>
            <name>ShortageOfSpareParts</name>
            <type>Alert</type>
        </actions>
        <active>true</active>
        <formula>ISCHANGED(CancelOpdPlan__c) &amp;&amp; CancelOpdPlan__c</formula>
        <triggerType>onAllChanges</triggerType>
    </rules>
    <rules>
        <fullName>OPD计划实施日7天前%EF%BC%8C提醒借备品</fullName>
        <active>true</active>
        <description>update lxy 2020/11/04 OPD计划来源是学会的无需提醒,学会本身上有提前15天的提醒
update lxy 2020/11/11 所有的均需提醒,根据课题LZHU-BV22VN修改</description>
        <formula>AND(TEXT(Status__c) = &apos;计划中&apos;,Rental_Apply2__c = null)</formula>
        <triggerType>onCreateOrTriggeringUpdate</triggerType>
        <workflowTimeTriggers>
            <actions>
                <name>OPDPlan_7daysAgo_BorrowSpare</name>
                <type>Alert</type>
            </actions>
            <offsetFromField>OPDPlan__c.OPDPlan_ImplementDate__c</offsetFromField>
            <timeLength>-7</timeLength>
            <workflowTimeTriggerUnit>Days</workflowTimeTriggerUnit>
        </workflowTimeTriggers>
    </rules>
    <rules>
        <fullName>OPD计划的备品发出后%EF%BC%8C提醒准备实施OPD%E3%80%82</fullName>
        <actions>
            <name>OPD_Spare_Outbound</name>
            <type>Alert</type>
        </actions>
        <active>false</active>
        <criteriaItems>
            <field>OPDPlan__c.Status__c</field>
            <operation>equals</operation>
            <value>计划中</value>
        </criteriaItems>
        <criteriaItems>
            <field>OPDPlan__c.NewestRentalStatus__c</field>
            <operation>equals</operation>
            <value>已出库</value>
        </criteriaItems>
        <description>2021/3/9李绚课题:
以下邮件提醒为19年上线,不符目前OPD管理需求,请先进行系统禁用,谢谢</description>
        <triggerType>onAllChanges</triggerType>
    </rules>
    <rules>
        <fullName>opd实施日大于等于今天更新状态</fullName>
        <actions>
            <name>updateStatus_jhz</name>
            <type>FieldUpdate</type>
        </actions>
        <active>true</active>
        <description>//2021-12-13 mzy SWAG-C8E6LE 来源是学会的,计划日大于等于今天更新为计划中</description>
        <formula>Text(OPDType__c) =&apos;学会&apos; &amp;&amp; OPDPlan_ImplementDate__c &gt;=Today()&amp;&amp; Text(Status__c)=&apos;待提交报告&apos;</formula>
        <triggerType>onAllChanges</triggerType>
    </rules>
    <rules>
        <fullName>opd实施日小于今天更新状态</fullName>
        <actions>
            <name>statusFieldUpdate</name>
            <type>FieldUpdate</type>
        </actions>
        <active>true</active>
        <description>来源是学会的,只要OPD实施日小于今天,状态变为完毕未报告
//2021-12-13  mzy  来源是学会的,只要OPD实施日小于今天,状态变为待提交报告</description>
        <formula>Text(OPDType__c) =&apos;学会&apos; &amp;&amp; Text(Status__c)=&apos;计划中&apos; &amp;&amp; OPDPlan_ImplementDate__c &lt;Today()</formula>
        <triggerType>onAllChanges</triggerType>
    </rules>
    <rules>
        <fullName>更新_OPD计划实施日期</fullName>
        <actions>
            <name>UpdateedOPDImplementDate</name>
            <type>FieldUpdate</type>
        </actions>
        <active>true</active>
        <description>【OPD计划实施日期temp】,变化时 更新到【OPD计划实施日期】</description>
        <formula>ISCHANGED(OPDPlan_ImplementDate_temp__c) || (isNew() &amp;&amp; Text(OPDType__c)==&apos;学会&apos;)</formula>
        <triggerType>onAllChanges</triggerType>
    </rules>
    <rules>
        <fullName>更新插队_更新插队日期%28营业%29</fullName>
        <actions>
            <name>UpdateJumpDate</name>
            <type>FieldUpdate</type>
        </actions>
        <active>true</active>
        <criteriaItems>
            <field>OPDPlan__c.IsJump__c</field>
            <operation>equals</operation>
            <value>真</value>
        </criteriaItems>
        <description>更新插队的时候,顺便更新插队日期</description>
        <triggerType>onCreateOrTriggeringUpdate</triggerType>
    </rules>
    <rules>
        <fullName>最终处理日-自动清空</fullName>
        <actions>
            <name>FinalDateNullUpdate</name>
            <type>FieldUpdate</type>
        </actions>
        <active>false</active>
        <booleanFilter>1 OR 2</booleanFilter>
        <criteriaItems>
            <field>OPDPlan__c.Status__c</field>
            <operation>equals</operation>
            <value>计划中</value>
        </criteriaItems>
        <criteriaItems>
            <field>OPDPlan__c.Status__c</field>
            <operation>equals</operation>
        </criteriaItems>
        <triggerType>onCreateOrTriggeringUpdate</triggerType>
    </rules>
    <rules>
        <fullName>最终处理日-自动设置</fullName>
        <actions>
            <name>FinalDateUpdate</name>
            <type>FieldUpdate</type>
        </actions>
        <active>false</active>
        <criteriaItems>
            <field>OPDPlan__c.Status__c</field>
            <operation>equals</operation>
            <value>完毕,取消</value>
        </criteriaItems>
        <triggerType>onCreateOrTriggeringUpdate</triggerType>
    </rules>
    <rules>
        <fullName>登录报告书</fullName>
        <active>false</active>
        <criteriaItems>
            <field>OPDPlan__c.Status__c</field>
            <operation>equals</operation>
            <value>计划中</value>
        </criteriaItems>
        <description>update lxy 2020/11/18  开会时,海娟部长说不需要了,直接停用的</description>
        <triggerType>onCreateOrTriggeringUpdate</triggerType>
        <workflowTimeTriggers>
            <actions>
                <name>Login_Report</name>
                <type>Alert</type>
            </actions>
            <offsetFromField>OPDPlan__c.OPDPlan_ImplementDate__c</offsetFromField>
            <timeLength>3</timeLength>
            <workflowTimeTriggerUnit>Days</workflowTimeTriggerUnit>
        </workflowTimeTriggers>
    </rules>
    <rules>
        <fullName>记录_OPD计划取消日期</fullName>
        <actions>
            <name>UpdatedOPDCancelDate</name>
            <type>FieldUpdate</type>
        </actions>
        <active>true</active>
        <description>状态为取消时,记录当前日期</description>
        <formula>ISCHANGED(Status__c) &amp;&amp; Text(Status__c)==&apos;取消&apos;</formula>
        <triggerType>onAllChanges</triggerType>
    </rules>
    <rules>
        <fullName>记录_OPD计划完毕日期</fullName>
        <actions>
            <name>opdUpdatedOPDCompleteDate</name>
            <type>FieldUpdate</type>
        </actions>
        <active>true</active>
        <description>状态为完毕时,记录当前日期</description>
        <formula>ISCHANGED(Status__c) &amp;&amp; Text(Status__c)==&apos;完毕&apos;</formula>
        <triggerType>onAllChanges</triggerType>
    </rules>
</Workflow>