Liefertag Berechnung verändert. FormShowUserControl.Closing geänder.

This commit is contained in:
Kilian Wirl 2026-04-22 14:07:50 +02:00
parent 62f39cad51
commit 61d55f2e1e
3 changed files with 5 additions and 4 deletions

View File

@ -98,11 +98,12 @@ namespace Deckungsbeitrag.AA_Forms
private void FormShowUserControl_FormClosing(object sender, FormClosingEventArgs e) private void FormShowUserControl_FormClosing(object sender, FormClosingEventArgs e)
{ {
var form = sender as Form; 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]; UCTourenplan uc = (UCTourenplan)form.Controls[0];
lieferDaten = uc.lieferDaten; lieferDaten = uc.lieferDaten;
} }
} }
} }
} }

View File

@ -1460,7 +1460,7 @@ namespace Deckungsbeitrag
DateTime aktDatum = DateTime.Today; DateTime aktDatum = DateTime.Today;
// Starte ab morgen und suche nächsten passenden Arbeitstag // 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); DateTime testDatum = aktDatum.AddDays(i);
DayOfWeek dow = testDatum.DayOfWeek; DayOfWeek dow = testDatum.DayOfWeek;

View File

@ -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] - 🔄 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] - 🔄 Zuweisung zu Fahrer muss geklärt werden. [Funktionen.cs]
Installation: 21.04.2026 14:34 Installation: 22.04.2026 14:01
===================================== =====================================