Files
BeWoPlaner/ReportImp/SBBMainzReports/CustomHomeContentGenerator.cs
Christian b76d6ea7d1 Merge branch 'master' of ssh://float.beyondsoft.de/git/beyondSoft/BeWo
# Conflicts:
#	Data/Access/SearchDAO.cs
2018-03-02 16:24:55 +01:00

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));
}
}
}