binxie
2024-01-22 4688e276eee13cd2e521aa55afb5725cb0fda270
force-app/main/default/workflows/Monthly_Report__c.workflow-meta.xml
New file
@@ -0,0 +1,218 @@
<?xml version="1.0" encoding="UTF-8"?>
<Workflow xmlns="http://soap.sforce.com/2006/04/metadata">
    <alerts>
        <fullName>weekly_report_cc_other</fullName>
        <description>周报CC(服务以外)</description>
        <protected>false</protected>
        <recipients>
            <type>owner</type>
        </recipients>
        <recipients>
            <field>BuchangApprovalManagerSales__c</field>
            <type>userLookup</type>
        </recipients>
        <recipients>
            <field>TongkuoZongjian__c</field>
            <type>userLookup</type>
        </recipients>
        <recipients>
            <field>ZongjianApprovalManager__c</field>
            <type>userLookup</type>
        </recipients>
        <senderType>CurrentUser</senderType>
        <template>Olympus_OCM/Weekly_report_submit</template>
    </alerts>
    <alerts>
        <fullName>weekly_report_cc_servles</fullName>
        <description>周报CC(服务)</description>
        <protected>false</protected>
        <recipients>
            <type>owner</type>
        </recipients>
        <recipients>
            <field>BuchangApprovalManager__c</field>
            <type>userLookup</type>
        </recipients>
        <recipients>
            <field>TongkuoZongjian__c</field>
            <type>userLookup</type>
        </recipients>
        <recipients>
            <field>ZongjianApprovalManager__c</field>
            <type>userLookup</type>
        </recipients>
        <senderType>CurrentUser</senderType>
        <template>Olympus_OCM/Weekly_report_submit</template>
    </alerts>
    <fieldUpdates>
        <fullName>Change_to_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>Change_to_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>Change_to_submit</fullName>
        <field>Status__c</field>
        <literalValue>已提交</literalValue>
        <name>状态修改到提交</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Literal</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>Feedback_day</fullName>
        <field>Feedback_time__c</field>
        <formula>now()</formula>
        <name>输入反馈日</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>Job_Category_text</fullName>
        <field>Job_category_text__c</field>
        <formula>Job_category__c</formula>
        <name>职种 文本化</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>Month_text</fullName>
        <field>Month_week_text__c</field>
        <formula>Month_week__c</formula>
        <name>报告月(文本)文本化</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>Post_text</fullName>
        <field>Post_text__c</field>
        <formula>Post__c</formula>
        <name>职位 文本化</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>Province_text</fullName>
        <field>Province_text__c</field>
        <formula>Province__c</formula>
        <name>省 文本化</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>Salesdepartment_text</fullName>
        <field>SalesDept_text__c</field>
        <formula>Salesdept__c</formula>
        <name>销售本部 文本化</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>Submit_Flag_Off</fullName>
        <field>Submit__c</field>
        <literalValue>0</literalValue>
        <name>提出フラグOff</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Literal</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>Submit_Flag_On</fullName>
        <field>Submit__c</field>
        <literalValue>1</literalValue>
        <name>提出フラグOn</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Literal</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>Submit_date_blank</fullName>
        <field>Submit_time__c</field>
        <name>提交日改到空</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Null</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <fieldUpdates>
        <fullName>Update_submit_date</fullName>
        <field>Submit_time__c</field>
        <formula>Now()</formula>
        <name>提交日更新</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Formula</operation>
        <protected>false</protected>
        <reevaluateOnChange>false</reevaluateOnChange>
    </fieldUpdates>
    <rules>
        <fullName>周报字段文本化</fullName>
        <actions>
            <name>Job_Category_text</name>
            <type>FieldUpdate</type>
        </actions>
        <actions>
            <name>Month_text</name>
            <type>FieldUpdate</type>
        </actions>
        <actions>
            <name>Post_text</name>
            <type>FieldUpdate</type>
        </actions>
        <actions>
            <name>Province_text</name>
            <type>FieldUpdate</type>
        </actions>
        <actions>
            <name>Salesdepartment_text</name>
            <type>FieldUpdate</type>
        </actions>
        <active>true</active>
        <formula>true</formula>
        <triggerType>onAllChanges</triggerType>
    </rules>
    <rules>
        <fullName>周报提交通知</fullName>
        <active>false</active>
        <formula>ISCHANGED( Submit_check_flag__c )</formula>
        <triggerType>onAllChanges</triggerType>
    </rules>
    <tasks>
        <fullName>ActionTask01</fullName>
        <assignedToType>owner</assignedToType>
        <dueDateOffset>0</dueDateOffset>
        <notifyAssignee>true</notifyAssignee>
        <priority>中</priority>
        <protected>false</protected>
        <status>未着手</status>
        <subject>月報却下</subject>
    </tasks>
</Workflow>