This commit is contained in:
Kilian Wirl 2026-04-21 14:38:55 +02:00
parent e67d73edf6
commit 62f39cad51
7 changed files with 61 additions and 51 deletions

View File

@ -59,11 +59,10 @@ namespace Deckungsbeitrag
this.listViewKunde.HideSelection = false; this.listViewKunde.HideSelection = false;
this.listViewKunde.HotTracking = true; this.listViewKunde.HotTracking = true;
this.listViewKunde.HoverSelection = true; this.listViewKunde.HoverSelection = true;
this.listViewKunde.Location = new System.Drawing.Point(9, 44); this.listViewKunde.Location = new System.Drawing.Point(14, 68);
this.listViewKunde.Margin = new System.Windows.Forms.Padding(2);
this.listViewKunde.MultiSelect = false; this.listViewKunde.MultiSelect = false;
this.listViewKunde.Name = "listViewKunde"; 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.TabIndex = 1;
this.listViewKunde.UseCompatibleStateImageBehavior = false; this.listViewKunde.UseCompatibleStateImageBehavior = false;
this.listViewKunde.View = System.Windows.Forms.View.Details; 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.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.ForeColor = System.Drawing.Color.Silver;
this.textBoxKunde.Location = new System.Drawing.Point(9, 13); this.textBoxKunde.Location = new System.Drawing.Point(14, 20);
this.textBoxKunde.Margin = new System.Windows.Forms.Padding(2);
this.textBoxKunde.Name = "textBoxKunde"; 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.TabIndex = 0;
this.textBoxKunde.Text = "Hier eingeben"; 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.Enter += new System.EventHandler(this.TextBoxKunde_Enter);
this.textBoxKunde.KeyDown += new System.Windows.Forms.KeyEventHandler(this.ListViewKunde_KeyDown); this.textBoxKunde.KeyDown += new System.Windows.Forms.KeyEventHandler(this.ListViewKunde_KeyDown);
this.textBoxKunde.Leave += new System.EventHandler(this.TextBoxKunde_Leave); this.textBoxKunde.Leave += new System.EventHandler(this.TextBoxKunde_Leave);
@ -106,9 +103,10 @@ namespace Deckungsbeitrag
// //
this.label1.AutoSize = true; this.label1.AutoSize = true;
this.label1.ForeColor = System.Drawing.Color.White; 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.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.TabIndex = 2;
this.label1.Text = "KundeNr. oder Name eingeben.\r\nKunde nicht vorhanden? Starte die Eingabe mit (?)."; 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.FlatAppearance.BorderSize = 0;
this.buttonOK.FlatStyle = System.Windows.Forms.FlatStyle.Flat; 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.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.Location = new System.Drawing.Point(94, 106);
this.buttonOK.Margin = new System.Windows.Forms.Padding(2);
this.buttonOK.Name = "buttonOK"; 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.TabIndex = 15;
this.buttonOK.Text = "Kunde übernehmen"; this.buttonOK.Text = "Kunde übernehmen";
this.buttonOK.UseVisualStyleBackColor = false; this.buttonOK.UseVisualStyleBackColor = false;
@ -137,10 +134,9 @@ namespace Deckungsbeitrag
this.buttonNeuerAuftrag.FlatAppearance.BorderSize = 0; this.buttonNeuerAuftrag.FlatAppearance.BorderSize = 0;
this.buttonNeuerAuftrag.FlatStyle = System.Windows.Forms.FlatStyle.Flat; 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.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.Location = new System.Drawing.Point(180, 718);
this.buttonNeuerAuftrag.Margin = new System.Windows.Forms.Padding(2);
this.buttonNeuerAuftrag.Name = "buttonNeuerAuftrag"; 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.TabIndex = 16;
this.buttonNeuerAuftrag.Text = "Neuer Auftrag"; this.buttonNeuerAuftrag.Text = "Neuer Auftrag";
this.buttonNeuerAuftrag.UseVisualStyleBackColor = false; this.buttonNeuerAuftrag.UseVisualStyleBackColor = false;
@ -148,10 +144,10 @@ namespace Deckungsbeitrag
// //
// FormListe // 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.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(1)))), ((int)(((byte)(53)))), ((int)(((byte)(101))))); 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.buttonNeuerAuftrag);
this.Controls.Add(this.buttonOK); this.Controls.Add(this.buttonOK);
this.Controls.Add(this.label1); this.Controls.Add(this.label1);
@ -159,15 +155,13 @@ namespace Deckungsbeitrag
this.Controls.Add(this.listViewKunde); this.Controls.Add(this.listViewKunde);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.Margin = new System.Windows.Forms.Padding(2);
this.MaximizeBox = false; this.MaximizeBox = false;
this.MinimizeBox = false; this.MinimizeBox = false;
this.MinimumSize = new System.Drawing.Size(429, 39); this.MinimumSize = new System.Drawing.Size(632, 56);
this.Name = "FormListe"; this.Name = "FormListe";
this.ShowInTaskbar = false; this.ShowInTaskbar = false;
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "LISTE"; this.Text = "LISTE";
this.TopMost = true;
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FormListe_FormClosing); this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FormListe_FormClosing);
this.Load += new System.EventHandler(this.FormListe_Load); this.Load += new System.EventHandler(this.FormListe_Load);
this.Shown += new System.EventHandler(this.FormListe_Shown); this.Shown += new System.EventHandler(this.FormListe_Shown);

