From 61d55f2e1e75ced00be546bfc98642d8f3f0ac28 Mon Sep 17 00:00:00 2001 From: Kilian Wirl Date: Wed, 22 Apr 2026 14:07:50 +0200 Subject: [PATCH] =?UTF-8?q?Liefertag=20Berechnung=20ver=C3=A4ndert.=20Form?= =?UTF-8?q?ShowUserControl.Closing=20ge=C3=A4nder.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AA-Forms/FormShowUserControl.cs | 3 ++- AA-Klassen/Funktionen.cs | 4 ++-- Verwaltung_ReadMe.txt | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/AA-Forms/FormShowUserControl.cs b/AA-Forms/FormShowUserControl.cs index bcdc3a4..13af4f2 100644 --- a/AA-Forms/FormShowUserControl.cs +++ b/AA-Forms/FormShowUserControl.cs @@ -98,11 +98,12 @@ namespace Deckungsbeitrag.AA_Forms private void FormShowUserControl_FormClosing(object sender, FormClosingEventArgs e) { var form = sender as Form; - if (this.benutzer.Rolle != BenutzerRolle.Expedit) + if (form.ActiveControl.Name == "UCTourenplan" & form.DialogResult == DialogResult.OK) { UCTourenplan uc = (UCTourenplan)form.Controls[0]; lieferDaten = uc.lieferDaten; } + } } } diff --git a/AA-Klassen/Funktionen.cs b/AA-Klassen/Funktionen.cs index 4f7f781..c139265 100644 --- a/AA-Klassen/Funktionen.cs +++ b/AA-Klassen/Funktionen.cs @@ -1460,12 +1460,12 @@ namespace Deckungsbeitrag DateTime aktDatum = DateTime.Today; // Starte ab morgen und suche nächsten passenden Arbeitstag - for (int i = 2; i <= 7; i++) + for (int i = 1; i <= 7; i++) { DateTime testDatum = aktDatum.AddDays(i); DayOfWeek dow = testDatum.DayOfWeek; Liefertage liefertag; - + // Klassischer switch statement (C# 7.3 kompatibel) switch (dow) { diff --git a/Verwaltung_ReadMe.txt b/Verwaltung_ReadMe.txt index e65f760..e0e300a 100644 --- a/Verwaltung_ReadMe.txt +++ b/Verwaltung_ReadMe.txt @@ -84,5 +84,5 @@ Build-Info: - 🔄 Wenn Auftrag abgeschlossen wird muss die Containerzahl sauber addiert werden. Kundenanzahl und Containeranzahl schmutzig darf nicht erhöht werden. [Tour.cs] - 🔄 Zuweisung zu Fahrer muss geklärt werden. [Funktionen.cs] -Installation: 21.04.2026 14:34 +Installation: 22.04.2026 14:01 =====================================