Bugs bei der Rechtebeachtung im Auswertungsmodul behoben
This commit is contained in:
2023-05-17 13:58:10 +02:00
parent d6b1a9cb00
commit 8f4235cb3c
11 changed files with 254 additions and 197 deletions

View File

@@ -2365,5 +2365,29 @@ namespace BeWo.Service.ServiceImplementations
throw Utils.CreateBeWoFaultException(ex);
}
}
public List<CompactTeamDC> LoadCompactTeamsByOid(List<long> teamOids)
{
try
{
return teamOids is null ? new List<CompactTeamDC>() : MapperFactory.CompactTeamDC_Team.MapToNewDCs(DAOFactory.GenericDAO.GetActiveByIDs<Team>(teamOids));
}
catch(Exception ex)
{
throw Utils.CreateBeWoFaultException(ex);
}
}
public List<CompactTeamDC> FindLeadingCompactTeamsOfEmployee(long employeeOid)
{
try
{
return MapperFactory.CompactTeamDC_Team.MapToNewDCs(DAOFactory.SearchDAO.FindLeadingTeams(employeeOid));
}
catch(Exception ex)
{
throw Utils.CreateBeWoFaultException(ex);
}
}
}
}