Div Vorbereitungen neue DB

This commit is contained in:
Kilian Wirl 2026-04-10 10:20:03 +02:00
parent 33c8e85160
commit 22aab6f72b
15 changed files with 339 additions and 302 deletions

View File

@ -67,6 +67,7 @@ namespace Deckungsbeitrag
}
}
public FormAuftragDetail()
{
InitializeComponent();
@ -76,7 +77,6 @@ namespace Deckungsbeitrag
//SPEICHERN UND ABSCHLIESSEN BUTTONS WERDEN FUNKTIONSLOS UND GRAU
buttonSpeichern.Enabled = buttonFertig.Enabled = false;
buttonSpeichern.BackColor = buttonFertig.BackColor = Color.Gray;
}
public FormAuftragDetail(Auftrag auftrag, Benutzer benutzer) : this()
{
@ -122,6 +122,9 @@ namespace Deckungsbeitrag
Point loc = this.oLVArtikel.Location;
this.oLVArtikel.Visible = false;
string loadPath = Path.Combine(ConfigurationManager.AppSettings["DateiSavePfad"], "Listen\\Inventuren") ?? "Inventuren";
if (ConfigurationManager.AppSettings["ConnectionString"].Split(';')[4].Split('=')[1] == "Test_Wirl") loadPath = Path.Combine(ConfigurationManager.AppSettings["DateiSavePfad"], "Test\\Inventuren") ?? "Inventuren";
// Alle "Herrichten" Inventur Files auflisten.
string[] invFiles = Directory.GetFiles(loadPath, $"Warten-{_auftrag.AuftragID.ToString()}*.csv");
if (invFiles.Length == 0) return;
@ -131,10 +134,26 @@ namespace Deckungsbeitrag
uci = new UCInventur(lines, this.benutzer, this);
uci.Visible = false;
uci.SizeChangedForParent += () => { this.PerformLayout(); };
uci.SizeChangedForParent += () => { DoResize(); };
this.Controls.Add(uci);
}
private void DoResize()
{
if (uci != null)
{
uci.Location = this.oLVArtikel.Location = new Point(this.oLVArtikel.Location.X, fb.Bottom + 2);
uci.Visible = true;
this.ClientSize = new Size(uci.Right, uci.Bottom + buttonAbbrechen.Height + 25);
}
else
{
this.oLVArtikel.Height = this.textBoxZusatz.Bottom - this.oLVArtikel.Top;
this.ClientSize = new Size(oLVArtikel.Right + 10, oLVArtikel.Bottom + buttonAbbrechen.Height + 25);
}
if (fb != null) fb.Location = new Point(this.ClientSize.Width - fb.Width - 7, 0);
}
private void Load_OLV()
{
Generator.GenerateColumns(this.oLVArtikel, typeof(AuftragArtikel), true);
@ -510,8 +529,10 @@ namespace Deckungsbeitrag
}
if (fb != null) fb.Location = new Point(this.ClientSize.Width - fb.Width - 7, 0);
while (this.Right > Screen.PrimaryScreen.WorkingArea.Width)
{
this.Width--;
}
//if (oLVArtikel != null) this.ClientSize = new Size(oLVArtikel.Right + 10, oLVArtikel.Bottom + buttonAbbrechen.Height + 25);
}
@ -612,15 +633,6 @@ namespace Deckungsbeitrag
if (oLVArtikel != null) this.ClientSize = new Size(oLVArtikel.Right + 10, oLVArtikel.Bottom + buttonAbbrechen.Height + 25);
}
private void FormAuftragDetail_Layout(object sender, LayoutEventArgs e)
{
if (fb != null) fb.Location = new Point(this.ClientSize.Width - fb.Width - 7, 0);
if (uci != null) this.ClientSize = new Size(uci.Right, uci.Bottom + buttonAbbrechen.Height + 25);
if (oLVArtikel != null) this.ClientSize = new Size(oLVArtikel.Right + 10, oLVArtikel.Bottom + buttonAbbrechen.Height + 25);
//FormAuftragDetail_Resize(this, null);
}
private void oLVArtikel_SizeChanged(object sender, EventArgs e)
{
this.ClientSize = new Size(oLVArtikel.Right + 10, oLVArtikel.Bottom + buttonAbbrechen.Height + 25);

View File

@ -288,23 +288,9 @@ namespace Deckungsbeitrag
this.Close();
return true;
}
if (Form.ModifierKeys == Keys.None && keyData == Keys.Insert)
{
Open_NeuerAuftrag();
return true;
}
return base.ProcessDialogKey(keyData);
}
private void Open_NeuerAuftrag()
{
FormNeuerAuftrag neuerAuftrag = new FormNeuerAuftrag(this.Userid);
if (neuerAuftrag.ShowDialog() == DialogResult.OK)
{
this.auftrag = neuerAuftrag.Auftrag;
Fach_Laden();
}
}
}
}
//DONE: Bei Transport wir ein Fach mit Aktuellem Auftrag erstellt. Das Alte wird bei Transport gespeichert.

View File

