From 8726d521250ebd4dc4ad1ae6a8812e8854bab7e2 Mon Sep 17 00:00:00 2001 From: Kojo Date: Fri, 30 Jan 2026 19:29:48 +0100 Subject: [PATCH] =?UTF-8?q?AuswegHeikePuetz:=20Im=20Bericht=20f=C3=BCr=20A?= =?UTF-8?q?rbeitstage=20mit=20mehr=20als=208h=20Mitarbeiter=20alphabetisch?= =?UTF-8?q?=20sortieren?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ReportImp/AuswegHeikePuetz/CustomReportCreator.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ReportImp/AuswegHeikePuetz/CustomReportCreator.cs b/ReportImp/AuswegHeikePuetz/CustomReportCreator.cs index 5aeeb540f..caccd8a1f 100644 --- a/ReportImp/AuswegHeikePuetz/CustomReportCreator.cs +++ b/ReportImp/AuswegHeikePuetz/CustomReportCreator.cs @@ -3,6 +3,7 @@ using System.Collections.Generic; using System.Data; using System.Globalization; using System.IO; +using System.Linq; using BeWo.Data.Access; using BeWo.Data.Entities; using BeWo.Report; @@ -60,7 +61,8 @@ namespace Ausweg Team team = DAOFactory.GenericDAO.GetByID((long)teamOid); if (team != null) { - foreach (var employee in team.MemberList) + var teamEmployees = team.MemberList.OrderBy(e => e.Person.LastNameFirstName).ToList(); + foreach (var employee in teamEmployees) { bericht = CreateAndAddArbeitstageMehrAls8hBericht((long)employee.Oid, startDate, endDate, bericht); } @@ -69,8 +71,7 @@ namespace Ausweg else { // kein Mitarbeiter oder Team ausgewaehlt, Bericht wird fuer alle Mitarbeiter erstellt - var allEmployees = DAOFactory.GenericDAO.GetAllActiveAndArchived(); - + var allEmployees = DAOFactory.GenericDAO.GetAllActiveAndArchived().OrderBy(e => e.Person.LastNameFirstName).ToList(); foreach (var employee in allEmployees) { bericht = CreateAndAddArbeitstageMehrAls8hBericht((long)employee.Oid, startDate, endDate, bericht);