binxie
2024-01-20 1d91be0be5220ce19ee64de5a5c9a8237b1c15b1
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
<?xml version="1.0" encoding="UTF-8"?>
<Workflow xmlns="http://soap.sforce.com/2006/04/metadata">
    <alerts>
        <fullName>ActionEmail</fullName>
        <ccEmails>ling_zhu@olympus.com.cn</ccEmails>
        <ccEmails>shuo_wang@olympus.com.cn</ccEmails>
        <description>SWAG-BD9A76 【委托】 日报状态为批准时,设置邮件提醒功能</description>
        <protected>false</protected>
        <recipients>
            <field>HospitalMainResponsibility__c</field>
            <type>userLookup</type>
        </recipients>
        <recipients>
            <field>MainResponsibilityDirector__c</field>
            <type>userLookup</type>
        </recipients>
        <recipients>
            <field>MainResponsibilityManager__c</field>
            <type>userLookup</type>
        </recipients>
        <recipients>
            <field>MainResponsibilityMinister__c</field>
            <type>userLookup</type>
        </recipients>
        <senderAddress>lu_liu@olympus.com.cn</senderAddress>
        <senderType>OrgWideEmailAddress</senderType>
        <template>unfiled$public/EmailTemplate4</template>
    </alerts>
    <alerts>
        <fullName>Buchang_feedback</fullName>
        <description>总监/部长反馈通知</description>
        <protected>false</protected>
        <recipients>
            <type>owner</type>
        </recipients>
        <senderType>CurrentUser</senderType>
        <template>Activity_feedback/Activity_feedback_zongjian</template>
    </alerts>
    <alerts>
        <fullName>EventCSubmitedMail</fullName>
        <description>日报变成申请中(医院),发Email</description>
        <protected>false</protected>
        <recipients>
            <field>Boss_Mail__c</field>
            <type>email</type>
        </recipients>
        <recipients>
            <field>Sub_Boss_Mail__c</field>
            <type>email</type>
        </recipients>
        <senderType>CurrentUser</senderType>
        <template>Olympus_OCM/EventCSubmitedMail</template>
    </alerts>
    <alerts>
        <fullName>Find_Imitations_Email</fullName>
        <ccEmails>hiroki_hotta@olympus.com.cn,yoshihiko_terabori@olympus.com.cn</ccEmails>
        <description>日报-发现仿制品的提醒邮件</description>
        <protected>false</protected>
        <recipients>
            <field>Imitation_Mail__c</field>
            <type>email</type>
        </recipients>
        <senderType>CurrentUser</senderType>
        <template>Activity_feedback/CloneProWarn</template>
    </alerts>
    <alerts>
        <fullName>Manager_feedback_comment</fullName>
        <description>经理反馈</description>
        <protected>false</protected>
        <recipients>
            <type>owner</type>
        </recipients>
        <senderType>CurrentUser</senderType>
        <template>Activity_feedback/Activity_feedback</template>
    </alerts>
    <fieldUpdates>
        <fullName>ActionFieldUpdate</fullName>
        <field>NotSendEmail__c</field>
        <literalValue>0</literalValue>
        <name>更新是否未发送邮件字段</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Literal</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>SetManagerFirstConfirmTime</fullName>
        <field>Manager_Firstcheck_Time__c</field>
        <formula>Manager_Check_Time__c</formula>
        <name>经理初次确认时间设定</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>SetMinisterFirstConfirmTime</fullName>
        <field>Minister_Firstcheck_Time__c</field>
        <formula>Minister_Check_Time__c</formula>
        <name>部长总监初次确认时间设定</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>Update_Reporeter_Dept</fullName>
        <field>Reporter_Dept__c</field>
        <formula>text(Daily_Report__r.Reporter__r.Dept__c)</formula>
        <name>報告者・本部(选项)更新</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>Update_Reporeter_Province</fullName>
        <field>Reporter_Province__c</field>
        <formula>text(Daily_Report__r.Reporter__r.Province__c)</formula>
        <name>報告者・省更新</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>Update_Reporter_Job_Category</fullName>
        <field>Reporter_Job_Category__c</field>
        <formula>text(Daily_Report__r.Reporter__r.Job_Category__c)</formula>
        <name>報告者・職種更新</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>Update_Reporter_Post</fullName>
        <field>Reporter_Post__c</field>
        <formula>text(Daily_Report__r.Reporter__r.Post__c)</formula>
        <name>報告者・役職更新</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>Update_Reporter_Pregnant_Rest</fullName>
        <field>Reporter_Pregnant_Rest__c</field>
        <formula>if(Daily_Report__r.Reporter__r.Pregnant_Rest__c = true, 1, 0)</formula>
        <name>報告者・是否产假更新</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>Update_Reporter_Product_specialist_incha</fullName>
        <field>Reporter_Product_specialist_incharge_pro__c</field>
        <formula>text(Daily_Report__r.Reporter__r.Product_specialist_incharge_product__c)</formula>
        <name>報告者・推进员工负责产品</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>Update_Reporter_Salesdepartment</fullName>
        <field>Reporter_Salesdepartment__c</field>
        <formula>Daily_Report__r.Reporter__r.Salesdepartment__c</formula>
        <name>報告者・本部更新</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>Update_Reporter_Test_staff</fullName>
        <field>Reporter_Test_staff__c</field>
        <formula>if ( Daily_Report__r.Reporter__r.Test_staff__c = true, 1, 0)</formula>
        <name>報告者・开发/测试员工更新</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>Update_Reporter_Work_Location</fullName>
        <field>Reporter_Work_Location__c</field>
        <formula>text(Daily_Report__r.Reporter__r.Work_Location__c)</formula>
        <name>報告者・勤務地更新</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>Update_Reporter_isActive</fullName>
        <field>Reporter_isActive__c</field>
        <formula>if ( Daily_Report__r.Reporter__r.IsActive = true, 1, 0)</formula>
        <name>報告者・有効無効更新</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>Update_Responsible_for_Products_Concurre</fullName>
        <field>Responsible_for_Products_Concurrently__c</field>
        <formula>TEXT(Daily_Report__r.Reporter__r.Responsible_for_Products_Concurrently__c)</formula>
        <name>报告者・推进员工负责产品(兼)</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>set_Imitation_Mail</fullName>
        <field>Imitation_Mail__c</field>
        <formula>&quot;OCN_IP@olympus.com.cn&quot;</formula>
        <name>设定-仿制品邮箱</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>true</reevaluateOnChange>
    </fieldUpdates>
    <rules>
        <fullName>七个营业部门以外的部门填写日报开启邮件提醒功能</fullName>
        <actions>
            <name>ActionEmail</name>
            <type>Alert</type>
        </actions>
        <actions>
            <name>ActionFieldUpdate</name>
            <type>FieldUpdate</type>
        </actions>
        <active>true</active>
        <booleanFilter>1 AND 2 AND 3 AND 4 AND 5 AND 6 AND 7 AND 8 AND 9 AND  (10 OR 11 OR 12)</booleanFilter>
        <criteriaItems>
            <field>Event__c.Activity_Type2__c</field>
            <operation>equals</operation>
            <value>病院</value>
        </criteriaItems>
        <criteriaItems>
            <field>Event__c.Reporter_Salesdepartment__c</field>
            <operation>notContain</operation>
            <value>华北</value>
        </criteriaItems>
        <criteriaItems>
            <field>Event__c.Reporter_Salesdepartment__c</field>
            <operation>notContain</operation>
            <value>东北</value>
        </criteriaItems>
        <criteriaItems>
            <field>Event__c.Reporter_Salesdepartment__c</field>
            <operation>notContain</operation>
            <value>西北</value>
        </criteriaItems>
        <criteriaItems>
            <field>Event__c.Reporter_Salesdepartment__c</field>
            <operation>notContain</operation>
            <value>西南</value>
        </criteriaItems>
        <criteriaItems>
            <field>Event__c.Reporter_Salesdepartment__c</field>
            <operation>notContain</operation>
            <value>华东</value>
        </criteriaItems>
        <criteriaItems>
            <field>Event__c.Reporter_Salesdepartment__c</field>
            <operation>notContain</operation>
            <value>华南</value>
        </criteriaItems>
        <criteriaItems>
            <field>Event__c.Reporter_Salesdepartment__c</field>
            <operation>notContain</operation>
            <value>能量</value>
        </criteriaItems>
        <criteriaItems>
            <field>Event__c.NotSendEmail__c</field>
            <operation>equals</operation>
            <value>真</value>
        </criteriaItems>
        <criteriaItems>
            <field>Daily_Report__c.Status__c</field>
            <operation>equals</operation>
            <value>承認</value>
        </criteriaItems>
        <criteriaItems>
            <field>Event__c.Minister__c</field>
            <operation>equals</operation>
            <value>真</value>
        </criteriaItems>
        <criteriaItems>
            <field>Event__c.Manager__c</field>
            <operation>equals</operation>
            <value>真</value>
        </criteriaItems>
        <description>SWAG-BD9A76 【委托】 日报状态为批准时,设置邮件提醒功能</description>
        <triggerType>onAllChanges</triggerType>
    </rules>
    <rules>
        <fullName>总监%2F部长反馈邮件通知</fullName>
        <actions>
            <name>Buchang_feedback</name>
            <type>Alert</type>
        </actions>
        <active>true</active>
        <formula>ISCHANGED(Minister_Comment__c)</formula>
        <triggerType>onAllChanges</triggerType>
    </rules>
    <rules>
        <fullName>报告一览-发现模仿嫌疑品</fullName>
        <actions>
            <name>Find_Imitations_Email</name>
            <type>Alert</type>
        </actions>
        <active>true</active>
        <description>【发现模仿嫌疑品】时候勾选flag 邮件通知
