Forms gelöscht und Benennungsregeln ausgebessert. Codeoptik verbessert.
This commit is contained in:
parent
91141484f3
commit
cb1ecafc8a
106
AA-Forms/FormAufleger.Designer.cs
generated
106
AA-Forms/FormAufleger.Designer.cs
generated
@ -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";
|
||||
|
||||
@ -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();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
@ -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<Fach> fachliste;
|
||||
bool maximised = false;
|
||||
//bool maximised = false;
|
||||
int height;
|
||||
Point loc;
|
||||
|
||||
|
||||
74
AA-Forms/FormExpedit.Designer.cs
generated
74
AA-Forms/FormExpedit.Designer.cs
generated
@ -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<BrightIdeasSoftware.CellClickEventArgs>(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<BrightIdeasSoftware.CellClickEventArgs>(this.objectListViewAuftrag_CellClick);
|
||||
this.objectListViewSonder.CellRightClick += new System.EventHandler<BrightIdeasSoftware.CellRightClickEventArgs>(this.objectListViewAuftrag_CellRightClick);
|
||||
this.objectListViewSonder.FormatCell += new System.EventHandler<BrightIdeasSoftware.FormatCellEventArgs>(this.objectListViewAuftrag_FormatCell);
|
||||
this.objectListViewSonder.ButtonClick += new System.EventHandler<BrightIdeasSoftware.CellClickEventArgs>(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<BrightIdeasSoftware.CellClickEventArgs>(this.ObjectListViewAuftrag_CellClick);
|
||||
this.objectListViewSonder.CellRightClick += new System.EventHandler<BrightIdeasSoftware.CellRightClickEventArgs>(this.ObjectListViewAuftrag_CellRightClick);
|
||||
this.objectListViewSonder.FormatCell += new System.EventHandler<BrightIdeasSoftware.FormatCellEventArgs>(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<BrightIdeasSoftware.CellClickEventArgs>(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<BrightIdeasSoftware.CellClickEventArgs>(this.objectListViewAuftrag_CellClick);
|
||||
this.objectListViewGeschaeft.CellRightClick += new System.EventHandler<BrightIdeasSoftware.CellRightClickEventArgs>(this.objectListViewAuftrag_CellRightClick);
|
||||
this.objectListViewGeschaeft.FormatCell += new System.EventHandler<BrightIdeasSoftware.FormatCellEventArgs>(this.objectListViewAuftrag_FormatCell);
|
||||
this.objectListViewGeschaeft.ButtonClick += new System.EventHandler<BrightIdeasSoftware.CellClickEventArgs>(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<BrightIdeasSoftware.CellClickEventArgs>(this.ObjectListViewAuftrag_CellClick);
|
||||
this.objectListViewGeschaeft.CellRightClick += new System.EventHandler<BrightIdeasSoftware.CellRightClickEventArgs>(this.ObjectListViewAuftrag_CellRightClick);
|
||||
this.objectListViewGeschaeft.FormatCell += new System.EventHandler<BrightIdeasSoftware.FormatCellEventArgs>(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<BrightIdeasSoftware.CellClickEventArgs>(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<BrightIdeasSoftware.CellClickEventArgs>(this.objectListViewAuftrag_CellClick);
|
||||
this.objectListViewAuftrag.CellRightClick += new System.EventHandler<BrightIdeasSoftware.CellRightClickEventArgs>(this.objectListViewAuftrag_CellRightClick);
|
||||
this.objectListViewAuftrag.FormatCell += new System.EventHandler<BrightIdeasSoftware.FormatCellEventArgs>(this.objectListViewAuftrag_FormatCell);
|
||||
this.objectListViewAuftrag.ButtonClick += new System.EventHandler<BrightIdeasSoftware.CellClickEventArgs>(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<BrightIdeasSoftware.CellClickEventArgs>(this.ObjectListViewAuftrag_CellClick);
|
||||
this.objectListViewAuftrag.CellRightClick += new System.EventHandler<BrightIdeasSoftware.CellRightClickEventArgs>(this.ObjectListViewAuftrag_CellRightClick);
|
||||
this.objectListViewAuftrag.FormatCell += new System.EventHandler<BrightIdeasSoftware.FormatCellEventArgs>(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<BrightIdeasSoftware.CellClickEventArgs>(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<BrightIdeasSoftware.CellClickEventArgs>(this.objectListViewAuftrag_CellClick);
|
||||
this.objectListViewVorbereitet.FormatCell += new System.EventHandler<BrightIdeasSoftware.FormatCellEventArgs>(this.objectListViewAuftrag_FormatCell);
|
||||
this.objectListViewVorbereitet.ButtonClick += new System.EventHandler<BrightIdeasSoftware.CellClickEventArgs>(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<BrightIdeasSoftware.CellClickEventArgs>(this.ObjectListViewAuftrag_CellClick);
|
||||
this.objectListViewVorbereitet.FormatCell += new System.EventHandler<BrightIdeasSoftware.FormatCellEventArgs>(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
|
||||
//
|
||||
|
||||
@ -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<KundeArtikel> artikelListe;
|
||||
private List<Auftrag> auftraglist;
|
||||
private List<Auftrag> sonderlist;
|
||||
private List<Auftrag> geschaeftlist;
|
||||
private List<Auftrag> suchliste;
|
||||
private List<Auftrag> rampenlist;
|
||||
private List<Auftrag> 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<View_Auftrag_Expedit> listAuftragToday;
|
||||
private List<View_Auftrag_Expedit> listAuftragGeschaeft;
|
||||
private List<View_Auftrag_Expedit> 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<Benutzer> 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<OLVColumn>().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
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
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
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
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
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Aufträge für TabPages werden von DB-VIEW geladen.
|
||||
/// </summary>
|
||||
/// <param name="liste">null wemm alle Listen neu geladen werden sollen</param>
|
||||
/// <returns>Task zu FormLoad</returns>
|
||||
private async Task GetAuftraegeAsync(ListenArt? liste)
|
||||
{
|
||||
|
||||
@ -909,6 +861,7 @@ namespace Deckungsbeitrag
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Zeigt Fenster zur Eingabe von Text.
|
||||
/// </summary>
|
||||
@ -940,6 +893,7 @@ namespace Deckungsbeitrag
|
||||
/// </summary>
|
||||
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
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
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
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
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
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
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
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
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
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
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();
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -26,22 +26,13 @@ namespace Deckungsbeitrag
|
||||
{
|
||||
private FilterInfoCollection videoDevices;
|
||||
List<Sortiment> sortimentListe = null;
|
||||
List<Sortiment> resultList = null;
|
||||
List<KundeArtikel> 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
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
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
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
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
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
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;
|
||||
|
||||
32
AA-Forms/FormKundeVW.designer.cs
generated
32
AA-Forms/FormKundeVW.designer.cs
generated
@ -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
|
||||
//
|
||||
|
||||
@ -31,22 +31,14 @@ namespace Deckungsbeitrag
|
||||
public Benutzer benutzer;
|
||||
public Auftrag auftrag;
|
||||
private List<Kunde> Kundenliste;
|
||||
private List<Aufgabe> Aufgabenliste;
|
||||
private List<Benutzer> Benutzerliste;
|
||||
private List<Auftrag> Auftragliste;
|
||||
private List<Auftrag> 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<Kunde> kundenliste) :this()
|
||||
{
|
||||
this.Kundenliste = kundenliste;
|
||||
isKundenliste = true;
|
||||
}
|
||||
public FormListe(FormMain formMain) :this()
|
||||
{
|
||||
isAufgabenliste = true;
|
||||
Aufgabenliste = Aufgabe.GetList(null);
|
||||
}
|
||||
public FormListe(List<object> objliste, int listentyp) : this()
|
||||
{
|
||||
// Welcher Listentyp angezeigt wird muss beim Öffnen mitgegeben werden.
|
||||
|
||||
150
AA-Forms/FormMain.Designer.cs
generated
150
AA-Forms/FormMain.Designer.cs
generated
@ -171,10 +171,10 @@ namespace Deckungsbeitrag
|
||||
this.tSBBenutzerVW.Size = new System.Drawing.Size(180, 40);
|
||||
this.tSBBenutzerVW.Text = "BENUTZERVERWALTUNG";
|
||||
this.tSBBenutzerVW.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
|
||||
this.tSBBenutzerVW.Click += new System.EventHandler(this.tSBBenutzerVW_Click);
|
||||
this.tSBBenutzerVW.MouseEnter += new System.EventHandler(this.toolStrip_MouseEnter);
|
||||
this.tSBBenutzerVW.MouseLeave += new System.EventHandler(this.toolStrip_MouseLeave);
|
||||
this.tSBBenutzerVW.Paint += new System.Windows.Forms.PaintEventHandler(this.get_Border_Paint);
|
||||
this.tSBBenutzerVW.Click += new System.EventHandler(this.TSBBenutzerVW_Click);
|
||||
this.tSBBenutzerVW.MouseEnter += new System.EventHandler(this.ToolStrip_MouseEnter);
|
||||
this.tSBBenutzerVW.MouseLeave += new System.EventHandler(this.ToolStrip_MouseLeave);
|
||||
this.tSBBenutzerVW.Paint += new System.Windows.Forms.PaintEventHandler(this.Get_Border_Paint);
|
||||
//
|
||||
// tSBAuftragVW
|
||||
//
|
||||
@ -192,10 +192,10 @@ namespace Deckungsbeitrag
|
||||
this.tSBAuftragVW.Text = "AUFTRAGVERWALTUNG";
|
||||
this.tSBAuftragVW.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
|
||||
this.tSBAuftragVW.ToolTipText = "Auftragkontrolle und -bearbeitung";
|
||||
this.tSBAuftragVW.Click += new System.EventHandler(this.tSBAuftragVW_Click);
|
||||
this.tSBAuftragVW.MouseEnter += new System.EventHandler(this.toolStrip_MouseEnter);
|
||||
this.tSBAuftragVW.MouseLeave += new System.EventHandler(this.toolStrip_MouseLeave);
|
||||
this.tSBAuftragVW.Paint += new System.Windows.Forms.PaintEventHandler(this.get_Border_Paint);
|
||||
this.tSBAuftragVW.Click += new System.EventHandler(this.TSBAuftragVW_Click);
|
||||
this.tSBAuftragVW.MouseEnter += new System.EventHandler(this.ToolStrip_MouseEnter);
|
||||
this.tSBAuftragVW.MouseLeave += new System.EventHandler(this.ToolStrip_MouseLeave);
|
||||
this.tSBAuftragVW.Paint += new System.Windows.Forms.PaintEventHandler(this.Get_Border_Paint);
|
||||
//
|
||||
// tSBAufgabeVW
|
||||
//
|
||||
@ -212,10 +212,10 @@ namespace Deckungsbeitrag
|
||||
this.tSBAufgabeVW.Size = new System.Drawing.Size(180, 40);
|
||||
this.tSBAufgabeVW.Text = "AUFGABENVERWALTUNG";
|
||||
this.tSBAufgabeVW.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
|
||||
this.tSBAufgabeVW.Click += new System.EventHandler(this.tSBAufgabeVW_Click);
|
||||
this.tSBAufgabeVW.MouseEnter += new System.EventHandler(this.toolStrip_MouseEnter);
|
||||
this.tSBAufgabeVW.MouseLeave += new System.EventHandler(this.toolStrip_MouseLeave);
|
||||
this.tSBAufgabeVW.Paint += new System.Windows.Forms.PaintEventHandler(this.get_Border_Paint);
|
||||
this.tSBAufgabeVW.Click += new System.EventHandler(this.TSBAufgabeVW_Click);
|
||||
this.tSBAufgabeVW.MouseEnter += new System.EventHandler(this.ToolStrip_MouseEnter);
|
||||
this.tSBAufgabeVW.MouseLeave += new System.EventHandler(this.ToolStrip_MouseLeave);
|
||||
this.tSBAufgabeVW.Paint += new System.Windows.Forms.PaintEventHandler(this.Get_Border_Paint);
|
||||
//
|
||||
// tSBArtikelVW
|
||||
//
|
||||
@ -233,10 +233,10 @@ namespace Deckungsbeitrag
|
||||
this.tSBArtikelVW.Text = "ARTIKELVERWALTUNG";
|
||||
this.tSBArtikelVW.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
|
||||
this.tSBArtikelVW.ToolTipText = "Artikel bearbeiten";
|
||||
this.tSBArtikelVW.Click += new System.EventHandler(this.tSBArtikelVW_Click);
|
||||
this.tSBArtikelVW.MouseEnter += new System.EventHandler(this.toolStrip_MouseEnter);
|
||||
this.tSBArtikelVW.MouseLeave += new System.EventHandler(this.toolStrip_MouseLeave);
|
||||
this.tSBArtikelVW.Paint += new System.Windows.Forms.PaintEventHandler(this.get_Border_Paint);
|
||||
this.tSBArtikelVW.Click += new System.EventHandler(this.TSBArtikelVW_Click);
|
||||
this.tSBArtikelVW.MouseEnter += new System.EventHandler(this.ToolStrip_MouseEnter);
|
||||
this.tSBArtikelVW.MouseLeave += new System.EventHandler(this.ToolStrip_MouseLeave);
|
||||
this.tSBArtikelVW.Paint += new System.Windows.Forms.PaintEventHandler(this.Get_Border_Paint);
|
||||
//
|
||||
// toolStripZaehlscheine
|
||||
//
|
||||
@ -254,10 +254,10 @@ namespace Deckungsbeitrag
|
||||
this.toolStripZaehlscheine.Text = "KUNDENVERWALTUNG";
|
||||
this.toolStripZaehlscheine.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
|
||||
this.toolStripZaehlscheine.ToolTipText = "Kunde bearbeiten";
|
||||
this.toolStripZaehlscheine.Click += new System.EventHandler(this.toolStripZaehlscheine_Click);
|
||||
this.toolStripZaehlscheine.MouseEnter += new System.EventHandler(this.toolStrip_MouseEnter);
|
||||
this.toolStripZaehlscheine.MouseLeave += new System.EventHandler(this.toolStrip_MouseLeave);
|
||||
this.toolStripZaehlscheine.Paint += new System.Windows.Forms.PaintEventHandler(this.get_Border_Paint);
|
||||
this.toolStripZaehlscheine.Click += new System.EventHandler(this.ToolStripZaehlscheine_Click);
|
||||
this.toolStripZaehlscheine.MouseEnter += new System.EventHandler(this.ToolStrip_MouseEnter);
|
||||
this.toolStripZaehlscheine.MouseLeave += new System.EventHandler(this.ToolStrip_MouseLeave);
|
||||
this.toolStripZaehlscheine.Paint += new System.Windows.Forms.PaintEventHandler(this.Get_Border_Paint);
|
||||
//
|
||||
// tSBExpedit
|
||||
//
|
||||
@ -274,10 +274,10 @@ namespace Deckungsbeitrag
|
||||
this.tSBExpedit.Size = new System.Drawing.Size(180, 40);
|
||||
this.tSBExpedit.Text = "EXPEDIT";
|
||||
this.tSBExpedit.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
|
||||
this.tSBExpedit.Click += new System.EventHandler(this.tSBExpedit_Click);
|
||||
this.tSBExpedit.MouseEnter += new System.EventHandler(this.toolStrip_MouseEnter);
|
||||
this.tSBExpedit.MouseLeave += new System.EventHandler(this.toolStrip_MouseLeave);
|
||||
this.tSBExpedit.Paint += new System.Windows.Forms.PaintEventHandler(this.get_Border_Paint);
|
||||
this.tSBExpedit.Click += new System.EventHandler(this.TSBExpedit_Click);
|
||||
this.tSBExpedit.MouseEnter += new System.EventHandler(this.ToolStrip_MouseEnter);
|
||||
this.tSBExpedit.MouseLeave += new System.EventHandler(this.ToolStrip_MouseLeave);
|
||||
this.tSBExpedit.Paint += new System.Windows.Forms.PaintEventHandler(this.Get_Border_Paint);
|
||||
//
|
||||
// toolStripDB
|
||||
//
|
||||
@ -295,10 +295,10 @@ namespace Deckungsbeitrag
|
||||
this.toolStripDB.Text = "DECKUNGSBEITRAG";
|
||||
this.toolStripDB.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
|
||||
this.toolStripDB.Visible = false;
|
||||
this.toolStripDB.Click += new System.EventHandler(this.toolStripDB_Click);
|
||||
this.toolStripDB.MouseEnter += new System.EventHandler(this.toolStrip_MouseEnter);
|
||||
this.toolStripDB.MouseLeave += new System.EventHandler(this.toolStrip_MouseLeave);
|
||||
this.toolStripDB.Paint += new System.Windows.Forms.PaintEventHandler(this.get_Border_Paint);
|
||||
this.toolStripDB.Click += new System.EventHandler(this.ToolStripDB_Click);
|
||||
this.toolStripDB.MouseEnter += new System.EventHandler(this.ToolStrip_MouseEnter);
|
||||
this.toolStripDB.MouseLeave += new System.EventHandler(this.ToolStrip_MouseLeave);
|
||||
this.toolStripDB.Paint += new System.Windows.Forms.PaintEventHandler(this.Get_Border_Paint);
|
||||
//
|
||||
// tSBKosten
|
||||
//
|
||||
@ -316,10 +316,10 @@ namespace Deckungsbeitrag
|
||||
this.tSBKosten.Text = "KOSTENLISTE";
|
||||
this.tSBKosten.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
|
||||
this.tSBKosten.Visible = false;
|
||||
this.tSBKosten.Click += new System.EventHandler(this.tSBKosten_Click);
|
||||
this.tSBKosten.MouseEnter += new System.EventHandler(this.toolStrip_MouseEnter);
|
||||
this.tSBKosten.MouseLeave += new System.EventHandler(this.toolStrip_MouseLeave);
|
||||
this.tSBKosten.Paint += new System.Windows.Forms.PaintEventHandler(this.get_Border_Paint);
|
||||
this.tSBKosten.Click += new System.EventHandler(this.TSBKosten_Click);
|
||||
this.tSBKosten.MouseEnter += new System.EventHandler(this.ToolStrip_MouseEnter);
|
||||
this.tSBKosten.MouseLeave += new System.EventHandler(this.ToolStrip_MouseLeave);
|
||||
this.tSBKosten.Paint += new System.Windows.Forms.PaintEventHandler(this.Get_Border_Paint);
|
||||
//
|
||||
// toolStripButton1
|
||||
//
|
||||
@ -350,10 +350,10 @@ namespace Deckungsbeitrag
|
||||
this.tSBScannTest.Text = "SCANN TEST";
|
||||
this.tSBScannTest.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
|
||||
this.tSBScannTest.Visible = false;
|
||||
this.tSBScannTest.Click += new System.EventHandler(this.tSBScannTest_Click);
|
||||
this.tSBScannTest.MouseEnter += new System.EventHandler(this.toolStrip_MouseEnter);
|
||||
this.tSBScannTest.MouseLeave += new System.EventHandler(this.toolStrip_MouseLeave);
|
||||
this.tSBScannTest.Paint += new System.Windows.Forms.PaintEventHandler(this.get_Border_Paint);
|
||||
this.tSBScannTest.Click += new System.EventHandler(this.TSBScannTest_Click);
|
||||
this.tSBScannTest.MouseEnter += new System.EventHandler(this.ToolStrip_MouseEnter);
|
||||
this.tSBScannTest.MouseLeave += new System.EventHandler(this.ToolStrip_MouseLeave);
|
||||
this.tSBScannTest.Paint += new System.Windows.Forms.PaintEventHandler(this.Get_Border_Paint);
|
||||
//
|
||||
// tSBHilfe
|
||||
//
|
||||
@ -371,7 +371,7 @@ namespace Deckungsbeitrag
|
||||
this.tSBHilfe.Size = new System.Drawing.Size(180, 40);
|
||||
this.tSBHilfe.Text = "HILFE";
|
||||
this.tSBHilfe.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
|
||||
this.tSBHilfe.Click += new System.EventHandler(this.tSBHilfe_Click);
|
||||
this.tSBHilfe.Click += new System.EventHandler(this.TSBHilfe_Click);
|
||||
//
|
||||
// toolStripButtonImport
|
||||
//
|
||||
@ -389,10 +389,10 @@ namespace Deckungsbeitrag
|
||||
this.toolStripButtonImport.Text = "IMPORT";
|
||||
this.toolStripButtonImport.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
|
||||
this.toolStripButtonImport.Visible = false;
|
||||
this.toolStripButtonImport.Click += new System.EventHandler(this.toolStripButtonImport_Click);
|
||||
this.toolStripButtonImport.MouseEnter += new System.EventHandler(this.toolStrip_MouseEnter);
|
||||
this.toolStripButtonImport.MouseLeave += new System.EventHandler(this.toolStrip_MouseLeave);
|
||||
this.toolStripButtonImport.Paint += new System.Windows.Forms.PaintEventHandler(this.get_Border_Paint);
|
||||
this.toolStripButtonImport.Click += new System.EventHandler(this.ToolStripButtonImport_Click);
|
||||
this.toolStripButtonImport.MouseEnter += new System.EventHandler(this.ToolStrip_MouseEnter);
|
||||
this.toolStripButtonImport.MouseLeave += new System.EventHandler(this.ToolStrip_MouseLeave);
|
||||
this.toolStripButtonImport.Paint += new System.Windows.Forms.PaintEventHandler(this.Get_Border_Paint);
|
||||
//
|
||||
// tSBEinstellung
|
||||
//
|
||||
@ -408,7 +408,7 @@ namespace Deckungsbeitrag
|
||||
this.tSBEinstellung.Size = new System.Drawing.Size(180, 40);
|
||||
this.tSBEinstellung.Text = "EINSTELLUNG";
|
||||
this.tSBEinstellung.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
|
||||
this.tSBEinstellung.Click += new System.EventHandler(this.tSBEinstellung_Click);
|
||||
this.tSBEinstellung.Click += new System.EventHandler(this.TSBEinstellung_Click);
|
||||
//
|
||||
// tSBWaschstrasse
|
||||
//
|
||||
@ -425,10 +425,10 @@ namespace Deckungsbeitrag
|
||||
this.tSBWaschstrasse.Size = new System.Drawing.Size(180, 40);
|
||||
this.tSBWaschstrasse.Text = "STATUS RAMPE";
|
||||
this.tSBWaschstrasse.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
|
||||
this.tSBWaschstrasse.Click += new System.EventHandler(this.tSBWaschstrasse_Click);
|
||||
this.tSBWaschstrasse.MouseEnter += new System.EventHandler(this.toolStrip_MouseEnter);
|
||||
this.tSBWaschstrasse.MouseLeave += new System.EventHandler(this.toolStrip_MouseLeave);
|
||||
this.tSBWaschstrasse.Paint += new System.Windows.Forms.PaintEventHandler(this.get_Border_Paint);
|
||||
this.tSBWaschstrasse.Click += new System.EventHandler(this.TSBWaschstrasse_Click);
|
||||
this.tSBWaschstrasse.MouseEnter += new System.EventHandler(this.ToolStrip_MouseEnter);
|
||||
this.tSBWaschstrasse.MouseLeave += new System.EventHandler(this.ToolStrip_MouseLeave);
|
||||
this.tSBWaschstrasse.Paint += new System.Windows.Forms.PaintEventHandler(this.Get_Border_Paint);
|
||||
//
|
||||
// tSBTourenplanung
|
||||
//
|
||||
@ -445,10 +445,10 @@ namespace Deckungsbeitrag
|
||||
this.tSBTourenplanung.Size = new System.Drawing.Size(180, 40);
|
||||
this.tSBTourenplanung.Text = "TOURENPLANUNG";
|
||||
this.tSBTourenplanung.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
|
||||
this.tSBTourenplanung.Click += new System.EventHandler(this.tSBTourenplanung_Click);
|
||||
this.tSBTourenplanung.MouseEnter += new System.EventHandler(this.toolStrip_MouseEnter);
|
||||
this.tSBTourenplanung.MouseLeave += new System.EventHandler(this.toolStrip_MouseLeave);
|
||||
this.tSBTourenplanung.Paint += new System.Windows.Forms.PaintEventHandler(this.get_Border_Paint);
|
||||
this.tSBTourenplanung.Click += new System.EventHandler(this.TSBTourenplanung_Click);
|
||||
this.tSBTourenplanung.MouseEnter += new System.EventHandler(this.ToolStrip_MouseEnter);
|
||||
this.tSBTourenplanung.MouseLeave += new System.EventHandler(this.ToolStrip_MouseLeave);
|
||||
this.tSBTourenplanung.Paint += new System.Windows.Forms.PaintEventHandler(this.Get_Border_Paint);
|
||||
//
|
||||
// toolStripBeenden
|
||||
//
|
||||
@ -465,10 +465,10 @@ namespace Deckungsbeitrag
|
||||
this.toolStripBeenden.Size = new System.Drawing.Size(180, 40);
|
||||
this.toolStripBeenden.Text = "BEENDEN";
|
||||
this.toolStripBeenden.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
|
||||
this.toolStripBeenden.Click += new System.EventHandler(this.toolStripBeenden_Click);
|
||||
this.toolStripBeenden.MouseEnter += new System.EventHandler(this.toolStrip_MouseEnter);
|
||||
this.toolStripBeenden.MouseLeave += new System.EventHandler(this.toolStrip_MouseLeave);
|
||||
this.toolStripBeenden.Paint += new System.Windows.Forms.PaintEventHandler(this.get_Border_Paint);
|
||||
this.toolStripBeenden.Click += new System.EventHandler(this.ToolStripBeenden_Click);
|
||||
this.toolStripBeenden.MouseEnter += new System.EventHandler(this.ToolStrip_MouseEnter);
|
||||
this.toolStripBeenden.MouseLeave += new System.EventHandler(this.ToolStrip_MouseLeave);
|
||||
this.toolStripBeenden.Paint += new System.Windows.Forms.PaintEventHandler(this.Get_Border_Paint);
|
||||
//
|
||||
// panelMain
|
||||
//
|
||||
@ -493,8 +493,8 @@ namespace Deckungsbeitrag
|
||||
this.panelMain.Name = "panelMain";
|
||||
this.panelMain.Size = new System.Drawing.Size(1417, 848);
|
||||
this.panelMain.TabIndex = 5;
|
||||
this.panelMain.Paint += new System.Windows.Forms.PaintEventHandler(this.panelMain_Paint);
|
||||
this.panelMain.Resize += new System.EventHandler(this.panelMain_Resize);
|
||||
this.panelMain.Paint += new System.Windows.Forms.PaintEventHandler(this.PanelMain_Paint);
|
||||
this.panelMain.Resize += new System.EventHandler(this.PanelMain_Resize);
|
||||
//
|
||||
// groupBoxAuftrag
|
||||
//
|
||||
@ -541,7 +541,7 @@ namespace Deckungsbeitrag
|
||||
this.objectListViewAuftrag.UseAlternatingBackColors = true;
|
||||
this.objectListViewAuftrag.UseCompatibleStateImageBehavior = false;
|
||||
this.objectListViewAuftrag.View = System.Windows.Forms.View.Details;
|
||||
this.objectListViewAuftrag.ItemChecked += new System.Windows.Forms.ItemCheckedEventHandler(this.objectListViewAuftrag_ItemChecked);
|
||||
this.objectListViewAuftrag.ItemChecked += new System.Windows.Forms.ItemCheckedEventHandler(this.ObjectListViewAuftrag_ItemChecked);
|
||||
//
|
||||
// rBAufAbruf
|
||||
//
|
||||
@ -636,7 +636,7 @@ namespace Deckungsbeitrag
|
||||
this.buttonAufAbruf.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;
|
||||
this.buttonAufAbruf.UseVisualStyleBackColor = false;
|
||||
this.buttonAufAbruf.Visible = false;
|
||||
this.buttonAufAbruf.Click += new System.EventHandler(this.buttonAufAbruf_Click);
|
||||
this.buttonAufAbruf.Click += new System.EventHandler(this.ButtonAufAbruf_Click);
|
||||
//
|
||||
// buttonAusgeliefert
|
||||
//
|
||||
@ -656,7 +656,7 @@ namespace Deckungsbeitrag
|
||||
this.buttonAusgeliefert.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;
|
||||
this.buttonAusgeliefert.UseVisualStyleBackColor = false;
|
||||
this.buttonAusgeliefert.Visible = false;
|
||||
this.buttonAusgeliefert.Click += new System.EventHandler(this.buttonAusgeliefert_Click);
|
||||
this.buttonAusgeliefert.Click += new System.EventHandler(this.ButtonAusgeliefert_Click);
|
||||
//
|
||||
// buttonNeuerRegAuft
|
||||
//
|
||||
@ -677,7 +677,7 @@ namespace Deckungsbeitrag
|
||||
this.buttonNeuerRegAuft.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;
|
||||
this.buttonNeuerRegAuft.UseVisualStyleBackColor = false;
|
||||
this.buttonNeuerRegAuft.Visible = false;
|
||||
this.buttonNeuerRegAuft.Click += new System.EventHandler(this.buttonRegAuftrag_Click);
|
||||
this.buttonNeuerRegAuft.Click += new System.EventHandler(this.ButtonRegAuftrag_Click);
|
||||
//
|
||||
// panelProgress
|
||||
//
|
||||
@ -711,7 +711,7 @@ namespace Deckungsbeitrag
|
||||
this.buttonKundeArtikelUpdate.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;
|
||||
this.buttonKundeArtikelUpdate.UseVisualStyleBackColor = false;
|
||||
this.buttonKundeArtikelUpdate.Visible = false;
|
||||
this.buttonKundeArtikelUpdate.Click += new System.EventHandler(this.buttonKundeArtikelUpdate_Click);
|
||||
this.buttonKundeArtikelUpdate.Click += new System.EventHandler(this.ButtonKundeArtikelUpdate_Click);
|
||||
//
|
||||
// progressBarKundeArtikelUpdate
|
||||
//
|
||||
@ -741,7 +741,7 @@ namespace Deckungsbeitrag
|
||||
this.buttonTourenliste.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;
|
||||
this.buttonTourenliste.UseVisualStyleBackColor = false;
|
||||
this.buttonTourenliste.Visible = false;
|
||||
this.buttonTourenliste.Click += new System.EventHandler(this.buttonTourenliste_Click);
|
||||
this.buttonTourenliste.Click += new System.EventHandler(this.ButtonTourenliste_Click);
|
||||
//
|
||||
// groupBoxContAnz
|
||||
//
|
||||
@ -759,8 +759,8 @@ namespace Deckungsbeitrag
|
||||
this.groupBoxContAnz.TabStop = false;
|
||||
this.groupBoxContAnz.Text = "CONT. ANZAHL / WASCHZEIT";
|
||||
this.groupBoxContAnz.Visible = false;
|
||||
this.groupBoxContAnz.GiveFeedback += new System.Windows.Forms.GiveFeedbackEventHandler(this.groupBox_GiveFeedback);
|
||||
this.groupBoxContAnz.Paint += new System.Windows.Forms.PaintEventHandler(this.groupBox_Paint);
|
||||
this.groupBoxContAnz.GiveFeedback += new System.Windows.Forms.GiveFeedbackEventHandler(this.GroupBox_GiveFeedback);
|
||||
this.groupBoxContAnz.Paint += new System.Windows.Forms.PaintEventHandler(this.GroupBox_Paint);
|
||||
//
|
||||
// tLPContAnz
|
||||
//
|
||||
@ -1204,8 +1204,8 @@ namespace Deckungsbeitrag
|
||||
this.groupBoxSaison.TabStop = false;
|
||||
this.groupBoxSaison.Text = "AKTIVE SAISON";
|
||||
this.groupBoxSaison.Visible = false;
|
||||
this.groupBoxSaison.GiveFeedback += new System.Windows.Forms.GiveFeedbackEventHandler(this.groupBox_GiveFeedback);
|
||||
this.groupBoxSaison.Paint += new System.Windows.Forms.PaintEventHandler(this.groupBox_Paint);
|
||||
this.groupBoxSaison.GiveFeedback += new System.Windows.Forms.GiveFeedbackEventHandler(this.GroupBox_GiveFeedback);
|
||||
this.groupBoxSaison.Paint += new System.Windows.Forms.PaintEventHandler(this.GroupBox_Paint);
|
||||
//
|
||||
// comboBoxSaison
|
||||
//
|
||||
@ -1217,7 +1217,7 @@ namespace Deckungsbeitrag
|
||||
this.comboBoxSaison.Name = "comboBoxSaison";
|
||||
this.comboBoxSaison.Size = new System.Drawing.Size(352, 33);
|
||||
this.comboBoxSaison.TabIndex = 66;
|
||||
this.comboBoxSaison.SelectedIndexChanged += new System.EventHandler(this.comboBoxSaison_SelectedIndexChanged);
|
||||
this.comboBoxSaison.SelectedIndexChanged += new System.EventHandler(this.ComboBoxSaison_SelectedIndexChanged);
|
||||
//
|
||||
// buttonNeuerStand
|
||||
//
|
||||
@ -1238,7 +1238,7 @@ namespace Deckungsbeitrag
|
||||
this.buttonNeuerStand.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;
|
||||
this.buttonNeuerStand.UseVisualStyleBackColor = false;
|
||||
this.buttonNeuerStand.Visible = false;
|
||||
this.buttonNeuerStand.Click += new System.EventHandler(this.buttonNeuerStand_Click);
|
||||
this.buttonNeuerStand.Click += new System.EventHandler(this.ButtonNeuerStand_Click);
|
||||
//
|
||||
// buttonNeueInventur
|
||||
//
|
||||
@ -1259,7 +1259,7 @@ namespace Deckungsbeitrag
|
||||
this.buttonNeueInventur.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;
|
||||
this.buttonNeueInventur.UseVisualStyleBackColor = false;
|
||||
this.buttonNeueInventur.Visible = false;
|
||||
this.buttonNeueInventur.Click += new System.EventHandler(this.buttonNeueInventur_Click);
|
||||
this.buttonNeueInventur.Click += new System.EventHandler(this.ButtonNeueInventur_Click);
|
||||
//
|
||||
// buttonNeueAufgabe
|
||||
//
|
||||
@ -1280,7 +1280,7 @@ namespace Deckungsbeitrag
|
||||
this.buttonNeueAufgabe.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;
|
||||
this.buttonNeueAufgabe.UseVisualStyleBackColor = false;
|
||||
this.buttonNeueAufgabe.Visible = false;
|
||||
this.buttonNeueAufgabe.Click += new System.EventHandler(this.buttonNeueAufgabe_Click);
|
||||
this.buttonNeueAufgabe.Click += new System.EventHandler(this.ButtonNeueAufgabe_Click);
|
||||
//
|
||||
// buttonNeuerAuftrag
|
||||
//
|
||||
@ -1301,7 +1301,7 @@ namespace Deckungsbeitrag
|
||||
this.buttonNeuerAuftrag.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;
|
||||
this.buttonNeuerAuftrag.UseVisualStyleBackColor = false;
|
||||
this.buttonNeuerAuftrag.Visible = false;
|
||||
this.buttonNeuerAuftrag.Click += new System.EventHandler(this.buttonNeuerAuftrag_Click);
|
||||
this.buttonNeuerAuftrag.Click += new System.EventHandler(this.ButtonNeuerAuftrag_Click);
|
||||
//
|
||||
// buttonNeuerUser
|
||||
//
|
||||
@ -1322,7 +1322,7 @@ namespace Deckungsbeitrag
|
||||
this.buttonNeuerUser.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;
|
||||
this.buttonNeuerUser.UseVisualStyleBackColor = false;
|
||||
this.buttonNeuerUser.Visible = false;
|
||||
this.buttonNeuerUser.Click += new System.EventHandler(this.buttonNeuerUser_Click);
|
||||
this.buttonNeuerUser.Click += new System.EventHandler(this.ButtonNeuerUser_Click);
|
||||
//
|
||||
// groupBoxUpdate
|
||||
//
|
||||
@ -1339,7 +1339,7 @@ namespace Deckungsbeitrag
|
||||
this.groupBoxUpdate.TabStop = false;
|
||||
this.groupBoxUpdate.Text = "PFAD FÜR UPDATES ODER IMPORTE";
|
||||
this.groupBoxUpdate.Visible = false;
|
||||
this.groupBoxUpdate.Paint += new System.Windows.Forms.PaintEventHandler(this.groupBox_Paint);
|
||||
this.groupBoxUpdate.Paint += new System.Windows.Forms.PaintEventHandler(this.GroupBox_Paint);
|
||||
//
|
||||
// tableLayoutPanelUpdate
|
||||
//
|
||||
@ -1478,7 +1478,7 @@ namespace Deckungsbeitrag
|
||||
this.textBoxScannTest.Name = "textBoxScannTest";
|
||||
this.textBoxScannTest.Size = new System.Drawing.Size(171, 30);
|
||||
this.textBoxScannTest.TabIndex = 13;
|
||||
this.textBoxScannTest.TextChanged += new System.EventHandler(this.textBoxScannTest_TextChanged);
|
||||
this.textBoxScannTest.TextChanged += new System.EventHandler(this.TextBoxScannTest_TextChanged);
|
||||
//
|
||||
// buttonScannTest
|
||||
//
|
||||
@ -1489,7 +1489,7 @@ namespace Deckungsbeitrag
|
||||
this.buttonScannTest.TabIndex = 12;
|
||||
this.buttonScannTest.Text = "Test starten";
|
||||
this.buttonScannTest.UseVisualStyleBackColor = true;
|
||||
this.buttonScannTest.Click += new System.EventHandler(this.buttonScannTest_Click);
|
||||
this.buttonScannTest.Click += new System.EventHandler(this.ButtonScannTest_Click);
|
||||
//
|
||||
// labelScannTest
|
||||
//
|
||||
|
||||
@ -36,12 +36,10 @@ namespace Deckungsbeitrag
|
||||
{
|
||||
#region Properties
|
||||
|
||||
private Benutzer benutzer = null;
|
||||
private Meldungen meldung = new Meldungen();
|
||||
private readonly Benutzer benutzer = null;
|
||||
private readonly Meldungen meldung = new Meldungen();
|
||||
private bool open = false;
|
||||
private bool isDragging = false;
|
||||
private Point dragStartPoint;
|
||||
private Point newLocation;
|
||||
private Size _fixedSize;
|
||||
private bool _handlingResize;
|
||||
private readonly UserSettingsManager _settings = new UserSettingsManager();
|
||||
@ -49,20 +47,14 @@ namespace Deckungsbeitrag
|
||||
private Dictionary<DateTime, List<Auftrag>> auftragliste;
|
||||
private Control draggedBox;
|
||||
private Point dragOffset;
|
||||
private Point dragOffsetButton;
|
||||
private PictureBox ghostImage;
|
||||
private Button draggedButton;
|
||||
private bool isButtonDragging = false;
|
||||
private Timer dragEndTimer;
|
||||
private Timer UserTimeout;
|
||||
private int verbleibendeZeitMs = 5 * 60 * 1000;
|
||||
private bool countdownAktiv = false;
|
||||
private readonly PictureBox ghostImage;
|
||||
private readonly bool isButtonDragging = false;
|
||||
private List<AuftragArtikel> ArtikellisteProAuftrag;
|
||||
private OnboardingSchritt onBoardingArt = OnboardingSchritt.Main;
|
||||
private UCStatistik uCStatistik;
|
||||
private UCAuftragSuchen uCAuftrag;
|
||||
private UCInventur uCInventur;
|
||||
private Screen screen = Screen.PrimaryScreen;
|
||||
private readonly Screen screen = Screen.PrimaryScreen;
|
||||
private Kunde kunde;
|
||||
#endregion
|
||||
public FormMain()
|
||||
@ -174,7 +166,6 @@ namespace Deckungsbeitrag
|
||||
/// <param name="e"></param>
|
||||
private void FormMain_FormClosing(object sender, FormClosingEventArgs e)
|
||||
{
|
||||
Form form = sender as Form;
|
||||
try
|
||||
{
|
||||
_settings.LocationButtonNeueAufgabe = this.buttonNeueAufgabe.Location;
|
||||
@ -202,12 +193,12 @@ namespace Deckungsbeitrag
|
||||
#endregion
|
||||
|
||||
#region ToolStripButton-Events
|
||||
private void get_Border_Paint(object sender, PaintEventArgs e)
|
||||
private void Get_Border_Paint(object sender, PaintEventArgs e)
|
||||
{
|
||||
ToolStripItem item = (ToolStripItem)sender;
|
||||
ControlPaint.DrawBorder(e.Graphics, new Rectangle(0, 0, item.Width, item.Height), Color.White, ButtonBorderStyle.Solid);
|
||||
}
|
||||
private void toolStrip_MouseEnter(object sender, EventArgs e)
|
||||
private void ToolStrip_MouseEnter(object sender, EventArgs e)
|
||||
{
|
||||
if (sender.GetType() == typeof(ToolStripButton))
|
||||
{
|
||||
@ -216,7 +207,7 @@ namespace Deckungsbeitrag
|
||||
tsb.BackColor = Color.White;
|
||||
}
|
||||
}
|
||||
private void toolStrip_MouseLeave(object sender, EventArgs e)
|
||||
private void ToolStrip_MouseLeave(object sender, EventArgs e)
|
||||
{
|
||||
if (sender.GetType() == typeof(ToolStripButton))
|
||||
{
|
||||
@ -225,21 +216,21 @@ namespace Deckungsbeitrag
|
||||
tsb.BackColor = Program.Wirlblau;
|
||||
}
|
||||
}
|
||||
private void tSBBenutzerVW_Click(object sender, EventArgs e)
|
||||
private void TSBBenutzerVW_Click(object sender, EventArgs e)
|
||||
{
|
||||
FormBenutzerVW benutzerVW = new FormBenutzerVW();
|
||||
benutzerVW.ShowDialog();
|
||||
}
|
||||
private void toolStripBeenden_Click(object sender, EventArgs e)
|
||||
private void ToolStripBeenden_Click(object sender, EventArgs e)
|
||||
{
|
||||
Application.Exit();
|
||||
}
|
||||
private void tSBAufgabeVW_Click(object sender, EventArgs e)
|
||||
private void TSBAufgabeVW_Click(object sender, EventArgs e)
|
||||
{
|
||||
FormAufgabeVW aufgabeVW = new FormAufgabeVW();
|
||||
aufgabeVW.ShowDialog();
|
||||
}
|
||||
private void toolStripZaehlscheine_Click(object sender, EventArgs e)
|
||||
private void ToolStripZaehlscheine_Click(object sender, EventArgs e)
|
||||
{
|
||||
FormKundeVW kundedaten = new FormKundeVW(this.benutzer);
|
||||
if (kundedaten.ShowDialog() == DialogResult.OK)
|
||||
@ -247,37 +238,37 @@ namespace Deckungsbeitrag
|
||||
|
||||
}
|
||||
}
|
||||
private void toolStripDB_Click(object sender, EventArgs e)
|
||||
private void ToolStripDB_Click(object sender, EventArgs e)
|
||||
{
|
||||
FormNeuDeckungsbeitrag deckungsbeitrag = new FormNeuDeckungsbeitrag(this.benutzer, false);
|
||||
if (deckungsbeitrag.ShowDialog() == DialogResult.OK) { }
|
||||
}
|
||||
private void tSBWaschstrasse_Click(object sender, EventArgs e)
|
||||
private void TSBWaschstrasse_Click(object sender, EventArgs e)
|
||||
{
|
||||
FormAufleger aufleger = new FormAufleger();
|
||||
aufleger.ShowDialog();
|
||||
}
|
||||
private void toolStripButtonImport_Click(object sender, EventArgs e)
|
||||
private void ToolStripButtonImport_Click(object sender, EventArgs e)
|
||||
{
|
||||
FormImport import = new FormImport();
|
||||
import.ShowDialog();
|
||||
}
|
||||
private void tSBKosten_Click(object sender, EventArgs e)
|
||||
private void TSBKosten_Click(object sender, EventArgs e)
|
||||
{
|
||||
FormNeuDeckungsbeitrag deckungsbeitrag = new FormNeuDeckungsbeitrag(this.benutzer, true);
|
||||
if (deckungsbeitrag.ShowDialog() == DialogResult.OK) { }
|
||||
}
|
||||
private void tSBEinstellung_Click(object sender, EventArgs e)
|
||||
private void TSBEinstellung_Click(object sender, EventArgs e)
|
||||
{
|
||||
FormEinstellung einstellung = new FormEinstellung();
|
||||
einstellung.ShowDialog();
|
||||
}
|
||||
private void tSBExpedit_Click(object sender, EventArgs e)
|
||||
private void TSBExpedit_Click(object sender, EventArgs e)
|
||||
{
|
||||
FormExpedit exp = new FormExpedit(benutzer);
|
||||
exp.ShowDialog();
|
||||
}
|
||||
private void tSBAuftragVW_Click(object sender, EventArgs e)
|
||||
private void TSBAuftragVW_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.Cursor = Cursors.WaitCursor;
|
||||
|
||||
@ -287,7 +278,7 @@ namespace Deckungsbeitrag
|
||||
else this.rBAlle.Checked = true;
|
||||
|
||||
// Groupbox einblenden wenn OLV noch nicht sichtbar ist.
|
||||
foreach (GroupBox gb in this.panelMain.Controls.OfType<GroupBox>()) gb.Visible = gb.Name.Contains("Auftrag") ? true : false;
|
||||
foreach (GroupBox gb in this.panelMain.Controls.OfType<GroupBox>()) gb.Visible = gb.Name.Contains("Auftrag");
|
||||
|
||||
// PanelMain Buttons ausblenden.
|
||||
foreach (Button btn in this.panelMain.Controls.OfType<Button>()) btn.Visible = false;
|
||||
@ -295,7 +286,7 @@ namespace Deckungsbeitrag
|
||||
else
|
||||
{
|
||||
// Groupbox ausblenden wenn OLV sichtbar ist.
|
||||
foreach (GroupBox gb in this.panelMain.Controls.OfType<GroupBox>()) gb.Visible = gb.Name.Contains("Auftrag") ? false : true;
|
||||
foreach (GroupBox gb in this.panelMain.Controls.OfType<GroupBox>()) gb.Visible = !gb.Name.Contains("Auftrag");
|
||||
|
||||
// PanelMain Buttons einblenden.
|
||||
foreach (Button btn in this.panelMain.Controls.OfType<Button>()) btn.Visible = true;
|
||||
@ -303,7 +294,7 @@ namespace Deckungsbeitrag
|
||||
|
||||
this.Cursor = Cursors.Default;
|
||||
}
|
||||
private void tSBScannTest_Click(object sender, EventArgs e)
|
||||
private void TSBScannTest_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (open)
|
||||
{
|
||||
@ -320,19 +311,19 @@ namespace Deckungsbeitrag
|
||||
open = true;
|
||||
}
|
||||
}
|
||||
private void tSBArtikelVW_Click(object sender, EventArgs e)
|
||||
private void TSBArtikelVW_Click(object sender, EventArgs e)
|
||||
{
|
||||
FormArtikelVW artikelVW = new FormArtikelVW(this.benutzer);
|
||||
artikelVW.ShowDialog();
|
||||
}
|
||||
private void tSBTourenplanung_Click(object sender, EventArgs e)
|
||||
private void TSBTourenplanung_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.Cursor = Cursors.WaitCursor;
|
||||
FormTourenplanung tourenplanung = new FormTourenplanung(this.benutzer);
|
||||
tourenplanung.ShowDialog();
|
||||
this.Cursor = Cursors.Default;
|
||||
}
|
||||
private void tSBHilfe_Click(object sender, EventArgs e)
|
||||
private void TSBHilfe_Click(object sender, EventArgs e)
|
||||
{
|
||||
FormMain_HelpButtonClicked(this, null);
|
||||
}
|
||||
@ -345,26 +336,26 @@ namespace Deckungsbeitrag
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
private void buttonNeuerAuftrag_Click(object sender, EventArgs e)
|
||||
private void ButtonNeuerAuftrag_Click(object sender, EventArgs e)
|
||||
{
|
||||
onBoardingArt = OnboardingSchritt.NeuerAuftrag;
|
||||
if (this.benutzer.Rolle == BenutzerRolle.Fahrer) ZeigeOnboarding();
|
||||
|
||||
FormNeuerAuftrag neuerAuftrag = new FormNeuerAuftrag(this.benutzer, AuftragTyp.Standart);
|
||||
if (neuerAuftrag.ShowDialog() == DialogResult.Abort) { this.kunde = neuerAuftrag.kunde; buttonNeueInventur_Click(this.buttonNeueInventur, null); }
|
||||
if (neuerAuftrag.ShowDialog() == DialogResult.Abort) { this.kunde = neuerAuftrag.kunde; ButtonNeueInventur_Click(this.buttonNeueInventur, null); }
|
||||
}
|
||||
private void buttonScannTest_Click(object sender, EventArgs e)
|
||||
private void ButtonScannTest_Click(object sender, EventArgs e)
|
||||
{
|
||||
string s = this.textBoxScannTest.Text;
|
||||
int pos = s.IndexOf('#');
|
||||
this.textBoxScannTest.Text = this.labelScannTest.Text = s.Substring(pos + 1);
|
||||
}
|
||||
private void buttonNeueAufgabe_Click(object sender, EventArgs e)
|
||||
private void ButtonNeueAufgabe_Click(object sender, EventArgs e)
|
||||
{
|
||||
FormNeueAufgabe neueAufgabe = new FormNeueAufgabe();
|
||||
neueAufgabe.ShowDialog();
|
||||
}
|
||||
private void buttonNeuerStand_Click(object sender, EventArgs e)
|
||||
private void ButtonNeuerStand_Click(object sender, EventArgs e)
|
||||
{
|
||||
FormNeuerAuftrag neuerAuftrag;
|
||||
DialogResult result = meldung.GetFrage(this, "Möchtest du eine Standverminderung oder Standerhöhung erstellen? \n\n [JA = Standverminerung | NEIN = Standerhöhung]", true);
|
||||
@ -383,7 +374,7 @@ namespace Deckungsbeitrag
|
||||
break;
|
||||
}
|
||||
}
|
||||
private void buttonNeueInventur_Click(object sender, EventArgs e)
|
||||
private void ButtonNeueInventur_Click(object sender, EventArgs e)
|
||||
{
|
||||
onBoardingArt = OnboardingSchritt.NeueInventur;
|
||||
ZeigeOnboarding();
|
||||
@ -415,7 +406,7 @@ namespace Deckungsbeitrag
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
private void buttonAusgeliefert_Click(object sender, EventArgs e)
|
||||
private void ButtonAusgeliefert_Click(object sender, EventArgs e)
|
||||
{
|
||||
int saved = 0;
|
||||
int tosave = 0;
|
||||
@ -476,7 +467,7 @@ namespace Deckungsbeitrag
|
||||
}
|
||||
}
|
||||
}
|
||||
private void buttonAufAbruf_Click(object sender, EventArgs e)
|
||||
private void ButtonAufAbruf_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (this.objectListViewAuftrag.CheckedItems.Count == 1)
|
||||
{
|
||||
@ -500,17 +491,17 @@ namespace Deckungsbeitrag
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
private void buttonNeuerUser_Click(object sender, EventArgs e)
|
||||
private void ButtonNeuerUser_Click(object sender, EventArgs e)
|
||||
{
|
||||
FormNeuerBenutzer neuerBenutzer = new FormNeuerBenutzer();
|
||||
neuerBenutzer.ShowDialog();
|
||||
}
|
||||
private void buttonTestChart_Click(object sender, EventArgs e)
|
||||
private void ButtonTestChart_Click(object sender, EventArgs e)
|
||||
{
|
||||
FehlmengeChart chart = new FehlmengeChart();
|
||||
chart.Show();
|
||||
}
|
||||
private void buttonTourenliste_Click(object sender, EventArgs e)
|
||||
private void ButtonTourenliste_Click(object sender, EventArgs e)
|
||||
{
|
||||
Benutzer fahrer = new Benutzer();
|
||||
if (this.benutzer.Rolle == BenutzerRolle.Fahrer) fahrer = this.benutzer;
|
||||
@ -529,7 +520,7 @@ namespace Deckungsbeitrag
|
||||
if (auftragliste.Count > 0) Funktionen.TourenListe_Drucken(auftragliste, fahrer, this, this.benutzer);
|
||||
}
|
||||
}
|
||||
private async void buttonKundeArtikelUpdate_Click(object sender, EventArgs e)
|
||||
private async void ButtonKundeArtikelUpdate_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (this.buttonKundeArtikelUpdate.Enabled == false) return;
|
||||
|
||||
@ -556,7 +547,7 @@ namespace Deckungsbeitrag
|
||||
this.buttonKundeArtikelUpdate.BringToFront();
|
||||
Application.UseWaitCursor = false;
|
||||
}
|
||||
private void buttonRegAuftrag_Click(object sender, EventArgs e)
|
||||
private void ButtonRegAuftrag_Click(object sender, EventArgs e)
|
||||
{
|
||||
FormNeuerAuftrag neuerAuftrag = new FormNeuerAuftrag(this.benutzer, AuftragTyp.Regelmäßig);
|
||||
neuerAuftrag.ShowDialog();
|
||||
@ -674,7 +665,7 @@ namespace Deckungsbeitrag
|
||||
}
|
||||
this.objectListViewAuftrag.RebuildColumns();
|
||||
}
|
||||
private void objectListViewAuftrag_ItemChecked(object sender, ItemCheckedEventArgs e)
|
||||
private void ObjectListViewAuftrag_ItemChecked(object sender, ItemCheckedEventArgs e)
|
||||
{
|
||||
if (this.objectListViewAuftrag.CheckedItems.Count > 0) this.buttonAusgeliefert.Visible = true;
|
||||
else this.buttonAusgeliefert.Visible = false;
|
||||
@ -697,63 +688,68 @@ namespace Deckungsbeitrag
|
||||
|
||||
// ========== CHECKBOX COLUMNS FÜR ABTEILUNGEN ===========
|
||||
// Spalten-Setup
|
||||
var colFrottee = new OLVColumn("Frottee", "Frottee");
|
||||
colFrottee.Text = "FR";
|
||||
colFrottee.DisplayIndex = 6;
|
||||
colFrottee.TextAlign = HorizontalAlignment.Center;
|
||||
colFrottee.CheckBoxes = false;
|
||||
colFrottee.TriStateCheckBoxes = false;
|
||||
colFrottee.Width = 50;
|
||||
colFrottee.AspectGetter = row => {
|
||||
var auftrag = (Auftrag)row;
|
||||
int abteilungen = (int)auftrag.Abteilungen;
|
||||
var colFrottee = new OLVColumn("Frottee", "Frottee")
|
||||
{
|
||||
Text = "FR",
|
||||
DisplayIndex = 6,
|
||||
TextAlign = HorizontalAlignment.Center,
|
||||
CheckBoxes = false,
|
||||
TriStateCheckBoxes = false,
|
||||
Width = 50,
|
||||
AspectGetter = row =>
|
||||
{
|
||||
var auftrag = (Auftrag)row;
|
||||
int abteilungen = (int)auftrag.Abteilungen;
|
||||
|
||||
bool begonnen = (abteilungen & (int)AbteilungsStatus.FrotteeBegonnen) != 0;
|
||||
bool beendet = (abteilungen & (int)AbteilungsStatus.FrotteeBeendet) != 0;
|
||||
bool begonnen = (abteilungen & (int)AbteilungsStatus.FrotteeBegonnen) != 0;
|
||||
bool beendet = (abteilungen & (int)AbteilungsStatus.FrotteeBeendet) != 0;
|
||||
|
||||
if (beendet) return "✅"; // Status 1 ✓
|
||||
if (begonnen) return "⭕"; // Status 2 ✓
|
||||
return "❌"; // Status 0 ✓
|
||||
if (beendet) return "✅"; // Status 1 ✓
|
||||
if (begonnen) return "⭕"; // Status 2 ✓
|
||||
return "❌"; // Status 0 ✓
|
||||
}
|
||||
};
|
||||
var colKleinteile = new OLVColumn("Kleinteile", "Kleinteile")
|
||||
{
|
||||
Text = "KT",
|
||||
DisplayIndex = 7,
|
||||
TextAlign = HorizontalAlignment.Center,
|
||||
CheckBoxes = false,
|
||||
TriStateCheckBoxes = false,
|
||||
Width = 50,
|
||||
AspectGetter = row =>
|
||||
{
|
||||
var auftrag = (Auftrag)row;
|
||||
int abteilungen = (int)auftrag.Abteilungen;
|
||||
|
||||
bool begonnen = (abteilungen & (int)AbteilungsStatus.KleinteileBegonnen) != 0;
|
||||
bool beendet = (abteilungen & (int)AbteilungsStatus.KleinteileBeendet) != 0;
|
||||
|
||||
var colKleinteile = new OLVColumn("Kleinteile", "Kleinteile");
|
||||
colKleinteile.Text = "KT";
|
||||
colKleinteile.DisplayIndex = 7;
|
||||
colKleinteile.TextAlign = HorizontalAlignment.Center;
|
||||
colKleinteile.CheckBoxes = false;
|
||||
colKleinteile.TriStateCheckBoxes = false;
|
||||
colKleinteile.Width = 50;
|
||||
colKleinteile.AspectGetter = row => {
|
||||
var auftrag = (Auftrag)row;
|
||||
int abteilungen = (int)auftrag.Abteilungen;
|
||||
|
||||
bool begonnen = (abteilungen & (int)AbteilungsStatus.KleinteileBegonnen) != 0;
|
||||
bool beendet = (abteilungen & (int)AbteilungsStatus.KleinteileBeendet) != 0;
|
||||
|
||||
if (beendet) return "✅"; // Status 1 ✓
|
||||
if (begonnen) return "⭕"; // Status 2 ✓
|
||||
return "❌"; // Status 0 ✓
|
||||
if (beendet) return "✅"; // Status 1 ✓
|
||||
if (begonnen) return "⭕"; // Status 2 ✓
|
||||
return "❌"; // Status 0 ✓
|
||||
}
|
||||
};
|
||||
var colGrosseTeile = new OLVColumn("Großteile", "Großteile")
|
||||
{
|
||||
Text = "GT",
|
||||
DisplayIndex = 8,
|
||||
TextAlign = HorizontalAlignment.Center,
|
||||
CheckBoxes = false,
|
||||
TriStateCheckBoxes = false,
|
||||
Width = 50,
|
||||
AspectGetter = row =>
|
||||
{
|
||||
var auftrag = (Auftrag)row;
|
||||
int abteilungen = (int)auftrag.Abteilungen;
|
||||
|
||||
bool begonnen = (abteilungen & (int)AbteilungsStatus.GrossteileBegonnen) != 0;
|
||||
bool beendet = (abteilungen & (int)AbteilungsStatus.GrossteileBeendet) != 0;
|
||||
|
||||
var colGrosseTeile = new OLVColumn("Großteile", "Großteile");
|
||||
colGrosseTeile.Text = "GT";
|
||||
colGrosseTeile.DisplayIndex = 8;
|
||||
colGrosseTeile.TextAlign = HorizontalAlignment.Center;
|
||||
colGrosseTeile.CheckBoxes = false;
|
||||
colGrosseTeile.TriStateCheckBoxes = false;
|
||||
colGrosseTeile.Width = 50;
|
||||
colGrosseTeile.AspectGetter = row => {
|
||||
var auftrag = (Auftrag)row;
|
||||
int abteilungen = (int)auftrag.Abteilungen;
|
||||
|
||||
bool begonnen = (abteilungen & (int)AbteilungsStatus.GrossteileBegonnen) != 0;
|
||||
bool beendet = (abteilungen & (int)AbteilungsStatus.GrossteileBeendet) != 0;
|
||||
|
||||
if (beendet) return "✅"; // Status 1 ✓
|
||||
if (begonnen) return "⭕"; // Status 2 ✓
|
||||
return "❌"; // Status 0 ✓
|
||||
if (beendet) return "✅"; // Status 1 ✓
|
||||
if (begonnen) return "⭕"; // Status 2 ✓
|
||||
return "❌"; // Status 0 ✓
|
||||
}
|
||||
};
|
||||
|
||||
this.objectListViewAuftrag.AllColumns.Add(colFrottee);
|
||||
@ -901,24 +897,24 @@ namespace Deckungsbeitrag
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
private void groupBox_Paint(object sender, PaintEventArgs e)
|
||||
private void GroupBox_Paint(object sender, PaintEventArgs e)
|
||||
{
|
||||
GroupBox gb = (GroupBox)sender;
|
||||
base.OnPaint(e);
|
||||
Funktionen.GetGroupBoxBoarder(gb, e);
|
||||
|
||||
gb.MouseDown += groupBox_MouseDown;
|
||||
gb.MouseMove += groupBox_MouseMove;
|
||||
gb.MouseUp += groupBox_MouseUp;
|
||||
gb.MouseDown += GroupBox_MouseDown;
|
||||
gb.MouseMove += GroupBox_MouseMove;
|
||||
gb.MouseUp += GroupBox_MouseUp;
|
||||
foreach(Control ctr in gb.Controls)
|
||||
{
|
||||
if (ctr.GetType() == typeof(ComboBox) || ctr.GetType() == typeof(DateTimePicker) || ctr is Button || ctr is RadioButton) continue;
|
||||
ctr.MouseDown += groupBox_MouseDown;
|
||||
ctr.MouseMove += groupBox_MouseMove;
|
||||
ctr.MouseUp += groupBox_MouseUp;
|
||||
ctr.MouseDown += GroupBox_MouseDown;
|
||||
ctr.MouseMove += GroupBox_MouseMove;
|
||||
ctr.MouseUp += GroupBox_MouseUp;
|
||||
}
|
||||
}
|
||||
private void groupBox_MouseDown(object sender, MouseEventArgs e)
|
||||
private void GroupBox_MouseDown(object sender, MouseEventArgs e)
|
||||
{
|
||||
if (e.Button == MouseButtons.Left)
|
||||
{
|
||||
@ -944,7 +940,7 @@ namespace Deckungsbeitrag
|
||||
draggedBox.Visible = false;
|
||||
}
|
||||
}
|
||||
private void groupBox_MouseMove(object sender, MouseEventArgs e)
|
||||
private void GroupBox_MouseMove(object sender, MouseEventArgs e)
|
||||
{
|
||||
if (isButtonDragging) return;
|
||||
if (isDragging)
|
||||
@ -963,7 +959,7 @@ namespace Deckungsbeitrag
|
||||
draggedBox.Location = newPos;
|
||||
}
|
||||
}
|
||||
private void groupBox_GiveFeedback(object sender, GiveFeedbackEventArgs e)
|
||||
private void GroupBox_GiveFeedback(object sender, GiveFeedbackEventArgs e)
|
||||
{
|
||||
if (draggedBox != null)
|
||||
{
|
||||
@ -986,7 +982,7 @@ namespace Deckungsbeitrag
|
||||
}
|
||||
}
|
||||
}
|
||||
private void groupBox_MouseUp(object sender, MouseEventArgs e)
|
||||
private void GroupBox_MouseUp(object sender, MouseEventArgs e)
|
||||
{
|
||||
if (isDragging)
|
||||
{
|
||||
@ -1004,15 +1000,15 @@ namespace Deckungsbeitrag
|
||||
// 1. Parent selbst behandeln (GroupBox)
|
||||
if (parent is GroupBox gb)
|
||||
{
|
||||
gb.MouseDown += groupBox_MouseDown;
|
||||
gb.MouseMove += groupBox_MouseMove;
|
||||
gb.MouseUp += groupBox_MouseUp;
|
||||
gb.MouseDown += GroupBox_MouseDown;
|
||||
gb.MouseMove += GroupBox_MouseMove;
|
||||
gb.MouseUp += GroupBox_MouseUp;
|
||||
}
|
||||
if (parent is UserControl uc)
|
||||
{
|
||||
uc.MouseDown += groupBox_MouseDown;
|
||||
uc.MouseMove += groupBox_MouseMove;
|
||||
uc.MouseUp += groupBox_MouseUp;
|
||||
uc.MouseDown += GroupBox_MouseDown;
|
||||
uc.MouseMove += GroupBox_MouseMove;
|
||||
uc.MouseUp += GroupBox_MouseUp;
|
||||
|
||||
}
|
||||
// 2. ALLE Children (rekursiv) - auch Child of Child!
|
||||
@ -1034,9 +1030,8 @@ namespace Deckungsbeitrag
|
||||
// Koordinaten an Parent weiterleiten
|
||||
Control child = (Control)sender;
|
||||
|
||||
if (child is Button buttonBase)
|
||||
if (child is Button)
|
||||
{
|
||||
//buttonBase.PerformClick(); // Löst Childs Click-Event aus
|
||||
return;
|
||||
}
|
||||
|
||||
@ -1047,7 +1042,7 @@ namespace Deckungsbeitrag
|
||||
Point parentPos = child.PointToClient(child.PointToScreen(e.Location));
|
||||
MouseEventArgs parentEvent = new MouseEventArgs(e.Button, e.Clicks,
|
||||
parentPos.X, parentPos.Y, e.Delta);
|
||||
groupBox_MouseDown(parentGb, parentEvent);
|
||||
GroupBox_MouseDown(parentGb, parentEvent);
|
||||
}
|
||||
}
|
||||
private void Child_MouseMove(object sender, MouseEventArgs e)
|
||||
@ -1055,7 +1050,7 @@ namespace Deckungsbeitrag
|
||||
Control gb = FindParentGroupBox((Control)sender);
|
||||
if (gb != null && isDragging && draggedBox == gb)
|
||||
{
|
||||
groupBox_MouseMove(gb, e);
|
||||
GroupBox_MouseMove(gb, e);
|
||||
}
|
||||
}
|
||||
private void Child_MouseUp(object sender, MouseEventArgs e)
|
||||
@ -1063,16 +1058,26 @@ namespace Deckungsbeitrag
|
||||
Control gb = FindParentGroupBox((Control)sender);
|
||||
if (gb != null && isDragging && draggedBox == gb)
|
||||
{
|
||||
groupBox_MouseUp(gb, e); // ← Dragging beenden!
|
||||
GroupBox_MouseUp(gb, e); // ← Dragging beenden!
|
||||
}
|
||||
}
|
||||
private Control FindParentGroupBox(Control control)
|
||||
{
|
||||
while (control != null)
|
||||
{
|
||||
if (control.Parent is UserControl) return (UserControl)control.Parent;
|
||||
else if (control is GroupBox) return (GroupBox)control;
|
||||
if (control is UserControl) return (UserControl)control;
|
||||
if (control.Parent is UserControl control2)
|
||||
{
|
||||
return control2;
|
||||
}
|
||||
else if (control is GroupBox box)
|
||||
{
|
||||
return box;
|
||||
}
|
||||
if (control is UserControl control1)
|
||||
{
|
||||
return control1;
|
||||
}
|
||||
|
||||
control = control.Parent;
|
||||
}
|
||||
return null;
|
||||
@ -1099,9 +1104,11 @@ namespace Deckungsbeitrag
|
||||
// 1. alle Zeilen lesen
|
||||
string[] lines = File.ReadAllLines(Path.Combine(loadPath, s), Encoding.UTF8);
|
||||
// 2. an UCInventur übergeben
|
||||
uCInventur = new UCInventur(lines, this.benutzer, this);
|
||||
uCInventur.Visible = false;
|
||||
uCInventur.Name = $"uci_{i}";
|
||||
uCInventur = new UCInventur(lines, this.benutzer, this)
|
||||
{
|
||||
Visible = false,
|
||||
Name = $"uci_{i}"
|
||||
};
|
||||
uCInventur.UCInventur_Update += () => { this.GetInventuren(); };
|
||||
uCInventur.UCInventur_Delete += Do_UCInventur_Delete;
|
||||
|
||||
@ -1189,10 +1196,10 @@ namespace Deckungsbeitrag
|
||||
switch (this.benutzer.Rolle)
|
||||
{
|
||||
case BenutzerRolle.Verwaltung:
|
||||
ctr.Visible = ctr.Enabled = ctr.Name.Contains("groupBoxAuftrag") || ctr.Name.Contains("groupBoxSaison") ? false : true;
|
||||
ctr.Visible = ctr.Enabled = !ctr.Name.Contains("groupBoxAuftrag") && !ctr.Name.Contains("groupBoxSaison");
|
||||
break;
|
||||
case BenutzerRolle.Fahrer:
|
||||
ctr.Visible = ctr.Enabled = ctr.Name.Contains("NeuerAuftrag") || ctr.Name.Contains("groupBoxAuftrag") || ctr.Name.Contains("Tourenliste") ? true : false;
|
||||
ctr.Visible = ctr.Enabled = ctr.Name.Contains("NeuerAuftrag") || ctr.Name.Contains("groupBoxAuftrag") || ctr.Name.Contains("Tourenliste");
|
||||
if (ctr.Name.Contains("groupBoxAuftrag"))
|
||||
{
|
||||
this.groupBoxAuftrag.Size = new Size(this.panelMain.Width - this.buttonNeuerAuftrag.Right - 20, this.panelMain.Height - 20);
|
||||
@ -1201,13 +1208,13 @@ namespace Deckungsbeitrag
|
||||
}
|
||||
break;
|
||||
case BenutzerRolle.Admin:
|
||||
ctr.Visible = ctr.Enabled = ctr.Name.Contains("groupBoxAuftrag") || ctr.Name.Contains("groupBoxScannTest") ? false : true;
|
||||
ctr.Visible = ctr.Enabled = !ctr.Name.Contains("groupBoxAuftrag") && !ctr.Name.Contains("groupBoxScannTest");
|
||||
break;
|
||||
case BenutzerRolle.Waschstrasse:
|
||||
ctr.Visible = ctr.Enabled = false;
|
||||
break;
|
||||
case BenutzerRolle.Master:
|
||||
ctr.Visible = ctr.Enabled = ctr.Name.Contains("groupBoxAuftrag") || ctr.Name.Contains("groupBoxScannTest") ? false : true;
|
||||
ctr.Visible = ctr.Enabled = !ctr.Name.Contains("groupBoxAuftrag") && !ctr.Name.Contains("groupBoxScannTest");
|
||||
break;
|
||||
case BenutzerRolle.Expedit:
|
||||
ctr.Visible = ctr.Enabled = false;
|
||||
@ -1233,25 +1240,25 @@ namespace Deckungsbeitrag
|
||||
btn.Enabled = true;
|
||||
break;
|
||||
case BenutzerRolle.Fahrer:
|
||||
btn.Enabled = btn.Name.Contains("Hilfe") ? true : false;
|
||||
btn.Enabled = btn.Name.Contains("Hilfe");
|
||||
break;
|
||||
case BenutzerRolle.Admin:
|
||||
btn.Enabled = true;
|
||||
break;
|
||||
case BenutzerRolle.Waschstrasse:
|
||||
btn.Enabled = btn.Name.Contains("Hilfe") ? true : false;
|
||||
btn.Enabled = btn.Name.Contains("Hilfe");
|
||||
break;
|
||||
case BenutzerRolle.Master:
|
||||
btn.Enabled = true;
|
||||
break;
|
||||
case BenutzerRolle.Expedit:
|
||||
btn.Enabled = btn.Name.Contains("Hilfe") ? true : false;
|
||||
btn.Enabled = btn.Name.Contains("Hilfe");
|
||||
break;
|
||||
case BenutzerRolle.Frottee:
|
||||
btn.Enabled = btn.Name.Contains("Hilfe") ? true : false;
|
||||
btn.Enabled = btn.Name.Contains("Hilfe");
|
||||
break;
|
||||
case BenutzerRolle.Flach:
|
||||
btn.Enabled = btn.Name.Contains("Hilfe") ? true : false;
|
||||
btn.Enabled = btn.Name.Contains("Hilfe");
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
@ -1263,8 +1270,8 @@ namespace Deckungsbeitrag
|
||||
{
|
||||
GetExpeditList(null);
|
||||
}
|
||||
this.panelProgress.Visible = this.panelProgress.Enabled = this.benutzer.Rolle == BenutzerRolle.Master ? true : false;
|
||||
this.buttonKundeArtikelUpdate.Visible = this.buttonKundeArtikelUpdate.Enabled = this.benutzer.Rolle == BenutzerRolle.Master ? true : false;
|
||||
this.panelProgress.Visible = this.panelProgress.Enabled = this.benutzer.Rolle == BenutzerRolle.Master;
|
||||
this.buttonKundeArtikelUpdate.Visible = this.buttonKundeArtikelUpdate.Enabled = this.benutzer.Rolle == BenutzerRolle.Master;
|
||||
}
|
||||
private void DoKundeArtikelImportOnce(IProgress<int> progress, List<Sortiment> sortimentListe)
|
||||
{
|
||||
@ -1288,10 +1295,12 @@ namespace Deckungsbeitrag
|
||||
if (art == null) continue;
|
||||
if (kndart == null)
|
||||
{
|
||||
kndart = new KundeArtikel();
|
||||
kndart.KundeID = kundeid;
|
||||
kndart.ArtikelName = art.Bezeichnung;
|
||||
kndart.ArtikelNR = art.Nummer;
|
||||
kndart = new KundeArtikel
|
||||
{
|
||||
KundeID = kundeid,
|
||||
ArtikelName = art.Bezeichnung,
|
||||
ArtikelNR = art.Nummer
|
||||
};
|
||||
}
|
||||
|
||||
kndart.ArtikelID = art.ArtikelID;
|
||||
@ -1324,18 +1333,18 @@ namespace Deckungsbeitrag
|
||||
conn.Dispose();
|
||||
}
|
||||
}
|
||||
private void Paint_Boarder(Size size, Point location, PaintEventArgs e)
|
||||
private void Paint_Boarder(Size size, PaintEventArgs e)
|
||||
{
|
||||
e.Graphics.Clear(Color.White);
|
||||
Pen pen = new Pen(Program.Wirlblau, 4);
|
||||
Rectangle rect = new Rectangle(1, 2, size.Width - 4, size.Height - 4);
|
||||
e.Graphics.DrawRectangle(pen, rect);
|
||||
}
|
||||
private void panelMain_Paint(object sender, PaintEventArgs e)
|
||||
private void PanelMain_Paint(object sender, PaintEventArgs e)
|
||||
{
|
||||
Paint_Boarder(this.panelMain.Size, this.panelMain.Location, e);
|
||||
Paint_Boarder(this.panelMain.Size, e);
|
||||
}
|
||||
private void panelMain_Resize(object sender, EventArgs e)
|
||||
private void PanelMain_Resize(object sender, EventArgs e)
|
||||
{
|
||||
panelMain.Invalidate();
|
||||
}
|
||||
@ -1418,7 +1427,7 @@ namespace Deckungsbeitrag
|
||||
comboBoxSaison.SelectedValue = aktiveSaison.SaisonId; // per ValueMember setzen [web:11][web:20]
|
||||
}
|
||||
}
|
||||
private void comboBoxSaison_SelectedIndexChanged(object sender, EventArgs e)
|
||||
private void ComboBoxSaison_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
if (formloading) { return; }
|
||||
if (meldung.GetFrage(this, "Bist du dir sicher, dass du die Aktive Saison ändern möchtest?", false) == DialogResult.No)
|
||||
@ -1457,7 +1466,7 @@ namespace Deckungsbeitrag
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
private void textBoxScannTest_TextChanged(object sender, EventArgs e)
|
||||
private void TextBoxScannTest_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
TextBox textBox1 = (TextBox)sender;
|
||||
using (Graphics g = textBox1.CreateGraphics())
|
||||
|
||||
@ -16,9 +16,6 @@ namespace Deckungsbeitrag.AA_Forms
|
||||
public partial class FormShowGroupBox : Form
|
||||
{
|
||||
private Benutzer benutzer;
|
||||
private UCAuftragSuchen ucas;
|
||||
private UCStatistik ucs;
|
||||
private UCAuftragListe ucal;
|
||||
private UserControl uc;
|
||||
public List<Auftrag> auftragliste;
|
||||
private string gb;
|
||||
|
||||
@ -440,7 +440,7 @@ namespace DatenDB
|
||||
return result;
|
||||
|
||||
}
|
||||
catch (Exception ex)
|
||||
catch (Exception)
|
||||
{
|
||||
return result;
|
||||
}
|
||||
@ -645,7 +645,7 @@ namespace DatenDB
|
||||
if (this.AuftragID != null)
|
||||
{
|
||||
if (!FindAuftragStatus(this.AuftragID, Status))
|
||||
SpeichereStatus(); // Automatisches Speichern
|
||||
SpeicherStatus(); // Automatisches Speichern
|
||||
}
|
||||
|
||||
}
|
||||
@ -822,7 +822,7 @@ namespace DatenDB
|
||||
public AuftragPriority Priority { get; set; } = 0;
|
||||
|
||||
#endregion
|
||||
private void SpeichereStatus()
|
||||
private void SpeicherStatus()
|
||||
{
|
||||
var conn = new NpgsqlConnection(ConfigurationManager.AppSettings["ConnectionString"]); // Pro Task!
|
||||
try
|
||||
|
||||
@ -325,6 +325,7 @@ namespace Deckungsbeitrag.AA_Klassen
|
||||
private static string SafeString(NpgsqlDataReader reader, string columnName)
|
||||
{
|
||||
int ordinal;
|
||||
string name;
|
||||
try { ordinal = reader.GetOrdinal(columnName); }
|
||||
catch { return null; }
|
||||
|
||||
@ -335,8 +336,11 @@ namespace Deckungsbeitrag.AA_Klassen
|
||||
ordinal = reader.GetOrdinal("kunde_name");
|
||||
}
|
||||
}
|
||||
|
||||
return reader.IsDBNull(ordinal) ? null : reader.GetString(ordinal);
|
||||
name = reader.IsDBNull(ordinal) ? null : reader.GetString(ordinal);
|
||||
|
||||
if (name == "BAR DIVERSE") ordinal = reader.GetOrdinal("zusatz");
|
||||
name = reader.IsDBNull(ordinal) ? null : reader.GetString(ordinal);
|
||||
return name;
|
||||
}
|
||||
|
||||
private static bool SafeBool(NpgsqlDataReader reader, string columnName)
|
||||
|
||||
@ -34,15 +34,10 @@ namespace Deckungsbeitrag
|
||||
private static FilterInfoCollection videoDevices;
|
||||
public static Color beladeband = Settings.Default.Beladeband; public static Color waschstr = Settings.Default.Waschstrasse; public static Color presse = Settings.Default.Presse; public static Color trockner = Settings.Default.Trockner;
|
||||
public static Color entladeband = Settings.Default.Entladeband; public static Color hubband = Settings.Default.Hubband;
|
||||
//public FormAufleger _aufleger;
|
||||
public static Auftrag _auftrag;
|
||||
public static Kunde _adresse;
|
||||
private static int currentPage = 0;
|
||||
private static int pagesToPrint = 1;
|
||||
private int totalPages = 0;
|
||||
int i = 0;
|
||||
int j = 0;
|
||||
private bool printOK;
|
||||
private static bool _nocont;
|
||||
private static Meldungen meldung = new Meldungen();
|
||||
private static List<Auftrag> _auftragliste;
|
||||
@ -478,7 +473,6 @@ namespace Deckungsbeitrag
|
||||
public static List<Sortiment> SortimentLesen(string s)
|
||||
{
|
||||
StreamReader streamReader = null;
|
||||
bool ok = false;
|
||||
try
|
||||
{
|
||||
streamReader = new StreamReader(ConfigurationManager.AppSettings["SortimentPfad"], Encoding.GetEncoding("iso-8859-1"));
|
||||
@ -502,7 +496,6 @@ namespace Deckungsbeitrag
|
||||
++nr;
|
||||
}
|
||||
streamReader.Close();
|
||||
ok = true;
|
||||
|
||||
return sortimentListe;
|
||||
}
|
||||
@ -585,7 +578,6 @@ namespace Deckungsbeitrag
|
||||
/// <returns>Kunde</returns>
|
||||
public static Kunde Open_List(string kndService)
|
||||
{
|
||||
int typ = 0;
|
||||
Kunde knd = new Kunde();
|
||||
FormListe liste = new FormListe(null, 0, kndService);
|
||||
if (liste.ShowDialog() == DialogResult.OK)
|
||||
@ -1168,7 +1160,7 @@ namespace Deckungsbeitrag
|
||||
Image img = bitmap;
|
||||
return img;
|
||||
}
|
||||
public static void SonderEtikett_Drucken(Auftrag auftrag, Dictionary<string, int[]> dictionary)
|
||||
public static DialogResult SonderEtikett_Drucken(Auftrag auftrag, Dictionary<string, int[]> dictionary)
|
||||
{
|
||||
_auftrag = auftrag;
|
||||
_dictionary = dictionary;
|
||||
@ -1193,9 +1185,11 @@ namespace Deckungsbeitrag
|
||||
//dialog.Document = printDocument;
|
||||
//dialog.Document.DocumentName = "Etikett";
|
||||
//printDocument.Print();
|
||||
|
||||
return DialogResult.OK;
|
||||
}
|
||||
|
||||
|
||||
return DialogResult.Cancel;
|
||||
}
|
||||
private static void PrintDocument_PrintPage(object sender, System.Drawing.Printing.PrintPageEventArgs e)
|
||||
{
|
||||
|
||||
@ -30,7 +30,7 @@ namespace DatenDB
|
||||
{
|
||||
DialogResult result = DialogResult.Cancel;
|
||||
|
||||
string s = $"Der Auftrag kann nicht abgeschlossen werden. Bitte korrigiere die Anzahl der sauberen Container.";
|
||||
string s = $"Der Auftrag kann nicht abgeschlossen werden. Bitte korrigiere die Anzahl der sauberen Container oder Pakete.";
|
||||
string caption = "ACHTUNG";
|
||||
MessageBoxButtons buttons = MessageBoxButtons.OK;
|
||||
MessageBoxIcon icon = MessageBoxIcon.Warning;
|
||||
@ -42,7 +42,7 @@ namespace DatenDB
|
||||
{
|
||||
DialogResult result = DialogResult.Cancel;
|
||||
|
||||
string s = $"Die Anzahl der sauberen Container wurde verändert. Möchtest du die Etiketten neu drucken?";
|
||||
string s = $"Die Anzahl der sauberen Container/Pakete wurde verändert. Möchtest du die Etiketten neu drucken?";
|
||||
string caption = "FRAGE";
|
||||
MessageBoxButtons buttons = MessageBoxButtons.YesNoCancel;
|
||||
MessageBoxIcon icon = MessageBoxIcon.Question;
|
||||
|
||||
68
UserControls/UCInventur.Designer.cs
generated
68
UserControls/UCInventur.Designer.cs
generated
@ -29,8 +29,6 @@
|
||||
private void InitializeComponent()
|
||||
{
|
||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(UCInventur));
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
this.groupBoxInventur = new System.Windows.Forms.GroupBox();
|
||||
this.labelLieferDat = new System.Windows.Forms.Label();
|
||||
this.dTPLieferDat = new System.Windows.Forms.DateTimePicker();
|
||||
@ -80,7 +78,7 @@
|
||||
this.groupBoxInventur.TabIndex = 0;
|
||||
this.groupBoxInventur.TabStop = false;
|
||||
this.groupBoxInventur.Text = "Inventur 000000 Kundename";
|
||||
this.groupBoxInventur.Paint += new System.Windows.Forms.PaintEventHandler(this.groupBoxInventur_Paint);
|
||||
this.groupBoxInventur.Paint += new System.Windows.Forms.PaintEventHandler(this.GroupBoxInventur_Paint);
|
||||
//
|
||||
// labelLieferDat
|
||||
//
|
||||
@ -88,7 +86,7 @@
|
||||
this.labelLieferDat.Font = new System.Drawing.Font("Microsoft Sans Serif", 10.2F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.labelLieferDat.Location = new System.Drawing.Point(359, 58);
|
||||
this.labelLieferDat.Name = "labelLieferDat";
|
||||
this.labelLieferDat.Size = new System.Drawing.Size(99, 17);
|
||||
this.labelLieferDat.Size = new System.Drawing.Size(115, 20);
|
||||
this.labelLieferDat.TabIndex = 46;
|
||||
this.labelLieferDat.Text = "Lieferdatum:";
|
||||
this.labelLieferDat.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
||||
@ -100,7 +98,7 @@
|
||||
this.dTPLieferDat.Location = new System.Drawing.Point(495, 46);
|
||||
this.dTPLieferDat.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
||||
this.dTPLieferDat.Name = "dTPLieferDat";
|
||||
this.dTPLieferDat.Size = new System.Drawing.Size(181, 26);
|
||||
this.dTPLieferDat.Size = new System.Drawing.Size(181, 30);
|
||||
this.dTPLieferDat.TabIndex = 45;
|
||||
//
|
||||
// labelInvDat
|
||||
@ -109,7 +107,7 @@
|
||||
this.labelInvDat.Font = new System.Drawing.Font("Microsoft Sans Serif", 10.2F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.labelInvDat.Location = new System.Drawing.Point(3, 58);
|
||||
this.labelInvDat.Name = "labelInvDat";
|
||||
this.labelInvDat.Size = new System.Drawing.Size(116, 17);
|
||||
this.labelInvDat.Size = new System.Drawing.Size(133, 20);
|
||||
this.labelInvDat.TabIndex = 44;
|
||||
this.labelInvDat.Text = "Inventurdatum:";
|
||||
this.labelInvDat.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
||||
@ -120,7 +118,7 @@
|
||||
this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 10.2F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.label1.Location = new System.Drawing.Point(784, 58);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new System.Drawing.Size(214, 17);
|
||||
this.label1.Size = new System.Drawing.Size(245, 20);
|
||||
this.label1.TabIndex = 43;
|
||||
this.label1.Text = "Lager/Lieferung hinzufügen:";
|
||||
this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
||||
@ -137,7 +135,7 @@
|
||||
this.pictureBoxClose.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
|
||||
this.pictureBoxClose.TabIndex = 42;
|
||||
this.pictureBoxClose.TabStop = false;
|
||||
this.pictureBoxClose.Click += new System.EventHandler(this.pictureBoxClose_Click);
|
||||
this.pictureBoxClose.Click += new System.EventHandler(this.PictureBoxClose_Click);
|
||||
//
|
||||
// dTPInvDatum
|
||||
//
|
||||
@ -146,7 +144,7 @@
|
||||
this.dTPInvDatum.Location = new System.Drawing.Point(160, 46);
|
||||
this.dTPInvDatum.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
||||
this.dTPInvDatum.Name = "dTPInvDatum";
|
||||
this.dTPInvDatum.Size = new System.Drawing.Size(181, 26);
|
||||
this.dTPInvDatum.Size = new System.Drawing.Size(181, 30);
|
||||
this.dTPInvDatum.TabIndex = 41;
|
||||
//
|
||||
// pictureBoxPlus
|
||||
@ -160,21 +158,13 @@
|
||||
this.pictureBoxPlus.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
|
||||
this.pictureBoxPlus.TabIndex = 40;
|
||||
this.pictureBoxPlus.TabStop = false;
|
||||
this.pictureBoxPlus.Click += new System.EventHandler(this.pictureBoxPlus_Click);
|
||||
this.pictureBoxPlus.Click += new System.EventHandler(this.PictureBoxPlus_Click);
|
||||
//
|
||||
// dGArtikel
|
||||
//
|
||||
this.dGArtikel.AllowUserToAddRows = false;
|
||||
this.dGArtikel.AllowUserToResizeRows = false;
|
||||
this.dGArtikel.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.DisplayedCells;
|
||||
dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
|
||||
dataGridViewCellStyle1.BackColor = System.Drawing.SystemColors.Control;
|
||||
dataGridViewCellStyle1.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
dataGridViewCellStyle1.ForeColor = System.Drawing.SystemColors.WindowText;
|
||||
dataGridViewCellStyle1.SelectionBackColor = System.Drawing.SystemColors.Highlight;
|
||||
dataGridViewCellStyle1.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
|
||||
dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.dGArtikel.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle1;
|
||||
this.dGArtikel.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
|
||||
this.dGArtikel.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
|
||||
this.Column1,
|
||||
@ -184,14 +174,6 @@
|
||||
this.Column5,
|
||||
this.Column6,
|
||||
this.Column7});
|
||||
dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
|
||||
dataGridViewCellStyle2.BackColor = System.Drawing.SystemColors.Window;
|
||||
dataGridViewCellStyle2.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
dataGridViewCellStyle2.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(1)))), ((int)(((byte)(53)))), ((int)(((byte)(101)))));
|
||||
dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight;
|
||||
dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
|
||||
dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
|
||||
this.dGArtikel.DefaultCellStyle = dataGridViewCellStyle2;
|
||||
this.dGArtikel.Location = new System.Drawing.Point(6, 100);
|
||||
this.dGArtikel.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
|
||||
this.dGArtikel.MinimumSize = new System.Drawing.Size(0, 438);
|
||||
@ -200,12 +182,10 @@
|
||||
this.dGArtikel.RowHeadersWidth = 51;
|
||||
this.dGArtikel.Size = new System.Drawing.Size(1094, 457);
|
||||
this.dGArtikel.TabIndex = 34;
|
||||
this.dGArtikel.CellEndEdit += new System.Windows.Forms.DataGridViewCellEventHandler(this.dGArtikel_CellEndEdit);
|
||||
this.dGArtikel.CellLeave += new System.Windows.Forms.DataGridViewCellEventHandler(this.dGArtikel_CellLeave);
|
||||
this.dGArtikel.CellMouseDoubleClick += new System.Windows.Forms.DataGridViewCellMouseEventHandler(this.dGArtikel_CellMouseDoubleClick);
|
||||
this.dGArtikel.CellValueChanged += new System.Windows.Forms.DataGridViewCellEventHandler(this.dGArtikel_CellValueChanged);
|
||||
this.dGArtikel.DataBindingComplete += new System.Windows.Forms.DataGridViewBindingCompleteEventHandler(this.dGArtikel_DataBindingComplete);
|
||||
this.dGArtikel.Leave += new System.EventHandler(this.dGArtikel_Leave);
|
||||
this.dGArtikel.CellEndEdit += new System.Windows.Forms.DataGridViewCellEventHandler(this.DGArtikel_CellEndEdit);
|
||||
this.dGArtikel.CellMouseDoubleClick += new System.Windows.Forms.DataGridViewCellMouseEventHandler(this.DGArtikel_CellMouseDoubleClick);
|
||||
this.dGArtikel.CellValueChanged += new System.Windows.Forms.DataGridViewCellEventHandler(this.DGArtikel_CellValueChanged);
|
||||
this.dGArtikel.DataBindingComplete += new System.Windows.Forms.DataGridViewBindingCompleteEventHandler(this.DGArtikel_DataBindingComplete);
|
||||
//
|
||||
// Column1
|
||||
//
|
||||
@ -214,7 +194,7 @@
|
||||
this.Column1.MinimumWidth = 6;
|
||||
this.Column1.Name = "Column1";
|
||||
this.Column1.ReadOnly = true;
|
||||
this.Column1.Width = 75;
|
||||
this.Column1.Width = 103;
|
||||
//
|
||||
// Column2
|
||||
//
|
||||
@ -223,7 +203,7 @@
|
||||
this.Column2.MinimumWidth = 6;
|
||||
this.Column2.Name = "Column2";
|
||||
this.Column2.ReadOnly = true;
|
||||
this.Column2.Width = 96;
|
||||
this.Column2.Width = 131;
|
||||
//
|
||||
// Column3
|
||||
//
|
||||
@ -232,7 +212,7 @@
|
||||
this.Column3.MinimumWidth = 6;
|
||||
this.Column3.Name = "Column3";
|
||||
this.Column3.ReadOnly = true;
|
||||
this.Column3.Width = 93;
|
||||
this.Column3.Width = 129;
|
||||
//
|
||||
// Column4
|
||||
//
|
||||
@ -241,7 +221,7 @@
|
||||
this.Column4.MinimumWidth = 6;
|
||||
this.Column4.Name = "Column4";
|
||||
this.Column4.ReadOnly = true;
|
||||
this.Column4.Width = 68;
|
||||
this.Column4.Width = 89;
|
||||
//
|
||||
// Column5
|
||||
//
|
||||
@ -250,7 +230,7 @@
|
||||
this.Column5.MinimumWidth = 6;
|
||||
this.Column5.Name = "Column5";
|
||||
this.Column5.ReadOnly = true;
|
||||
this.Column5.Width = 57;
|
||||
this.Column5.Width = 77;
|
||||
//
|
||||
// Column6
|
||||
//
|
||||
@ -258,7 +238,7 @@
|
||||
this.Column6.MinimumWidth = 6;
|
||||
this.Column6.Name = "Column6";
|
||||
this.Column6.ReadOnly = true;
|
||||
this.Column6.Width = 93;
|
||||
this.Column6.Width = 130;
|
||||
//
|
||||
// Column7
|
||||
//
|
||||
@ -267,7 +247,7 @@
|
||||
this.Column7.MinimumWidth = 6;
|
||||
this.Column7.Name = "Column7";
|
||||
this.Column7.ReadOnly = true;
|
||||
this.Column7.Width = 124;
|
||||
this.Column7.Width = 171;
|
||||
//
|
||||
// buttonFreigeben
|
||||
//
|
||||
@ -287,7 +267,7 @@
|
||||
this.buttonFreigeben.Text = "Inventur freigeben";
|
||||
this.buttonFreigeben.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText;
|
||||
this.buttonFreigeben.UseVisualStyleBackColor = false;
|
||||
this.buttonFreigeben.Click += new System.EventHandler(this.buttonFreigeben_Click);
|
||||
this.buttonFreigeben.Click += new System.EventHandler(this.ButtonFreigeben_Click);
|
||||
//
|
||||
// panelButtons
|
||||
//
|
||||
@ -318,7 +298,7 @@
|
||||
this.buttonAbbrechen.TabIndex = 41;
|
||||
this.buttonAbbrechen.Text = "Abbrechen";
|
||||
this.buttonAbbrechen.UseVisualStyleBackColor = false;
|
||||
this.buttonAbbrechen.Click += new System.EventHandler(this.buttonAbbrechen_Click);
|
||||
this.buttonAbbrechen.Click += new System.EventHandler(this.ButtonAbbrechen_Click);
|
||||
//
|
||||
// buttonSpeichern
|
||||
//
|
||||
@ -338,7 +318,7 @@
|
||||
this.buttonSpeichern.Text = "Speichern";
|
||||
this.buttonSpeichern.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText;
|
||||
this.buttonSpeichern.UseVisualStyleBackColor = false;
|
||||
this.buttonSpeichern.Click += new System.EventHandler(this.buttonSpeichern_Click);
|
||||
this.buttonSpeichern.Click += new System.EventHandler(this.ButtonSpeichern_Click);
|
||||
//
|
||||
// labelInvText
|
||||
//
|
||||
@ -347,11 +327,11 @@
|
||||
this.labelInvText.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(1)))), ((int)(((byte)(53)))), ((int)(((byte)(101)))));
|
||||
this.labelInvText.Location = new System.Drawing.Point(3, 15);
|
||||
this.labelInvText.Name = "labelInvText";
|
||||
this.labelInvText.Size = new System.Drawing.Size(57, 20);
|
||||
this.labelInvText.Size = new System.Drawing.Size(70, 25);
|
||||
this.labelInvText.TabIndex = 39;
|
||||
this.labelInvText.Text = "label1";
|
||||
this.labelInvText.Visible = false;
|
||||
this.labelInvText.Click += new System.EventHandler(this.labelInvText_Click);
|
||||
this.labelInvText.Click += new System.EventHandler(this.LabelInvText_Click);
|
||||
//
|
||||
// UCInventur
|
||||
//
|
||||
|
||||
@ -20,21 +20,21 @@ namespace Deckungsbeitrag.UserControls
|
||||
public partial class UCInventur : UserControl
|
||||
{
|
||||
public FormAuftragDetail formAuftragDetail;
|
||||
private object Sender;
|
||||
private readonly object Sender;
|
||||
private Auftrag auftrag;
|
||||
private Benutzer user;
|
||||
private Kunde kunde;
|
||||
private readonly Benutzer user;
|
||||
private readonly Kunde kunde;
|
||||
private List<KundeArtikel> artikelListe;
|
||||
private int controlHeight;
|
||||
private readonly int controlHeight;
|
||||
private bool neueinventur = false;
|
||||
private string[] lines;
|
||||
private readonly string[] lines;
|
||||
private bool formLoading = false;
|
||||
public event Action SizeChangedForParent;
|
||||
public event Action UCInventur_Update;
|
||||
public event Action UCInventur_Delete;
|
||||
private Point uci_loc;
|
||||
private bool _tosave = false;
|
||||
public bool tosave
|
||||
public bool Tosave
|
||||
{
|
||||
get { return _tosave; }
|
||||
set
|
||||
@ -81,20 +81,18 @@ namespace Deckungsbeitrag.UserControls
|
||||
|
||||
private void UCInventur_Load(object sender, EventArgs e)
|
||||
{
|
||||
if ((this.user.Rolle == BenutzerRolle.Verwaltung & tosave) || (this.user.Rolle == BenutzerRolle.Admin & tosave)) { this.buttonFreigeben.Enabled = true; this.buttonFreigeben.BackColor = Color.Turquoise; }
|
||||
string kundeName = this.kunde.Suchtext == null ? this.kunde.KundeName : this.kunde.Suchtext;
|
||||
if ((this.user.Rolle == BenutzerRolle.Verwaltung & Tosave) || (this.user.Rolle == BenutzerRolle.Admin & Tosave)) { this.buttonFreigeben.Enabled = true; this.buttonFreigeben.BackColor = Color.Turquoise; }
|
||||
string kundeName = this.kunde.Suchtext ?? this.kunde.KundeName;
|
||||
this.groupBoxInventur.Text = $"Inventur-{this.kunde.KundeNummer} {kundeName}";
|
||||
|
||||
if (lines == null || lines.Length == 0) { this.dTPInvDatum.Value = DateTime.Today.Date; }
|
||||
else { this.dTPInvDatum.Value = DateTime.Parse(lines[4].Split(':')[1]); this.dTPInvDatum.Enabled = true; }
|
||||
if (auftrag != null) this.dTPLieferDat.Value = auftrag.Liefertag;
|
||||
Load_DGV();
|
||||
if (lines != null & Sender is FormMain) pictureBoxClose_Click(sender, e);
|
||||
|
||||
if (Sender is FormAuftragDetail formAuftragDetail)
|
||||
if (lines != null & Sender is FormMain) PictureBoxClose_Click(sender, e);
|
||||
if (Sender is FormAuftragDetail)
|
||||
{
|
||||
pictureBoxClose.Visible = pictureBoxClose.Enabled = false;
|
||||
//pictureBoxPlus.Visible = pictureBoxPlus.Enabled = false;
|
||||
buttonAbbrechen.Visible = buttonAbbrechen.Enabled = false;
|
||||
}
|
||||
formLoading = false;
|
||||
@ -105,7 +103,6 @@ namespace Deckungsbeitrag.UserControls
|
||||
{
|
||||
this.dGArtikel.AutoGenerateColumns = false;
|
||||
artikelListe = KundeArtikel.GetInventurList(this.kunde.KundeID);
|
||||
//this.dGArtikel.DataSource = artikelListe;
|
||||
this.dGArtikel.AllowUserToAddRows = false;
|
||||
this.dGArtikel.AllowUserToResizeColumns = true;
|
||||
this.dGArtikel.Rows.Clear();
|
||||
@ -168,7 +165,7 @@ namespace Deckungsbeitrag.UserControls
|
||||
}
|
||||
dGArtikel.Rows.Add(row);
|
||||
}
|
||||
dGArtikel_DataBindingComplete(this.dGArtikel, null);
|
||||
DGArtikel_DataBindingComplete(this.dGArtikel, null);
|
||||
this.dGArtikel.Refresh();
|
||||
}
|
||||
private DataGridViewColumn FindColumnByHeaderText(DataGridView dgv, string headerText)
|
||||
@ -188,10 +185,9 @@ namespace Deckungsbeitrag.UserControls
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
private void pictureBoxPlus_Click(object sender, EventArgs e)
|
||||
private void PictureBoxPlus_Click(object sender, EventArgs e)
|
||||
{
|
||||
string text = Interaction.InputBox($"Bitte gib hier den Spaltentitel ein.\n\nTitel:", "Spaltentitel", "");
|
||||
int cols = this.dGArtikel.Columns.Count;
|
||||
|
||||
// Wenn Inputbox gibt string.empty zurück dann keine Column anlegen.
|
||||
if (string.IsNullOrWhiteSpace(text)) return;
|
||||
@ -203,14 +199,14 @@ namespace Deckungsbeitrag.UserControls
|
||||
this.dGArtikel.Columns.Add(column);
|
||||
DataGridView_GetNewSize(this.dGArtikel);
|
||||
}
|
||||
private void groupBoxInventur_Paint(object sender, PaintEventArgs e)
|
||||
private void GroupBoxInventur_Paint(object sender, PaintEventArgs e)
|
||||
{
|
||||
GroupBox gb = (GroupBox)sender;
|
||||
base.OnPaint(e);
|
||||
Funktionen.GetGroupBoxBoarder(gb, e);
|
||||
}
|
||||
|
||||
private void buttonFreigeben_Click(object sender, EventArgs e)
|
||||
private void ButtonFreigeben_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (this.auftrag == null) return;
|
||||
this.auftrag.Liefertag = dTPLieferDat.Value;
|
||||
@ -231,12 +227,14 @@ namespace Deckungsbeitrag.UserControls
|
||||
// AuftragArtikel erstellen.
|
||||
if (int.Parse(row.Cells[6].Value.ToString()) != 0)
|
||||
{
|
||||
AuftragArtikel auf = new AuftragArtikel();
|
||||
auf.ArtikelID = art.ArtikelID;
|
||||
auf.AuftragID = auftrag.AuftragID;
|
||||
auf.Anzahl = art.Korrektur;
|
||||
auf.ArtikelName = art.ArtikelName;
|
||||
auf.Gesamt = art.Korrektur;
|
||||
AuftragArtikel auf = new AuftragArtikel
|
||||
{
|
||||
ArtikelID = art.ArtikelID,
|
||||
AuftragID = auftrag.AuftragID,
|
||||
Anzahl = art.Korrektur,
|
||||
ArtikelName = art.ArtikelName,
|
||||
Gesamt = art.Korrektur
|
||||
};
|
||||
auf.Save();
|
||||
}
|
||||
|
||||
@ -270,7 +268,7 @@ namespace Deckungsbeitrag.UserControls
|
||||
else
|
||||
{
|
||||
status = "Herrichten";
|
||||
string delPath = Path.Combine(savePath, $"Warten-{auftragID.ToString()}-{_knd.KundeNummer}.csv");
|
||||
string delPath = Path.Combine(savePath, $"Warten-{auftragID}-{_knd.KundeNummer}.csv");
|
||||
if (File.Exists(delPath)) File.Delete(delPath);
|
||||
}
|
||||
|
||||
@ -278,7 +276,7 @@ namespace Deckungsbeitrag.UserControls
|
||||
|
||||
string artikel = string.Empty;
|
||||
string cols = string.Empty;
|
||||
string fileName = $"{status}-{auftragID.ToString()}-{_knd.KundeNummer}.csv"; // Immer gleiche Datei!
|
||||
string fileName = $"{status}-{auftragID}-{_knd.KundeNummer}.csv"; // Immer gleiche Datei!
|
||||
string csvPath;
|
||||
csvPath = Path.Combine(savePath, fileName);
|
||||
// Prüfen ob Header schon existiert
|
||||
@ -302,8 +300,8 @@ namespace Deckungsbeitrag.UserControls
|
||||
csv.AppendLine("=== INVENTUR INFO ===");
|
||||
csv.AppendLine($"KundeNr: {_knd.KundeNummer}");
|
||||
csv.AppendLine($"Kunde: {_knd.KundeName}");
|
||||
csv.AppendLine($"Auftrag: {auftragID.ToString()}");
|
||||
csv.AppendLine($"Letzte Inventur: {dTPInvDatum.Value.Date.ToString("yyyy-MM-dd")}");
|
||||
csv.AppendLine($"Auftrag: {auftragID}");
|
||||
csv.AppendLine($"Letzte Inventur: {dTPInvDatum.Value.Date:yyyy-MM-dd}");
|
||||
csv.AppendLine();
|
||||
csv.AppendLine(new string('=', 30));
|
||||
csv.AppendLine($"Status;{cols}");
|
||||
@ -349,7 +347,7 @@ namespace Deckungsbeitrag.UserControls
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
private void dGArtikel_DataBindingComplete(object sender, DataGridViewBindingCompleteEventArgs e)
|
||||
private void DGArtikel_DataBindingComplete(object sender, DataGridViewBindingCompleteEventArgs e)
|
||||
{
|
||||
// Alle Spaltenbreiten an den Zellinhalt anpassen
|
||||
this.dGArtikel.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.AllCells;
|
||||
@ -389,9 +387,9 @@ namespace Deckungsbeitrag.UserControls
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
private void pictureBoxClose_Click(object sender, EventArgs e)
|
||||
private void PictureBoxClose_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (tosave) if (MessageBox.Show("Du hast die Zahlen geändert. Möchtest du die Inventur so speichern?", "INVENTUR SPEICHERN", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes) buttonSpeichern_Click(this.buttonSpeichern, null);
|
||||
if (Tosave) if (MessageBox.Show("Du hast die Zahlen geändert. Möchtest du die Inventur so speichern?", "INVENTUR SPEICHERN", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes) ButtonSpeichern_Click(this.buttonSpeichern, null);
|
||||
|
||||
if (groupBoxInventur.Visible)
|
||||
{
|
||||
@ -407,7 +405,6 @@ namespace Deckungsbeitrag.UserControls
|
||||
}
|
||||
private bool NeueInventur(string csvPath, string cols)
|
||||
{
|
||||
DateTime? letzteInventur = null;
|
||||
bool result = false;
|
||||
|
||||
int lineNumber = 0;
|
||||
@ -419,9 +416,9 @@ namespace Deckungsbeitrag.UserControls
|
||||
lineNumber++;
|
||||
if (lineNumber == 5)
|
||||
{
|
||||
letzteInventur = DateTime.Parse(line.Split(':')[1]);
|
||||
DateTime? letzteInventur = DateTime.Parse(line.Split(':')[1]);
|
||||
result = dTPInvDatum.Value.Date > letzteInventur.Value.Date;
|
||||
if (result == true) lines[lineNumber - 1] = $"Letzte Inventur: {dTPInvDatum.Value.Date.ToString("yyyy-MM-dd")}";
|
||||
if (result == true) lines[lineNumber - 1] = $"Letzte Inventur: {dTPInvDatum.Value.Date:yyyy-MM-dd}";
|
||||
}
|
||||
if (lineNumber == 8)
|
||||
{
|
||||
@ -441,12 +438,12 @@ namespace Deckungsbeitrag.UserControls
|
||||
private void UCInventur_SizeChanged(object sender, EventArgs e)
|
||||
{
|
||||
int label_y = this.pictureBoxPlus.Location.Y + ((this.pictureBoxPlus.Height - this.label1.Height) / 2);
|
||||
int x = 0;
|
||||
this.pictureBoxClose.Location = new Point(this.groupBoxInventur.Right - pictureBoxClose.Width - 2, 0);
|
||||
this.pictureBoxPlus.Location = new Point(this.dGArtikel.Right - pictureBoxPlus.Width, this.pictureBoxPlus.Location.Y);
|
||||
this.label1.Location = new Point(this.pictureBoxPlus.Left - this.label1.Width - 10, this.pictureBoxPlus.Location.Y + ((this.pictureBoxPlus.Height - this.label1.Height) / 2));
|
||||
int x;
|
||||
this.labelInvDat.Location = new Point(x = this.dGArtikel.Left, label_y);
|
||||
this.dTPInvDatum.Location = new Point(x = x + labelInvDat.Width, this.pictureBoxPlus.Location.Y);
|
||||
this.dTPInvDatum.Location = new Point(x += labelInvDat.Width, this.pictureBoxPlus.Location.Y);
|
||||
this.labelLieferDat.Location = new Point(x = x + dTPInvDatum.Width + 10, label_y);
|
||||
this.dTPLieferDat.Location = new Point(x + labelLieferDat.Width, this.pictureBoxPlus.Location.Y);
|
||||
this.buttonSpeichern.Location = new Point(buttonFreigeben.Left - buttonSpeichern.Width - buttonSpeichern.Margin.Left, buttonSpeichern.Top);
|
||||
@ -458,7 +455,7 @@ namespace Deckungsbeitrag.UserControls
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
private void labelInvText_Click(object sender, EventArgs e)
|
||||
private void LabelInvText_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (!groupBoxInventur.Visible)
|
||||
{
|
||||
@ -471,21 +468,11 @@ namespace Deckungsbeitrag.UserControls
|
||||
}
|
||||
}
|
||||
|
||||
private void dGArtikel_Leave(object sender, EventArgs e)
|
||||
private void DGArtikel_CellEndEdit(object sender, DataGridViewCellEventArgs e)
|
||||
{
|
||||
int iststand = 0; int sollstand; int fehlmenge;
|
||||
DataGridView dgv = (DataGridView)sender;
|
||||
}
|
||||
|
||||
private void dGArtikel_CellLeave(object sender, DataGridViewCellEventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private void dGArtikel_CellEndEdit(object sender, DataGridViewCellEventArgs e)
|
||||
{
|
||||
int iststand = 0; int invausgleich = 0; int schwund = 0; int sollstand = 0; int fehlmenge = 0;
|
||||
DataGridView dgv = (DataGridView)sender;
|
||||
if (int.TryParse(dgv.CurrentCell.Value.ToString(), out int n))
|
||||
if (int.TryParse(dgv.CurrentCell.Value.ToString(), out _))
|
||||
{
|
||||
var row = dgv.Rows[e.RowIndex];
|
||||
sollstand = int.Parse(row.Cells[2].Value.ToString());
|
||||
@ -510,17 +497,17 @@ namespace Deckungsbeitrag.UserControls
|
||||
dgv.Refresh();
|
||||
}
|
||||
|
||||
private void dGArtikel_CellValueChanged(object sender, DataGridViewCellEventArgs e)
|
||||
private void DGArtikel_CellValueChanged(object sender, DataGridViewCellEventArgs e)
|
||||
{
|
||||
if (!formLoading) { tosave = true; }
|
||||
else tosave = false;
|
||||
if (!formLoading) { Tosave = true; }
|
||||
else Tosave = false;
|
||||
}
|
||||
|
||||
private void buttonSpeichern_Click(object sender, EventArgs e)
|
||||
private void ButtonSpeichern_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.dGArtikel.EndEdit(); // beendet aktuelle Zell‑Bearbeitung
|
||||
|
||||
if (tosave)
|
||||
if (Tosave)
|
||||
{
|
||||
if (auftrag == null)
|
||||
{
|
||||
@ -540,10 +527,10 @@ namespace Deckungsbeitrag.UserControls
|
||||
GetInventurCSV(sender, auftrag.AuftragID);
|
||||
}
|
||||
this.dTPLieferDat.Focus();
|
||||
tosave = false;
|
||||
Tosave = false;
|
||||
}
|
||||
|
||||
private void dGArtikel_CellMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e)
|
||||
private void DGArtikel_CellMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e)
|
||||
{
|
||||
DataGridView dgv = (DataGridView)sender;
|
||||
|
||||
@ -557,9 +544,9 @@ namespace Deckungsbeitrag.UserControls
|
||||
}
|
||||
}
|
||||
|
||||
private void buttonAbbrechen_Click(object sender, EventArgs e)
|
||||
private void ButtonAbbrechen_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (tosave) { if (MessageBox.Show("Möchtest du wirklich Abbrechen und die Inventur verwerfen?", "FRAGE", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes) UCInventur_Delete(); }
|
||||
if (Tosave) { if (MessageBox.Show("Möchtest du wirklich Abbrechen und die Inventur verwerfen?", "FRAGE", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes) UCInventur_Delete(); }
|
||||
else UCInventur_Delete();
|
||||
}
|
||||
}
|
||||
|
||||
@ -91,7 +91,7 @@ public class UserSettingsManager
|
||||
});
|
||||
File.WriteAllText(_configPath, json);
|
||||
}
|
||||
catch (Exception ex)
|
||||
catch (Exception)
|
||||
{
|
||||
// Fallback: LocalAppData
|
||||
string fallbackPath = Path.Combine(
|
||||
|
||||
@ -69,19 +69,12 @@
|
||||
<Reference Include="HarfBuzzSharp, Version=1.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756, processorArchitecture=MSIL">
|
||||
<HintPath>packages\HarfBuzzSharp.8.3.0.1\lib\net462\HarfBuzzSharp.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="ListViewPrinter, Version=2.5.0.20272, Culture=neutral, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>bin\Debug\ListViewPrinter.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Microsoft.Bcl.AsyncInterfaces, Version=9.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
|
||||
<HintPath>packages\Microsoft.Bcl.AsyncInterfaces.9.0.0\lib\net462\Microsoft.Bcl.AsyncInterfaces.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Microsoft.Bcl.HashCode, Version=6.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
|
||||
<HintPath>packages\Microsoft.Bcl.HashCode.6.0.0\lib\net462\Microsoft.Bcl.HashCode.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Microsoft.Bcl.TimeProvider, Version=8.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
|
||||
<HintPath>packages\Microsoft.Bcl.TimeProvider.8.0.0\lib\net462\Microsoft.Bcl.TimeProvider.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Microsoft.Extensions.Logging.Abstractions, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL">
|
||||
<HintPath>packages\Microsoft.Extensions.Logging.Abstractions.6.0.0\lib\net461\Microsoft.Extensions.Logging.Abstractions.dll</HintPath>
|
||||
</Reference>
|
||||
@ -92,12 +85,6 @@
|
||||
<Reference Include="ObjectListView, Version=2.9.3.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>packages\ObjectListView.Updated.2.9.3\lib\net40\ObjectListView.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Polly, Version=8.0.0.0, Culture=neutral, PublicKeyToken=c8a3ffc3f8f825cc, processorArchitecture=MSIL">
|
||||
<HintPath>packages\Polly.8.6.5\lib\net472\Polly.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Polly.Core, Version=8.0.0.0, Culture=neutral, PublicKeyToken=c8a3ffc3f8f825cc, processorArchitecture=MSIL">
|
||||
<HintPath>packages\Polly.Core.8.6.5\lib\net472\Polly.Core.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Spire.Barcode, Version=7.4.1.0, Culture=neutral, PublicKeyToken=663f351905198cb3, processorArchitecture=MSIL">
|
||||
<HintPath>packages\Spire.Barcode.7.4.1\lib\net48\Spire.Barcode.dll</HintPath>
|
||||
</Reference>
|
||||
@ -160,9 +147,6 @@
|
||||
<Reference Include="System.Net.Http" />
|
||||
<Reference Include="System.Windows.Forms" />
|
||||
<Reference Include="System.Xml" />
|
||||
<Reference Include="USB-Barcode-Scanner">
|
||||
<HintPath>..\..\..\Users\kilia\Downloads\USB-Barcode-Scanner.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="WindowsBase" />
|
||||
<Reference Include="zxing, Version=0.16.11.0, Culture=neutral, PublicKeyToken=4e88037ac681fe60, processorArchitecture=MSIL">
|
||||
<HintPath>packages\ZXing.Net.0.16.11\lib\net48\zxing.dll</HintPath>
|
||||
@ -258,24 +242,12 @@
|
||||
<Compile Include="AA-Forms\FormKamera.Designer.cs">
|
||||
<DependentUpon>FormKamera.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="AA-Forms\FormMSAuswahl.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="AA-Forms\FormMSAuswahl.Designer.cs">
|
||||
<DependentUpon>FormMSAuswahl.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="AA-Forms\FormAufleger.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="AA-Forms\FormAufleger.Designer.cs">
|
||||
<DependentUpon>FormAufleger.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="AA-Forms\FormAusschlager.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="AA-Forms\FormAusschlager.Designer.cs">
|
||||
<DependentUpon>FormAusschlager.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="AA-Forms\FormEinstellung.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
@ -288,12 +260,6 @@
|
||||
<Compile Include="AA-Forms\FormExpedit.Designer.cs">
|
||||
<DependentUpon>FormExpedit.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="AA-Forms\FormFachBearbeiten.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="AA-Forms\FormFachBearbeiten.Designer.cs">
|
||||
<DependentUpon>FormFachBearbeiten.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="AA-Forms\FormFahrerAuftrag.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
@ -336,12 +302,6 @@
|
||||
<Compile Include="AA-Forms\FormNeuerAuftrag.Designer.cs">
|
||||
<DependentUpon>FormNeuerAuftrag.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="AA-Forms\FormProgrammauswahl.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="AA-Forms\FormProgrammauswahl.Designer.cs">
|
||||
<DependentUpon>FormProgrammauswahl.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="AA-Forms\FromAuftragVW.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
@ -485,24 +445,15 @@
|
||||
<EmbeddedResource Include="AA-Forms\FormKamera.resx">
|
||||
<DependentUpon>FormKamera.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="AA-Forms\FormMSAuswahl.resx">
|
||||
<DependentUpon>FormMSAuswahl.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="AA-Forms\FormAufleger.resx">
|
||||
<DependentUpon>FormAufleger.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="AA-Forms\FormAusschlager.resx">
|
||||
<DependentUpon>FormAusschlager.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="AA-Forms\FormEinstellung.resx">
|
||||
<DependentUpon>FormEinstellung.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="AA-Forms\FormExpedit.resx">
|
||||
<DependentUpon>FormExpedit.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="AA-Forms\FormFachBearbeiten.resx">
|
||||
<DependentUpon>FormFachBearbeiten.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="AA-Forms\FormFahrerAuftrag.resx">
|
||||
<DependentUpon>FormFahrerAuftrag.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
@ -533,9 +484,6 @@
|
||||
<EmbeddedResource Include="AA-Forms\FormNeuerBenutzer.resx">
|
||||
<DependentUpon>FormNeuerBenutzer.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="AA-Forms\FormProgrammauswahl.resx">
|
||||
<DependentUpon>FormProgrammauswahl.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="AA-Forms\FormShowGroupBox.resx">
|
||||
<DependentUpon>FormShowGroupBox.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
|
||||
@ -5,7 +5,7 @@ NEUIGKEITEN - Version 1.0.9.2
|
||||
Build-Info:
|
||||
- Build-Typ: Release Build
|
||||
- Erledigte TODOs: 19
|
||||
- Offene TODOs: 36
|
||||
- Offene TODOs: 37
|
||||
- Install-Reminders: 4
|
||||
- Changes: 15
|
||||
|
||||
@ -56,11 +56,12 @@ Build-Info:
|
||||
- ✅ : Wenn RegAuftrag wird als augeliefert markiert, wird dieser automatisch neu erstellt laut hinterlegtem Rhythmus. [FormMain.cs]
|
||||
|
||||
|
||||
=== 🔄 OFFENE TODOs (36) ===
|
||||
=== 🔄 OFFENE TODOs (37) ===
|
||||
- 🔄 !!ÜBERLEGE!! DB-Query für Kundenanzahl und Containeranzahl Abgleich. (Aufträge haben TourID hinterlegt. So sollte alles vergleichbar sein.) [Tour.cs]
|
||||
- 🔄 !!ÜBERLEGE!! Tour Start und Ende automatisch erfassen. [Tour.cs]
|
||||
- 🔄 Alle Icons in einer Spalte anzeigen? I für Anmerkung und ! für Aufgabe?? [FormMain.cs]
|
||||
- 🔄 Alle Icons in einer Spalte anzeigen? I für Anmerkung und ! für Aufgabe?? [UCAuftragListe.cs]
|
||||
- 🔄 Auftrag richtig speichern... mit gedruckt bzw. erledigt bzw. [FormExpedit.cs]
|
||||
- 🔄 Auftrag Schnellerfassung erstellen. Kundenliste aus JSON in OLV einfügen wenn schmutzig > 0 dann Auftrag erstellen. Spalten: "Kunde, schmutzig, liefertag, zustellfahrer" evnetuell in AuftragVW? [FormMain.cs]
|
||||
- 🔄 Auftragauswahl aufrufen statt NeuerAuftrag. (Wenn Fahrer Aufträge erstellen) [FormWSVerfolgung.cs]
|
||||
- 🔄 Aufträge zusammenführen wenn gleicher Kunde und Liefertag. [FormNeuerAuftrag.cs]
|
||||
@ -94,5 +95,5 @@ Build-Info:
|
||||
- 🔄 Wenn Frottee-Expedit auch Relamation bearbeitet, muss BenutzerRolle abgefragt werden. siehe CHANGES. [FormFehlmengeCount.cs]
|
||||
- 🔄 Zuweisung zu Fahrer muss geklärt werden. [Funktionen.cs]
|
||||
|
||||
Installation: 14.04.2026 15:40
|
||||
Installation: 15.04.2026 10:13
|
||||
=====================================
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user