@ -48,7 +48,6 @@ namespace Deckungsbeitrag
this.tSBTourenplanung = new System.Windows.Forms.ToolStripButton();
this.toolStripBeenden = new System.Windows.Forms.ToolStripButton();
this.panelMain = new System.Windows.Forms.Panel();
this.buttonTestInventur = new System.Windows.Forms.Button();
this.groupBoxAuftrag = new System.Windows.Forms.GroupBox();
this.objectListViewAuftrag = new BrightIdeasSoftware.ObjectListView();
this.rBAufAbruf = new System.Windows.Forms.RadioButton();
@ -475,7 +474,6 @@ namespace Deckungsbeitrag
//
this.panelMain.AllowDrop = true;
this.panelMain.BackColor = System.Drawing.Color.White;
this.panelMain.Controls.Add(this.buttonTestInventur);
this.panelMain.Controls.Add(this.groupBoxAuftrag);
this.panelMain.Controls.Add(this.buttonNeuerRegAuft);
this.panelMain.Controls.Add(this.panelProgress);
@ -498,27 +496,6 @@ namespace Deckungsbeitrag
this.panelMain.Paint += new System.Windows.Forms.PaintEventHandler(this.panelMain_Paint);
this.panelMain.Resize += new System.EventHandler(this.panelMain_Resize);
//
// buttonTestInventur
//
this.buttonTestInventur.BackColor = System.Drawing.Color.Turquoise;
this.buttonTestInventur.Enabled = false;
this.buttonTestInventur.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(192)))), ((int)(((byte)(0)))));
this.buttonTestInventur.FlatAppearance.BorderSize = 0;
this.buttonTestInventur.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.buttonTestInventur.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.buttonTestInventur.ForeColor = System.Drawing.Color.Black;
this.buttonTestInventur.ImageAlign = System.Drawing.ContentAlignment.MiddleRight;
this.buttonTestInventur.Location = new System.Drawing.Point(357, 80);
this.buttonTestInventur.Margin = new System.Windows.Forms.Padding(7, 6, 7, 6);
this.buttonTestInventur.Name = "buttonTestInventur";
this.buttonTestInventur.Size = new System.Drawing.Size(333, 50);
this.buttonTestInventur.TabIndex = 72;
this.buttonTestInventur.Text = "Test Inventur";
this.buttonTestInventur.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;
this.buttonTestInventur.UseVisualStyleBackColor = false;
this.buttonTestInventur.Visible = false;
this.buttonTestInventur.Click += new System.EventHandler(this.buttonTestInventur_Click);
//
// groupBoxAuftrag
//
this.groupBoxAuftrag.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
@ -574,7 +551,7 @@ namespace Deckungsbeitrag
this.rBAufAbruf.Location = new System.Drawing.Point(59, 167);
this.rBAufAbruf.Margin = new System.Windows.Forms.Padding(4);
this.rBAufAbruf.Name = "rBAufAbruf";
this.rBAufAbruf.Size = new System.Drawing.Size(95, 24);
this.rBAufAbruf.Size = new System.Drawing.Size(115, 29);
this.rBAufAbruf.TabIndex = 57;
this.rBAufAbruf.TabStop = true;
this.rBAufAbruf.Text = "Auf Abruf";
@ -589,7 +566,7 @@ namespace Deckungsbeitrag
this.rBAusgeliefert.Location = new System.Drawing.Point(36, 130);
this.rBAusgeliefert.Margin = new System.Windows.Forms.Padding(4);
this.rBAusgeliefert.Name = "rBAusgeliefert";
this.rBAusgeliefert.Size = new System.Drawing.Size(112, 24);
this.rBAusgeliefert.Size = new System.Drawing.Size(136, 29);
this.rBAusgeliefert.TabIndex = 54;
this.rBAusgeliefert.TabStop = true;
this.rBAusgeliefert.Text = "Ausgeliefert";
@ -604,7 +581,7 @@ namespace Deckungsbeitrag
this.rBFertig.Location = new System.Drawing.Point(95, 94);
this.rBFertig.Margin = new System.Windows.Forms.Padding(4);
this.rBFertig.Name = "rBFertig";
this.rBFertig.Size = new System.Drawing.Size(68, 24);
this.rBFertig.Size = new System.Drawing.Size(82, 29);
this.rBFertig.TabIndex = 53;
this.rBFertig.TabStop = true;
this.rBFertig.Text = "Fertig";
@ -619,7 +596,7 @@ namespace Deckungsbeitrag
this.rBVorbereitet.Location = new System.Drawing.Point(44, 57);
this.rBVorbereitet.Margin = new System.Windows.Forms.Padding(4);
this.rBVorbereitet.Name = "rBVorbereitet";
this.rBVorbereitet.Size = new System.Drawing.Size(106, 24);
this.rBVorbereitet.Size = new System.Drawing.Size(128, 29);
this.rBVorbereitet.TabIndex = 52;
this.rBVorbereitet.TabStop = true;
this.rBVorbereitet.Text = "Vorbereitet";
@ -634,7 +611,7 @@ namespace Deckungsbeitrag
this.rBAlle.Location = new System.Drawing.Point(115, 20);
this.rBAlle.Margin = new System.Windows.Forms.Padding(4);
this.rBAlle.Name = "rBAlle";
this.rBAlle.Size = new System.Drawing.Size(53, 24);
this.rBAlle.Size = new System.Drawing.Size(66, 29);
this.rBAlle.TabIndex = 51;
this.rBAlle.TabStop = true;
this.rBAlle.Text = "Alle";
@ -769,14 +746,15 @@ namespace Deckungsbeitrag
// groupBoxContAnz
//
this.groupBoxContAnz.AutoSize = true;
this.groupBoxContAnz.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
this.groupBoxContAnz.Controls.Add(this.tLPContAnz);
this.groupBoxContAnz.Enabled = false;
this.groupBoxContAnz.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(1)))), ((int)(((byte)(53)))), ((int)(((byte)(101)))));
this.groupBoxContAnz.Location = new System.Drawing.Point(772, 92);
this.groupBoxContAnz.Location = new System.Drawing.Point(375, 224);
this.groupBoxContAnz.Margin = new System.Windows.Forms.Padding(4);
this.groupBoxContAnz.Name = "groupBoxContAnz";
this.groupBoxContAnz.Padding = new System.Windows.Forms.Padding(4);
this.groupBoxContAnz.Size = new System.Drawing.Size(988, 322);
this.groupBoxContAnz.Size = new System.Drawing.Size(376, 305);
this.groupBoxContAnz.TabIndex = 62;
this.groupBoxContAnz.TabStop = false;
this.groupBoxContAnz.Text = "CONT. ANZAHL / WASCHZEIT";
@ -787,6 +765,7 @@ namespace Deckungsbeitrag
// tLPContAnz
//
this.tLPContAnz.AutoSize = true;
this.tLPContAnz.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
this.tLPContAnz.ColumnCount = 4;
this.tLPContAnz.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
this.tLPContAnz.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
@ -830,7 +809,7 @@ namespace Deckungsbeitrag
this.tLPContAnz.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 37F));
this.tLPContAnz.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 37F));
this.tLPContAnz.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 37F));
this.tLPContAnz.Size = new System.Drawing.Size(475, 259);
this.tLPContAnz.Size = new System.Drawing.Size(364, 259);
this.tLPContAnz.TabIndex = 0;
//
// label14
@ -839,10 +818,10 @@ namespace Deckungsbeitrag
this.label14.Dock = System.Windows.Forms.DockStyle.Right;
this.label14.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label14.ForeColor = System.Drawing.SystemColors.ControlText;
this.label14.Location = new System.Drawing.Point(427, 222);
this.label14.Location = new System.Drawing.Point(306, 222);
this.label14.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.label14.Name = "label14";
this.label14.Size = new System.Drawing.Size(44, 37);
this.label14.Size = new System.Drawing.Size(54, 37);
this.label14.TabIndex = 29;
this.label14.Text = "0,00";
this.label14.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
@ -853,10 +832,10 @@ namespace Deckungsbeitrag
this.label13.Dock = System.Windows.Forms.DockStyle.Right;
this.label13.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label13.ForeColor = System.Drawing.SystemColors.ControlText;
this.label13.Location = new System.Drawing.Point(204, 222);
this.label13.Location = new System.Drawing.Point(244, 222);
this.label13.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.label13.Name = "label13";
this.label13.Size = new System.Drawing.Size(44, 37);
this.label13.Size = new System.Drawing.Size(54, 37);
this.label13.TabIndex = 28;
this.label13.Text = "0,00";
this.label13.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
@ -867,10 +846,10 @@ namespace Deckungsbeitrag
this.labelContGes.Dock = System.Windows.Forms.DockStyle.Left;
this.labelContGes.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.labelContGes.ForeColor = System.Drawing.SystemColors.ControlText;
this.labelContGes.Location = new System.Drawing.Point(137, 222);
this.labelContGes.Location = new System.Drawing.Point(164, 222);
this.labelContGes.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.labelContGes.Name = "labelContGes";
this.labelContGes.Size = new System.Drawing.Size(59, 37);
this.labelContGes.Size = new System.Drawing.Size(72, 37);
this.labelContGes.TabIndex = 27;
this.labelContGes.Text = "Zahl 5";
this.labelContGes.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
@ -884,7 +863,7 @@ namespace Deckungsbeitrag
this.label9.Location = new System.Drawing.Point(4, 222);
this.label9.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.label9.Name = "label9";
this.label9.Size = new System.Drawing.Size(72, 37);
this.label9.Size = new System.Drawing.Size(86, 37);
this.label9.TabIndex = 25;
this.label9.Text = "Gesamt";
this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
@ -895,10 +874,10 @@ namespace Deckungsbeitrag
this.label5.Dock = System.Windows.Forms.DockStyle.Right;
this.label5.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label5.ForeColor = System.Drawing.SystemColors.ControlText;
this.label5.Location = new System.Drawing.Point(431, 185);
this.label5.Location = new System.Drawing.Point(310, 185);
this.label5.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(40, 37);
this.label5.Size = new System.Drawing.Size(50, 37);
this.label5.TabIndex = 23;
this.label5.Text = "0,00";
this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
@ -909,10 +888,10 @@ namespace Deckungsbeitrag
this.label4.Dock = System.Windows.Forms.DockStyle.Right;
this.label4.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label4.ForeColor = System.Drawing.SystemColors.ControlText;
this.label4.Location = new System.Drawing.Point(208, 185);
this.label4.Location = new System.Drawing.Point(248, 185);
this.label4.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(40, 37);
this.label4.Size = new System.Drawing.Size(50, 37);
this.label4.TabIndex = 22;
this.label4.Text = "0,00";
this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
@ -923,10 +902,10 @@ namespace Deckungsbeitrag
this.labelContZahl5.Dock = System.Windows.Forms.DockStyle.Left;
this.labelContZahl5.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.labelContZahl5.ForeColor = System.Drawing.SystemColors.ControlText;
this.labelContZahl5.Location = new System.Drawing.Point(137, 185);
this.labelContZahl5.Location = new System.Drawing.Point(164, 185);
this.labelContZahl5.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.labelContZahl5.Name = "labelContZahl5";
this.labelContZahl5.Size = new System.Drawing.Size(53, 37);
this.labelContZahl5.Size = new System.Drawing.Size(66, 37);
this.labelContZahl5.TabIndex = 21;
this.labelContZahl5.Text = "Zahl 5";
this.labelContZahl5.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
@ -940,7 +919,7 @@ namespace Deckungsbeitrag
this.label2.Location = new System.Drawing.Point(4, 185);
this.label2.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(90, 37);
this.label2.Size = new System.Drawing.Size(107, 37);
this.label2.TabIndex = 20;
this.label2.Text = "Cont Rest";
this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
@ -951,10 +930,10 @@ namespace Deckungsbeitrag
this.labelZeit52.Dock = System.Windows.Forms.DockStyle.Right;
this.labelZeit52.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.labelZeit52.ForeColor = System.Drawing.SystemColors.ControlText;
this.labelZeit52.Location = new System.Drawing.Point(431, 148);
this.labelZeit52.Location = new System.Drawing.Point(310, 148);
this.labelZeit52.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.labelZeit52.Name = "labelZeit52";
this.labelZeit52.Size = new System.Drawing.Size(40, 37);
this.labelZeit52.Size = new System.Drawing.Size(50, 37);
this.labelZeit52.TabIndex = 19;
this.labelZeit52.Text = "0,00";
this.labelZeit52.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
@ -965,10 +944,10 @@ namespace Deckungsbeitrag
this.labelZeit42.Dock = System.Windows.Forms.DockStyle.Right;
this.labelZeit42.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.labelZeit42.ForeColor = System.Drawing.SystemColors.ControlText;
this.labelZeit42.Location = new System.Drawing.Point(431, 111);
this.labelZeit42.Location = new System.Drawing.Point(310, 111);
this.labelZeit42.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.labelZeit42.Name = "labelZeit42";
this.labelZeit42.Size = new System.Drawing.Size(40, 37);
this.labelZeit42.Size = new System.Drawing.Size(50, 37);
this.labelZeit42.TabIndex = 18;
this.labelZeit42.Text = "0,00";
this.labelZeit42.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
@ -979,10 +958,10 @@ namespace Deckungsbeitrag
this.labelZeit32.Dock = System.Windows.Forms.DockStyle.Right;
this.labelZeit32.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.labelZeit32.ForeColor = System.Drawing.SystemColors.ControlText;
this.labelZeit32.Location = new System.Drawing.Point(431, 74);
this.labelZeit32.Location = new System.Drawing.Point(310, 74);
this.labelZeit32.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.labelZeit32.Name = "labelZeit32";
this.labelZeit32.Size = new System.Drawing.Size(40, 37);
this.labelZeit32.Size = new System.Drawing.Size(50, 37);
this.labelZeit32.TabIndex = 17;
this.labelZeit32.Text = "0,00";
this.labelZeit32.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
@ -993,10 +972,10 @@ namespace Deckungsbeitrag
this.labelZeit22.Dock = System.Windows.Forms.DockStyle.Right;
this.labelZeit22.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.labelZeit22.ForeColor = System.Drawing.SystemColors.ControlText;
this.labelZeit22.Location = new System.Drawing.Point(431, 37);
this.labelZeit22.Location = new System.Drawing.Point(310, 37);
this.labelZeit22.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.labelZeit22.Name = "labelZeit22";
this.labelZeit22.Size = new System.Drawing.Size(40, 37);
this.labelZeit22.Size = new System.Drawing.Size(50, 37);
this.labelZeit22.TabIndex = 16;
this.labelZeit22.Text = "0,00";
this.labelZeit22.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
@ -1007,10 +986,10 @@ namespace Deckungsbeitrag
this.labelZeit12.Dock = System.Windows.Forms.DockStyle.Fill;
this.labelZeit12.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.labelZeit12.ForeColor = System.Drawing.SystemColors.ControlText;
this.labelZeit12.Location = new System.Drawing.Point(256, 0);
this.labelZeit12.Location = new System.Drawing.Point(306, 0);
this.labelZeit12.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.labelZeit12.Name = "labelZeit12";
this.labelZeit12.Size = new System.Drawing.Size(215, 37);
this.labelZeit12.Size = new System.Drawing.Size(54, 37);
this.labelZeit12.TabIndex = 15;
this.labelZeit12.Text = "2";
this.labelZeit12.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
@ -1021,10 +1000,10 @@ namespace Deckungsbeitrag
this.labelZeit5.Dock = System.Windows.Forms.DockStyle.Right;
this.labelZeit5.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.labelZeit5.ForeColor = System.Drawing.SystemColors.ControlText;
this.labelZeit5.Location = new System.Drawing.Point(208, 148);
this.labelZeit5.Location = new System.Drawing.Point(248, 148);
this.labelZeit5.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.labelZeit5.Name = "labelZeit5";
this.labelZeit5.Size = new System.Drawing.Size(40, 37);
this.labelZeit5.Size = new System.Drawing.Size(50, 37);
this.labelZeit5.TabIndex = 14;
this.labelZeit5.Text = "0,00";
this.labelZeit5.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
@ -1035,10 +1014,10 @@ namespace Deckungsbeitrag
this.labelZeit4.Dock = System.Windows.Forms.DockStyle.Right;
this.labelZeit4.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.labelZeit4.ForeColor = System.Drawing.SystemColors.ControlText;
this.labelZeit4.Location = new System.Drawing.Point(208, 111);
this.labelZeit4.Location = new System.Drawing.Point(248, 111);
this.labelZeit4.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.labelZeit4.Name = "labelZeit4";
this.labelZeit4.Size = new System.Drawing.Size(40, 37);
this.labelZeit4.Size = new System.Drawing.Size(50, 37);
this.labelZeit4.TabIndex = 13;
this.labelZeit4.Text = "0,00";
this.labelZeit4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
@ -1049,10 +1028,10 @@ namespace Deckungsbeitrag
this.labelZeit3.Dock = System.Windows.Forms.DockStyle.Right;
this.labelZeit3.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.labelZeit3.ForeColor = System.Drawing.SystemColors.ControlText;
this.labelZeit3.Location = new System.Drawing.Point(208, 74);
this.labelZeit3.Location = new System.Drawing.Point(248, 74);
this.labelZeit3.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.labelZeit3.Name = "labelZeit3";
this.labelZeit3.Size = new System.Drawing.Size(40, 37);
this.labelZeit3.Size = new System.Drawing.Size(50, 37);
this.labelZeit3.TabIndex = 12;
this.labelZeit3.Text = "0,00";
this.labelZeit3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
@ -1063,10 +1042,10 @@ namespace Deckungsbeitrag
this.labelZeit2.Dock = System.Windows.Forms.DockStyle.Right;
this.labelZeit2.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.labelZeit2.ForeColor = System.Drawing.SystemColors.ControlText;
this.labelZeit2.Location = new System.Drawing.Point(208, 37);
this.labelZeit2.Location = new System.Drawing.Point(248, 37);
this.labelZeit2.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.labelZeit2.Name = "labelZeit2";
this.labelZeit2.Size = new System.Drawing.Size(40, 37);
this.labelZeit2.Size = new System.Drawing.Size(50, 37);
this.labelZeit2.TabIndex = 11;
this.labelZeit2.Text = "0,00";
this.labelZeit2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
@ -1077,10 +1056,10 @@ namespace Deckungsbeitrag
this.labelZeit1.Dock = System.Windows.Forms.DockStyle.Fill;
this.labelZeit1.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.labelZeit1.ForeColor = System.Drawing.SystemColors.ControlText;
this.labelZeit1.Location = new System.Drawing.Point(204, 0);
this.labelZeit1.Location = new System.Drawing.Point(244, 0);
this.labelZeit1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.labelZeit1.Name = "labelZeit1";
this.labelZeit1.Size = new System.Drawing.Size(44, 37);
this.labelZeit1.Size = new System.Drawing.Size(54, 37);
this.labelZeit1.TabIndex = 10;
this.labelZeit1.Text = "1";
this.labelZeit1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
@ -1091,10 +1070,10 @@ namespace Deckungsbeitrag
this.labelContZahl4.Dock = System.Windows.Forms.DockStyle.Left;
this.labelContZahl4.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.labelContZahl4.ForeColor = System.Drawing.SystemColors.ControlText;
this.labelContZahl4.Location = new System.Drawing.Point(137, 148);
this.labelContZahl4.Location = new System.Drawing.Point(164, 148);
this.labelContZahl4.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.labelContZahl4.Name = "labelContZahl4";
this.labelContZahl4.Size = new System.Drawing.Size(53, 37);
this.labelContZahl4.Size = new System.Drawing.Size(66, 37);
this.labelContZahl4.TabIndex = 9;
this.labelContZahl4.Text = "Zahl 5";
this.labelContZahl4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
@ -1108,7 +1087,7 @@ namespace Deckungsbeitrag
this.label1.Location = new System.Drawing.Point(4, 148);
this.label1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(118, 37);
this.label1.Size = new System.Drawing.Size(143, 37);
this.label1.TabIndex = 8;
this.label1.Text = "Cont heute+3";
this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
@ -1119,10 +1098,10 @@ namespace Deckungsbeitrag
this.labelContZahl3.Dock = System.Windows.Forms.DockStyle.Left;
this.labelContZahl3.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.labelContZahl3.ForeColor = System.Drawing.SystemColors.ControlText;
this.labelContZahl3.Location = new System.Drawing.Point(137, 111);
this.labelContZahl3.Location = new System.Drawing.Point(164, 111);
this.labelContZahl3.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.labelContZahl3.Name = "labelContZahl3";
this.labelContZahl3.Size = new System.Drawing.Size(53, 37);
this.labelContZahl3.Size = new System.Drawing.Size(66, 37);
this.labelContZahl3.TabIndex = 7;
this.labelContZahl3.Text = "Zahl 4";
this.labelContZahl3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
@ -1136,7 +1115,7 @@ namespace Deckungsbeitrag
this.label6.Location = new System.Drawing.Point(4, 111);
this.label6.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(118, 37);
this.label6.Size = new System.Drawing.Size(143, 37);
this.label6.TabIndex = 6;
this.label6.Text = "Cont heute+2";
this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
@ -1147,10 +1126,10 @@ namespace Deckungsbeitrag
this.labelContZahl2.Dock = System.Windows.Forms.DockStyle.Left;
this.labelContZahl2.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.labelContZahl2.ForeColor = System.Drawing.SystemColors.ControlText;
this.labelContZahl2.Location = new System.Drawing.Point(137, 74);
this.labelContZahl2.Location = new System.Drawing.Point(164, 74);
this.labelContZahl2.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.labelContZahl2.Name = "labelContZahl2";
this.labelContZahl2.Size = new System.Drawing.Size(53, 37);
this.labelContZahl2.Size = new System.Drawing.Size(66, 37);
this.labelContZahl2.TabIndex = 5;
this.labelContZahl2.Text = "Zahl 3";
this.labelContZahl2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
@ -1164,7 +1143,7 @@ namespace Deckungsbeitrag
this.label8.Location = new System.Drawing.Point(4, 74);
this.label8.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.label8.Name = "label8";
this.label8.Size = new System.Drawing.Size(118, 37);
this.label8.Size = new System.Drawing.Size(143, 37);
this.label8.TabIndex = 4;
this.label8.Text = "Cont heute+1";
this.label8.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
@ -1175,10 +1154,10 @@ namespace Deckungsbeitrag
this.labelContZahl1.Dock = System.Windows.Forms.DockStyle.Left;
this.labelContZahl1.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.labelContZahl1.ForeColor = System.Drawing.SystemColors.ControlText;
this.labelContZahl1.Location = new System.Drawing.Point(137, 37);
this.labelContZahl1.Location = new System.Drawing.Point(164, 37);
this.labelContZahl1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.labelContZahl1.Name = "labelContZahl1";
this.labelContZahl1.Size = new System.Drawing.Size(53, 37);
this.labelContZahl1.Size = new System.Drawing.Size(66, 37);
this.labelContZahl1.TabIndex = 3;
this.labelContZahl1.Text = "Zahl 2";
this.labelContZahl1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
@ -1192,7 +1171,7 @@ namespace Deckungsbeitrag
this.label10.Location = new System.Drawing.Point(4, 37);
this.label10.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.label10.Name = "label10";
this.label10.Size = new System.Drawing.Size(98, 37);
this.label10.Size = new System.Drawing.Size(118, 37);
this.label10.TabIndex = 2;
this.label10.Text = "Cont heute";
this.label10.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
@ -1206,7 +1185,7 @@ namespace Deckungsbeitrag
this.label12.Location = new System.Drawing.Point(4, 0);
this.label12.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.label12.Name = "label12";
this.label12.Size = new System.Drawing.Size(125, 37);
this.label12.Size = new System.Drawing.Size(152, 37);
this.label12.TabIndex = 0;
this.label12.Text = "Waschstraßen";
this.label12.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
@ -1236,7 +1215,7 @@ namespace Deckungsbeitrag
this.comboBoxSaison.Location = new System.Drawing.Point(11, 23);
this.comboBoxSaison.Margin = new System.Windows.Forms.Padding(4);
this.comboBoxSaison.Name = "comboBoxSaison";
this.comboBoxSaison.Size = new System.Drawing.Size(352, 28);
this.comboBoxSaison.Size = new System.Drawing.Size(352, 33);
this.comboBoxSaison.TabIndex = 66;
this.comboBoxSaison.SelectedIndexChanged += new System.EventHandler(this.comboBoxSaison_SelectedIndexChanged);
//
@ -1375,14 +1354,14 @@ namespace Deckungsbeitrag
this.tableLayoutPanelUpdate.Controls.Add(this.labelKundenDatum, 1, 0);
this.tableLayoutPanelUpdate.Dock = System.Windows.Forms.DockStyle.Fill;
this.tableLayoutPanelUpdate.ForeColor = System.Drawing.Color.Black;
this.tableLayoutPanelUpdate.Location = new System.Drawing.Point(4, 23);
this.tableLayoutPanelUpdate.Location = new System.Drawing.Point(4, 19);
this.tableLayoutPanelUpdate.Margin = new System.Windows.Forms.Padding(4);
this.tableLayoutPanelUpdate.Name = "tableLayoutPanelUpdate";
this.tableLayoutPanelUpdate.RowCount = 3;
this.tableLayoutPanelUpdate.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 33.33333F));
this.tableLayoutPanelUpdate.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 33.33333F));
this.tableLayoutPanelUpdate.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 33.33333F));
this.tableLayoutPanelUpdate.Size = new System.Drawing.Size(783, 108);
this.tableLayoutPanelUpdate.Size = new System.Drawing.Size(783, 112);
this.tableLayoutPanelUpdate.TabIndex = 0;
//
// labelSoftwareDatum
@ -1390,10 +1369,10 @@ namespace Deckungsbeitrag
this.labelSoftwareDatum.AutoSize = true;
this.labelSoftwareDatum.Dock = System.Windows.Forms.DockStyle.Fill;
this.labelSoftwareDatum.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.labelSoftwareDatum.Location = new System.Drawing.Point(83, 72);
this.labelSoftwareDatum.Location = new System.Drawing.Point(101, 74);
this.labelSoftwareDatum.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.labelSoftwareDatum.Name = "labelSoftwareDatum";
this.labelSoftwareDatum.Size = new System.Drawing.Size(696, 36);
this.labelSoftwareDatum.Size = new System.Drawing.Size(678, 38);
this.labelSoftwareDatum.TabIndex = 7;
this.labelSoftwareDatum.Text = "label17";
this.labelSoftwareDatum.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
@ -1403,10 +1382,10 @@ namespace Deckungsbeitrag
this.labelArtikelDatum.AutoSize = true;
this.labelArtikelDatum.Dock = System.Windows.Forms.DockStyle.Fill;
this.labelArtikelDatum.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.labelArtikelDatum.Location = new System.Drawing.Point(83, 36);
this.labelArtikelDatum.Location = new System.Drawing.Point(101, 37);
this.labelArtikelDatum.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.labelArtikelDatum.Name = "labelArtikelDatum";
this.labelArtikelDatum.Size = new System.Drawing.Size(696, 36);
this.labelArtikelDatum.Size = new System.Drawing.Size(678, 37);
this.labelArtikelDatum.TabIndex = 6;
this.labelArtikelDatum.Text = "label15";
this.labelArtikelDatum.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
@ -1416,10 +1395,10 @@ namespace Deckungsbeitrag
this.label16.AutoSize = true;
this.label16.Dock = System.Windows.Forms.DockStyle.Fill;
this.label16.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label16.Location = new System.Drawing.Point(4, 72);
this.label16.Location = new System.Drawing.Point(4, 74);
this.label16.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.label16.Name = "label16";
this.label16.Size = new System.Drawing.Size(71, 36);
this.label16.Size = new System.Drawing.Size(89, 38);
this.label16.TabIndex = 4;
this.label16.Text = "Software:";
this.label16.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
@ -1429,10 +1408,10 @@ namespace Deckungsbeitrag
this.label11.AutoSize = true;
this.label11.Dock = System.Windows.Forms.DockStyle.Fill;
this.label11.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label11.Location = new System.Drawing.Point(4, 36);
this.label11.Location = new System.Drawing.Point(4, 37);
this.label11.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.label11.Name = "label11";
this.label11.Size = new System.Drawing.Size(71, 36);
this.label11.Size = new System.Drawing.Size(89, 37);
this.label11.TabIndex = 2;
this.label11.Text = "Artikel:";
this.label11.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
@ -1445,7 +1424,7 @@ namespace Deckungsbeitrag
this.label3.Location = new System.Drawing.Point(4, 0);
this.label3.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(71, 36);
this.label3.Size = new System.Drawing.Size(89, 37);
this.label3.TabIndex = 0;
this.label3.Text = "Kunden:";
this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
@ -1455,10 +1434,10 @@ namespace Deckungsbeitrag
this.labelKundenDatum.AutoSize = true;
this.labelKundenDatum.Dock = System.Windows.Forms.DockStyle.Fill;
this.labelKundenDatum.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.labelKundenDatum.Location = new System.Drawing.Point(83, 0);
this.labelKundenDatum.Location = new System.Drawing.Point(101, 0);
this.labelKundenDatum.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.labelKundenDatum.Name = "labelKundenDatum";
this.labelKundenDatum.Size = new System.Drawing.Size(696, 36);
this.labelKundenDatum.Size = new System.Drawing.Size(678, 37);
this.labelKundenDatum.TabIndex = 5;
this.labelKundenDatum.Text = "label7";
this.labelKundenDatum.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
@ -1497,7 +1476,7 @@ namespace Deckungsbeitrag
this.textBoxScannTest.Location = new System.Drawing.Point(8, 217);
this.textBoxScannTest.Margin = new System.Windows.Forms.Padding(4);
this.textBoxScannTest.Name = "textBoxScannTest";
this.textBoxScannTest.Size = new System.Drawing.Size(171, 26);
this.textBoxScannTest.Size = new System.Drawing.Size(171, 30);
this.textBoxScannTest.TabIndex = 13;
this.textBoxScannTest.TextChanged += new System.EventHandler(this.textBoxScannTest_TextChanged);
//
@ -1519,7 +1498,7 @@ namespace Deckungsbeitrag
this.labelScannTest.Location = new System.Drawing.Point(8, 288);
this.labelScannTest.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.labelScannTest.Name = "labelScannTest";
this.labelScannTest.Size = new System.Drawing.Size(60, 24);
this.labelScannTest.Size = new System.Drawing.Size(79, 29);
this.labelScannTest.TabIndex = 11;
this.labelScannTest.Text = "label1";
//
@ -1650,7 +1629,6 @@ namespace Deckungsbeitrag
private System.Windows.Forms.ProgressBar progressBarKundeArtikelUpdate;
private System.Windows.Forms.Panel panelProgress;
private System.Windows.Forms.Button buttonNeuerRegAuft;
private System.Windows.Forms.Button buttonTestInventur;
}
}

