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
<?xml version="1.0" encoding="UTF-8"?>
<Workflow xmlns="http://soap.sforce.com/2006/04/metadata">
    <alerts>
        <fullName>OPD_Cancel_Email</fullName>
        <description>OPD取消成功后给OPD担当发邮件</description>
        <protected>false</protected>
        <recipients>
            <type>owner</type>
        </recipients>
        <senderType>CurrentUser</senderType>
        <template>OPDPlan/OPDPlanCancel</template>
    </alerts>
    <alerts>
        <fullName>opd_cancel_yanqi</fullName>
        <description>opd计划取消/延期提交后,给备品中心窗口发邮件</description>
        <protected>false</protected>
        <recipients>
            <field>Fieldemail__c</field>
            <type>email</type>
        </recipients>
        <senderType>CurrentUser</senderType>
        <template>OPDPlan/opd_quxiao_yanqi</template>
    </alerts>
    <fieldUpdates>
        <fullName>ActionFieldUpdatec</fullName>
        <description>获取备品中心的电子邮件地址</description>
        <field>Fieldemail__c</field>
        <formula>CancelOPDPlan__r.Loaner_centre_mail_addressF__c</formula>
        <name>更新电子邮件地址</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>ApplyTypeFCopyT</fullName>
        <description>申请提交前通过公式判断提前还是延期,并公式考文本到申请类型里</description>
        <field>ApplyType__c</field>
        <formula>ApplyType_F__c</formula>
        <name>申请类型_公式拷文本</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>ExtensionPlanStatusUpdate</fullName>
        <field>Status__c</field>
        <literalValue>延期成功</literalValue>
        <name>延期状态更新</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Literal</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>StatusUpdate1</fullName>
        <field>Status__c</field>
        <literalValue>取消成功</literalValue>
        <name>状态更新</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Literal</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <rules>
        <fullName>OPD计划取消成功后通知</fullName>
        <actions>
            <name>OPD_Cancel_Email</name>
            <type>Alert</type>
        </actions>
        <active>true</active>
        <booleanFilter>1 AND 2</booleanFilter>
        <criteriaItems>
            <field>CancelPostponePlan__c.Status__c</field>
            <operation>equals</operation>
            <value>取消成功</value>
        </criteriaItems>
        <criteriaItems>
            <field>CancelPostponePlan__c.if_HaveRental_Apply__c</field>
            <operation>equals</operation>
            <value>真</value>
        </criteriaItems>
        <description>opd取消成功之后给opd担当发邮件</description>
        <triggerType>onCreateOrTriggeringUpdate</triggerType>
    </rules>
    <rules>
        <fullName>opd_up_email2</fullName>
        <actions>
            <name>ActionFieldUpdatec</name>
            <type>FieldUpdate</type>
        </actions>
        <active>true</active>
        <description>更新字段获取备品申请的邮件地址到电子邮件字段</description>
        <formula>true</formula>
        <triggerType>onAllChanges</triggerType>
    </rules>
    <rules>
        <fullName>opd计划取消%2F延期申请</fullName>
        <actions>
            <name>opd_cancel_yanqi</name>
            <type>Alert</type>
        </actions>
        <active>true</active>
        <criteriaItems>
            <field>CancelPostponePlan__c.Status__c</field>
            <operation>equals</operation>
            <value>延期提交</value>
        </criteriaItems>
        <description>opd计划延期提交后,给备品中心窗口发邮件</description>
        <triggerType>onCreateOrTriggeringUpdate</triggerType>
    </rules>
    <rules>
        <fullName>赋值申请类型%28公式拷文本%29</fullName>
        <actions>
            <name>ApplyTypeFCopyT</name>
            <type>FieldUpdate</type>
        </actions>
        <active>true</active>
        <booleanFilter>1 OR 2 OR 3 OR  (4 AND 5)</booleanFilter>
        <criteriaItems>
            <field>CancelPostponePlan__c.Status__c</field>
            <operation>equals</operation>
            <value>延期报告</value>
        </criteriaItems>
        <criteriaItems>
            <field>CancelPostponePlan__c.Status__c</field>
            <operation>equals</operation>
            <value>取消,提交,取消成功</value>
        </criteriaItems>
        <criteriaItems>
            <field>OPDPlan__c.OPDType__c</field>
            <operation>equals</operation>
            <value>学会</value>
        </criteriaItems>
        <criteriaItems>
            <field>CancelPostponePlan__c.Status__c</field>
            <operation>equals</operation>
            <value>延期成功</value>
        </criteriaItems>
        <criteriaItems>
            <field>CancelPostponePlan__c.cancelReasonCombobox__c</field>
            <operation>equals</operation>
            <value>系统自动延期</value>
        </criteriaItems>
        <description>申请提交前通过公式判断提前还是延期,并公式考文本到申请类型里</description>
        <triggerType>onAllChanges</triggerType>
    </rules>
</Workflow>