<?xml version="1.0" encoding="UTF-8"?>
|
<Workflow xmlns="http://soap.sforce.com/2006/04/metadata">
|
<alerts>
|
<fullName>EmailRejectToCreatedBy</fullName>
|
<description>驳回后发送批准邮件</description>
|
<protected>false</protected>
|
<recipients>
|
<type>owner</type>
|
</recipients>
|
<senderType>CurrentUser</senderType>
|
<template>OPDPlan/OPDNoReportRejectTemplate</template>
|
</alerts>
|
<alerts>
|
<fullName>EmailToCreatedBy</fullName>
|
<description>批准后发送批准邮件</description>
|
<protected>false</protected>
|
<recipients>
|
<type>owner</type>
|
</recipients>
|
<senderType>CurrentUser</senderType>
|
<template>OPDPlan/OPDNoReportApprovalTemplate</template>
|
</alerts>
|
<alerts>
|
<fullName>Login_Report</fullName>
|
<description>OPD实施后三天内,提醒登录报告书;</description>
|
<protected>false</protected>
|
<recipients>
|
<type>owner</type>
|
</recipients>
|
<senderType>CurrentUser</senderType>
|
<template>OPDPlan/Login_Report</template>
|
</alerts>
|
<alerts>
|
<fullName>OPDPlanAutomaticSystemDelay</fullName>
|
<ccEmails>Xin_Prectech@olympus.com.cn</ccEmails>
|
<description>OPD计划-系统自动延期</description>
|
<protected>false</protected>
|
<recipients>
|
<type>owner</type>
|
</recipients>
|
<senderType>CurrentUser</senderType>
|
<template>unfiled$public/OPDPlanAutomaticSystemDelay</template>
|
</alerts>
|
<alerts>
|
<fullName>OPDPlanReject</fullName>
|
<description>OPD计划驳回时邮件通知</description>
|
<protected>false</protected>
|
<recipients>
|
<type>owner</type>
|
</recipients>
|
<senderType>CurrentUser</senderType>
|
<template>OPDPlan/OPDRejectTemplate</template>
|
</alerts>
|
<alerts>
|
<fullName>OPDPlan_7daysAgo_BorrowSpare</fullName>
|
<description>OPD计划实施日7天前,提醒借备品</description>
|
<protected>false</protected>
|
<recipients>
|
<type>owner</type>
|
</recipients>
|
<senderType>CurrentUser</senderType>
|
<template>OPDPlan/RemindBorrowSpare</template>
|
</alerts>
|
<alerts>
|
<fullName>OPD_Spare_Outbound</fullName>
|
<description>OPD计划的备品发出后,提醒准备实施OPD</description>
|
<protected>false</protected>
|
<recipients>
|
<type>owner</type>
|
</recipients>
|
<senderType>CurrentUser</senderType>
|
<template>OPDPlan/Implement_OPD</template>
|
</alerts>
|
<alerts>
|
<fullName>ShortageOfSpareParts</fullName>
|
<ccEmails>Xin_Prectech@olympus.com.cn</ccEmails>
|
<description>OPD计划取消并且备品不足</description>
|
<protected>false</protected>
|
<recipients>
|
<type>owner</type>
|
</recipients>
|
<senderType>CurrentUser</senderType>
|
<template>unfiled$public/ShortageOfSpareParts</template>
|
</alerts>
|
<fieldUpdates>
|
<fullName>FinalDateNullUpdate</fullName>
|
<field>FinalDate__c</field>
|
<name>清空最终处理日</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Null</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>FinalDateUpdate</fullName>
|
<field>FinalDate__c</field>
|
<formula>today()</formula>
|
<name>设置最终处理日</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>NoNSupplementaryApplication</fullName>
|
<field>NoNSupplementaryApplication__c</field>
|
<literalValue>1</literalValue>
|
<name>非补充申请(后台用)</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Literal</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>OCSM_Rental_Text_Assignment</fullName>
|
<field>OPDPlanOCM_man_province_Rental_Txt__c</field>
|
<formula>Owner:User.OCM_man_province_Rental__c</formula>
|
<name>从所有人OCSM省赋值(备用品)给文本</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>OCSM_Text_Assignment</fullName>
|
<field>OPDPlanOCM_man_province_txt__c</field>
|
<formula>Owner:User.OCM_man_province__c</formula>
|
<name>从所有人OCSM省赋值给文本</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>OPDStatusPlan</fullName>
|
<field>Status__c</field>
|
<literalValue>计划中</literalValue>
|
<name>OPD状态自动完成未报告到计划中</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Literal</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>OPDStatusUpdate</fullName>
|
<field>Status__c</field>
|
<literalValue>完毕未报告</literalValue>
|
<name>OPD状态自动完成未报告</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Literal</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>OPDStatusUpdateFinish</fullName>
|
<field>Status__c</field>
|
<literalValue>完毕</literalValue>
|
<name>OPD状态自动完成</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Literal</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>OPD_No</fullName>
|
<field>Name</field>
|
<formula>AutoNumber__c +''</formula>
|
<name>OPD计划No</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>UpdateJumpDate</fullName>
|
<description>更新插队的时候,顺便更新插队日期</description>
|
<field>JumpDate__c</field>
|
<formula>TODAY()</formula>
|
<name>更新插队日期</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>UpdateNoReportStatus</fullName>
|
<field>noReportStatus__c</field>
|
<literalValue>计划中</literalValue>
|
<name>更新无报告状态计划中</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Literal</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>true</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>UpdateNoReportStatus2</fullName>
|
<field>noReportStatus__c</field>
|
<literalValue>草案中</literalValue>
|
<name>更新无报告状态草案中</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Literal</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>UpdateOPDApprover</fullName>
|
<field>SalesManager__c</field>
|
<name>清空批准人</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>LookupValue</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>UpdateRentalResonFlag</fullName>
|
<field>RentalResonFlag__c</field>
|
<literalValue>1</literalValue>
|
<name>更新可以修改出借目的标识</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Literal</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>UpdateStatusComplete</fullName>
|
<field>Status__c</field>
|
<literalValue>完毕</literalValue>
|
<name>更新状态完毕</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Literal</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>UpdateStatusCompletedToBeReported</fullName>
|
<field>Status__c</field>
|
<literalValue>完毕未报告</literalValue>
|
<name>更新状态完毕未报告</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Literal</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>UpdateStatusWaitCommitReport</fullName>
|
<description>//2021-12-15 mzy SWAG-C8E6LE</description>
|
<field>Status__c</field>
|
<literalValue>待提交报告</literalValue>
|
<name>更新状态待提交报告</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Literal</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>UpdateStatus_caoanzhong</fullName>
|
<description>拒绝时需要将状态变回 '草案中'</description>
|
<field>Status__c</field>
|
<literalValue>草案中</literalValue>
|
<name>更新状态_草案中</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Literal</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>UpdateStatus_jihuazhong</fullName>
|
<description>将OPD计划的状态从"提交"改为"计划中"</description>
|
<field>Status__c</field>
|
<literalValue>计划中</literalValue>
|
<name>更新状态_计划中</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Literal</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>true</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>UpdatedOPDCancelDate</fullName>
|
<field>CancelDate__c</field>
|
<formula>TODAY()</formula>
|
<name>记录opd计划取消日</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>UpdateedOPDImplementDate</fullName>
|
<description>OPD计划实施日期temp】,变化时,更新到【OPD计划实施日期】</description>
|
<field>OPDPlan_ImplementDate__c</field>
|
<formula>OPDPlan_ImplementDate_temp__c</formula>
|
<name>更新到OPD计划实施日期</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>opdUpdatedOPDCompleteDate</fullName>
|
<field>CompleteDate__c</field>
|
<formula>TODAY()</formula>
|
<name>记录opd计划完成日</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Formula</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>statusFieldUpdate</fullName>
|
<description>来源是学会的,只要OPD实施日小于今天,状态变为完毕未报告
|
//2021-12-13 mzy SWAG-C8E6LE 来源是学会的,只要OPD实施日小于今天,状态变为待提交报告</description>
|
<field>Status__c</field>
|
<literalValue>待提交报告</literalValue>
|
<name>状态等于待提交报告</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Literal</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>true</reevaluateOnChange>
|
</fieldUpdates>
|
<fieldUpdates>
|
<fullName>updateStatus_jhz</fullName>
|
<description>来源是学会的,只要OPD实施日大于今天,状态变为计划中</description>
|
<field>Status__c</field>
|
<literalValue>计划中</literalValue>
|
<name>更新状态为计划中</name>
|
<notifyAssignee>false</notifyAssignee>
|
<operation>Literal</operation>
|
<protected>false</protected>
|
<reevaluateOnChange>false</reevaluateOnChange>
|
</fieldUpdates>
|
<rules>
|
<fullName>OCSM管理省%EF%BC%88备品%EF%BC%89文本赋值</fullName>
|
<actions>
|
<name>OCSM_Rental_Text_Assignment</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<active>true</active>
|
<criteriaItems>
|
<field>User.CreatedDate</field>
|
<operation>notEqual</operation>
|
</criteriaItems>
|
<description>取OPD计划的所有人OCSM管理省(备品用)的值
|
用于共享给李海红 课题:SWAG-C548V6</description>
|
<triggerType>onAllChanges</triggerType>
|
</rules>
|
<rules>
|
<fullName>OCSM管理省文本赋值</fullName>
|
<actions>
|
<name>OCSM_Text_Assignment</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<active>true</active>
|
<criteriaItems>
|
<field>OPDPlan__c.CreatedDate</field>
|
<operation>notEqual</operation>
|
</criteriaItems>
|
<description>取OPD计划的所有人OCSM管理省的值
|
用于共享给广东--熊美琴 (课题)</description>
|
<triggerType>onAllChanges</triggerType>
|
</rules>
|
<rules>
|
<fullName>OPD状态自动完成</fullName>
|
<actions>
|
<name>OPDStatusUpdateFinish</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<active>true</active>
|
<description>不需要报告书,状态直接更新成完毕</description>
|
<formula>if(And(!isBlank(Text(OPDType__c)),!isBlank(StayOrNot__c))&&Text(OPDType__c) == '学会' && StayOrNot__c == '已离职',false,True) && Text(Status__c) !='取消' && Text(Status__c) != '完毕' && !isBlank(Text(OPDType__c)) && Text(OPDType__c) != '学会' && ((!isBlank(Rental_Apply2__c)&& Rental_Apply2_Status__c == 'OVER') || (!isBlank(Rental_Apply1__c)&& Rental_Apply1_Status__c == 'OVER') || (!isBlank(Rental_Apply3__c) && Rental_Apply3_Status__c == 'OVER') || (!isBlank(Rental_Apply4__c)&& Rental_Apply4_Status__c == 'OVER') || (!isBlank(Rental_Apply5__c) && Rental_Apply5_Status__c == 'OVER'))&& NeedReport__c = '否'</formula>
|
<triggerType>onCreateOrTriggeringUpdate</triggerType>
|
</rules>
|
<rules>
|
<fullName>OPD状态自动完成未报告</fullName>
|
<actions>
|
<name>OPDStatusUpdate</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<active>true</active>
|
<description>所有的备品状态都已出库或取消(OVER),并且当前状态不是完毕。
|
2021-01-08日加上了第一行代码 byrentx SWAG-BWSBW3
|
2021-12-10 mzy 加上判断非 待提交报告状态 SWAG-C8E6LE</description>
|
<formula>if(And(!isBlank(Text(OPDType__c)),!isBlank(StayOrNot__c))&&Text(OPDType__c) == '学会' && StayOrNot__c == '已离职',false,True) && Text(Status__c) !='取消'&& Text(Status__c) != '待提交报告' && Text(Status__c) != '完毕' && !isBlank(Text(OPDType__c)) && Text(OPDType__c) != '学会' && ((!isBlank(Rental_Apply2__c)&& Rental_Apply2_Status__c == 'OVER'))&& NeedReport__c != '否'</formula>
|
<triggerType>onAllChanges</triggerType>
|
</rules>
|
<rules>
|
<fullName>OPD状态自动计划中</fullName>
|
<actions>
|
<name>OPDStatusPlan</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<active>false</active>
|
<formula>Text(Status__c)=='完毕未报告' &&(!isBlank(Rental_Apply2__c)&&isBlank(Rental_Apply2_Status__c)||(!isBlank(Rental_Apply1__c)&&isBlank(Rental_Apply1_Status__c))||(!isBlank(Rental_Apply3__c)&&isBlank(Rental_Apply3_Status__c))||(!isBlank(Rental_Apply4__c)&&isBlank(Rental_Apply4_Status__c))||(!isBlank(Rental_Apply5__c)&&isBlank(Rental_Apply5_Status__c)))</formula>
|
<triggerType>onCreateOrTriggeringUpdate</triggerType>
|
</rules>
|
<rules>
|
<fullName>OPD计划-系统自动延期</fullName>
|
<actions>
|
<name>OPDPlanAutomaticSystemDelay</name>
|
<type>Alert</type>
|
</actions>
|
<active>true</active>
|
<formula>AND(ISCHANGED(SystemDelayMark__c),SystemDelayMark__c)</formula>
|
<triggerType>onAllChanges</triggerType>
|
</rules>
|
<rules>
|
<fullName>OPD计划No</fullName>
|
<actions>
|
<name>NoNSupplementaryApplication</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<actions>
|
<name>OPD_No</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<active>true</active>
|
<formula>AND(ISBLANK(OriginalOpdPlanRental__c),NOT(supplementaryApplication__c))</formula>
|
<triggerType>onCreateOnly</triggerType>
|
</rules>
|
<rules>
|
<fullName>OPD计划取消并且备品不足</fullName>
|
<actions>
|
<name>ShortageOfSpareParts</name>
|
<type>Alert</type>
|
</actions>
|
<active>true</active>
|
<formula>ISCHANGED(CancelOpdPlan__c) && CancelOpdPlan__c</formula>
|
<triggerType>onAllChanges</triggerType>
|
</rules>
|
<rules>
|
<fullName>OPD计划实施日7天前%EF%BC%8C提醒借备品</fullName>
|
<active>true</active>
|
<description>update lxy 2020/11/04 OPD计划来源是学会的无需提醒,学会本身上有提前15天的提醒
|
update lxy 2020/11/11 所有的均需提醒,根据课题LZHU-BV22VN修改</description>
|
<formula>AND(TEXT(Status__c) = '计划中',Rental_Apply2__c = null)</formula>
|
<triggerType>onCreateOrTriggeringUpdate</triggerType>
|
<workflowTimeTriggers>
|
<actions>
|
<name>OPDPlan_7daysAgo_BorrowSpare</name>
|
<type>Alert</type>
|
</actions>
|
<offsetFromField>OPDPlan__c.OPDPlan_ImplementDate__c</offsetFromField>
|
<timeLength>-7</timeLength>
|
<workflowTimeTriggerUnit>Days</workflowTimeTriggerUnit>
|
</workflowTimeTriggers>
|
</rules>
|
<rules>
|
<fullName>OPD计划的备品发出后%EF%BC%8C提醒准备实施OPD%E3%80%82</fullName>
|
<actions>
|
<name>OPD_Spare_Outbound</name>
|
<type>Alert</type>
|
</actions>
|
<active>false</active>
|
<criteriaItems>
|
<field>OPDPlan__c.Status__c</field>
|
<operation>equals</operation>
|
<value>计划中</value>
|
</criteriaItems>
|
<criteriaItems>
|
<field>OPDPlan__c.NewestRentalStatus__c</field>
|
<operation>equals</operation>
|
<value>已出库</value>
|
</criteriaItems>
|
<description>2021/3/9李绚课题:
|
以下邮件提醒为19年上线,不符目前OPD管理需求,请先进行系统禁用,谢谢</description>
|
<triggerType>onAllChanges</triggerType>
|
</rules>
|
<rules>
|
<fullName>opd实施日大于等于今天更新状态</fullName>
|
<actions>
|
<name>updateStatus_jhz</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<active>true</active>
|
<description>//2021-12-13 mzy SWAG-C8E6LE 来源是学会的,计划日大于等于今天更新为计划中</description>
|
<formula>Text(OPDType__c) ='学会' && OPDPlan_ImplementDate__c >=Today()&& Text(Status__c)='待提交报告'</formula>
|
<triggerType>onAllChanges</triggerType>
|
</rules>
|
<rules>
|
<fullName>opd实施日小于今天更新状态</fullName>
|
<actions>
|
<name>statusFieldUpdate</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<active>true</active>
|
<description>来源是学会的,只要OPD实施日小于今天,状态变为完毕未报告
|
//2021-12-13 mzy 来源是学会的,只要OPD实施日小于今天,状态变为待提交报告</description>
|
<formula>Text(OPDType__c) ='学会' && Text(Status__c)='计划中' && OPDPlan_ImplementDate__c <Today()</formula>
|
<triggerType>onAllChanges</triggerType>
|
</rules>
|
<rules>
|
<fullName>更新_OPD计划实施日期</fullName>
|
<actions>
|
<name>UpdateedOPDImplementDate</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<active>true</active>
|
<description>【OPD计划实施日期temp】,变化时 更新到【OPD计划实施日期】</description>
|
<formula>ISCHANGED(OPDPlan_ImplementDate_temp__c) || (isNew() && Text(OPDType__c)=='学会')</formula>
|
<triggerType>onAllChanges</triggerType>
|
</rules>
|
<rules>
|
<fullName>更新插队_更新插队日期%28营业%29</fullName>
|
<actions>
|
<name>UpdateJumpDate</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<active>true</active>
|
<criteriaItems>
|
<field>OPDPlan__c.IsJump__c</field>
|
<operation>equals</operation>
|
<value>真</value>
|
</criteriaItems>
|
<description>更新插队的时候,顺便更新插队日期</description>
|
<triggerType>onCreateOrTriggeringUpdate</triggerType>
|
</rules>
|
<rules>
|
<fullName>最终处理日-自动清空</fullName>
|
<actions>
|
<name>FinalDateNullUpdate</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<active>false</active>
|
<booleanFilter>1 OR 2</booleanFilter>
|
<criteriaItems>
|
<field>OPDPlan__c.Status__c</field>
|
<operation>equals</operation>
|
<value>计划中</value>
|
</criteriaItems>
|
<criteriaItems>
|
<field>OPDPlan__c.Status__c</field>
|
<operation>equals</operation>
|
</criteriaItems>
|
<triggerType>onCreateOrTriggeringUpdate</triggerType>
|
</rules>
|
<rules>
|
<fullName>最终处理日-自动设置</fullName>
|
<actions>
|
<name>FinalDateUpdate</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<active>false</active>
|
<criteriaItems>
|
<field>OPDPlan__c.Status__c</field>
|
<operation>equals</operation>
|
<value>完毕,取消</value>
|
</criteriaItems>
|
<triggerType>onCreateOrTriggeringUpdate</triggerType>
|
</rules>
|
<rules>
|
<fullName>登录报告书</fullName>
|
<active>false</active>
|
<criteriaItems>
|
<field>OPDPlan__c.Status__c</field>
|
<operation>equals</operation>
|
<value>计划中</value>
|
</criteriaItems>
|
<description>update lxy 2020/11/18 开会时,海娟部长说不需要了,直接停用的</description>
|
<triggerType>onCreateOrTriggeringUpdate</triggerType>
|
<workflowTimeTriggers>
|
<actions>
|
<name>Login_Report</name>
|
<type>Alert</type>
|
</actions>
|
<offsetFromField>OPDPlan__c.OPDPlan_ImplementDate__c</offsetFromField>
|
<timeLength>3</timeLength>
|
<workflowTimeTriggerUnit>Days</workflowTimeTriggerUnit>
|
</workflowTimeTriggers>
|
</rules>
|
<rules>
|
<fullName>记录_OPD计划取消日期</fullName>
|
<actions>
|
<name>UpdatedOPDCancelDate</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<active>true</active>
|
<description>状态为取消时,记录当前日期</description>
|
<formula>ISCHANGED(Status__c) && Text(Status__c)=='取消'</formula>
|
<triggerType>onAllChanges</triggerType>
|
</rules>
|
<rules>
|
<fullName>记录_OPD计划完毕日期</fullName>
|
<actions>
|
<name>opdUpdatedOPDCompleteDate</name>
|
<type>FieldUpdate</type>
|
</actions>
|
<active>true</active>
|
<description>状态为完毕时,记录当前日期</description>
|
<formula>ISCHANGED(Status__c) && Text(Status__c)=='完毕'</formula>
|
<triggerType>onAllChanges</triggerType>
|
</rules>
|
</Workflow>
|