From 8fe79a33f1683a28330ab5ddceec8086445c364c Mon Sep 17 00:00:00 2001 From: Kilian Wirl Date: Thu, 11 Dec 2025 14:22:10 +0100 Subject: [PATCH] =?UTF-8?q?Erledigte=20TODOs=20auf=20DONE=20ge=C3=A4ndert.?= =?UTF-8?q?=20ReadMe=20zeigt=20erledigte=20TODOs.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AA-Forms/FormAusschlager.cs | 5 +- AA-Forms/FormExpedit.cs | 6 +- AA-Forms/FormMain.cs | 6 +- AA-Klassen/Funktionen.cs | 4 +- Program.cs | 2 +- Properties/AssemblyInfo.cs | 4 +- SetupVerwaltung/SetupVerwaltung.vdproj | 32 +++++++++- UpdateVerwaltungReadMe.ps1 | 85 +++++++++++--------------- Verwaltung-ReadMe.txt | 15 ----- 9 files changed, 77 insertions(+), 82 deletions(-) delete mode 100644 Verwaltung-ReadMe.txt diff --git a/AA-Forms/FormAusschlager.cs b/AA-Forms/FormAusschlager.cs index 5123c61..c7714aa 100644 --- a/AA-Forms/FormAusschlager.cs +++ b/AA-Forms/FormAusschlager.cs @@ -308,9 +308,8 @@ namespace Deckungsbeitrag } //TODO: Wenn NeuerAuftrag gewählt wie gehts weiter? - //TODO: Bei Transport wir ein Fach mit Aktuellem Auftrag erstellt. Das Alte wird bei Transport gespeichert. - //TODO: Wenn NeuerAuftrag gewählt Fach ändern nicht vergessen. - //TODO: Eventuell einen "Nächsten Auftrag" erstellen damit im Vorraus erstellt werden kann? + //DONE: Bei Transport wir ein Fach mit Aktuellem Auftrag erstellt. Das Alte wird bei Transport gespeichert. + //DONE: Wenn NeuerAuftrag gewählt Fach ändern nicht vergessen. } } diff --git a/AA-Forms/FormExpedit.cs b/AA-Forms/FormExpedit.cs index 588a525..c17d044 100644 --- a/AA-Forms/FormExpedit.cs +++ b/AA-Forms/FormExpedit.cs @@ -79,7 +79,6 @@ namespace Deckungsbeitrag this.buttonDrucken.Enabled = this.buttonNeuerAuftrag.Enabled = this.buttonSWS_Drucken.Enabled = false; this.groupBoxEtikett.Enabled = false; - //TODO: Testen ob ausblenden der Button Column funktioniert. Benutzer-Verwaltung oder Frottee oder Flach notwendig. GetUnvisibleButtonColumn(); break; case BenutzerRolle.Fahrer: @@ -261,7 +260,6 @@ namespace Deckungsbeitrag // Alle Zeilenhöhen an Zellinhalt anpassen this.dGArtikel.AutoSizeRowsMode = DataGridViewAutoSizeRowsMode.AllCells; - //TODO: Breite der GridView festlegen. this.dGArtikel = Funktionen.DGV_Size_Anpassen(this.dGArtikel); this.dGArtikel.Width = this.Width - dGArtikel.Left; @@ -662,7 +660,6 @@ namespace Deckungsbeitrag } private void Liefertag_rB_Checked(object sender, EventArgs e) { - //TODO: OLV-Item refresh. Neuer Liefertag speichern. foreach (RadioButton radioButton in this.groupBoxEtikett.Controls.OfType()) { if (radioButton.Checked) radioButton.BackColor = Color.Yellow; @@ -778,3 +775,6 @@ namespace Deckungsbeitrag } } +//DONE: Breite der GridView festlegen. +//DONE: OLV-Item refresh. Neuer Liefertag speichern. +//DONE: Testen ob ausblenden der Button Column funktioniert. Benutzer-Verwaltung oder Frottee oder Flach notwendig. diff --git a/AA-Forms/FormMain.cs b/AA-Forms/FormMain.cs index 69662ee..3c1d664 100644 --- a/AA-Forms/FormMain.cs +++ b/AA-Forms/FormMain.cs @@ -777,7 +777,6 @@ namespace Deckungsbeitrag gb = (GroupBox)ctr.Parent; } Panel panel = (Panel)gb.Parent; - //TODO: DragDrop verbessern if (isDragging) { // Neue Position berechnen, relativ zum ursprünglichen Klickpunkt @@ -791,7 +790,6 @@ namespace Deckungsbeitrag // Position des Controls setzen newLocation = panel.PointToClient(newLocation); - //TODO: GroupBox Realtime verschieben testen. Sonst Endposition nehmen. gb.Location hier entfernen und unten einkommentieren. } } private void groupBox_MouseUp(object sender, MouseEventArgs e) @@ -807,7 +805,6 @@ namespace Deckungsbeitrag if (e.Button == MouseButtons.Left) { isDragging = false; - //TODO: GroupBox wird an Endposition verschoben. gb.Location = newLocation; } Properties.Settings.Default.Location_GroupBoxStatistik_Main = gb.Location; @@ -908,4 +905,7 @@ namespace Deckungsbeitrag } } +//DONE: DragDrop verbessern +//DONE: GroupBox Realtime verschieben testen. Sonst Endposition nehmen. gb.Location hier entfernen und unten einkommentieren. +//DONE: GroupBox wird an Endposition verschoben. diff --git a/AA-Klassen/Funktionen.cs b/AA-Klassen/Funktionen.cs index de8dab0..5def798 100644 --- a/AA-Klassen/Funktionen.cs +++ b/AA-Klassen/Funktionen.cs @@ -546,7 +546,7 @@ namespace Deckungsbeitrag } else { - //TODO: Funktionalität klären. MessageBox vor Screenauswahl? oder mit Button im Screen Kamera? + //if (meldung.HandEingabe()) this.kunde = Funktionen.Open_List(); //else this.kunde = Funktionen.Open_Kamera(videoDevices); kunde = Open_Kamera(videoDevices); @@ -1097,3 +1097,5 @@ namespace Deckungsbeitrag } } } + +//DONE: Funktionalität klären. MessageBox vor Screenauswahl? oder mit Button im Screen Kamera? diff --git a/Program.cs b/Program.cs index 86a3aa6..32614e4 100644 --- a/Program.cs +++ b/Program.cs @@ -27,7 +27,7 @@ namespace Deckungsbeitrag Application.SetCompatibleTextRenderingDefault(false); Screen[] screens = Screen.AllScreens; - //TODO: Wenn mit Anmeldung dann if-Clause entfernen und Switch alleine verwenden. + //DONE: Für Maschinen keine Anmeldung notwendig. if (userid.StartsWith("ms") | userid.StartsWith("ps")) { if (userid.Contains("wstrasse")) Application.Run(new FormWSVerfolgung(userid)); diff --git a/Properties/AssemblyInfo.cs b/Properties/AssemblyInfo.cs index b4f34e6..fdea234 100644 --- a/Properties/AssemblyInfo.cs +++ b/Properties/AssemblyInfo.cs @@ -31,5 +31,5 @@ using System.Runtime.InteropServices; // // Sie können alle Werte angeben oder Standardwerte für die Build- und Revisionsnummern verwenden, // indem Sie "*" wie unten gezeigt eingeben: -[assembly: AssemblyVersion("1.0.2.4")] -[assembly: AssemblyFileVersion("1.0.2.4")] +[assembly: AssemblyVersion("1.0.2.6")] +[assembly: AssemblyFileVersion("1.0.2.6")] diff --git a/SetupVerwaltung/SetupVerwaltung.vdproj b/SetupVerwaltung/SetupVerwaltung.vdproj index 8bf4903..1c2c93b 100644 --- a/SetupVerwaltung/SetupVerwaltung.vdproj +++ b/SetupVerwaltung/SetupVerwaltung.vdproj @@ -381,6 +381,12 @@ } "Entry" { + "MsmKey" = "8:_D8C25AA5CDB643A797EB1D8E142E22CE" + "OwnerKey" = "8:_UNDEFINED" + "MsmSig" = "8:_UNDEFINED" + } + "Entry" + { "MsmKey" = "8:_E0CD318B00C3EBC6018E7287D1C5C964" "OwnerKey" = "8:_AD2C2F4AADC342899908C708EB4F4A72" "MsmSig" = "8:_UNDEFINED" @@ -1472,6 +1478,26 @@ "IsDependency" = "11:TRUE" "IsolateTo" = "8:" } + "{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_D8C25AA5CDB643A797EB1D8E142E22CE" + { + "SourcePath" = "8:..\\Verwaltung_ReadMe.txt" + "TargetName" = "8:Verwaltung_ReadMe.txt" + "Tag" = "8:" + "Folder" = "8:_C848DFB5E4D140A7A7F5E1F129613626" + "Condition" = "8:" + "Transitive" = "11:FALSE" + "Vital" = "11:TRUE" + "ReadOnly" = "11:FALSE" + "Hidden" = "11:FALSE" + "System" = "11:FALSE" + "Permanent" = "11:FALSE" + "SharedLegacy" = "11:FALSE" + "PackageAs" = "3:1" + "Register" = "3:1" + "Exclude" = "11:FALSE" + "IsDependency" = "11:FALSE" + "IsolateTo" = "8:" + } "{9F6F8455-1EF1-4B85-886A-4223BCC8E7F7}:_E0CD318B00C3EBC6018E7287D1C5C964" { "AssemblyRegister" = "3:1" @@ -1621,15 +1647,15 @@ { "Name" = "8:Microsoft Visual Studio" "ProductName" = "8:SetupVerwaltung" - "ProductCode" = "8:{DC10DA93-2096-4B0A-9B08-5B5DEB59A8FA}" - "PackageCode" = "8:{0A25F7B5-0F0C-4888-A20A-7CFC157873F9}" + "ProductCode" = "8:{86777761-9DC8-4CDE-916B-AF7A753E5414}" + "PackageCode" = "8:{0B8B46B4-E3DA-42A0-8E69-164483EDA243}" "UpgradeCode" = "8:{2DC7CE56-8D1C-42EB-B326-2E887EBB7F5A}" "AspNetVersion" = "8:" "RestartWWWService" = "11:FALSE" "RemovePreviousVersions" = "11:TRUE" "DetectNewerInstalledVersion" = "11:TRUE" "InstallAllUsers" = "11:FALSE" - "ProductVersion" = "8:1.0.21" + "ProductVersion" = "8:1.0.23" "Manufacturer" = "8:Kilian Wirl GmbH" "ARPHELPTELEPHONE" = "8:" "ARPHELPLINK" = "8:" diff --git a/UpdateVerwaltungReadMe.ps1 b/UpdateVerwaltungReadMe.ps1 index 1db3282..551f40d 100644 --- a/UpdateVerwaltungReadMe.ps1 +++ b/UpdateVerwaltungReadMe.ps1 @@ -1,12 +1,11 @@ -# Vollständig fehlerfrei - autonom +# UpdateVerwaltungReadMe.ps1 - FINAL mit ERLEDIGTEN TODOs + $ProjectDir = Split-Path $MyInvocation.MyCommand.Path -Parent -if (-not $ProjectDir) { $ProjectDir = (Get-Location).Path } +$readmePath = Join-Path $ProjectDir "Verwaltung_ReadMe.txt" -Write-Host "Suche ReadMe in: $ProjectDir" +Write-Host "Aktualisiere ReadMe in: $ProjectDir" -$readmePath = Join-Path $ProjectDir "Verwaltung-ReadMe.txt" - -# Datei automatisch erstellen +# ReadMe-Vorlage erstellen (falls nicht vorhanden) if (-not (Test-Path $readmePath)) { @" ===================================== @@ -14,74 +13,58 @@ NEUIGKEITEN - Version ##VERSION## ===================================== Build-Info: -- Commit-Hash: ##COMMIT## - Build-Typ: ##CUSTOM## +- Erledigte TODOs: ##TODOS## -Änderungen: -- [ ] Neue Features -- [ ] Bugfixes - -Erstellt: ##BUILD_DATE## +Installation: ##BUILD_DATE## ===================================== "@ | Out-File $readmePath -Encoding UTF8 Write-Host "✅ ReadMe-Vorlage erstellt!" } -# VERSION - * durch Buildnummer ersetzen +# 1. VERSION aus AssemblyInfo.cs $version = "1.0.0.0" $assemblyInfoPath = Join-Path $ProjectDir "Properties\AssemblyInfo.cs" if (Test-Path $assemblyInfoPath) { $assemblyContent = Get-Content $assemblyInfoPath -Raw -ErrorAction SilentlyContinue if ($assemblyContent -match 'AssemblyVersion\s*\(\s*"([^"]+)"\s*\)') { - $rawVersion = $matches[1] - # * durch Datum/Uhrzeit ersetzen - $buildNumber = (Get-Date -Format "MMdd") - $revision = (Get-Date -Format "HHmm") - $version = $rawVersion -replace '\*', $buildNumber -replace '\*', $revision - Write-Host "✓ Rohe Version: $rawVersion → Finale: $version" + $version = $matches[1] + Write-Host "✓ Version: $version" } } -# Git Commit - 100% robust -$commit = "No Git" -try { - # Einfachster Weg: git von aktuellem Ort ausführen - $gitOutput = & git rev-parse --short HEAD 2>$null - if ($LASTEXITCODE -eq 0 -and $gitOutput -and $gitOutput.Trim()) { - $commit = $gitOutput.Trim() - } else { - # Fallback: suche .git Ordner und wechsle hin - $gitDir = Join-Path $ProjectDir ".git" - if (Test-Path $gitDir) { - Push-Location $ProjectDir - $gitOutput = & git rev-parse --short HEAD 2>$null - if ($LASTEXITCODE -eq 0 -and $gitOutput -and $gitOutput.Trim()) { - $commit = $gitOutput.Trim() - } - Pop-Location - } - } -} catch { - # Noch ein Versuch mit vollständigem Pfad - $gitExe = (Get-Command git -ErrorAction SilentlyContinue).Source - if ($gitExe) { - $gitOutput = & $gitExe rev-parse --short HEAD 2>$null - if ($LASTEXITCODE -eq 0 -and $gitOutput -and $gitOutput.Trim()) { - $commit = $gitOutput.Trim() - } +# 2. ERLEDIGTE TODOs sammeln +$doneTodos = @() +$csFiles = Get-ChildItem -Path $ProjectDir -Recurse -Filter "*.cs" -ErrorAction SilentlyContinue +foreach ($file in $csFiles) { + $content = Get-Content $file.FullName -Raw -ErrorAction SilentlyContinue + # ERLEDIGTE TODOs: DONE oder [x] + $doneMatches = [regex]::Matches($content, '//\s*(?:DONE|TODO:\s*\[x\])\s*(.+?)(?=\r?\n|$)', 'IgnoreCase') + foreach ($match in $doneMatches) { + $doneText = $match.Groups[1].Value.Trim() + $doneTodos += "✅ $doneText [$($file.Name)]" } } -Write-Host "Git Commit gefunden: $commit" -$custom = "PostgreSQL optimiert - Build: Debug" +# 3. Custom-Text mit DONE-Status +if ($doneTodos.Count -gt 0) { + $custom = "Erledigte TODOs: $($doneTodos.Count)" + $todosText = ($doneTodos -join "`n") +} else { + $custom = "Keine erledigten TODOs" + $todosText = "Noch keine Aufgaben abgeschlossen" +} + $buildDate = Get-Date -Format "dd.MM.yyyy HH:mm" -# Ersetzen (FEHLERFREI) +# 4. Platzhalter ersetzen $content = Get-Content $readmePath -Raw -Encoding UTF8 -ErrorAction SilentlyContinue $content = $content -replace "##VERSION##", $version ` - -replace "##COMMIT##", $commit ` -replace "##CUSTOM##", $custom ` + -replace "##TODOS##", $todosText ` -replace "##BUILD_DATE##", $buildDate Set-Content $readmePath $content -Encoding UTF8 -Write-Host "✓ ReadMe aktualisiert: $version ($commit)" +Write-Host "✓ ReadMe aktualisiert!" +Write-Host " Version: $version" +Write-Host " Erledigte TODOs: $($doneTodos.Count)" diff --git a/Verwaltung-ReadMe.txt b/Verwaltung-ReadMe.txt deleted file mode 100644 index 0838277..0000000 --- a/Verwaltung-ReadMe.txt +++ /dev/null @@ -1,15 +0,0 @@ -===================================== -NEUIGKEITEN - Version 1.0.2.4 -===================================== - -Build-Info: -- Commit-Hash: No Git -- Build-Typ: PostgreSQL optimiert - Build: Debug - -Änderungen: -- [ ] Neue Features -- [ ] Bugfixes - -Installation: 11.12.2025 13:18 -===================================== -