<?xml version="1.0" encoding="UTF-8"?>
|
<Workflow xmlns="http://soap.sforce.com/2006/04/metadata">
|
<alerts>
|
<fullName>Annoucement_for_loaner_PIC_Add</fullName>
|
<description>追加备品申请批准后,通知给备品管理科</description>
|
<protected>false</protected>
|
<recipients>
|
<field>Loaner_centre_mail_address__c</field>
|
<type>email</type>
|
</recipients>
|
<senderType>DefaultWorkflowUser</senderType>
|
<template>Loaner_function/HTML_Annoucement_for_loaner_PIC_Add</template>
|
</alerts>
|
<alerts>
|
<fullName>Approval_annouce_loaner_extend</fullName>
|
<description>延期申请批准通知</description>
|
<protected>false</protected>
|
<recipients>
|
<field>Loaner_centre_mail_address__c</field>
|
<type>email</type>
|
</recipients>
|
<recipients>
|
<type>owner</type>
|
</recipients>
|
<recipients>
|
<field>applyUser__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<senderType>CurrentUser</senderType>
|
<template>Olympus_OCM/Extend_request_approval</template>
|
</alerts>
|
<alerts>
|
<fullName>CC_extend_loaner_share</fullName>
|
<ccEmails>ocm_asset@olympus.com.cn</ccEmails>
|
<description>CC 延期申请共享通知给备品管理预约担当</description>
|
<protected>false</protected>
|
<recipients>
|
<recipient>lu_liu@olympus.com.cn</recipient>
|
<type>user</type>
|
</recipients>
|
<senderType>CurrentUser</senderType>
|
<template>Loaner_function/Extend_loaner_HTML</template>
|
</alerts>
|
<alerts>
|
<fullName>CanStockOutInform</fullName>
|
<ccEmails>hiroki_hotta@olympus.com.cn</ccEmails>
|
<description>可做出库指示通知</description>
|
<protected>false</protected>
|
<recipients>
|
<type>owner</type>
|
</recipients>
|
<recipients>
|
<field>applyUser__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<senderType>CurrentUser</senderType>
|
<template>Loaner_function/CanStockOutInformHTML</template>
|
</alerts>
|
<alerts>
|
<fullName>Decline_annoucement</fullName>
|
<description>延期申请驳回通知</description>
|
<protected>false</protected>
|
<recipients>
|
<type>owner</type>
|
</recipients>
|
<recipients>
|
<field>applyUser__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<senderType>CurrentUser</senderType>
|
<template>Loaner_function/Extend_loaner_HTML_cancel</template>
|
</alerts>
|
<alerts>
|
<fullName>Extend_request_email_alart</fullName>
|
<description>延期申请通知</description>
|
<protected>false</protected>
|
<recipients>
|
<field>Loaner_centre_mail_address__c</field>
|
<type>email</type>
|
</recipients>
|
<senderType>CurrentUser</senderType>
|
<template>Loaner_function/Extend_loaner_HTML</template>
|
</alerts>
|
<alerts>
|
<fullName>Inspect_After_NG</fullName>
|
<description>回收后检测NG通知</description>
|
<protected>false</protected>
|
<recipients>
|
<field>Loaner_centre_mail_address__c</field>
|
<type>email</type>
|
</recipients>
|
<senderType>CurrentUser</senderType>
|
<template>Loaner_function/Inspect_Before_NG_HTML</template>
|
</alerts>
|
<alerts>
|
<fullName>Inspect_Before_NG</fullName>
|
<ccEmails>hiroki_hotta@olympus.com.cn</ccEmails>
|
<description>发货前检测NG通知</description>
|
<protected>false</protected>
|
<recipients>
|
<field>Loaner_centre_mail_address__c</field>
|
<type>email</type>
|
</recipients>
|
<senderType>CurrentUser</senderType>
|
<template>Loaner_function/Inspect_Before_NG_HTML</template>
|
</alerts>
|
<alerts>
|
<fullName>Loaner_request_decline_annoucement_Add</fullName>
|
<description>追加备品申请驳回通知</description>
|
<protected>false</protected>
|
<recipients>
|
<type>creator</type>
|
</recipients>
|
<recipients>
|
<type>owner</type>
|
</recipients>
|
<senderType>CurrentUser</senderType>
|
<template>Loaner_function/Loaner_request_decline_Add</template>
|
</alerts>
|
<alerts>
|
<fullName>Return</fullName>
|
<description>返还通知</description>
|
<protected>false</protected>
|
<recipients>
|
<field>Loaner_centre_mail_address__c</field>
|
<type>email</type>
|
</recipients>
|
<senderType>CurrentUser</senderType>
|
<template>Loaner_function/Return_HTML</template>
|
</alerts>
|
<fieldUpdates>
|
<fullName>Final_reply_day_text</fullName>
|
<field>Final_reply_day_text__c</field>
|
<formula>Final_reply_day__c</formula>
|
<name>文本化-最新预定归还日</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>Set_Asset_return_time</fullName>
|
<field>Asset_return_time__c</field>
|
<formula>now()</formula>
|
<name>设定-物流发货时间</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>Set_Loaner_received_time</fullName>
|
<field>Loaner_received_time__c</field>
|
<formula>now()</formula>
|
<name>设定-现场签收时间</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>Set_application_status_cancel</fullName>
|
<field>Extend_Status__c</field>
|
<literalValue>不批准</literalValue>
|
<name>设定-延期申请状态 驳回</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Literal</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>Set_approved_day</fullName>
|
<field>Request_asset_extend_time__c</field>
|
<formula>now()</formula>
|
<name>设定-延期批准时间</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>Set_asset_extend_approval_time</fullName>
|
<field>asset_extend_approval_time__c</field>
|
<formula>now()</formula>
|
<name>设定 延期申请批准时间</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>Set_extend_aplication_day</fullName>
|
<field>Request_asset_extend_time__c</field>
|
<name>清空 延期申请时间</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Null</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>Set_extend_not_standard</fullName>
|
<field>Extend_Status__c</field>
|
<literalValue>没申请</literalValue>
|
<name>设定 备品延期申请 没批准</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Literal</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>Set_extend_request_approve</fullName>
|
<field>Extend_Status__c</field>
|
<literalValue>批准</literalValue>
|
<name>设定-延期申请状态 批准</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Literal</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>Set_extend_request_day</fullName>
|
<field>Request_asset_extend_time__c</field>
|
<formula>now()</formula>
|
<name>设定-延期申请时间</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>Set_stage_under_application</fullName>
|
<field>Extend_Status__c</field>
|
<literalValue>申请中</literalValue>
|
<name>设定-延期申请状态-申请中</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Literal</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>Transport_Date_Clear</fullName>
|
<field>Asset_return_time__c</field>
|
<name>Transport_Date_Clear</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Null</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>Update_Loaner_Rental_End_Date</fullName>
|
<field>Rental_End_Date__c</field>
|
<formula>Request_extend_day__c</formula>
|
<name>备品预计回收日</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>Update_loaner_centre_mail_address</fullName>
|
<field>Loaner_centre_mail_address__c</field>
|
<formula>Rental_Apply__r.Loaner_centre_mail_address__c</formula>
|
<name>更新备品中心的邮箱地址</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>text_Final_reply_day</fullName>
|
<description>借出备品回收期限を親の積上げ用に文本化</description>
|
<field>Final_reply_day_text_for_sum__c</field>
|
<formula>Final_reply_day__c</formula>
|
<name>文本化-借出备品回收期限</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<rules>
|
<fullName>reSe_Transport_IMF</fullName>
|
<actions>
|
<name>Transport_Date_Clear</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<active>false</active>
|
<description>//bp2 inactive</description>
|
<formula>NOT(ISNEW()) && ((isblank(Text(Return_delivery_company2__c))) || (isblank(Return_Fedex_number2__c)) || (isblank(Return_Fedex_number2__c)) || (isnull(Received_confirmation_staff2__c)))</formula>
|
<triggerType>onAllChanges</triggerType>
|
</rules>
|
<rules>
|
<fullName>回库处理</fullName>
|
<actions>
|
<name>Set_Asset_return_time</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<active>false</active>
|
<description>//bp2 inactive</description>
|
<formula>NOT(ISNEW()) && (ISCHANGED(Return_delivery_company2__c) || ISCHANGED(Return_Fedex_number2__c) || ISCHANGED(Return_Distributor_method2__c))</formula>
|
<triggerType>onAllChanges</triggerType>
|
</rules>
|
<rules>
|
<fullName>回收后检测NG</fullName>
|
<actions>
|
<name>Inspect_After_NG</name>
|
<type>Alert</type>
|
</actions>
|
<active>false</active>
|
<formula>ISCHANGED(Inspection_after_ng__c) && OR(TEXT(Inspection_after_ng__c) = '维修',TEXT(Inspection_after_ng__c) = '废弃')</formula>
|
<triggerType>onAllChanges</triggerType>
|
</rules>
|
<rules>
|
<fullName>现场收到备品Set</fullName>
|
<actions>
|
<name>Set_Loaner_received_time</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<active>true</active>
|
<formula>ISCHANGED(Received_Confirm__c) && ISBLANK(TEXT(PRIORVALUE(Received_Confirm__c))) && NOT(ISBLANK(TEXT(Received_Confirm__c)))</formula>
|
<triggerType>onAllChanges</triggerType>
|
</rules>
|
<rules>
|
<fullName>设定-文本化</fullName>
|
<actions>
|
<name>Final_reply_day_text</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<actions>
|
<name>text_Final_reply_day</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<active>true</active>
|
<description>借出备品回收期限
|
犯规点数</description>
|
<formula>true|| ISCHANGED( Final_reply_day__c )</formula>
|
<triggerType>onAllChanges</triggerType>
|
</rules>
|
</Workflow>
|