GWY
2022-04-27 12b7399736e90d33bfe0c2d29917d6f075246e00
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
<?xml version="1.0" encoding="UTF-8"?>
<Workflow xmlns="http://soap.sforce.com/2006/04/metadata">
    <alerts>
        <fullName>TSRepairPass</fullName>
        <ccEmails>Xin_Prectech@olympus.com.cn</ccEmails>
        <description>TS日报批准邮件提醒</description>
        <protected>false</protected>
        <recipients>
            <type>owner</type>
        </recipients>
        <senderType>CurrentUser</senderType>
        <template>unfiled$public/TSRepairPass</template>
    </alerts>
    <alerts>
        <fullName>TSRepairRejected</fullName>
        <ccEmails>Xin_Prectech@olympus.com.cn</ccEmails>
        <description>TS日报驳回邮件提醒</description>
        <protected>false</protected>
        <recipients>
            <type>owner</type>
        </recipients>
        <senderType>CurrentUser</senderType>
        <template>unfiled$public/TSRepairRejected</template>
    </alerts>
    <alerts>
        <fullName>TSRepairSubmit</fullName>
        <ccEmails>Xin_Prectech@olympus.com.cn</ccEmails>
        <description>TS日报提交邮件提醒</description>
        <protected>false</protected>
        <recipients>
            <field>TSRepairSuperior__c</field>
            <type>userLookup</type>
        </recipients>
        <senderType>CurrentUser</senderType>
        <template>unfiled$public/TSRepairSubmit</template>
    </alerts>
    <fieldUpdates>
        <fullName>repair_auto</fullName>
        <field>Name</field>
        <formula>SUBSTITUTE( TEXT( TSReportDate__c ) , &apos;-&apos;, &apos;&apos;) + autonumber__c</formula>
        <name>日报自动命名</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
    </fieldUpdates>
    <rules>
        <fullName>TS日报-名称生成</fullName>
        <actions>
            <name>repair_auto</name>
            <type>FieldUpdate</type>
        </actions>
        <active>true</active>
        <description>TS日报的报告日期与自动编码拼接而成</description>
        <formula>true</formula>
        <triggerType>onCreateOnly</triggerType>
    </rules>
    <rules>
        <fullName>TS日报批准邮件提醒</fullName>
        <actions>
            <name>TSRepairPass</name>
            <type>Alert</type>
        </actions>
        <active>true</active>
        <criteriaItems>
            <field>TS_Repair__c.TSReportStatus__c</field>
            <operation>equals</operation>
            <value>确认</value>
        </criteriaItems>
        <triggerType>onCreateOrTriggeringUpdate</triggerType>
    </rules>
    <rules>
        <fullName>TS日报提交邮件提醒</fullName>
        <actions>
            <name>TSRepairSubmit</name>
            <type>Alert</type>
        </actions>
        <active>true</active>
        <criteriaItems>
            <field>TS_Repair__c.TSReportStatus__c</field>
            <operation>equals</operation>
            <value>申请中</value>
        </criteriaItems>
        <triggerType>onCreateOrTriggeringUpdate</triggerType>
    </rules>
    <rules>
        <fullName>TS日报驳回邮件提醒</fullName>
        <actions>
            <name>TSRepairRejected</name>
            <type>Alert</type>
        </actions>
        <active>true</active>
        <criteriaItems>
            <field>TS_Repair__c.TSReportStatus__c</field>
            <operation>equals</operation>
            <value>驳回</value>
        </criteriaItems>
        <triggerType>onCreateOrTriggeringUpdate</triggerType>
    </rules>
</Workflow>