From 62f39cad514e0f32bc1cc1d0a65f4c5990a46afc Mon Sep 17 00:00:00 2001 From: Kilian Wirl Date: Tue, 21 Apr 2026 14:38:55 +0200 Subject: [PATCH] diverses --- AA-Forms/FormListe.Designer.cs | 34 +++++++---------- AA-Forms/FormListe.cs | 53 +++++++++++++++++--------- AA-Forms/FormNeuerAuftrag.cs | 9 +++-- App.config | 2 +- Properties/AssemblyInfo.cs | 4 +- SetupVerwaltung/SetupVerwaltung.vdproj | 6 +-- Verwaltung_ReadMe.txt | 4 +- 7 files changed, 61 insertions(+), 51 deletions(-) diff --git a/AA-Forms/FormListe.Designer.cs b/AA-Forms/FormListe.Designer.cs index 4330710..5036f1c 100644 --- a/AA-Forms/FormListe.Designer.cs +++ b/AA-Forms/FormListe.Designer.cs @@ -59,11 +59,10 @@ namespace Deckungsbeitrag this.listViewKunde.HideSelection = false; this.listViewKunde.HotTracking = true; this.listViewKunde.HoverSelection = true; - this.listViewKunde.Location = new System.Drawing.Point(9, 44); - this.listViewKunde.Margin = new System.Windows.Forms.Padding(2); + this.listViewKunde.Location = new System.Drawing.Point(14, 68); this.listViewKunde.MultiSelect = false; this.listViewKunde.Name = "listViewKunde"; - this.listViewKunde.Size = new System.Drawing.Size(396, 466); + this.listViewKunde.Size = new System.Drawing.Size(592, 715); this.listViewKunde.TabIndex = 1; this.listViewKunde.UseCompatibleStateImageBehavior = false; this.listViewKunde.View = System.Windows.Forms.View.Details; @@ -91,13 +90,11 @@ namespace Deckungsbeitrag // this.textBoxKunde.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.textBoxKunde.ForeColor = System.Drawing.Color.Silver; - this.textBoxKunde.Location = new System.Drawing.Point(9, 13); - this.textBoxKunde.Margin = new System.Windows.Forms.Padding(2); + this.textBoxKunde.Location = new System.Drawing.Point(14, 20); this.textBoxKunde.Name = "textBoxKunde"; - this.textBoxKunde.Size = new System.Drawing.Size(120, 26); + this.textBoxKunde.Size = new System.Drawing.Size(178, 35); this.textBoxKunde.TabIndex = 0; this.textBoxKunde.Text = "Hier eingeben"; - this.textBoxKunde.TextChanged += new System.EventHandler(this.TextBoxKunde_TextChanged); this.textBoxKunde.Enter += new System.EventHandler(this.TextBoxKunde_Enter); this.textBoxKunde.KeyDown += new System.Windows.Forms.KeyEventHandler(this.ListViewKunde_KeyDown); this.textBoxKunde.Leave += new System.EventHandler(this.TextBoxKunde_Leave); @@ -106,9 +103,10 @@ namespace Deckungsbeitrag // this.label1.AutoSize = true; this.label1.ForeColor = System.Drawing.Color.White; - this.label1.Location = new System.Drawing.Point(138, 14); + this.label1.Location = new System.Drawing.Point(207, 22); + this.label1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(248, 26); + this.label1.Size = new System.Drawing.Size(369, 40); this.label1.TabIndex = 2; this.label1.Text = "KundeNr. oder Name eingeben.\r\nKunde nicht vorhanden? Starte die Eingabe mit (?)."; // @@ -120,10 +118,9 @@ namespace Deckungsbeitrag this.buttonOK.FlatAppearance.BorderSize = 0; this.buttonOK.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.buttonOK.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.buttonOK.Location = new System.Drawing.Point(63, 69); - this.buttonOK.Margin = new System.Windows.Forms.Padding(2); + this.buttonOK.Location = new System.Drawing.Point(94, 106); this.buttonOK.Name = "buttonOK"; - this.buttonOK.Size = new System.Drawing.Size(286, 41); + this.buttonOK.Size = new System.Drawing.Size(429, 63); this.buttonOK.TabIndex = 15; this.buttonOK.Text = "Kunde übernehmen"; this.buttonOK.UseVisualStyleBackColor = false; @@ -137,10 +134,9 @@ namespace Deckungsbeitrag this.buttonNeuerAuftrag.FlatAppearance.BorderSize = 0; this.buttonNeuerAuftrag.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.buttonNeuerAuftrag.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.buttonNeuerAuftrag.Location = new System.Drawing.Point(120, 467); - this.buttonNeuerAuftrag.Margin = new System.Windows.Forms.Padding(2); + this.buttonNeuerAuftrag.Location = new System.Drawing.Point(180, 718); this.buttonNeuerAuftrag.Name = "buttonNeuerAuftrag"; - this.buttonNeuerAuftrag.Size = new System.Drawing.Size(167, 34); + this.buttonNeuerAuftrag.Size = new System.Drawing.Size(250, 52); this.buttonNeuerAuftrag.TabIndex = 16; this.buttonNeuerAuftrag.Text = "Neuer Auftrag"; this.buttonNeuerAuftrag.UseVisualStyleBackColor = false; @@ -148,10 +144,10 @@ namespace Deckungsbeitrag // // FormListe // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 20F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(1)))), ((int)(((byte)(53)))), ((int)(((byte)(101))))); - this.ClientSize = new System.Drawing.Size(413, 521); + this.ClientSize = new System.Drawing.Size(620, 802); this.Controls.Add(this.buttonNeuerAuftrag); this.Controls.Add(this.buttonOK); this.Controls.Add(this.label1); @@ -159,15 +155,13 @@ namespace Deckungsbeitrag this.Controls.Add(this.listViewKunde); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); - this.Margin = new System.Windows.Forms.Padding(2); this.MaximizeBox = false; this.MinimizeBox = false; - this.MinimumSize = new System.Drawing.Size(429, 39); + this.MinimumSize = new System.Drawing.Size(632, 56); this.Name = "FormListe"; this.ShowInTaskbar = false; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "LISTE"; - this.TopMost = true; this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FormListe_FormClosing); this.Load += new System.EventHandler(this.FormListe_Load); this.Shown += new System.EventHandler(this.FormListe_Shown); diff --git a/AA-Forms/FormListe.cs b/AA-Forms/FormListe.cs index 054b69b..342cc36 100644 --- a/AA-Forms/FormListe.cs +++ b/AA-Forms/FormListe.cs @@ -74,11 +74,11 @@ namespace Deckungsbeitrag private void FormListe_Load(object sender, EventArgs e) { // Timer für Wartezeit bis TextChanged eintritt. - timer = new Timer - { - Interval = 700 // 0,7 Sekunden - }; - timer.Tick += Timer_Tick; + //timer = new Timer + //{ + // Interval = 2000 // 0,7 Sekunden + //}; + //timer.Tick += Timer_Tick; this.buttonOK.Visible = this.buttonOK.Enabled = false; @@ -468,21 +468,36 @@ namespace Deckungsbeitrag } private void TextBoxKunde_Leave(object sender, EventArgs e) { + if (string.IsNullOrEmpty(textBoxKunde.Text)) { return; } - // Alle gestarteten Instanzen von TabTip.exe (Touch Tastatur) schließen - foreach (var process in Process.GetProcessesByName("TabTip")) - { - try - { - process.Close(); - } - catch (Exception es) - { - // Fehlerbehandlung falls Prozess nicht beendet werden kann - MessageBox.Show($"Fehler beim Schließen: " + es.Message); - } - } - } + // Wenn kein Fragezeichen am Anfang wird Kundenliste erstellt. + if (!textBoxKunde.Text.StartsWith("?")) + { + string text; + if (textBoxKunde.Text.StartsWith("http")) + { + int index = 1; + index += textBoxKunde.Text.IndexOf("=", index); + int i = textBoxKunde.Text.IndexOf("%", index); + text = textBoxKunde.Text.Substring(index, i - index); + textBoxKunde.Text = text; + } + else text = this.textBoxKunde.Text; + + this.Kundenliste = Kunde.GetTmpList(text, this.kndService); + ListViewKunde_Load(); + return; + } + + // Wenn Fragezeichen am Anfang wird OK-Button aktiviert. + if (textBoxKunde.Text.StartsWith("?")) + { + this.listViewKunde.Visible = this.listViewKunde.Enabled = false; + this.buttonOK.Visible = this.buttonOK.Enabled = true; + this.Height = this.buttonOK.Bottom + 100; + } + + } private void ButtonNeuerAuftrag_Click(object sender, EventArgs e) { if (meldung.GetFrage(this, "Konntest du den gewünschten Auftrag nicht finden und möchtest diesen neu erstellen?", false) == DialogResult.Yes) diff --git a/AA-Forms/FormNeuerAuftrag.cs b/AA-Forms/FormNeuerAuftrag.cs index 7c473d8..1b83273 100644 --- a/AA-Forms/FormNeuerAuftrag.cs +++ b/AA-Forms/FormNeuerAuftrag.cs @@ -177,7 +177,7 @@ namespace Deckungsbeitrag this.kunde = Funktionen.Open_List(kndService); this.textBoxKndNr.Text = kunde.KundeNummer; - this.textBoxKundeName.Text = this.kunde.Suchtext ?? this.kunde.KundeName; + this.kundeName = this.textBoxKundeName.Text = this.kunde.Suchtext ?? this.kunde.KundeName; this.textBoxKundeName.Enabled = false; this.textBoxKndNr.Enabled = false; @@ -250,7 +250,8 @@ namespace Deckungsbeitrag { List benutzerliste = Benutzer.GetFahrerList(); this.comboBoxFahrer.DataSource = benutzerliste; - if (string.IsNullOrWhiteSpace(tour)) this.comboBoxFahrer.DisplayMember = "BenutzerName"; + Saison saison = Saison.GetAktivSaison(); + if (saison.Bezeichnung == "Zwischensaison") this.comboBoxFahrer.DisplayMember = "BenutzerName"; else this.comboBoxFahrer.DisplayMember = "Tour"; } @@ -424,7 +425,7 @@ namespace Deckungsbeitrag this.Auftrag = Aktualisieren(kunde); // Wenn Fahrer den Auftrag speichert - if (this.benutzer.Rolle == BenutzerRolle.Fahrer) { FahrerAuftraegeSpeichern(this.Auftrag); return; } + if (this.benutzer.Rolle == BenutzerRolle.Fahrer) { FahrerAuftraegeSpeichern(this.Auftrag); } // Wenn Expedit/Waschstrasse/Verwaltung/Admin den Auftrag speichert switch ((AuftragTyp)comboBoxTyp.SelectedItem) @@ -562,7 +563,7 @@ namespace Deckungsbeitrag Priority = Funktionen.GetPriority((Benutzer)this.comboBoxFahrer.SelectedItem), Status = this.benutzer.Rolle == BenutzerRolle.Fahrer ? AuftragStatus.Abgeholt : AuftragStatus.Herrichten, Rhythmus = this.comboBoxRhythmus.Enabled ? (RegRhythmen)this.comboBoxRhythmus.SelectedItem : RegRhythmen.Unbekannt, - TourID = this.Auftrag == null ? GetTour(arbeiterID, liefertag) : this.Auftrag.TourID, + //TourID = this.Auftrag == null ? GetTour(arbeiterID, liefertag) : this.Auftrag.TourID, ZusatzInfo = zusatz, }; diff --git a/App.config b/App.config index a3ca776..6484ec4 100644 --- a/App.config +++ b/App.config @@ -6,7 +6,7 @@ - + diff --git a/Properties/AssemblyInfo.cs b/Properties/AssemblyInfo.cs index b9295b3..ebd0a2f 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.9.2")] -[assembly: AssemblyFileVersion("1.0.9.2")] +[assembly: AssemblyVersion("1.0.9.4")] +[assembly: AssemblyFileVersion("1.0.9.4")] diff --git a/SetupVerwaltung/SetupVerwaltung.vdproj b/SetupVerwaltung/SetupVerwaltung.vdproj index 5309590..8f85d91 100644 --- a/SetupVerwaltung/SetupVerwaltung.vdproj +++ b/SetupVerwaltung/SetupVerwaltung.vdproj @@ -1647,15 +1647,15 @@ { "Name" = "8:Microsoft Visual Studio" "ProductName" = "8:SetupVerwaltung" - "ProductCode" = "8:{3E444BEA-FE50-40E6-BEC6-CA8F03207AFF}" - "PackageCode" = "8:{D9AF1656-8C9C-464E-BDCF-1F6EDF53DDDC}" + "ProductCode" = "8:{7FE3B32D-864D-4355-8B88-E081CA878C3C}" + "PackageCode" = "8:{DB4C46FC-7C24-4855-B5C9-BDFC88B1186F}" "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.92" + "ProductVersion" = "8:1.0.94" "Manufacturer" = "8:Kilian Wirl GmbH" "ARPHELPTELEPHONE" = "8:" "ARPHELPLINK" = "8:" diff --git a/Verwaltung_ReadMe.txt b/Verwaltung_ReadMe.txt index 87b9bfb..e65f760 100644 --- a/Verwaltung_ReadMe.txt +++ b/Verwaltung_ReadMe.txt @@ -1,5 +1,5 @@ ===================================== -NEUIGKEITEN - Version 1.0.9.2 +NEUIGKEITEN - Version 1.0.9.4 ===================================== Build-Info: @@ -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 09:01 +Installation: 21.04.2026 14:34 =====================================