<?xml version="1.0" encoding="UTF-8"?>
|
<Workflow xmlns="http://soap.sforce.com/2006/04/metadata">
|
<alerts>
|
<fullName>Annoucement_for_consum_PIC</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>Consum_Assistant2__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<recipients>
|
<field>Consum_Assistant3__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<recipients>
|
<field>Consum_Assistant__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<recipients>
|
<field>applyUser__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<senderType>CurrentUser</senderType>
|
<template>Consum_Loaner_function/Consum_request_approve_HTML</template>
|
</alerts>
|
<alerts>
|
<fullName>Consum_Received_NG</fullName>
|
<description>耗材08.到货NG提醒</description>
|
<protected>false</protected>
|
<recipients>
|
<field>Loaner_centre_mail_address__c</field>
|
<type>email</type>
|
</recipients>
|
<recipients>
|
<type>owner</type>
|
</recipients>
|
<recipients>
|
<field>Consum_Assistant2__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<recipients>
|
<field>Consum_Assistant3__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<recipients>
|
<field>Consum_Assistant__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<recipients>
|
<field>applyUser__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<senderType>CurrentUser</senderType>
|
<template>Consum_Loaner_function/Consum_arrival_NG_HTML</template>
|
</alerts>
|
<alerts>
|
<fullName>Consum_Received_NG_Content</fullName>
|
<description>耗材08.到货NG内容修改提醒</description>
|
<protected>false</protected>
|
<recipients>
|
<field>Loaner_centre_mail_address__c</field>
|
<type>email</type>
|
</recipients>
|
<recipients>
|
<type>owner</type>
|
</recipients>
|
<recipients>
|
<field>Consum_Assistant2__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<recipients>
|
<field>Consum_Assistant3__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<recipients>
|
<field>Consum_Assistant__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<recipients>
|
<field>applyUser__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<senderType>CurrentUser</senderType>
|
<template>Consum_Loaner_function/Consum_Received_NG_Content_HTML</template>
|
</alerts>
|
<alerts>
|
<fullName>Consum_request_HTML_CC</fullName>
|
<description>耗材备品申请HTML_CC</description>
|
<protected>false</protected>
|
<recipients>
|
<field>CC_EmailUser__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<senderType>CurrentUser</senderType>
|
<template>Consum_Loaner_function/Consum_request_HTML_CC</template>
|
</alerts>
|
<alerts>
|
<fullName>Consum_request_alert</fullName>
|
<description>耗材备品申请HTML</description>
|
<protected>false</protected>
|
<recipients>
|
<type>owner</type>
|
</recipients>
|
<recipients>
|
<field>Consum_Assistant2__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<recipients>
|
<field>Consum_Assistant3__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<recipients>
|
<field>Consum_Assistant__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<recipients>
|
<field>applyUser__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<senderType>CurrentUser</senderType>
|
<template>Consum_Loaner_function/Consum_request_HTML</template>
|
</alerts>
|
<alerts>
|
<fullName>Consum_request_approve_HTMLCC</fullName>
|
<description>耗材申请批准HTMLCC</description>
|
<protected>false</protected>
|
<recipients>
|
<field>CC_EmailUser__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<senderType>CurrentUser</senderType>
|
<template>Consum_Loaner_function/Consum_request_approve_HTMLCC</template>
|
</alerts>
|
<alerts>
|
<fullName>Consum_request_approve_alert</fullName>
|
<description>耗材申请批准HTML</description>
|
<protected>false</protected>
|
<recipients>
|
<field>Loaner_centre_mail_address__c</field>
|
<type>email</type>
|
</recipients>
|
<recipients>
|
<type>owner</type>
|
</recipients>
|
<recipients>
|
<field>Consum_Assistant2__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<recipients>
|
<field>Consum_Assistant3__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<recipients>
|
<field>Consum_Assistant__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<recipients>
|
<field>applyUser__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<senderType>CurrentUser</senderType>
|
<template>Consum_Loaner_function/Consum_request_approve_HTML</template>
|
</alerts>
|
<alerts>
|
<fullName>Consum_request_autocancel_HTML</fullName>
|
<description>耗材05.申请自动取消</description>
|
<protected>false</protected>
|
<recipients>
|
<field>Loaner_centre_mail_address__c</field>
|
<type>email</type>
|
</recipients>
|
<recipients>
|
<type>owner</type>
|
</recipients>
|
<recipients>
|
<field>Consum_Assistant2__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<recipients>
|
<field>Consum_Assistant3__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<recipients>
|
<field>Consum_Assistant__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<recipients>
|
<field>applyUser__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<senderType>CurrentUser</senderType>
|
<template>Consum_Loaner_function/Consum_request_autocancel_HTML</template>
|
</alerts>
|
<alerts>
|
<fullName>Consum_request_cancel_HTML</fullName>
|
<description>耗材04.申请取消(批准前)</description>
|
<protected>false</protected>
|
<recipients>
|
<field>Loaner_centre_mail_address__c</field>
|
<type>email</type>
|
</recipients>
|
<recipients>
|
<type>owner</type>
|
</recipients>
|
<recipients>
|
<field>Consum_Assistant2__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<recipients>
|
<field>Consum_Assistant3__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<recipients>
|
<field>Consum_Assistant__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<recipients>
|
<field>applyUser__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<senderType>CurrentUser</senderType>
|
<template>Consum_Loaner_function/Consum_request_cancel_HTML</template>
|
</alerts>
|
<alerts>
|
<fullName>Consum_request_cancel_approved_HTML</fullName>
|
<description>耗材04.申请取消(批准后)</description>
|
<protected>false</protected>
|
<recipients>
|
<field>Loaner_centre_mail_address__c</field>
|
<type>email</type>
|
</recipients>
|
<recipients>
|
<type>owner</type>
|
</recipients>
|
<recipients>
|
<field>Consum_Assistant2__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<recipients>
|
<field>Consum_Assistant3__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<recipients>
|
<field>Consum_Assistant__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<recipients>
|
<field>applyUser__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<senderType>CurrentUser</senderType>
|
<template>Consum_Loaner_function/Consum_request_cancel_approved_HTML</template>
|
</alerts>
|
<alerts>
|
<fullName>Consum_request_decline_HTMLCC</fullName>
|
<description>耗材申请驳回HTMLCC</description>
|
<protected>false</protected>
|
<recipients>
|
<field>CC_EmailUser__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<senderType>CurrentUser</senderType>
|
<template>Consum_Loaner_function/Consum_request_decline_HTMLCC</template>
|
</alerts>
|
<alerts>
|
<fullName>Consum_request_decline_alert</fullName>
|
<description>耗材申请驳回HTML</description>
|
<protected>false</protected>
|
<recipients>
|
<type>owner</type>
|
</recipients>
|
<recipients>
|
<field>Consum_Assistant2__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<recipients>
|
<field>Consum_Assistant3__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<recipients>
|
<field>Consum_Assistant__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<recipients>
|
<field>applyUser__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<senderType>CurrentUser</senderType>
|
<template>Consum_Loaner_function/Consum_request_decline_HTML</template>
|
</alerts>
|
<alerts>
|
<fullName>Consum_request_decline_annoucement</fullName>
|
<description>不用:耗材03.申请驳回</description>
|
<protected>false</protected>
|
<recipients>
|
<type>owner</type>
|
</recipients>
|
<recipients>
|
<field>Consum_Assistant2__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<recipients>
|
<field>Consum_Assistant3__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<recipients>
|
<field>Consum_Assistant__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<recipients>
|
<field>applyUser__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<senderType>CurrentUser</senderType>
|
<template>Consum_Loaner_function/Consum_request_decline_HTML</template>
|
</alerts>
|
<alerts>
|
<fullName>Consum_stockout</fullName>
|
<description>耗材07.出库提醒</description>
|
<protected>false</protected>
|
<recipients>
|
<field>Loaner_centre_mail_address__c</field>
|
<type>email</type>
|
</recipients>
|
<recipients>
|
<field>Consum_Assistant2__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<recipients>
|
<field>Consum_Assistant3__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<recipients>
|
<field>Consum_Assistant__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<recipients>
|
<field>Person_In_Charge__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<recipients>
|
<field>applyUser__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<senderType>CurrentUser</senderType>
|
<template>Consum_Loaner_function/Consum_stockout_HTML</template>
|
</alerts>
|
<alerts>
|
<fullName>Consum_stockout_center</fullName>
|
<description>耗材07.出库提醒(中心)</description>
|
<protected>false</protected>
|
<recipients>
|
<field>Rental_Apply_Mail__c</field>
|
<type>email</type>
|
</recipients>
|
<senderType>CurrentUser</senderType>
|
<template>Consum_Loaner_function/Consum_request_stockout_HTML</template>
|
</alerts>
|
<alerts>
|
<fullName>Consum_trial_confirm_HTML</fullName>
|
<description>耗材10.上传试用表</description>
|
<protected>false</protected>
|
<recipients>
|
<field>Loaner_centre_mail_address__c</field>
|
<type>email</type>
|
</recipients>
|
<senderType>CurrentUser</senderType>
|
<template>Consum_Loaner_function/Consum_trial_confirm_HTML</template>
|
</alerts>
|
<alerts>
|
<fullName>Consum_trial_decline_HTML</fullName>
|
<description>耗材11.驳回试用表</description>
|
<protected>false</protected>
|
<recipients>
|
<type>owner</type>
|
</recipients>
|
<recipients>
|
<field>Consum_Assistant2__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<recipients>
|
<field>Consum_Assistant3__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<recipients>
|
<field>Consum_Assistant__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<recipients>
|
<field>applyUser__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<senderType>CurrentUser</senderType>
|
<template>Consum_Loaner_function/Consum_trial_decline_HTML</template>
|
</alerts>
|
<alerts>
|
<fullName>Consum_trial_reconfirm_HTML</fullName>
|
<description>耗材12.重新上传试用表</description>
|
<protected>false</protected>
|
<recipients>
|
<field>Loaner_centre_mail_address__c</field>
|
<type>email</type>
|
</recipients>
|
<senderType>CurrentUser</senderType>
|
<template>Consum_Loaner_function/Consum_trial_reconfirm_HTML</template>
|
</alerts>
|
<alerts>
|
<fullName>Received_NG_Reject</fullName>
|
<description>耗材09.到货NG确认不合格提醒</description>
|
<protected>false</protected>
|
<recipients>
|
<type>owner</type>
|
</recipients>
|
<recipients>
|
<field>Consum_Assistant2__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<recipients>
|
<field>Consum_Assistant3__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<recipients>
|
<field>Consum_Assistant__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<recipients>
|
<field>applyUser__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<senderType>CurrentUser</senderType>
|
<template>Consum_Loaner_function/Consum_arrival_NG_decline_HTML</template>
|
</alerts>
|
<alerts>
|
<fullName>Remind_consum_accept_HTML</fullName>
|
<description>耗材06.主体出库指示提醒耗材受理</description>
|
<protected>false</protected>
|
<recipients>
|
<field>Loaner_centre_mail_address__c</field>
|
<type>email</type>
|
</recipients>
|
<senderType>CurrentUser</senderType>
|
<template>Consum_Loaner_function/Remind_consum_accept_HTML</template>
|
</alerts>
|
<alerts>
|
<fullName>Return_Details</fullName>
|
<description>耗材13.回寄提醒</description>
|
<protected>false</protected>
|
<recipients>
|
<field>Loaner_centre_mail_address__c</field>
|
<type>email</type>
|
</recipients>
|
<recipients>
|
<type>owner</type>
|
</recipients>
|
<recipients>
|
<field>Consum_Assistant2__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<recipients>
|
<field>Consum_Assistant3__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<recipients>
|
<field>Consum_Assistant__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<recipients>
|
<field>applyUser__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<senderType>CurrentUser</senderType>
|
<template>Consum_Loaner_function/Consum_return_HTML</template>
|
</alerts>
|
<alerts>
|
<fullName>Trial_Not_Upload_Remind</fullName>
|
<description>耗材15.未上传试用表提醒</description>
|
<protected>false</protected>
|
<recipients>
|
<field>Loaner_centre_mail_address__c</field>
|
<type>email</type>
|
</recipients>
|
<recipients>
|
<type>owner</type>
|
</recipients>
|
<recipients>
|
<field>Consum_Assistant2__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<recipients>
|
<field>Consum_Assistant3__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<recipients>
|
<field>Consum_Assistant__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<recipients>
|
<field>applyUser__c</field>
|
<type>userLookup</type>
|
</recipients>
|
<senderType>CurrentUser</senderType>
|
<template>Consum_Loaner_function/Consum_trial_notupload_remind_HTML</template>
|
</alerts>
|
<fieldUpdates>
|
<fullName>Blank_consum_request_date</fullName>
|
<field>Request_demo_time__c</field>
|
<name>更新-耗材申请时间空</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Null</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>Clear_Need_Send_Trial_Upload_Email</fullName>
|
<field>Need_Send_Trial_Upload_Email__c</field>
|
<literalValue>0</literalValue>
|
<name>清空需要提醒上传试用表</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Literal</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>ConsumApplyNoUpdate</fullName>
|
<field>Name</field>
|
<formula>requestNoJoinStr1__c &"-"& requestNoJoinStr3_New__c & "-"& RIGHT(requestNoJoinStr2__c, 5)</formula>
|
<name>更新耗材申请No</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>Consum_Trial_First_Email_Time</fullName>
|
<field>Consum_Trial_Email_First_Time__c</field>
|
<formula>NOW()</formula>
|
<name>上传试用表邮件首次发送时间更新</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>SetRequest_answer_time</fullName>
|
<field>Request_answer_time__c</field>
|
<formula>NOW()</formula>
|
<name>耗材初次分配时间设置</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>Set_consum_request_status_draft</fullName>
|
<field>Status__c</field>
|
<literalValue>草案中</literalValue>
|
<name>更新耗材申请状态-草案</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Literal</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>true</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>Update_Consom_request_tine</fullName>
|
<field>Request_demo_time__c</field>
|
<formula>NOW()</formula>
|
<name>更新耗材申请时间</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>Update_Consum_Request_status1</fullName>
|
<field>Status__c</field>
|
<literalValue>申请中</literalValue>
|
<name>更新耗材备品申请状态 申请中</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Literal</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>Update_consum_request_approval_time</fullName>
|
<field>Request_approval_time__c</field>
|
<formula>NOW()</formula>
|
<name>更新耗材申请批准时间</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>Update_consum_request_status</fullName>
|
<field>Status__c</field>
|
<literalValue>已批准</literalValue>
|
<name>更新备品耗材申请状态 批准</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Literal</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<rules>
|
<fullName>更新耗材申请No</fullName>
|
<actions>
|
<name>ConsumApplyNoUpdate</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<active>true</active>
|
<formula>((ISNEW())||(ISNULL(Name) ||ischanged(Name)|| ISCHANGED( Product_category__c)))&&(Old_Consum_Apply__c==null)</formula>
|
<triggerType>onAllChanges</triggerType>
|
</rules>
|
<rules>
|
<fullName>耗材04%2E申请取消%EF%BC%88批准前%EF%BC%89</fullName>
|
<actions>
|
<name>Consum_request_cancel_HTML</name>
|
<type>Alert</type>
|
</actions>
|
<active>true</active>
|
<formula>ISPICKVAL(Status__c,'取消') && ISCHANGED(Status__c) && NOT(ISPICKVAL(PRIORVALUE(Status__c),'已批准' )) && NOT(ISPICKVAL(PRIORVALUE(Status__c),'已出库指示' )) && Loaner_cancel_request__c!='本申请审批超时自动关闭申请单'</formula>
|
<triggerType>onAllChanges</triggerType>
|
</rules>
|
<rules>
|
<fullName>耗材04%2E申请取消%EF%BC%88批准后%EF%BC%89</fullName>
|
<actions>
|
<name>Consum_request_cancel_approved_HTML</name>
|
<type>Alert</type>
|
</actions>
|
<active>true</active>
|
<formula>ISPICKVAL(Status__c,'取消') && ISCHANGED(Status__c) && OR(ISPICKVAL(PRIORVALUE(Status__c),'已批准' ) ,ISPICKVAL(PRIORVALUE(Status__c),'已出库指示' ))</formula>
|
<triggerType>onAllChanges</triggerType>
|
</rules>
|
<rules>
|
<fullName>耗材05%2E申请自动取消</fullName>
|
<actions>
|
<name>Consum_request_autocancel_HTML</name>
|
<type>Alert</type>
|
</actions>
|
<active>true</active>
|
<criteriaItems>
|
<field>Consum_Apply__c.Status__c</field>
|
<operation>equals</operation>
|
<value>取消</value>
|
</criteriaItems>
|
<criteriaItems>
|
<field>Consum_Apply__c.Cancel_Reason__c</field>
|
<operation>equals</operation>
|
<value>主动取消</value>
|
</criteriaItems>
|
<criteriaItems>
|
<field>Consum_Apply__c.Loaner_cancel_request__c</field>
|
<operation>equals</operation>
|
<value>本申请审批超时自动关闭申请单</value>
|
</criteriaItems>
|
<triggerType>onCreateOrTriggeringUpdate</triggerType>
|
</rules>
|
<rules>
|
<fullName>耗材06%2E主体出库指示提醒耗材受理</fullName>
|
<actions>
|
<name>Remind_consum_accept_HTML</name>
|
<type>Alert</type>
|
</actions>
|
<active>true</active>
|
<formula>NOT(ISBLANK(Send_Rental_Apply_EmailTime__c)) && ISCHANGED(Send_Rental_Apply_EmailTime__c)</formula>
|
<triggerType>onAllChanges</triggerType>
|
</rules>
|
<rules>
|
<fullName>耗材07%2E出库提醒</fullName>
|
<actions>
|
<name>Consum_stockout</name>
|
<type>Alert</type>
|
</actions>
|
<active>true</active>
|
<criteriaItems>
|
<field>Consum_Apply__c.Delivery_Detail_ForEmail__c</field>
|
<operation>notEqual</operation>
|
</criteriaItems>
|
<triggerType>onCreateOrTriggeringUpdate</triggerType>
|
</rules>
|
<rules>
|
<fullName>耗材07%2E出库提醒%28备品借出%29</fullName>
|
<actions>
|
<name>Consum_stockout_center</name>
|
<type>Alert</type>
|
</actions>
|
<active>true</active>
|
<criteriaItems>
|
<field>Consum_Apply__c.Delivery_Detail_ForEmail__c</field>
|
<operation>notEqual</operation>
|
</criteriaItems>
|
<criteriaItems>
|
<field>Consum_Apply__c.Rental_Apply_Mail_F__c</field>
|
<operation>notEqual</operation>
|
</criteriaItems>
|
<triggerType>onCreateOrTriggeringUpdate</triggerType>
|
</rules>
|
<rules>
|
<fullName>耗材08%2E到货NG内容修改提醒</fullName>
|
<actions>
|
<name>Consum_Received_NG_Content</name>
|
<type>Alert</type>
|
</actions>
|
<active>true</active>
|
<formula>ISCHANGED(Received_NG_Content_Modified_Time__c)</formula>
|
<triggerType>onAllChanges</triggerType>
|
</rules>
|
<rules>
|
<fullName>耗材08%2E到货NG提醒</fullName>
|
<actions>
|
<name>Consum_Received_NG</name>
|
<type>Alert</type>
|
</actions>
|
<active>true</active>
|
<criteriaItems>
|
<field>Consum_Apply__c.Received_NG_Detail_ForEmail__c</field>
|
<operation>notEqual</operation>
|
</criteriaItems>
|
<triggerType>onCreateOrTriggeringUpdate</triggerType>
|
</rules>
|
<rules>
|
<fullName>耗材09%2E到货NG确认不合格提醒</fullName>
|
<actions>
|
<name>Received_NG_Reject</name>
|
<type>Alert</type>
|
</actions>
|
<active>true</active>
|
<criteriaItems>
|
<field>Consum_Apply__c.Received_NG_Reject_Detail_ForEmail__c</field>
|
<operation>notEqual</operation>
|
</criteriaItems>
|
<triggerType>onCreateOrTriggeringUpdate</triggerType>
|
</rules>
|
<rules>
|
<fullName>耗材10%2E上传试用表</fullName>
|
<actions>
|
<name>Consum_trial_confirm_HTML</name>
|
<type>Alert</type>
|
</actions>
|
<actions>
|
<name>Consum_Trial_First_Email_Time</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<active>true</active>
|
<formula>ISBLANK(Consum_Trial_Email_First_Time__c) &&( (ISCHANGED(Asset_return_time__c) && NOT(ISBLANK(Asset_return_time__c ))))</formula>
|
<triggerType>onAllChanges</triggerType>
|
</rules>
|
<rules>
|
<fullName>耗材11%2E驳回试用表</fullName>
|
<actions>
|
<name>Consum_trial_decline_HTML</name>
|
<type>Alert</type>
|
</actions>
|
<active>true</active>
|
<criteriaItems>
|
<field>Consum_Apply__c.HP_received_sign_NG__c</field>
|
<operation>equals</operation>
|
<value>真</value>
|
</criteriaItems>
|
<criteriaItems>
|
<field>Consum_Apply__c.HP_received_sign_NG_Reason__c</field>
|
<operation>notEqual</operation>
|
</criteriaItems>
|
<triggerType>onCreateOrTriggeringUpdate</triggerType>
|
</rules>
|
<rules>
|
<fullName>耗材12%2E重新上传试用表</fullName>
|
<actions>
|
<name>Consum_trial_reconfirm_HTML</name>
|
<type>Alert</type>
|
</actions>
|
<active>true</active>
|
<formula>NOT(ISBLANK(PRIORVALUE(Consum_Trial_Email_First_Time__c))) &&( (ISCHANGED(Asset_return_time__c) && NOT(ISBLANK(Asset_return_time__c ))))</formula>
|
<triggerType>onAllChanges</triggerType>
|
</rules>
|
<rules>
|
<fullName>耗材13%2E回寄提醒</fullName>
|
<actions>
|
<name>Return_Details</name>
|
<type>Alert</type>
|
</actions>
|
<active>true</active>
|
<formula>ISCHANGED(Return_Email_Time__c) && NOT(ISBLANK(Return_Details_ForEmail__c))</formula>
|
<triggerType>onAllChanges</triggerType>
|
</rules>
|
<rules>
|
<fullName>耗材15%2E未上传试用表提醒</fullName>
|
<actions>
|
<name>Trial_Not_Upload_Remind</name>
|
<type>Alert</type>
|
</actions>
|
<actions>
|
<name>Clear_Need_Send_Trial_Upload_Email</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<active>true</active>
|
<criteriaItems>
|
<field>Consum_Apply__c.Need_Send_Trial_Upload_Email__c</field>
|
<operation>equals</operation>
|
<value>真</value>
|
</criteriaItems>
|
<triggerType>onCreateOrTriggeringUpdate</triggerType>
|
</rules>
|
<rules>
|
<fullName>耗材初次分配时间设置</fullName>
|
<actions>
|
<name>SetRequest_answer_time</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<active>true</active>
|
<description>PRIORVALUE(Select_Status__c) = '待分配' &&( Select_Status__c = '部分分配' || Select_Status__c = '全部分配') && ISBLANK(Request_answer_time__c) && PRIORVALUE(Wei_Assigned_Cnt__c) > Wei_Assigned_Cnt__c</description>
|
<formula>Yi_Assigned_Cnt_Sum__c > 0 && ISBLANK(Request_answer_time__c)</formula>
|
<triggerType>onAllChanges</triggerType>
|
</rules>
|
</Workflow>
|