View File

@ -63,6 +63,7 @@ namespace Deckungsbeitrag
private UCAuftragSuchen uCAuftrag;
private UCInventur uCInventur;
private Screen screen = Screen.PrimaryScreen;
private Kunde kunde;
#endregion
public FormMain()
{
@ -350,7 +351,8 @@ namespace Deckungsbeitrag
onBoardingArt = OnboardingSchritt.NeuerAuftrag;
if (this.benutzer.Rolle == BenutzerRolle.Fahrer) ZeigeOnboarding();
FormNeuerAuftrag neuerAuftrag = new FormNeuerAuftrag(this.benutzer, AuftragTyp.Standart); neuerAuftrag.ShowDialog();
FormNeuerAuftrag neuerAuftrag = new FormNeuerAuftrag(this.benutzer, AuftragTyp.Standart);
if (neuerAuftrag.ShowDialog() == DialogResult.Abort) { this.kunde = neuerAuftrag.kunde; buttonNeueInventur_Click(this.buttonNeueInventur, null); }
}
private void buttonScannTest_Click(object sender, EventArgs e)
{
@ -384,7 +386,28 @@ namespace Deckungsbeitrag
}
private void buttonNeueInventur_Click(object sender, EventArgs e)
{
FormNeuerAuftrag neuerAuftrag = new FormNeuerAuftrag(this.benutzer, AuftragTyp.Inventur); neuerAuftrag.ShowDialog();
onBoardingArt = OnboardingSchritt.NeueInventur;
ZeigeOnboarding();
FormListe liste;
if (kunde == null)
{
liste = new FormListe(null, (int)Listentyp.Reklamationliste, "Miete");
if (liste.ShowDialog() == DialogResult.OK)
{
kunde = liste.kunde;
}
else return;
}
uCInventur = new UCInventur(kunde, this.benutzer);
uCInventur.UCInventur_Update += () => { this.GetInventuren(); };
uCInventur.UCInventur_Delete += Do_UCInventur_Delete;
this.panelMain.Controls.Add(uCInventur);
uCInventur.Location = new Point(100, 100);
uCInventur.BringToFront();
RegisterDragEvents(uCInventur);
}
/// <summary>
@ -1065,6 +1088,8 @@ namespace Deckungsbeitrag
}
string loadPath = Path.Combine(ConfigurationManager.AppSettings["DateiSavePfad"], "Listen\\Inventuren") ?? "Inventuren";
if (ConfigurationManager.AppSettings["ConnectionString"].Split(';')[4].Split('=')[1] == "Test_Wirl") loadPath = Path.Combine(ConfigurationManager.AppSettings["DateiSavePfad"], "Test\\Inventuren") ?? "Inventuren";
// Alle "Warten" Inventur Files auflisten.
string[] invFiles = Directory.GetFiles(loadPath, "Warten-*.csv");
if (invFiles.Length == 0) return;
@ -1374,6 +1399,7 @@ namespace Deckungsbeitrag
_ctr.Text = geszeit.ToString("F1") + " h";
}
}
}
private void GetSaison()
@ -1441,27 +1467,6 @@ namespace Deckungsbeitrag
textBox1.Width = (int)size.Width + 10; // +10 als Puffer
}
}
private void buttonTestInventur_Click(object sender, EventArgs e)
{
onBoardingArt = OnboardingSchritt.NeueInventur;
ZeigeOnboarding();
Kunde kunde = null;
FormListe liste = new FormListe(null, (int)Listentyp.Reklamationliste, "Miete");
if (liste.ShowDialog() == DialogResult.OK)
{
kunde = liste.kunde;
uCInventur = new UCInventur(kunde, this.benutzer);
uCInventur.UCInventur_Update += () => { this.GetInventuren(); };
uCInventur.UCInventur_Delete += Do_UCInventur_Delete;
this.panelMain.Controls.Add(uCInventur);
uCInventur.Location = new Point(100, 100);
uCInventur.BringToFront();
RegisterDragEvents(uCInventur);
}
}
}
}
//CHANGES: Fahrer können abgeholte Aufträge erstellen und ausgelieferte Aufträge markieren.

