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
<?xml version="1.0" encoding="UTF-8"?>
<Workflow xmlns="http://soap.sforce.com/2006/04/metadata">
    <alerts>
        <fullName>From_Business_To_Manager</fullName>
        <description>担当发送的日报提醒邮件</description>
        <protected>false</protected>
        <recipients>
            <field>Manager_Mail__c</field>
            <type>email</type>
        </recipients>
        <recipients>
            <type>owner</type>
        </recipients>
        <senderType>CurrentUser</senderType>
        <template>Olympus_OCM/From_Business_To_Manager</template>
    </alerts>
    <alerts>
        <fullName>From_Manager_To_Business</fullName>
        <description>经理的日报反馈邮件</description>
        <protected>false</protected>
        <recipients>
            <field>Manager_Mail__c</field>
            <type>email</type>
        </recipients>
        <recipients>
            <type>owner</type>
        </recipients>
        <senderType>CurrentUser</senderType>
        <template>Olympus_OCM/From_Manager_To_Business</template>
    </alerts>
    <fieldUpdates>
        <fullName>AutoRest</fullName>
        <field>Daily_Report_Data_Type__c</field>
        <literalValue>一日休假</literalValue>
        <name>自动休假</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Literal</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>Daily_Report_Key</fullName>
        <field>Daily_Report_Key__c</field>
        <formula>Text(Reported_Date__c) + Reporter__c</formula>
        <name>Daily_Report_Key</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>Daily_Reporter_incharge_product_Set</fullName>
        <description>「報告者-推进员工负责产品」設定</description>
        <field>Reporter_incharge_product__c</field>
        <formula>TEXT(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>Reporter_Job_Category_Set</fullName>
        <field>Reporter_Job_Category__c</field>
        <formula>Text(Reporter__r.Job_Category__c)</formula>
        <name>「報告者-職種」設定</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>Reporter_Product_specialist_incharge_jia</fullName>
        <field>Responsible_for_Products_Concurrently__c</field>
        <formula>TEXT(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>Reporter_Salesdepartment_Set</fullName>
        <field>Reporter_Salesdepartment__c</field>
        <formula>Reporter__r.Salesdepartment__c</formula>
        <name>「報告書-本部」設定</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>Submit_DateTime_New</fullName>
        <field>Submit_DateTime_New__c</field>
        <formula>NOW()</formula>
        <name>初回提出時刻</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>Submit_Date_New</fullName>
        <field>Submit_Date_New__c</field>
        <formula>TODAY()</formula>
        <name>初回提出日</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>Upate_Reporter_State</fullName>
        <field>Reporter_State__c</field>
        <formula>text( Reporter__r.Province__c )</formula>
        <name>「報告者-省」設定</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>Year_monthTOtxt</fullName>
        <field>Year_month_txt__c</field>
        <formula>Year_month__c</formula>
        <name>年月更新_公式转文本</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>latestSubmitDate</fullName>
        <field>Submit_Date_Latest__c</field>
        <formula>today()</formula>
        <name>最終提出日</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>latestSubmitDatetime</fullName>
        <field>Submit_DateTime_Latest__c</field>
        <formula>now()</formula>
        <name>最終提出時刻</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <rules>
        <fullName>Daily_Report_Key</fullName>
        <actions>
            <name>Daily_Report_Key</name>
            <type>FieldUpdate</type>
        </actions>
        <active>true</active>
        <formula>True</formula>
        <triggerType>onAllChanges</triggerType>
    </rules>
    <rules>
        <fullName>マネージャーからのメール送信</fullName>
        <actions>
            <name>From_Manager_To_Business</name>
            <type>Alert</type>
        </actions>
        <active>true</active>
        <formula>AND ( LastModifiedById =  Reporter__r.ManagerId , Mail_Send_Check__c )</formula>
        <triggerType>onAllChanges</triggerType>
    </rules>
    <rules>
        <fullName>初回提出日%E3%83%BB時刻設定</fullName>
        <actions>
            <name>Submit_DateTime_New</name>
            <type>FieldUpdate</type>
        </actions>
        <actions>
            <name>Submit_Date_New</name>
            <type>FieldUpdate</type>
        </actions>
        <actions>
            <name>latestSubmitDate</name>
            <type>FieldUpdate</type>
        </actions>
        <actions>
            <name>latestSubmitDatetime</name>
            <type>FieldUpdate</type>
        </actions>
        <active>true</active>
        <formula>ISPICKVAL(Status__c, &apos;申請中&apos;)  &amp;&amp;  isblank( Submit_Date_New__c )</formula>
        <triggerType>onCreateOrTriggeringUpdate</triggerType>
    </rules>
    <rules>
        <fullName>営業からのメール送信</fullName>
        <actions>
            <name>From_Business_To_Manager</name>
            <type>Alert</type>
        </actions>
        <active>true</active>
        <formula>AND ( LastModifiedById  ==  OwnerId  ,  Mail_Send_Check__c )</formula>
        <triggerType>onAllChanges</triggerType>
    </rules>
    <rules>
        <fullName>年月更新</fullName>
        <actions>
            <name>Year_monthTOtxt</name>
            <type>FieldUpdate</type>
        </actions>
        <active>true</active>
        <formula>true</formula>
        <triggerType>onAllChanges</triggerType>
    </rules>
    <rules>
        <fullName>日報一覧毎回実行公式变成到文本</fullName>
        <actions>
            <name>Daily_Reporter_incharge_product_Set</name>
            <type>FieldUpdate</type>
        </actions>
        <actions>
            <name>Reporter_Job_Category_Set</name>
            <type>FieldUpdate</type>
        </actions>
        <actions>
            <name>Reporter_Product_specialist_incharge_jia</name>
            <type>FieldUpdate</type>
        </actions>
        <actions>
            <name>Reporter_Salesdepartment_Set</name>
            <type>FieldUpdate</type>
        </actions>
        <actions>
            <name>Upate_Reporter_State</name>
            <type>FieldUpdate</type>
        </actions>
        <active>true</active>
        <formula>true</formula>
        <triggerType>onAllChanges</triggerType>
    </rules>
    <rules>
        <fullName>最終提出日%E3%83%BB時刻設定</fullName>
        <actions>
            <name>latestSubmitDate</name>
            <type>FieldUpdate</type>
        </actions>
        <actions>
            <name>latestSubmitDatetime</name>
            <type>FieldUpdate</type>
        </actions>
        <active>true</active>
        <formula>ISPICKVAL(Status__c, &apos;申請中&apos;)  &amp;&amp;  not( isblank( Submit_Date_New__c ))</formula>
        <triggerType>onCreateOrTriggeringUpdate</triggerType>
    </rules>
    <rules>
        <fullName>自动休假</fullName>
        <actions>
            <name>AutoRest</name>
            <type>FieldUpdate</type>
        </actions>
        <active>true</active>
        <formula>AND(Count_of_Event__c&gt; 0,Count_of_Event__c = Count_Kyuka_of_Event__c)</formula>
        <triggerType>onAllChanges</triggerType>
    </rules>
</Workflow>