View File

@ -74,11 +74,11 @@ namespace Deckungsbeitrag
private void FormListe_Load(object sender, EventArgs e) private void FormListe_Load(object sender, EventArgs e)
{ {
// Timer für Wartezeit bis TextChanged eintritt. // Timer für Wartezeit bis TextChanged eintritt.
timer = new Timer //timer = new Timer
{ //{
Interval = 700 // 0,7 Sekunden // Interval = 2000 // 0,7 Sekunden
}; //};
timer.Tick += Timer_Tick; //timer.Tick += Timer_Tick;
this.buttonOK.Visible = this.buttonOK.Enabled = false; this.buttonOK.Visible = this.buttonOK.Enabled = false;
@ -468,21 +468,36 @@ namespace Deckungsbeitrag
} }
private void TextBoxKunde_Leave(object sender, EventArgs e) private void TextBoxKunde_Leave(object sender, EventArgs e)
{ {
if (string.IsNullOrEmpty(textBoxKunde.Text)) { return; }
// Alle gestarteten Instanzen von TabTip.exe (Touch Tastatur) schließen // Wenn kein Fragezeichen am Anfang wird Kundenliste erstellt.
foreach (var process in Process.GetProcessesByName("TabTip")) if (!textBoxKunde.Text.StartsWith("?"))
{ {
try string text;
{ if (textBoxKunde.Text.StartsWith("http"))
process.Close(); {
} int index = 1;
catch (Exception es) index += textBoxKunde.Text.IndexOf("=", index);
{ int i = textBoxKunde.Text.IndexOf("%", index);
// Fehlerbehandlung falls Prozess nicht beendet werden kann text = textBoxKunde.Text.Substring(index, i - index);
MessageBox.Show($"Fehler beim Schließen: " + es.Message); 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) 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) if (meldung.GetFrage(this, "Konntest du den gewünschten Auftrag nicht finden und möchtest diesen neu erstellen?", false) == DialogResult.Yes)

View File

@ -177,7 +177,7 @@ namespace Deckungsbeitrag
this.kunde = Funktionen.Open_List(kndService); this.kunde = Funktionen.Open_List(kndService);
this.textBoxKndNr.Text = kunde.KundeNummer; 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.textBoxKundeName.Enabled = false;
this.textBoxKndNr.Enabled = false; this.textBoxKndNr.Enabled = false;
@ -250,7 +250,8 @@ namespace Deckungsbeitrag
{ {
List<Benutzer> benutzerliste = Benutzer.GetFahrerList(); List<Benutzer> benutzerliste = Benutzer.GetFahrerList();
this.comboBoxFahrer.DataSource = benutzerliste; 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"; else this.comboBoxFahrer.DisplayMember = "Tour";
} }
@ -424,7 +425,7 @@ namespace Deckungsbeitrag
this.Auftrag = Aktualisieren(kunde); this.Auftrag = Aktualisieren(kunde);
// Wenn Fahrer den Auftrag speichert // 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 // Wenn Expedit/Waschstrasse/Verwaltung/Admin den Auftrag speichert
switch ((AuftragTyp)comboBoxTyp.SelectedItem) switch ((AuftragTyp)comboBoxTyp.SelectedItem)
@ -562,7 +563,7 @@ namespace Deckungsbeitrag
Priority = Funktionen.GetPriority((Benutzer)this.comboBoxFahrer.SelectedItem), Priority = Funktionen.GetPriority((Benutzer)this.comboBoxFahrer.SelectedItem),
Status = this.benutzer.Rolle == BenutzerRolle.Fahrer ? AuftragStatus.Abgeholt : AuftragStatus.Herrichten, Status = this.benutzer.Rolle == BenutzerRolle.Fahrer ? AuftragStatus.Abgeholt : AuftragStatus.Herrichten,
Rhythmus = this.comboBoxRhythmus.Enabled ? (RegRhythmen)this.comboBoxRhythmus.SelectedItem : RegRhythmen.Unbekannt, 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, ZusatzInfo = zusatz,
}; };

View File

@ -6,7 +6,7 @@
</sectionGroup> </sectionGroup>
</configSections> </configSections>
<appSettings> <appSettings>
<add key="ConnectionString" value="user id=postgres;password=Ki985941Wi;host=10.10.10.1;port=5432;database=Wirl_DB_17012023;Timeout=15" /> <add key="ConnectionString" value="user id=postgres;password=Ki985941Wi;host=10.10.10.1;port=5432;database=Test_Wirl;Timeout=15" />
<add key="SortimentPfad" value="N:\\TECHNIK\\Software\\Wirl-Verwaltung\\Listen\\Kundensortiment.txt" /> <add key="SortimentPfad" value="N:\\TECHNIK\\Software\\Wirl-Verwaltung\\Listen\\Kundensortiment.txt" />
<add key="InventurPfad" value="N:\BÜRO\KUNDEN\INVENTUREN\Verwaltung" /> <add key="InventurPfad" value="N:\BÜRO\KUNDEN\INVENTUREN\Verwaltung" />
<add key="BildPfad" value="C:\\Users\\KilianWirl\\OneDrive - gehgassi GmbH\\Wäscherei Wirl\\Programme\\Deckungsbeitrag\\Deckungsbeitrag\\Star.png" /> <add key="BildPfad" value="C:\\Users\\KilianWirl\\OneDrive - gehgassi GmbH\\Wäscherei Wirl\\Programme\\Deckungsbeitrag\\Deckungsbeitrag\\Star.png" />

View File

@ -31,5 +31,5 @@ using System.Runtime.InteropServices;
// //
// Sie können alle Werte angeben oder Standardwerte für die Build- und Revisionsnummern verwenden, // Sie können alle Werte angeben oder Standardwerte für die Build- und Revisionsnummern verwenden,
// indem Sie "*" wie unten gezeigt eingeben: // indem Sie "*" wie unten gezeigt eingeben:
[assembly: AssemblyVersion("1.0.9.2")] [assembly: AssemblyVersion("1.0.9.4")]
[assembly: AssemblyFileVersion("1.0.9.2")] [assembly: AssemblyFileVersion("1.0.9.4")]

View File

@ -1647,15 +1647,15 @@
{ {
"Name" = "8:Microsoft Visual Studio" "Name" = "8:Microsoft Visual Studio"
"ProductName" = "8:SetupVerwaltung" "ProductName" = "8:SetupVerwaltung"
"ProductCode" = "8:{3E444BEA-FE50-40E6-BEC6-CA8F03207AFF}" "ProductCode" = "8:{7FE3B32D-864D-4355-8B88-E081CA878C3C}"
"PackageCode" = "8:{D9AF1656-8C9C-464E-BDCF-1F6EDF53DDDC}" "PackageCode" = "8:{DB4C46FC-7C24-4855-B5C9-BDFC88B1186F}"
"UpgradeCode" = "8:{2DC7CE56-8D1C-42EB-B326-2E887EBB7F5A}" "UpgradeCode" = "8:{2DC7CE56-8D1C-42EB-B326-2E887EBB7F5A}"
"AspNetVersion" = "8:" "AspNetVersion" = "8:"
"RestartWWWService" = "11:FALSE" "RestartWWWService" = "11:FALSE"
"RemovePreviousVersions" = "11:TRUE" "RemovePreviousVersions" = "11:TRUE"
"DetectNewerInstalledVersion" = "11:TRUE" "DetectNewerInstalledVersion" = "11:TRUE"
"InstallAllUsers" = "11:FALSE" "InstallAllUsers" = "11:FALSE"
"ProductVersion" = "8:1.0.92" "ProductVersion" = "8:1.0.94"
"Manufacturer" = "8:Kilian Wirl GmbH" "Manufacturer" = "8:Kilian Wirl GmbH"
"ARPHELPTELEPHONE" = "8:" "ARPHELPTELEPHONE" = "8:"
"ARPHELPLINK" = "8:" "ARPHELPLINK" = "8:"

View File

@ -1,5 +1,5 @@
===================================== =====================================
NEUIGKEITEN - Version 1.0.9.2 NEUIGKEITEN - Version 1.0.9.4
===================================== =====================================
Build-Info: 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] - 🔄 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 09:01 Installation: 21.04.2026 14:34
===================================== =====================================