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
<?xml version="1.0" encoding="UTF-8"?>
<Workflow xmlns="http://soap.sforce.com/2006/04/metadata">
    <alerts>
        <fullName>Annoucement_for_loaner_PIC_Add</fullName>
        <description>追加备品申请批准后,通知给备品管理科</description>
        <protected>false</protected>
        <recipients>
            <field>Loaner_centre_mail_address__c</field>
            <type>email</type>
        </recipients>
        <senderType>DefaultWorkflowUser</senderType>
        <template>Loaner_function/HTML_Annoucement_for_loaner_PIC_Add</template>
    </alerts>
    <alerts>
        <fullName>Approval_annouce_loaner_extend</fullName>
        <description>延期申请批准通知</description>
        <protected>false</protected>
        <recipients>
            <field>Loaner_centre_mail_address__c</field>
            <type>email</type>
        </recipients>
        <recipients>
            <type>owner</type>
        </recipients>
        <recipients>
            <field>applyUser__c</field>
            <type>userLookup</type>
        </recipients>
        <senderType>CurrentUser</senderType>
        <template>Olympus_OCM/Extend_request_approval</template>
    </alerts>
    <alerts>
        <fullName>CC_extend_loaner_share</fullName>
        <ccEmails>ocm_asset@olympus.com.cn</ccEmails>
        <description>CC 延期申请共享通知给备品管理预约担当</description>
        <protected>false</protected>
        <recipients>
            <recipient>lu_liu@olympus.com.cn</recipient>
            <type>user</type>
        </recipients>
        <senderType>CurrentUser</senderType>
        <template>Loaner_function/Extend_loaner_HTML</template>
    </alerts>
    <alerts>
        <fullName>CanStockOutInform</fullName>
        <ccEmails>hiroki_hotta@olympus.com.cn</ccEmails>
        <description>可做出库指示通知</description>
        <protected>false</protected>
        <recipients>
            <type>owner</type>
        </recipients>
        <recipients>
            <field>applyUser__c</field>
            <type>userLookup</type>
        </recipients>
        <senderType>CurrentUser</senderType>
        <template>Loaner_function/CanStockOutInformHTML</template>
    </alerts>
    <alerts>
        <fullName>Decline_annoucement</fullName>
        <description>延期申请驳回通知</description>
        <protected>false</protected>
        <recipients>
            <type>owner</type>
        </recipients>
        <recipients>
            <field>applyUser__c</field>
            <type>userLookup</type>
        </recipients>
        <senderType>CurrentUser</senderType>
        <template>Loaner_function/Extend_loaner_HTML_cancel</template>
    </alerts>
    <alerts>
        <fullName>Extend_request_email_alart</fullName>
        <description>延期申请通知</description>
        <protected>false</protected>
        <recipients>
            <field>Loaner_centre_mail_address__c</field>
            <type>email</type>
        </recipients>
        <senderType>CurrentUser</senderType>
        <template>Loaner_function/Extend_loaner_HTML</template>
    </alerts>
    <alerts>
        <fullName>Inspect_After_NG</fullName>
        <description>回收后检测NG通知</description>
        <protected>false</protected>
        <recipients>
            <field>Loaner_centre_mail_address__c</field>
            <type>email</type>
        </recipients>
        <senderType>CurrentUser</senderType>
        <template>Loaner_function/Inspect_Before_NG_HTML</template>
    </alerts>
    <alerts>
        <fullName>Inspect_Before_NG</fullName>
        <ccEmails>hiroki_hotta@olympus.com.cn</ccEmails>
        <description>发货前检测NG通知</description>
        <protected>false</protected>
        <recipients>
            <field>Loaner_centre_mail_address__c</field>
            <type>email</type>
        </recipients>
        <senderType>CurrentUser</senderType>
        <template>Loaner_function/Inspect_Before_NG_HTML</template>
    </alerts>
    <alerts>
        <fullName>Loaner_request_decline_annoucement_Add</fullName>
        <description>追加备品申请驳回通知</description>
        <protected>false</protected>
        <recipients>
            <type>creator</type>
        </recipients>
        <recipients>
            <type>owner</type>
        </recipients>
        <senderType>CurrentUser</senderType>
        <template>Loaner_function/Loaner_request_decline_Add</template>
    </alerts>
    <alerts>
        <fullName>Return</fullName>
        <description>返还通知</description>
        <protected>false</protected>
        <recipients>
            <field>Loaner_centre_mail_address__c</field>
            <type>email</type>
        </recipients>
        <senderType>CurrentUser</senderType>
        <template>Loaner_function/Return_HTML</template>
    </alerts>
    <fieldUpdates>
        <fullName>Final_reply_day_text</fullName>
        <field>Final_reply_day_text__c</field>
        <formula>Final_reply_day__c</formula>
        <name>文本化-最新预定归还日</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>Set_Asset_return_time</fullName>
        <field>Asset_return_time__c</field>
        <formula>now()</formula>
        <name>设定-物流发货时间</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>Set_Loaner_received_time</fullName>
        <field>Loaner_received_time__c</field>
        <formula>now()</formula>
        <name>设定-现场签收时间</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>Set_application_status_cancel</fullName>
        <field>Extend_Status__c</field>
        <literalValue>不批准</literalValue>
        <name>设定-延期申请状态 驳回</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Literal</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>Set_approved_day</fullName>
        <field>Request_asset_extend_time__c</field>
        <formula>now()</formula>
        <name>设定-延期批准时间</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>Set_asset_extend_approval_time</fullName>
        <field>asset_extend_approval_time__c</field>
        <formula>now()</formula>
        <name>设定 延期申请批准时间</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>Set_extend_aplication_day</fullName>
        <field>Request_asset_extend_time__c</field>
        <name>清空 延期申请时间</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Null</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>Set_extend_not_standard</fullName>
        <field>Extend_Status__c</field>
        <literalValue>没申请</literalValue>
        <name>设定 备品延期申请 没批准</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Literal</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>Set_extend_request_approve</fullName>
        <field>Extend_Status__c</field>
        <literalValue>批准</literalValue>
        <name>设定-延期申请状态 批准</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Literal</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>Set_extend_request_day</fullName>
        <field>Request_asset_extend_time__c</field>
        <formula>now()</formula>
        <name>设定-延期申请时间</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>Set_stage_under_application</fullName>
        <field>Extend_Status__c</field>
        <literalValue>申请中</literalValue>
        <name>设定-延期申请状态-申请中</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Literal</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>Transport_Date_Clear</fullName>
        <field>Asset_return_time__c</field>
        <name>Transport_Date_Clear</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Null</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>Update_Loaner_Rental_End_Date</fullName>
        <field>Rental_End_Date__c</field>
        <formula>Request_extend_day__c</formula>
        <name>备品预计回收日</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>Update_loaner_centre_mail_address</fullName>
        <field>Loaner_centre_mail_address__c</field>
        <formula>Rental_Apply__r.Loaner_centre_mail_address__c</formula>
        <name>更新备品中心的邮箱地址</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>text_Final_reply_day</fullName>
        <description>借出备品回收期限を親の積上げ用に文本化</description>
        <field>Final_reply_day_text_for_sum__c</field>
        <formula>Final_reply_day__c</formula>
        <name>文本化-借出备品回收期限</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <rules>
        <fullName>reSe_Transport_IMF</fullName>
        <actions>
            <name>Transport_Date_Clear</name>
            <type>FieldUpdate</type>
        </actions>
        <active>false</active>
        <description>//bp2 inactive</description>
        <formula>NOT(ISNEW()) &amp;&amp; ((isblank(Text(Return_delivery_company2__c))) || (isblank(Return_Fedex_number2__c)) ||  (isblank(Return_Fedex_number2__c)) ||  (isnull(Received_confirmation_staff2__c)))</formula>
        <triggerType>onAllChanges</triggerType>
    </rules>
    <rules>
        <fullName>回库处理</fullName>
        <actions>
            <name>Set_Asset_return_time</name>
            <type>FieldUpdate</type>
        </actions>
        <active>false</active>
        <description>//bp2 inactive</description>
        <formula>NOT(ISNEW()) &amp;&amp; (ISCHANGED(Return_delivery_company2__c) || ISCHANGED(Return_Fedex_number2__c) || ISCHANGED(Return_Distributor_method2__c))</formula>
        <triggerType>onAllChanges</triggerType>
    </rules>
    <rules>
        <fullName>回收后检测NG</fullName>
        <actions>
            <name>Inspect_After_NG</name>
            <type>Alert</type>
        </actions>
        <active>false</active>
        <formula>ISCHANGED(Inspection_after_ng__c) &amp;&amp; OR(TEXT(Inspection_after_ng__c) = &apos;维修&apos;,TEXT(Inspection_after_ng__c) = &apos;废弃&apos;)</formula>
        <triggerType>onAllChanges</triggerType>
    </rules>
    <rules>
        <fullName>现场收到备品Set</fullName>
        <actions>
            <name>Set_Loaner_received_time</name>
            <type>FieldUpdate</type>
        </actions>
        <active>true</active>
        <formula>ISCHANGED(Received_Confirm__c) &amp;&amp; ISBLANK(TEXT(PRIORVALUE(Received_Confirm__c))) &amp;&amp; NOT(ISBLANK(TEXT(Received_Confirm__c)))</formula>
        <triggerType>onAllChanges</triggerType>
    </rules>
    <rules>
        <fullName>设定-文本化</fullName>
        <actions>
            <name>Final_reply_day_text</name>
            <type>FieldUpdate</type>
        </actions>
        <actions>
            <name>text_Final_reply_day</name>
            <type>FieldUpdate</type>
        </actions>
        <active>true</active>
        <description>借出备品回收期限
犯规点数</description>
        <formula>true|| ISCHANGED( Final_reply_day__c )</formula>
        <triggerType>onAllChanges</triggerType>
    </rules>
</Workflow>