<?xml version="1.0" encoding="UTF-8"?>
|
<CustomObject xmlns="http://soap.sforce.com/2006/04/metadata">
|
<actionOverrides>
|
<actionName>Accept</actionName>
|
<type>Default</type>
|
</actionOverrides>
|
<actionOverrides>
|
<actionName>CancelEdit</actionName>
|
<type>Default</type>
|
</actionOverrides>
|
<actionOverrides>
|
<actionName>Clone</actionName>
|
<type>Default</type>
|
</actionOverrides>
|
<actionOverrides>
|
<actionName>Decline</actionName>
|
<type>Default</type>
|
</actionOverrides>
|
<actionOverrides>
|
<actionName>Delete</actionName>
|
<content>YouCantDeleteEvent</content>
|
<skipRecordTypeSelect>false</skipRecordTypeSelect>
|
<type>Visualforce</type>
|
</actionOverrides>
|
<actionOverrides>
|
<actionName>DeleteSeries</actionName>
|
<type>Default</type>
|
</actionOverrides>
|
<actionOverrides>
|
<actionName>Edit</actionName>
|
<content>SimpleEventRegister</content>
|
<skipRecordTypeSelect>false</skipRecordTypeSelect>
|
<type>Visualforce</type>
|
</actionOverrides>
|
<actionOverrides>
|
<actionName>NewEvent</actionName>
|
<content>SimpleEventRegister</content>
|
<skipRecordTypeSelect>false</skipRecordTypeSelect>
|
<type>Visualforce</type>
|
</actionOverrides>
|
<actionOverrides>
|
<actionName>NewSfdcEvent</actionName>
|
<type>Default</type>
|
</actionOverrides>
|
<actionOverrides>
|
<actionName>Today</actionName>
|
<type>Default</type>
|
</actionOverrides>
|
<actionOverrides>
|
<actionName>View</actionName>
|
<type>Default</type>
|
</actionOverrides>
|
<compactLayoutAssignment>SYSTEM</compactLayoutAssignment>
|
<enableFeeds>false</enableFeeds>
|
<fields>
|
<fullName>ActivityDate</fullName>
|
</fields>
|
<fields>
|
<fullName>ActivityDateTime</fullName>
|
</fields>
|
<fields>
|
<fullName>Attendees</fullName>
|
</fields>
|
<fields>
|
<fullName>Description</fullName>
|
</fields>
|
<fields>
|
<fullName>DurationInMinutes</fullName>
|
</fields>
|
<fields>
|
<fullName>Email</fullName>
|
</fields>
|
<fields>
|
<fullName>EndDateTime</fullName>
|
</fields>
|
<fields>
|
<fullName>EventSubtype</fullName>
|
</fields>
|
<fields>
|
<fullName>IsAllDayEvent</fullName>
|
</fields>
|
<fields>
|
<fullName>IsPrivate</fullName>
|
</fields>
|
<fields>
|
<fullName>IsRecurrence2</fullName>
|
</fields>
|
<fields>
|
<fullName>IsReminderSet</fullName>
|
</fields>
|
<fields>
|
<fullName>IsVisibleInSelfService</fullName>
|
</fields>
|
<fields>
|
<fullName>Location</fullName>
|
</fields>
|
<fields>
|
<fullName>OwnerId</fullName>
|
<type>Lookup</type>
|
</fields>
|
<fields>
|
<fullName>Phone</fullName>
|
</fields>
|
<fields>
|
<fullName>ShowAs</fullName>
|
</fields>
|
<fields>
|
<fullName>StartDateTime</fullName>
|
</fields>
|
<fields>
|
<fullName>Subject</fullName>
|
<type>Picklist</type>
|
</fields>
|
<fields>
|
<fullName>Type</fullName>
|
<type>Picklist</type>
|
</fields>
|
<fields>
|
<fullName>WhatId</fullName>
|
<type>Lookup</type>
|
</fields>
|
<fields>
|
<fullName>WhoId</fullName>
|
<type>Lookup</type>
|
</fields>
|
<listViews>
|
<fullName>Last_Month</fullName>
|
<columns>CORE.USERS.ALIAS</columns>
|
<columns>TASK.DUE_DATE</columns>
|
<columns>EVENT.LOCATION</columns>
|
<columns>Purpose_Type__c</columns>
|
<columns>Related_Opportunity1__c</columns>
|
<filterScope>Team</filterScope>
|
<filters>
|
<field>TASK.DUE_DATE</field>
|
<operation>equals</operation>
|
<value>LAST_MONTH</value>
|
</filters>
|
<filters>
|
<field>ACTIVITY.TASK</field>
|
<operation>equals</operation>
|
<value>0</value>
|
</filters>
|
<label>11. 上个月报告一览</label>
|
<language>ja</language>
|
</listViews>
|
<listViews>
|
<fullName>Last_Week</fullName>
|
<columns>CORE.USERS.ALIAS</columns>
|
<columns>TASK.DUE_DATE</columns>
|
<columns>EVENT.LOCATION</columns>
|
<columns>Purpose_Type__c</columns>
|
<columns>Related_Opportunity1__c</columns>
|
<filterScope>Team</filterScope>
|
<filters>
|
<field>TASK.DUE_DATE</field>
|
<operation>equals</operation>
|
<value>LAST_WEEK</value>
|
</filters>
|
<filters>
|
<field>ACTIVITY.TASK</field>
|
<operation>equals</operation>
|
<value>0</value>
|
</filters>
|
<label>02 上星期报告一览</label>
|
<language>ja</language>
|
</listViews>
|
<listViews>
|
<fullName>Last_monthandthismonth</fullName>
|
<columns>CORE.USERS.ALIAS</columns>
|
<columns>TASK.DUE_DATE</columns>
|
<columns>EVENT.LOCATION</columns>
|
<columns>Purpose_Type__c</columns>
|
<columns>Related_Opportunity1__c</columns>
|
<filterScope>Team</filterScope>
|
<filters>
|
<field>TASK.DUE_DATE</field>
|
<operation>equals</operation>
|
<value>LAST_MONTH,THIS_MONTH</value>
|
</filters>
|
<filters>
|
<field>ACTIVITY.TASK</field>
|
<operation>equals</operation>
|
<value>0</value>
|
</filters>
|
<filters>
|
<field>CORE.USERS.FULL_NAME</field>
|
<operation>equals</operation>
|
<value>李 悦</value>
|
</filters>
|
<label>20 担当的日报一览模版(近两月)--AAA</label>
|
<language>ja</language>
|
</listViews>
|
<listViews>
|
<fullName>Manual_customer_registration</fullName>
|
<columns>TASK.SUBJECT</columns>
|
<columns>TASK.WHO_NAME</columns>
|
<columns>TASK.WHAT_NAME</columns>
|
<columns>TASK.DUE_DATE</columns>
|
<columns>CORE.USERS.ALIAS</columns>
|
<columns>TASK.LAST_UPDATE</columns>
|
<columns>UPDATEDBY_USER.ALIAS</columns>
|
<filterScope>Everything</filterScope>
|
<label>99.手动输入用户报告一览 需要重新修改用户名</label>
|
<language>ja</language>
|
</listViews>
|
<listViews>
|
<fullName>This_Month</fullName>
|
<columns>CORE.USERS.ALIAS</columns>
|
<columns>TASK.DUE_DATE</columns>
|
<columns>EVENT.LOCATION</columns>
|
<columns>Purpose_Type__c</columns>
|
<columns>Related_Opportunity1__c</columns>
|
<filterScope>Everything</filterScope>
|
<filters>
|
<field>TASK.DUE_DATE</field>
|
<operation>equals</operation>
|
<value>THIS_MONTH</value>
|
</filters>
|
<filters>
|
<field>ACTIVITY.TASK</field>
|
<operation>equals</operation>
|
<value>0</value>
|
</filters>
|
<label>10. 本月报告一览</label>
|
<language>ja</language>
|
</listViews>
|
<listViews>
|
<fullName>This_Week</fullName>
|
<columns>CORE.USERS.ALIAS</columns>
|
<columns>TASK.DUE_DATE</columns>
|
<columns>EVENT.LOCATION</columns>
|
<columns>Purpose_Type__c</columns>
|
<columns>Related_Opportunity1__c</columns>
|
<filterScope>Team</filterScope>
|
<filters>
|
<field>TASK.DUE_DATE</field>
|
<operation>equals</operation>
|
<value>THIS_WEEK</value>
|
</filters>
|
<filters>
|
<field>ACTIVITY.TASK</field>
|
<operation>equals</operation>
|
<value>0</value>
|
</filters>
|
<label>01. 本周报告一览</label>
|
<language>ja</language>
|
</listViews>
|
<sharingModel>ControlledByParent</sharingModel>
|
<validationRules>
|
<fullName>location_input_check</fullName>
|
<active>true</active>
|
<description>没有WhatID</description>
|
<errorConditionFormula>(Text(Activity_Type2__c) == '販売店'||
|
Text(Activity_Type2__c) == '社外イベント')&&whatid__c == null && DATEVALUE(CreatedDate) >= DATE(2020,06,25) && isblank(EventC_ID__c) && isblank(NextEventC_ID__c) && isScheduled__c !=true</errorConditionFormula>
|
<errorMessage>请选择经销商或市场活动!</errorMessage>
|
</validationRules>
|
<webLinks>
|
<fullName>Advance</fullName>
|
<availability>online</availability>
|
<description>//2021-10-08 mzy 任务管理改善 已完成的任务,事件页面和日报页面不允许修改</description>
|
<displayType>button</displayType>
|
<linkType>javascript</linkType>
|
<masterLabel>提前</masterLabel>
|
<openType>onClickJavaScript</openType>
|
<protected>false</protected>
|
<url>{!RequireScript("/soap/ajax/51.0/connection.js")}
|
{!RequireScript("/soap/ajax/51.0/apex.js")}
|
{!RequireScript("/resource/CommonUtilJs")}
|
//2021-10-21 gwy 版本更改为51.0
|
var foo = function() {
|
//2021-07-28 mzy update
|
//判断是否有生成报告一览
|
var IsHasEventC = '{!Event.EventC_ID__c}'==''?true:false;
|
//2021-07-28 mzy update
|
//2021-10-08 mzy 任务管理改善 已完成的任务,事件页面和日报页面不允许修改 start
|
var TaskCount = new Array();
|
TaskCount = sforce.connection.query("select id from task__c where id = '{!Event.Task_ID__c }' and taskStatus__c = '03 完成' ");
|
if(TaskCount.size >0){
|
alert('已完成的任务不能修改');
|
}else{
|
if({!TODAY() > DATEVALUE( Event.StartDateTime) } ||(!IsHasEventC)&&{!TODAY() =
|
DATEVALUE( Event.StartDateTime)}){
|
alert('不允许修改今天及以前的事件');
|
}else if({!!ISBLANK( TEXT(Event.EventStatus__c) )} &&
|
{!TEXT(Event.EventStatus__c) != '02 接受'} ){
|
alert('不允许修改本事件');
|
}else{
|
url= "/apex/SimpleEventRegister?Id={!Event.Id}";
|
window.open(url);
|
}
|
}
|
//2021-10-08 mzy 任务管理改善 已完成的任务,事件页面和日报页面不允许修改 end
|
}
|
foo();</url>
|
</webLinks>
|
<webLinks>
|
<fullName>EventCancel</fullName>
|
<availability>online</availability>
|
<description>//2021-07-28 mzy update 今天的事件 如果已经生成报告一览,则不允许进行取消和延期操作
|
//2021-10-08 mzy 任务管理改善 已完成的任务,事件页面和日报页面不允许修改 start
|
//2021-10-08 mzy 任务管理改善 上级分配的任务,事件页面和日报页面不允许修改 start</description>
|
<displayType>button</displayType>
|
<linkType>javascript</linkType>
|
<masterLabel>取消</masterLabel>
|
<openType>onClickJavaScript</openType>
|
<protected>false</protected>
|
<url>{!RequireScript("/soap/ajax/51.0/connection.js")}
|
{!RequireScript("/soap/ajax/51.0/apex.js")}
|
{!RequireScript("/resource/CommonUtilJs")}
|
//2021-10-21 gwy 版本更改为51.0
|
var foo = function() {
|
//2021-07-28 mzy update
|
//判断是否有生成报告一览
|
var IsHasEventC = '{!Event.EventC_ID__c}'==''?true:false;
|
//2021-07-28 mzy update
|
//2021-10-08 mzy 任务管理改善 已完成的任务,事件页面和日报页面不允许修改 start
|
var TaskCount = new Array();
|
TaskCount = sforce.connection.query("select id,taskStatus__c,taskDifferent__c from task__c where id = '{!Event.Task_ID__c }'");
|
if(TaskCount.size >0&&TaskCount.records.taskDifferent__c == '上级分配任务'){
|
alert('上级分配的任务不能取消');
|
}else if(TaskCount.size >0&&TaskCount.records.taskStatus__c == '03 完成'){
|
alert('已完成的任务不能修改');
|
}else{
|
if({!TODAY() > DATEVALUE( Event.StartDateTime) } ||(!IsHasEventC)&&{!TODAY() =
|
DATEVALUE( Event.StartDateTime)}){
|
alert('不允许修改今天及以前的事件');
|
}else if({!!ISBLANK( TEXT(Event.EventStatus__c) )} &&
|
{!TEXT(Event.EventStatus__c) != '02 接受'} ){
|
alert('不允许修改本事件');
|
}else{
|
url= "/apex/EventHandle?Id={!Event.Id}&isEventCancel=true";
|
window.open(url);
|
}
|
}
|
//2021-10-08 mzy 任务管理改善 已完成的任务,事件页面和日报页面不允许修改 end
|
}
|
foo();</url>
|
</webLinks>
|
<webLinks>
|
<fullName>EventDelay</fullName>
|
<availability>online</availability>
|
<description>//2021-07-28 mzy update 今天的事件 如果已经生成报告一览,则不允许进行取消和延期操作
|
//2021-10-08 mzy 任务管理改善 已完成的任务,事件页面和日报页面不允许修改
|
//2021-10-08 mzy 任务管理改善 上级分配的任务,事件页面和日报页面不允许修改</description>
|
<displayType>button</displayType>
|
<linkType>javascript</linkType>
|
<masterLabel>延期</masterLabel>
|
<openType>onClickJavaScript</openType>
|
<protected>false</protected>
|
<url>{!RequireScript("/soap/ajax/51.0/connection.js")}
|
{!RequireScript("/soap/ajax/51.0/apex.js")}
|
{!RequireScript("/resource/CommonUtilJs")}
|
//2021-10-21 gwy 版本更改为51.0
|
var foo = function() {
|
//2021-07-28 mzy update
|
//判断是否有生成报告一览
|
var IsHasEventC = '{!Event.EventC_ID__c}'==''?true:false;
|
//2021-07-28 mzy update
|
//2021-10-08 mzy 任务管理改善 已完成的任务/上级分配的任务,事件页面和日报页面不允许修改 start
|
var TaskCount = new Array();
|
TaskCount = sforce.connection.query("select id,taskStatus__c,taskDifferent__c from task__c where id = '{!Event.Task_ID__c }'");
|
if(TaskCount.size >0&&TaskCount.records.taskDifferent__c == '上级分配任务'){
|
alert('上级分配的任务不能延期');
|
}else if(TaskCount.size >0&&TaskCount.records.taskStatus__c == '03 完成'){
|
alert('已完成的任务不能修改');
|
}else{
|
if({!TODAY() > DATEVALUE( Event.StartDateTime) } ||(!IsHasEventC)&&{!TODAY() =
|
DATEVALUE( Event.StartDateTime)}){
|
alert('不允许修改今天及以前的事件');
|
}else if({!!ISBLANK( TEXT(Event.EventStatus__c) )} &&
|
{!TEXT(Event.EventStatus__c) != '02 接受'} ){
|
alert('不允许修改本事件');
|
}else{
|
url= "/apex/EventHandle?Id={!Event.Id}&isEventDelay=true";
|
window.open(url);
|
}
|
}
|
//2021-10-08 mzy 任务管理改善 已完成的任务/上级分配的任务,事件页面和日报页面不允许修改 end
|
}
|
foo();</url>
|
</webLinks>
|
<webLinks>
|
<fullName>NewEvent2</fullName>
|
<availability>online</availability>
|
<description>//2021-08-06 mzy SWAG-C5L4JK add</description>
|
<displayType>button</displayType>
|
<linkType>javascript</linkType>
|
<masterLabel>新建事件</masterLabel>
|
<openType>onClickJavaScript</openType>
|
<protected>false</protected>
|
<url>var url = '/apex/SimpleEventRegister';
|
|
window.open(url,'_blank');</url>
|
</webLinks>
|
</CustomObject>
|