binxie
2024-01-22 102afa21c115e8c8b9333a326c3d1af08fe76faf
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
<?xml version="1.0" encoding="UTF-8"?>
<Workflow xmlns="http://soap.sforce.com/2006/04/metadata">
    <alerts>
        <fullName>Proposal_approved_annoucement</fullName>
        <description>提案书批准通知</description>
        <protected>false</protected>
        <recipients>
            <type>owner</type>
        </recipients>
        <senderType>CurrentUser</senderType>
        <template>Olympus_OCM/Proposal_approved</template>
    </alerts>
    <alerts>
        <fullName>Proposal_decline_annoucement</fullName>
        <description>提案书驳回通知</description>
        <protected>false</protected>
        <recipients>
            <type>creator</type>
        </recipients>
        <senderType>CurrentUser</senderType>
        <template>Olympus_OCM/Proposal_cancel</template>
    </alerts>
    <fieldUpdates>
        <fullName>Set_approved_day</fullName>
        <field>Approval_day__c</field>
        <formula>today()</formula>
        <name>设定-批准日</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>Set_proposal_province</fullName>
        <field>Province_text__c</field>
        <formula>Owner_province__c</formula>
        <name>设定-提案书的省</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>Set_status_as_approved</fullName>
        <field>Status__c</field>
        <literalValue>已批准</literalValue>
        <name>设定-提案书状态-已批准</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Literal</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>Set_status_as_draft</fullName>
        <field>Status__c</field>
        <literalValue>草案</literalValue>
        <name>设定-提案书状态-草案</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Literal</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>Set_submit_day</fullName>
        <field>Submit_day__c</field>
        <formula>today()</formula>
        <name>设定-提案书申请日</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>set_status_as_submit</fullName>
        <field>Status__c</field>
        <literalValue>已申请</literalValue>
        <name>设定-提案书状态</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Literal</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <rules>
        <fullName>设定-省文本化</fullName>
        <actions>
            <name>Set_proposal_province</name>
            <type>FieldUpdate</type>
        </actions>
        <active>true</active>
        <formula>OR(ISBLANK(Province_text__c),ISCHANGED( OwnerId ))</formula>
        <triggerType>onAllChanges</triggerType>
    </rules>
</Workflow>