32 lines
1.1 KiB
C#
32 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;
|
|
using BS.Shared.DataContracts;
|
|
using BS.Shared.DataContracts.Compact;
|
|
|
|
namespace PassgenauUG.Service
|
|
{
|
|
class CustomHomeContentGenerator : HomeContentGenerator
|
|
{
|
|
public override List<CompactSupportConceptDC> GetExpiringSupportConcepts(long? employeeOid, DateTime expiredUntil)
|
|
{
|
|
return base.GetExpiringSupportConcepts(null, expiredUntil);
|
|
}
|
|
|
|
public override List<CompactSupportConceptDC> GetSupportConceptsWithConferenceDate(long? employeeOid, DateTime conferenceDateUntil)
|
|
{
|
|
var all = DAOFactory.GenericDAO.GetAllActive<SupportConcept>();
|
|
|
|
return MapperFactory.CompactSupportConceptDC_SupportConcept.MapToNewDCs(all.Where(
|
|
s => s.ConferenceDate.HasValue && s.ConferenceDate.Value >= DateTime.Now.Date &&
|
|
s.ConferenceDate.Value <= conferenceDateUntil));
|
|
}
|
|
}
|
|
}
|