View File

@ -124,7 +124,7 @@
<data name="tSBBenutzerVW.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAEgSURBVDhPlZMxToVAEIY5gmeCY5D4SBShs3kF4Ro03seW
YQUAAAAJcEhZcwAAEnQAABJ0Ad5mH3gAAAEgSURBVDhPlZMxToVAEIY5gmeCY5D4SBShs3kF4Ro03seW
kgYsrGgkBgyzP43J6r95PHcBETeZzP6zsx9kZtbzPM8TkftxHF8BaBFpAJwYP7R4ua5rHcexDoJAp2mq
m6bRAG6XuZuLX+bloih4yfgkScx+z64ACt/3nUPqPXMAIvLynz9YAViwrRoopR6uST+5a8Dl4IlBpZQ5
rKrqU0SenaQ9wDAMyPNcZ1mm27Y1nppxO28TQFGWpY6iyPgwDB1tJ/8KWFbZtq7rTDLnwgZM03S3om7t
@ -135,7 +135,7 @@
<data name="tSBAuftragVW.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAEgSURBVDhPlZMxToVAEIY5gmeCY5D4SBShs3kF4Ro03seW
YQUAAAAJcEhZcwAAEnQAABJ0Ad5mH3gAAAEgSURBVDhPlZMxToVAEIY5gmeCY5D4SBShs3kF4Ro03seW
kgYsrGgkBgyzP43J6r95PHcBETeZzP6zsx9kZtbzPM8TkftxHF8BaBFpAJwYP7R4ua5rHcexDoJAp2mq
m6bRAG6XuZuLX+bloih4yfgkScx+z64ACt/3nUPqPXMAIvLynz9YAViwrRoopR6uST+5a8Dl4IlBpZQ5
rKrqU0SenaQ9wDAMyPNcZ1mm27Y1nppxO28TQFGWpY6iyPgwDB1tJ/8KWFbZtq7rTDLnwgZM03S3om7t
@ -146,7 +146,7 @@
<data name="tSBAufgabeVW.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAEgSURBVDhPlZMxToVAEIY5gmeCY5D4SBShs3kF4Ro03seW
YQUAAAAJcEhZcwAAEnQAABJ0Ad5mH3gAAAEgSURBVDhPlZMxToVAEIY5gmeCY5D4SBShs3kF4Ro03seW
kgYsrGgkBgyzP43J6r95PHcBETeZzP6zsx9kZtbzPM8TkftxHF8BaBFpAJwYP7R4ua5rHcexDoJAp2mq
m6bRAG6XuZuLX+bloih4yfgkScx+z64ACt/3nUPqPXMAIvLynz9YAViwrRoopR6uST+5a8Dl4IlBpZQ5
rKrqU0SenaQ9wDAMyPNcZ1mm27Y1nppxO28TQFGWpY6iyPgwDB1tJ/8KWFbZtq7rTDLnwgZM03S3om7t
@ -157,7 +157,7 @@
<data name="tSBArtikelVW.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAB7SURBVDhPnZBBDoAgDAR5W///F/XCVaIJyXZcEG2yB5p2
YQUAAAAJcEhZcwAAEnQAABJ0Ad5mH3gAAAB7SURBVDhPnZBBDoAgDAR5W///F/XCVaIJyXZcEG2yB5p2
ukspqFrrORPnH3UNRYTVJ8C+HUm/AYxAcd8CGGUaaQRYikR71BKANtXuMmBk1/VebVMWoDZpm28L6IN6
afQmMGV3A9pTYJcFcEj76dd7EaAX+ebuXbw2E3cbfftvjPBKL5kAAAAASUVORK5CYII=
</value>
@ -165,7 +165,7 @@
<data name="toolStripZaehlscheine.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAB7SURBVDhPnZBBDoAgDAR5W///F/XCVaIJyXZcEG2yB5p2
YQUAAAAJcEhZcwAAEnQAABJ0Ad5mH3gAAAB7SURBVDhPnZBBDoAgDAR5W///F/XCVaIJyXZcEG2yB5p2
ukspqFrrORPnH3UNRYTVJ8C+HUm/AYxAcd8CGGUaaQRYikR71BKANtXuMmBk1/VebVMWoDZpm28L6IN6
afQmMGV3A9pTYJcFcEj76dd7EaAX+ebuXbw2E3cbfftvjPBKL5kAAAAASUVORK5CYII=
</value>
@ -173,7 +173,7 @@
<data name="tSBExpedit.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAEgSURBVDhPlZMxToVAEIY5gmeCY5D4SBShs3kF4Ro03seW
YQUAAAAJcEhZcwAAEnQAABJ0Ad5mH3gAAAEgSURBVDhPlZMxToVAEIY5gmeCY5D4SBShs3kF4Ro03seW
kgYsrGgkBgyzP43J6r95PHcBETeZzP6zsx9kZtbzPM8TkftxHF8BaBFpAJwYP7R4ua5rHcexDoJAp2mq
m6bRAG6XuZuLX+bloih4yfgkScx+z64ACt/3nUPqPXMAIvLynz9YAViwrRoopR6uST+5a8Dl4IlBpZQ5
rKrqU0SenaQ9wDAMyPNcZ1mm27Y1nppxO28TQFGWpY6iyPgwDB1tJ/8KWFbZtq7rTDLnwgZM03S3om7t
@ -184,7 +184,7 @@
<data name="toolStripDB.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAACxSURBVDhPnZI9DsMgDIVzNo7SzM2czqm4EKfgHm0WhrYL
YQUAAAAJcEhZcwAAEnQAABJ0Ad5mH3gAAACxSURBVDhPnZI9DsMgDIVzNo7SzM2czqm4EKfgHm0WhrYL
K5WtGpmnmIhaegrBvM8vP9P0q5xzIcn9UJHRe88ahojZOVcBQxCc/lcSmSpJdBo8axYC8JEsNYAeRO+J
GIBEhFgpGsARGV+sPmcC3q9PVQihpJRqmlOANm/bnfcIQn0CxRi51wXIdb7MddpyXZpeF4AJSLTWPROg
Ic/HXtb1xqK1NotRdPgVzsRG/IFGJf4vZOpFEVHH2lgAAAAASUVORK5CYII=
@ -193,7 +193,7 @@
<data name="tSBKosten.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAACxSURBVDhPnZI9DsMgDIVzNo7SzM2czqm4EKfgHm0WhrYL
YQUAAAAJcEhZcwAAEnQAABJ0Ad5mH3gAAACxSURBVDhPnZI9DsMgDIVzNo7SzM2czqm4EKfgHm0WhrYL
K5WtGpmnmIhaegrBvM8vP9P0q5xzIcn9UJHRe88ahojZOVcBQxCc/lcSmSpJdBo8axYC8JEsNYAeRO+J
GIBEhFgpGsARGV+sPmcC3q9PVQihpJRqmlOANm/bnfcIQn0CxRi51wXIdb7MddpyXZpeF4AJSLTWPROg
Ic/HXtb1xqK1NotRdPgVzsRG/IFGJf4vZOpFEVHH2lgAAAAASUVORK5CYII=
@ -418,7 +418,7 @@
<data name="tSBScannTest.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAEgSURBVDhPlZMxToVAEIY5gmeCY5D4SBShs3kF4Ro03seW
YQUAAAAJcEhZcwAAEnQAABJ0Ad5mH3gAAAEgSURBVDhPlZMxToVAEIY5gmeCY5D4SBShs3kF4Ro03seW
kgYsrGgkBgyzP43J6r95PHcBETeZzP6zsx9kZtbzPM8TkftxHF8BaBFpAJwYP7R4ua5rHcexDoJAp2mq
m6bRAG6XuZuLX+bloih4yfgkScx+z64ACt/3nUPqPXMAIvLynz9YAViwrRoopR6uST+5a8Dl4IlBpZQ5
rKrqU0SenaQ9wDAMyPNcZ1mm27Y1nppxO28TQFGWpY6iyPgwDB1tJ/8KWFbZtq7rTDLnwgZM03S3om7t
@ -429,7 +429,7 @@
<data name="tSBHilfe.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAEgSURBVDhPlZMxToVAEIY5gmeCY5D4SBShs3kF4Ro03seW
YQUAAAAJcEhZcwAAEnQAABJ0Ad5mH3gAAAEgSURBVDhPlZMxToVAEIY5gmeCY5D4SBShs3kF4Ro03seW
kgYsrGgkBgyzP43J6r95PHcBETeZzP6zsx9kZtbzPM8TkftxHF8BaBFpAJwYP7R4ua5rHcexDoJAp2mq
m6bRAG6XuZuLX+bloih4yfgkScx+z64ACt/3nUPqPXMAIvLynz9YAViwrRoopR6uST+5a8Dl4IlBpZQ5
rKrqU0SenaQ9wDAMyPNcZ1mm27Y1nppxO28TQFGWpY6iyPgwDB1tJ/8KWFbZtq7rTDLnwgZM03S3om7t
@ -440,7 +440,7 @@
<data name="toolStripButtonImport.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAEgSURBVDhPlZMxToVAEIY5gmeCY5D4SBShs3kF4Ro03seW
YQUAAAAJcEhZcwAAEnQAABJ0Ad5mH3gAAAEgSURBVDhPlZMxToVAEIY5gmeCY5D4SBShs3kF4Ro03seW
kgYsrGgkBgyzP43J6r95PHcBETeZzP6zsx9kZtbzPM8TkftxHF8BaBFpAJwYP7R4ua5rHcexDoJAp2mq
m6bRAG6XuZuLX+bloih4yfgkScx+z64ACt/3nUPqPXMAIvLynz9YAViwrRoopR6uST+5a8Dl4IlBpZQ5
rKrqU0SenaQ9wDAMyPNcZ1mm27Y1nppxO28TQFGWpY6iyPgwDB1tJ/8KWFbZtq7rTDLnwgZM03S3om7t
@ -451,7 +451,7 @@
<data name="tSBEinstellung.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAIFSURBVDhPpZLtS1NhGMbPPxJmmlYSgqHiKzGU1EDxg4iK
YQUAAAAJcEhZcwAAEnQAABJ0Ad5mH3gAAAIFSURBVDhPpZLtS1NhGMbPPxJmmlYSgqHiKzGU1EDxg4iK
YKyG2WBogqMYJQOtCEVRFBGdTBCJfRnkS4VaaWNT5sqx1BUxRXxDHYxAJLvkusEeBaPAB+5z4Jzn+t3X
/aLhnEfjo8m+dCoa+7/C3O2Hqe0zDC+8KG+cRZHZhdzaaWTVTCLDMIY0vfM04Nfh77/G/sEhwpEDbO3t
I7TxE8urEVy99fT/AL5gWDLrTB/hnF4XsW0khCu5ln8DmJliT2AXrcNBsU1gj/MH4nMeKwBrPktM28xM
@ -466,7 +466,7 @@
<data name="tSBWaschstrasse.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAEMSURBVDhPrZMxjoNADEVzpD1CRE9PzwW2pkpDzwEo0tEi
YQUAAAAJcEhZcwAAEnQAABJ0Ad5mH3gAAAEMSURBVDhPrZMxjoNADEVzpD1CRE9PzwW2pkpDzwEo0tEi
DkBPT09BSbORsCkneqM1yUxQtNLG0pdG/va3x+M5nT5p27adVbVVVRehhYvjA1PVapomV5alS9PUJUni
wRkfHDFxnjeIcRx9cJZlrmkaNwyDB2d8cIcitAZhleZ5vonIBT/gjK+qKtf3PQI/67p+PVdvSaQKgQH5
ayLyvSzLXiQQYUgQXdc5qh0kXwBJds08zx/FEGBY3Pdo0vB1Xe8oisLHm8hnBP57hX2ILxN+iARDDIYd
@ -477,7 +477,7 @@
<data name="tSBTourenplanung.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAEMSURBVDhPrZMxjoNADEVzpD1CRE9PzwW2pkpDzwEo0tEi
YQUAAAAJcEhZcwAAEnQAABJ0Ad5mH3gAAAEMSURBVDhPrZMxjoNADEVzpD1CRE9PzwW2pkpDzwEo0tEi
DkBPT09BSbORsCkneqM1yUxQtNLG0pdG/va3x+M5nT5p27adVbVVVRehhYvjA1PVapomV5alS9PUJUni
wRkfHDFxnjeIcRx9cJZlrmkaNwyDB2d8cIcitAZhleZ5vonIBT/gjK+qKtf3PQI/67p+PVdvSaQKgQH5
ayLyvSzLXiQQYUgQXdc5qh0kXwBJds08zx/FEGBY3Pdo0vB1Xe8oisLHm8hnBP57hX2ILxN+iARDDIYd
@ -488,7 +488,7 @@
<data name="toolStripBeenden.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAEMSURBVDhPrZMxjoNADEVzpD1CRE9PzwW2pkpDzwEo0tEi
YQUAAAAJcEhZcwAAEnQAABJ0Ad5mH3gAAAEMSURBVDhPrZMxjoNADEVzpD1CRE9PzwW2pkpDzwEo0tEi
DkBPT09BSbORsCkneqM1yUxQtNLG0pdG/va3x+M5nT5p27adVbVVVRehhYvjA1PVapomV5alS9PUJUni
wRkfHDFxnjeIcRx9cJZlrmkaNwyDB2d8cIcitAZhleZ5vonIBT/gjK+qKtf3PQI/67p+PVdvSaQKgQH5
ayLyvSzLXiQQYUgQXdc5qh0kXwBJds08zx/FEGBY3Pdo0vB1Xe8oisLHm8hnBP57hX2ILxN+iARDDIYd

