38 lines
1.1 KiB
C#
38 lines
1.1 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using BeWo.Data.Access;
|
|
using BeWo.Data.Entities;
|
|
using BeWo.Service.DCEntityMapper;
|
|
using BeWo.Service.Plugins;
|
|
using BS.Shared.DataContracts;
|
|
using BS.Shared.DataContracts.Compact;
|
|
|
|
namespace SBBMainzReports
|
|
{
|
|
class CustomHomeContentGenerator : HomeContentGenerator
|
|
{
|
|
public override List<TaskDC> GetTasksForEmployee(long employeeOid)
|
|
{
|
|
var tasks = base.GetTasksForEmployee(employeeOid);
|
|
|
|
List<TaskDC> result = new List<TaskDC>();
|
|
|
|
foreach (var taskDc in tasks)
|
|
{
|
|
if (taskDc.DueDate.HasValue && taskDc.DueDate <= DateTime.Today.AddMonths(2))
|
|
{
|
|
result.Add(taskDc);
|
|
}
|
|
}
|
|
return result;
|
|
}
|
|
|
|
public override List<CompactSupportConceptDC> GetSupportConceptsWithConferenceDate(long? employeeOid, DateTime conferenceDateUntil)
|
|
{
|
|
return base.GetSupportConceptsWithConferenceDate(employeeOid, DateTime.Now.AddMonths(3));
|
|
}
|
|
}
|
|
}
|