<?xml version="1.0" encoding="UTF-8"?>
|
<Workflow xmlns="http://soap.sforce.com/2006/04/metadata">
|
<alerts>
|
<fullName>RepairAgainAn_OCSM_pass</fullName>
|
<description>再注册修理OCSM审批通过</description>
|
<protected>false</protected>
|
<recipients>
|
<field>Incharge_Staff__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<recipients>
|
<field>Technical_Responsibility__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<senderType>CurrentUser</senderType>
|
<template>repair/RepairAgainAn_OCSM_Approved_Email</template>
|
</alerts>
|
<alerts>
|
<fullName>RepairAgainAn_OCSM_reject</fullName>
|
<description>再注册修理OCSM审批驳回</description>
|
<protected>false</protected>
|
<recipients>
|
<field>Technical_Responsibility__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<senderType>CurrentUser</senderType>
|
<template>repair/RepairAgainAn_OCSM_reject_Email</template>
|
</alerts>
|
<alerts>
|
<fullName>SendRepairAgainAnQISEmail</fullName>
|
<description>再修理分析发行后通知质量投诉部门</description>
|
<protected>false</protected>
|
<recipients>
|
<recipient>haijie_yin@olympus.com.cn</recipient>
|
<type>user</type>
|
</recipients>
|
<recipients>
|
<recipient>mingmeng_jian@olympus.com.cn</recipient>
|
<type>user</type>
|
</recipients>
|
<recipients>
|
<recipient>ningdan_song@olympus.com.cn</recipient>
|
<type>user</type>
|
</recipients>
|
<senderType>CurrentUser</senderType>
|
<template>repair/Send_RepairAgainAnQIS_Email</template>
|
</alerts>
|
<alerts>
|
<fullName>passEmail</fullName>
|
<ccEmails>lijin@prec-tech.com</ccEmails>
|
<ccEmails>iucheng@prec-tech.com</ccEmails>
|
<description>再修理分析通过审批邮件</description>
|
<protected>false</protected>
|
<recipients>
|
<field>OSH_Auditor__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<recipients>
|
<field>OSH_Detector__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<senderType>DefaultWorkflowUser</senderType>
|
<template>repair/RepairAgainAn_OSH_Approved_Email</template>
|
</alerts>
|
<alerts>
|
<fullName>passEmail2</fullName>
|
<ccEmails>lijin@prec-tech.com</ccEmails>
|
<description>再修理分析通过审批邮件(二次)</description>
|
<protected>false</protected>
|
<recipients>
|
<field>OSH_Auditor2__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<recipients>
|
<field>OSH_Detector2__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<senderType>DefaultWorkflowUser</senderType>
|
<template>repair/RepairAgainAn_OSH_Approved_Email_second</template>
|
</alerts>
|
<alerts>
|
<fullName>rejectEmail</fullName>
|
<ccEmails>lijin@prec-tech.com</ccEmails>
|
<description>再修理分析审批驳回邮件</description>
|
<protected>false</protected>
|
<senderType>CurrentUser</senderType>
|
<template>repair/RepairAgainAn_reject_Email</template>
|
</alerts>
|
<fieldUpdates>
|
<fullName>OCSM_Approve_Status_Pizhun</fullName>
|
<field>OCSM_Approve_Status__c</field>
|
<literalValue>批准</literalValue>
|
<name>更新OCSM审批状态到批准</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Literal</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>OCSM_Approve_Status_Shenpizhong</fullName>
|
<field>OCSM_Approve_Status__c</field>
|
<literalValue>审批中</literalValue>
|
<name>更新OCSM审批状态到审批中</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Literal</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>OSCM_Approve_Status_Bohui</fullName>
|
<field>OCSM_Approve_Status__c</field>
|
<literalValue>驳回</literalValue>
|
<name>更新OCSM审批已驳回状态</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Literal</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>RepairAgain_Status_Update_Final</fullName>
|
<field>RepairAgain_Status__c</field>
|
<literalValue>完毕</literalValue>
|
<name>更新再修理返品分析状态到完毕</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Literal</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>UpdateApprove_status</fullName>
|
<field>RepairAgainAn_Approve_status__c</field>
|
<literalValue>批准</literalValue>
|
<name>更新再修理分析审批状态到批准</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Literal</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>UpdateApprove_status2</fullName>
|
<field>RepairAgainAn_Approve_status2__c</field>
|
<literalValue>批准</literalValue>
|
<name>更新再修理分析审批状态(二次)到批准</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Literal</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>UpdateOSH_Confirmation_Date</fullName>
|
<field>OSH_Confirmation_Date__c</field>
|
<formula>TODAY()</formula>
|
<name>更新OSH确认日</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>UpdateOSH_Confirmation_Date2</fullName>
|
<field>OSH_Confirmation_Date2__c</field>
|
<formula>TODAY()</formula>
|
<name>更新OSH确认日(二次)</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>UpdateRepairAgainAn_Approve_Confirm</fullName>
|
<field>RepairAgainAn_Approve_Confirm__c</field>
|
<formula>TODAY()</formula>
|
<name>更新审批完了日</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>UpdateRepairAgainAn_Approve_Confirm2</fullName>
|
<field>RepairAgainAn_Approve_Confirm2__c</field>
|
<formula>TODAY()</formula>
|
<name>更新审批完了日(二次)</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>Update_OCSM_Day</fullName>
|
<field>OCM_Confirmation_Date__c</field>
|
<formula>TODAY()</formula>
|
<name>更新OCM确认日</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>Update_RepairAgainAn_Approve_applyDate</fullName>
|
<field>RepairAgainAn_Approve_applyDate__c</field>
|
<formula>TODAY()</formula>
|
<name>更新审批提交日</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>Update_RepairAgainAn_Approve_applyDate2</fullName>
|
<field>RepairAgainAn_Approve_applyDate2__c</field>
|
<formula>TODAY()</formula>
|
<name>更新审批提交日(二次)</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>Update_RepairAgainAn_Approve_status</fullName>
|
<field>RepairAgainAn_Approve_status__c</field>
|
<literalValue>审批中</literalValue>
|
<name>更新再修理分析审批状态到审批中</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Literal</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>Update_RepairAgainAn_Approve_status2</fullName>
|
<field>RepairAgainAn_Approve_status2__c</field>
|
<literalValue>审批中</literalValue>
|
<name>更新再修理分析审批状态(二次)到审批中</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Literal</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>Updatecancel</fullName>
|
<field>RepairAgainAn_Approve_status__c</field>
|
<literalValue>驳回</literalValue>
|
<name>更新再修理分析审批已驳回状态</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Literal</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>Updatecancel2</fullName>
|
<field>RepairAgainAn_Approve_status2__c</field>
|
<literalValue>驳回</literalValue>
|
<name>更新再修理分析审批(二次)已驳回状态</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Literal</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<rules>
|
<fullName>Send_RepairAgainAn_QIS</fullName>
|
<actions>
|
<name>SendRepairAgainAnQISEmail</name>
|
<type>Alert</type>
|
</actions>
|
<active>true</active>
|
<description>再注册分析在OSH审批通过后,勾选了发行QIS就需要通知质量投诉部门</description>
|
<formula>(ISPICKVAL(issue_QIS_M_BC__c, '发行') && ISCHANGED(RepairAgainAn_Approve_status__c) && ISPICKVAL(RepairAgainAn_Approve_status__c, '批准')) || (ISPICKVAL(issue_QIS_M_BC2__c, '发行') && ISCHANGED(RepairAgainAn_Approve_status2__c) && ISPICKVAL(RepairAgainAn_Approve_status2__c, '批准'))</formula>
|
<triggerType>onAllChanges</triggerType>
|
</rules>
|
</Workflow>
|