binxie
2024-01-22 102afa21c115e8c8b9333a326c3d1af08fe76faf
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
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
<?xml version="1.0" encoding="UTF-8"?>
<Workflow xmlns="http://soap.sforce.com/2006/04/metadata">
    <alerts>
        <fullName>ActionEmailCCAgency</fullName>
        <ccEmails>Zhao_Prectech@olympus.com.cn</ccEmails>
        <ccEmails>SFDC_Wangqingli@olympus.com.cn</ccEmails>
        <description>担当:处理意见后批准,发邮件 发助理</description>
        <protected>false</protected>
        <recipients>
            <field>Sales_assistant_name_text__c</field>
            <type>userLookup</type>
        </recipients>
        <senderType>CurrentUser</senderType>
        <template>eSignFormFolder/DealerFenApproval</template>
    </alerts>
    <alerts>
        <fullName>ActionEmailCCDenyAgency</fullName>
        <description>担当:拒绝 增加驳回原因,发邮件 发助理</description>
        <protected>false</protected>
        <recipients>
            <field>Sales_assistant_name_text__c</field>
            <type>userLookup</type>
        </recipients>
        <senderType>CurrentUser</senderType>
        <template>eSignFormFolder/RejectedFenByDistributor</template>
    </alerts>
    <alerts>
        <fullName>ActionEmailHPccZL</fullName>
        <ccEmails>Zhao_Prectech@olympus.com.cn</ccEmails>
        <ccEmails>SFDC_Wangqingli@olympus.com.cn</ccEmails>
        <description>医院部拒签分签收 邮件通知营业管理部担当+助理</description>
        <protected>false</protected>
        <recipients>
            <field>RC_Manager__c</field>
            <type>userLookup</type>
        </recipients>
        <recipients>
            <field>Sales_assistant_name_text__c</field>
            <type>userLookup</type>
        </recipients>
        <senderType>CurrentUser</senderType>
        <template>eSignFormFolder/HPPartOfTheDealerSignIn</template>
    </alerts>
    <alerts>
        <fullName>AgencyCCSalesAssistantName</fullName>
        <description>经销商确认cc营业管理和担当</description>
        <protected>false</protected>
        <recipients>
            <field>RC_Manager__c</field>
            <type>userLookup</type>
        </recipients>
        <recipients>
            <field>Sales_assistant_name_text__c</field>
            <type>userLookup</type>
        </recipients>
        <senderAddress>lu_liu@olympus.com.cn</senderAddress>
        <senderType>OrgWideEmailAddress</senderType>
        <template>eSignFormFolder/PartOfTheDealerSignIn</template>
    </alerts>
    <alerts>
        <fullName>DenyHPToAssistant</fullName>
        <description>驳回医院邮件发助理</description>
        <protected>false</protected>
        <recipients>
            <field>Sales_assistant_name_text__c</field>
            <type>userLookup</type>
        </recipients>
        <senderType>CurrentUser</senderType>
        <template>eSignFormFolder/RejectedFenByHPDistributor</template>
    </alerts>
    <alerts>
        <fullName>HPToAssistant2</fullName>
        <ccEmails>Zhao_Prectech@olympus.com.cn</ccEmails>
        <ccEmails>SFDC_Wangqingli@olympus.com.cn</ccEmails>
        <description>直销:批准医院邮件发助理</description>
        <protected>false</protected>
        <recipients>
            <field>Sales_assistant_name_text__c</field>
            <type>userLookup</type>
        </recipients>
        <senderType>CurrentUser</senderType>
        <template>eSignFormFolder/DealerFenHPApproval</template>
    </alerts>
    <alerts>
        <fullName>denyMailToAgency</fullName>
        <description>驳回时,mail经销商</description>
        <protected>false</protected>
        <recipients>
            <field>AgencyWorkflowEmail__c</field>
            <type>email</type>
        </recipients>
        <senderType>CurrentUser</senderType>
        <template>eSignFormFolder/RejectedEmailFenByDistributor</template>
    </alerts>
    <alerts>
        <fullName>denyMailToHP</fullName>
        <description>驳回后,mail医院</description>
        <protected>false</protected>
        <recipients>
            <field>HPWorkflowEmail__c</field>
            <type>email</type>
        </recipients>
        <senderType>CurrentUser</senderType>
        <template>eSignFormFolder/RejectedEmailFenHPByDistributor</template>
    </alerts>
    <alerts>
        <fullName>sendEmailToAgency</fullName>
        <ccEmails>Zhao_Prectech@olympus.com.cn</ccEmails>
        <ccEmails>SFDC_Wangqingli@olympus.com.cn</ccEmails>
        <description>填写处理意见后mail经销商</description>
        <protected>false</protected>
        <recipients>
            <field>AgencyWorkflowEmail__c</field>
            <type>email</type>
        </recipients>
        <senderType>CurrentUser</senderType>
        <template>eSignFormFolder/DealerEmailApproval</template>
    </alerts>
    <alerts>
        <fullName>sendEmailToHP</fullName>
        <ccEmails>Zhao_Prectech@olympus.com.cn</ccEmails>
        <ccEmails>SFDC_Wangqingli@olympus.com.cn</ccEmails>
        <description>直销:填写处理意见后mail医院</description>
        <protected>false</protected>
        <recipients>
            <field>HPWorkflowEmail__c</field>
            <type>email</type>
        </recipients>
        <senderType>CurrentUser</senderType>
        <template>eSignFormFolder/DealerEmailApprovalHP</template>
    </alerts>
    <alerts>
        <fullName>sevenDayToAgency</fullName>
        <ccEmails>SFDC_Wangqingli@olympus.com.cn</ccEmails>
        <description>7天提醒经销商</description>
        <protected>false</protected>
        <recipients>
            <field>AgencyWorkflowEmail__c</field>
            <type>email</type>
        </recipients>
        <senderType>CurrentUser</senderType>
        <template>eSignFormFolder/DealerFenApprovalSeven</template>
    </alerts>
    <alerts>
        <fullName>sevenDayToHP</fullName>
        <ccEmails>Zhao_Prectech@olympus.com.cn,SFDC_Wangqingli@olympus.com.cn</ccEmails>
        <description>7天提醒医院(直销)</description>
        <protected>false</protected>
        <recipients>
            <field>HPWorkflowEmail__c</field>
            <type>email</type>
        </recipients>
        <senderType>CurrentUser</senderType>
        <template>eSignFormFolder/DealerFenApprovalSeven</template>
    </alerts>
    <alerts>
        <fullName>sevenDayToZhuLi</fullName>
        <ccEmails>SFDC_Wangqingli@olympus.com.cn</ccEmails>
        <description>7天提醒助理</description>
        <protected>false</protected>
        <recipients>
            <field>Sales_assistant_name_text__c</field>
            <type>userLookup</type>
        </recipients>
        <senderType>CurrentUser</senderType>
        <template>eSignFormFolder/DealerFenApprovalSevenToZhuLi</template>
    </alerts>
    <fieldUpdates>
        <fullName>Set_Operator_Agency_Pass</fullName>
        <field>Operator_Agency_Pass__c</field>
        <formula>$User.Alias</formula>
        <name>设置经销商批准操作人</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>Set_Operator_Agency_Reject</fullName>
        <field>Operator_Agency_Reject__c</field>
        <formula>$User.Alias</formula>
        <name>设置经销商驳回操作人</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>Set_Operator_Hospital_Pass</fullName>
        <field>Operator_Hospital_Pass__c</field>
        <formula>$User.Alias</formula>
        <name>设置医院批准操作人</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>Set_Operator_Hospital_Reject</fullName>
        <field>Operator_Hospital_Reject__c</field>
        <formula>$User.Alias</formula>
        <name>设置医院驳回操作人</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>UpdateAgencyConfirmDate0916</fullName>
        <field>agencyConfirmDate__c</field>
        <formula>if(agencyAcceptResult__c =&apos;全部验收&apos;,today(),null)</formula>
        <name>更新经销商确认日</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>UpdateAgencyConfirmDateTen</fullName>
        <field>agencyConfirmDate__c</field>
        <formula>today()</formula>
        <name>更新经销商确认日</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>UpdateAgencyReject</fullName>
        <description>只有驳回时候赋值为true,不清除</description>
        <field>agencyReject__c</field>
        <literalValue>1</literalValue>
        <name>更新经销商驳回</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Literal</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>UpdateAgencyRejectDate</fullName>
        <description>更新签收单驳回日期</description>
        <field>agencyRejectDate__c</field>
        <formula>NOW()</formula>
        <name>更新经销商驳回日期</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>UpdateHPAutoConfirm</fullName>
        <field>HPAutoConfirm__c</field>
        <literalValue>1</literalValue>
        <name>更新医院自动确认</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Literal</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>UpdateHPConfirmDate</fullName>
        <field>HPConfirmDate__c</field>
        <formula>today()</formula>
        <name>更新医院确认日</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>UpdateHPDate1</fullName>
        <field>salesHPManageFBDate__c</field>
        <formula>today()</formula>
        <name>更新营业管理课反馈日-医院</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>UpdateHPDate2</fullName>
        <field>salesHPManageConfirmDate__c</field>
        <formula>today()</formula>
        <name>更新营业管理课确认日-医院</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>UpdateHPReject</fullName>
        <description>医院驳回的时候置成true,其他时候不赋值</description>
        <field>HPReject__c</field>
        <literalValue>1</literalValue>
        <name>更新医院驳回</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Literal</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>UpdateHPRejectDate</fullName>
        <description>医院驳回的时候记录驳回日期</description>
        <field>HPRejectDate__c</field>
        <formula>NOW()</formula>
        <name>更新医院驳回日期</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>UpdatesalesHPManageConfirmDate3</fullName>
        <field>salesHPManageConfirmDate__c</field>
        <formula>today()</formula>
        <name>更新营业管理课确认日-医院</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>UpdatesalesHPManageFBDate3</fullName>
        <field>salesHPManageFBDate__c</field>
        <formula>if(HPAcceptResult__c==&apos;全部验收&apos;,null,today())</formula>
        <name>更新营业管理部反馈日-医院</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>UpdatesalesManageConfirmDate0916</fullName>
        <description>当全部签收的时候,更新营业管理课确认日</description>
        <field>salesManageConfirmDate__c</field>
        <formula>today()</formula>
        <name>更新营业管理课确认日-经销商</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>UpdatesalesManageFBDate0916</fullName>
        <field>salesManageFBDate__c</field>
        <formula>if(agencyAcceptResult__c ==&apos;全部验收&apos;,null,today() )</formula>
        <name>更新营业管理课反馈日-经销商</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>ccAgency</fullName>
        <field>isSendEmail_del__c</field>
        <literalValue>1</literalValue>
        <name>更新发送cc经销商邮件标识</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Literal</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>ccAgencyIsFalse</fullName>
        <field>isSendEmail_del__c</field>
        <literalValue>0</literalValue>
        <name>是否发送邮件cc经销商置为假</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Literal</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>ccHPFalse</fullName>
        <field>isSendHPEmail_del__c</field>
        <literalValue>0</literalValue>
        <name>是否发送邮件cc医院置为假</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Literal</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>ccHPMAil</fullName>
        <field>isSendHPEmail_del__c</field>
        <literalValue>1</literalValue>
        <name>更新cc医院邮件标识</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Literal</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>dealerFormulaFieldAssignmentText</fullName>
        <field>SalesRootFormula__c</field>
        <formula>Sales_Root_Formula__c</formula>
        <name>销售渠道公式字段给文本字段赋值</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>deleteAgencyAttachNum</fullName>
        <description>驳回时,将附件更新数置为0</description>
        <field>agencyAttachNum__c</field>
        <formula>0</formula>
        <name>经销商附件更新数置0</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>deleteHPAttachNum</fullName>
        <description>驳回时,将医院附件更新数置为0</description>
        <field>HPAttachNum__c</field>
        <formula>0</formula>
        <name>医院附件更新数置0</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>endDateaddThree</fullName>
        <field>endConfirmDate__c</field>
        <formula>ADDMONTHS(today(),12)</formula>
        <name>最终确认日期+1年</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>hospitalFormulaFieldAssignmentText</fullName>
        <field>end_User__c</field>
        <formula>endUser__c</formula>
        <name>最终用户公式字段给文本字段赋值</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>updateagencyAutoConfirmTen</fullName>
        <field>agencyAutoConfirm__c</field>
        <literalValue>1</literalValue>
        <name>更新经销商自动确认</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Literal</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <rules>
        <fullName>公式拷文本%EF%BC%88经销商%E3%80%81医院%EF%BC%89跳过签收用</fullName>
        <actions>
            <name>dealerFormulaFieldAssignmentText</name>
            <type>FieldUpdate</type>
        </actions>
        <actions>
            <name>hospitalFormulaFieldAssignmentText</name>
            <type>FieldUpdate</type>
        </actions>
        <active>true</active>
        <description>因为公式太长</description>
        <formula>Isnew()|| ISCHANGED(endUser__c)|| ISCHANGED(Sales_Root_Formula__c)</formula>
        <triggerType>onAllChanges</triggerType>
    </rules>
    <rules>
        <fullName>分销%2F协议%EF%BC%9A批准%28经销商%29</fullName>
        <actions>
            <name>Set_Operator_Agency_Pass</name>
            <type>FieldUpdate</type>
        </actions>
        <actions>
            <name>UpdateAgencyConfirmDate0916</name>
            <type>FieldUpdate</type>
        </actions>
        <actions>
            <name>UpdatesalesManageConfirmDate0916</name>
            <type>FieldUpdate</type>
        </actions>
        <actions>
            <name>UpdatesalesManageFBDate0916</name>
            <type>FieldUpdate</type>
        </actions>
        <actions>
            <name>endDateaddThree</name>
            <type>FieldUpdate</type>
        </actions>
        <active>true</active>
        <formula>!isblank(agencySignUpDate__c) &amp;&amp; ISCHANGED(agencyAutoSignUpStatus__c) &amp;&amp; Text(agencyAutoSignUpStatus__c) = &apos;已批准&apos;</formula>
        <triggerType>onAllChanges</triggerType>
    </rules>
    <rules>
        <fullName>分销%2F协议%EF%BC%9A拒绝%28经销商%29</fullName>
        <actions>
            <name>ActionEmailCCDenyAgency</name>
            <type>Alert</type>
        </actions>
        <actions>
            <name>denyMailToAgency</name>
            <type>Alert</type>
        </actions>
        <actions>
            <name>Set_Operator_Agency_Reject</name>
            <type>FieldUpdate</type>
        </actions>
        <actions>
            <name>UpdateAgencyReject</name>
            <type>FieldUpdate</type>
        </actions>
        <actions>
            <name>UpdateAgencyRejectDate</name>
            <type>FieldUpdate</type>
        </actions>
        <actions>
            <name>ccAgencyIsFalse</name>
            <type>FieldUpdate</type>
        </actions>
        <actions>
            <name>deleteAgencyAttachNum</name>
            <type>FieldUpdate</type>
        </actions>
        <active>true</active>
        <formula>!isblank(agencySignUpDate__c) &amp;&amp; ISCHANGED(agencyAutoSignUpStatus__c) &amp;&amp;text(agencyAutoSignUpStatus__c)=&apos;不批准&apos;</formula>
        <triggerType>onAllChanges</triggerType>
    </rules>
    <rules>
        <fullName>分销%EF%BC%9A批准%28医院%29</fullName>
        <actions>
            <name>Set_Operator_Hospital_Pass</name>
            <type>FieldUpdate</type>
        </actions>
        <actions>
            <name>UpdateHPConfirmDate</name>
            <type>FieldUpdate</type>
        </actions>
        <actions>
            <name>UpdateHPDate1</name>
            <type>FieldUpdate</type>
        </actions>
        <actions>
            <name>UpdateHPDate2</name>
            <type>FieldUpdate</type>
        </actions>
        <actions>
            <name>endDateaddThree</name>
            <type>FieldUpdate</type>
        </actions>
        <active>true</active>
        <description>2023-03-13 增加医院确认日设置</description>
        <formula>!isblank(HPSignUpDate__c)&amp;&amp;ISCHANGED(HPSignUpStatus__c) &amp;&amp;text(HPSignUpStatus__c)=&apos;已批准&apos;</formula>
        <triggerType>onAllChanges</triggerType>
    </rules>
    <rules>
        <fullName>分销批准后有处理意见才发</fullName>
        <actions>
            <name>ActionEmailCCAgency</name>
            <type>Alert</type>
        </actions>
        <actions>
            <name>sendEmailToAgency</name>
            <type>Alert</type>
        </actions>
        <active>true</active>
        <criteriaItems>
            <field>eSignForm__c.agencyAutoSignUpStatus__c</field>
            <operation>equals</operation>
            <value>已批准</value>
        </criteriaItems>
        <criteriaItems>
            <field>eSignForm__c.salesManageFBDate__c</field>
            <operation>notEqual</operation>
        </criteriaItems>
        <criteriaItems>
            <field>eSignForm__c.salesManageConfirmDate__c</field>
            <operation>notEqual</operation>
        </criteriaItems>
        <criteriaItems>
            <field>eSignForm__c.agencyAcceptResult__c</field>
            <operation>equals</operation>
            <value>部分验收,拒收</value>
        </criteriaItems>
        <criteriaItems>
            <field>eSignForm__c.Name</field>
            <operation>notEqual</operation>
            <value>65234372-20201221</value>
        </criteriaItems>
        <triggerType>onCreateOrTriggeringUpdate</triggerType>
    </rules>
    <rules>
        <fullName>医院部分签收cc营业助理和担当</fullName>
        <actions>
            <name>ActionEmailHPccZL</name>
            <type>Alert</type>
        </actions>
        <actions>
            <name>ccHPMAil</name>
            <type>FieldUpdate</type>
        </actions>
        <active>true</active>
        <criteriaItems>
            <field>eSignForm__c.HPSignUpStatus__c</field>
            <operation>equals</operation>
            <value>申请中</value>
        </criteriaItems>
        <criteriaItems>
            <field>eSignForm__c.HPSignUpDate__c</field>
            <operation>notEqual</operation>
        </criteriaItems>
        <criteriaItems>
            <field>eSignForm__c.HPAcceptResult__c</field>
            <operation>equals</operation>
            <value>部分验收,拒收</value>
        </criteriaItems>
        <criteriaItems>
            <field>eSignForm__c.isSendHPEmail_del__c</field>
            <operation>equals</operation>
            <value>假</value>
        </criteriaItems>
        <triggerType>onAllChanges</triggerType>
    </rules>
    <rules>
        <fullName>医院驳回邮件补发-营业助理</fullName>
        <actions>
            <name>DenyHPToAssistant</name>
            <type>Alert</type>
        </actions>
        <active>false</active>
        <formula>AND($Profile.Id == &apos;00510000005sEEM&apos;, RejectHospitalToAssistant__c == true,text(HPSignUpStatus__c)=&apos;不批准&apos;)</formula>
        <triggerType>onAllChanges</triggerType>
    </rules>
    <rules>
        <fullName>更新最终确认日期</fullName>
        <actions>
            <name>endDateaddThree</name>
            <type>FieldUpdate</type>
        </actions>
        <active>false</active>
        <description>可靠性太低,已禁用,字段更新挪到各审批通过时点设置</description>
        <formula>(skip_Distribution_Sign__c &amp;&amp; HPDNSignUpStatus__c == &apos;签收已完成&apos;)
