binxie
2024-01-20 e0de9222da210f9c8eb1a9f5400f936a14923e11
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
<?xml version="1.0" encoding="UTF-8"?>
<Workflow xmlns="http://soap.sforce.com/2006/04/metadata">
    <alerts>
        <fullName>NMPA_Change_to_True</fullName>
        <description>NMPA状态(文本)更新为有效的提醒</description>
        <protected>false</protected>
        <recipients>
            <recipient>_xurong_zhang@olympus.com.cn</recipient>
            <type>user</type>
        </recipients>
        <recipients>
            <recipient>jing_zhang@olympus.com.cn</recipient>
            <type>user</type>
        </recipients>
        <recipients>
            <recipient>liu_yang@olympus.com.cn</recipient>
            <type>user</type>
        </recipients>
        <recipients>
            <recipient>sijia_chen@olympus.com.cn</recipient>
            <type>user</type>
        </recipients>
        <senderType>CurrentUser</senderType>
        <template>Product2_Folder/SFDAStatus_Changed_EmailTemplate</template>
    </alerts>
    <fieldUpdates>
        <fullName>EndDateNull</fullName>
        <field>EndSaleDate__c</field>
        <name>物料停产日清空</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Null</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>EndDateUpdate</fullName>
        <field>EndSaleDate__c</field>
        <formula>today()</formula>
        <name>物料停产日设定</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>Key_Product</fullName>
        <field>Key_Product_Txt__c</field>
        <formula>Key_product_147P__c</formula>
        <name>重点产品区分文本化</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>Last_active_update_staff</fullName>
        <field>Active_last_check_person__c</field>
        <formula>$User.LastName &amp;&quot; &quot;&amp; $User.FirstName</formula>
        <name>设定-启用信息最后更新者</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>ProductCode_Ext_Set</fullName>
        <field>ProductCode_Ext__c</field>
        <formula>ProductCode</formula>
        <name>商品コード(外部ID) セット</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>ProductInvalidDateClear</fullName>
        <field>Invalid_Date__c</field>
        <name>产品无效日清空</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Null</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>SetProductInvalidDate</fullName>
        <field>Invalid_Date__c</field>
        <formula>TODAY()</formula>
        <name>产品无效日设定</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>Tier1_CategoryText</fullName>
        <field>Tier1_Category__c</field>
        <formula>Tier1_CategoryF__c</formula>
        <name>Tier1文本更新</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>Tier3_text</fullName>
        <field>BSS_Code_Tier3_Text__c</field>
        <formula>BSS_Code_Tier3__c</formula>
        <name>Tier3文本化</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>UpdateCategory5ByRecordType</fullName>
        <field>Category5__c</field>
        <formula>&quot;竞争对手&quot;</formula>
        <name>更具记录类型更新第五分类</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>UpdateImporantProduct</fullName>
        <description>更新是否重点产品对象</description>
        <field>Important_product__c</field>
        <literalValue>1</literalValue>
        <name>更新是否重点产品对象</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Literal</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>UpdateImporantProductNull</fullName>
        <field>Important_product__c</field>
        <literalValue>0</literalValue>
        <name>更新是否重点产品对象Null</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Literal</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>X12_BSS_text</fullName>
        <field>BSS_2_text__c</field>
        <formula>X12_BSS__c</formula>
        <name>12分类(BSS)文本化</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <rules>
        <fullName>BSS文本化</fullName>
        <actions>
            <name>Key_Product</name>
            <type>FieldUpdate</type>
        </actions>
        <actions>
            <name>Tier1_CategoryText</name>
            <type>FieldUpdate</type>
        </actions>
        <actions>
            <name>Tier3_text</name>
            <type>FieldUpdate</type>
        </actions>
        <actions>
            <name>X12_BSS_text</name>
            <type>FieldUpdate</type>
        </actions>
        <active>true</active>
        <formula>true</formula>
        <triggerType>onAllChanges</triggerType>
    </rules>
    <rules>
        <fullName>NMPA状态更新为有效%EF%BC%8C发送系统邮件提醒</fullName>
        <actions>
            <name>NMPA_Change_to_True</name>
            <type>Alert</type>
        </actions>
        <active>true</active>
        <booleanFilter>(1 OR 2 OR 3) AND 4 AND 5</booleanFilter>
        <criteriaItems>
            <field>Product2.Family</field>
            <operation>equals</operation>
            <value>GI</value>
        </criteriaItems>
        <criteriaItems>
            <field>Product2.Family</field>
            <operation>equals</operation>
            <value>SP</value>
        </criteriaItems>
        <criteriaItems>
            <field>Product2.Family</field>
            <operation>equals</operation>
            <value>ENG</value>
        </criteriaItems>
        <criteriaItems>
            <field>Product2.Category2__c</field>
            <operation>notEqual</operation>
            <value>其他</value>
        </criteriaItems>
        <criteriaItems>
            <field>Product2.SFDA_Status__c</field>
            <operation>equals</operation>
            <value>有効</value>
        </criteriaItems>
        <description>LJPH-C679PR</description>
        <triggerType>onCreateOrTriggeringUpdate</triggerType>
    </rules>
    <rules>
        <fullName>UpdateTheCategory5AccordingToRecordType</fullName>
        <actions>
            <name>UpdateCategory5ByRecordType</name>
            <type>FieldUpdate</type>
        </actions>
        <active>true</active>
        <booleanFilter>1 OR 2</booleanFilter>
        <criteriaItems>
            <field>Product2.RecordTypeId</field>
            <operation>equals</operation>
            <value>竞品-主机</value>
        </criteriaItems>
        <criteriaItems>
            <field>Product2.RecordTypeId</field>
            <operation>equals</operation>
            <value>竞品-耗材</value>
        </criteriaItems>
        <description>创建记录类型为竞品的产品时,设置第5分类为&quot;竞争对手&quot;</description>
        <triggerType>onCreateOnly</triggerType>
    </rules>
    <rules>
        <fullName>产品无效日清空</fullName>
        <actions>
            <name>ProductInvalidDateClear</name>
            <type>FieldUpdate</type>
        </actions>
        <active>true</active>
        <formula>ISCHANGED(SFDA_Status__c) &amp;&amp;  (TEXT(SFDA_Status__c) = &apos;有効&apos; ||  TEXT(SFDA_Status__c) = &apos;失効(期限内生産済在庫対応)&apos; ||  TEXT(SFDA_Status__c) = &apos;有効(再申請中)&apos; || TEXT(SFDA_Status__c) = &apos;不要&apos;)</formula>
        <triggerType>onAllChanges</triggerType>
    </rules>
    <rules>
        <fullName>产品无效日设定</fullName>
        <actions>
            <name>SetProductInvalidDate</name>
            <type>FieldUpdate</type>
        </actions>
        <active>true</active>
        <formula>ISCHANGED(SFDA_Status__c) &amp;&amp;  (TEXT(SFDA_Status__c) = &apos;停止&apos; || TEXT(SFDA_Status__c) = &apos;失効(再申請中)&apos; || TEXT(SFDA_Status__c) = &apos;失効(申請無)&apos; )</formula>
        <triggerType>onAllChanges</triggerType>
    </rules>
    <rules>
        <fullName>产品物料停产日清空</fullName>
        <actions>
            <name>EndDateNull</name>
            <type>FieldUpdate</type>
        </actions>
        <active>true</active>
        <criteriaItems>
            <field>Product2.Product_Status__c</field>
            <operation>notEqual</operation>
            <value>停止销售,停产</value>
        </criteriaItems>
        <triggerType>onCreateOrTriggeringUpdate</triggerType>
    </rules>
    <rules>
        <fullName>产品物料停产日设定</fullName>
        <actions>
            <name>EndDateUpdate</name>
            <type>FieldUpdate</type>
        </actions>
        <active>true</active>
        <criteriaItems>
            <field>Product2.Product_Status__c</field>
            <operation>equals</operation>
            <value>停止销售,停产</value>
        </criteriaItems>
        <triggerType>onCreateOrTriggeringUpdate</triggerType>
    </rules>
    <rules>
        <fullName>商品 外部ID セット</fullName>
        <actions>
            <name>ProductCode_Ext_Set</name>
            <type>FieldUpdate</type>
        </actions>
        <actions>
            <name>X12_BSS_text</name>
            <type>FieldUpdate</type>
        </actions>
        <active>true</active>
        <formula>True</formula>
        <triggerType>onCreateOnly</triggerType>
    </rules>
    <rules>
        <fullName>设定-保留最后启用者</fullName>
        <actions>
            <name>Last_active_update_staff</name>
            <type>FieldUpdate</type>
        </actions>
        <active>true</active>
        <formula>ISCHANGED(IsActive)</formula>
        <triggerType>onAllChanges</triggerType>
    </rules>
    <rules>
        <fullName>重点产品对象更新</fullName>
        <actions>
            <name>UpdateImporantProduct</name>
            <type>FieldUpdate</type>
        </actions>
        <active>true</active>
        <formula>!ISBLANK(Key_product_147P__c)</formula>
        <triggerType>onAllChanges</triggerType>
    </rules>
    <rules>
        <fullName>重点产品对象清空</fullName>
        <actions>
            <name>UpdateImporantProductNull</name>
            <type>FieldUpdate</type>
        </actions>
        <active>true</active>
        <formula>ISBLANK(Key_product_147P__c)</formula>
        <triggerType>onAllChanges</triggerType>
    </rules>
</Workflow>