diff --git a/AA-Forms/FormAufleger.Designer.cs b/AA-Forms/FormAufleger.Designer.cs
index e085be4..40f50f4 100644
--- a/AA-Forms/FormAufleger.Designer.cs
+++ b/AA-Forms/FormAufleger.Designer.cs
@@ -80,13 +80,14 @@
this.tLPAuftrag.Dock = System.Windows.Forms.DockStyle.Fill;
this.tLPAuftrag.ForeColor = System.Drawing.Color.Black;
this.tLPAuftrag.Location = new System.Drawing.Point(0, 0);
+ this.tLPAuftrag.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.tLPAuftrag.Name = "tLPAuftrag";
this.tLPAuftrag.RowCount = 4;
- this.tLPAuftrag.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 50F));
+ this.tLPAuftrag.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 62F));
this.tLPAuftrag.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
- this.tLPAuftrag.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 50F));
- this.tLPAuftrag.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 50F));
- this.tLPAuftrag.Size = new System.Drawing.Size(1037, 605);
+ this.tLPAuftrag.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 62F));
+ this.tLPAuftrag.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 62F));
+ this.tLPAuftrag.Size = new System.Drawing.Size(1383, 745);
this.tLPAuftrag.TabIndex = 2;
//
// labelContT5
@@ -96,9 +97,10 @@
this.labelContT5.Dock = System.Windows.Forms.DockStyle.Fill;
this.labelContT5.Font = new System.Drawing.Font("Microsoft Sans Serif", 24F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.labelContT5.ForeColor = System.Drawing.Color.White;
- this.labelContT5.Location = new System.Drawing.Point(3, 505);
+ this.labelContT5.Location = new System.Drawing.Point(4, 621);
+ this.labelContT5.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.labelContT5.Name = "labelContT5";
- this.labelContT5.Size = new System.Drawing.Size(201, 50);
+ this.labelContT5.Size = new System.Drawing.Size(268, 62);
this.labelContT5.TabIndex = 24;
this.labelContT5.Tag = "FR";
this.labelContT5.Text = "0";
@@ -112,9 +114,10 @@
this.labelContT4.Dock = System.Windows.Forms.DockStyle.Fill;
this.labelContT4.Font = new System.Drawing.Font("Microsoft Sans Serif", 24F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.labelContT4.ForeColor = System.Drawing.Color.White;
- this.labelContT4.Location = new System.Drawing.Point(210, 505);
+ this.labelContT4.Location = new System.Drawing.Point(280, 621);
+ this.labelContT4.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.labelContT4.Name = "labelContT4";
- this.labelContT4.Size = new System.Drawing.Size(201, 50);
+ this.labelContT4.Size = new System.Drawing.Size(268, 62);
this.labelContT4.TabIndex = 23;
this.labelContT4.Tag = "DO";
this.labelContT4.Text = "0";
@@ -128,9 +131,10 @@
this.labelContT3.Dock = System.Windows.Forms.DockStyle.Fill;
this.labelContT3.Font = new System.Drawing.Font("Microsoft Sans Serif", 24F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.labelContT3.ForeColor = System.Drawing.Color.White;
- this.labelContT3.Location = new System.Drawing.Point(417, 505);
+ this.labelContT3.Location = new System.Drawing.Point(556, 621);
+ this.labelContT3.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.labelContT3.Name = "labelContT3";
- this.labelContT3.Size = new System.Drawing.Size(201, 50);
+ this.labelContT3.Size = new System.Drawing.Size(268, 62);
this.labelContT3.TabIndex = 22;
this.labelContT3.Tag = "MI";
this.labelContT3.Text = "0";
@@ -144,9 +148,10 @@
this.labelContT2.Dock = System.Windows.Forms.DockStyle.Fill;
this.labelContT2.Font = new System.Drawing.Font("Microsoft Sans Serif", 24F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.labelContT2.ForeColor = System.Drawing.Color.White;
- this.labelContT2.Location = new System.Drawing.Point(624, 505);
+ this.labelContT2.Location = new System.Drawing.Point(832, 621);
+ this.labelContT2.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.labelContT2.Name = "labelContT2";
- this.labelContT2.Size = new System.Drawing.Size(201, 50);
+ this.labelContT2.Size = new System.Drawing.Size(268, 62);
this.labelContT2.TabIndex = 21;
this.labelContT2.Tag = "DI";
this.labelContT2.Text = "0";
@@ -160,9 +165,10 @@
this.labelContT1.Dock = System.Windows.Forms.DockStyle.Fill;
this.labelContT1.Font = new System.Drawing.Font("Microsoft Sans Serif", 24F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.labelContT1.ForeColor = System.Drawing.Color.White;
- this.labelContT1.Location = new System.Drawing.Point(831, 505);
+ this.labelContT1.Location = new System.Drawing.Point(1108, 621);
+ this.labelContT1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.labelContT1.Name = "labelContT1";
- this.labelContT1.Size = new System.Drawing.Size(203, 50);
+ this.labelContT1.Size = new System.Drawing.Size(271, 62);
this.labelContT1.TabIndex = 20;
this.labelContT1.Tag = "MO";
this.labelContT1.Text = "0";
@@ -175,9 +181,10 @@
this.fLP_T5.AutoScroll = true;
this.fLP_T5.BackColor = System.Drawing.SystemColors.ControlLight;
this.fLP_T5.Dock = System.Windows.Forms.DockStyle.Fill;
- this.fLP_T5.Location = new System.Drawing.Point(831, 53);
+ this.fLP_T5.Location = new System.Drawing.Point(1108, 66);
+ this.fLP_T5.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.fLP_T5.Name = "fLP_T5";
- this.fLP_T5.Size = new System.Drawing.Size(203, 449);
+ this.fLP_T5.Size = new System.Drawing.Size(271, 551);
this.fLP_T5.TabIndex = 19;
this.fLP_T5.Tag = "FR";
//
@@ -187,9 +194,10 @@
this.fLP_T4.AutoScroll = true;
this.fLP_T4.BackColor = System.Drawing.SystemColors.ControlLight;
this.fLP_T4.Dock = System.Windows.Forms.DockStyle.Fill;
- this.fLP_T4.Location = new System.Drawing.Point(624, 53);
+ this.fLP_T4.Location = new System.Drawing.Point(832, 66);
+ this.fLP_T4.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.fLP_T4.Name = "fLP_T4";
- this.fLP_T4.Size = new System.Drawing.Size(201, 449);
+ this.fLP_T4.Size = new System.Drawing.Size(268, 551);
this.fLP_T4.TabIndex = 18;
this.fLP_T4.Tag = "DO";
//
@@ -199,9 +207,10 @@
this.fLP_T3.AutoScroll = true;
this.fLP_T3.BackColor = System.Drawing.SystemColors.ControlLight;
this.fLP_T3.Dock = System.Windows.Forms.DockStyle.Fill;
- this.fLP_T3.Location = new System.Drawing.Point(417, 53);
+ this.fLP_T3.Location = new System.Drawing.Point(556, 66);
+ this.fLP_T3.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.fLP_T3.Name = "fLP_T3";
- this.fLP_T3.Size = new System.Drawing.Size(201, 449);
+ this.fLP_T3.Size = new System.Drawing.Size(268, 551);
this.fLP_T3.TabIndex = 17;
this.fLP_T3.Tag = "MI";
//
@@ -211,9 +220,10 @@
this.fLP_T2.AutoScroll = true;
this.fLP_T2.BackColor = System.Drawing.SystemColors.ControlLight;
this.fLP_T2.Dock = System.Windows.Forms.DockStyle.Fill;
- this.fLP_T2.Location = new System.Drawing.Point(210, 53);
+ this.fLP_T2.Location = new System.Drawing.Point(280, 66);
+ this.fLP_T2.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.fLP_T2.Name = "fLP_T2";
- this.fLP_T2.Size = new System.Drawing.Size(201, 449);
+ this.fLP_T2.Size = new System.Drawing.Size(268, 551);
this.fLP_T2.TabIndex = 16;
this.fLP_T2.Tag = "DI";
//
@@ -224,9 +234,10 @@
this.labelT5.Dock = System.Windows.Forms.DockStyle.Fill;
this.labelT5.Font = new System.Drawing.Font("Microsoft Sans Serif", 20.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.labelT5.ForeColor = System.Drawing.Color.White;
- this.labelT5.Location = new System.Drawing.Point(831, 0);
+ this.labelT5.Location = new System.Drawing.Point(1108, 0);
+ this.labelT5.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.labelT5.Name = "labelT5";
- this.labelT5.Size = new System.Drawing.Size(203, 50);
+ this.labelT5.Size = new System.Drawing.Size(271, 62);
this.labelT5.TabIndex = 4;
this.labelT5.Text = "FR";
this.labelT5.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
@@ -238,9 +249,10 @@
this.labelT4.Dock = System.Windows.Forms.DockStyle.Fill;
this.labelT4.Font = new System.Drawing.Font("Microsoft Sans Serif", 20.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.labelT4.ForeColor = System.Drawing.Color.White;
- this.labelT4.Location = new System.Drawing.Point(624, 0);
+ this.labelT4.Location = new System.Drawing.Point(832, 0);
+ this.labelT4.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.labelT4.Name = "labelT4";
- this.labelT4.Size = new System.Drawing.Size(201, 50);
+ this.labelT4.Size = new System.Drawing.Size(268, 62);
this.labelT4.TabIndex = 3;
this.labelT4.Text = "DO";
this.labelT4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
@@ -252,9 +264,10 @@
this.labelT3.Dock = System.Windows.Forms.DockStyle.Fill;
this.labelT3.Font = new System.Drawing.Font("Microsoft Sans Serif", 20.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.labelT3.ForeColor = System.Drawing.Color.White;
- this.labelT3.Location = new System.Drawing.Point(417, 0);
+ this.labelT3.Location = new System.Drawing.Point(556, 0);
+ this.labelT3.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.labelT3.Name = "labelT3";
- this.labelT3.Size = new System.Drawing.Size(201, 50);
+ this.labelT3.Size = new System.Drawing.Size(268, 62);
this.labelT3.TabIndex = 2;
this.labelT3.Text = "MI";
this.labelT3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
@@ -266,9 +279,10 @@
this.labelT2.Dock = System.Windows.Forms.DockStyle.Fill;
this.labelT2.Font = new System.Drawing.Font("Microsoft Sans Serif", 20.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.labelT2.ForeColor = System.Drawing.Color.White;
- this.labelT2.Location = new System.Drawing.Point(210, 0);
+ this.labelT2.Location = new System.Drawing.Point(280, 0);
+ this.labelT2.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.labelT2.Name = "labelT2";
- this.labelT2.Size = new System.Drawing.Size(201, 50);
+ this.labelT2.Size = new System.Drawing.Size(268, 62);
this.labelT2.TabIndex = 1;
this.labelT2.Text = "DI";
this.labelT2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
@@ -280,9 +294,10 @@
this.labelT1.Dock = System.Windows.Forms.DockStyle.Fill;
this.labelT1.Font = new System.Drawing.Font("Microsoft Sans Serif", 20.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.labelT1.ForeColor = System.Drawing.Color.White;
- this.labelT1.Location = new System.Drawing.Point(3, 0);
+ this.labelT1.Location = new System.Drawing.Point(4, 0);
+ this.labelT1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.labelT1.Name = "labelT1";
- this.labelT1.Size = new System.Drawing.Size(201, 50);
+ this.labelT1.Size = new System.Drawing.Size(268, 62);
this.labelT1.TabIndex = 0;
this.labelT1.Text = "MO";
this.labelT1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
@@ -293,9 +308,10 @@
this.fLP_T1.AutoScroll = true;
this.fLP_T1.BackColor = System.Drawing.SystemColors.ControlLight;
this.fLP_T1.Dock = System.Windows.Forms.DockStyle.Fill;
- this.fLP_T1.Location = new System.Drawing.Point(3, 53);
+ this.fLP_T1.Location = new System.Drawing.Point(4, 66);
+ this.fLP_T1.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.fLP_T1.Name = "fLP_T1";
- this.fLP_T1.Size = new System.Drawing.Size(201, 449);
+ this.fLP_T1.Size = new System.Drawing.Size(268, 551);
this.fLP_T1.TabIndex = 15;
this.fLP_T1.Tag = "MO";
//
@@ -303,9 +319,10 @@
//
this.textBoxScan.Dock = System.Windows.Forms.DockStyle.Fill;
this.textBoxScan.Font = new System.Drawing.Font("Microsoft Sans Serif", 20.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.textBoxScan.Location = new System.Drawing.Point(3, 558);
+ this.textBoxScan.Location = new System.Drawing.Point(4, 687);
+ this.textBoxScan.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.textBoxScan.Name = "textBoxScan";
- this.textBoxScan.Size = new System.Drawing.Size(201, 38);
+ this.textBoxScan.Size = new System.Drawing.Size(268, 46);
this.textBoxScan.TabIndex = 25;
this.textBoxScan.TextChanged += new System.EventHandler(this.textBoxScan_TextChanged);
//
@@ -318,10 +335,10 @@
this.buttonCloseForm.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.buttonCloseForm.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.buttonCloseForm.ForeColor = System.Drawing.Color.White;
- this.buttonCloseForm.Location = new System.Drawing.Point(830, 557);
- this.buttonCloseForm.Margin = new System.Windows.Forms.Padding(2);
+ this.buttonCloseForm.Location = new System.Drawing.Point(1107, 685);
+ this.buttonCloseForm.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.buttonCloseForm.Name = "buttonCloseForm";
- this.buttonCloseForm.Size = new System.Drawing.Size(205, 46);
+ this.buttonCloseForm.Size = new System.Drawing.Size(273, 58);
this.buttonCloseForm.TabIndex = 27;
this.buttonCloseForm.Text = "Schließen";
this.buttonCloseForm.UseVisualStyleBackColor = false;
@@ -333,25 +350,26 @@
this.labelVersion.Dock = System.Windows.Forms.DockStyle.Fill;
this.labelVersion.ForeColor = System.Drawing.Color.White;
this.labelVersion.ImageAlign = System.Drawing.ContentAlignment.BottomCenter;
- this.labelVersion.Location = new System.Drawing.Point(417, 555);
+ this.labelVersion.Location = new System.Drawing.Point(556, 683);
+ this.labelVersion.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.labelVersion.Name = "labelVersion";
- this.labelVersion.Size = new System.Drawing.Size(201, 50);
+ this.labelVersion.Size = new System.Drawing.Size(268, 62);
this.labelVersion.TabIndex = 28;
this.labelVersion.Text = "Version: ";
this.labelVersion.TextAlign = System.Drawing.ContentAlignment.BottomCenter;
//
// FormAufleger
//
- this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
+ this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
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(1037, 605);
+ this.ClientSize = new System.Drawing.Size(1383, 745);
this.Controls.Add(this.tLPAuftrag);
this.ForeColor = System.Drawing.Color.White;
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.KeyPreview = true;
- this.Margin = new System.Windows.Forms.Padding(2);
+ this.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.Name = "FormAufleger";
this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide;
this.Text = "Waschstrasse";
diff --git a/AA-Forms/FormAufleger.cs b/AA-Forms/FormAufleger.cs
index 9b85f7a..e96a537 100644
--- a/AA-Forms/FormAufleger.cs
+++ b/AA-Forms/FormAufleger.cs
@@ -324,7 +324,8 @@ namespace Deckungsbeitrag
{
if (meldung.GetFrage(this, "Möchtest du das Programm wirklich schließen?", false) == DialogResult.No) return;
- Application.Exit();
+
+ this.Close();
}
///
diff --git a/AA-Forms/FormAusschlager.cs b/AA-Forms/FormAusschlager.cs
index ee1d94b..b94361c 100644
--- a/AA-Forms/FormAusschlager.cs
+++ b/AA-Forms/FormAusschlager.cs
@@ -20,11 +20,11 @@ namespace Deckungsbeitrag
public partial class FormAusschlager : Form
{
private Meldungen meldung = new Meldungen();
- private Auftrag auftrag;
+ //private Auftrag auftrag;
private WSFach fach;
public Maschine maschine;
public List fachliste;
- bool maximised = false;
+ //bool maximised = false;
int height;
Point loc;
diff --git a/AA-Forms/FormExpedit.Designer.cs b/AA-Forms/FormExpedit.Designer.cs
index ac56bcc..ad03dd2 100644
--- a/AA-Forms/FormExpedit.Designer.cs
+++ b/AA-Forms/FormExpedit.Designer.cs
@@ -89,7 +89,7 @@
this.buttonNeuerAuftrag.TabIndex = 43;
this.buttonNeuerAuftrag.Text = "Neuer Auftrag";
this.buttonNeuerAuftrag.UseVisualStyleBackColor = false;
- this.buttonNeuerAuftrag.Click += new System.EventHandler(this.buttonNeuerAuftrag_Click);
+ this.buttonNeuerAuftrag.Click += new System.EventHandler(this.ButtonNeuerAuftrag_Click);
//
// buttonSuchen
//
@@ -107,7 +107,7 @@
this.buttonSuchen.TabIndex = 63;
this.buttonSuchen.Text = "Auftrag Suchen";
this.buttonSuchen.UseVisualStyleBackColor = false;
- this.buttonSuchen.Click += new System.EventHandler(this.buttonSuchen_Click);
+ this.buttonSuchen.Click += new System.EventHandler(this.ButtonSuchen_Click);
//
// buttonReklamation
//
@@ -123,7 +123,7 @@
this.buttonReklamation.TabIndex = 64;
this.buttonReklamation.Text = "Reklamationen";
this.buttonReklamation.UseVisualStyleBackColor = true;
- this.buttonReklamation.Click += new System.EventHandler(this.buttonReklamation_Click);
+ this.buttonReklamation.Click += new System.EventHandler(this.ButtonReklamation_Click);
//
// buttonSWS_Drucken
//
@@ -139,7 +139,7 @@
this.buttonSWS_Drucken.TabIndex = 35;
this.buttonSWS_Drucken.Text = "SWS-Drucken";
this.buttonSWS_Drucken.UseVisualStyleBackColor = false;
- this.buttonSWS_Drucken.Click += new System.EventHandler(this.buttonSWS_Drucken_Click);
+ this.buttonSWS_Drucken.Click += new System.EventHandler(this.ButtonSWS_Drucken_Click);
//
// chartFehlmenge
//
@@ -168,7 +168,7 @@
title1.Text = "Hallo Test";
this.chartFehlmenge.Titles.Add(title1);
this.chartFehlmenge.Visible = false;
- this.chartFehlmenge.VisibleChanged += new System.EventHandler(this.chartFehlmenge_VisibleChanged);
+ this.chartFehlmenge.VisibleChanged += new System.EventHandler(this.ChartFehlmenge_VisibleChanged);
//
// groupBoxKndInfo
//
@@ -183,8 +183,8 @@
this.groupBoxKndInfo.TabStop = false;
this.groupBoxKndInfo.Text = "INFOS";
this.groupBoxKndInfo.Visible = false;
- this.groupBoxKndInfo.VisibleChanged += new System.EventHandler(this.groupBoxKndInfo_VisibleChanged);
- this.groupBoxKndInfo.Paint += new System.Windows.Forms.PaintEventHandler(this.groupBoxKndInfo_Paint);
+ this.groupBoxKndInfo.VisibleChanged += new System.EventHandler(this.GroupBoxKndInfo_VisibleChanged);
+ this.groupBoxKndInfo.Paint += new System.Windows.Forms.PaintEventHandler(this.GroupBoxKndInfo_Paint);
//
// tableLayoutPanelInfo
//
@@ -238,7 +238,7 @@
this.buttonTourenListe.TabIndex = 66;
this.buttonTourenListe.Text = "Tourenliste Drucken";
this.buttonTourenListe.UseVisualStyleBackColor = false;
- this.buttonTourenListe.Click += new System.EventHandler(this.buttonTourenListe_Click);
+ this.buttonTourenListe.Click += new System.EventHandler(this.ButtonTourenListe_Click);
//
// buttonStats
//
@@ -252,7 +252,7 @@
this.buttonStats.Size = new System.Drawing.Size(41, 41);
this.buttonStats.TabIndex = 46;
this.buttonStats.UseVisualStyleBackColor = true;
- this.buttonStats.Click += new System.EventHandler(this.buttonStats_Click);
+ this.buttonStats.Click += new System.EventHandler(this.ButtonStats_Click);
//
// buttonEinstellung
//
@@ -266,7 +266,7 @@
this.buttonEinstellung.Size = new System.Drawing.Size(41, 41);
this.buttonEinstellung.TabIndex = 45;
this.buttonEinstellung.UseVisualStyleBackColor = true;
- this.buttonEinstellung.Click += new System.EventHandler(this.buttonEinstellung_Click);
+ this.buttonEinstellung.Click += new System.EventHandler(this.ButtonEinstellung_Click);
//
// tabPageRampe
//
@@ -305,7 +305,7 @@
this.objectListViewRampe.UseHotControls = false;
this.objectListViewRampe.UseHyperlinks = true;
this.objectListViewRampe.View = System.Windows.Forms.View.Details;
- this.objectListViewRampe.CellEditStarting += new BrightIdeasSoftware.CellEditEventHandler(this.objectListViewRampe_CellEditStarting);
+ this.objectListViewRampe.CellEditStarting += new BrightIdeasSoftware.CellEditEventHandler(this.ObjectListViewRampe_CellEditStarting);
//
// tabPageSonder
//
@@ -340,12 +340,12 @@
this.objectListViewSonder.UseCompatibleStateImageBehavior = false;
this.objectListViewSonder.UseHotControls = false;
this.objectListViewSonder.View = System.Windows.Forms.View.Details;
- this.objectListViewSonder.ButtonClick += new System.EventHandler(this.objectListViewAuftrag_ButtonClick);
- this.objectListViewSonder.CellEditFinished += new BrightIdeasSoftware.CellEditEventHandler(this.objectListViewAuftrag_CellEditFinished);
- this.objectListViewSonder.CellEditStarting += new BrightIdeasSoftware.CellEditEventHandler(this.objectListViewAuftrag_CellEditStarting);
- this.objectListViewSonder.CellClick += new System.EventHandler(this.objectListViewAuftrag_CellClick);
- this.objectListViewSonder.CellRightClick += new System.EventHandler(this.objectListViewAuftrag_CellRightClick);
- this.objectListViewSonder.FormatCell += new System.EventHandler(this.objectListViewAuftrag_FormatCell);
+ this.objectListViewSonder.ButtonClick += new System.EventHandler(this.ObjectListViewAuftrag_ButtonClick);
+ this.objectListViewSonder.CellEditFinished += new BrightIdeasSoftware.CellEditEventHandler(this.ObjectListViewAuftrag_CellEditFinished);
+ this.objectListViewSonder.CellEditStarting += new BrightIdeasSoftware.CellEditEventHandler(this.ObjectListViewAuftrag_CellEditStarting);
+ this.objectListViewSonder.CellClick += new System.EventHandler(this.ObjectListViewAuftrag_CellClick);
+ this.objectListViewSonder.CellRightClick += new System.EventHandler(this.ObjectListViewAuftrag_CellRightClick);
+ this.objectListViewSonder.FormatCell += new System.EventHandler(this.ObjectListViewAuftrag_FormatCell);
//
// tabPageGeschaeft
//
@@ -385,12 +385,12 @@
this.objectListViewGeschaeft.UseHotControls = false;
this.objectListViewGeschaeft.UseHyperlinks = true;
this.objectListViewGeschaeft.View = System.Windows.Forms.View.Details;
- this.objectListViewGeschaeft.ButtonClick += new System.EventHandler(this.objectListViewAuftrag_ButtonClick);
- this.objectListViewGeschaeft.CellEditFinished += new BrightIdeasSoftware.CellEditEventHandler(this.objectListViewAuftrag_CellEditFinished);
- this.objectListViewGeschaeft.CellEditStarting += new BrightIdeasSoftware.CellEditEventHandler(this.objectListViewAuftrag_CellEditStarting);
- this.objectListViewGeschaeft.CellClick += new System.EventHandler(this.objectListViewAuftrag_CellClick);
- this.objectListViewGeschaeft.CellRightClick += new System.EventHandler(this.objectListViewAuftrag_CellRightClick);
- this.objectListViewGeschaeft.FormatCell += new System.EventHandler(this.objectListViewAuftrag_FormatCell);
+ this.objectListViewGeschaeft.ButtonClick += new System.EventHandler(this.ObjectListViewAuftrag_ButtonClick);
+ this.objectListViewGeschaeft.CellEditFinished += new BrightIdeasSoftware.CellEditEventHandler(this.ObjectListViewAuftrag_CellEditFinished);
+ this.objectListViewGeschaeft.CellEditStarting += new BrightIdeasSoftware.CellEditEventHandler(this.ObjectListViewAuftrag_CellEditStarting);
+ this.objectListViewGeschaeft.CellClick += new System.EventHandler(this.ObjectListViewAuftrag_CellClick);
+ this.objectListViewGeschaeft.CellRightClick += new System.EventHandler(this.ObjectListViewAuftrag_CellRightClick);
+ this.objectListViewGeschaeft.FormatCell += new System.EventHandler(this.ObjectListViewAuftrag_FormatCell);
//
// tabPageAll
//
@@ -430,12 +430,12 @@
this.objectListViewAuftrag.UseHotControls = false;
this.objectListViewAuftrag.UseHyperlinks = true;
this.objectListViewAuftrag.View = System.Windows.Forms.View.Details;
- this.objectListViewAuftrag.ButtonClick += new System.EventHandler(this.objectListViewAuftrag_ButtonClick);
- this.objectListViewAuftrag.CellEditFinished += new BrightIdeasSoftware.CellEditEventHandler(this.objectListViewAuftrag_CellEditFinished);
- this.objectListViewAuftrag.CellEditStarting += new BrightIdeasSoftware.CellEditEventHandler(this.objectListViewAuftrag_CellEditStarting);
- this.objectListViewAuftrag.CellClick += new System.EventHandler(this.objectListViewAuftrag_CellClick);
- this.objectListViewAuftrag.CellRightClick += new System.EventHandler(this.objectListViewAuftrag_CellRightClick);
- this.objectListViewAuftrag.FormatCell += new System.EventHandler(this.objectListViewAuftrag_FormatCell);
+ this.objectListViewAuftrag.ButtonClick += new System.EventHandler(this.ObjectListViewAuftrag_ButtonClick);
+ this.objectListViewAuftrag.CellEditFinished += new BrightIdeasSoftware.CellEditEventHandler(this.ObjectListViewAuftrag_CellEditFinished);
+ this.objectListViewAuftrag.CellEditStarting += new BrightIdeasSoftware.CellEditEventHandler(this.ObjectListViewAuftrag_CellEditStarting);
+ this.objectListViewAuftrag.CellClick += new System.EventHandler(this.ObjectListViewAuftrag_CellClick);
+ this.objectListViewAuftrag.CellRightClick += new System.EventHandler(this.ObjectListViewAuftrag_CellRightClick);
+ this.objectListViewAuftrag.FormatCell += new System.EventHandler(this.ObjectListViewAuftrag_FormatCell);
//
// tabControlAuftragList
//
@@ -454,8 +454,8 @@
this.tabControlAuftragList.Size = new System.Drawing.Size(898, 622);
this.tabControlAuftragList.TabIndex = 0;
this.tabControlAuftragList.Visible = false;
- this.tabControlAuftragList.SelectedIndexChanged += new System.EventHandler(this.tabControlAuftragList_SelectedIndexChanged);
- this.tabControlAuftragList.MouseDown += new System.Windows.Forms.MouseEventHandler(this.tabControlAuftragList_MouseDown);
+ this.tabControlAuftragList.SelectedIndexChanged += new System.EventHandler(this.TabControlAuftragList_SelectedIndexChanged);
+ this.tabControlAuftragList.MouseDown += new System.Windows.Forms.MouseEventHandler(this.TabControlAuftragList_MouseDown);
//
// tabPageVorbereitet
//
@@ -494,11 +494,11 @@
this.objectListViewVorbereitet.UseFiltering = true;
this.objectListViewVorbereitet.UseHyperlinks = true;
this.objectListViewVorbereitet.View = System.Windows.Forms.View.Details;
- this.objectListViewVorbereitet.ButtonClick += new System.EventHandler(this.objectListViewAuftrag_ButtonClick);
- this.objectListViewVorbereitet.CellEditFinished += new BrightIdeasSoftware.CellEditEventHandler(this.objectListViewAuftrag_CellEditFinished);
- this.objectListViewVorbereitet.CellEditStarting += new BrightIdeasSoftware.CellEditEventHandler(this.objectListViewAuftrag_CellEditStarting);
- this.objectListViewVorbereitet.CellClick += new System.EventHandler(this.objectListViewAuftrag_CellClick);
- this.objectListViewVorbereitet.FormatCell += new System.EventHandler(this.objectListViewAuftrag_FormatCell);
+ this.objectListViewVorbereitet.ButtonClick += new System.EventHandler(this.ObjectListViewAuftrag_ButtonClick);
+ this.objectListViewVorbereitet.CellEditFinished += new BrightIdeasSoftware.CellEditEventHandler(this.ObjectListViewAuftrag_CellEditFinished);
+ this.objectListViewVorbereitet.CellEditStarting += new BrightIdeasSoftware.CellEditEventHandler(this.ObjectListViewAuftrag_CellEditStarting);
+ this.objectListViewVorbereitet.CellClick += new System.EventHandler(this.ObjectListViewAuftrag_CellClick);
+ this.objectListViewVorbereitet.FormatCell += new System.EventHandler(this.ObjectListViewAuftrag_FormatCell);
//
// buttonNW
//
@@ -514,7 +514,7 @@
this.buttonNW.TabIndex = 67;
this.buttonNW.Text = "NW";
this.buttonNW.UseVisualStyleBackColor = true;
- this.buttonNW.Click += new System.EventHandler(this.buttonNW_Click);
+ this.buttonNW.Click += new System.EventHandler(this.ButtonNW_Click);
//
// FormExpedit
//
diff --git a/AA-Forms/FormExpedit.cs b/AA-Forms/FormExpedit.cs
index 03de865..a07903e 100644
--- a/AA-Forms/FormExpedit.cs
+++ b/AA-Forms/FormExpedit.cs
@@ -37,40 +37,25 @@ namespace Deckungsbeitrag
{
#region Properties
private readonly UserSettingsManager _settings = new UserSettingsManager();
- private ToolTip cellTooltip = new ToolTip();
+ private readonly ToolTip cellTooltip = new ToolTip();
public Meldungen fehlermeldung = new Meldungen();
public Image etikett = null;
public Auftrag auftrag;
public Auftrag NeuerAuftrag; //NEU FÜR UPDATE
- //public AuftragArtikel auftragArtikel;
public Benutzer benutzer;
public Kunde kunde;
DateTime? letzterLiefertag = null;
- bool nocont = false;
- bool nocontclicked = false;
- Meldungen meldung = new Meldungen();
+ readonly bool nocont = false;
+ private readonly Meldungen meldung = new Meldungen();
private List artikelListe;
- private List auftraglist;
- private List sonderlist;
- private List geschaeftlist;
private List suchliste;
- private List rampenlist;
- private List vorbereitetliste;
- int beforeedit = 0;
int? altecontclean = null;
- Timer timer1 = new Timer(); // Timer für Nachwäsche
- Timer timer2 = new Timer(); // Timer für Refresh Auftragliste
- private Screen[] screens;
+ private readonly Timer timer1 = new Timer(); // Timer für Nachwäsche
+ private readonly Timer timer2 = new Timer(); // Timer für Refresh Auftragliste
+ private readonly Screen[] screens;
private Point itemlocation;
- //private ImageList imagelist = new ImageList();
- private volatile bool _isProcessing = false; // Thread-sicherer Flag gegen Überlappung
- private int _consecutiveFailures = 0;
private const int MAX_FAILURES = 3;
- private bool aufgabeDone = false;
- private bool isttest = true;
- private bool _doubleClickPending = false;
- private OnboardingSchritt onBoardingArt = OnboardingSchritt.Expedit;
-
+ private readonly OnboardingSchritt onBoardingArt = OnboardingSchritt.Expedit;
private List listAuftragToday;
private List listAuftragGeschaeft;
private List listVorbereitet;
@@ -174,7 +159,7 @@ namespace Deckungsbeitrag
#endregion
#region Button_Click-Events
- private async void buttonNeuerAuftrag_Click(object sender, EventArgs e)
+ private async void ButtonNeuerAuftrag_Click(object sender, EventArgs e)
{
FormNeuerAuftrag neuerAuftrag = new FormNeuerAuftrag(benutzer, this.letzterLiefertag, AuftragTyp.Standart);
if (neuerAuftrag.ShowDialog() == DialogResult.OK)
@@ -187,17 +172,17 @@ namespace Deckungsbeitrag
OLV_SetObjects(this.objectListViewGeschaeft, listAuftragGeschaeft);
}
}
- private void buttonSWS_Drucken_Click(object sender, EventArgs e)
+ private void ButtonSWS_Drucken_Click(object sender, EventArgs e)
{
Kunde knd = Funktionen.KundenAuswahl();
if(knd != null) Funktionen.SWS_Drucken(null, knd, this);
}
- private void buttonEinstellung_Click(object sender, EventArgs e)
+ private void ButtonEinstellung_Click(object sender, EventArgs e)
{
FormEinstellung einstellung = new FormEinstellung(this.benutzer);
einstellung.ShowDialog();
}
- private void buttonSuchen_Click(object sender, EventArgs e)
+ private void ButtonSuchen_Click(object sender, EventArgs e)
{
int kundeID = 0;
@@ -245,15 +230,15 @@ namespace Deckungsbeitrag
}
- private void buttonReklamation_Click(object sender, EventArgs e)
+ private void ButtonReklamation_Click(object sender, EventArgs e)
{
FormFehlmengeCount reklamation = new FormFehlmengeCount(this.benutzer);
reklamation.ShowDialog();
}
- private void buttonTourenListe_Click(object sender, EventArgs e)
+ private void ButtonTourenListe_Click(object sender, EventArgs e)
{
List fahrerliste = Benutzer.GetFahrerList();
- Benutzer fahrer = new Benutzer();
+ Benutzer fahrer;
FormBenutzerVW benutzerVW = new FormBenutzerVW(fahrerliste);
if (benutzerVW.ShowDialog() == DialogResult.OK)
{
@@ -268,7 +253,7 @@ namespace Deckungsbeitrag
}
}
- private void buttonStats_Click(object sender, EventArgs e)
+ private void ButtonStats_Click(object sender, EventArgs e)
{
FormShowGroupBox showGroupBox = new FormShowGroupBox("Statistik", this.benutzer);
showGroupBox.ShowDialog();
@@ -357,16 +342,16 @@ namespace Deckungsbeitrag
olv.CellToolTipShowing += (s, e) =>
{
// Nur für Icon-Spalte (Index 10) und gültiges Model
- if (e.Column.Text == "Aufgabe" && e.Model is View_Auftrag_Expedit)
+ if (e.Column.Text == "Aufgabe" && e.Model is View_Auftrag_Expedit expedit)
{
- Auftrag auftrag = Auftrag.GetAuftrag(((View_Auftrag_Expedit)e.Model).AuftragID);
+ Auftrag auftrag = Auftrag.GetAuftrag(expedit.AuftragID);
// Lade Bezeichnung der Aufgabe als Tooltip-Text
e.Text = Aufgabe.GetAufgabe(null, auftrag.AufgabeID).Bezeichnung;
}
// Nur für Icon-Spalte (Index 1) und gültiges Model
- if (e.Column.Text == "Kunde" && e.Model is View_Auftrag_Expedit)
+ if (e.Column.Text == "Kunde" && e.Model is View_Auftrag_Expedit expedit1)
{
- Auftrag _auftrag = Auftrag.GetAuftrag(((View_Auftrag_Expedit)e.Model).AuftragID);
+ Auftrag _auftrag = Auftrag.GetAuftrag(expedit1.AuftragID);
if (!string.IsNullOrWhiteSpace(Kunde.GetKunde(null, _auftrag.KundeID, null).Anmerkung))
{
// Lade Anmerkung als Tooltip-Text
@@ -384,7 +369,8 @@ namespace Deckungsbeitrag
OLV_SetObjects(olv, auftragliste);
// ========== SORTIERUNG NACH SPALTEN ==========
- olv.Sort();
+ if (olv.Name.Contains("Rampe")) olv.Sort(secondaryCol);
+ else olv.Sort();
// ========== SPALTENBREITE ANPASSEN ==========
olv = Funktionen.Columns_Resize(null, olv).olv;
@@ -399,10 +385,8 @@ namespace Deckungsbeitrag
this.UseWaitCursor = false;
}
- private void objectListViewAuftrag_FormatCell(object sender, FormatCellEventArgs e)
+ private void ObjectListViewAuftrag_FormatCell(object sender, FormatCellEventArgs e)
{
- ObjectListView olv = (ObjectListView)sender;
-
if (e.Column.IsButton)
{
if(e.SubItem.BackColor != Color.LightBlue)
@@ -439,7 +423,7 @@ namespace Deckungsbeitrag
}
- private async void objectListViewAuftrag_CellClick(object sender, CellClickEventArgs e)
+ private async void ObjectListViewAuftrag_CellClick(object sender, CellClickEventArgs e)
{
itemlocation = new Point(e.Location.X, e.Location.Y);
ObjectListView olv = (ObjectListView)sender;
@@ -488,7 +472,7 @@ namespace Deckungsbeitrag
olv.Focus();
}
- private async void objectListViewAuftrag_CellRightClick(object sender, CellRightClickEventArgs e)
+ private async void ObjectListViewAuftrag_CellRightClick(object sender, CellRightClickEventArgs e)
{
ObjectListView olv = (ObjectListView)sender;
@@ -496,7 +480,7 @@ namespace Deckungsbeitrag
if (e.Model == null) return;
Auftrag _auftrag = Auftrag.GetAuftrag(((View_Auftrag_Expedit)e.Model).AuftragID);
Kunde _kunde = Kunde.GetKunde(null, _auftrag.KundeID, null);
- string name = string.Empty;
+ string name;
if (string.IsNullOrWhiteSpace(_kunde.Suchtext)) name = _kunde.KundeName;
else name = _kunde.Suchtext;
@@ -554,24 +538,27 @@ namespace Deckungsbeitrag
break;
}
}
- private void objectListViewAuftrag_ButtonClick(object sender, BrightIdeasSoftware.CellClickEventArgs e)
- {
+ private void ObjectListViewAuftrag_ButtonClick(object sender, BrightIdeasSoftware.CellClickEventArgs e)
+ {
ObjectListView olv = (ObjectListView)sender;
Auftrag _auftrag = Auftrag.GetAuftrag(((View_Auftrag_Expedit)e.Model).AuftragID);
if (e.Column.Text == "Abschließen")
{
+ // Wenn BenutzerRolle Frottee dann Abteilung Frottee Beendet.
+ if (this.benutzer.Rolle == BenutzerRolle.Frottee) { Auftrag_Fertig(); Neuladen_OLV(olv); return; }
+
if (olv.CheckedItems.Count > 0)
{
- if (MessageBox.Show("Möchtest du wirklich alle Aufträge abschließen?", "AUFTRÄGE FERTIG", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.No) return;
+ if (MessageBox.Show($"Möchtest du die ausgewählten {olv.CheckedItems.Count} Aufträge abschließen?", "AUFTRÄGE FERTIG", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.No) return;
else
{
foreach (OLVListItem item in olv.CheckedItems)
{
this.auftrag = (Auftrag)item.RowObject;
Auftrag_Fertig();
-
}
- foreach (OLVColumn col in olv.Columns) if (col.HeaderCheckBox == true) olv.UncheckHeaderCheckBox(col);
+ var column = olv.AllColumns.Cast().FirstOrDefault(col => col.Text == "Kunde");
+ if (column != null && column.HeaderCheckBox) olv.UncheckHeaderCheckBox(column);
}
}
else
@@ -580,40 +567,9 @@ namespace Deckungsbeitrag
this.auftrag = _auftrag;
- if (this.benutzer.Rolle == BenutzerRolle.Frottee) { Auftrag_Fertig(); Neuladen_OLV(olv); return; }
if (this.auftrag.ContainerClean == 0)
{
- switch (this.auftrag.Typ)
- {
- case AuftragTyp.Geschäft:
- break;
- case AuftragTyp.Standart:
- if (meldung.NoCleanContainer() == DialogResult.OK) return;
- break;
- case AuftragTyp.Inventur:
- if (meldung.SonderNoCleanContainer() == DialogResult.Yes)
- {
- Auftrag_Fertig();
- }
- else return;
- break;
- case AuftragTyp.Standverminderung:
- if (meldung.SonderNoCleanContainer() == DialogResult.Yes)
- {
- Auftrag_Fertig();
- }
- else return;
- break;
- case AuftragTyp.Standerhöhung:
- if (meldung.SonderNoCleanContainer() == DialogResult.Yes)
- {
- Auftrag_Fertig();
- }
- else return;
- break;
- default:
- break;
- }
+ if (meldung.NoCleanContainer() == DialogResult.OK) return;
}
else
{
@@ -625,50 +581,42 @@ namespace Deckungsbeitrag
return;
case DialogResult.Yes:
{
- //this.auftrag.ContainerClean = (int)neuecontclean;
- //neuecontclean = null;
- //this.auftrag.Liefertag = dTPLiefertag.Value;
- //WENN BEARBEITET UND AUSGEDRUCKT WIRD GEDRUCKT VERÄNDERT UND ERSTELLT IST URSPRUNGSDATUM
this.auftrag.Gedruckt = DateTime.Now;
this.auftrag.GedrucktVon = benutzer.BenutzerID;
bool nocont = false;
- if (MessageBox.Show("Möchtest du die Containeranzahl am Etikett anzeigen?", "FRAGE", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.No)
- {
- nocont = true;
- }
- else nocont = false;
- DialogResult result = Funktionen.Etikett_Drucken(auftrag, nocont);
- if (result == DialogResult.OK)
+ if (this.auftrag.ContainerClean > 10)
{
- Auftrag_Fertig();
+ if (MessageBox.Show("Möchtest du die Containeranzahl am Etikett anzeigen?", "FRAGE", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.No)
+ {
+ nocont = true;
+ }
+ else nocont = false;
+ }
+
+ try
+ {
+ Funktionen.Etikett_Drucken(auftrag, nocont);
+ }
+ catch (Exception ex)
+ {
+ MessageBox.Show("Etiketten konnten nicht gedruckt werden. Versuche es nochmals.", "DRUCKFEHLER", MessageBoxButtons.OK, MessageBoxIcon.Error);
+ Program.AddFehler(this.benutzer, ex.Message, ex.StackTrace, null);
+ return;
}
}
break;
case DialogResult.No:
- {
- //this.auftrag.ContainerClean = (int)neuecontclean;
- //neuecontclean = null;
- //this.auftrag.Liefertag = dTPLiefertag.Value;
- //WENN BEARBEITET UND NICHT GEDRUCKT WIRD ERSTELLT VERÄNDERT UND GEDRUCKT IST URSPRUNGSDATUM
- this.auftrag.Erstellt = DateTime.Now;
- this.auftrag.ErstelltVon = (int)benutzer.BenutzerID;
-
- Auftrag_Fertig();
- }
+ this.auftrag.Erstellt = DateTime.Now;
+ this.auftrag.ErstelltVon = (int)benutzer.BenutzerID;
break;
default:
break;
}
}
- else
- {
- Auftrag_Fertig();
- }
-
+ Auftrag_Fertig();
}
-
}
}
if (e.Column.Text == "Etikett")
@@ -775,7 +723,7 @@ namespace Deckungsbeitrag
break;
case var t when t == "Geschäft":
if (col.Text == "Abschließen") col.IsVisible = true;
- if (col.Text == "Etikett") col.IsVisible = false;
+ if (col.Text == "Etikett") col.IsVisible = true;
break;
case var t when t == "Aufträge heute":
if (col.Text == "Abschließen")
@@ -802,9 +750,8 @@ namespace Deckungsbeitrag
///
///
///
- private void objectListViewAuftrag_CellEditFinished(object sender, CellEditEventArgs e)
+ private void ObjectListViewAuftrag_CellEditFinished(object sender, CellEditEventArgs e)
{
- ObjectListView olv = (ObjectListView)sender;
this.auftrag = Auftrag.GetAuftrag(((View_Auftrag_Expedit)e.RowObject).AuftragID);
if (e.Column.Text == "sauber") altecontclean = (int?)e.Value;
if (!string.IsNullOrWhiteSpace(e.NewValue.ToString())) Save_Auftrag(this.auftrag, false);
@@ -816,7 +763,7 @@ namespace Deckungsbeitrag
///
///
///
- private void objectListViewAuftrag_CellEditStarting(object sender, CellEditEventArgs e)
+ private void ObjectListViewAuftrag_CellEditStarting(object sender, CellEditEventArgs e)
{
if (e.Column.AspectName == "KundeName")
{
@@ -891,6 +838,11 @@ namespace Deckungsbeitrag
}
+ ///
+ /// Aufträge für TabPages werden von DB-VIEW geladen.
+ ///
+ /// null wemm alle Listen neu geladen werden sollen
+ /// Task zu FormLoad
private async Task GetAuftraegeAsync(ListenArt? liste)
{
@@ -909,6 +861,7 @@ namespace Deckungsbeitrag
}
}
+
///
/// Zeigt Fenster zur Eingabe von Text.
///
@@ -940,6 +893,7 @@ namespace Deckungsbeitrag
///
private void Auftrag_Fertig()
{
+ //TODO: Auftrag richtig speichern... mit gedruckt bzw. erledigt bzw.
if (this.benutzer.Rolle == BenutzerRolle.Frottee) this.auftrag.Abteilungen |= AbteilungsStatus.FrotteeBeendet;
else this.auftrag.Status = AuftragStatus.Fertig;
this.auftrag.Save();
@@ -951,12 +905,11 @@ namespace Deckungsbeitrag
///
///
///
- private void tabControlAuftragList_SelectedIndexChanged(object sender, EventArgs e)
+ private void TabControlAuftragList_SelectedIndexChanged(object sender, EventArgs e)
{
TabControl tabControl = sender as TabControl;
- ObjectListView olv = tabControl.SelectedTab.Controls[0] as ObjectListView;
- if (olv == null) return;
-
+ if (!(tabControl.SelectedTab.Controls[0] is ObjectListView olv)) return;
+
tabControl.SuspendLayout();
olv.SuspendLayout();
@@ -1017,7 +970,7 @@ namespace Deckungsbeitrag
///
///
///
- private void tabControlAuftragList_MouseDown(object sender, MouseEventArgs e)
+ private void TabControlAuftragList_MouseDown(object sender, MouseEventArgs e)
{
this.UseWaitCursor = true;
if (e.Button == MouseButtons.Left)
@@ -1047,7 +1000,7 @@ namespace Deckungsbeitrag
///
///
///
- private void groupBoxKndInfo_Paint(object sender, PaintEventArgs e)
+ private void GroupBoxKndInfo_Paint(object sender, PaintEventArgs e)
{
Funktionen.GetGroupBoxBoarder(groupBoxKndInfo, e);
}
@@ -1058,7 +1011,7 @@ namespace Deckungsbeitrag
///
///
///
- private void chartFehlmenge_VisibleChanged(object sender, EventArgs e)
+ private void ChartFehlmenge_VisibleChanged(object sender, EventArgs e)
{
UCFeedback fb = this.Controls.Find("feedback", false)[0] as UCFeedback;
@@ -1091,14 +1044,13 @@ namespace Deckungsbeitrag
///
///
///
- private void groupBoxKndInfo_VisibleChanged(object sender, EventArgs e)
+ private void GroupBoxKndInfo_VisibleChanged(object sender, EventArgs e)
{
if (groupBoxKndInfo.Visible)
{
this.tabControlAuftragList.Width = (int)(this.Width * 0.80);
this.groupBoxKndInfo.Width = (int)(this.Width * 0.20) - 20;
- int chartHeight = (int)(this.tabControlAuftragList.Height * 0.75);
int gbHeight = (int)(this.tabControlAuftragList.Height * 0.25);
groupBoxKndInfo.Height = gbHeight;
@@ -1110,7 +1062,6 @@ namespace Deckungsbeitrag
this.tabControlAuftragList.Width = this.Width - 25;
}
}
-
private async void FormExpedit_HelpButtonClicked(object sender, System.ComponentModel.CancelEventArgs e)
{
this.benutzer.OnboardingStatus = this.benutzer.ClearOnboardingFlag(onBoardingArt); // OnBoarding zurücksetzen
@@ -1129,13 +1080,11 @@ namespace Deckungsbeitrag
//this.Close(); // Onboarding beendet
}
}
-
- private void objectListViewRampe_CellEditStarting(object sender, CellEditEventArgs e)
+ private void ObjectListViewRampe_CellEditStarting(object sender, CellEditEventArgs e)
{
ObjectListView olv = (ObjectListView)sender;
- Auftrag _auftrag = e.RowObject as Auftrag;
- if (_auftrag == null) return;
+ if (!(e.RowObject is Auftrag _auftrag)) return;
//Kunde _kunde = Kunde.GetKunde(null, _auftrag.KundeID, null);
_auftrag.Status = AuftragStatus.Gewaschen;
_auftrag.Save();
@@ -1143,8 +1092,7 @@ namespace Deckungsbeitrag
olv.RefreshObject(olv.SelectedObject);
e.Cancel = true;
}
-
- private void buttonNW_Click(object sender, EventArgs e)
+ private void ButtonNW_Click(object sender, EventArgs e)
{
FormArtikelVW artikelVW = new FormArtikelVW(this.benutzer);
artikelVW.ShowDialog();
diff --git a/AA-Forms/FormFehlmengeCount.cs b/AA-Forms/FormFehlmengeCount.cs
index 9325030..8d4ee37 100644
--- a/AA-Forms/FormFehlmengeCount.cs
+++ b/AA-Forms/FormFehlmengeCount.cs
@@ -112,11 +112,6 @@ namespace Deckungsbeitrag
if ((userid != null && userid.Contains("reklamation")) || (this.benutzer != null && this.benutzer.Rolle == BenutzerRolle.Expedit) || (this.benutzer != null && this.benutzer.Rolle == BenutzerRolle.Frottee)) Reklamation_GroupBox();
else GroupBox_Load();
- }
- }
- //if ((userid != null && userid.Contains("reklamation")) || (this.benutzer != null && (this.benutzer.Rolle == BenutzerRolle.Expedit || this.benutzer.Rolle == BenutzerRolle.Frottee))) Reklamation_GroupBox();
- //else GroupBox_Load();
-
if (kunde.Aufgabe != null)
{
string n = kunde.Suchtext == null ? kunde.KundeName : kunde.Suchtext;
diff --git a/AA-Forms/FormKundeVW.cs b/AA-Forms/FormKundeVW.cs
index 30a28bc..7978250 100644
--- a/AA-Forms/FormKundeVW.cs
+++ b/AA-Forms/FormKundeVW.cs
@@ -26,22 +26,13 @@ namespace Deckungsbeitrag
{
private FilterInfoCollection videoDevices;
List sortimentListe = null;
- List resultList = null;
List standListe = null;
- Sortiment result = null;
Kunde kunde = null;
- Bitmap bitmap = null;
Image qrcode = null;
- Meldungen meldung = new Meldungen();
- Benutzer benutzer;
+ private readonly Meldungen meldung = new Meldungen();
+ private readonly Benutzer benutzer;
int beforeedit = 0;
- int[] saveindex = null;
- private bool anmerkungChanged = false;
private bool formloading = false;
- private bool aufgabeChanged = false;
- private bool serviceChanged = false;
- private bool lieferrhythmusChanged = false;
- private bool nachwaescheChanged = false;
private bool _tosave = false;
public FormKundeVW()
@@ -139,7 +130,7 @@ namespace Deckungsbeitrag
this.standListe = KundeArtikel.GetList(kundeid);
if (this.standListe[0].ArtikelID == null || this.standListe[0].Reihung == 0)
{
- CompareToSortiment(sortNr);
+ CompareToSortiment();
}
Load_Gridview(this.standListe);
@@ -155,12 +146,14 @@ namespace Deckungsbeitrag
int reihung = 1;
foreach(Sortiment sort in sortimentListe.FindAll(Sortiment => Sortiment.KundeNummer == sortNr))
{
- KundeArtikel item = new KundeArtikel();
- item.ArtikelNR = sort.ArtNr;
- item.ArtikelName = sort.ArtName;
- item.KundeID = Kunde.GetKundeID(sort.KundeNummer, null);
- item.ArtikelID = Artikel.GetArtikelID(sort.ArtNr);
- item.Reihung = reihung;
+ KundeArtikel item = new KundeArtikel
+ {
+ ArtikelNR = sort.ArtNr,
+ ArtikelName = sort.ArtName,
+ KundeID = Kunde.GetKundeID(sort.KundeNummer, null),
+ ArtikelID = Artikel.GetArtikelID(sort.ArtNr),
+ Reihung = reihung
+ };
standListe.Add(item);
reihung++;
@@ -171,9 +164,11 @@ namespace Deckungsbeitrag
Load_Gridview(standListe);
}
- // QR-Code wird erstellt
- BarcodeWriter code = new BarcodeWriter();
- code.Format = BarcodeFormat.QR_CODE;
+ // QR-Code wird erstellt
+ BarcodeWriter code = new BarcodeWriter
+ {
+ Format = BarcodeFormat.QR_CODE
+ };
qrcode = code.Write(this.kunde.KundeNummer);
this.pictureBoxQRCode.Image = qrcode;
this.pictureBoxQRCode.SizeMode = PictureBoxSizeMode.Zoom;
@@ -225,7 +220,7 @@ namespace Deckungsbeitrag
Chart_Load();
}
- private void CompareToSortiment(string sortNr)
+ private void CompareToSortiment()
{
int reihung = 1;
@@ -284,7 +279,7 @@ namespace Deckungsbeitrag
DatenLesen();
}
}
- private void buttonAufgEnt_Click(object sender, EventArgs e)
+ private void ButtonAufgEnt_Click(object sender, EventArgs e)
{
if (MessageBox.Show("Möchtest du die Aufgabe wirklich löschen?", "Frage", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
@@ -360,7 +355,7 @@ namespace Deckungsbeitrag
this.chartQuartalsumsatz.Series[0].IsValueShownAsLabel = true;
this.chartQuartalsumsatz.Series[0].Points.DataBindXY(xq, yq);
}
- private void comboBoxAufgabe_DropDownClosed(object sender, EventArgs e)
+ private void ComboBoxAufgabe_DropDownClosed(object sender, EventArgs e)
{
}
private void KundeDaten_KeyDown(object sender, KeyEventArgs e)
@@ -373,11 +368,7 @@ namespace Deckungsbeitrag
///
///
///
- private void nextToolStripMenuItem_Click(object sender, EventArgs e)
- {
- TSBNext_Click(this, e);
- }
- private void nächsterKundeToolStripMenuItem_Click(object sender, EventArgs e)
+ private void NaechsterKundeToolStripMenuItem_Click(object sender, EventArgs e)
{
TSBNext_Click(this, e);
}
@@ -414,7 +405,7 @@ namespace Deckungsbeitrag
///
///
///
- private void standSpeichernToolStripMenuItem_Click(object sender, EventArgs e)
+ private void StandSpeichernToolStripMenuItem_Click(object sender, EventArgs e)
{
int tosave = 0;
int toupdate = 0;
@@ -484,12 +475,12 @@ namespace Deckungsbeitrag
Load_Gridview(this.standListe);
}
- private void dGArtikel_CellBeginEdit(object sender, DataGridViewCellCancelEventArgs e)
+ private void DGArtikel_CellBeginEdit(object sender, DataGridViewCellCancelEventArgs e)
{
DataGridView dataGrid = sender as DataGridView;
beforeedit = int.Parse(dataGrid.Rows[e.RowIndex].Cells[e.ColumnIndex].Value.ToString());
}
- private void dGArtikel_CellValueChanged(object sender, DataGridViewCellEventArgs e)
+ private void DGArtikel_CellValueChanged(object sender, DataGridViewCellEventArgs e)
{
if (e.RowIndex >= 0)
{
@@ -536,25 +527,23 @@ namespace Deckungsbeitrag
}
}
- private void buttonServiceBearbeiten_Click(object sender, EventArgs e)
+ private void ButtonServiceBearbeiten_Click(object sender, EventArgs e)
{
if(this.comboBoxService.Enabled == false) this.comboBoxService.Enabled = true;
}
- private void textBoxAnmerkung_Leave(object sender, EventArgs e)
+ private void TextBoxAnmerkung_Leave(object sender, EventArgs e)
{
if (textBoxAnmerkung.TextLength > 0) if (meldung.GetFrage(this, "Möchtest du die Anmerkung speichern?", false) == DialogResult.Yes) { kunde.Anmerkung = textBoxAnmerkung.Text; }
}
- private void numericUpDownAufgabeCount_Leave(object sender, EventArgs e)
+ private void NumericUpDownAufgabeCount_Leave(object sender, EventArgs e)
{
- if (meldung.GetFrage(this, $"Möchtest du die Aufgabe für die nächsten {numericUpDownAufgabeCount.Value.ToString()} Aufträge speichern?", false) == DialogResult.Yes)
+ if (meldung.GetFrage(this, $"Möchtest du die Aufgabe für die nächsten {numericUpDownAufgabeCount.Value} Aufträge speichern?", false) == DialogResult.Yes)
{
if (this.comboBoxAufgabe.SelectedItem == null) { this.kunde.Aufgabe = null; this.kunde.AufgabeCount = null; }
else { this.kunde.Aufgabe = ((Aufgabe)this.comboBoxAufgabe.SelectedItem).AufgabeID; this.kunde.AufgabeCount = (int)numericUpDownAufgabeCount.Value; }
-
- aufgabeChanged = true;
}
}
@@ -564,35 +553,35 @@ namespace Deckungsbeitrag
///
///
///
- private void textBoxAnmerkung_TextChanged(object sender, EventArgs e)
+ private void TextBoxAnmerkung_TextChanged(object sender, EventArgs e)
{
if (formloading) return;
_tosave = true;
labelAnzahlChars.Text = textBoxAnmerkung.TextLength.ToString() + "/" + textBoxAnmerkung.MaxLength.ToString();
- textBoxAnmerkung_Leave(this, null);
+ TextBoxAnmerkung_Leave(this, null);
}
- private void comboBoxAufgabe_SelectedIndexChanged(object sender, EventArgs e)
+ private void ComboBoxAufgabe_SelectedIndexChanged(object sender, EventArgs e)
{
if (formloading) return;
if (this.comboBoxAufgabe.SelectedItem != null && this.numericUpDownAufgabeCount.Value == 0) { meldung.GetFehler(this, $"Du hast für deine Aufgabe noch keine Auftraganzahl eingegeben. Hole das bitte jetzt nach."); return; }
_tosave = true;
}
- private void numericUpDownAufgabeCount_ValueChanged(object sender, EventArgs e)
+ private void NumericUpDownAufgabeCount_ValueChanged(object sender, EventArgs e)
{
NumericUpDown numeric = (NumericUpDown)sender;
if (formloading) return;
- if (numeric.Value > 0) numericUpDownAufgabeCount_Leave(this, null);
+ if (numeric.Value > 0) NumericUpDownAufgabeCount_Leave(this, null);
else { meldung.GetFehler(this, $"Du hast für deine Aufgabe noch keine Auftraganzahl eingegeben. Hole das bitte jetzt nach."); return; }
_tosave = true;
}
- private void comboBoxService_SelectedValueChanged(object sender, EventArgs e)
+ private void ComboBoxService_SelectedValueChanged(object sender, EventArgs e)
{
if (formloading) return;
if (this.comboBoxService.Enabled == true) this.kunde.Service = this.comboBoxService.SelectedValue.ToString();
else return;
_tosave = true;
}
- private void comboBoxLieferrhythmus_SelectedIndexChanged(object sender, EventArgs e)
+ private void ComboBoxLieferrhythmus_SelectedIndexChanged(object sender, EventArgs e)
{
if (formloading) return;
this.kunde.SommerLieferRhythmus = (int)this.comboBoxLRSommer.SelectedValue;
@@ -612,7 +601,7 @@ namespace Deckungsbeitrag
if (MessageBox.Show("Möchtest du die Änderungen speichern?", "FRAGE", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes) this.kunde.Save();
}
}
- private void checkBoxNW_Click(object sender, EventArgs e)
+ private void CheckBoxNW_Click(object sender, EventArgs e)
{
if (formloading) return;
this.kunde.HatNachwaesche = this.checkBoxNW.Checked;
diff --git a/AA-Forms/FormKundeVW.designer.cs b/AA-Forms/FormKundeVW.designer.cs
index 6118e56..b872ae4 100644
--- a/AA-Forms/FormKundeVW.designer.cs
+++ b/AA-Forms/FormKundeVW.designer.cs
@@ -297,8 +297,8 @@ namespace Deckungsbeitrag
this.comboBoxAufgabe.Name = "comboBoxAufgabe";
this.comboBoxAufgabe.Size = new System.Drawing.Size(263, 33);
this.comboBoxAufgabe.TabIndex = 41;
- this.comboBoxAufgabe.SelectedIndexChanged += new System.EventHandler(this.comboBoxAufgabe_SelectedIndexChanged);
- this.comboBoxAufgabe.DropDownClosed += new System.EventHandler(this.comboBoxAufgabe_DropDownClosed);
+ this.comboBoxAufgabe.SelectedIndexChanged += new System.EventHandler(this.ComboBoxAufgabe_SelectedIndexChanged);
+ this.comboBoxAufgabe.DropDownClosed += new System.EventHandler(this.ComboBoxAufgabe_DropDownClosed);
//
// label2
//
@@ -326,7 +326,7 @@ namespace Deckungsbeitrag
this.nächsterKundeToolStripMenuItem.ShortcutKeys = System.Windows.Forms.Keys.F9;
this.nächsterKundeToolStripMenuItem.Size = new System.Drawing.Size(216, 24);
this.nächsterKundeToolStripMenuItem.Text = "Nächster Kunde";
- this.nächsterKundeToolStripMenuItem.Click += new System.EventHandler(this.nächsterKundeToolStripMenuItem_Click);
+ this.nächsterKundeToolStripMenuItem.Click += new System.EventHandler(this.NaechsterKundeToolStripMenuItem_Click);
//
// tabControlKunde
//
@@ -600,7 +600,7 @@ namespace Deckungsbeitrag
this.buttonSpeichern.TabIndex = 37;
this.buttonSpeichern.Text = "Stand speichern";
this.buttonSpeichern.UseVisualStyleBackColor = false;
- this.buttonSpeichern.Click += new System.EventHandler(this.standSpeichernToolStripMenuItem_Click);
+ this.buttonSpeichern.Click += new System.EventHandler(this.StandSpeichernToolStripMenuItem_Click);
//
// dGArtikel
//
@@ -626,8 +626,8 @@ namespace Deckungsbeitrag
this.dGArtikel.RowHeadersWidth = 51;
this.dGArtikel.Size = new System.Drawing.Size(989, 672);
this.dGArtikel.TabIndex = 11;
- this.dGArtikel.CellBeginEdit += new System.Windows.Forms.DataGridViewCellCancelEventHandler(this.dGArtikel_CellBeginEdit);
- this.dGArtikel.CellValueChanged += new System.Windows.Forms.DataGridViewCellEventHandler(this.dGArtikel_CellValueChanged);
+ this.dGArtikel.CellBeginEdit += new System.Windows.Forms.DataGridViewCellCancelEventHandler(this.DGArtikel_CellBeginEdit);
+ this.dGArtikel.CellValueChanged += new System.Windows.Forms.DataGridViewCellEventHandler(this.DGArtikel_CellValueChanged);
//
// KundeArtikelID
//
@@ -743,7 +743,7 @@ namespace Deckungsbeitrag
this.comboBoxService.Name = "comboBoxService";
this.comboBoxService.Size = new System.Drawing.Size(315, 33);
this.comboBoxService.TabIndex = 48;
- this.comboBoxService.SelectedValueChanged += new System.EventHandler(this.comboBoxService_SelectedValueChanged);
+ this.comboBoxService.SelectedValueChanged += new System.EventHandler(this.ComboBoxService_SelectedValueChanged);
//
// textBoxAnmerkung
//
@@ -756,8 +756,8 @@ namespace Deckungsbeitrag
this.textBoxAnmerkung.ScrollBars = System.Windows.Forms.ScrollBars.Both;
this.textBoxAnmerkung.Size = new System.Drawing.Size(352, 183);
this.textBoxAnmerkung.TabIndex = 50;
- this.textBoxAnmerkung.TextChanged += new System.EventHandler(this.textBoxAnmerkung_TextChanged);
- this.textBoxAnmerkung.Leave += new System.EventHandler(this.textBoxAnmerkung_Leave);
+ this.textBoxAnmerkung.TextChanged += new System.EventHandler(this.TextBoxAnmerkung_TextChanged);
+ this.textBoxAnmerkung.Leave += new System.EventHandler(this.TextBoxAnmerkung_Leave);
//
// label4
//
@@ -793,8 +793,8 @@ namespace Deckungsbeitrag
this.numericUpDownAufgabeCount.Name = "numericUpDownAufgabeCount";
this.numericUpDownAufgabeCount.Size = new System.Drawing.Size(46, 34);
this.numericUpDownAufgabeCount.TabIndex = 53;
- this.numericUpDownAufgabeCount.ValueChanged += new System.EventHandler(this.numericUpDownAufgabeCount_ValueChanged);
- this.numericUpDownAufgabeCount.Leave += new System.EventHandler(this.numericUpDownAufgabeCount_Leave);
+ this.numericUpDownAufgabeCount.ValueChanged += new System.EventHandler(this.NumericUpDownAufgabeCount_ValueChanged);
+ this.numericUpDownAufgabeCount.Leave += new System.EventHandler(this.NumericUpDownAufgabeCount_Leave);
//
// comboBoxLRSommer
//
@@ -805,7 +805,7 @@ namespace Deckungsbeitrag
this.comboBoxLRSommer.Name = "comboBoxLRSommer";
this.comboBoxLRSommer.Size = new System.Drawing.Size(170, 33);
this.comboBoxLRSommer.TabIndex = 55;
- this.comboBoxLRSommer.SelectedIndexChanged += new System.EventHandler(this.comboBoxLieferrhythmus_SelectedIndexChanged);
+ this.comboBoxLRSommer.SelectedIndexChanged += new System.EventHandler(this.ComboBoxLieferrhythmus_SelectedIndexChanged);
//
// label5
//
@@ -827,7 +827,7 @@ namespace Deckungsbeitrag
this.comboBoxLRWinter.Name = "comboBoxLRWinter";
this.comboBoxLRWinter.Size = new System.Drawing.Size(170, 33);
this.comboBoxLRWinter.TabIndex = 56;
- this.comboBoxLRWinter.SelectedIndexChanged += new System.EventHandler(this.comboBoxLieferrhythmus_SelectedIndexChanged);
+ this.comboBoxLRWinter.SelectedIndexChanged += new System.EventHandler(this.ComboBoxLieferrhythmus_SelectedIndexChanged);
//
// label6
//
@@ -859,7 +859,7 @@ namespace Deckungsbeitrag
this.buttonServiceBearbeiten.Size = new System.Drawing.Size(28, 28);
this.buttonServiceBearbeiten.TabIndex = 49;
this.buttonServiceBearbeiten.UseVisualStyleBackColor = true;
- this.buttonServiceBearbeiten.Click += new System.EventHandler(this.buttonServiceBearbeiten_Click);
+ this.buttonServiceBearbeiten.Click += new System.EventHandler(this.ButtonServiceBearbeiten_Click);
//
// buttonAufgEnt
//
@@ -869,7 +869,7 @@ namespace Deckungsbeitrag
this.buttonAufgEnt.Size = new System.Drawing.Size(28, 28);
this.buttonAufgEnt.TabIndex = 43;
this.buttonAufgEnt.UseVisualStyleBackColor = true;
- this.buttonAufgEnt.Click += new System.EventHandler(this.buttonAufgEnt_Click);
+ this.buttonAufgEnt.Click += new System.EventHandler(this.ButtonAufgEnt_Click);
//
// pictureBoxQRCode
//
@@ -892,7 +892,7 @@ namespace Deckungsbeitrag
this.checkBoxNW.TabIndex = 59;
this.checkBoxNW.Text = "NW";
this.checkBoxNW.UseVisualStyleBackColor = true;
- this.checkBoxNW.Click += new System.EventHandler(this.checkBoxNW_Click);
+ this.checkBoxNW.Click += new System.EventHandler(this.CheckBoxNW_Click);
//
// FormKundeVW
//
diff --git a/AA-Forms/FormListe.cs b/AA-Forms/FormListe.cs
index 985ad76..d02ade7 100644
--- a/AA-Forms/FormListe.cs
+++ b/AA-Forms/FormListe.cs
@@ -31,22 +31,14 @@ namespace Deckungsbeitrag
public Benutzer benutzer;
public Auftrag auftrag;
private List Kundenliste;
- private List Aufgabenliste;
- private List Benutzerliste;
private List Auftragliste;
private List Finishingliste;
private Meldungen meldung = new Meldungen();
- bool isKundenliste = false;
- bool isAufgabenliste = false;
- bool isBenutzerliste = false;
int type_of_list;
- string path = "C:\\Windows\\WinSxS\\amd64_microsoft-windows-osk_31bf3856ad364e35_10.0.22621.3672_none_8a93c823d58f9d77\\osk.exe";
string ben_col = "Vorname,Nachname,Benutzername,Rolle,Schein,Gueltig bis,Aktiv";
string knd_col = "KundenNr,Suchtext,KundenName,Ort";
string auf_col = "Aufgabe,Beschreibung";
string auftrag_col = "Kunde,Liefertag,Container";
- string progFiles = @"C:\Program Files\Common Files\Microsoft Shared\ink";
- string keyboardPath;
private Timer timer;
private string kndService;
@@ -56,16 +48,6 @@ namespace Deckungsbeitrag
{
InitializeComponent();
}
- public FormListe(List kundenliste) :this()
- {
- this.Kundenliste = kundenliste;
- isKundenliste = true;
- }
- public FormListe(FormMain formMain) :this()
- {
- isAufgabenliste = true;
- Aufgabenliste = Aufgabe.GetList(null);
- }
public FormListe(List