View File

@ -81,7 +81,7 @@ namespace Deckungsbeitrag
//
// buttonSpeichern
//
this.buttonSpeichern.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.buttonSpeichern.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.buttonSpeichern.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(192)))), ((int)(((byte)(0)))));
this.buttonSpeichern.CausesValidation = false;
this.buttonSpeichern.FlatAppearance.BorderSize = 0;
@ -101,7 +101,7 @@ namespace Deckungsbeitrag
//
// buttonAbbrechen
//
this.buttonAbbrechen.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.buttonAbbrechen.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.buttonAbbrechen.BackColor = System.Drawing.Color.Red;
this.buttonAbbrechen.CausesValidation = false;
this.buttonAbbrechen.DialogResult = System.Windows.Forms.DialogResult.Cancel;
@ -386,7 +386,7 @@ namespace Deckungsbeitrag
this.pictureBoxAddArtikel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.pictureBoxAddArtikel.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(192)))), ((int)(((byte)(0)))));
this.pictureBoxAddArtikel.Image = ((System.Drawing.Image)(resources.GetObject("pictureBoxAddArtikel.Image")));
this.pictureBoxAddArtikel.Location = new System.Drawing.Point(500, 132);
this.pictureBoxAddArtikel.Location = new System.Drawing.Point(500, 129);
this.pictureBoxAddArtikel.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.pictureBoxAddArtikel.Name = "pictureBoxAddArtikel";
this.pictureBoxAddArtikel.Size = new System.Drawing.Size(44, 41);
@ -419,6 +419,7 @@ namespace Deckungsbeitrag
this.comboBoxArtikel.Name = "comboBoxArtikel";
this.comboBoxArtikel.Size = new System.Drawing.Size(449, 38);
this.comboBoxArtikel.TabIndex = 37;
this.comboBoxArtikel.SelectedIndexChanged += new System.EventHandler(this.comboBoxArtikel_SelectedIndexChanged);
//
// label7
//