||(skip_Hospital_Sign__c&amp;&amp; agencyDNSignUpStatus__c == &apos;签收已完成&apos;)
||(Sales_Root_Formula__c==&apos;販売店&apos; &amp;&amp; HPDNSignUpStatus__c == &apos;签收已完成&apos; &amp;&amp; agencyDNSignUpStatus__c == &apos;签收已完成&apos;)</formula>
        <triggerType>onCreateOrTriggeringUpdate</triggerType>
    </rules>
    <rules>
        <fullName>直销%2F分销%3A拒绝%28医院%29</fullName>
        <actions>
            <name>DenyHPToAssistant</name>
            <type>Alert</type>
        </actions>
        <actions>
            <name>denyMailToHP</name>
            <type>Alert</type>
        </actions>
        <actions>
            <name>Set_Operator_Hospital_Reject</name>
            <type>FieldUpdate</type>
        </actions>
        <actions>
            <name>UpdateHPReject</name>
            <type>FieldUpdate</type>
        </actions>
        <actions>
            <name>UpdateHPRejectDate</name>
            <type>FieldUpdate</type>
        </actions>
        <actions>
            <name>ccHPFalse</name>
            <type>FieldUpdate</type>
        </actions>
        <actions>
            <name>deleteHPAttachNum</name>
            <type>FieldUpdate</type>
        </actions>
        <active>true</active>
        <formula>!isblank(HPSignUpDate__c)&amp;&amp; ISCHANGED(HPSignUpStatus__c) &amp;&amp;text(HPSignUpStatus__c)=&apos;不批准&apos;</formula>
        <triggerType>onAllChanges</triggerType>
    </rules>
    <rules>
        <fullName>直销%EF%BC%9A批准%28医院%29</fullName>
        <actions>
            <name>Set_Operator_Hospital_Pass</name>
            <type>FieldUpdate</type>
        </actions>
        <actions>
            <name>UpdateHPConfirmDate</name>
            <type>FieldUpdate</type>
        </actions>
        <actions>
            <name>UpdatesalesHPManageConfirmDate3</name>
            <type>FieldUpdate</type>
        </actions>
        <actions>
            <name>UpdatesalesHPManageFBDate3</name>
            <type>FieldUpdate</type>
        </actions>
        <actions>
            <name>endDateaddThree</name>
            <type>FieldUpdate</type>
        </actions>
        <active>true</active>
        <description>!isblank(HPSignUpDate__c)&amp;&amp;ISCHANGED(HPSignUpStatus__c) &amp;&amp;text(HPSignUpStatus__c)=&apos;已批准&apos;&amp;&amp;Sales_Root_Formula__c=&apos;OCM直接販売&apos;