/*Status_With_Check__c=&apos;申请中&apos; &amp;&amp; (Find_Imitations_Flag__c == true) &amp;&amp; NOT(ISBLANK(Imitation_Mail__c))*/</description>
        <formula>(Find_Imitations_Flag__c == true)&amp;&amp; NOT(ISBLANK(Imitation_Mail__c))&amp;&amp;
Mail_Send_Btn__c!=null&amp;&amp;
PRIORVALUE(Mail_Send_Btn__c)!=&apos;1&apos;&amp;&amp;
PRIORVALUE(Mail_Send_Btn__c)!=&apos;0&apos;</formula>
        <triggerType>onAllChanges</triggerType>
    </rules>
    <rules>
        <fullName>报告一览更新字段</fullName>
        <actions>
            <name>Update_Responsible_for_Products_Concurre</name>
            <type>FieldUpdate</type>
        </actions>
        <active>true</active>
        <formula>true</formula>
        <triggerType>onAllChanges</triggerType>
    </rules>
    <rules>
        <fullName>日报变成申请中%EF%BC%8C发Email</fullName>
        <active>false</active>
        <formula>/* 就当点了按钮 */ 
ISCHANGED( Mail_Send_Btn__c ) &amp;&amp; ISPICKVAL(Activity_Type2__c, &quot;病院&quot;)</formula>
        <triggerType>onAllChanges</triggerType>
    </rules>
    <rules>
        <fullName>活动Cの登録更新時いつでも</fullName>
        <actions>
            <name>Update_Reporeter_Dept</name>
            <type>FieldUpdate</type>
        </actions>
        <actions>
            <name>Update_Reporeter_Province</name>
            <type>FieldUpdate</type>
        </actions>
        <actions>
            <name>Update_Reporter_Job_Category</name>
            <type>FieldUpdate</type>
        </actions>
        <actions>
            <name>Update_Reporter_Post</name>
            <type>FieldUpdate</type>
        </actions>
        <actions>
            <name>Update_Reporter_Pregnant_Rest</name>
            <type>FieldUpdate</type>
        </actions>
        <actions>
            <name>Update_Reporter_Product_specialist_incha</name>
            <type>FieldUpdate</type>
        </actions>
        <actions>
            <name>Update_Reporter_Salesdepartment</name>
            <type>FieldUpdate</type>
        </actions>
        <actions>
            <name>Update_Reporter_Test_staff</name>
            <type>FieldUpdate</type>
        </actions>
        <actions>
            <name>Update_Reporter_Work_Location</name>
            <type>FieldUpdate</type>
        </actions>
        <actions>
            <name>Update_Reporter_isActive</name>
            <type>FieldUpdate</type>
        </actions>
        <active>true</active>
        <formula>true</formula>
        <triggerType>onAllChanges</triggerType>
    </rules>
    <rules>
        <fullName>经理初次确认时间设定</fullName>
        <actions>
            <name>SetManagerFirstConfirmTime</name>
            <type>FieldUpdate</type>
        </actions>
        <active>true</active>
        <formula>AND( Manager__c = true, ISBLANK( Manager_Firstcheck_Time__c ) )</formula>
        <triggerType>onAllChanges</triggerType>
    </rules>
    <rules>
        <fullName>经理反馈邮件通知</fullName>
        <actions>
            <name>Manager_feedback_comment</name>
            <type>Alert</type>
        </actions>
        <active>true</active>
        <formula>ISCHANGED(Manager_Comment__c)</formula>
        <triggerType>onAllChanges</triggerType>
    </rules>
    <rules>
        <fullName>设定-仿制品邮箱</fullName>
        <actions>
            <name>set_Imitation_Mail</name>
            <type>FieldUpdate</type>
        </actions>
        <active>true</active>
        <description>/*ISCHANGED(Find_Imitations_Flag__c)*/</description>
        <formula>(ISCHANGED(Find_Imitations_Flag__c)&amp;&amp;Find_Imitations_Flag__c==true)||(isnew()&amp;&amp;Find_Imitations_Flag__c==true)</formula>
        <triggerType>onAllChanges</triggerType>
    </rules>
    <rules>
        <fullName>部长总监初次确认时间设定</fullName>
        <actions>
            <name>SetMinisterFirstConfirmTime</name>
            <type>FieldUpdate</type>
        </actions>
        <active>true</active>
        <formula>AND(Minister__c = true, ISBLANK( Minister_Firstcheck_Time__c ) )</formula>
        <triggerType>onAllChanges</triggerType>
    </rules>
</Workflow>