View File

@ -159,11 +159,11 @@ namespace Deckungsbeitrag
if (kunde.Service == "Geschäft") this.comboBoxTyp.SelectedItem = AuftragTyp.Geschäft;
else this.comboBoxTyp.SelectedItem = auftragtyp;
if (this.benutzer.Rolle == BenutzerRolle.Fahrer)
{
this.comboBoxTyp.Enabled = true;
}
else this.comboBoxTyp.Enabled = false;
//if (this.benutzer.Rolle == BenutzerRolle.Fahrer)
//{
// this.comboBoxTyp.Enabled = true;
//}
//else this.comboBoxTyp.Enabled = false;
this.ResumeLayout(false);
}
catch (Exception ex)
@ -197,39 +197,40 @@ namespace Deckungsbeitrag
{
if (!this.ValidateChildren(ValidationConstraints.Enabled)) return;
int[] save;
if(kunde == null)
{
MessageBox.Show("Auftrag kann nicht gespeichert werden. Kein Kunde vorhanden.", "Fehler", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
this.textBoxKndNr.Focus();
return;
}
else Auftrag = new Auftrag();
if (this.benutzer.Rolle == BenutzerRolle.Fahrer) { AuftragSpeichern(); return; }
if ((AuftragTyp)comboBoxTyp.SelectedItem >= AuftragTyp.Standerhöhung & (AuftragTyp)comboBoxTyp.SelectedItem <= AuftragTyp.Regelmäßig) { SpezialAuftragSpeichern(); return; }
//AUFTRAG DATEN ÜBERGEBEN
Auftrag.KundeID = (int)kunde.KundeID;
// Wenn Kundennummer ist Div.Barzahler(in FormListe wenn mit ? am Anfang) wird individueller Kundename als Zusatzinfo gespeichert.
if (kunde.KundeNummer == "2320000") Auftrag.ZusatzInfo = string.IsNullOrWhiteSpace(kunde.Suchtext) ? kunde.KundeName : kunde.Suchtext;
else if (!string.IsNullOrWhiteSpace(eingabe)) Auftrag.ZusatzInfo = eingabe;
if (Auftrag.AufgabeID == null) { if (kunde.Aufgabe != null) Auftrag.AufgabeID = kunde.Aufgabe; }
Auftrag.Liefertag = this.dTPLiefertag.Value;
Auftrag.Container = int.Parse(this.textBoxCont.Text);
Auftrag.ErstelltVon = (int)this.benutzer.BenutzerID;
Auftrag.Erstellt = DateTime.Now;
Auftrag.Container = int.Parse(this.textBoxCont.Text);
Auftrag.Typ = (AuftragTyp)comboBoxTyp.SelectedItem;
Auftrag.ArbeiterID = this.comboBoxFahrer.SelectedIndex == -1 ? null : ((Benutzer)this.comboBoxFahrer.SelectedItem).BenutzerID;
Auftrag.Abteilungen = AbteilungsStatus.Keine;
Auftrag.Priority = Funktionen.GetPriority((Benutzer)this.comboBoxFahrer.SelectedItem);
if (maschine != null) Auftrag.MaschineID = (int)maschine.MaschineID;
else Auftrag.MaschineID = null;
this.Auftrag = Aktualisieren(kunde);
// Wenn Fahrer den Auftrag speichert
if (this.benutzer.Rolle == BenutzerRolle.Fahrer) { FahrerAuftraegeSpeichern(this.Auftrag); return; }
// Wenn Expedit/Waschstrasse/Verwaltung/Admin den Auftrag speichert
switch ((AuftragTyp)comboBoxTyp.SelectedItem)
{
//case AuftragTyp.Geschäft:
// break;
//case AuftragTyp.Standart:
// break;
//case AuftragTyp.Inventur:
// break;
//case AuftragTyp.AufAbruf:
// break;
case AuftragTyp.Standerhöhung: SpezialAuftragSpeichern(Auftrag);
return;
case AuftragTyp.Standverminderung: SpezialAuftragSpeichern(Auftrag);
return;
case AuftragTyp.Regelmäßig: SpezialAuftragSpeichern(Auftrag);
return;
case AuftragTyp.Einmalig: SpezialAuftragSpeichern(Auftrag);
return;
default:
break;
}
if (Auftrag.FindeAuftrag(true).Gefunden) //TODO: Aufträge zusammenführen wenn gleicher Kunde und Liefertag.
{
@ -249,7 +250,7 @@ namespace Deckungsbeitrag
else
{
//Speichern von AUFTRAG
save = Auftrag.Save();
Auftrag.Save();
//GetInventurCSV();
}
}
@ -259,7 +260,7 @@ namespace Deckungsbeitrag
{
if (Auftrag.Save()[1] == 1) this.Close();
}
else save = Auftrag.Save();
else Auftrag.Save();
}
}
else { Auftrag = new Auftrag(); FormNeuerAuftrag_Load(this, e); return; }
@ -294,50 +295,61 @@ namespace Deckungsbeitrag
break;
}
save = Auftrag.Save();
}
if (this.benutzer.Rolle == BenutzerRolle.Fahrer)
{
this.Auftrag = null;
this.kunde = Funktionen.KundenAuswahl();
if (this.kunde != null) { DatenLaden(); return; }
Auftrag.Save();
}
this.DialogResult = DialogResult.OK;
this.Close();
}
private void AuftragUpdate()
private Auftrag Aktualisieren(Kunde knd)
{
//AUFTRAG DATEN ÜBERGEBEN
Auftrag.KundeID = (int)kunde.KundeID;
int? arbeiterID;
DateTime liefertag;
string zusatz = string.Empty;
if (Auftrag.AufgabeID == null) { if (kunde.Aufgabe != null) Auftrag.AufgabeID = kunde.Aufgabe; }
Auftrag.Liefertag = this.dTPLiefertag.Value;
Auftrag.Container = int.Parse(this.textBoxCont.Text);
Auftrag.ErstelltVon = (int)this.benutzer.BenutzerID;
Auftrag.Erstellt = DateTime.Now;
if (!this.textBoxCont.Enabled) Auftrag.Container = int.Parse(this.textBoxCont.Text);
Auftrag.Typ = (AuftragTyp)comboBoxTyp.SelectedItem;
Auftrag.ArbeiterID = this.comboBoxFahrer.SelectedIndex == -1 ? null : ((Benutzer)this.comboBoxFahrer.SelectedItem).BenutzerID;
Auftrag.Abteilungen = AbteilungsStatus.Keine;
Auftrag.Priority = Funktionen.GetPriority((Benutzer)this.comboBoxFahrer.SelectedItem);
// Wenn Kundennummer ist Div.Barzahler(in FormListe wenn mit ? am Anfang) wird individueller Kundename als Zusatzinfo gespeichert.
if (knd.KundeNummer == "2320000") zusatz = string.IsNullOrWhiteSpace(knd.Suchtext) ? "Kunde: " + knd.KundeName : "Kunde: " + knd.Suchtext;
else if (!string.IsNullOrWhiteSpace(eingabe)) zusatz = "Fahrerwechsel: " + eingabe;
Auftrag _auftrag = new Auftrag()
{
AuftragID = this.Auftrag == null ? null : this.Auftrag.AuftragID,
KundeID = (int)knd.KundeID,
ArbeiterID = arbeiterID = this.comboBoxFahrer.SelectedIndex == -1 ? null : ((Benutzer)this.comboBoxFahrer.SelectedItem).BenutzerID,
AufgabeID = knd.Aufgabe != null ? knd.Aufgabe : null,
Liefertag = liefertag = this.dTPLiefertag.Value,
Container = int.TryParse(this.textBoxCont.Text, out int i) ? i : 0,
ErstelltVon = (int)this.benutzer.BenutzerID,
Erstellt = DateTime.Now,
Typ = (AuftragTyp)comboBoxTyp.SelectedItem,
Abteilungen = AbteilungsStatus.Keine,
Priority = Funktionen.GetPriority((Benutzer)this.comboBoxFahrer.SelectedItem),
Status = this.benutzer.Rolle == BenutzerRolle.Fahrer ? AuftragStatus.Abgeholt : AuftragStatus.Herrichten,
Rhythmus = this.comboBoxRhythmus.Enabled ? (RegRhythmen)this.comboBoxRhythmus.SelectedItem : RegRhythmen.Unbekannt,
TourID = this.Auftrag.TourID == null || this.Auftrag.TourID == 0 ? GetTour(arbeiterID, liefertag) : this.Auftrag.TourID,
ZusatzInfo = zusatz,
};
return _auftrag;
}
private void SpezialAuftragSpeichern()
private int? GetTour(int? arbeiterID, DateTime liefertag)
{
AuftragUpdate();
Auftrag.ArbeiterID = comboBoxFahrer.SelectedIndex != -1 ? ((Benutzer)comboBoxFahrer.SelectedItem).BenutzerID : Auftrag.FindeFahrerIDZuAuftrag(kunde, Auftrag.Liefertag);
Auftrag.Status = AuftragStatus.Herrichten;
Auftrag.Rhythmus = this.comboBoxRhythmus.Enabled ? (RegRhythmen)this.comboBoxRhythmus.SelectedItem : RegRhythmen.Unbekannt;
Tour tour = null;
do
{
tour = Tour.FindeTour(null, arbeiterID, liefertag);
if (tour == null) Funktionen.UpdateOrSaveTour(Auftrag.TourID, Auftrag);
} while (tour == null);
if (Auftrag.FindeAuftrag(false).Gefunden)
return tour.TourID;
}
private void SpezialAuftragSpeichern(Auftrag Auftrag)
{
if (Auftrag.FindeAuftrag(true).Gefunden)
{
int aufID = Auftrag.FindeAuftrag(false).auftragID;
Auftrag auf = Auftrag.GetAuftrag(aufID); ;
Auftrag auf = Auftrag.GetAuftrag(aufID);
List<AuftragArtikel> liste = AuftragArtikel.GetList(auf.AuftragID);
string output = string.Join(Environment.NewLine, liste.Select(a => $"{a.ArtikelName,-20} {a.Anzahl,4} Stk."));
if (MessageBox.Show($"Es wurde ein Auftrag von {kunde.Suchtext ?? kunde.KundeName} für {auf.Liefertag.ToShortDateString()}\nmit folgenden Artikeln gefunden:\n\n{output}\nGeplanter Rhythmus: {Lieferrhythmen.Rhythmus}\n\nMöchtest du den Auftrag als erledigt markieren?", "AUFTRAG GEFUNDEN", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
@ -357,15 +369,23 @@ namespace Deckungsbeitrag
{
int? id;
string artname;
if (uca.Tag is Artikel)
if (uca.Tag != null)
{
id = ((Artikel)uca.Tag).ArtikelID;
artname = ((Artikel)uca.Tag).Nummer + ((Artikel)uca.Tag).Bezeichnung;
if (uca.Tag is Artikel)
{
id = ((Artikel)uca.Tag).ArtikelID;
artname = ((Artikel)uca.Tag).Nummer + ((Artikel)uca.Tag).Bezeichnung;
}
else
{
id = ((KundeArtikel)uca.Tag).ArtikelID;
artname = ((KundeArtikel)uca.Tag).ArtikelNR + ((KundeArtikel)uca.Tag).ArtikelName;
}
}
else
{
id = ((KundeArtikel)uca.Tag).ArtikelID;
artname = ((KundeArtikel)uca.Tag).ArtikelNR + ((KundeArtikel)uca.Tag).ArtikelName;
id = null;
artname = uca.ArtikelName.ToString();
}
AuftragArtikel aufart = new AuftragArtikel()
{
@ -381,35 +401,8 @@ namespace Deckungsbeitrag
}
this.Close();
}
private void AuftragSpeichern()
private void FahrerAuftraegeSpeichern(Auftrag Auftrag)
{
//AUFTRAG DATEN ÜBERGEBEN
Auftrag.KundeID = (int)kunde.KundeID;
if (Auftrag.AufgabeID == null) { if (kunde.Aufgabe != null) Auftrag.AufgabeID = kunde.Aufgabe; }
Auftrag.Liefertag = this.dTPLiefertag.Value;
Auftrag.Container = int.Parse(this.textBoxCont.Text);
Auftrag.ErstelltVon = (int)this.benutzer.BenutzerID;
Auftrag.Erstellt = DateTime.Now;
Auftrag.Container = int.Parse(this.textBoxCont.Text);
Auftrag.Typ = (AuftragTyp)comboBoxTyp.SelectedItem;
Auftrag.ArbeiterID = this.comboBoxFahrer.SelectedIndex == -1 ? null : ((Benutzer)this.comboBoxFahrer.SelectedItem).BenutzerID;
Auftrag.Status = AuftragStatus.Abgeholt;
Auftrag.Abteilungen = AbteilungsStatus.Keine;
Auftrag.Priority = Funktionen.GetPriority((Benutzer)this.comboBoxFahrer.SelectedItem);
Tour tour = null;
do
{
tour = Tour.FindeTour(null, Auftrag.ArbeiterID, Auftrag.Liefertag);
if (tour == null) Funktionen.UpdateOrSaveTour(Auftrag.TourID, Auftrag);
} while (tour == null);
Auftrag.TourID = tour.TourID;
if (Auftrag.FindeAuftrag(false).Gefunden)
{
if (meldung.GetFrage(this, $"Der Auftrag {Kunde.GetKunde(null, Auftrag.KundeID, null).Suchtext} Liefertag {Auftrag.Liefertag.ToShortDateString()} ist bereits vorhanden.\nMöchtest du diesen bearbeiten?\n\n[JA] => Auftrag bearbeiten\n[NEIN] => Neuen Auftrag erstellen", false) == DialogResult.Yes)
@ -428,16 +421,11 @@ namespace Deckungsbeitrag
}
else if (Auftrag.Save()[0] != 1) meldung.Speicherfehler();
if (this.benutzer.Rolle == BenutzerRolle.Fahrer)
{
this.Auftrag = null;
this.kunde = Funktionen.KundenAuswahl();
if (this.kunde != null) { DatenLaden(); return; }
else this.Close();
}
this.Auftrag = null;
this.kunde = Funktionen.KundenAuswahl();
if (this.kunde != null) { DatenLaden(); return; }
else this.Close();
}
private void Container_Click(object sender, EventArgs e)
{
PictureBox pb = (PictureBox)sender;
@ -491,7 +479,6 @@ namespace Deckungsbeitrag
{
dTPLiefertag_Leave(sender, e);
}
private void textBoxKndNr_Click(object sender, EventArgs e)
{
this.textBoxKndNr.Clear();
@ -515,10 +502,6 @@ namespace Deckungsbeitrag
if (e.KeyValue == 9) textBoxKundeName.Focus();
}
private void DataGridView_CellEnter(object sender, DataGridViewCellEventArgs e)
{
}
/// <summary>
/// Überprüfen ob die Eingabe eine Zahl ist. Es wird sonst eine Meldung angezeigt und das weiterspringen wird verhindert.
/// </summary>
@ -559,6 +542,8 @@ namespace Deckungsbeitrag
this.Height = 470;
break;
case AuftragTyp.Inventur:
this.DialogResult = DialogResult.Abort;
this.Close();
break;
case AuftragTyp.Standerhöhung:
if (this.kunde == null) return;
@ -569,6 +554,8 @@ namespace Deckungsbeitrag
this.Height = 470;
break;
case AuftragTyp.Standverminderung:
if (this.kunde == null) return;
this.panelRegAuftrag.Enabled = this.panelRegAuftrag.Visible = true;
this.pictureBoxPlus.Enabled = this.pictureBoxMinus.Enabled = this.textBoxCont.Enabled = false;
this.Width = this.panelRegAuftrag.Right + 25;
@ -584,6 +571,12 @@ namespace Deckungsbeitrag
this.Width = textBoxKundeName.Right + 30;
this.Height = 470;
break;
case AuftragTyp.Einmalig:
this.panelRegAuftrag.Enabled = this.panelRegAuftrag.Visible = true;
this.pictureBoxPlus.Enabled = this.pictureBoxMinus.Enabled = this.textBoxCont.Enabled = false;
this.Width = this.panelRegAuftrag.Right + 25;
this.Height = 470;
break;
default:
break;
}
@ -612,19 +605,28 @@ namespace Deckungsbeitrag
{
int index = 0;
int artAnzahl = 1;
string artname = string.Empty;
string anzahl = string.Empty;
DialogResult result;
UCArtikel uca;
var art = this.comboBoxArtikel.SelectedItem;
do
{
if (index > 0) if (MessageBox.Show("Bitte nur ganze Zahlen eingeben.", "ACHTUNG", MessageBoxButtons.OKCancel, MessageBoxIcon.Warning) == DialogResult.Cancel) return;
anzahl = Interaction.InputBox($"Wieviel Stück sollen geliefert werden?\n\nStück:", "Artikelanzahl", "");
index++;
} while (!int.TryParse(anzahl, out artAnzahl));
if (art is Artikel) uca = new UCArtikel((Artikel)art, artAnzahl);
else uca = new UCArtikel((KundeArtikel)art, artAnzahl);
artname = Interaction.InputBox($"Möchtest du einen individuellen Artikel eingeben?\n\nArtikelname:", "ARTIKELNAME WÄHLEN", "");
if (!string.IsNullOrWhiteSpace(artname))
{
do
{
if (index > 0) if (MessageBox.Show("Bitte nur ganze Zahlen eingeben.", "ACHTUNG", MessageBoxButtons.OKCancel, MessageBoxIcon.Warning) == DialogResult.Cancel) return;
anzahl = Interaction.InputBox($"Wieviel Stück sollen geliefert werden?\n\nStück:", "Artikelanzahl", "");
index++;
} while (!int.TryParse(anzahl, out artAnzahl));
}
var art = new Artikel()
{
Bezeichnung = artname,
Nummer = 0000
};
uca = new UCArtikel(art, artAnzahl);
uca.Width = fLPArtikel.Width - 25;
uca.DeleteClicked += Uca_DeleteClicked;
this.fLPArtikel.Controls.Add(uca);
@ -637,13 +639,18 @@ namespace Deckungsbeitrag
private void panelRegAuftrag_EnabledChanged(object sender, EventArgs e)
{
comboBoxArtikel.SelectedIndexChanged -= comboBoxArtikel_SelectedIndexChanged;
Panel panel = sender as Panel;
int dropdownWidth = comboBoxArtikel.DropDownWidth;
if (panel.Enabled)
{
if ((AuftragTyp)comboBoxTyp.SelectedValue == AuftragTyp.Regelmäßig)
if ((AuftragTyp)comboBoxTyp.SelectedValue == AuftragTyp.Regelmäßig || (AuftragTyp)comboBoxTyp.SelectedValue == AuftragTyp.Einmalig)
{
List<Artikel> artikelListe = Artikel.GetRegArtikelList();
List<Artikel> artikelListe;
if ((AuftragTyp)comboBoxTyp.SelectedValue == AuftragTyp.Regelmäßig) artikelListe = Artikel.GetRegArtikelList();
else artikelListe = Artikel.GetArtikelList("Alle");
comboBoxArtikel.DataSource = artikelListe;
comboBoxArtikel.DisplayMember = "Bezeichnung";
foreach (Artikel art in artikelListe)
@ -656,6 +663,7 @@ namespace Deckungsbeitrag
comboBoxRhythmus.DataSource = Enum.GetValues(typeof(RegRhythmen));
comboBoxRhythmus.SelectedIndex = -1;
if ((AuftragTyp)comboBoxTyp.SelectedValue == AuftragTyp.Einmalig) comboBoxRhythmus.Enabled = false;
}
if ((AuftragTyp)comboBoxTyp.SelectedValue == AuftragTyp.Standerhöhung || (AuftragTyp)comboBoxTyp.SelectedValue == AuftragTyp.Standverminderung)
{
@ -673,6 +681,8 @@ namespace Deckungsbeitrag
comboBoxRhythmus.Enabled = false;
}
}
comboBoxArtikel.SelectedIndexChanged += comboBoxArtikel_SelectedIndexChanged;
}
private void FormNeuerAuftrag_Shown(object sender, EventArgs e)
@ -698,6 +708,27 @@ namespace Deckungsbeitrag
//this.Close(); // Onboarding beendet
}
}
private void comboBoxArtikel_SelectedIndexChanged(object sender, EventArgs e)
{
int index = 0;
int artAnzahl = 1;
string anzahl = string.Empty;
UCArtikel uca;
var art = this.comboBoxArtikel.SelectedItem;
do
{
if (index > 0) if (MessageBox.Show("Bitte nur ganze Zahlen eingeben.", "ACHTUNG", MessageBoxButtons.OKCancel, MessageBoxIcon.Warning) == DialogResult.Cancel) return;
anzahl = Interaction.InputBox($"Wieviel Stück sollen geliefert werden?\n\nStück:", "Artikelanzahl", "");
index++;
} while (!int.TryParse(anzahl, out artAnzahl));
if (art is Artikel) uca = new UCArtikel((Artikel)art, artAnzahl);
else uca = new UCArtikel((KundeArtikel)art, artAnzahl);
uca.Width = fLPArtikel.Width - 25;
uca.DeleteClicked += Uca_DeleteClicked;
this.fLPArtikel.Controls.Add(uca);
}
}
}
//TODO: TourenListe Entwurf muss überarbeitet werden.

View File

@ -57,7 +57,8 @@ namespace DatenDB
Standerhöhung = 3,
Standverminderung = 4,
Regelmäßig = 5,
AufAbruf = 6
AufAbruf = 6,
Einmalig = 7
}
[Flags]
@ -450,7 +451,7 @@ namespace DatenDB
command.Connection = DatenbankConnection.GetConnection();
if (this.Typ != AuftragTyp.Regelmäßig)
{
if (exakt) command.CommandText = $"select auftrag_id from {TABLE} where kunde_id = {this.KundeID} and erstellt::date = '{this.Erstellt.Value.Date}' and liefertag = '{this.Liefertag}'";
if (exakt) command.CommandText = $"select auftrag_id from {TABLE} where kunde_id = {this.KundeID} and typ = {(int)this.Typ} and liefertag = '{this.Liefertag}'";
else command.CommandText = $"select auftrag_id from {TABLE} where kunde_id = {this.KundeID} and liefertag = '{this.Liefertag}' and status = {(int)this.Status}";
}
else command.CommandText = $"select auftrag_id from {TABLE} where kunde_id = {this.KundeID} and typ = {(int)this.Typ}";