Sales_Root_Formula__c=&apos;OCM直接販売&apos; 修改为 跳过经销商签收 = true</description>
        <formula>!isblank(HPSignUpDate__c)&amp;&amp;ISCHANGED(HPSignUpStatus__c) &amp;&amp;text(HPSignUpStatus__c)=&apos;已批准&apos;&amp;&amp;skip_Distribution_Sign__c=true</formula>
        <triggerType>onAllChanges</triggerType>
    </rules>
    <rules>
        <fullName>直销批准后有处理意见发邮件</fullName>
        <actions>
            <name>HPToAssistant2</name>
            <type>Alert</type>
        </actions>
        <actions>
            <name>sendEmailToHP</name>
            <type>Alert</type>
        </actions>
        <active>true</active>
        <formula>!isblank(HPSignUpDate__c) &amp;&amp; ISCHANGED(HPSignUpStatus__c) &amp;&amp; Text(HPSignUpStatus__c) = &apos;已批准&apos;&amp;&amp;(HPAcceptResult__c =&apos;部分验收&apos; || HPAcceptResult__c =&apos;拒收&apos;)&amp;&amp;Sales_Root_Formula__c = &apos;OCM直接販売&apos;</formula>
        <triggerType>onAllChanges</triggerType>
    </rules>
    <rules>
        <fullName>经销商部分签收cc营业助理和担当</fullName>
        <actions>
            <name>AgencyCCSalesAssistantName</name>
            <type>Alert</type>
        </actions>
        <actions>
            <name>ccAgency</name>
            <type>FieldUpdate</type>
        </actions>
        <active>true</active>
        <criteriaItems>
            <field>eSignForm__c.agencyAutoSignUpStatus__c</field>
            <operation>equals</operation>
            <value>申请中</value>
        </criteriaItems>
        <criteriaItems>
            <field>eSignForm__c.agencyAcceptResult__c</field>
            <operation>equals</operation>
            <value>部分验收,拒收</value>
        </criteriaItems>
        <criteriaItems>
            <field>eSignForm__c.agencySignUpDate__c</field>
            <operation>notEqual</operation>
        </criteriaItems>
        <criteriaItems>
            <field>eSignForm__c.isSendEmail_del__c</field>
            <operation>equals</operation>
            <value>假</value>
        </criteriaItems>
        <triggerType>onAllChanges</triggerType>
    </rules>
    <rules>
        <fullName>经销商驳回邮件补发-营业助理</fullName>
        <actions>
            <name>ActionEmailCCDenyAgency</name>
            <type>Alert</type>
        </actions>
        <active>false</active>
        <formula>AND($Profile.Id == &apos;00e10000000Y3o5&apos;, RejectAgencyToAssistant__c == true,  TEXT(agencyAutoSignUpStatus__c) == &apos;不批准&apos; )</formula>
        <triggerType>onAllChanges</triggerType>
    </rules>
    <rules>
        <fullName>自动确认%28医院%29</fullName>
        <actions>
            <name>UpdateHPConfirmDate</name>
            <type>FieldUpdate</type>
        </actions>
        <active>true</active>
        <criteriaItems>
            <field>eSignForm__c.HPAutoConfirm__c</field>
            <operation>equals</operation>
            <value>真</value>
        </criteriaItems>
        <triggerType>onAllChanges</triggerType>
    </rules>
    <rules>
        <fullName>自动确认%28经销商%29</fullName>
        <actions>
            <name>UpdateAgencyConfirmDateTen</name>
            <type>FieldUpdate</type>
        </actions>
        <active>true</active>
        <criteriaItems>
            <field>eSignForm__c.agencyAutoConfirm__c</field>
            <operation>equals</operation>
            <value>真</value>
        </criteriaItems>
        <triggerType>onAllChanges</triggerType>
    </rules>
    <rules>
        <fullName>部分拒收%28直销医院%297天email提醒-助理1</fullName>
        <active>true</active>
        <criteriaItems>
            <field>eSignForm__c.HPConfirmDate__c</field>
            <operation>equals</operation>
        </criteriaItems>
        <criteriaItems>
            <field>eSignForm__c.salesHPManageFBDate__c</field>
            <operation>notEqual</operation>
        </criteriaItems>
        <criteriaItems>
            <field>eSignForm__c.HPAcceptResult__c</field>
            <operation>equals</operation>
            <value>部分验收,整单非完好</value>
        </criteriaItems>
        <criteriaItems>
            <field>eSignForm__c.Sales_Root_Formula__c</field>
            <operation>equals</operation>
            <value>OCM直接販売</value>
        </criteriaItems>
        <triggerType>onCreateOrTriggeringUpdate</triggerType>
        <workflowTimeTriggers>
            <actions>
                <name>sevenDayToZhuLi</name>
                <type>Alert</type>
            </actions>
            <offsetFromField>eSignForm__c.salesHPManageConfirmDate__c</offsetFromField>
            <timeLength>7</timeLength>
            <workflowTimeTriggerUnit>Days</workflowTimeTriggerUnit>
        </workflowTimeTriggers>
    </rules>
    <rules>
        <fullName>部分拒收10天自动确认-医院2</fullName>
        <active>true</active>
        <criteriaItems>
            <field>eSignForm__c.HPConfirmDate__c</field>
            <operation>equals</operation>
        </criteriaItems>
        <criteriaItems>
            <field>eSignForm__c.salesHPManageFBDate__c</field>
            <operation>notEqual</operation>
        </criteriaItems>
        <criteriaItems>
            <field>eSignForm__c.HPAcceptResult__c</field>
            <operation>equals</operation>
            <value>部分验收,拒收</value>
        </criteriaItems>
        <criteriaItems>
            <field>eSignForm__c.Sales_Root_Formula__c</field>
            <operation>equals</operation>
            <value>OCM直接販売</value>
        </criteriaItems>
        <triggerType>onCreateOrTriggeringUpdate</triggerType>
        <workflowTimeTriggers>
            <actions>
                <name>UpdateHPAutoConfirm</name>
                <type>FieldUpdate</type>
            </actions>
            <actions>
                <name>UpdateHPConfirmDate</name>
                <type>FieldUpdate</type>
            </actions>
            <offsetFromField>eSignForm__c.salesHPManageConfirmDate__c</offsetFromField>
            <timeLength>10</timeLength>
            <workflowTimeTriggerUnit>Days</workflowTimeTriggerUnit>
        </workflowTimeTriggers>
    </rules>
    <rules>
        <fullName>部分拒收10天自动确认-经销商2</fullName>
        <active>true</active>
        <criteriaItems>
            <field>eSignForm__c.agencyConfirmDate__c</field>
            <operation>equals</operation>
        </criteriaItems>
        <criteriaItems>
            <field>eSignForm__c.salesManageFBDate__c</field>
            <operation>notEqual</operation>
        </criteriaItems>
        <criteriaItems>
            <field>eSignForm__c.agencyAcceptResult__c</field>
            <operation>equals</operation>
            <value>部分验收,整单非完好</value>
        </criteriaItems>
        <triggerType>onCreateOrTriggeringUpdate</triggerType>
        <workflowTimeTriggers>
            <actions>
                <name>UpdateAgencyConfirmDateTen</name>
                <type>FieldUpdate</type>
            </actions>
            <actions>
                <name>updateagencyAutoConfirmTen</name>
                <type>FieldUpdate</type>
            </actions>
            <offsetFromField>eSignForm__c.salesManageFBDate__c</offsetFromField>
            <timeLength>10</timeLength>
            <workflowTimeTriggerUnit>Days</workflowTimeTriggerUnit>
        </workflowTimeTriggers>
    </rules>
    <rules>
        <fullName>部分拒收7天email提醒-助理1</fullName>
        <active>true</active>
        <criteriaItems>
            <field>eSignForm__c.agencyConfirmDate__c</field>
            <operation>equals</operation>
        </criteriaItems>
        <criteriaItems>
            <field>eSignForm__c.salesManageFBDate__c</field>
            <operation>notEqual</operation>
        </criteriaItems>
        <criteriaItems>
            <field>eSignForm__c.agencyAcceptResult__c</field>
            <operation>equals</operation>
            <value>部分验收,整单非完好</value>
        </criteriaItems>
        <triggerType>onCreateOrTriggeringUpdate</triggerType>
        <workflowTimeTriggers>
            <actions>
                <name>sevenDayToZhuLi</name>
                <type>Alert</type>
            </actions>
            <offsetFromField>eSignForm__c.salesManageFBDate__c</offsetFromField>
            <timeLength>7</timeLength>
            <workflowTimeTriggerUnit>Days</workflowTimeTriggerUnit>
        </workflowTimeTriggers>
    </rules>
    <rules>
        <fullName>部分拒收7天email提醒-医院2</fullName>
        <active>true</active>
        <criteriaItems>
            <field>eSignForm__c.HPConfirmDate__c</field>
            <operation>equals</operation>
        </criteriaItems>
        <criteriaItems>
            <field>eSignForm__c.salesHPManageFBDate__c</field>
            <operation>notEqual</operation>
        </criteriaItems>
        <criteriaItems>
            <field>eSignForm__c.HPAcceptResult__c</field>
            <operation>equals</operation>
            <value>部分验收,整单非完好</value>
        </criteriaItems>
        <criteriaItems>
            <field>eSignForm__c.Sales_Root_Formula__c</field>
            <operation>equals</operation>
            <value>OCM直接販売</value>
        </criteriaItems>
        <triggerType>onCreateOrTriggeringUpdate</triggerType>
        <workflowTimeTriggers>
            <actions>
                <name>sevenDayToHP</name>
                <type>Alert</type>
            </actions>
            <offsetFromField>eSignForm__c.salesHPManageConfirmDate__c</offsetFromField>
            <timeLength>7</timeLength>
            <workflowTimeTriggerUnit>Days</workflowTimeTriggerUnit>
        </workflowTimeTriggers>
    </rules>
    <rules>
        <fullName>部分拒收7天email提醒-经销商2</fullName>
        <active>true</active>
        <criteriaItems>
            <field>eSignForm__c.agencyConfirmDate__c</field>
            <operation>equals</operation>
        </criteriaItems>
        <criteriaItems>
            <field>eSignForm__c.salesManageFBDate__c</field>
            <operation>notEqual</operation>
        </criteriaItems>
        <criteriaItems>
            <field>eSignForm__c.agencyAcceptResult__c</field>
            <operation>equals</operation>
            <value>部分验收,整单非完好</value>
        </criteriaItems>
        <triggerType>onCreateOrTriggeringUpdate</triggerType>
        <workflowTimeTriggers>
            <actions>
                <name>sevenDayToAgency</name>
                <type>Alert</type>
            </actions>
            <offsetFromField>eSignForm__c.salesManageFBDate__c</offsetFromField>
            <timeLength>7</timeLength>
            <workflowTimeTriggerUnit>Days</workflowTimeTriggerUnit>
        </workflowTimeTriggers>
    </rules>
</Workflow>