binxie
2024-01-20 2ff0f0a7ab276c3466d9e06e14222db802194efc
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
<?xml version="1.0" encoding="UTF-8"?>
<Workflow xmlns="http://soap.sforce.com/2006/04/metadata">
    <alerts>
        <fullName>solutionProgrammeApplyEmail</fullName>
        <ccEmails>jhtaizxt@163.com</ccEmails>
        <description>solution方案初案审批</description>
        <protected>false</protected>
        <recipients>
            <field>Business_Promotion__c</field>
            <type>userLookup</type>
        </recipients>
        <senderType>CurrentUser</senderType>
        <template>SolutionProject/solutionProgrammeApplyEmail</template>
    </alerts>
    <alerts>
        <fullName>solutionProgrammeFirstApplyResult</fullName>
        <description>solution方案初案审批反馈</description>
        <protected>false</protected>
        <recipients>
            <type>owner</type>
        </recipients>
        <senderType>CurrentUser</senderType>
        <template>SolutionProject/solutionProgrammeFirstApplyResult</template>
    </alerts>
    <alerts>
        <fullName>solutionProgrammeLastApplyEmail</fullName>
        <ccEmails>jhtaizxt@163.com</ccEmails>
        <description>solution方案结案审批</description>
        <protected>false</protected>
        <recipients>
            <field>Business_Promotion__c</field>
            <type>userLookup</type>
        </recipients>
        <senderType>CurrentUser</senderType>
        <template>SolutionProject/solutionProgrammeLastApplyEmail</template>
    </alerts>
    <alerts>
        <fullName>solutionProgrammeLastApplyResult</fullName>
        <ccEmails>jhtaizxt@163.com</ccEmails>
        <description>solution方案结案审批反馈</description>
        <protected>false</protected>
        <recipients>
            <type>owner</type>
        </recipients>
        <senderType>CurrentUser</senderType>
        <template>SolutionProject/solutionProgrammeLastApplyResult</template>
    </alerts>
    <alerts>
        <fullName>solution_90</fullName>
        <description>solution方案提出超过90天</description>
        <protected>false</protected>
        <recipients>
            <field>Business_Promotion__c</field>
            <type>userLookup</type>
        </recipients>
        <senderType>CurrentUser</senderType>
        <template>SolutionProject/solution_90</template>
    </alerts>
    <alerts>
        <fullName>subAppActionEmail</fullName>
        <ccEmails>jhtaizxt@163.com</ccEmails>
        <description>提交审批邮件</description>
        <protected>false</protected>
        <recipients>
            <field>Business_Promotion__c</field>
            <type>userLookup</type>
        </recipients>
        <senderType>CurrentUser</senderType>
        <template>SolutionProject/solutionProgrammeApplyEmail</template>
    </alerts>
    <fieldUpdates>
        <fullName>ApprovalClosingProgramme</fullName>
        <field>ApprovalClosingProgramme__c</field>
        <literalValue>1</literalValue>
        <name>结案方案批准完成</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Literal</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>RejectedInvalid</fullName>
        <field>RejectedInvalid__c</field>
        <literalValue>1</literalValue>
        <name>审批驳回无效</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Literal</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>SolutionApprovalStatusUpdate</fullName>
        <field>Status__c</field>
        <literalValue>02方案已提出</literalValue>
        <name>Solution方案提交审批状态更新</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Literal</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>SolutionApprovedProcess</fullName>
        <field>ProcessOfApproval__c</field>
        <literalValue>1</literalValue>
        <name>Solution审批过程中</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Literal</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>SolutionApprovedProposalDate</fullName>
        <field>Proposal_Date__c</field>
        <formula>IF(  ISBLANK( Proposal_Date__c ) , TODAY(), Proposal_Date__c )</formula>
        <name>Solution方案提交日期更新</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>SolutionStatus1</fullName>
        <field>Status__c</field>
        <literalValue>03采纳/部分采纳</literalValue>
        <name>Solution方案状态更新1</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Literal</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>SolutionStatus2</fullName>
        <field>Status__c</field>
        <literalValue>04未采纳</literalValue>
        <name>Solution方案状态更新2</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Literal</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>SolutionStatus3</fullName>
        <field>Status__c</field>
        <literalValue>05营业跟进中</literalValue>
        <name>Solution方案状态更新3</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Literal</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>SolutionStatus4</fullName>
        <field>Status__c</field>
        <literalValue>06其他</literalValue>
        <name>Solution方案状态更新4</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Literal</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>Submint_TF_Null</fullName>
        <field>Submint_TF__c</field>
        <literalValue>0</literalValue>
        <name>是否提交审批清空</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Literal</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>updateStatusBack</fullName>
        <field>Status__c</field>
        <literalValue>01草案中</literalValue>
        <name>更新方案状态</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Literal</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <rules>
        <fullName>提出方案日期超过90天</fullName>
        <active>true</active>
        <criteriaItems>
            <field>SolutionProjectRequirements__c.Status__c</field>
            <operation>equals</operation>
            <value>04方案提出</value>
        </criteriaItems>
        <triggerType>onCreateOrTriggeringUpdate</triggerType>
        <workflowTimeTriggers>
            <actions>
                <name>solution_90</name>
                <type>Alert</type>
            </actions>
            <offsetFromField>Solution_Programme__c.Proposal_Date__c</offsetFromField>
            <timeLength>90</timeLength>
            <workflowTimeTriggerUnit>Days</workflowTimeTriggerUnit>
        </workflowTimeTriggers>
    </rules>
</Workflow>