View File

@ -68,7 +68,7 @@ namespace DatenDB
command.Parameters.AddWithValue("p0", this.AuftragArtikelID.Value);
command.Parameters.AddWithValue("p1", this.AuftragID);
command.Parameters.AddWithValue("p2", this.ArtikelID.Value);
command.Parameters.AddWithValue("p2", this.ArtikelID.HasValue ? this.ArtikelID.Value : (object)DBNull.Value);
command.Parameters.AddWithValue("p3", string.IsNullOrWhiteSpace(this.ArtikelName) ? (object)DBNull.Value : this.ArtikelName);
command.Parameters.AddWithValue("p4", this.Anzahl);
command.Parameters.AddWithValue("p5", this.Erledigt);
@ -86,7 +86,7 @@ namespace DatenDB
{
this.AuftragArtikelID = reader.GetInt32(0);
this.AuftragID = reader.GetInt32(1);
this.ArtikelID = reader.GetInt32(2);
this.ArtikelID = reader.IsDBNull(2) ? (int?)null : reader.GetInt32(2);
this.ArtikelName = reader.IsDBNull(3) ? string.Empty : reader.GetString(3);
this.Anzahl = reader.GetInt32(4);
this.Erledigt = reader.GetBoolean(5);

View File

@ -94,7 +94,7 @@ namespace Deckungsbeitrag.AA_Klassen
#region Konstruktors
/// <summary>
/// Sucht und Findet Tour wenn tTourID is null, werden BenutzerID und Liefertag benötigt
/// Sucht und Findet Tour wenn TourID is null, werden BenutzerID und Liefertag benötigt
/// </summary>
/// <param name="tourID"></param>
/// <param name="arbeiterID"></param>

View File

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

View File

@ -29,6 +29,8 @@
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();
@ -165,6 +167,14 @@
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,
@ -174,6 +184,14 @@
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);
@ -196,7 +214,7 @@
this.Column1.MinimumWidth = 6;
this.Column1.Name = "Column1";
this.Column1.ReadOnly = true;
this.Column1.Width = 86;
this.Column1.Width = 75;
//
// Column2
//
@ -205,7 +223,7 @@
this.Column2.MinimumWidth = 6;
this.Column2.Name = "Column2";
this.Column2.ReadOnly = true;
this.Column2.Width = 109;
this.Column2.Width = 96;
//
// Column3
//
@ -214,7 +232,7 @@
this.Column3.MinimumWidth = 6;
this.Column3.Name = "Column3";
this.Column3.ReadOnly = true;
this.Column3.Width = 109;
this.Column3.Width = 93;
//
// Column4
//
@ -223,7 +241,7 @@
this.Column4.MinimumWidth = 6;
this.Column4.Name = "Column4";
this.Column4.ReadOnly = true;
this.Column4.Width = 75;
this.Column4.Width = 68;
//
// Column5
//
@ -232,7 +250,7 @@
this.Column5.MinimumWidth = 6;
this.Column5.Name = "Column5";
this.Column5.ReadOnly = true;
this.Column5.Width = 62;
this.Column5.Width = 57;
//
// Column6
//
@ -240,7 +258,7 @@
this.Column6.MinimumWidth = 6;
this.Column6.Name = "Column6";
this.Column6.ReadOnly = true;
this.Column6.Width = 107;
this.Column6.Width = 93;
//
// Column7
//
@ -249,7 +267,7 @@
this.Column7.MinimumWidth = 6;
this.Column7.Name = "Column7";
this.Column7.ReadOnly = true;
this.Column7.Width = 141;
this.Column7.Width = 124;
//
// buttonFreigeben
//

View File

@ -94,7 +94,7 @@ namespace Deckungsbeitrag.UserControls
if (Sender is FormAuftragDetail formAuftragDetail)
{
pictureBoxClose.Visible = pictureBoxClose.Enabled = false;
pictureBoxPlus.Visible = pictureBoxPlus.Enabled = false;
//pictureBoxPlus.Visible = pictureBoxPlus.Enabled = false;
buttonAbbrechen.Visible = buttonAbbrechen.Enabled = false;
}
formLoading = false;
@ -192,6 +192,9 @@ namespace Deckungsbeitrag.UserControls
{
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;
DataGridViewTextBoxColumn column = new DataGridViewTextBoxColumn()
{
HeaderText = text,
@ -259,6 +262,8 @@ namespace Deckungsbeitrag.UserControls
List<KundeArtikel> _artikelliste = this.artikelListe;
string status = string.Empty;
string savePath = Path.Combine(ConfigurationManager.AppSettings["DateiSavePfad"], "Listen\\Inventuren") ?? "Inventuren";
if (ConfigurationManager.AppSettings["ConnectionString"].Split(';')[4].Split('=')[1] == "Test_Wirl") savePath = Path.Combine(ConfigurationManager.AppSettings["DateiSavePfad"], "Test\\Inventuren") ?? "Inventuren";
// Inventur Status Warten wenn noch Zahlen fehlen und Herrichten wenn alle vorhanden.
if (btn.Text.ToString() == "Speichern") status = "Warten";

View File

@ -121,7 +121,7 @@
<data name="pictureBoxClose.ErrorImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
vQAADr0BR/uQrQAAALtJREFUOE/tkTEKAjEQRdNbCJ7Eq+h2gngd9QwWyp5it/IoabRYQaKwvx35iyOT
vAAADrwBlbxySQAAALtJREFUOE/tkTEKAjEQRdNbCJ7Eq+h2gngd9QwWyp5it/IoabRYQaKwvx35iyOT
mE1p5cAnw8z/j5A4EXFUWgDO3f0pFPt0/8mVANP1Sag/4FcAAHMAnucYwHoiAAd9j7DctXLpwuNtjACc
cVftW6FXIQrwi20jrjrIbFMrxBuA54w7eujlLLqBNfC83sIQptjbnd7y6w1SyGR1HDQWjgD6SBZiZcPZ
X9DKQdJwEZBCcmFWEcBSSC7M0twLBeEEF8s9ZFEAAAAASUVORK5CYII=
@ -130,7 +130,7 @@
<data name="pictureBoxClose.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
vQAADr0BR/uQrQAAAKxJREFUOE9j+P//PwM2/O3bN4Nv3759gGIDdHkYxhBA1hwzYd9/EMZnCIYAsmaG
vAAADrwBlbxySQAAAKxJREFUOE9j+P//PwM2/O3bN4Nv3759gGIDdHkYxhBA1hwzYd9/EMZnCIYAsmaG
4DlgjM8QgpoJGUKUZnyG4NSMj41sCE7N3759g/NBbCzyYENABky4/uj1f77YheiSKAYgWwJSC9ID0gvz
woIT15/+z551GG4yFgPALgWpAakF6UEPxAXIfkM3ADmsYJpRDIAqUEBiYxiArgbDADTDsBqAjjEEhpkB
yBhdHoYBkN/zh5bcpfIAAAAASUVORK5CYII=
@ -139,7 +139,7 @@
<data name="pictureBoxClose.InitialImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
vQAADr0BR/uQrQAAAKxJREFUOE9j+P//PwM2/O3bN4Nv3759gGIDdHkYxhBA1hwzYd9/EMZnCIYAsmaG
vAAADrwBlbxySQAAAKxJREFUOE9j+P//PwM2/O3bN4Nv3759gGIDdHkYxhBA1hwzYd9/EMZnCIYAsmaG
4DlgjM8QgpoJGUKUZnyG4NSMj41sCE7N3759g/NBbCzyYENABky4/uj1f77YheiSKAYgWwJSC9ID0gvz
woIT15/+z551GG4yFgPALgWpAakF6UEPxAXIfkM3ADmsYJpRDIAqUEBiYxiArgbDADTDsBqAjjEEhpkB
yBhdHoYBkN/zh5bcpfIAAAAASUVORK5CYII=

View File

@ -5,7 +5,7 @@ NEUIGKEITEN - Version 1.0.8.7
Build-Info:
- Build-Typ: Release Build
- Erledigte TODOs: 19
- Offene TODOs: 43
- Offene TODOs: 38
- Install-Reminders: 4
- Changes: 15
@ -56,7 +56,7 @@ Build-Info:
- ✅ : Wenn RegAuftrag wird als augeliefert markiert, wird dieser automatisch neu erstellt laut hinterlegtem Rhythmus. [FormMain.cs]
=== 🔄 OFFENE TODOs (43) ===
=== 🔄 OFFENE TODOs (38) ===
- 🔄 !!Ü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]
@ -96,5 +96,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: 08.04.2026 12:16
Installation: 09.04.2026 11:01
=====================================