Inventur erneuern

This commit is contained in:
Kilian Wirl 2026-04-01 09:33:41 +02:00
parent 269f94c03a
commit 20dad58b7a
24 changed files with 2246 additions and 1146 deletions

View File

@ -219,8 +219,6 @@ namespace Deckungsbeitrag
/// <returns></returns> /// <returns></returns>
protected override bool ProcessDialogKey(Keys keyData) protected override bool ProcessDialogKey(Keys keyData)
{ {
//TODO: Umbau in Switch.
// Escape [ESC] schließt den Screen. // Escape [ESC] schließt den Screen.
if (Form.ModifierKeys == Keys.None && keyData == Keys.Escape) if (Form.ModifierKeys == Keys.None && keyData == Keys.Escape)
{ {

View File

@ -69,9 +69,10 @@
this.dTPLiefertag.Enabled = false; this.dTPLiefertag.Enabled = false;
this.dTPLiefertag.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.dTPLiefertag.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.dTPLiefertag.Format = System.Windows.Forms.DateTimePickerFormat.Custom; this.dTPLiefertag.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
this.dTPLiefertag.Location = new System.Drawing.Point(138, 171); this.dTPLiefertag.Location = new System.Drawing.Point(123, 137);
this.dTPLiefertag.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.dTPLiefertag.Name = "dTPLiefertag"; this.dTPLiefertag.Name = "dTPLiefertag";
this.dTPLiefertag.Size = new System.Drawing.Size(390, 29); this.dTPLiefertag.Size = new System.Drawing.Size(347, 34);
this.dTPLiefertag.TabIndex = 1; this.dTPLiefertag.TabIndex = 1;
// //
// labelKundeName // labelKundeName
@ -79,23 +80,24 @@
this.labelKundeName.AutoSize = true; this.labelKundeName.AutoSize = true;
this.labelKundeName.Font = new System.Drawing.Font("Microsoft Sans Serif", 22.2F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.labelKundeName.Font = new System.Drawing.Font("Microsoft Sans Serif", 22.2F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.labelKundeName.ForeColor = System.Drawing.Color.White; this.labelKundeName.ForeColor = System.Drawing.Color.White;
this.labelKundeName.Location = new System.Drawing.Point(12, 45); this.labelKundeName.Location = new System.Drawing.Point(11, 36);
this.labelKundeName.Name = "labelKundeName"; this.labelKundeName.Name = "labelKundeName";
this.labelKundeName.Size = new System.Drawing.Size(179, 36); this.labelKundeName.Size = new System.Drawing.Size(226, 42);
this.labelKundeName.TabIndex = 1; this.labelKundeName.TabIndex = 1;
this.labelKundeName.Text = "KundeName"; this.labelKundeName.Text = "KundeName";
// //
// buttonFertig // buttonFertig
// //
this.buttonFertig.Anchor = System.Windows.Forms.AnchorStyles.Bottom; this.buttonFertig.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.buttonFertig.BackColor = System.Drawing.Color.Turquoise; this.buttonFertig.BackColor = System.Drawing.Color.Turquoise;
this.buttonFertig.FlatAppearance.BorderSize = 0; this.buttonFertig.FlatAppearance.BorderSize = 0;
this.buttonFertig.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.buttonFertig.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.buttonFertig.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.buttonFertig.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.buttonFertig.ForeColor = System.Drawing.Color.Black; this.buttonFertig.ForeColor = System.Drawing.Color.Black;
this.buttonFertig.Location = new System.Drawing.Point(322, 769); this.buttonFertig.Location = new System.Drawing.Point(286, 615);
this.buttonFertig.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.buttonFertig.Name = "buttonFertig"; this.buttonFertig.Name = "buttonFertig";
this.buttonFertig.Size = new System.Drawing.Size(300, 63); this.buttonFertig.Size = new System.Drawing.Size(267, 50);
this.buttonFertig.TabIndex = 14; this.buttonFertig.TabIndex = 14;
this.buttonFertig.Text = "Auftrag abschließen"; this.buttonFertig.Text = "Auftrag abschließen";
this.buttonFertig.UseVisualStyleBackColor = false; this.buttonFertig.UseVisualStyleBackColor = false;
@ -103,15 +105,16 @@
// //
// buttonAbbrechen // buttonAbbrechen
// //
this.buttonAbbrechen.Anchor = System.Windows.Forms.AnchorStyles.Bottom; this.buttonAbbrechen.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.buttonAbbrechen.BackColor = System.Drawing.Color.Red; this.buttonAbbrechen.BackColor = System.Drawing.Color.Red;
this.buttonAbbrechen.FlatAppearance.BorderSize = 0; this.buttonAbbrechen.FlatAppearance.BorderSize = 0;
this.buttonAbbrechen.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.buttonAbbrechen.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.buttonAbbrechen.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.buttonAbbrechen.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.buttonAbbrechen.ForeColor = System.Drawing.Color.Black; this.buttonAbbrechen.ForeColor = System.Drawing.Color.Black;
this.buttonAbbrechen.Location = new System.Drawing.Point(934, 769); this.buttonAbbrechen.Location = new System.Drawing.Point(830, 615);
this.buttonAbbrechen.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.buttonAbbrechen.Name = "buttonAbbrechen"; this.buttonAbbrechen.Name = "buttonAbbrechen";
this.buttonAbbrechen.Size = new System.Drawing.Size(300, 63); this.buttonAbbrechen.Size = new System.Drawing.Size(267, 50);
this.buttonAbbrechen.TabIndex = 0; this.buttonAbbrechen.TabIndex = 0;
this.buttonAbbrechen.Text = "Abbrechen"; this.buttonAbbrechen.Text = "Abbrechen";
this.buttonAbbrechen.UseVisualStyleBackColor = false; this.buttonAbbrechen.UseVisualStyleBackColor = false;
@ -122,22 +125,23 @@
this.labelRegion.AutoSize = true; this.labelRegion.AutoSize = true;
this.labelRegion.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.labelRegion.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.labelRegion.ForeColor = System.Drawing.Color.White; this.labelRegion.ForeColor = System.Drawing.Color.White;
this.labelRegion.Location = new System.Drawing.Point(132, 117); this.labelRegion.Location = new System.Drawing.Point(117, 94);
this.labelRegion.Name = "labelRegion"; this.labelRegion.Name = "labelRegion";
this.labelRegion.Size = new System.Drawing.Size(71, 24); this.labelRegion.Size = new System.Drawing.Size(91, 29);
this.labelRegion.TabIndex = 18; this.labelRegion.TabIndex = 18;
this.labelRegion.Text = "Region"; this.labelRegion.Text = "Region";
// //
// textBoxZusatz // textBoxZusatz
// //
this.textBoxZusatz.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) this.textBoxZusatz.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Right))); | System.Windows.Forms.AnchorStyles.Left)));
this.textBoxZusatz.Enabled = false; this.textBoxZusatz.Enabled = false;
this.textBoxZusatz.Font = new System.Drawing.Font("Microsoft Sans Serif", 16.2F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.textBoxZusatz.Font = new System.Drawing.Font("Microsoft Sans Serif", 16.2F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.textBoxZusatz.Location = new System.Drawing.Point(24, 546); this.textBoxZusatz.Location = new System.Drawing.Point(21, 437);
this.textBoxZusatz.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.textBoxZusatz.Multiline = true; this.textBoxZusatz.Multiline = true;
this.textBoxZusatz.Name = "textBoxZusatz"; this.textBoxZusatz.Name = "textBoxZusatz";
this.textBoxZusatz.Size = new System.Drawing.Size(504, 201); this.textBoxZusatz.Size = new System.Drawing.Size(448, 162);
this.textBoxZusatz.TabIndex = 20; this.textBoxZusatz.TabIndex = 20;
// //
// label1 // label1
@ -145,9 +149,9 @@
this.label1.AutoSize = true; this.label1.AutoSize = true;
this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label1.ForeColor = System.Drawing.Color.White; this.label1.ForeColor = System.Drawing.Color.White;
this.label1.Location = new System.Drawing.Point(18, 512); this.label1.Location = new System.Drawing.Point(16, 410);
this.label1.Name = "label1"; this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(62, 20); this.label1.Size = new System.Drawing.Size(77, 25);
this.label1.TabIndex = 21; this.label1.TabIndex = 21;
this.label1.Text = "Zusatz:"; this.label1.Text = "Zusatz:";
// //
@ -156,9 +160,9 @@
this.label2.AutoSize = true; this.label2.AutoSize = true;
this.label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label2.ForeColor = System.Drawing.Color.White; this.label2.ForeColor = System.Drawing.Color.White;
this.label2.Location = new System.Drawing.Point(18, 382); this.label2.Location = new System.Drawing.Point(16, 306);
this.label2.Name = "label2"; this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(82, 20); this.label2.Size = new System.Drawing.Size(103, 25);
this.label2.TabIndex = 22; this.label2.TabIndex = 22;
this.label2.Text = "Container:"; this.label2.Text = "Container:";
// //
@ -166,9 +170,10 @@
// //
this.pictureBoxMinus.BackColor = System.Drawing.Color.Red; this.pictureBoxMinus.BackColor = System.Drawing.Color.Red;
this.pictureBoxMinus.Image = ((System.Drawing.Image)(resources.GetObject("pictureBoxMinus.Image"))); this.pictureBoxMinus.Image = ((System.Drawing.Image)(resources.GetObject("pictureBoxMinus.Image")));
this.pictureBoxMinus.Location = new System.Drawing.Point(138, 434); this.pictureBoxMinus.Location = new System.Drawing.Point(123, 347);
this.pictureBoxMinus.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.pictureBoxMinus.Name = "pictureBoxMinus"; this.pictureBoxMinus.Name = "pictureBoxMinus";
this.pictureBoxMinus.Size = new System.Drawing.Size(57, 63); this.pictureBoxMinus.Size = new System.Drawing.Size(51, 50);
this.pictureBoxMinus.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; this.pictureBoxMinus.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
this.pictureBoxMinus.TabIndex = 30; this.pictureBoxMinus.TabIndex = 30;
this.pictureBoxMinus.TabStop = false; this.pictureBoxMinus.TabStop = false;
@ -178,9 +183,10 @@
// //
this.pictureBoxPlus.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(192)))), ((int)(((byte)(0))))); this.pictureBoxPlus.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(192)))), ((int)(((byte)(0)))));
this.pictureBoxPlus.Image = ((System.Drawing.Image)(resources.GetObject("pictureBoxPlus.Image"))); this.pictureBoxPlus.Image = ((System.Drawing.Image)(resources.GetObject("pictureBoxPlus.Image")));
this.pictureBoxPlus.Location = new System.Drawing.Point(250, 434); this.pictureBoxPlus.Location = new System.Drawing.Point(222, 347);
this.pictureBoxPlus.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.pictureBoxPlus.Name = "pictureBoxPlus"; this.pictureBoxPlus.Name = "pictureBoxPlus";
this.pictureBoxPlus.Size = new System.Drawing.Size(57, 63); this.pictureBoxPlus.Size = new System.Drawing.Size(51, 50);
this.pictureBoxPlus.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; this.pictureBoxPlus.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
this.pictureBoxPlus.TabIndex = 29; this.pictureBoxPlus.TabIndex = 29;
this.pictureBoxPlus.TabStop = false; this.pictureBoxPlus.TabStop = false;
@ -191,9 +197,9 @@
this.labelContainer.BackColor = System.Drawing.Color.White; this.labelContainer.BackColor = System.Drawing.Color.White;
this.labelContainer.Font = new System.Drawing.Font("Microsoft Sans Serif", 16.2F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.labelContainer.Font = new System.Drawing.Font("Microsoft Sans Serif", 16.2F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.labelContainer.ForeColor = System.Drawing.Color.Black; this.labelContainer.ForeColor = System.Drawing.Color.Black;
this.labelContainer.Location = new System.Drawing.Point(194, 434); this.labelContainer.Location = new System.Drawing.Point(172, 347);
this.labelContainer.Name = "labelContainer"; this.labelContainer.Name = "labelContainer";
this.labelContainer.Size = new System.Drawing.Size(57, 63); this.labelContainer.Size = new System.Drawing.Size(51, 50);
this.labelContainer.TabIndex = 28; this.labelContainer.TabIndex = 28;
this.labelContainer.Text = "0"; this.labelContainer.Text = "0";
this.labelContainer.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this.labelContainer.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
@ -204,9 +210,9 @@
this.label5.AutoSize = true; this.label5.AutoSize = true;
this.label5.Font = new System.Drawing.Font("Microsoft Sans Serif", 10.2F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label5.Font = new System.Drawing.Font("Microsoft Sans Serif", 10.2F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label5.ForeColor = System.Drawing.Color.White; this.label5.ForeColor = System.Drawing.Color.White;
this.label5.Location = new System.Drawing.Point(188, 405); this.label5.Location = new System.Drawing.Point(167, 324);
this.label5.Name = "label5"; this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(52, 17); this.label5.Size = new System.Drawing.Size(60, 20);
this.label5.TabIndex = 31; this.label5.TabIndex = 31;
this.label5.Text = "sauber"; this.label5.Text = "sauber";
// //
@ -215,23 +221,24 @@
this.label6.AutoSize = true; this.label6.AutoSize = true;
this.label6.Font = new System.Drawing.Font("Microsoft Sans Serif", 10.2F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label6.Font = new System.Drawing.Font("Microsoft Sans Serif", 10.2F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label6.ForeColor = System.Drawing.Color.White; this.label6.ForeColor = System.Drawing.Color.White;
this.label6.Location = new System.Drawing.Point(394, 405); this.label6.Location = new System.Drawing.Point(350, 324);
this.label6.Name = "label6"; this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(71, 17); this.label6.Size = new System.Drawing.Size(86, 20);
this.label6.TabIndex = 32; this.label6.TabIndex = 32;
this.label6.Text = "schmutzig"; this.label6.Text = "schmutzig";
// //
// buttonSWS // buttonSWS
// //
this.buttonSWS.Anchor = System.Windows.Forms.AnchorStyles.Bottom; this.buttonSWS.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.buttonSWS.BackColor = System.Drawing.Color.Yellow; this.buttonSWS.BackColor = System.Drawing.Color.Yellow;
this.buttonSWS.FlatAppearance.BorderSize = 0; this.buttonSWS.FlatAppearance.BorderSize = 0;
this.buttonSWS.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.buttonSWS.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.buttonSWS.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.buttonSWS.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.buttonSWS.ForeColor = System.Drawing.Color.Black; this.buttonSWS.ForeColor = System.Drawing.Color.Black;
this.buttonSWS.Location = new System.Drawing.Point(16, 769); this.buttonSWS.Location = new System.Drawing.Point(14, 615);
this.buttonSWS.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.buttonSWS.Name = "buttonSWS"; this.buttonSWS.Name = "buttonSWS";
this.buttonSWS.Size = new System.Drawing.Size(300, 63); this.buttonSWS.Size = new System.Drawing.Size(267, 50);
this.buttonSWS.TabIndex = 34; this.buttonSWS.TabIndex = 34;
this.buttonSWS.Text = "Sonderetikett drucken"; this.buttonSWS.Text = "Sonderetikett drucken";
this.buttonSWS.UseVisualStyleBackColor = false; this.buttonSWS.UseVisualStyleBackColor = false;
@ -239,15 +246,16 @@
// //
// buttonSpeichern // buttonSpeichern
// //
this.buttonSpeichern.Anchor = System.Windows.Forms.AnchorStyles.Bottom; this.buttonSpeichern.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.buttonSpeichern.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(192)))), ((int)(((byte)(0))))); this.buttonSpeichern.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(192)))), ((int)(((byte)(0)))));
this.buttonSpeichern.FlatAppearance.BorderSize = 0; this.buttonSpeichern.FlatAppearance.BorderSize = 0;
this.buttonSpeichern.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.buttonSpeichern.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.buttonSpeichern.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.buttonSpeichern.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.buttonSpeichern.ForeColor = System.Drawing.Color.Black; this.buttonSpeichern.ForeColor = System.Drawing.Color.Black;
this.buttonSpeichern.Location = new System.Drawing.Point(628, 769); this.buttonSpeichern.Location = new System.Drawing.Point(558, 615);
this.buttonSpeichern.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.buttonSpeichern.Name = "buttonSpeichern"; this.buttonSpeichern.Name = "buttonSpeichern";
this.buttonSpeichern.Size = new System.Drawing.Size(300, 63); this.buttonSpeichern.Size = new System.Drawing.Size(267, 50);
this.buttonSpeichern.TabIndex = 36; this.buttonSpeichern.TabIndex = 36;
this.buttonSpeichern.Text = "Änderungen speichern"; this.buttonSpeichern.Text = "Änderungen speichern";
this.buttonSpeichern.UseVisualStyleBackColor = false; this.buttonSpeichern.UseVisualStyleBackColor = false;
@ -258,9 +266,9 @@
this.label7.AutoSize = true; this.label7.AutoSize = true;
this.label7.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label7.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label7.ForeColor = System.Drawing.Color.White; this.label7.ForeColor = System.Drawing.Color.White;
this.label7.Location = new System.Drawing.Point(16, 249); this.label7.Location = new System.Drawing.Point(14, 199);
this.label7.Name = "label7"; this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(60, 20); this.label7.Size = new System.Drawing.Size(75, 25);
this.label7.TabIndex = 37; this.label7.TabIndex = 37;
this.label7.Text = "Fahrer:"; this.label7.Text = "Fahrer:";
// //
@ -269,9 +277,9 @@
this.label10.AutoSize = true; this.label10.AutoSize = true;
this.label10.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label10.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label10.ForeColor = System.Drawing.Color.White; this.label10.ForeColor = System.Drawing.Color.White;
this.label10.Location = new System.Drawing.Point(16, 320); this.label10.Location = new System.Drawing.Point(14, 256);
this.label10.Name = "label10"; this.label10.Name = "label10";
this.label10.Size = new System.Drawing.Size(67, 20); this.label10.Size = new System.Drawing.Size(83, 25);
this.label10.TabIndex = 39; this.label10.TabIndex = 39;
this.label10.Text = "Priorität:"; this.label10.Text = "Priorität:";
// //
@ -279,10 +287,10 @@
// //
this.comboBoxPriority.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.comboBoxPriority.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.comboBoxPriority.FormattingEnabled = true; this.comboBoxPriority.FormattingEnabled = true;
this.comboBoxPriority.Location = new System.Drawing.Point(136, 311); this.comboBoxPriority.Location = new System.Drawing.Point(121, 249);
this.comboBoxPriority.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); this.comboBoxPriority.Margin = new System.Windows.Forms.Padding(4);
this.comboBoxPriority.Name = "comboBoxPriority"; this.comboBoxPriority.Name = "comboBoxPriority";
this.comboBoxPriority.Size = new System.Drawing.Size(391, 32); this.comboBoxPriority.Size = new System.Drawing.Size(348, 37);
this.comboBoxPriority.TabIndex = 41; this.comboBoxPriority.TabIndex = 41;
this.comboBoxPriority.SelectedValueChanged += new System.EventHandler(this.comboBox_SelectedValueChanged); this.comboBoxPriority.SelectedValueChanged += new System.EventHandler(this.comboBox_SelectedValueChanged);
// //
@ -290,10 +298,10 @@
// //
this.comboBoxFahrer.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.comboBoxFahrer.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.comboBoxFahrer.FormattingEnabled = true; this.comboBoxFahrer.FormattingEnabled = true;
this.comboBoxFahrer.Location = new System.Drawing.Point(136, 240); this.comboBoxFahrer.Location = new System.Drawing.Point(121, 192);
this.comboBoxFahrer.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); this.comboBoxFahrer.Margin = new System.Windows.Forms.Padding(4);
this.comboBoxFahrer.Name = "comboBoxFahrer"; this.comboBoxFahrer.Name = "comboBoxFahrer";
this.comboBoxFahrer.Size = new System.Drawing.Size(391, 32); this.comboBoxFahrer.Size = new System.Drawing.Size(348, 37);
this.comboBoxFahrer.TabIndex = 42; this.comboBoxFahrer.TabIndex = 42;
this.comboBoxFahrer.SelectedValueChanged += new System.EventHandler(this.comboBox_SelectedValueChanged); this.comboBoxFahrer.SelectedValueChanged += new System.EventHandler(this.comboBox_SelectedValueChanged);
// //
@ -301,9 +309,10 @@
// //
this.pictureBoxDirtMinus.BackColor = System.Drawing.Color.Red; this.pictureBoxDirtMinus.BackColor = System.Drawing.Color.Red;
this.pictureBoxDirtMinus.Image = ((System.Drawing.Image)(resources.GetObject("pictureBoxDirtMinus.Image"))); this.pictureBoxDirtMinus.Image = ((System.Drawing.Image)(resources.GetObject("pictureBoxDirtMinus.Image")));
this.pictureBoxDirtMinus.Location = new System.Drawing.Point(360, 434); this.pictureBoxDirtMinus.Location = new System.Drawing.Point(320, 347);
this.pictureBoxDirtMinus.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.pictureBoxDirtMinus.Name = "pictureBoxDirtMinus"; this.pictureBoxDirtMinus.Name = "pictureBoxDirtMinus";
this.pictureBoxDirtMinus.Size = new System.Drawing.Size(57, 63); this.pictureBoxDirtMinus.Size = new System.Drawing.Size(51, 50);
this.pictureBoxDirtMinus.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; this.pictureBoxDirtMinus.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
this.pictureBoxDirtMinus.TabIndex = 45; this.pictureBoxDirtMinus.TabIndex = 45;
this.pictureBoxDirtMinus.TabStop = false; this.pictureBoxDirtMinus.TabStop = false;
@ -313,9 +322,10 @@
// //
this.pictureBoxDirtPlus.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(192)))), ((int)(((byte)(0))))); this.pictureBoxDirtPlus.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(192)))), ((int)(((byte)(0)))));
this.pictureBoxDirtPlus.Image = ((System.Drawing.Image)(resources.GetObject("pictureBoxDirtPlus.Image"))); this.pictureBoxDirtPlus.Image = ((System.Drawing.Image)(resources.GetObject("pictureBoxDirtPlus.Image")));
this.pictureBoxDirtPlus.Location = new System.Drawing.Point(472, 434); this.pictureBoxDirtPlus.Location = new System.Drawing.Point(420, 347);
this.pictureBoxDirtPlus.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.pictureBoxDirtPlus.Name = "pictureBoxDirtPlus"; this.pictureBoxDirtPlus.Name = "pictureBoxDirtPlus";
this.pictureBoxDirtPlus.Size = new System.Drawing.Size(57, 63); this.pictureBoxDirtPlus.Size = new System.Drawing.Size(51, 50);
this.pictureBoxDirtPlus.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; this.pictureBoxDirtPlus.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
this.pictureBoxDirtPlus.TabIndex = 44; this.pictureBoxDirtPlus.TabIndex = 44;
this.pictureBoxDirtPlus.TabStop = false; this.pictureBoxDirtPlus.TabStop = false;
@ -326,9 +336,9 @@
this.labelContDirt.BackColor = System.Drawing.Color.White; this.labelContDirt.BackColor = System.Drawing.Color.White;
this.labelContDirt.Font = new System.Drawing.Font("Microsoft Sans Serif", 16.2F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.labelContDirt.Font = new System.Drawing.Font("Microsoft Sans Serif", 16.2F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.labelContDirt.ForeColor = System.Drawing.Color.Black; this.labelContDirt.ForeColor = System.Drawing.Color.Black;
this.labelContDirt.Location = new System.Drawing.Point(416, 434); this.labelContDirt.Location = new System.Drawing.Point(370, 347);
this.labelContDirt.Name = "labelContDirt"; this.labelContDirt.Name = "labelContDirt";
this.labelContDirt.Size = new System.Drawing.Size(57, 63); this.labelContDirt.Size = new System.Drawing.Size(51, 50);
this.labelContDirt.TabIndex = 43; this.labelContDirt.TabIndex = 43;
this.labelContDirt.Text = "0"; this.labelContDirt.Text = "0";
this.labelContDirt.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this.labelContDirt.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
@ -338,9 +348,9 @@
this.label3.AutoSize = true; this.label3.AutoSize = true;
this.label3.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label3.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label3.ForeColor = System.Drawing.Color.White; this.label3.ForeColor = System.Drawing.Color.White;
this.label3.Location = new System.Drawing.Point(18, 14); this.label3.Location = new System.Drawing.Point(16, 11);
this.label3.Name = "label3"; this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(75, 20); this.label3.Size = new System.Drawing.Size(96, 25);
this.label3.TabIndex = 46; this.label3.TabIndex = 46;
this.label3.Text = "KundeNr:"; this.label3.Text = "KundeNr:";
// //
@ -349,9 +359,9 @@
this.label4.AutoSize = true; this.label4.AutoSize = true;
this.label4.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); 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.Color.White; this.label4.ForeColor = System.Drawing.Color.White;
this.label4.Location = new System.Drawing.Point(16, 122); this.label4.Location = new System.Drawing.Point(14, 98);
this.label4.Name = "label4"; this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(64, 20); this.label4.Size = new System.Drawing.Size(79, 25);
this.label4.TabIndex = 47; this.label4.TabIndex = 47;
this.label4.Text = "Region:"; this.label4.Text = "Region:";
// //
@ -360,9 +370,9 @@
this.label8.AutoSize = true; this.label8.AutoSize = true;
this.label8.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label8.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label8.ForeColor = System.Drawing.Color.White; this.label8.ForeColor = System.Drawing.Color.White;
this.label8.Location = new System.Drawing.Point(18, 185); this.label8.Location = new System.Drawing.Point(16, 148);
this.label8.Name = "label8"; this.label8.Name = "label8";
this.label8.Size = new System.Drawing.Size(76, 20); this.label8.Size = new System.Drawing.Size(93, 25);
this.label8.TabIndex = 48; this.label8.TabIndex = 48;
this.label8.Text = "Liefertag:"; this.label8.Text = "Liefertag:";
// //
@ -378,11 +388,11 @@
this.oLVArtikel.FullRowSelect = true; this.oLVArtikel.FullRowSelect = true;
this.oLVArtikel.GridLines = true; this.oLVArtikel.GridLines = true;
this.oLVArtikel.HideSelection = false; this.oLVArtikel.HideSelection = false;
this.oLVArtikel.Location = new System.Drawing.Point(556, 97); this.oLVArtikel.Location = new System.Drawing.Point(494, 78);
this.oLVArtikel.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); this.oLVArtikel.Margin = new System.Windows.Forms.Padding(4);
this.oLVArtikel.Name = "oLVArtikel"; this.oLVArtikel.Name = "oLVArtikel";
this.oLVArtikel.ShowImagesOnSubItems = true; this.oLVArtikel.ShowImagesOnSubItems = true;
this.oLVArtikel.Size = new System.Drawing.Size(676, 650); this.oLVArtikel.Size = new System.Drawing.Size(601, 521);
this.oLVArtikel.TabIndex = 49; this.oLVArtikel.TabIndex = 49;
this.oLVArtikel.UseAlternatingBackColors = true; this.oLVArtikel.UseAlternatingBackColors = true;
this.oLVArtikel.UseCompatibleStateImageBehavior = false; this.oLVArtikel.UseCompatibleStateImageBehavior = false;
@ -392,13 +402,14 @@
this.oLVArtikel.CellEditStarting += new BrightIdeasSoftware.CellEditEventHandler(this.oLVArtikel_CellEditStarting); this.oLVArtikel.CellEditStarting += new BrightIdeasSoftware.CellEditEventHandler(this.oLVArtikel_CellEditStarting);
this.oLVArtikel.ItemCheck += new System.Windows.Forms.ItemCheckEventHandler(this.oLVArtikel_ItemCheck); this.oLVArtikel.ItemCheck += new System.Windows.Forms.ItemCheckEventHandler(this.oLVArtikel_ItemCheck);
this.oLVArtikel.ItemChecked += new System.Windows.Forms.ItemCheckedEventHandler(this.oLVArtikel_ItemChecked); this.oLVArtikel.ItemChecked += new System.Windows.Forms.ItemCheckedEventHandler(this.oLVArtikel_ItemChecked);
this.oLVArtikel.SizeChanged += new System.EventHandler(this.oLVArtikel_SizeChanged);
// //
// FormAuftragDetail // FormAuftragDetail
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 20F); this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(1)))), ((int)(((byte)(53)))), ((int)(((byte)(101))))); this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(1)))), ((int)(((byte)(53)))), ((int)(((byte)(101)))));
this.ClientSize = new System.Drawing.Size(1252, 858); this.ClientSize = new System.Drawing.Size(1113, 686);
this.Controls.Add(this.oLVArtikel); this.Controls.Add(this.oLVArtikel);
this.Controls.Add(this.label8); this.Controls.Add(this.label8);
this.Controls.Add(this.label4); this.Controls.Add(this.label4);
@ -427,6 +438,7 @@
this.Controls.Add(this.dTPLiefertag); this.Controls.Add(this.dTPLiefertag);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.MaximizeBox = false; this.MaximizeBox = false;
this.Name = "FormAuftragDetail"; this.Name = "FormAuftragDetail";
this.Text = "Auftrag Detail"; this.Text = "Auftrag Detail";

View File

@ -1,30 +1,38 @@
using System; using BrightIdeasSoftware;
using DatenDB;
using Deckungsbeitrag.UserControls;
using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.ComponentModel; using System.ComponentModel;
using System.Configuration; using System.Configuration;
using System.Data; using System.Data;
using System.Diagnostics.Eventing.Reader;
using System.Drawing; using System.Drawing;
using System.Drawing.Printing; using System.Drawing.Printing;
using System.IO;
using System.Linq; using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using System.Web; using System.Web;
using System.Windows.Forms; using System.Windows.Forms;
using BrightIdeasSoftware; using System.Windows.Input;
using DatenDB; using ZXing;
using Deckungsbeitrag.UserControls;
namespace Deckungsbeitrag namespace Deckungsbeitrag
{ {
public partial class FormAuftragDetail : Form public partial class FormAuftragDetail : Form
{ {
private Dictionary<string, int[]> dictionary = new Dictionary<string, int[]>();
public Auftrag auftrag; public Auftrag auftrag;
public Benutzer benutzer; public Benutzer benutzer;
public List<AuftragArtikel> artikelList; public List<AuftragArtikel> artikelList;
public Meldungen meldung = new Meldungen(); public Meldungen meldung = new Meldungen();
private UCInventur uci;
private UCFeedback fb;
public Kunde kunde; public Kunde kunde;
private int diff = 0; private int diff = 0;
int[] bestand = new int[3]; // Reklamation/Fehlmenge/Standveränderung int[] bestand; // Reklamation/Fehlmenge/Standveränderung/Inventurausgleich
bool etikettgedruckt = false;
//WENN AUFTRAG SPEICHERN //WENN AUFTRAG SPEICHERN
@ -97,13 +105,32 @@ namespace Deckungsbeitrag
this.comboBoxPriority.SelectedValueChanged += comboBox_SelectedValueChanged; this.comboBoxPriority.SelectedValueChanged += comboBox_SelectedValueChanged;
this.comboBoxFahrer.SelectedValueChanged += comboBox_SelectedValueChanged; this.comboBoxFahrer.SelectedValueChanged += comboBox_SelectedValueChanged;
Load_OLV(); if (this.auftrag.Typ != AuftragTyp.Inventur || (this.auftrag.Typ == AuftragTyp.Inventur & this.auftrag.Status == AuftragStatus.Herrichten)) Load_OLV();
else Load_UCInventur(this.auftrag);
this.ClientSize = new Size(this.oLVArtikel.Right + 10, this.ClientSize.Height); this.ClientSize = new Size(this.oLVArtikel.Right + 10, this.ClientSize.Height);
//WENN STATUS VORBEREITET BUTTON FERTIG ENABLEN //WENN STATUS VORBEREITET BUTTON FERTIG ENABLEN
if (auftrag.Status == AuftragStatus.Vorbereitet) { buttonFertig.Enabled = true; buttonFertig.BackColor = Color.FromArgb(0, 192, 0); toclose = true; } if (auftrag.Status == AuftragStatus.Vorbereitet) { buttonFertig.Enabled = true; buttonFertig.BackColor = Color.FromArgb(0, 192, 0); toclose = true; }
} }
private void Load_UCInventur(Auftrag _auftrag)
{
Point loc = this.oLVArtikel.Location;
this.oLVArtikel.Visible = false;
string loadPath = Path.Combine(ConfigurationManager.AppSettings["DateiSavePfad"], "Listen\\Inventuren") ?? "Inventuren";
// Alle "Herrichten" Inventur Files auflisten.
string[] invFiles = Directory.GetFiles(loadPath, $"Warten-{_auftrag.AuftragID.ToString()}*.csv");
if (invFiles.Length == 0) return;
if (invFiles.Length > 1) { MessageBox.Show("Es wurden mehr Inventuren gefunden. Besprich das mit deinem Vorgesetzten.", "FEHLER", MessageBoxButtons.OK, MessageBoxIcon.Error); return; }
string[] lines = File.ReadAllLines(Path.Combine(loadPath, invFiles[0]), Encoding.UTF8);
uci = new UCInventur(lines, this.benutzer, this);
uci.Visible = false;
uci.SizeChangedForParent += () => { this.PerformLayout(); };
this.Controls.Add(uci);
}
private void Load_OLV() private void Load_OLV()
{ {
Generator.GenerateColumns(this.oLVArtikel, typeof(AuftragArtikel), true); Generator.GenerateColumns(this.oLVArtikel, typeof(AuftragArtikel), true);
@ -112,6 +139,9 @@ namespace Deckungsbeitrag
this.oLVArtikel.SetObjects(this.artikelList); this.oLVArtikel.SetObjects(this.artikelList);
this.oLVArtikel = Funktionen.Columns_Resize(null, this.oLVArtikel).olv; this.oLVArtikel = Funktionen.Columns_Resize(null, this.oLVArtikel).olv;
// Wenn alle Artikel Checked sind TOCLOSE auslösen.
oLVArtikel_ItemChecked(this.oLVArtikel, null);
} }
private void LadeComboBoxen() private void LadeComboBoxen()
@ -218,16 +248,20 @@ namespace Deckungsbeitrag
auftrag.ZusatzInfo = this.textBoxZusatz.Text; auftrag.ZusatzInfo = this.textBoxZusatz.Text;
auftrag.Save(); auftrag.Save();
if (auftrag.Typ == AuftragTyp.Regelmäßig) if (auftrag.Typ == AuftragTyp.Regelmäßig || (auftrag.Typ == AuftragTyp.Inventur & auftrag.Status == AuftragStatus.Herrichten))
{ {
foreach (OLVListItem item in this.oLVArtikel.Items) foreach (OLVListItem item in this.oLVArtikel.Items)
{ {
AuftragArtikel art = (AuftragArtikel)item.Tag; AuftragArtikel art = (AuftragArtikel)item.RowObject;
if (item.Checked) art.Erledigt = true; if (item.Checked) art.Erledigt = true;
else art.Erledigt = false; else art.Erledigt = false;
art.Save(); art.Save();
} }
if (auftrag.Typ == AuftragTyp.Inventur)
{
WriteToCSV(dictionary);
}
} }
} }
@ -306,6 +340,18 @@ namespace Deckungsbeitrag
auftrag.Status = AuftragStatus.Fertig; auftrag.Status = AuftragStatus.Fertig;
auftrag.Save(); auftrag.Save();
} }
if (auftrag.Typ == AuftragTyp.Inventur)
{
string loadPath = Path.Combine(ConfigurationManager.AppSettings["DateiSavePfad"], "Listen\\Inventuren") ?? "Inventuren";
// Inventur File des aktuellen Auftrags auflisten.
string[] invFiles = Directory.GetFiles(loadPath, $"Herrichten-{auftrag.AuftragID.ToString()}-{kunde.KundeNummer}.csv");
if (invFiles.Length == 1)
{
string ausgeliefertFile = $"Fertig-{auftrag.AuftragID.ToString()}-{kunde.KundeNummer}.csv";
File.Copy(Path.Combine(loadPath, invFiles[0]), Path.Combine(loadPath, ausgeliefertFile));
File.Delete(Path.Combine(loadPath, invFiles[0]));
}
}
} }
this.DialogResult = DialogResult.OK; this.DialogResult = DialogResult.OK;
@ -322,10 +368,89 @@ namespace Deckungsbeitrag
if (MessageBox.Show("Möchtest du Etiketten für die Änderung drucken?", "FRAGE", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes) if (MessageBox.Show("Möchtest du Etiketten für die Änderung drucken?", "FRAGE", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
{ {
Funktionen.SonderEtikett_Drucken(this.auftrag, bestand); Funktionen.SonderEtikett_Drucken(this.auftrag, bestand);
etikettgedruckt = true;
} }
} }
/// <summary>
/// SonderAuftrag in CSV-Liste eintragen. Jede Änderung wird in eine Zeile eingetragen. Rek./NW/Rest
/// </summary>
/// <param name="kndart"></param>
private void WriteToCSV(Dictionary<string, int[]> dictionary)
{
Kunde _knd = Kunde.GetKunde(null, auftrag.KundeID, null);
Benutzer _user = this.benutzer;
List<KundeArtikel> _artikelliste = KundeArtikel.GetList(_knd.KundeID.ToString());
string artikel = string.Empty;
string artikelStand = string.Empty;
string[] bestandNamen = new string[4] { "Rek.", "NW", "Rest", "INV" };
string fileName = $"{_knd.KundeNummer}_{_knd.Suchtext}.csv"; // Immer gleiche Datei!
string savePath = ConfigurationManager.AppSettings["DateiSavePfad"];
string inventurOrdner = Path.Combine(savePath, "Listen\\Kundenstand") ?? "Kundenstand";
string csvPath = Path.Combine(inventurOrdner, fileName);
// Prüfen ob Header schon existiert
bool headerExists = File.Exists(csvPath);
// Artikelbezeichnungen in string convertieren
foreach (KundeArtikel art in _artikelliste) { artikel += ";" + art.ArtikelName; artikelStand += ";" + art.Stand.ToString(); }
// Nur Header bei NEUER Datei
if (!headerExists)
{
var csv = new StringBuilder();
csv.AppendLine("=== STANDVERÄNDERUNG ===");
csv.AppendLine($"KundeNr: {_knd.KundeNummer}");
csv.AppendLine($"Kunde: {_knd.KundeName}");
csv.AppendLine(new string('=', 30));
csv.AppendLine();
csv.AppendLine($"Erstellt am;Erstellt von;Hergerichtet am;Veränderung;{artikel}");
File.WriteAllText(csvPath, csv.ToString(), Encoding.UTF8);
}
// NEUE Artikel ANHÄNGEN (ohne Header)
var appendCsv = new StringBuilder();
string difftrennzeichen = string.Empty;
var artikelArray = artikel.Split(';');
foreach (var kvp in dictionary)
{
string artikelKey = kvp.Key; // z.B. "ART1"
int[] artbestand = kvp.Value; // z.B. [3, 0, 5]
int artikelIndex = Array.IndexOf(artikelArray, artikelKey);
if (artikelIndex < 0) continue;
for (int idxInBestand = 0; idxInBestand < artbestand.Length; idxInBestand++)
{
int art = artbestand[idxInBestand];
if (art == 0) continue;
// Spalten: Datum, User, Heute, Bestandsname, dann alle ArtikelSpalten
int totalColumns = 4 + artikelArray.Length;
var line = new string[totalColumns];
line[0] = auftrag.Erstellt.Value.Date.ToString("yyyy-MM-dd");
line[1] = _user.Vorname + " " + _user.Nachname;
line[2] = DateTime.Today.ToString("yyyy-MM-dd");
line[3] = bestandNamen[idxInBestand]; // z.B. "Lager A"
// Wert in der richtigen ArtikelSpalte
line[4 + artikelIndex] = art.ToString();
appendCsv.AppendLine(string.Join(";", line));
}
}
appendCsv.AppendLine($"{DateTime.Today.Date.ToString("yyyy-MM-dd")};;;Stand;{artikelStand}{difftrennzeichen}");
// ANHÄNGEN statt überschreiben
File.AppendAllText(csvPath, appendCsv.ToString(), Encoding.UTF8);
}
/// <summary> /// <summary>
/// UNUSED THINGS /// UNUSED THINGS
@ -344,16 +469,30 @@ namespace Deckungsbeitrag
//PRINT PAGE FÜR DRUCK //PRINT PAGE FÜR DRUCK
private void FormAuftragDetail_Shown(object sender, EventArgs e) private void FormAuftragDetail_Shown(object sender, EventArgs e)
{ {
UCFeedback fb = new UCFeedback(benutzer); fb = new UCFeedback(benutzer);
Button btn = fb.Controls[0] as Button; Button btn = fb.Controls[0] as Button;
if (fb != null) fb.Location = new Point(this.ClientSize.Width - fb.Width - 7, 0);
btn.BackColor = Program.Wirlblau; btn.BackColor = Program.Wirlblau;
btn.ForeColor = Color.White; btn.ForeColor = Color.White;
btn.FlatAppearance.BorderColor = Color.White; btn.FlatAppearance.BorderColor = Color.White;
this.Controls.Add(fb); this.Controls.Add(fb);
fb.BringToFront(); fb.BringToFront();
this.oLVArtikel.Location = new Point(this.oLVArtikel.Location.X, fb.Bottom + 2); 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.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);
//if (oLVArtikel != null) this.ClientSize = new Size(oLVArtikel.Right + 10, oLVArtikel.Bottom + buttonAbbrechen.Height + 25);
} }
private void oLVArtikel_CellEditStarting(object sender, CellEditEventArgs e) private void oLVArtikel_CellEditStarting(object sender, CellEditEventArgs e)
@ -368,34 +507,44 @@ namespace Deckungsbeitrag
ObjectListView olv = (ObjectListView)sender; ObjectListView olv = (ObjectListView)sender;
AuftragArtikel auftragArtikel = (AuftragArtikel)e.RowObject; AuftragArtikel auftragArtikel = (AuftragArtikel)e.RowObject;
if (e.Column.Text == "Anzahl") diff = ((int)e.Value - ((int)e.NewValue)); if (e.Column.Text == "Anzahl") diff = (int)e.Value - ((int)e.NewValue);
if (diff > 0) tosave = true;
auftragArtikel.Anzahl = (int)e.NewValue; auftragArtikel.Anzahl = (int)e.NewValue;
auftragArtikel.Save(); auftragArtikel.Save();
if (auftragArtikel.Anzahl == 0) e.ListViewItem.Checked = true;
KundeArtikel kndart = KundeArtikel.GetKundeArtikelVonArtikelID(this.kunde.KundeID, auftragArtikel.ArtikelID); KundeArtikel kndart = KundeArtikel.GetKundeArtikelVonArtikelID(this.kunde.KundeID, auftragArtikel.ArtikelID);
int reklamation = kndart.Reklamation; int reklamation = kndart.Reklamation;
int fehlmenge = kndart.Fehlmenge; int fehlmenge = kndart.Fehlmenge;
int stand = kndart.Stand; int stand = kndart.Stand;
KorrigiereBestand(diff, ref reklamation, ref fehlmenge, ref stand); int korrektur = kndart.Korrektur;
KorrigiereBestand(diff, ref reklamation, ref fehlmenge, ref stand, ref korrektur);
kndart.Reklamation = reklamation; kndart.Reklamation = reklamation;
kndart.Fehlmenge = fehlmenge; kndart.Fehlmenge = fehlmenge;
kndart.Stand = stand; kndart.Stand = stand;
kndart.Korrektur = korrektur;
kndart.Save(); kndart.Save();
if (dictionary.TryGetValue(kndart.ArtikelName, out int[] value))
{
for (int i = 0; i < value.Length; i++)
{
value[i] += bestand[i];
}
}
else dictionary.Add(kndart.ArtikelName, bestand);
//WriteToCSV(kndart);
this.ResumeLayout(); this.ResumeLayout();
this.Cursor = Cursors.Default; this.Cursor = Cursors.Default;
} }
//TODO: Standerhöhung funktioniert soweit Standverringerung soll nur auf Stand gehen public void KorrigiereBestand(int diff, ref int reklamation, ref int fehlmenge, ref int stand, ref int korrektur)
public void KorrigiereBestand(int diff, ref int reklamation, ref int fehlmenge, ref int stand)
{ {
bestand = new int[4];
if (diff == 0) if (diff == 0)
return; return;
if (diff < 0) { bestand[2] = diff; stand += diff; return; } if (diff < 0) { bestand[2] = diff; stand += diff; return; }
int rest = diff * 1; int rest = diff * 1;
@ -417,20 +566,48 @@ namespace Deckungsbeitrag
rest -= abbau; rest -= abbau;
} }
// 3) Rest auf Stand buchen // 3) Inventurausgleich korrigieren
if (korrektur > 0)
{
int korr = Math.Min(korrektur, rest);
bestand[3] = korr;
korrektur -= korr;
rest -= korr;
}
// 4) Rest auf Stand buchen
if (rest > 0) if (rest > 0)
stand += rest; stand += rest;
bestand[2] = rest; bestand[2] = rest;
} }
private void oLVArtikel_ItemSelectionChanged(object sender, ListViewItemSelectionChangedEventArgs e) private void oLVArtikel_ItemSelectionChanged(object sender, ListViewItemSelectionChangedEventArgs e)
{ {
tosave = true; tosave = true;
} }
private void FormAuftragDetail_Resize(object sender, EventArgs 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);
}
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);
}
} }
} }
//TODO: Standverminderung und Standerhöhung mit einem Aufruf (Standveränderung?) Bei Verminderung -Zahlen sonst Plus. //TODO: Standverminderung und Standerhöhung mit einem Aufruf (Standveränderung?) Bei Verminderung -Zahlen sonst Plus.
//TODO: Korrigiere Bestand: Wenn -Zahl dann Stand - Zahl. //DONE: Korrigiere Bestand: Wenn -Zahl dann Stand - Zahl.
//TODO: Speichern etc. durchgehen und adaptieren //TODO: Speichern etc. durchgehen und adaptieren
//TODO: Liste vorher/nachher durchdenken //TODO: Liste vorher/nachher durchdenken
//DONE: Feedback Button hinzufügen //DONE: Feedback Button hinzufügen

View File

@ -192,12 +192,12 @@
this.tableLayoutPanelInfo.Controls.Add(this.labelAnmerkung, 0, 0); this.tableLayoutPanelInfo.Controls.Add(this.labelAnmerkung, 0, 0);
this.tableLayoutPanelInfo.Controls.Add(this.labelAufgabe, 0, 1); this.tableLayoutPanelInfo.Controls.Add(this.labelAufgabe, 0, 1);
this.tableLayoutPanelInfo.Dock = System.Windows.Forms.DockStyle.Fill; this.tableLayoutPanelInfo.Dock = System.Windows.Forms.DockStyle.Fill;
this.tableLayoutPanelInfo.Location = new System.Drawing.Point(3, 22); this.tableLayoutPanelInfo.Location = new System.Drawing.Point(3, 26);
this.tableLayoutPanelInfo.Name = "tableLayoutPanelInfo"; this.tableLayoutPanelInfo.Name = "tableLayoutPanelInfo";
this.tableLayoutPanelInfo.RowCount = 2; this.tableLayoutPanelInfo.RowCount = 2;
this.tableLayoutPanelInfo.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F)); this.tableLayoutPanelInfo.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
this.tableLayoutPanelInfo.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F)); this.tableLayoutPanelInfo.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
this.tableLayoutPanelInfo.Size = new System.Drawing.Size(287, 158); this.tableLayoutPanelInfo.Size = new System.Drawing.Size(287, 154);
this.tableLayoutPanelInfo.TabIndex = 0; this.tableLayoutPanelInfo.TabIndex = 0;
// //
// labelAnmerkung // labelAnmerkung
@ -207,7 +207,7 @@
this.labelAnmerkung.ForeColor = System.Drawing.Color.Red; this.labelAnmerkung.ForeColor = System.Drawing.Color.Red;
this.labelAnmerkung.Location = new System.Drawing.Point(3, 0); this.labelAnmerkung.Location = new System.Drawing.Point(3, 0);
this.labelAnmerkung.Name = "labelAnmerkung"; this.labelAnmerkung.Name = "labelAnmerkung";
this.labelAnmerkung.Size = new System.Drawing.Size(281, 79); this.labelAnmerkung.Size = new System.Drawing.Size(281, 77);
this.labelAnmerkung.TabIndex = 0; this.labelAnmerkung.TabIndex = 0;
this.labelAnmerkung.Text = "label2"; this.labelAnmerkung.Text = "label2";
// //
@ -215,9 +215,9 @@
// //
this.labelAufgabe.AutoSize = true; this.labelAufgabe.AutoSize = true;
this.labelAufgabe.Dock = System.Windows.Forms.DockStyle.Fill; this.labelAufgabe.Dock = System.Windows.Forms.DockStyle.Fill;
this.labelAufgabe.Location = new System.Drawing.Point(3, 79); this.labelAufgabe.Location = new System.Drawing.Point(3, 77);
this.labelAufgabe.Name = "labelAufgabe"; this.labelAufgabe.Name = "labelAufgabe";
this.labelAufgabe.Size = new System.Drawing.Size(281, 79); this.labelAufgabe.Size = new System.Drawing.Size(281, 77);
this.labelAufgabe.TabIndex = 1; this.labelAufgabe.TabIndex = 1;
this.labelAufgabe.Text = "label3"; this.labelAufgabe.Text = "label3";
// //
@ -270,9 +270,9 @@
// tabPageRampe // tabPageRampe
// //
this.tabPageRampe.Controls.Add(this.objectListViewRampe); this.tabPageRampe.Controls.Add(this.objectListViewRampe);
this.tabPageRampe.Location = new System.Drawing.Point(4, 34); this.tabPageRampe.Location = new System.Drawing.Point(4, 39);
this.tabPageRampe.Name = "tabPageRampe"; this.tabPageRampe.Name = "tabPageRampe";
this.tabPageRampe.Size = new System.Drawing.Size(890, 584); this.tabPageRampe.Size = new System.Drawing.Size(890, 579);
this.tabPageRampe.TabIndex = 3; this.tabPageRampe.TabIndex = 3;
this.tabPageRampe.Text = "Rampe"; this.tabPageRampe.Text = "Rampe";
this.tabPageRampe.UseVisualStyleBackColor = true; this.tabPageRampe.UseVisualStyleBackColor = true;
@ -291,7 +291,7 @@
this.objectListViewRampe.Location = new System.Drawing.Point(0, 0); this.objectListViewRampe.Location = new System.Drawing.Point(0, 0);
this.objectListViewRampe.Name = "objectListViewRampe"; this.objectListViewRampe.Name = "objectListViewRampe";
this.objectListViewRampe.SelectColumnsOnRightClickBehaviour = BrightIdeasSoftware.ObjectListView.ColumnSelectBehaviour.Submenu; this.objectListViewRampe.SelectColumnsOnRightClickBehaviour = BrightIdeasSoftware.ObjectListView.ColumnSelectBehaviour.Submenu;
this.objectListViewRampe.Size = new System.Drawing.Size(890, 584); this.objectListViewRampe.Size = new System.Drawing.Size(890, 579);
this.objectListViewRampe.Sorting = System.Windows.Forms.SortOrder.Ascending; this.objectListViewRampe.Sorting = System.Windows.Forms.SortOrder.Ascending;
this.objectListViewRampe.TabIndex = 2; this.objectListViewRampe.TabIndex = 2;
this.objectListViewRampe.TintSortColumn = true; this.objectListViewRampe.TintSortColumn = true;
@ -308,10 +308,10 @@
// tabPageSonder // tabPageSonder
// //
this.tabPageSonder.Controls.Add(this.objectListViewSonder); this.tabPageSonder.Controls.Add(this.objectListViewSonder);
this.tabPageSonder.Location = new System.Drawing.Point(4, 34); this.tabPageSonder.Location = new System.Drawing.Point(4, 39);
this.tabPageSonder.Name = "tabPageSonder"; this.tabPageSonder.Name = "tabPageSonder";
this.tabPageSonder.Padding = new System.Windows.Forms.Padding(3); this.tabPageSonder.Padding = new System.Windows.Forms.Padding(3);
this.tabPageSonder.Size = new System.Drawing.Size(890, 584); this.tabPageSonder.Size = new System.Drawing.Size(890, 579);
this.tabPageSonder.TabIndex = 1; this.tabPageSonder.TabIndex = 1;
this.tabPageSonder.Text = "Sonderaufträge"; this.tabPageSonder.Text = "Sonderaufträge";
this.tabPageSonder.UseVisualStyleBackColor = true; this.tabPageSonder.UseVisualStyleBackColor = true;
@ -329,7 +329,7 @@
this.objectListViewSonder.Location = new System.Drawing.Point(3, 3); this.objectListViewSonder.Location = new System.Drawing.Point(3, 3);
this.objectListViewSonder.Name = "objectListViewSonder"; this.objectListViewSonder.Name = "objectListViewSonder";
this.objectListViewSonder.SelectColumnsOnRightClickBehaviour = BrightIdeasSoftware.ObjectListView.ColumnSelectBehaviour.Submenu; this.objectListViewSonder.SelectColumnsOnRightClickBehaviour = BrightIdeasSoftware.ObjectListView.ColumnSelectBehaviour.Submenu;
this.objectListViewSonder.Size = new System.Drawing.Size(884, 578); this.objectListViewSonder.Size = new System.Drawing.Size(884, 573);
this.objectListViewSonder.Sorting = System.Windows.Forms.SortOrder.Ascending; this.objectListViewSonder.Sorting = System.Windows.Forms.SortOrder.Ascending;
this.objectListViewSonder.TabIndex = 2; this.objectListViewSonder.TabIndex = 2;
this.objectListViewSonder.TintSortColumn = true; this.objectListViewSonder.TintSortColumn = true;
@ -347,10 +347,10 @@
// tabPageGeschaeft // tabPageGeschaeft
// //
this.tabPageGeschaeft.Controls.Add(this.objectListViewGeschaeft); this.tabPageGeschaeft.Controls.Add(this.objectListViewGeschaeft);
this.tabPageGeschaeft.Location = new System.Drawing.Point(4, 34); this.tabPageGeschaeft.Location = new System.Drawing.Point(4, 39);
this.tabPageGeschaeft.Name = "tabPageGeschaeft"; this.tabPageGeschaeft.Name = "tabPageGeschaeft";
this.tabPageGeschaeft.Padding = new System.Windows.Forms.Padding(3); this.tabPageGeschaeft.Padding = new System.Windows.Forms.Padding(3);
this.tabPageGeschaeft.Size = new System.Drawing.Size(890, 584); this.tabPageGeschaeft.Size = new System.Drawing.Size(890, 579);
this.tabPageGeschaeft.TabIndex = 2; this.tabPageGeschaeft.TabIndex = 2;
this.tabPageGeschaeft.Text = "Geschäft"; this.tabPageGeschaeft.Text = "Geschäft";
this.tabPageGeschaeft.UseVisualStyleBackColor = true; this.tabPageGeschaeft.UseVisualStyleBackColor = true;
@ -369,7 +369,7 @@
this.objectListViewGeschaeft.Location = new System.Drawing.Point(3, 3); this.objectListViewGeschaeft.Location = new System.Drawing.Point(3, 3);
this.objectListViewGeschaeft.Name = "objectListViewGeschaeft"; this.objectListViewGeschaeft.Name = "objectListViewGeschaeft";
this.objectListViewGeschaeft.SelectColumnsOnRightClickBehaviour = BrightIdeasSoftware.ObjectListView.ColumnSelectBehaviour.Submenu; this.objectListViewGeschaeft.SelectColumnsOnRightClickBehaviour = BrightIdeasSoftware.ObjectListView.ColumnSelectBehaviour.Submenu;
this.objectListViewGeschaeft.Size = new System.Drawing.Size(884, 578); this.objectListViewGeschaeft.Size = new System.Drawing.Size(884, 573);
this.objectListViewGeschaeft.Sorting = System.Windows.Forms.SortOrder.Ascending; this.objectListViewGeschaeft.Sorting = System.Windows.Forms.SortOrder.Ascending;
this.objectListViewGeschaeft.TabIndex = 2; this.objectListViewGeschaeft.TabIndex = 2;
this.objectListViewGeschaeft.TintSortColumn = true; this.objectListViewGeschaeft.TintSortColumn = true;
@ -392,10 +392,10 @@
// tabPageAll // tabPageAll
// //
this.tabPageAll.Controls.Add(this.objectListViewAuftrag); this.tabPageAll.Controls.Add(this.objectListViewAuftrag);
this.tabPageAll.Location = new System.Drawing.Point(4, 34); this.tabPageAll.Location = new System.Drawing.Point(4, 39);
this.tabPageAll.Name = "tabPageAll"; this.tabPageAll.Name = "tabPageAll";
this.tabPageAll.Padding = new System.Windows.Forms.Padding(3); this.tabPageAll.Padding = new System.Windows.Forms.Padding(3);
this.tabPageAll.Size = new System.Drawing.Size(890, 584); this.tabPageAll.Size = new System.Drawing.Size(890, 579);
this.tabPageAll.TabIndex = 0; this.tabPageAll.TabIndex = 0;
this.tabPageAll.Text = "Aufträge heute"; this.tabPageAll.Text = "Aufträge heute";
this.tabPageAll.UseVisualStyleBackColor = true; this.tabPageAll.UseVisualStyleBackColor = true;
@ -414,7 +414,7 @@
this.objectListViewAuftrag.Location = new System.Drawing.Point(3, 3); this.objectListViewAuftrag.Location = new System.Drawing.Point(3, 3);
this.objectListViewAuftrag.Name = "objectListViewAuftrag"; this.objectListViewAuftrag.Name = "objectListViewAuftrag";
this.objectListViewAuftrag.SelectColumnsOnRightClickBehaviour = BrightIdeasSoftware.ObjectListView.ColumnSelectBehaviour.Submenu; this.objectListViewAuftrag.SelectColumnsOnRightClickBehaviour = BrightIdeasSoftware.ObjectListView.ColumnSelectBehaviour.Submenu;
this.objectListViewAuftrag.Size = new System.Drawing.Size(884, 578); this.objectListViewAuftrag.Size = new System.Drawing.Size(884, 573);
this.objectListViewAuftrag.Sorting = System.Windows.Forms.SortOrder.Ascending; this.objectListViewAuftrag.Sorting = System.Windows.Forms.SortOrder.Ascending;
this.objectListViewAuftrag.TabIndex = 1; this.objectListViewAuftrag.TabIndex = 1;
this.objectListViewAuftrag.TintSortColumn = true; this.objectListViewAuftrag.TintSortColumn = true;
@ -457,9 +457,9 @@
// tabPageVorbereitet // tabPageVorbereitet
// //
this.tabPageVorbereitet.Controls.Add(this.objectListViewVorbereitet); this.tabPageVorbereitet.Controls.Add(this.objectListViewVorbereitet);
this.tabPageVorbereitet.Location = new System.Drawing.Point(4, 34); this.tabPageVorbereitet.Location = new System.Drawing.Point(4, 39);
this.tabPageVorbereitet.Name = "tabPageVorbereitet"; this.tabPageVorbereitet.Name = "tabPageVorbereitet";
this.tabPageVorbereitet.Size = new System.Drawing.Size(890, 584); this.tabPageVorbereitet.Size = new System.Drawing.Size(890, 579);
this.tabPageVorbereitet.TabIndex = 4; this.tabPageVorbereitet.TabIndex = 4;
this.tabPageVorbereitet.Text = "Vorbereitet"; this.tabPageVorbereitet.Text = "Vorbereitet";
this.tabPageVorbereitet.UseVisualStyleBackColor = true; this.tabPageVorbereitet.UseVisualStyleBackColor = true;
@ -479,7 +479,7 @@
this.objectListViewVorbereitet.Location = new System.Drawing.Point(0, 0); this.objectListViewVorbereitet.Location = new System.Drawing.Point(0, 0);
this.objectListViewVorbereitet.Name = "objectListViewVorbereitet"; this.objectListViewVorbereitet.Name = "objectListViewVorbereitet";
this.objectListViewVorbereitet.SelectColumnsOnRightClickBehaviour = BrightIdeasSoftware.ObjectListView.ColumnSelectBehaviour.Submenu; this.objectListViewVorbereitet.SelectColumnsOnRightClickBehaviour = BrightIdeasSoftware.ObjectListView.ColumnSelectBehaviour.Submenu;
this.objectListViewVorbereitet.Size = new System.Drawing.Size(890, 584); this.objectListViewVorbereitet.Size = new System.Drawing.Size(890, 579);
this.objectListViewVorbereitet.Sorting = System.Windows.Forms.SortOrder.Ascending; this.objectListViewVorbereitet.Sorting = System.Windows.Forms.SortOrder.Ascending;
this.objectListViewVorbereitet.TabIndex = 2; this.objectListViewVorbereitet.TabIndex = 2;
this.objectListViewVorbereitet.TintSortColumn = true; this.objectListViewVorbereitet.TintSortColumn = true;
@ -512,7 +512,6 @@
this.Controls.Add(this.buttonNeuerAuftrag); this.Controls.Add(this.buttonNeuerAuftrag);
this.Controls.Add(this.buttonSWS_Drucken); this.Controls.Add(this.buttonSWS_Drucken);
this.Controls.Add(this.tabControlAuftragList); this.Controls.Add(this.tabControlAuftragList);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
this.HelpButton = true; this.HelpButton = true;
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.Margin = new System.Windows.Forms.Padding(2); this.Margin = new System.Windows.Forms.Padding(2);
@ -521,6 +520,7 @@
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Text = "EXPEDIT"; this.Text = "EXPEDIT";
this.WindowState = System.Windows.Forms.FormWindowState.Maximized; this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
this.HelpButtonClicked += new System.ComponentModel.CancelEventHandler(this.FormExpedit_HelpButtonClicked);
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FormExpedit_FormClosing); this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FormExpedit_FormClosing);
this.Load += new System.EventHandler(this.FormExpedit_Load); this.Load += new System.EventHandler(this.FormExpedit_Load);
this.Shown += new System.EventHandler(this.FormExpedit_Shown); this.Shown += new System.EventHandler(this.FormExpedit_Shown);

View File

@ -68,11 +68,10 @@ namespace Deckungsbeitrag
private bool aufgabeDone = false; private bool aufgabeDone = false;
private bool isttest = true; private bool isttest = true;
private bool _doubleClickPending = false; private bool _doubleClickPending = false;
private OnboardingSchritt onBoardingArt = OnboardingSchritt.Expedit;
#endregion #endregion
public FormExpedit(Benutzer benutzer) public FormExpedit(Benutzer benutzer)
{ {
this.Cursor = Cursors.WaitCursor;
InitializeComponent(); InitializeComponent();
this.Text += " Version: " + Assembly.GetExecutingAssembly().GetName().Version.ToString(); this.Text += " Version: " + Assembly.GetExecutingAssembly().GetName().Version.ToString();
@ -82,8 +81,6 @@ namespace Deckungsbeitrag
} }
public FormExpedit(Benutzer benutzer, Screen[] screens) : this(benutzer) public FormExpedit(Benutzer benutzer, Screen[] screens) : this(benutzer)
{ {
this.Cursor = Cursors.WaitCursor;
this.screens = screens; this.screens = screens;
foreach (Screen screen in screens) foreach (Screen screen in screens)
{ {
@ -97,8 +94,7 @@ namespace Deckungsbeitrag
#region Form-Funktionen #region Form-Funktionen
private void FormExpedit_Load(object sender, EventArgs e) private void FormExpedit_Load(object sender, EventArgs e)
{ {
//Application.UseWaitCursor = true; this.UseWaitCursor = true;
this.Cursor = Cursors.WaitCursor;
this.SuspendLayout(); this.SuspendLayout();
_settings.Load(); _settings.Load();
@ -119,18 +115,14 @@ namespace Deckungsbeitrag
{ {
// OLVs füllen // OLVs füllen
if (auftraglist.Count > 0) OLV_Load(this.objectListViewAuftrag, auftraglist); if (auftraglist.Count > 0) OLV_Load(this.objectListViewAuftrag, auftraglist);
//if (sonderlist.Count > 0) OLV_Load(this.objectListViewSonder, sonderlist); if (sonderlist.Count > 0) OLV_Load(this.objectListViewSonder, sonderlist);
//if (geschaeftlist.Count > 0) OLV_Load(this.objectListViewGeschaeft, geschaeftlist); if (geschaeftlist.Count > 0) OLV_Load(this.objectListViewGeschaeft, geschaeftlist);
//if (rampenlist.Count > 0) OLV_Load(this.objectListViewRampe, rampenlist); if (rampenlist.Count > 0) OLV_Load(this.objectListViewRampe, rampenlist);
//if (vorbereitetliste.Count > 0) OLV_Load(this.objectListViewVorbereitet, vorbereitetliste); if (vorbereitetliste.Count > 0) OLV_Load(this.objectListViewVorbereitet, vorbereitetliste);
// Controls aktivieren und deaktivieren nach BenutzerRolle // Controls aktivieren und deaktivieren nach BenutzerRolle
Enable_Controls(); Enable_Controls();
this.Visible = true;
this.ResumeLayout(false);
this.Cursor = Cursors.Default;
})); }));
} }
catch (Exception ex) catch (Exception ex)
@ -141,7 +133,6 @@ namespace Deckungsbeitrag
Program.AddFehler(this.benutzer, ex.Message, ex.StackTrace, null); Program.AddFehler(this.benutzer, ex.Message, ex.StackTrace, null);
} }
}); });
} }
private void FormExpedit_FormClosing(object sender, FormClosingEventArgs e) private void FormExpedit_FormClosing(object sender, FormClosingEventArgs e)
{ {
@ -150,25 +141,26 @@ namespace Deckungsbeitrag
} }
private void FormExpedit_Resize(object sender, EventArgs e) private void FormExpedit_Resize(object sender, EventArgs e)
{ {
this.Cursor = Cursors.WaitCursor; this.tabControlAuftragList.Width = this.ClientSize.Width;
this.tabControlAuftragList.Width = this.Width - 25;
} }
/// <summary>
/// Wenn FormExpedit angezeigt wird, wird die Location des FeedbackButtons berechnet.
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void FormExpedit_Shown(object sender, EventArgs e) private void FormExpedit_Shown(object sender, EventArgs e)
{ {
// Location des Feedback Buttons wird berechnet. (Screengröße ist hier klar) // Location des Feedback Buttons wird berechnet. (Screengröße ist hier klar)
UCFeedback fb = this.Controls.Find("feedback", false)[0] as UCFeedback; UCFeedback fb = this.Controls.Find("feedback", false)[0] as UCFeedback;
Button btn = fb.Controls[0] as Button; Button btn = fb.Controls[0] as Button;
if (fb != null) fb.Location = new Point(this.Width - fb.Width - 18, 0); if (fb != null) fb.Location = new Point(this.ClientSize.Width - fb.Width, 0);
btn.BackColor = Program.Wirlblau; btn.BackColor = Program.Wirlblau;
btn.ForeColor = Color.White; btn.ForeColor = Color.White;
btn.FlatAppearance.BorderColor = Color.White; btn.FlatAppearance.BorderColor = Color.White;
fb.BringToFront(); fb.BringToFront();
this.ResumeLayout(); //WindowState = FormWindowState.Maximized;
//this.Cursor = Cursors.Default;
Application.UseWaitCursor = false;
WindowState = FormWindowState.Maximized;
} }
#endregion #endregion
@ -207,7 +199,7 @@ namespace Deckungsbeitrag
if (string.IsNullOrWhiteSpace(eingabe)) if (string.IsNullOrWhiteSpace(eingabe))
{ {
this.Cursor = Cursors.Default; this.UseWaitCursor = false;
return; return;
} }
@ -251,6 +243,8 @@ namespace Deckungsbeitrag
{ {
fahrer = benutzerVW.user; fahrer = benutzerVW.user;
} }
else fahrer = null;
if (fahrer != null) if (fahrer != null)
{ {
List<Auftrag> auftragliste = Auftrag.GetTourenListe(fahrer); List<Auftrag> auftragliste = Auftrag.GetTourenListe(fahrer);
@ -275,7 +269,6 @@ namespace Deckungsbeitrag
/// <param name="auftraglist"></param> /// <param name="auftraglist"></param>
private void OLV_Load(ObjectListView olv, List<Auftrag> auftraglist) private void OLV_Load(ObjectListView olv, List<Auftrag> auftraglist)
{ {
this.Cursor = Cursors.WaitCursor;
// Layout- und Update-Änderungen pausieren, um Flackern zu verhindern // Layout- und Update-Änderungen pausieren, um Flackern zu verhindern
olv.SuspendLayout(); // Stoppt Layout-Berechnungen (Anchor/Dock) olv.SuspendLayout(); // Stoppt Layout-Berechnungen (Anchor/Dock)
@ -491,9 +484,9 @@ namespace Deckungsbeitrag
olv.FilterMenuBuildStrategy = new MeinFilterMenu(); olv.FilterMenuBuildStrategy = new MeinFilterMenu();
// ========== AUFRÄUMEN & AKTIVIEREN ========== // ========== AUFRÄUMEN & AKTIVIEREN ==========
//olv.ResumeLayout(); // Layout-Pause beenden, Positionen neu berechnen olv.ResumeLayout(); // Layout-Pause beenden, Positionen neu berechnen
olv.Focus(); // OLV fokussieren (Tastaturbedienung aktivieren) olv.Focus(); // OLV fokussieren (Tastaturbedienung aktivieren)
this.UseWaitCursor = false;
} }
private void objectListViewAuftrag_FormatCell(object sender, FormatCellEventArgs e) private void objectListViewAuftrag_FormatCell(object sender, FormatCellEventArgs e)
{ {
@ -555,20 +548,21 @@ namespace Deckungsbeitrag
this.chartFehlmenge = Funktionen.Load_FehlmengeChart(chartliste, chartFehlmenge); this.chartFehlmenge = Funktionen.Load_FehlmengeChart(chartliste, chartFehlmenge);
this.chartFehlmenge.Visible = true; this.chartFehlmenge.Visible = true;
} }
this.groupBoxKndInfo.Visible = true; else this.chartFehlmenge.Visible = false;
if (!string.IsNullOrWhiteSpace(this.kunde.Anmerkung) || auftrag.AufgabeID != null) this.groupBoxKndInfo.Visible = true;
else this.groupBoxKndInfo.Visible = false;
if (!string.IsNullOrWhiteSpace(this.kunde.Anmerkung)) if (!string.IsNullOrWhiteSpace(this.kunde.Anmerkung))
{ {
labelAnmerkung.Visible = true; labelAnmerkung.Visible = true;
labelAnmerkung.Text = this.kunde.Anmerkung; labelAnmerkung.Text = this.kunde.Anmerkung;
} }
else labelAnmerkung.Visible = false; else { labelAnmerkung.Visible = false; }
if (auftrag.AufgabeID != null) if (auftrag.AufgabeID != null)
{ {
labelAufgabe.Text = Aufgabe.GetAufgabe(null, auftrag.AufgabeID).Bezeichnung.ToString(); labelAufgabe.Text = Aufgabe.GetAufgabe(null, auftrag.AufgabeID).Bezeichnung.ToString();
labelAufgabe.Visible = true; labelAufgabe.Visible = true;
} }
else labelAufgabe.Visible = false; else { labelAufgabe.Visible = false; }
// GroupBox einblenden wenn notwendig. // GroupBox einblenden wenn notwendig.
if (labelAufgabe.Visible || labelAnmerkung.Visible || chartFehlmenge.Visible) this.groupBoxKndInfo.Visible = true; if (labelAufgabe.Visible || labelAnmerkung.Visible || chartFehlmenge.Visible) this.groupBoxKndInfo.Visible = true;
@ -642,12 +636,12 @@ namespace Deckungsbeitrag
} }
break; break;
default: default:
if (_auftrag.Typ == AuftragTyp.Regelmäßig || _auftrag.Typ == AuftragTyp.Standerhöhung || _auftrag.Typ == AuftragTyp.Standverminderung) if (_auftrag.Typ == AuftragTyp.Regelmäßig || _auftrag.Typ == AuftragTyp.Standerhöhung || _auftrag.Typ == AuftragTyp.Standverminderung || _auftrag.Typ == AuftragTyp.Inventur)
{ {
FormAuftragDetail auftragDetail = new FormAuftragDetail(_auftrag, this.benutzer); FormAuftragDetail auftragDetail = new FormAuftragDetail(_auftrag, this.benutzer);
if (auftragDetail.ShowDialog() == DialogResult.Yes) if (auftragDetail.ShowDialog() == DialogResult.OK)
{ {
olv.RefreshObject(olv.SelectedObject); Neuladen_OLV(olv);
} }
} }
break; break;
@ -655,8 +649,6 @@ namespace Deckungsbeitrag
} }
private void objectListViewAuftrag_ButtonClick(object sender, BrightIdeasSoftware.CellClickEventArgs e) private void objectListViewAuftrag_ButtonClick(object sender, BrightIdeasSoftware.CellClickEventArgs e)
{ {
Cursor.Current = Cursors.WaitCursor;
ObjectListView olv = (ObjectListView)sender; ObjectListView olv = (ObjectListView)sender;
Auftrag _auftrag = (Auftrag)e.Model; Auftrag _auftrag = (Auftrag)e.Model;
if (e.Column.Text == "Abschließen") if (e.Column.Text == "Abschließen")
@ -797,7 +789,7 @@ namespace Deckungsbeitrag
if (string.IsNullOrWhiteSpace(eingabe) || !int.TryParse(eingabe, out int anzahl)) if (string.IsNullOrWhiteSpace(eingabe) || !int.TryParse(eingabe, out int anzahl))
{ {
this.Cursor = Cursors.Default; this.UseWaitCursor = false;
return; return;
} }
this.auftrag.ContainerClean = anzahl; this.auftrag.ContainerClean = anzahl;
@ -816,7 +808,7 @@ namespace Deckungsbeitrag
Neuladen_OLV(olv); Neuladen_OLV(olv);
this.Cursor = Cursors.Default; this.UseWaitCursor = false;
} }
/// <summary> /// <summary>
@ -826,8 +818,6 @@ namespace Deckungsbeitrag
/// <param name="auftraglist"></param> /// <param name="auftraglist"></param>
private void OLV_SetObjects(ObjectListView olv, List<Auftrag> auftraglist) private void OLV_SetObjects(ObjectListView olv, List<Auftrag> auftraglist)
{ {
this.Cursor = Cursors.WaitCursor;
this.SuspendLayout();
if (olv.AllColumns.Count == 0) OLV_Load(olv, auftraglist); if (olv.AllColumns.Count == 0) OLV_Load(olv, auftraglist);
else else
{ {
@ -835,8 +825,6 @@ namespace Deckungsbeitrag
olv.SetObjects(auftraglist); // Bindet die Auftragsliste an die View olv.SetObjects(auftraglist); // Bindet die Auftragsliste an die View
olv.EndUpdate(); // Update-Pause beenden, Daten neu zeichnen olv.EndUpdate(); // Update-Pause beenden, Daten neu zeichnen
} }
this.ResumeLayout(false);
this.Cursor = Cursors.Default;
} }
/// <summary> /// <summary>
@ -845,13 +833,16 @@ namespace Deckungsbeitrag
/// <param name="olv"></param> /// <param name="olv"></param>
private async void Neuladen_OLV(ObjectListView olv) private async void Neuladen_OLV(ObjectListView olv)
{ {
this.UseWaitCursor = true;
olv.SuspendLayout();
// Neu-Laden der Sonderaufträge ObjectListView // Neu-Laden der Sonderaufträge ObjectListView
if (olv.Name.Contains("Sonder")) if (olv.Name.Contains("Sonder"))
{ {
await GetSonderAuftraege(); await GetSonderAuftraege();
OLV_SetObjects(olv, sonderlist); OLV_SetObjects(olv, sonderlist);
return;
} }
else
{
// Neu-Laden der Standartaufträge ObjectListView // Neu-Laden der Standartaufträge ObjectListView
if (olv.Name.Contains("Geschaeft")) { await GetAuftraege(ListenArt.Geschäftliste); OLV_SetObjects(olv, geschaeftlist); } if (olv.Name.Contains("Geschaeft")) { await GetAuftraege(ListenArt.Geschäftliste); OLV_SetObjects(olv, geschaeftlist); }
if (olv.Name.Contains("Auftrag")) { await GetAuftraege(ListenArt.Auftragliste); OLV_SetObjects(olv, auftraglist); } if (olv.Name.Contains("Auftrag")) { await GetAuftraege(ListenArt.Auftragliste); OLV_SetObjects(olv, auftraglist); }
@ -859,14 +850,15 @@ namespace Deckungsbeitrag
if (olv.Name.Contains("Vorbereitet")) { await GetAuftraege(ListenArt.Vorbereitetliste); OLV_SetObjects(olv, vorbereitetliste); } if (olv.Name.Contains("Vorbereitet")) { await GetAuftraege(ListenArt.Vorbereitetliste); OLV_SetObjects(olv, vorbereitetliste); }
} }
olv.ResumeLayout(false);
this.UseWaitCursor = false;
}
/// <summary> /// <summary>
/// Blendet die Button Spalten aus wenn der User dazu nicht berechtigt ist. /// Blendet die Button Spalten aus wenn der User dazu nicht berechtigt ist.
/// </summary> /// </summary>
private void GetUnvisibleColumns(ObjectListView olv) private void GetUnvisibleColumns(ObjectListView olv)
{ {
this.Cursor = Cursors.WaitCursor;
this.SuspendLayout();
foreach (OLVColumn col in olv.AllColumns) foreach (OLVColumn col in olv.AllColumns)
{ {
switch (tabControlAuftragList.SelectedTab.Text) switch (tabControlAuftragList.SelectedTab.Text)
@ -895,23 +887,20 @@ namespace Deckungsbeitrag
} }
olv.RebuildColumns(); olv.RebuildColumns();
this.ResumeLayout(false);
} }
/// <summary>
/// Cell Edit Finished wird verwendet um die Container Sauber Anzahl festzulegen.
/// </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)
{ {
this.Cursor = Cursors.WaitCursor;
this.SuspendLayout();
ObjectListView olv = (ObjectListView)sender; ObjectListView olv = (ObjectListView)sender;
this.auftrag = (Auftrag)e.RowObject; this.auftrag = (Auftrag)e.RowObject;
if (e.Column.Text == "sauber") altecontclean = (int?)e.Value; if (e.Column.Text == "sauber") altecontclean = (int?)e.Value;
if (!string.IsNullOrWhiteSpace(e.NewValue.ToString())) Save_Auftrag(this.auftrag, false); if (!string.IsNullOrWhiteSpace(e.NewValue.ToString())) Save_Auftrag(this.auftrag, false);
//Neuladen_OLV(olv); //Neuladen_OLV(olv);
this.ResumeLayout();
this.Cursor = Cursors.Default;
} }
/// <summary> /// <summary>
@ -947,7 +936,6 @@ namespace Deckungsbeitrag
/// </summary> /// </summary>
private void Enable_Controls() private void Enable_Controls()
{ {
this.Cursor = Cursors.WaitCursor;
switch (this.benutzer.Rolle) switch (this.benutzer.Rolle)
{ {
case BenutzerRolle.Verwaltung: case BenutzerRolle.Verwaltung:
@ -1094,13 +1082,28 @@ namespace Deckungsbeitrag
{ {
TabControl tabControl = sender as TabControl; TabControl tabControl = sender as TabControl;
ObjectListView olv = tabControl.SelectedTab.Controls[0] as ObjectListView; ObjectListView olv = tabControl.SelectedTab.Controls[0] as ObjectListView;
if (olv == null) return; if (olv == null) return;
GetUnvisibleColumns(olv);
tabControl.SuspendLayout();
olv.SuspendLayout();
chartFehlmenge.Visible = false;
groupBoxKndInfo.Visible = false;
//GetUnvisibleColumns(olv);
Neuladen_OLV(olv); Neuladen_OLV(olv);
olv.ResumeLayout();
tabControl.ResumeLayout();
this.UseWaitCursor = false;
} }
/// <summary>
/// Wenn Suche mehr als 1 Auftrag wird TabPage mit Ergebnis hinzugefügt.
/// </summary>
/// <param name="liste"></param>
/// <param name="listenArt"></param>
private void AddTabPage(List<Auftrag> liste, ListenArt listenArt) private void AddTabPage(List<Auftrag> liste, ListenArt listenArt)
{ {
if (liste == null) return; if (liste == null) return;
@ -1134,9 +1137,16 @@ namespace Deckungsbeitrag
ucl.Dock = DockStyle.Fill; ucl.Dock = DockStyle.Fill;
this.tabControlAuftragList.Controls.Add(tabPage); this.tabControlAuftragList.Controls.Add(tabPage);
} }
// MouseDown-Event für Klick-Erkennung
/// <summary>
/// MouseDown um Klick auf TabControl zu erkennen.
/// Wenn Klick auf "x" wird die TabPage geschlossen. NUR BEI SUCHE MÖGLICH
/// </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) if (e.Button == MouseButtons.Left)
{ {
for (int i = 0; i < tabControlAuftragList.TabCount; i++) for (int i = 0; i < tabControlAuftragList.TabCount; i++)
@ -1152,6 +1162,7 @@ namespace Deckungsbeitrag
return; return;
} }
tabControlAuftragList.SelectedIndex = i; tabControlAuftragList.SelectedIndex = i;
this.UseWaitCursor = false;
break; break;
} }
} }
@ -1167,11 +1178,18 @@ namespace Deckungsbeitrag
{ {
Funktionen.GetGroupBoxBoarder(groupBoxKndInfo, e); Funktionen.GetGroupBoxBoarder(groupBoxKndInfo, e);
} }
/// <summary>
/// Wenn Chart wird sichtbar wird die Position berechnet.
/// Das TabControl wird um die Chart schmäler.
/// </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; UCFeedback fb = this.Controls.Find("feedback", false)[0] as UCFeedback;
if (chartFehlmenge.Visible) if (chartFehlmenge.Visible || groupBoxKndInfo.Visible)
{ {
this.tabControlAuftragList.Width = (int)(this.Width * 0.80); this.tabControlAuftragList.Width = (int)(this.Width * 0.80);
this.chartFehlmenge.Width = (int)(this.Width * 0.20) - 20; this.chartFehlmenge.Width = (int)(this.Width * 0.20) - 20;
@ -1183,7 +1201,7 @@ namespace Deckungsbeitrag
chartFehlmenge.Location = new Point(this.tabControlAuftragList.Right + 10, this.tabControlAuftragList.Top); chartFehlmenge.Location = new Point(this.tabControlAuftragList.Right + 10, this.tabControlAuftragList.Top);
chartFehlmenge.Size = new Size(groupBoxKndInfo.Width, chartHeight); chartFehlmenge.Size = new Size(groupBoxKndInfo.Width, chartHeight);
groupBoxKndInfo.Height = gbHeight; groupBoxKndInfo.Height = gbHeight;
groupBoxKndInfo.Location = new Point(chartFehlmenge.Left, chartHeight + 10); groupBoxKndInfo.Location = new Point(this.tabControlAuftragList.Right + 10, this.tabControlAuftragList.Bottom - gbHeight);
fb.Visible = false; fb.Visible = false;
} }
@ -1193,6 +1211,13 @@ namespace Deckungsbeitrag
fb.Visible = true; fb.Visible = true;
} }
} }
/// <summary>
/// Wenn die GroupBox für Aufgabe und Anmerkung sichtbar wird wird die Position berechnet.
/// Das TabControl wird um die GroupBox schmäler.
/// </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) if (groupBoxKndInfo.Visible)
@ -1204,7 +1229,7 @@ namespace Deckungsbeitrag
int gbHeight = (int)(this.tabControlAuftragList.Height * 0.25); int gbHeight = (int)(this.tabControlAuftragList.Height * 0.25);
groupBoxKndInfo.Height = gbHeight; groupBoxKndInfo.Height = gbHeight;
groupBoxKndInfo.Location = new Point(chartFehlmenge.Left, chartHeight + 10); groupBoxKndInfo.Location = new Point(this.tabControlAuftragList.Right + 10, this.tabControlAuftragList.Bottom - gbHeight);
} }
else else
@ -1213,5 +1238,24 @@ namespace Deckungsbeitrag
} }
} }
private async void FormExpedit_HelpButtonClicked(object sender, System.ComponentModel.CancelEventArgs e)
{
this.benutzer.OnboardingStatus = this.benutzer.ClearOnboardingFlag(onBoardingArt); // OnBoarding zurücksetzen
await this.benutzer.UpdateOnBoardingAsync(); // Update OnBoardingStatus
ZeigeOnboarding();
}
private async void ZeigeOnboarding()
{
if (this.benutzer.IstGesehen(onBoardingArt)) return; // Bereits fertig
if (Program.ShowOnBoarding(this.benutzer.Rolle.ToString(), onBoardingArt) == DialogResult.OK)
{
// Nächster Schritt → Flag setzen
this.benutzer.OnboardingStatus = this.benutzer.SetOnboardingFlag(onBoardingArt);
await this.benutzer.UpdateOnBoardingAsync(); // Deine Update-Methode
//this.Close(); // Onboarding beendet
}
}
} }
} }

File diff suppressed because it is too large Load Diff

View File

@ -27,6 +27,7 @@ using System.Threading.Tasks;
using System.Windows.Forms; using System.Windows.Forms;
using System.Windows.Input; using System.Windows.Input;
using System.Xml.Serialization; using System.Xml.Serialization;
using ZXing.Common;
using Timer = System.Windows.Forms.Timer; using Timer = System.Windows.Forms.Timer;
namespace Deckungsbeitrag namespace Deckungsbeitrag
@ -60,6 +61,8 @@ namespace Deckungsbeitrag
private OnboardingSchritt onBoardingArt = OnboardingSchritt.Main; private OnboardingSchritt onBoardingArt = OnboardingSchritt.Main;
private UCStatistik uCStatistik; private UCStatistik uCStatistik;
private UCAuftragSuchen uCAuftrag; private UCAuftragSuchen uCAuftrag;
private UCInventur uCInventur;
private Screen screen = Screen.PrimaryScreen;
#endregion #endregion
public FormMain() public FormMain()
{ {
@ -67,7 +70,7 @@ namespace Deckungsbeitrag
this.panelMain.AllowDrop = true; this.panelMain.AllowDrop = true;
this.toolStripMenu.Size = new Size(toolStripButton1.Size.Width + 20, this.Height); this.toolStripMenu.Size = new Size(toolStripButton1.Size.Width + 20, this.Height);
_fixedSize = screen.WorkingArea.Size;
} }
public FormMain(Benutzer benutzer) : this() public FormMain(Benutzer benutzer) : this()
{ {
@ -86,6 +89,9 @@ namespace Deckungsbeitrag
#region FormMain-Events #region FormMain-Events
private async void FormMain_Load(object sender, EventArgs e) private async void FormMain_Load(object sender, EventArgs e)
{ {
this.SuspendLayout();
this.Cursor = Cursors.WaitCursor;
formloading = true; formloading = true;
_settings.Load(); _settings.Load();
@ -100,6 +106,8 @@ namespace Deckungsbeitrag
this.labelSoftwareDatum.Text = @"N:\TECHNIK\Software\Wirl-Verwaltung\Setup\SetupVerwaltung*.msi"; this.labelSoftwareDatum.Text = @"N:\TECHNIK\Software\Wirl-Verwaltung\Setup\SetupVerwaltung*.msi";
this.labelArtikelDatum.Text = @"N:\TECHNIK\Software\Wirl-Verwaltung\Listen\Artikelkurzliste.csv"; this.labelArtikelDatum.Text = @"N:\TECHNIK\Software\Wirl-Verwaltung\Listen\Artikelkurzliste.csv";
GetInventuren();
GetSaison();
if (this.groupBoxContAnz.Visible) if (this.groupBoxContAnz.Visible)
{ {
@ -107,13 +115,22 @@ namespace Deckungsbeitrag
GetContainerProTag(); GetContainerProTag();
} }
GetSaison(); // UserCotnrols werden eingefügt
GetUserControls();
// Controls werde Enabled
Enable_Controls();
// Location für UCInventur festlegen.
Get_UCInventur_Location();
this.Activate(); this.Activate();
_fixedSize = this.Size; _fixedSize = this.Size;
formloading = false; formloading = false;
} }
private void FormMain_Shown(object sender, EventArgs e) private void FormMain_Shown(object sender, EventArgs e)
{ {
// Meldung wenn Updates oder Imports erledigt wurden. // Meldung wenn Updates oder Imports erledigt wurden.
if (Program.Artikelliste_Importiert | Program.Kundenliste_Importiert | Program.Software_Updated) if (Program.Artikelliste_Importiert | Program.Kundenliste_Importiert | Program.Software_Updated)
{ {
@ -123,13 +140,30 @@ namespace Deckungsbeitrag
updates[2] = Program.Software_Updated ? "Software: ✅" : "Sofware: ❌"; updates[2] = Program.Software_Updated ? "Software: ✅" : "Sofware: ❌";
MessageBox.Show($"Folgende Updates wurden heute durchgeführt:\n\n{updates[0]}\n{updates[1]}\n{updates[2]}", "UPDATES DURCHGEFÜHRT", MessageBoxButtons.OK, MessageBoxIcon.Information); MessageBox.Show($"Folgende Updates wurden heute durchgeführt:\n\n{updates[0]}\n{updates[1]}\n{updates[2]}", "UPDATES DURCHGEFÜHRT", MessageBoxButtons.OK, MessageBoxIcon.Information);
} }
// OnBoarding nur bei den Fahrern anzeigen. Bis die anderen Fertig sind.
if (this.benutzer.Rolle == BenutzerRolle.Fahrer) ZeigeOnboarding();
// UserCotnrols werden eingefügt this.ResumeLayout();
GetUserControls(); this.Cursor = Cursors.Default;
// Controls werde Enabled }
Enable_Controls();
ZeigeOnboarding();
private void FormMain_ResizeBegin(object sender, EventArgs e)
{
_handlingResize = true;
this.Size = _fixedSize;
_handlingResize = false;
}
private void FormMain_Resize(object sender, EventArgs e)
{
if (_handlingResize) return;
if (this.Size != _fixedSize)
{
_handlingResize = true;
this.Size = _fixedSize;
_handlingResize = false;
}
//this.panelMain.Size = new Size(this.ClientSize.Width - this.toolStripMenu.Right, this.Height);
//this.panelProgress.Location = new Point(this.panelMain.Right - this.panelProgress.Width - 100, this.panelMain.Bottom - this.panelProgress.Height - 20);
} }
/// <summary> /// <summary>
@ -163,22 +197,6 @@ namespace Deckungsbeitrag
MessageBox.Show("Fehler beim Speichern" + ex.Message); MessageBox.Show("Fehler beim Speichern" + ex.Message);
} }
} }
private void FormMain_ResizeBegin(object sender, EventArgs e)
{
_handlingResize = true;
this.Size = _fixedSize;
_handlingResize = false;
}
private void FormMain_Resize(object sender, EventArgs e)
{
if (_handlingResize) return;
if (this.Size != _fixedSize)
{
_handlingResize = true;
this.Size = _fixedSize;
_handlingResize = false;
}
}
#endregion #endregion
@ -330,7 +348,7 @@ namespace Deckungsbeitrag
private void buttonNeuerAuftrag_Click(object sender, EventArgs e) private void buttonNeuerAuftrag_Click(object sender, EventArgs e)
{ {
onBoardingArt = OnboardingSchritt.NeuerAuftrag; onBoardingArt = OnboardingSchritt.NeuerAuftrag;
ZeigeOnboarding(); 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); neuerAuftrag.ShowDialog();
} }
@ -978,7 +996,8 @@ namespace Deckungsbeitrag
// 2. ALLE Children (rekursiv) - auch Child of Child! // 2. ALLE Children (rekursiv) - auch Child of Child!
foreach (Control child in parent.Controls) foreach (Control child in parent.Controls)
{ {
if (child is ComboBox || child is DateTimePicker || child is Button || child is RadioButton) continue; if (child is ComboBox || child is DateTimePicker || child is Button || child is RadioButton || child is PictureBox || child is DataGridView) continue;
if (child.Name == "labelInvText") continue;
// JEDES Control bekommt Child-Handler // JEDES Control bekommt Child-Handler
child.MouseDown += Child_MouseDown; child.MouseDown += Child_MouseDown;
child.MouseMove += Child_MouseMove; child.MouseMove += Child_MouseMove;
@ -1038,6 +1057,49 @@ namespace Deckungsbeitrag
} }
#endregion #endregion
private async void GetInventuren()
{
foreach (UCInventur uci in panelMain.Controls.OfType<UCInventur>())
{
this.panelMain.Controls.Remove(uci);
}
string loadPath = Path.Combine(ConfigurationManager.AppSettings["DateiSavePfad"], "Listen\\Inventuren") ?? "Inventuren";
// Alle "Warten" Inventur Files auflisten.
string[] invFiles = Directory.GetFiles(loadPath, "Warten-*.csv");
if (invFiles.Length == 0) return;
int i = 0;
foreach (string s in invFiles)
{
i++;
// 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.UCInventur_Update += () => { this.GetInventuren(); };
this.panelMain.Controls.Add(uCInventur);
}
Get_UCInventur_Location();
}
private void Get_UCInventur_Location()
{
// UCInventur in den Vordergrund bringen und Location setzen.
int y = 0;
int x = 0;
if (!formloading) y = panelMain.Controls["feedback"].Top;
foreach (UCInventur uci in panelMain.Controls.OfType<UCInventur>())
{
if (!formloading) x = panelMain.Controls["feedback"].Left - uCInventur.Width - 10;
uci.BringToFront();
uci.Location = new Point(x, y);
y += uci.Height;
uci.Visible = true;
}
}
private async void ZeigeOnboarding() private async void ZeigeOnboarding()
{ {
@ -1373,6 +1435,25 @@ namespace Deckungsbeitrag
} }
} }
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(); };
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. //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"> <data name="tSBBenutzerVW.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value> <value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAEgSURBVDhPlZMxToVAEIY5gmeCY5D4SBShs3kF4Ro03seW YQUAAAAJcEhZcwAAEnQAABJ0Ad5mH3gAAAEgSURBVDhPlZMxToVAEIY5gmeCY5D4SBShs3kF4Ro03seW
kgYsrGgkBgyzP43J6r95PHcBETeZzP6zsx9kZtbzPM8TkftxHF8BaBFpAJwYP7R4ua5rHcexDoJAp2mq kgYsrGgkBgyzP43J6r95PHcBETeZzP6zsx9kZtbzPM8TkftxHF8BaBFpAJwYP7R4ua5rHcexDoJAp2mq
m6bRAG6XuZuLX+bloih4yfgkScx+z64ACt/3nUPqPXMAIvLynz9YAViwrRoopR6uST+5a8Dl4IlBpZQ5 m6bRAG6XuZuLX+bloih4yfgkScx+z64ACt/3nUPqPXMAIvLynz9YAViwrRoopR6uST+5a8Dl4IlBpZQ5
rKrqU0SenaQ9wDAMyPNcZ1mm27Y1nppxO28TQFGWpY6iyPgwDB1tJ/8KWFbZtq7rTDLnwgZM03S3om7t rKrqU0SenaQ9wDAMyPNcZ1mm27Y1nppxO28TQFGWpY6iyPgwDB1tJ/8KWFbZtq7rTDLnwgZM03S3om7t
@ -135,7 +135,7 @@
<data name="tSBAuftragVW.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> <data name="tSBAuftragVW.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value> <value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAEgSURBVDhPlZMxToVAEIY5gmeCY5D4SBShs3kF4Ro03seW YQUAAAAJcEhZcwAAEnQAABJ0Ad5mH3gAAAEgSURBVDhPlZMxToVAEIY5gmeCY5D4SBShs3kF4Ro03seW
kgYsrGgkBgyzP43J6r95PHcBETeZzP6zsx9kZtbzPM8TkftxHF8BaBFpAJwYP7R4ua5rHcexDoJAp2mq kgYsrGgkBgyzP43J6r95PHcBETeZzP6zsx9kZtbzPM8TkftxHF8BaBFpAJwYP7R4ua5rHcexDoJAp2mq
m6bRAG6XuZuLX+bloih4yfgkScx+z64ACt/3nUPqPXMAIvLynz9YAViwrRoopR6uST+5a8Dl4IlBpZQ5 m6bRAG6XuZuLX+bloih4yfgkScx+z64ACt/3nUPqPXMAIvLynz9YAViwrRoopR6uST+5a8Dl4IlBpZQ5
rKrqU0SenaQ9wDAMyPNcZ1mm27Y1nppxO28TQFGWpY6iyPgwDB1tJ/8KWFbZtq7rTDLnwgZM03S3om7t rKrqU0SenaQ9wDAMyPNcZ1mm27Y1nppxO28TQFGWpY6iyPgwDB1tJ/8KWFbZtq7rTDLnwgZM03S3om7t
@ -146,7 +146,7 @@
<data name="tSBAufgabeVW.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> <data name="tSBAufgabeVW.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value> <value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAEgSURBVDhPlZMxToVAEIY5gmeCY5D4SBShs3kF4Ro03seW YQUAAAAJcEhZcwAAEnQAABJ0Ad5mH3gAAAEgSURBVDhPlZMxToVAEIY5gmeCY5D4SBShs3kF4Ro03seW
kgYsrGgkBgyzP43J6r95PHcBETeZzP6zsx9kZtbzPM8TkftxHF8BaBFpAJwYP7R4ua5rHcexDoJAp2mq kgYsrGgkBgyzP43J6r95PHcBETeZzP6zsx9kZtbzPM8TkftxHF8BaBFpAJwYP7R4ua5rHcexDoJAp2mq
m6bRAG6XuZuLX+bloih4yfgkScx+z64ACt/3nUPqPXMAIvLynz9YAViwrRoopR6uST+5a8Dl4IlBpZQ5 m6bRAG6XuZuLX+bloih4yfgkScx+z64ACt/3nUPqPXMAIvLynz9YAViwrRoopR6uST+5a8Dl4IlBpZQ5
rKrqU0SenaQ9wDAMyPNcZ1mm27Y1nppxO28TQFGWpY6iyPgwDB1tJ/8KWFbZtq7rTDLnwgZM03S3om7t rKrqU0SenaQ9wDAMyPNcZ1mm27Y1nppxO28TQFGWpY6iyPgwDB1tJ/8KWFbZtq7rTDLnwgZM03S3om7t
@ -157,7 +157,7 @@
<data name="tSBArtikelVW.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> <data name="tSBArtikelVW.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value> <value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAB7SURBVDhPnZBBDoAgDAR5W///F/XCVaIJyXZcEG2yB5p2 YQUAAAAJcEhZcwAAEnQAABJ0Ad5mH3gAAAB7SURBVDhPnZBBDoAgDAR5W///F/XCVaIJyXZcEG2yB5p2
ukspqFrrORPnH3UNRYTVJ8C+HUm/AYxAcd8CGGUaaQRYikR71BKANtXuMmBk1/VebVMWoDZpm28L6IN6 ukspqFrrORPnH3UNRYTVJ8C+HUm/AYxAcd8CGGUaaQRYikR71BKANtXuMmBk1/VebVMWoDZpm28L6IN6
afQmMGV3A9pTYJcFcEj76dd7EaAX+ebuXbw2E3cbfftvjPBKL5kAAAAASUVORK5CYII= afQmMGV3A9pTYJcFcEj76dd7EaAX+ebuXbw2E3cbfftvjPBKL5kAAAAASUVORK5CYII=
</value> </value>
@ -165,7 +165,7 @@
<data name="toolStripZaehlscheine.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> <data name="toolStripZaehlscheine.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value> <value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAB7SURBVDhPnZBBDoAgDAR5W///F/XCVaIJyXZcEG2yB5p2 YQUAAAAJcEhZcwAAEnQAABJ0Ad5mH3gAAAB7SURBVDhPnZBBDoAgDAR5W///F/XCVaIJyXZcEG2yB5p2
ukspqFrrORPnH3UNRYTVJ8C+HUm/AYxAcd8CGGUaaQRYikR71BKANtXuMmBk1/VebVMWoDZpm28L6IN6 ukspqFrrORPnH3UNRYTVJ8C+HUm/AYxAcd8CGGUaaQRYikR71BKANtXuMmBk1/VebVMWoDZpm28L6IN6
afQmMGV3A9pTYJcFcEj76dd7EaAX+ebuXbw2E3cbfftvjPBKL5kAAAAASUVORK5CYII= afQmMGV3A9pTYJcFcEj76dd7EaAX+ebuXbw2E3cbfftvjPBKL5kAAAAASUVORK5CYII=
</value> </value>
@ -173,7 +173,7 @@
<data name="tSBExpedit.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> <data name="tSBExpedit.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value> <value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAEgSURBVDhPlZMxToVAEIY5gmeCY5D4SBShs3kF4Ro03seW YQUAAAAJcEhZcwAAEnQAABJ0Ad5mH3gAAAEgSURBVDhPlZMxToVAEIY5gmeCY5D4SBShs3kF4Ro03seW
kgYsrGgkBgyzP43J6r95PHcBETeZzP6zsx9kZtbzPM8TkftxHF8BaBFpAJwYP7R4ua5rHcexDoJAp2mq kgYsrGgkBgyzP43J6r95PHcBETeZzP6zsx9kZtbzPM8TkftxHF8BaBFpAJwYP7R4ua5rHcexDoJAp2mq
m6bRAG6XuZuLX+bloih4yfgkScx+z64ACt/3nUPqPXMAIvLynz9YAViwrRoopR6uST+5a8Dl4IlBpZQ5 m6bRAG6XuZuLX+bloih4yfgkScx+z64ACt/3nUPqPXMAIvLynz9YAViwrRoopR6uST+5a8Dl4IlBpZQ5
rKrqU0SenaQ9wDAMyPNcZ1mm27Y1nppxO28TQFGWpY6iyPgwDB1tJ/8KWFbZtq7rTDLnwgZM03S3om7t rKrqU0SenaQ9wDAMyPNcZ1mm27Y1nppxO28TQFGWpY6iyPgwDB1tJ/8KWFbZtq7rTDLnwgZM03S3om7t
@ -184,7 +184,7 @@
<data name="toolStripDB.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> <data name="toolStripDB.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value> <value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAACxSURBVDhPnZI9DsMgDIVzNo7SzM2czqm4EKfgHm0WhrYL YQUAAAAJcEhZcwAAEnQAABJ0Ad5mH3gAAACxSURBVDhPnZI9DsMgDIVzNo7SzM2czqm4EKfgHm0WhrYL
K5WtGpmnmIhaegrBvM8vP9P0q5xzIcn9UJHRe88ahojZOVcBQxCc/lcSmSpJdBo8axYC8JEsNYAeRO+J K5WtGpmnmIhaegrBvM8vP9P0q5xzIcn9UJHRe88ahojZOVcBQxCc/lcSmSpJdBo8axYC8JEsNYAeRO+J
GIBEhFgpGsARGV+sPmcC3q9PVQihpJRqmlOANm/bnfcIQn0CxRi51wXIdb7MddpyXZpeF4AJSLTWPROg GIBEhFgpGsARGV+sPmcC3q9PVQihpJRqmlOANm/bnfcIQn0CxRi51wXIdb7MddpyXZpeF4AJSLTWPROg
Ic/HXtb1xqK1NotRdPgVzsRG/IFGJf4vZOpFEVHH2lgAAAAASUVORK5CYII= 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"> <data name="tSBKosten.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value> <value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAACxSURBVDhPnZI9DsMgDIVzNo7SzM2czqm4EKfgHm0WhrYL YQUAAAAJcEhZcwAAEnQAABJ0Ad5mH3gAAACxSURBVDhPnZI9DsMgDIVzNo7SzM2czqm4EKfgHm0WhrYL
K5WtGpmnmIhaegrBvM8vP9P0q5xzIcn9UJHRe88ahojZOVcBQxCc/lcSmSpJdBo8axYC8JEsNYAeRO+J K5WtGpmnmIhaegrBvM8vP9P0q5xzIcn9UJHRe88ahojZOVcBQxCc/lcSmSpJdBo8axYC8JEsNYAeRO+J
GIBEhFgpGsARGV+sPmcC3q9PVQihpJRqmlOANm/bnfcIQn0CxRi51wXIdb7MddpyXZpeF4AJSLTWPROg GIBEhFgpGsARGV+sPmcC3q9PVQihpJRqmlOANm/bnfcIQn0CxRi51wXIdb7MddpyXZpeF4AJSLTWPROg
Ic/HXtb1xqK1NotRdPgVzsRG/IFGJf4vZOpFEVHH2lgAAAAASUVORK5CYII= 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"> <data name="tSBScannTest.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value> <value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAEgSURBVDhPlZMxToVAEIY5gmeCY5D4SBShs3kF4Ro03seW YQUAAAAJcEhZcwAAEnQAABJ0Ad5mH3gAAAEgSURBVDhPlZMxToVAEIY5gmeCY5D4SBShs3kF4Ro03seW
kgYsrGgkBgyzP43J6r95PHcBETeZzP6zsx9kZtbzPM8TkftxHF8BaBFpAJwYP7R4ua5rHcexDoJAp2mq kgYsrGgkBgyzP43J6r95PHcBETeZzP6zsx9kZtbzPM8TkftxHF8BaBFpAJwYP7R4ua5rHcexDoJAp2mq
m6bRAG6XuZuLX+bloih4yfgkScx+z64ACt/3nUPqPXMAIvLynz9YAViwrRoopR6uST+5a8Dl4IlBpZQ5 m6bRAG6XuZuLX+bloih4yfgkScx+z64ACt/3nUPqPXMAIvLynz9YAViwrRoopR6uST+5a8Dl4IlBpZQ5
rKrqU0SenaQ9wDAMyPNcZ1mm27Y1nppxO28TQFGWpY6iyPgwDB1tJ/8KWFbZtq7rTDLnwgZM03S3om7t rKrqU0SenaQ9wDAMyPNcZ1mm27Y1nppxO28TQFGWpY6iyPgwDB1tJ/8KWFbZtq7rTDLnwgZM03S3om7t
@ -429,7 +429,7 @@
<data name="tSBHilfe.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> <data name="tSBHilfe.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value> <value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAEgSURBVDhPlZMxToVAEIY5gmeCY5D4SBShs3kF4Ro03seW YQUAAAAJcEhZcwAAEnQAABJ0Ad5mH3gAAAEgSURBVDhPlZMxToVAEIY5gmeCY5D4SBShs3kF4Ro03seW
kgYsrGgkBgyzP43J6r95PHcBETeZzP6zsx9kZtbzPM8TkftxHF8BaBFpAJwYP7R4ua5rHcexDoJAp2mq kgYsrGgkBgyzP43J6r95PHcBETeZzP6zsx9kZtbzPM8TkftxHF8BaBFpAJwYP7R4ua5rHcexDoJAp2mq
m6bRAG6XuZuLX+bloih4yfgkScx+z64ACt/3nUPqPXMAIvLynz9YAViwrRoopR6uST+5a8Dl4IlBpZQ5 m6bRAG6XuZuLX+bloih4yfgkScx+z64ACt/3nUPqPXMAIvLynz9YAViwrRoopR6uST+5a8Dl4IlBpZQ5
rKrqU0SenaQ9wDAMyPNcZ1mm27Y1nppxO28TQFGWpY6iyPgwDB1tJ/8KWFbZtq7rTDLnwgZM03S3om7t rKrqU0SenaQ9wDAMyPNcZ1mm27Y1nppxO28TQFGWpY6iyPgwDB1tJ/8KWFbZtq7rTDLnwgZM03S3om7t
@ -440,7 +440,7 @@
<data name="toolStripButtonImport.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> <data name="toolStripButtonImport.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value> <value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAEgSURBVDhPlZMxToVAEIY5gmeCY5D4SBShs3kF4Ro03seW YQUAAAAJcEhZcwAAEnQAABJ0Ad5mH3gAAAEgSURBVDhPlZMxToVAEIY5gmeCY5D4SBShs3kF4Ro03seW
kgYsrGgkBgyzP43J6r95PHcBETeZzP6zsx9kZtbzPM8TkftxHF8BaBFpAJwYP7R4ua5rHcexDoJAp2mq kgYsrGgkBgyzP43J6r95PHcBETeZzP6zsx9kZtbzPM8TkftxHF8BaBFpAJwYP7R4ua5rHcexDoJAp2mq
m6bRAG6XuZuLX+bloih4yfgkScx+z64ACt/3nUPqPXMAIvLynz9YAViwrRoopR6uST+5a8Dl4IlBpZQ5 m6bRAG6XuZuLX+bloih4yfgkScx+z64ACt/3nUPqPXMAIvLynz9YAViwrRoopR6uST+5a8Dl4IlBpZQ5
rKrqU0SenaQ9wDAMyPNcZ1mm27Y1nppxO28TQFGWpY6iyPgwDB1tJ/8KWFbZtq7rTDLnwgZM03S3om7t rKrqU0SenaQ9wDAMyPNcZ1mm27Y1nppxO28TQFGWpY6iyPgwDB1tJ/8KWFbZtq7rTDLnwgZM03S3om7t
@ -451,7 +451,7 @@
<data name="tSBEinstellung.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> <data name="tSBEinstellung.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value> <value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAIFSURBVDhPpZLtS1NhGMbPPxJmmlYSgqHiKzGU1EDxg4iK YQUAAAAJcEhZcwAAEnQAABJ0Ad5mH3gAAAIFSURBVDhPpZLtS1NhGMbPPxJmmlYSgqHiKzGU1EDxg4iK
YKyG2WBogqMYJQOtCEVRFBGdTBCJfRnkS4VaaWNT5sqx1BUxRXxDHYxAJLvkusEeBaPAB+5z4Jzn+t3X YKyG2WBogqMYJQOtCEVRFBGdTBCJfRnkS4VaaWNT5sqx1BUxRXxDHYxAJLvkusEeBaPAB+5z4Jzn+t3X
/aLhnEfjo8m+dCoa+7/C3O2Hqe0zDC+8KG+cRZHZhdzaaWTVTCLDMIY0vfM04Nfh77/G/sEhwpEDbO3t /aLhnEfjo8m+dCoa+7/C3O2Hqe0zDC+8KG+cRZHZhdzaaWTVTCLDMIY0vfM04Nfh77/G/sEhwpEDbO3t
I7TxE8urEVy99fT/AL5gWDLrTB/hnF4XsW0khCu5ln8DmJliT2AXrcNBsU1gj/MH4nMeKwBrPktM28xM 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"> <data name="tSBWaschstrasse.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value> <value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAEMSURBVDhPrZMxjoNADEVzpD1CRE9PzwW2pkpDzwEo0tEi YQUAAAAJcEhZcwAAEnQAABJ0Ad5mH3gAAAEMSURBVDhPrZMxjoNADEVzpD1CRE9PzwW2pkpDzwEo0tEi
DkBPT09BSbORsCkneqM1yUxQtNLG0pdG/va3x+M5nT5p27adVbVVVRehhYvjA1PVapomV5alS9PUJUni DkBPT09BSbORsCkneqM1yUxQtNLG0pdG/va3x+M5nT5p27adVbVVVRehhYvjA1PVapomV5alS9PUJUni
wRkfHDFxnjeIcRx9cJZlrmkaNwyDB2d8cIcitAZhleZ5vonIBT/gjK+qKtf3PQI/67p+PVdvSaQKgQH5 wRkfHDFxnjeIcRx9cJZlrmkaNwyDB2d8cIcitAZhleZ5vonIBT/gjK+qKtf3PQI/67p+PVdvSaQKgQH5
ayLyvSzLXiQQYUgQXdc5qh0kXwBJds08zx/FEGBY3Pdo0vB1Xe8oisLHm8hnBP57hX2ILxN+iARDDIYd 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"> <data name="tSBTourenplanung.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value> <value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAEMSURBVDhPrZMxjoNADEVzpD1CRE9PzwW2pkpDzwEo0tEi YQUAAAAJcEhZcwAAEnQAABJ0Ad5mH3gAAAEMSURBVDhPrZMxjoNADEVzpD1CRE9PzwW2pkpDzwEo0tEi
DkBPT09BSbORsCkneqM1yUxQtNLG0pdG/va3x+M5nT5p27adVbVVVRehhYvjA1PVapomV5alS9PUJUni DkBPT09BSbORsCkneqM1yUxQtNLG0pdG/va3x+M5nT5p27adVbVVVRehhYvjA1PVapomV5alS9PUJUni
wRkfHDFxnjeIcRx9cJZlrmkaNwyDB2d8cIcitAZhleZ5vonIBT/gjK+qKtf3PQI/67p+PVdvSaQKgQH5 wRkfHDFxnjeIcRx9cJZlrmkaNwyDB2d8cIcitAZhleZ5vonIBT/gjK+qKtf3PQI/67p+PVdvSaQKgQH5
ayLyvSzLXiQQYUgQXdc5qh0kXwBJds08zx/FEGBY3Pdo0vB1Xe8oisLHm8hnBP57hX2ILxN+iARDDIYd 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"> <data name="toolStripBeenden.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value> <value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAEMSURBVDhPrZMxjoNADEVzpD1CRE9PzwW2pkpDzwEo0tEi YQUAAAAJcEhZcwAAEnQAABJ0Ad5mH3gAAAEMSURBVDhPrZMxjoNADEVzpD1CRE9PzwW2pkpDzwEo0tEi
DkBPT09BSbORsCkneqM1yUxQtNLG0pdG/va3x+M5nT5p27adVbVVVRehhYvjA1PVapomV5alS9PUJUni DkBPT09BSbORsCkneqM1yUxQtNLG0pdG/va3x+M5nT5p27adVbVVVRehhYvjA1PVapomV5alS9PUJUni
wRkfHDFxnjeIcRx9cJZlrmkaNwyDB2d8cIcitAZhleZ5vonIBT/gjK+qKtf3PQI/67p+PVdvSaQKgQH5 wRkfHDFxnjeIcRx9cJZlrmkaNwyDB2d8cIcitAZhleZ5vonIBT/gjK+qKtf3PQI/67p+PVdvSaQKgQH5
ayLyvSzLXiQQYUgQXdc5qh0kXwBJds08zx/FEGBY3Pdo0vB1Xe8oisLHm8hnBP57hX2ILxN+iARDDIYd ayLyvSzLXiQQYUgQXdc5qh0kXwBJds08zx/FEGBY3Pdo0vB1Xe8oisLHm8hnBP57hX2ILxN+iARDDIYd

View File

@ -47,17 +47,6 @@ namespace Deckungsbeitrag
this.label6 = new System.Windows.Forms.Label(); this.label6 = new System.Windows.Forms.Label();
this.comboBoxTyp = new System.Windows.Forms.ComboBox(); this.comboBoxTyp = new System.Windows.Forms.ComboBox();
this.textBoxCont = new System.Windows.Forms.TextBox(); this.textBoxCont = new System.Windows.Forms.TextBox();
this.dGArtikel = new System.Windows.Forms.DataGridView();
this.KundeArtikelID = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.KundeID = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.ArtikelNR = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.ArtikelName = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Stand = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Fehlmenge = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Korrektur = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.StandBearbeitet = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.FehlmengeBearbeitet = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.KorrekturBearbeitet = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.label1 = new System.Windows.Forms.Label(); this.label1 = new System.Windows.Forms.Label();
this.comboBoxFahrer = new System.Windows.Forms.ComboBox(); this.comboBoxFahrer = new System.Windows.Forms.ComboBox();
this.buttonEinstellung = new System.Windows.Forms.Button(); this.buttonEinstellung = new System.Windows.Forms.Button();
@ -70,7 +59,6 @@ namespace Deckungsbeitrag
this.fLPArtikel = new System.Windows.Forms.FlowLayoutPanel(); this.fLPArtikel = new System.Windows.Forms.FlowLayoutPanel();
this.pictureBoxMinus = new System.Windows.Forms.PictureBox(); this.pictureBoxMinus = new System.Windows.Forms.PictureBox();
this.pictureBoxPlus = new System.Windows.Forms.PictureBox(); this.pictureBoxPlus = new System.Windows.Forms.PictureBox();
((System.ComponentModel.ISupportInitialize)(this.dGArtikel)).BeginInit();
this.panelRegAuftrag.SuspendLayout(); this.panelRegAuftrag.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.pictureBoxAddArtikel)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.pictureBoxAddArtikel)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBoxMinus)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.pictureBoxMinus)).BeginInit();
@ -83,9 +71,10 @@ namespace Deckungsbeitrag
this.dTPLiefertag.DropDownAlign = System.Windows.Forms.LeftRightAlignment.Right; this.dTPLiefertag.DropDownAlign = System.Windows.Forms.LeftRightAlignment.Right;
this.dTPLiefertag.Font = new System.Drawing.Font("Microsoft Sans Serif", 16.2F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.dTPLiefertag.Font = new System.Drawing.Font("Microsoft Sans Serif", 16.2F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.dTPLiefertag.Format = System.Windows.Forms.DateTimePickerFormat.Short; this.dTPLiefertag.Format = System.Windows.Forms.DateTimePickerFormat.Short;
this.dTPLiefertag.Location = new System.Drawing.Point(219, 317); this.dTPLiefertag.Location = new System.Drawing.Point(195, 254);
this.dTPLiefertag.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.dTPLiefertag.Name = "dTPLiefertag"; this.dTPLiefertag.Name = "dTPLiefertag";
this.dTPLiefertag.Size = new System.Drawing.Size(210, 32); this.dTPLiefertag.Size = new System.Drawing.Size(187, 38);
this.dTPLiefertag.TabIndex = 2; this.dTPLiefertag.TabIndex = 2;
this.dTPLiefertag.ValueChanged += new System.EventHandler(this.dTPLiefertag_ValueChanged); this.dTPLiefertag.ValueChanged += new System.EventHandler(this.dTPLiefertag_ValueChanged);
this.dTPLiefertag.Leave += new System.EventHandler(this.dTPLiefertag_Leave); this.dTPLiefertag.Leave += new System.EventHandler(this.dTPLiefertag_Leave);
@ -98,10 +87,12 @@ namespace Deckungsbeitrag
this.buttonSpeichern.FlatAppearance.BorderSize = 0; this.buttonSpeichern.FlatAppearance.BorderSize = 0;
this.buttonSpeichern.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.buttonSpeichern.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.buttonSpeichern.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.buttonSpeichern.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.buttonSpeichern.ForeColor = System.Drawing.Color.White; this.buttonSpeichern.ForeColor = System.Drawing.Color.Black;
this.buttonSpeichern.Location = new System.Drawing.Point(83, 578); this.buttonSpeichern.Location = new System.Drawing.Point(231, 462);
this.buttonSpeichern.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.buttonSpeichern.MinimumSize = new System.Drawing.Size(150, 50);
this.buttonSpeichern.Name = "buttonSpeichern"; this.buttonSpeichern.Name = "buttonSpeichern";
this.buttonSpeichern.Size = new System.Drawing.Size(172, 63); this.buttonSpeichern.Size = new System.Drawing.Size(150, 50);
this.buttonSpeichern.TabIndex = 11; this.buttonSpeichern.TabIndex = 11;
this.buttonSpeichern.Text = "Speichern"; this.buttonSpeichern.Text = "Speichern";
this.buttonSpeichern.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText; this.buttonSpeichern.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText;
@ -117,10 +108,12 @@ namespace Deckungsbeitrag
this.buttonAbbrechen.FlatAppearance.BorderSize = 0; this.buttonAbbrechen.FlatAppearance.BorderSize = 0;
this.buttonAbbrechen.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.buttonAbbrechen.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.buttonAbbrechen.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.buttonAbbrechen.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.buttonAbbrechen.ForeColor = System.Drawing.Color.White; this.buttonAbbrechen.ForeColor = System.Drawing.Color.Black;
this.buttonAbbrechen.Location = new System.Drawing.Point(262, 578); this.buttonAbbrechen.Location = new System.Drawing.Point(72, 462);
this.buttonAbbrechen.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.buttonAbbrechen.MinimumSize = new System.Drawing.Size(150, 50);
this.buttonAbbrechen.Name = "buttonAbbrechen"; this.buttonAbbrechen.Name = "buttonAbbrechen";
this.buttonAbbrechen.Size = new System.Drawing.Size(172, 63); this.buttonAbbrechen.Size = new System.Drawing.Size(150, 50);
this.buttonAbbrechen.TabIndex = 12; this.buttonAbbrechen.TabIndex = 12;
this.buttonAbbrechen.Text = "Abbrechen"; this.buttonAbbrechen.Text = "Abbrechen";
this.buttonAbbrechen.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText; this.buttonAbbrechen.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText;
@ -130,9 +123,10 @@ namespace Deckungsbeitrag
// textBoxKndNr // textBoxKndNr
// //
this.textBoxKndNr.Font = new System.Drawing.Font("Microsoft Sans Serif", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.textBoxKndNr.Font = new System.Drawing.Font("Microsoft Sans Serif", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.textBoxKndNr.Location = new System.Drawing.Point(14, 66); this.textBoxKndNr.Location = new System.Drawing.Point(12, 53);
this.textBoxKndNr.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.textBoxKndNr.Name = "textBoxKndNr"; this.textBoxKndNr.Name = "textBoxKndNr";
this.textBoxKndNr.Size = new System.Drawing.Size(156, 31); this.textBoxKndNr.Size = new System.Drawing.Size(139, 37);
this.textBoxKndNr.TabIndex = 0; this.textBoxKndNr.TabIndex = 0;
this.textBoxKndNr.Click += new System.EventHandler(this.textBoxKndNr_Click); this.textBoxKndNr.Click += new System.EventHandler(this.textBoxKndNr_Click);
this.textBoxKndNr.PreviewKeyDown += new System.Windows.Forms.PreviewKeyDownEventHandler(this.textBoxKndNr_PreviewKeyDown); this.textBoxKndNr.PreviewKeyDown += new System.Windows.Forms.PreviewKeyDownEventHandler(this.textBoxKndNr_PreviewKeyDown);
@ -141,18 +135,19 @@ namespace Deckungsbeitrag
// //
this.label2.AutoSize = true; this.label2.AutoSize = true;
this.label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label2.Location = new System.Drawing.Point(8, 26); this.label2.Location = new System.Drawing.Point(7, 21);
this.label2.Name = "label2"; this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(75, 20); this.label2.Size = new System.Drawing.Size(96, 25);
this.label2.TabIndex = 0; this.label2.TabIndex = 0;
this.label2.Text = "KundeNr:"; this.label2.Text = "KundeNr:";
// //
// textBoxKundeName // textBoxKundeName
// //
this.textBoxKundeName.Font = new System.Drawing.Font("Microsoft Sans Serif", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.textBoxKundeName.Font = new System.Drawing.Font("Microsoft Sans Serif", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.textBoxKundeName.Location = new System.Drawing.Point(14, 160); this.textBoxKundeName.Location = new System.Drawing.Point(12, 128);
this.textBoxKundeName.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.textBoxKundeName.Name = "textBoxKundeName"; this.textBoxKundeName.Name = "textBoxKundeName";
this.textBoxKundeName.Size = new System.Drawing.Size(415, 31); this.textBoxKundeName.Size = new System.Drawing.Size(369, 37);
this.textBoxKundeName.TabIndex = 8; this.textBoxKundeName.TabIndex = 8;
this.textBoxKundeName.Leave += new System.EventHandler(this.textBoxKundeName_Leave); this.textBoxKundeName.Leave += new System.EventHandler(this.textBoxKundeName_Leave);
// //
@ -160,9 +155,9 @@ namespace Deckungsbeitrag
// //
this.label3.AutoSize = true; this.label3.AutoSize = true;
this.label3.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label3.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label3.Location = new System.Drawing.Point(8, 122); this.label3.Location = new System.Drawing.Point(7, 98);
this.label3.Name = "label3"; this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(59, 20); this.label3.Size = new System.Drawing.Size(76, 25);
this.label3.TabIndex = 19; this.label3.TabIndex = 19;
this.label3.Text = "Kunde:"; this.label3.Text = "Kunde:";
// //
@ -170,9 +165,9 @@ namespace Deckungsbeitrag
// //
this.label4.AutoSize = true; this.label4.AutoSize = true;
this.label4.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label4.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label4.Location = new System.Drawing.Point(8, 332); this.label4.Location = new System.Drawing.Point(7, 266);
this.label4.Name = "label4"; this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(98, 20); this.label4.Size = new System.Drawing.Size(120, 25);
this.label4.TabIndex = 22; this.label4.TabIndex = 22;
this.label4.Text = "Lieferdatum:"; this.label4.Text = "Lieferdatum:";
// //
@ -180,9 +175,9 @@ namespace Deckungsbeitrag
// //
this.label5.AutoSize = true; this.label5.AutoSize = true;
this.label5.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label5.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label5.Location = new System.Drawing.Point(8, 425); this.label5.Location = new System.Drawing.Point(7, 340);
this.label5.Name = "label5"; this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(158, 20); this.label5.Size = new System.Drawing.Size(196, 25);
this.label5.TabIndex = 24; this.label5.TabIndex = 24;
this.label5.Text = "Container schmutzig:"; this.label5.Text = "Container schmutzig:";
// //
@ -195,9 +190,10 @@ namespace Deckungsbeitrag
this.rBMO.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.rBMO.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.rBMO.Font = new System.Drawing.Font("Microsoft Sans Serif", 10.8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.rBMO.Font = new System.Drawing.Font("Microsoft Sans Serif", 10.8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.rBMO.ForeColor = System.Drawing.Color.Black; this.rBMO.ForeColor = System.Drawing.Color.Black;
this.rBMO.Location = new System.Drawing.Point(15, 225); this.rBMO.Location = new System.Drawing.Point(13, 180);
this.rBMO.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.rBMO.Name = "rBMO"; this.rBMO.Name = "rBMO";
this.rBMO.Size = new System.Drawing.Size(68, 69); this.rBMO.Size = new System.Drawing.Size(60, 55);
this.rBMO.TabIndex = 3; this.rBMO.TabIndex = 3;
this.rBMO.TabStop = true; this.rBMO.TabStop = true;
this.rBMO.Tag = ""; this.rBMO.Tag = "";
@ -216,9 +212,10 @@ namespace Deckungsbeitrag
this.rBFR.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.rBFR.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.rBFR.Font = new System.Drawing.Font("Microsoft Sans Serif", 10.8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.rBFR.Font = new System.Drawing.Font("Microsoft Sans Serif", 10.8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.rBFR.ForeColor = System.Drawing.Color.Black; this.rBFR.ForeColor = System.Drawing.Color.Black;
this.rBFR.Location = new System.Drawing.Point(363, 225); this.rBFR.Location = new System.Drawing.Point(323, 180);
this.rBFR.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.rBFR.Name = "rBFR"; this.rBFR.Name = "rBFR";
this.rBFR.Size = new System.Drawing.Size(68, 69); this.rBFR.Size = new System.Drawing.Size(60, 55);
this.rBFR.TabIndex = 7; this.rBFR.TabIndex = 7;
this.rBFR.TabStop = true; this.rBFR.TabStop = true;
this.rBFR.Text = "FR"; this.rBFR.Text = "FR";
@ -236,9 +233,10 @@ namespace Deckungsbeitrag
this.rBDO.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.rBDO.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.rBDO.Font = new System.Drawing.Font("Microsoft Sans Serif", 10.8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.rBDO.Font = new System.Drawing.Font("Microsoft Sans Serif", 10.8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.rBDO.ForeColor = System.Drawing.Color.Black; this.rBDO.ForeColor = System.Drawing.Color.Black;
this.rBDO.Location = new System.Drawing.Point(278, 225); this.rBDO.Location = new System.Drawing.Point(247, 180);
this.rBDO.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.rBDO.Name = "rBDO"; this.rBDO.Name = "rBDO";
this.rBDO.Size = new System.Drawing.Size(68, 69); this.rBDO.Size = new System.Drawing.Size(60, 55);
this.rBDO.TabIndex = 6; this.rBDO.TabIndex = 6;
this.rBDO.TabStop = true; this.rBDO.TabStop = true;
this.rBDO.Text = "DO"; this.rBDO.Text = "DO";
@ -256,9 +254,10 @@ namespace Deckungsbeitrag
this.rBMI.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.rBMI.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.rBMI.Font = new System.Drawing.Font("Microsoft Sans Serif", 10.8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.rBMI.Font = new System.Drawing.Font("Microsoft Sans Serif", 10.8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.rBMI.ForeColor = System.Drawing.Color.Black; this.rBMI.ForeColor = System.Drawing.Color.Black;
this.rBMI.Location = new System.Drawing.Point(192, 225); this.rBMI.Location = new System.Drawing.Point(171, 180);
this.rBMI.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.rBMI.Name = "rBMI"; this.rBMI.Name = "rBMI";
this.rBMI.Size = new System.Drawing.Size(68, 69); this.rBMI.Size = new System.Drawing.Size(60, 55);
this.rBMI.TabIndex = 5; this.rBMI.TabIndex = 5;
this.rBMI.TabStop = true; this.rBMI.TabStop = true;
this.rBMI.Text = "MI"; this.rBMI.Text = "MI";
@ -276,9 +275,10 @@ namespace Deckungsbeitrag
this.rBDI.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.rBDI.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.rBDI.Font = new System.Drawing.Font("Microsoft Sans Serif", 10.8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.rBDI.Font = new System.Drawing.Font("Microsoft Sans Serif", 10.8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.rBDI.ForeColor = System.Drawing.Color.Black; this.rBDI.ForeColor = System.Drawing.Color.Black;
this.rBDI.Location = new System.Drawing.Point(104, 225); this.rBDI.Location = new System.Drawing.Point(92, 180);
this.rBDI.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.rBDI.Name = "rBDI"; this.rBDI.Name = "rBDI";
this.rBDI.Size = new System.Drawing.Size(68, 69); this.rBDI.Size = new System.Drawing.Size(60, 55);
this.rBDI.TabIndex = 4; this.rBDI.TabIndex = 4;
this.rBDI.TabStop = true; this.rBDI.TabStop = true;
this.rBDI.Text = "DI"; this.rBDI.Text = "DI";
@ -291,9 +291,9 @@ namespace Deckungsbeitrag
// //
this.label6.AutoSize = true; this.label6.AutoSize = true;
this.label6.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label6.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label6.Location = new System.Drawing.Point(171, 26); this.label6.Location = new System.Drawing.Point(152, 21);
this.label6.Name = "label6"; this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(95, 20); this.label6.Size = new System.Drawing.Size(120, 25);
this.label6.TabIndex = 1; this.label6.TabIndex = 1;
this.label6.Text = "Auftrag Typ:"; this.label6.Text = "Auftrag Typ:";
// //
@ -304,122 +304,32 @@ namespace Deckungsbeitrag
this.comboBoxTyp.FlatStyle = System.Windows.Forms.FlatStyle.System; this.comboBoxTyp.FlatStyle = System.Windows.Forms.FlatStyle.System;
this.comboBoxTyp.Font = new System.Drawing.Font("Microsoft Sans Serif", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.comboBoxTyp.Font = new System.Drawing.Font("Microsoft Sans Serif", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.comboBoxTyp.FormattingEnabled = true; this.comboBoxTyp.FormattingEnabled = true;
this.comboBoxTyp.Location = new System.Drawing.Point(177, 65); this.comboBoxTyp.Location = new System.Drawing.Point(157, 52);
this.comboBoxTyp.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.comboBoxTyp.Name = "comboBoxTyp"; this.comboBoxTyp.Name = "comboBoxTyp";
this.comboBoxTyp.Size = new System.Drawing.Size(252, 33); this.comboBoxTyp.Size = new System.Drawing.Size(224, 38);
this.comboBoxTyp.TabIndex = 1; this.comboBoxTyp.TabIndex = 1;
this.comboBoxTyp.SelectedValueChanged += new System.EventHandler(this.comboBoxTyp_SelectedValueChanged); this.comboBoxTyp.SelectedValueChanged += new System.EventHandler(this.comboBoxTyp_SelectedValueChanged);
// //
// textBoxCont // textBoxCont
// //
this.textBoxCont.Font = new System.Drawing.Font("Microsoft Sans Serif", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.textBoxCont.Font = new System.Drawing.Font("Microsoft Sans Serif", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.textBoxCont.Location = new System.Drawing.Point(315, 394); this.textBoxCont.Location = new System.Drawing.Point(281, 316);
this.textBoxCont.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.textBoxCont.Name = "textBoxCont"; this.textBoxCont.Name = "textBoxCont";
this.textBoxCont.Size = new System.Drawing.Size(56, 40); this.textBoxCont.Size = new System.Drawing.Size(50, 49);
this.textBoxCont.TabIndex = 31; this.textBoxCont.TabIndex = 31;
this.textBoxCont.Text = "0"; this.textBoxCont.Text = "0";
this.textBoxCont.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; this.textBoxCont.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
this.textBoxCont.TextChanged += new System.EventHandler(this.textBoxCont_TextChanged); this.textBoxCont.TextChanged += new System.EventHandler(this.textBoxCont_TextChanged);
// //
// dGArtikel
//
this.dGArtikel.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.DisplayedCells;
this.dGArtikel.AutoSizeRowsMode = System.Windows.Forms.DataGridViewAutoSizeRowsMode.DisplayedCells;
this.dGArtikel.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dGArtikel.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.KundeArtikelID,
this.KundeID,
this.ArtikelNR,
this.ArtikelName,
this.Stand,
this.Fehlmenge,
this.Korrektur,
this.StandBearbeitet,
this.FehlmengeBearbeitet,
this.KorrekturBearbeitet});
this.dGArtikel.Location = new System.Drawing.Point(460, 18);
this.dGArtikel.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.dGArtikel.MinimumSize = new System.Drawing.Size(0, 437);
this.dGArtikel.Name = "dGArtikel";
this.dGArtikel.Size = new System.Drawing.Size(640, 523);
this.dGArtikel.TabIndex = 32;
this.dGArtikel.CellEnter += new System.Windows.Forms.DataGridViewCellEventHandler(this.DataGridView_CellEnter);
this.dGArtikel.CellValidating += new System.Windows.Forms.DataGridViewCellValidatingEventHandler(this.dGArtikel_CellValidating);
//
// KundeArtikelID
//
this.KundeArtikelID.HeaderText = "KundeArtikelID";
this.KundeArtikelID.Name = "KundeArtikelID";
this.KundeArtikelID.ReadOnly = true;
this.KundeArtikelID.Visible = false;
this.KundeArtikelID.Width = 103;
//
// KundeID
//
this.KundeID.HeaderText = "KundeID";
this.KundeID.Name = "KundeID";
this.KundeID.ReadOnly = true;
this.KundeID.Visible = false;
this.KundeID.Width = 74;
//
// ArtikelNR
//
this.ArtikelNR.HeaderText = "Art. Nr.";
this.ArtikelNR.Name = "ArtikelNR";
this.ArtikelNR.ReadOnly = true;
this.ArtikelNR.Width = 59;
//
// ArtikelName
//
this.ArtikelName.HeaderText = "Art. Name";
this.ArtikelName.Name = "ArtikelName";
this.ArtikelName.ReadOnly = true;
this.ArtikelName.Width = 97;
//
// Stand
//
this.Stand.HeaderText = "Stand";
this.Stand.Name = "Stand";
this.Stand.ReadOnly = true;
this.Stand.Width = 77;
//
// Fehlmenge
//
this.Fehlmenge.HeaderText = "Fehlmenge";
this.Fehlmenge.Name = "Fehlmenge";
this.Fehlmenge.Width = 114;
//
// Korrektur
//
this.Korrektur.HeaderText = "Korrektur";
this.Korrektur.Name = "Korrektur";
this.Korrektur.Width = 99;
//
// StandBearbeitet
//
this.StandBearbeitet.HeaderText = "Stand Bearbeitet";
this.StandBearbeitet.Name = "StandBearbeitet";
this.StandBearbeitet.Width = 142;
//
// FehlmengeBearbeitet
//
this.FehlmengeBearbeitet.HeaderText = "Fehlmenge Bearbeitet";
this.FehlmengeBearbeitet.Name = "FehlmengeBearbeitet";
this.FehlmengeBearbeitet.Width = 175;
//
// KorrekturBearbeitet
//
this.KorrekturBearbeitet.HeaderText = "Korrektur Bearbeitet";
this.KorrekturBearbeitet.Name = "KorrekturBearbeitet";
this.KorrekturBearbeitet.Width = 161;
//
// label1 // label1
// //
this.label1.AutoSize = true; this.label1.AutoSize = true;
this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label1.Location = new System.Drawing.Point(9, 511); this.label1.Location = new System.Drawing.Point(8, 409);
this.label1.Name = "label1"; this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(102, 20); this.label1.Size = new System.Drawing.Size(125, 25);
this.label1.TabIndex = 33; this.label1.TabIndex = 33;
this.label1.Text = "Zustellfahrer:"; this.label1.Text = "Zustellfahrer:";
// //
@ -430,9 +340,10 @@ namespace Deckungsbeitrag
this.comboBoxFahrer.FlatStyle = System.Windows.Forms.FlatStyle.System; this.comboBoxFahrer.FlatStyle = System.Windows.Forms.FlatStyle.System;
this.comboBoxFahrer.Font = new System.Drawing.Font("Microsoft Sans Serif", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.comboBoxFahrer.Font = new System.Drawing.Font("Microsoft Sans Serif", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.comboBoxFahrer.FormattingEnabled = true; this.comboBoxFahrer.FormattingEnabled = true;
this.comboBoxFahrer.Location = new System.Drawing.Point(177, 491); this.comboBoxFahrer.Location = new System.Drawing.Point(157, 393);
this.comboBoxFahrer.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.comboBoxFahrer.Name = "comboBoxFahrer"; this.comboBoxFahrer.Name = "comboBoxFahrer";
this.comboBoxFahrer.Size = new System.Drawing.Size(252, 33); this.comboBoxFahrer.Size = new System.Drawing.Size(224, 38);
this.comboBoxFahrer.TabIndex = 34; this.comboBoxFahrer.TabIndex = 34;
this.comboBoxFahrer.Validating += new System.ComponentModel.CancelEventHandler(this.comboBoxFahrer_Validating); this.comboBoxFahrer.Validating += new System.ComponentModel.CancelEventHandler(this.comboBoxFahrer_Validating);
// //
@ -443,10 +354,11 @@ namespace Deckungsbeitrag
this.buttonEinstellung.FlatAppearance.BorderSize = 3; this.buttonEinstellung.FlatAppearance.BorderSize = 3;
this.buttonEinstellung.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.buttonEinstellung.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.buttonEinstellung.Font = new System.Drawing.Font("Microsoft Sans Serif", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.buttonEinstellung.Font = new System.Drawing.Font("Microsoft Sans Serif", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.buttonEinstellung.Location = new System.Drawing.Point(14, 578); this.buttonEinstellung.Location = new System.Drawing.Point(12, 462);
this.buttonEinstellung.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); this.buttonEinstellung.Margin = new System.Windows.Forms.Padding(4);
this.buttonEinstellung.MinimumSize = new System.Drawing.Size(50, 50);
this.buttonEinstellung.Name = "buttonEinstellung"; this.buttonEinstellung.Name = "buttonEinstellung";
this.buttonEinstellung.Size = new System.Drawing.Size(62, 63); this.buttonEinstellung.Size = new System.Drawing.Size(50, 50);
this.buttonEinstellung.TabIndex = 46; this.buttonEinstellung.TabIndex = 46;
this.buttonEinstellung.Text = "i"; this.buttonEinstellung.Text = "i";
this.buttonEinstellung.UseVisualStyleBackColor = true; this.buttonEinstellung.UseVisualStyleBackColor = true;
@ -461,10 +373,10 @@ namespace Deckungsbeitrag
this.panelRegAuftrag.Controls.Add(this.comboBoxRhythmus); this.panelRegAuftrag.Controls.Add(this.comboBoxRhythmus);
this.panelRegAuftrag.Controls.Add(this.fLPArtikel); this.panelRegAuftrag.Controls.Add(this.fLPArtikel);
this.panelRegAuftrag.Enabled = false; this.panelRegAuftrag.Enabled = false;
this.panelRegAuftrag.Location = new System.Drawing.Point(460, -5); this.panelRegAuftrag.Location = new System.Drawing.Point(409, -2);
this.panelRegAuftrag.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); this.panelRegAuftrag.Margin = new System.Windows.Forms.Padding(4);
this.panelRegAuftrag.Name = "panelRegAuftrag"; this.panelRegAuftrag.Name = "panelRegAuftrag";
this.panelRegAuftrag.Size = new System.Drawing.Size(640, 546); this.panelRegAuftrag.Size = new System.Drawing.Size(569, 514);
this.panelRegAuftrag.TabIndex = 47; this.panelRegAuftrag.TabIndex = 47;
this.panelRegAuftrag.Visible = false; this.panelRegAuftrag.Visible = false;
this.panelRegAuftrag.EnabledChanged += new System.EventHandler(this.panelRegAuftrag_EnabledChanged); this.panelRegAuftrag.EnabledChanged += new System.EventHandler(this.panelRegAuftrag_EnabledChanged);
@ -474,9 +386,10 @@ namespace Deckungsbeitrag
this.pictureBoxAddArtikel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); 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.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.Image = ((System.Drawing.Image)(resources.GetObject("pictureBoxAddArtikel.Image")));
this.pictureBoxAddArtikel.Location = new System.Drawing.Point(562, 165); this.pictureBoxAddArtikel.Location = new System.Drawing.Point(500, 132);
this.pictureBoxAddArtikel.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.pictureBoxAddArtikel.Name = "pictureBoxAddArtikel"; this.pictureBoxAddArtikel.Name = "pictureBoxAddArtikel";
this.pictureBoxAddArtikel.Size = new System.Drawing.Size(50, 51); this.pictureBoxAddArtikel.Size = new System.Drawing.Size(44, 41);
this.pictureBoxAddArtikel.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; this.pictureBoxAddArtikel.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
this.pictureBoxAddArtikel.TabIndex = 39; this.pictureBoxAddArtikel.TabIndex = 39;
this.pictureBoxAddArtikel.TabStop = false; this.pictureBoxAddArtikel.TabStop = false;
@ -486,9 +399,9 @@ namespace Deckungsbeitrag
// //
this.label8.AutoSize = true; this.label8.AutoSize = true;
this.label8.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label8.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label8.Location = new System.Drawing.Point(22, 131); this.label8.Location = new System.Drawing.Point(20, 105);
this.label8.Name = "label8"; this.label8.Name = "label8";
this.label8.Size = new System.Drawing.Size(57, 20); this.label8.Size = new System.Drawing.Size(72, 25);
this.label8.TabIndex = 38; this.label8.TabIndex = 38;
this.label8.Text = "Artikel:"; this.label8.Text = "Artikel:";
// //
@ -501,18 +414,19 @@ namespace Deckungsbeitrag
this.comboBoxArtikel.FlatStyle = System.Windows.Forms.FlatStyle.System; this.comboBoxArtikel.FlatStyle = System.Windows.Forms.FlatStyle.System;
this.comboBoxArtikel.Font = new System.Drawing.Font("Microsoft Sans Serif", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.comboBoxArtikel.Font = new System.Drawing.Font("Microsoft Sans Serif", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.comboBoxArtikel.FormattingEnabled = true; this.comboBoxArtikel.FormattingEnabled = true;
this.comboBoxArtikel.Location = new System.Drawing.Point(28, 165); this.comboBoxArtikel.Location = new System.Drawing.Point(25, 132);
this.comboBoxArtikel.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.comboBoxArtikel.Name = "comboBoxArtikel"; this.comboBoxArtikel.Name = "comboBoxArtikel";
this.comboBoxArtikel.Size = new System.Drawing.Size(505, 33); this.comboBoxArtikel.Size = new System.Drawing.Size(449, 38);
this.comboBoxArtikel.TabIndex = 37; this.comboBoxArtikel.TabIndex = 37;
// //
// label7 // label7
// //
this.label7.AutoSize = true; this.label7.AutoSize = true;
this.label7.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label7.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label7.Location = new System.Drawing.Point(22, 31); this.label7.Location = new System.Drawing.Point(20, 25);
this.label7.Name = "label7"; this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(85, 20); this.label7.Size = new System.Drawing.Size(105, 25);
this.label7.TabIndex = 36; this.label7.TabIndex = 36;
this.label7.Text = "Rhythmus:"; this.label7.Text = "Rhythmus:";
// //
@ -525,9 +439,10 @@ namespace Deckungsbeitrag
this.comboBoxRhythmus.FlatStyle = System.Windows.Forms.FlatStyle.System; this.comboBoxRhythmus.FlatStyle = System.Windows.Forms.FlatStyle.System;
this.comboBoxRhythmus.Font = new System.Drawing.Font("Microsoft Sans Serif", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.comboBoxRhythmus.Font = new System.Drawing.Font("Microsoft Sans Serif", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.comboBoxRhythmus.FormattingEnabled = true; this.comboBoxRhythmus.FormattingEnabled = true;
this.comboBoxRhythmus.Location = new System.Drawing.Point(28, 68); this.comboBoxRhythmus.Location = new System.Drawing.Point(25, 54);
this.comboBoxRhythmus.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.comboBoxRhythmus.Name = "comboBoxRhythmus"; this.comboBoxRhythmus.Name = "comboBoxRhythmus";
this.comboBoxRhythmus.Size = new System.Drawing.Size(582, 33); this.comboBoxRhythmus.Size = new System.Drawing.Size(518, 38);
this.comboBoxRhythmus.TabIndex = 35; this.comboBoxRhythmus.TabIndex = 35;
// //
// fLPArtikel // fLPArtikel
@ -536,19 +451,20 @@ namespace Deckungsbeitrag
| System.Windows.Forms.AnchorStyles.Right))); | System.Windows.Forms.AnchorStyles.Right)));
this.fLPArtikel.AutoScroll = true; this.fLPArtikel.AutoScroll = true;
this.fLPArtikel.BackColor = System.Drawing.SystemColors.Control; this.fLPArtikel.BackColor = System.Drawing.SystemColors.Control;
this.fLPArtikel.Location = new System.Drawing.Point(28, 229); this.fLPArtikel.Location = new System.Drawing.Point(25, 183);
this.fLPArtikel.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); this.fLPArtikel.Margin = new System.Windows.Forms.Padding(4);
this.fLPArtikel.Name = "fLPArtikel"; this.fLPArtikel.Name = "fLPArtikel";
this.fLPArtikel.Size = new System.Drawing.Size(584, 317); this.fLPArtikel.Size = new System.Drawing.Size(519, 329);
this.fLPArtikel.TabIndex = 0; this.fLPArtikel.TabIndex = 0;
// //
// pictureBoxMinus // pictureBoxMinus
// //
this.pictureBoxMinus.BackColor = System.Drawing.Color.Red; this.pictureBoxMinus.BackColor = System.Drawing.Color.Red;
this.pictureBoxMinus.Image = ((System.Drawing.Image)(resources.GetObject("pictureBoxMinus.Image"))); this.pictureBoxMinus.Image = ((System.Drawing.Image)(resources.GetObject("pictureBoxMinus.Image")));
this.pictureBoxMinus.Location = new System.Drawing.Point(261, 394); this.pictureBoxMinus.Location = new System.Drawing.Point(232, 315);
this.pictureBoxMinus.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.pictureBoxMinus.Name = "pictureBoxMinus"; this.pictureBoxMinus.Name = "pictureBoxMinus";
this.pictureBoxMinus.Size = new System.Drawing.Size(57, 62); this.pictureBoxMinus.Size = new System.Drawing.Size(51, 50);
this.pictureBoxMinus.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; this.pictureBoxMinus.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
this.pictureBoxMinus.TabIndex = 27; this.pictureBoxMinus.TabIndex = 27;
this.pictureBoxMinus.TabStop = false; this.pictureBoxMinus.TabStop = false;
@ -558,9 +474,10 @@ namespace Deckungsbeitrag
// //
this.pictureBoxPlus.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(192)))), ((int)(((byte)(0))))); this.pictureBoxPlus.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(192)))), ((int)(((byte)(0)))));
this.pictureBoxPlus.Image = ((System.Drawing.Image)(resources.GetObject("pictureBoxPlus.Image"))); this.pictureBoxPlus.Image = ((System.Drawing.Image)(resources.GetObject("pictureBoxPlus.Image")));
this.pictureBoxPlus.Location = new System.Drawing.Point(374, 394); this.pictureBoxPlus.Location = new System.Drawing.Point(332, 315);
this.pictureBoxPlus.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.pictureBoxPlus.Name = "pictureBoxPlus"; this.pictureBoxPlus.Name = "pictureBoxPlus";
this.pictureBoxPlus.Size = new System.Drawing.Size(57, 62); this.pictureBoxPlus.Size = new System.Drawing.Size(51, 50);
this.pictureBoxPlus.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; this.pictureBoxPlus.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
this.pictureBoxPlus.TabIndex = 26; this.pictureBoxPlus.TabIndex = 26;
this.pictureBoxPlus.TabStop = false; this.pictureBoxPlus.TabStop = false;
@ -568,12 +485,12 @@ namespace Deckungsbeitrag
// //
// FormNeuerAuftrag // FormNeuerAuftrag
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 20F); this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; this.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(1)))), ((int)(((byte)(53)))), ((int)(((byte)(101))))); this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(1)))), ((int)(((byte)(53)))), ((int)(((byte)(101)))));
this.CancelButton = this.buttonAbbrechen; this.CancelButton = this.buttonAbbrechen;
this.ClientSize = new System.Drawing.Size(451, 663); this.ClientSize = new System.Drawing.Size(996, 530);
this.Controls.Add(this.buttonEinstellung); this.Controls.Add(this.buttonEinstellung);
this.Controls.Add(this.comboBoxFahrer); this.Controls.Add(this.comboBoxFahrer);
this.Controls.Add(this.label1); this.Controls.Add(this.label1);
@ -597,13 +514,13 @@ namespace Deckungsbeitrag
this.Controls.Add(this.buttonSpeichern); this.Controls.Add(this.buttonSpeichern);
this.Controls.Add(this.dTPLiefertag); this.Controls.Add(this.dTPLiefertag);
this.Controls.Add(this.panelRegAuftrag); this.Controls.Add(this.panelRegAuftrag);
this.Controls.Add(this.dGArtikel);
this.ForeColor = System.Drawing.Color.White; this.ForeColor = System.Drawing.Color.White;
this.HelpButton = true; this.HelpButton = true;
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.MaximizeBox = false; this.MaximizeBox = false;
this.MinimizeBox = false; this.MinimizeBox = false;
this.MinimumSize = new System.Drawing.Size(16, 702); this.MinimumSize = new System.Drawing.Size(350, 571);
this.Name = "FormNeuerAuftrag"; this.Name = "FormNeuerAuftrag";
this.ShowInTaskbar = false; this.ShowInTaskbar = false;
this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide; this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide;
@ -612,7 +529,6 @@ namespace Deckungsbeitrag
this.HelpButtonClicked += new System.ComponentModel.CancelEventHandler(this.FormNeuerAuftrag_HelpButtonClicked); this.HelpButtonClicked += new System.ComponentModel.CancelEventHandler(this.FormNeuerAuftrag_HelpButtonClicked);
this.Load += new System.EventHandler(this.FormNeuerAuftrag_Load); this.Load += new System.EventHandler(this.FormNeuerAuftrag_Load);
this.Shown += new System.EventHandler(this.FormNeuerAuftrag_Shown); this.Shown += new System.EventHandler(this.FormNeuerAuftrag_Shown);
((System.ComponentModel.ISupportInitialize)(this.dGArtikel)).EndInit();
this.panelRegAuftrag.ResumeLayout(false); this.panelRegAuftrag.ResumeLayout(false);
this.panelRegAuftrag.PerformLayout(); this.panelRegAuftrag.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.pictureBoxAddArtikel)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.pictureBoxAddArtikel)).EndInit();
@ -643,17 +559,6 @@ namespace Deckungsbeitrag
private System.Windows.Forms.Label label6; private System.Windows.Forms.Label label6;
private System.Windows.Forms.ComboBox comboBoxTyp; private System.Windows.Forms.ComboBox comboBoxTyp;
private System.Windows.Forms.TextBox textBoxCont; private System.Windows.Forms.TextBox textBoxCont;
private System.Windows.Forms.DataGridView dGArtikel;
private System.Windows.Forms.DataGridViewTextBoxColumn KundeArtikelID;
private System.Windows.Forms.DataGridViewTextBoxColumn KundeID;
private System.Windows.Forms.DataGridViewTextBoxColumn ArtikelNR;
private System.Windows.Forms.DataGridViewTextBoxColumn ArtikelName;
private System.Windows.Forms.DataGridViewTextBoxColumn Stand;
private System.Windows.Forms.DataGridViewTextBoxColumn Fehlmenge;
private System.Windows.Forms.DataGridViewTextBoxColumn Korrektur;
private System.Windows.Forms.DataGridViewTextBoxColumn StandBearbeitet;
private System.Windows.Forms.DataGridViewTextBoxColumn FehlmengeBearbeitet;
private System.Windows.Forms.DataGridViewTextBoxColumn KorrekturBearbeitet;
private System.Windows.Forms.Label label1; private System.Windows.Forms.Label label1;
private System.Windows.Forms.ComboBox comboBoxFahrer; private System.Windows.Forms.ComboBox comboBoxFahrer;
private System.Windows.Forms.Button buttonEinstellung; private System.Windows.Forms.Button buttonEinstellung;

View File

@ -121,7 +121,6 @@ namespace Deckungsbeitrag
this.Close(); this.Close();
} }
this.dGArtikel.ForeColor = Color.Black;
this.textBoxKundeName.Enabled = false; this.textBoxKundeName.Enabled = false;
this.textBoxKndNr.Enabled = false; this.textBoxKndNr.Enabled = false;
@ -183,72 +182,6 @@ namespace Deckungsbeitrag
if (this.benutzer.Rolle == BenutzerRolle.Fahrer) this.comboBoxFahrer.SelectedItem = this.benutzer; if (this.benutzer.Rolle == BenutzerRolle.Fahrer) this.comboBoxFahrer.SelectedItem = this.benutzer;
else this.comboBoxFahrer.SelectedIndex = -1; else this.comboBoxFahrer.SelectedIndex = -1;
} }
private void Load_Gridview(string kundeid, AuftragTyp auftragTyp)
{
List<KundeArtikel> artikelListe = KundeArtikel.GetList(kundeid);
//List<Sortiment> resultList = null;
//resultList = sortimentListe.FindAll(Sortiment => Sortiment.KundeNummer == kundeNr);
if (artikelListe.Count != 0)
{
this.dGArtikel.AutoGenerateColumns = false;
foreach (DataGridViewColumn col in this.dGArtikel.Columns)
{
col.DataPropertyName = col.Name;
if (col.Name.Contains("Bearbeitet")) col.Visible = false;
if (col.Name == "Fehlmenge")
{
if (auftragTyp == AuftragTyp.Inventur) col.Visible = true;
else col.Visible = false;
}
if (col.Name == "Korrektur")
{
if (auftragTyp >= AuftragTyp.Standerhöhung & auftragTyp <= AuftragTyp.Standverminderung) col.Visible = true;
else
{
if (auftragTyp == AuftragTyp.Inventur)
{
col.Visible = true;
col.Name = "Inventurausgleich";
}
else col.Visible = false;
}
}
}
// DataGridView mit ArtikelStand Liste verbinden und Columns automatisch generieren.
this.dGArtikel.DataSource = artikelListe;
this.dGArtikel.ClearSelection();
//this.dGArtikel.CurrentCell = this.dGArtikel.Rows[0].Cells[3];
// Alle Spaltenbreiten an den Zellinhalt anpassen
this.dGArtikel.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.AllCells;
this.dGArtikel.AutoResizeColumns(DataGridViewAutoSizeColumnsMode.AllCells);
// Alle Zeilenhöhen an Zellinhalt anpassen
this.dGArtikel.AutoSizeRowsMode = DataGridViewAutoSizeRowsMode.AllCells;
this.dGArtikel.AutoResizeRows(DataGridViewAutoSizeRowsMode.AllCells);
int totalWidth = dGArtikel.RowHeadersVisible ? dGArtikel.RowHeadersWidth : 0;
foreach (DataGridViewColumn col in dGArtikel.Columns)
{
if (col.Visible) totalWidth += col.Width;
}
int totalHeight = dGArtikel.ColumnHeadersVisible ? dGArtikel.ColumnHeadersHeight : 0;
foreach (DataGridViewRow row in dGArtikel.Rows)
{
if (row.Visible) totalHeight += row.Height;
}
totalHeight += dGArtikel.ColumnHeadersHeight;
dGArtikel.ClientSize = new Size(totalWidth, totalHeight);
}
}
/// <summary> /// <summary>
/// Button Click Events. /// Button Click Events.
@ -311,39 +244,13 @@ namespace Deckungsbeitrag
{ {
int tosave = 0; int tosave = 0;
int saved = 0; int saved = 0;
bool negieren = false;
foreach (DataGridViewRow artikel in this.dGArtikel.Rows)
{
tosave++;
KundeArtikel stand;
if (artikel.Cells[0].Value != null)
{
stand = KundeArtikel.GetItem(int.Parse(artikel.Cells[0].Value.ToString()));
if (artikel.Cells[5].Visible == true)
{
stand.Fehlmenge = int.Parse(artikel.Cells[5].Value.ToString());
stand.FehlmengeBearbeitet = this.benutzer.BenutzerName + " am " + DateTime.Now.ToString();
}
if (artikel.Cells[6].Visible == true)
{
if (int.TryParse(artikel.Cells[6].Value.ToString(), out int result))
{
if (Auftrag.Typ == AuftragTyp.Standverminderung) negieren = true;
stand.Korrektur = (negieren && stand.Korrektur > 0) ? -result : result;
stand.KorrekturBearbeitet = this.benutzer.BenutzerName + " am " + DateTime.Now.ToString();
}
else { meldung.Eingabefehler(); return; }
}
if (stand.Save() == 1) saved++;
}
}
//Kontrolle ob alle Artikel gespeichert wurden. //Kontrolle ob alle Artikel gespeichert wurden.
if (saved != tosave) meldung.Speicherfehler(); if (saved != tosave) meldung.Speicherfehler();
else else
{ {
//Speichern von AUFTRAG //Speichern von AUFTRAG
save = Auftrag.Save(); save = Auftrag.Save();
GetInventurCSV(); //GetInventurCSV();
} }
} }
else else
@ -387,71 +294,7 @@ namespace Deckungsbeitrag
break; break;
} }
//Wenn SONDERAUFTRAG(STH,STV,STA) dann ARTIKEL speichern.
if (Auftrag.Typ >= AuftragTyp.Inventur & Auftrag.Typ <= AuftragTyp.Standverminderung)
{
int tosave = 0;
int saved = 0;
bool negieren = false;
foreach (DataGridViewRow artikel in this.dGArtikel.Rows)
{
tosave++;
KundeArtikel stand;
if (artikel.Cells[0].Value != null)
{
stand = KundeArtikel.GetItem(int.Parse(artikel.Cells[0].Value.ToString()));
if (artikel.Cells[5].Visible == true)
{
stand.Fehlmenge = int.Parse(artikel.Cells[5].Value.ToString());
stand.FehlmengeBearbeitet = this.benutzer.BenutzerName + " am " + DateTime.Now.ToString();
}
if (artikel.Cells[6].Visible == true)
{
if (int.TryParse(artikel.Cells[6].Value.ToString(), out int result))
{
if (Auftrag.Typ == AuftragTyp.Standverminderung) negieren = true;
stand.Korrektur = (negieren && stand.Korrektur > 0) ? -result : result;
stand.KorrekturBearbeitet = this.benutzer.BenutzerName + " am " + DateTime.Now.ToString();
}
else { meldung.Eingabefehler(); return; }
}
if (stand.Save() == 1) saved++;
}
}
//Kontrolle ob alle Artikel gespeichert wurden.
if (saved != tosave) meldung.Speicherfehler();
else
{
//Speichern von AUFTRAG
save = Auftrag.Save(); save = Auftrag.Save();
GetInventurCSV();
}
}
else
{
if (!extra)
{
//this.fach.KundeID = Auftrag.KundeID;
//this.fach.Lieferdatum = Auftrag.Liefertag;
//this.fach.Liefertag = (Liefertag)Auftrag.Liefertag.DayOfWeek;
//if (extraAuftrag == null) { this.fach.ExtraAuftragID = null; this.fach.ExtraKundeID = null; }
//else { this.fach.ExtraAuftragID = extraAuftrag.AuftragID; this.fach.ExtraKundeID = extraAuftrag.KundeID; }
//this.fach.Gewaschen = (DateTime)Auftrag.Erstellt;
//FormFachBearbeiten fachbearb = new FormFachBearbeiten(this.Auftrag ,this.fach);
//if (fachbearb.ShowDialog() == DialogResult.OK)
//{
// this.fach = fachbearb.fach;
// //Speichern von AUFTRAG
// save = Auftrag.Save();
//}
//this.fach.AuftragID = Auftrag.AuftragID;
if (Auftrag.Save()[1] == 1) this.Close();
}
else save = Auftrag.Save();
}
} }
if (this.benutzer.Rolle == BenutzerRolle.Fahrer) if (this.benutzer.Rolle == BenutzerRolle.Fahrer)
@ -490,9 +333,11 @@ namespace Deckungsbeitrag
Auftrag.Status = AuftragStatus.Herrichten; Auftrag.Status = AuftragStatus.Herrichten;
Auftrag.Rhythmus = this.comboBoxRhythmus.Enabled ? (RegRhythmen)this.comboBoxRhythmus.SelectedItem : RegRhythmen.Unbekannt; Auftrag.Rhythmus = this.comboBoxRhythmus.Enabled ? (RegRhythmen)this.comboBoxRhythmus.SelectedItem : RegRhythmen.Unbekannt;
if (Auftrag.FindeAuftrag(false).Gefunden) if (Auftrag.FindeAuftrag(false).Gefunden)
{ {
Auftrag auf = Auftrag.GetAuftrag(Auftrag.FindeAuftrag(false).auftragID); int aufID = Auftrag.FindeAuftrag(false).auftragID;
Auftrag auf = Auftrag.GetAuftrag(aufID); ;
List<AuftragArtikel> liste = AuftragArtikel.GetList(auf.AuftragID); List<AuftragArtikel> liste = AuftragArtikel.GetList(auf.AuftragID);
string output = string.Join(Environment.NewLine, liste.Select(a => $"{a.ArtikelName,-20} {a.Anzahl,4} Stk.")); 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) 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)
@ -602,105 +447,6 @@ namespace Deckungsbeitrag
this.textBoxCont.Text = cont.ToString(); this.textBoxCont.Text = cont.ToString();
} }
/// <summary>
/// CSV-Liste für Inventur erstellen.
/// Wenn Liste vorhanden werden Inventuren unten angehängt sonst wird Datei erstellt.
/// </summary>
private void GetInventurCSV()
{
Kunde _knd = Kunde.GetKunde(null, Auftrag.KundeID, null);
Benutzer _user = Benutzer.GetBenutzer(null, Auftrag.ErstelltVon);
string fileName = $"{_knd.KundeNummer}.csv"; // Immer gleiche Datei!
string inventurOrdner = ConfigurationManager.AppSettings["InventurPfad"] ?? "Inventur";
string csvPath = Path.Combine(Application.StartupPath, inventurOrdner, fileName);
// Prüfen ob Header schon existiert
bool headerExists = File.Exists(csvPath);
// Nur Header bei NEUER Datei
if (!headerExists)
{
var csv = new StringBuilder();
csv.AppendLine("=== INVENTUR INFO ===");
csv.AppendLine($"KundeNr: {_knd.KundeNummer}");
csv.AppendLine($"Kunde: {_knd.KundeName}");
csv.AppendLine(new string('=', 30));
csv.AppendLine();
csv.AppendLine("Erstellt am;Erstellt von;Liefertag;ArtikelNr;Bezeichnung;Stand;Fehlmenge;Korrektur;InventurDatum");
File.WriteAllText(csvPath, csv.ToString(), Encoding.UTF8);
}
// NEUE Artikel ANHÄNGEN (ohne Header)
var appendCsv = new StringBuilder();
foreach (DataGridViewRow row in this.dGArtikel.Rows.Cast<DataGridViewRow>()
.Where(row => row.Cells[0].Value != null))
{
appendCsv.AppendLine(string.Join(";", new object[]
{
Auftrag.Erstellt.Value.Date.ToString("yyyy-MM-dd"),
_user.Vorname + " " + _user.Nachname,
Auftrag.Liefertag.Date.ToString("yyyy-MM-dd"),
row.Cells[2].Value?.ToString().Replace(";", " ") ?? "",
row.Cells[3].Value?.ToString().Replace(";", " ") ?? "",
row.Cells[4].Value?.ToString() ?? "0",
row.Cells[5].Visible ? (row.Cells[5].Value?.ToString() ?? "0") : "",
row.Cells[6].Visible ? (row.Cells[6].Value?.ToString() ?? "0") : "",
}));
}
// ANHÄNGEN statt überschreiben
File.AppendAllText(csvPath, appendCsv.ToString(), Encoding.UTF8);
}
private void GetStandCSV()
{
Kunde _knd = Kunde.GetKunde(null, Auftrag.KundeID, null);
Benutzer _user = Benutzer.GetBenutzer(null, Auftrag.ErstelltVon);
string fileName = $"{_knd.KundeNummer}.csv"; // Immer gleiche Datei!
string inventurOrdner = ConfigurationManager.AppSettings["InventurPfad"] ?? "Inventur";
string csvPath = Path.Combine(Application.StartupPath, inventurOrdner, fileName);
// Prüfen ob Header schon existiert
bool headerExists = File.Exists(csvPath);
// Nur Header bei NEUER Datei
if (!headerExists)
{
var csv = new StringBuilder();
csv.AppendLine("=== INVENTUR INFO ===");
csv.AppendLine($"KundeNr: {_knd.KundeNummer}");
csv.AppendLine($"Kunde: {_knd.KundeName}");
csv.AppendLine(new string('=', 30));
csv.AppendLine();
csv.AppendLine("Erstellt am;Erstellt von;Liefertag;ArtikelNr;Bezeichnung;Stand;Fehlmenge;Korrektur;InventurDatum");
File.WriteAllText(csvPath, csv.ToString(), Encoding.UTF8);
}
// NEUE Artikel ANHÄNGEN (ohne Header)
var appendCsv = new StringBuilder();
foreach (DataGridViewRow row in this.dGArtikel.Rows.Cast<DataGridViewRow>()
.Where(row => row.Cells[0].Value != null))
{
appendCsv.AppendLine(string.Join(";", new object[]
{
Auftrag.Erstellt.Value.Date.ToString("yyyy-MM-dd"),
_user.Vorname + " " + _user.Nachname,
Auftrag.Liefertag.Date.ToString("yyyy-MM-dd"),
row.Cells[2].Value?.ToString().Replace(";", " ") ?? "",
row.Cells[3].Value?.ToString().Replace(";", " ") ?? "",
row.Cells[4].Value?.ToString() ?? "0",
row.Cells[5].Visible ? (row.Cells[5].Value?.ToString() ?? "0") : "",
row.Cells[6].Visible ? (row.Cells[6].Value?.ToString() ?? "0") : "",
}));
}
// ANHÄNGEN statt überschreiben
File.AppendAllText(csvPath, appendCsv.ToString(), Encoding.UTF8);
}
/// <summary> /// <summary>
/// TextBox Events /// TextBox Events
/// </summary> /// </summary>
@ -805,54 +551,36 @@ namespace Deckungsbeitrag
switch ((AuftragTyp)comboBoxTyp.SelectedValue) switch ((AuftragTyp)comboBoxTyp.SelectedValue)
{ {
case AuftragTyp.Geschäft: // Wird derzeit wenig verwendet da die Auswahl in DatenLaden nach KundenService erfolgt. case AuftragTyp.Geschäft: // Wird derzeit wenig verwendet da die Auswahl in DatenLaden nach KundenService erfolgt.
this.dGArtikel.Enabled = this.dGArtikel.Visible = false;
this.Width = textBoxKundeName.Right + 30; this.Width = textBoxKundeName.Right + 30;
this.Height = 470; this.Height = 470;
break; break;
case AuftragTyp.Standart: case AuftragTyp.Standart:
this.dGArtikel.Enabled = this.dGArtikel.Visible = false;
this.Width = textBoxKundeName.Right + 30; this.Width = textBoxKundeName.Right + 30;
this.Height = 470; this.Height = 470;
break; break;
case AuftragTyp.Inventur: case AuftragTyp.Inventur:
if (this.kunde != null) Load_Gridview(this.kunde.KundeID.ToString(), (AuftragTyp)comboBoxTyp.SelectedValue);
this.dGArtikel.Enabled = this.dGArtikel.Visible = true;
this.Width = this.dGArtikel.Right + 25;
this.Height = this.dGArtikel.Bottom + this.buttonSpeichern.Height + 60;
break; break;
case AuftragTyp.Standerhöhung: case AuftragTyp.Standerhöhung:
if (this.kunde == null) return; if (this.kunde == null) return;
this.dGArtikel.Enabled = this.dGArtikel.Visible = false;
this.panelRegAuftrag.Enabled = this.panelRegAuftrag.Visible = true; this.panelRegAuftrag.Enabled = this.panelRegAuftrag.Visible = true;
this.pictureBoxPlus.Enabled = this.pictureBoxMinus.Enabled = this.textBoxCont.Enabled = false; this.pictureBoxPlus.Enabled = this.pictureBoxMinus.Enabled = this.textBoxCont.Enabled = false;
this.Width = this.panelRegAuftrag.Right + 25; this.Width = this.panelRegAuftrag.Right + 25;
this.Height = 470; this.Height = 470;
//if (this.kunde != null) Load_Gridview(this.kunde.KundeID.ToString(), (AuftragTyp)comboBoxTyp.SelectedValue);
//this.dGArtikel.Enabled = this.dGArtikel.Visible = true;
//this.Width = this.dGArtikel.Right + 25;
//this.Height = this.dGArtikel.Bottom + this.buttonSpeichern.Height + 60;
break; break;
case AuftragTyp.Standverminderung: case AuftragTyp.Standverminderung:
this.dGArtikel.Enabled = this.dGArtikel.Visible = false;
this.panelRegAuftrag.Enabled = this.panelRegAuftrag.Visible = true; this.panelRegAuftrag.Enabled = this.panelRegAuftrag.Visible = true;
this.pictureBoxPlus.Enabled = this.pictureBoxMinus.Enabled = this.textBoxCont.Enabled = false; this.pictureBoxPlus.Enabled = this.pictureBoxMinus.Enabled = this.textBoxCont.Enabled = false;
this.Width = this.panelRegAuftrag.Right + 25; this.Width = this.panelRegAuftrag.Right + 25;
this.Height = 470; this.Height = 470;
//if (this.kunde != null) Load_Gridview(this.kunde.KundeID.ToString(), (AuftragTyp)comboBoxTyp.SelectedValue);
//this.dGArtikel.Enabled = this.dGArtikel.Visible = true;
//this.Width = this.dGArtikel.Right + 25;
//this.Height = this.dGArtikel.Bottom + this.buttonSpeichern.Height + 60;
break; break;
case AuftragTyp.Regelmäßig: case AuftragTyp.Regelmäßig:
this.dGArtikel.Enabled = this.dGArtikel.Visible = false;
this.panelRegAuftrag.Enabled = this.panelRegAuftrag.Visible = true; this.panelRegAuftrag.Enabled = this.panelRegAuftrag.Visible = true;
this.pictureBoxPlus.Enabled = this.pictureBoxMinus.Enabled = this.textBoxCont.Enabled = false; this.pictureBoxPlus.Enabled = this.pictureBoxMinus.Enabled = this.textBoxCont.Enabled = false;
this.Width = this.panelRegAuftrag.Right + 25; this.Width = this.panelRegAuftrag.Right + 25;
this.Height = 470; this.Height = 470;
break; break;
case AuftragTyp.AufAbruf: case AuftragTyp.AufAbruf:
this.dGArtikel.Enabled = this.dGArtikel.Visible = false;
this.Width = textBoxKundeName.Right + 30; this.Width = textBoxKundeName.Right + 30;
this.Height = 470; this.Height = 470;
break; break;
@ -971,6 +699,4 @@ namespace Deckungsbeitrag
} }
} }
} }
//TODO: Form AuftragDetail muss überarbeitet werden.
//TODO: TourenListe Entwurf muss überarbeitet werden. //TODO: TourenListe Entwurf muss überarbeitet werden.
//TODO: Grund immer abfragen oder nur wenn Fahrer die Zuteilung ändert?

View File

@ -117,66 +117,6 @@
<resheader name="writer"> <resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader> </resheader>
<metadata name="KundeArtikelID.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="KundeID.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="ArtikelNR.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="ArtikelName.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Stand.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Fehlmenge.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Korrektur.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="StandBearbeitet.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="FehlmengeBearbeitet.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="KorrekturBearbeitet.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="KundeArtikelID.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="KundeID.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="ArtikelNR.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="ArtikelName.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Stand.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Fehlmenge.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Korrektur.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="StandBearbeitet.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="FehlmengeBearbeitet.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="KorrekturBearbeitet.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> <assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="pictureBoxAddArtikel.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> <data name="pictureBoxAddArtikel.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value> <value>

View File

@ -49,9 +49,10 @@
this.panelButtons.BackColor = System.Drawing.Color.Transparent; this.panelButtons.BackColor = System.Drawing.Color.Transparent;
this.panelButtons.Controls.Add(this.tLPButtons); this.panelButtons.Controls.Add(this.tLPButtons);
this.panelButtons.Dock = System.Windows.Forms.DockStyle.Bottom; this.panelButtons.Dock = System.Windows.Forms.DockStyle.Bottom;
this.panelButtons.Location = new System.Drawing.Point(0, 380); this.panelButtons.Location = new System.Drawing.Point(0, 468);
this.panelButtons.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.panelButtons.Name = "panelButtons"; this.panelButtons.Name = "panelButtons";
this.panelButtons.Size = new System.Drawing.Size(800, 70); this.panelButtons.Size = new System.Drawing.Size(1067, 86);
this.panelButtons.TabIndex = 1; this.panelButtons.TabIndex = 1;
// //
// tLPButtons // tLPButtons
@ -65,11 +66,12 @@
this.tLPButtons.Controls.Add(this.buttonPrevious, 0, 0); this.tLPButtons.Controls.Add(this.buttonPrevious, 0, 0);
this.tLPButtons.Controls.Add(this.buttonNext, 2, 0); this.tLPButtons.Controls.Add(this.buttonNext, 2, 0);
this.tLPButtons.Dock = System.Windows.Forms.DockStyle.Bottom; this.tLPButtons.Dock = System.Windows.Forms.DockStyle.Bottom;
this.tLPButtons.Location = new System.Drawing.Point(0, 23); this.tLPButtons.Location = new System.Drawing.Point(0, 28);
this.tLPButtons.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.tLPButtons.Name = "tLPButtons"; this.tLPButtons.Name = "tLPButtons";
this.tLPButtons.RowCount = 1; this.tLPButtons.RowCount = 1;
this.tLPButtons.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 47F)); this.tLPButtons.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 58F));
this.tLPButtons.Size = new System.Drawing.Size(800, 47); this.tLPButtons.Size = new System.Drawing.Size(1067, 58);
this.tLPButtons.TabIndex = 0; this.tLPButtons.TabIndex = 0;
// //
// buttonFertig // buttonFertig
@ -81,10 +83,10 @@
this.buttonFertig.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.buttonFertig.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.buttonFertig.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.buttonFertig.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.buttonFertig.ForeColor = System.Drawing.Color.Black; this.buttonFertig.ForeColor = System.Drawing.Color.Black;
this.buttonFertig.Location = new System.Drawing.Point(309, 2); this.buttonFertig.Location = new System.Drawing.Point(413, 2);
this.buttonFertig.Margin = new System.Windows.Forms.Padding(2); this.buttonFertig.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.buttonFertig.Name = "buttonFertig"; this.buttonFertig.Name = "buttonFertig";
this.buttonFertig.Size = new System.Drawing.Size(180, 43); this.buttonFertig.Size = new System.Drawing.Size(240, 54);
this.buttonFertig.TabIndex = 48; this.buttonFertig.TabIndex = 48;
this.buttonFertig.Text = "Fertig"; this.buttonFertig.Text = "Fertig";
this.buttonFertig.UseVisualStyleBackColor = false; this.buttonFertig.UseVisualStyleBackColor = false;
@ -99,9 +101,10 @@
this.buttonPrevious.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.buttonPrevious.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.buttonPrevious.Font = new System.Drawing.Font("Microsoft Sans Serif", 18F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.buttonPrevious.Font = new System.Drawing.Font("Microsoft Sans Serif", 18F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.buttonPrevious.ForeColor = System.Drawing.Color.White; this.buttonPrevious.ForeColor = System.Drawing.Color.White;
this.buttonPrevious.Location = new System.Drawing.Point(263, 3); this.buttonPrevious.Location = new System.Drawing.Point(351, 4);
this.buttonPrevious.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.buttonPrevious.Name = "buttonPrevious"; this.buttonPrevious.Name = "buttonPrevious";
this.buttonPrevious.Size = new System.Drawing.Size(41, 41); this.buttonPrevious.Size = new System.Drawing.Size(55, 50);
this.buttonPrevious.TabIndex = 47; this.buttonPrevious.TabIndex = 47;
this.buttonPrevious.Text = "<"; this.buttonPrevious.Text = "<";
this.buttonPrevious.UseVisualStyleBackColor = true; this.buttonPrevious.UseVisualStyleBackColor = true;
@ -116,9 +119,10 @@
this.buttonNext.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.buttonNext.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.buttonNext.Font = new System.Drawing.Font("Microsoft Sans Serif", 18F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.buttonNext.Font = new System.Drawing.Font("Microsoft Sans Serif", 18F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.buttonNext.ForeColor = System.Drawing.Color.White; this.buttonNext.ForeColor = System.Drawing.Color.White;
this.buttonNext.Location = new System.Drawing.Point(494, 3); this.buttonNext.Location = new System.Drawing.Point(660, 4);
this.buttonNext.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.buttonNext.Name = "buttonNext"; this.buttonNext.Name = "buttonNext";
this.buttonNext.Size = new System.Drawing.Size(41, 41); this.buttonNext.Size = new System.Drawing.Size(55, 50);
this.buttonNext.TabIndex = 46; this.buttonNext.TabIndex = 46;
this.buttonNext.Text = ">"; this.buttonNext.Text = ">";
this.buttonNext.UseVisualStyleBackColor = true; this.buttonNext.UseVisualStyleBackColor = true;
@ -132,8 +136,9 @@
this.panelText.Controls.Add(this.pictureBoxScreen); this.panelText.Controls.Add(this.pictureBoxScreen);
this.panelText.Dock = System.Windows.Forms.DockStyle.Fill; this.panelText.Dock = System.Windows.Forms.DockStyle.Fill;
this.panelText.Location = new System.Drawing.Point(0, 0); this.panelText.Location = new System.Drawing.Point(0, 0);
this.panelText.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.panelText.Name = "panelText"; this.panelText.Name = "panelText";
this.panelText.Size = new System.Drawing.Size(800, 380); this.panelText.Size = new System.Drawing.Size(1067, 468);
this.panelText.TabIndex = 2; this.panelText.TabIndex = 2;
// //
// labelText // labelText
@ -142,9 +147,10 @@
this.labelText.Dock = System.Windows.Forms.DockStyle.Top; this.labelText.Dock = System.Windows.Forms.DockStyle.Top;
this.labelText.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.labelText.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.labelText.ForeColor = System.Drawing.Color.White; this.labelText.ForeColor = System.Drawing.Color.White;
this.labelText.Location = new System.Drawing.Point(0, 42); this.labelText.Location = new System.Drawing.Point(0, 52);
this.labelText.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.labelText.Name = "labelText"; this.labelText.Name = "labelText";
this.labelText.Size = new System.Drawing.Size(0, 20); this.labelText.Size = new System.Drawing.Size(0, 25);
this.labelText.TabIndex = 2; this.labelText.TabIndex = 2;
this.labelText.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; this.labelText.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.labelText.Resize += new System.EventHandler(this.labelText_Resize); this.labelText.Resize += new System.EventHandler(this.labelText_Resize);
@ -155,8 +161,9 @@
this.labelHeader.Font = new System.Drawing.Font("Microsoft Sans Serif", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.labelHeader.Font = new System.Drawing.Font("Microsoft Sans Serif", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.labelHeader.ForeColor = System.Drawing.Color.White; this.labelHeader.ForeColor = System.Drawing.Color.White;
this.labelHeader.Location = new System.Drawing.Point(0, 0); this.labelHeader.Location = new System.Drawing.Point(0, 0);
this.labelHeader.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.labelHeader.Name = "labelHeader"; this.labelHeader.Name = "labelHeader";
this.labelHeader.Size = new System.Drawing.Size(800, 42); this.labelHeader.Size = new System.Drawing.Size(1067, 52);
this.labelHeader.TabIndex = 1; this.labelHeader.TabIndex = 1;
this.labelHeader.Text = "label1"; this.labelHeader.Text = "label1";
this.labelHeader.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; this.labelHeader.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
@ -168,22 +175,24 @@
| System.Windows.Forms.AnchorStyles.Right))); | System.Windows.Forms.AnchorStyles.Right)));
this.pictureBoxScreen.BackColor = System.Drawing.Color.SkyBlue; this.pictureBoxScreen.BackColor = System.Drawing.Color.SkyBlue;
this.pictureBoxScreen.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; this.pictureBoxScreen.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
this.pictureBoxScreen.Location = new System.Drawing.Point(0, 149); this.pictureBoxScreen.Location = new System.Drawing.Point(0, 183);
this.pictureBoxScreen.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.pictureBoxScreen.Name = "pictureBoxScreen"; this.pictureBoxScreen.Name = "pictureBoxScreen";
this.pictureBoxScreen.Size = new System.Drawing.Size(800, 231); this.pictureBoxScreen.Size = new System.Drawing.Size(1065, 283);
this.pictureBoxScreen.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; this.pictureBoxScreen.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
this.pictureBoxScreen.TabIndex = 0; this.pictureBoxScreen.TabIndex = 0;
this.pictureBoxScreen.TabStop = false; this.pictureBoxScreen.TabStop = false;
// //
// FormOnBoarding // FormOnBoarding
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(1)))), ((int)(((byte)(53)))), ((int)(((byte)(101))))); this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(1)))), ((int)(((byte)(53)))), ((int)(((byte)(101)))));
this.ClientSize = new System.Drawing.Size(800, 450); this.ClientSize = new System.Drawing.Size(1067, 554);
this.Controls.Add(this.panelText); this.Controls.Add(this.panelText);
this.Controls.Add(this.panelButtons); this.Controls.Add(this.panelButtons);
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.MaximizeBox = false; this.MaximizeBox = false;
this.MinimizeBox = false; this.MinimizeBox = false;
this.Name = "FormOnBoarding"; this.Name = "FormOnBoarding";

View File

@ -115,6 +115,9 @@ namespace Deckungsbeitrag.AA_Forms
break; break;
case OnboardingSchritt.Tourenplanung: case OnboardingSchritt.Tourenplanung:
break; break;
case OnboardingSchritt.NeueInventur:
OnBoardingText = LoadDictionary("NeueInventur");
break;
default: default:
OnBoardingText = LoadDictionary("Login"); OnBoardingText = LoadDictionary("Login");
break; break;

View File

@ -39,6 +39,7 @@ namespace DatenDB
Gewaschen = 2, Gewaschen = 2,
Herrichten = 3, Herrichten = 3,
Vorbereitet = 4, Vorbereitet = 4,
Warten = 5,
Fertig = 6, Fertig = 6,
Geladen = 7, Geladen = 7,
Ausgeliefert = 8, Ausgeliefert = 8,

View File

@ -14,6 +14,7 @@ namespace DatenDB
{ {
private static string TABLE = "kundenverwaltung.auftrag_artikel"; private static string TABLE = "kundenverwaltung.auftrag_artikel";
private static string COLUMNS = "auftrag_artikel_id, auftrag_id, artikel_id, artikel_name, anzahl, erledigt, gesamt"; private static string COLUMNS = "auftrag_artikel_id, auftrag_id, artikel_id, artikel_name, anzahl, erledigt, gesamt";
private static string ACOLUMNS = "a.auftrag_artikel_id, a.auftrag_id, a.artikel_id, a.artikel_name, a.anzahl, a.erledigt, a.gesamt";
public Kunde kunde; public Kunde kunde;
public AuftragArtikel() public AuftragArtikel()
@ -26,7 +27,7 @@ namespace DatenDB
List<AuftragArtikel> resultList = new List<AuftragArtikel>(); List<AuftragArtikel> resultList = new List<AuftragArtikel>();
NpgsqlCommand command = new NpgsqlCommand(); NpgsqlCommand command = new NpgsqlCommand();
command.Connection = DatenbankConnection.GetConnection(); command.Connection = DatenbankConnection.GetConnection();
command.CommandText = $"select {COLUMNS} from {TABLE} where auftrag_id = {auftragID}"; command.CommandText = $"select {ACOLUMNS} from {TABLE} a where auftrag_id = {auftragID}";
NpgsqlDataReader reader = command.ExecuteReader(); NpgsqlDataReader reader = command.ExecuteReader();
while (reader.Read()) resultList.Add(new AuftragArtikel(reader, 1)); while (reader.Read()) resultList.Add(new AuftragArtikel(reader, 1));
reader.Close(); reader.Close();

View File

@ -29,7 +29,8 @@ namespace DatenDB
NeuerAuftrag = 1, NeuerAuftrag = 1,
Main = 2, Main = 2,
Expedit = 4, Expedit = 4,
Tourenplanung = 8 Tourenplanung = 8,
NeueInventur = 16
} }
public class Benutzer public class Benutzer

View File

@ -1401,7 +1401,7 @@ namespace Deckungsbeitrag
}//COLUMNS BREITE CONTENT ODER HEADER SIZE }//COLUMNS BREITE CONTENT ODER HEADER SIZE
//BREITE DER LISTVIEW UNVERÄNDERT BEI NAMEN MIT... //BREITE DER LISTVIEW UNVERÄNDERT BEI NAMEN MIT...
if (!olv.Name.Contains("Lieferungen") & !olv.Name.Contains("STH") & !olv.Name.Contains("Artikel") & !olv.Name.Contains("AufgabeVW") & !olv.Name.Contains("Auftrag")) olv.Width = lvwWidth; if (!olv.Name.Contains("Lieferungen") & !olv.Name.Contains("STH") & !olv.Name.Contains("AufgabeVW") & !olv.Name.Contains("Auftrag")) olv.Width = lvwWidth;
return (null, olv); return (null, olv);
@ -1795,5 +1795,10 @@ namespace Deckungsbeitrag
default: return AuftragPriority.None; default: return AuftragPriority.None;
} }
} }
internal static void GetInventuren(Panel panelMain)
{
throw new NotImplementedException();
}
} }
} }

View File

@ -14,9 +14,27 @@ namespace DatenDB
{ {
// 0 1 2 3 4 5 6 7 8 9 10 11 12 // 0 1 2 3 4 5 6 7 8 9 10 11 12
private static string COLUMNS = "kunde_artikel_id, kunde_id, artikel_nr, artikel_name, stand, fehlmenge, stand_bearbeitet, fehlmenge_bearbeitet, korrektur, korrektur_bearbeitet, reklamation, artikel_id, reihung"; private static string COLUMNS = "kunde_artikel_id, kunde_id, artikel_nr, artikel_name, stand, fehlmenge, stand_bearbeitet, fehlmenge_bearbeitet, korrektur, korrektur_bearbeitet, reklamation, artikel_id, reihung";
private static string TABLE = "kundenverwaltung.kunde_artikel"; private static string TABLE = "kundenverwaltung.kunde_artikel";
public KundeArtikel() { } public KundeArtikel() { }
internal static List<KundeArtikel> GetInventurList(int? kundeid)
{
DatenbankConnection.GetConnection().Open();
List<KundeArtikel> resultList = new List<KundeArtikel>();
NpgsqlCommand command = new NpgsqlCommand();
command.Connection = DatenbankConnection.GetConnection();
command.CommandText = $"select {COLUMNS} from {TABLE} where kunde_id = {kundeid} order by reihung asc";
using (var reader = command.ExecuteReader())
{
while (reader.Read())
{
resultList.Add(new KundeArtikel(reader));
}
}
DatenbankConnection.GetConnection().Close();
return resultList;
}
public static List<KundeArtikel> GetList(string kundeid) public static List<KundeArtikel> GetList(string kundeid)
{ {

View File

@ -574,6 +574,7 @@ namespace Deckungsbeitrag
#endregion #endregion
#region public-Funktion #region public-Funktion
public static void AddFeedback(Benutzer user, string feedbackText, string bildDateiname, string timeStamp) public static void AddFeedback(Benutzer user, string feedbackText, string bildDateiname, string timeStamp)
{ {
string vaultPath = Path.Combine(savePath, "Feedback\\VerwaltungFeedback.md"); string vaultPath = Path.Combine(savePath, "Feedback\\VerwaltungFeedback.md");

363
UserControls/UCInventur.Designer.cs generated Normal file
View File

@ -0,0 +1,363 @@
namespace Deckungsbeitrag.UserControls
{
partial class UCInventur
{
/// <summary>
/// Erforderliche Designervariable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Verwendete Ressourcen bereinigen.
/// </summary>
/// <param name="disposing">True, wenn verwaltete Ressourcen gelöscht werden sollen; andernfalls False.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Vom Komponenten-Designer generierter Code
/// <summary>
/// Erforderliche Methode für die Designerunterstützung.
/// Der Inhalt der Methode darf nicht mit dem Code-Editor geändert werden.
/// </summary>
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(UCInventur));
this.groupBoxInventur = new System.Windows.Forms.GroupBox();
this.labelLieferDat = new System.Windows.Forms.Label();
this.dTPLieferDat = new System.Windows.Forms.DateTimePicker();
this.labelInvDat = new System.Windows.Forms.Label();
this.label1 = new System.Windows.Forms.Label();
this.pictureBoxClose = new System.Windows.Forms.PictureBox();
this.dTPInvDatum = new System.Windows.Forms.DateTimePicker();
this.pictureBoxPlus = new System.Windows.Forms.PictureBox();
this.dGArtikel = new System.Windows.Forms.DataGridView();
this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column4 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column5 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column6 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column7 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.buttonFreigeben = new System.Windows.Forms.Button();
this.panelButtons = new System.Windows.Forms.Panel();
this.buttonSpeichern = new System.Windows.Forms.Button();
this.labelInvText = new System.Windows.Forms.Label();
this.groupBoxInventur.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.pictureBoxClose)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBoxPlus)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.dGArtikel)).BeginInit();
this.panelButtons.SuspendLayout();
this.SuspendLayout();
//
// groupBoxInventur
//
this.groupBoxInventur.Controls.Add(this.labelLieferDat);
this.groupBoxInventur.Controls.Add(this.dTPLieferDat);
this.groupBoxInventur.Controls.Add(this.labelInvDat);
this.groupBoxInventur.Controls.Add(this.label1);
this.groupBoxInventur.Controls.Add(this.pictureBoxClose);
this.groupBoxInventur.Controls.Add(this.dTPInvDatum);
this.groupBoxInventur.Controls.Add(this.pictureBoxPlus);
this.groupBoxInventur.Controls.Add(this.dGArtikel);
this.groupBoxInventur.Dock = System.Windows.Forms.DockStyle.Top;
this.groupBoxInventur.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.groupBoxInventur.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(1)))), ((int)(((byte)(53)))), ((int)(((byte)(101)))));
this.groupBoxInventur.Location = new System.Drawing.Point(3, 3);
this.groupBoxInventur.Name = "groupBoxInventur";
this.groupBoxInventur.Padding = new System.Windows.Forms.Padding(5);
this.groupBoxInventur.Size = new System.Drawing.Size(983, 485);
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);
//
// labelLieferDat
//
this.labelLieferDat.AutoSize = true;
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(319, 46);
this.labelLieferDat.Name = "labelLieferDat";
this.labelLieferDat.Size = new System.Drawing.Size(115, 20);
this.labelLieferDat.TabIndex = 46;
this.labelLieferDat.Text = "Lieferdatum:";
this.labelLieferDat.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// dTPLieferDat
//
this.dTPLieferDat.CalendarForeColor = System.Drawing.SystemColors.ActiveCaptionText;
this.dTPLieferDat.Format = System.Windows.Forms.DateTimePickerFormat.Short;
this.dTPLieferDat.Location = new System.Drawing.Point(440, 37);
this.dTPLieferDat.Name = "dTPLieferDat";
this.dTPLieferDat.Size = new System.Drawing.Size(161, 30);
this.dTPLieferDat.TabIndex = 45;
//
// labelInvDat
//
this.labelInvDat.AutoSize = true;
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, 46);
this.labelInvDat.Name = "labelInvDat";
this.labelInvDat.Size = new System.Drawing.Size(133, 20);
this.labelInvDat.TabIndex = 44;
this.labelInvDat.Text = "Inventurdatum:";
this.labelInvDat.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// label1
//
this.label1.AutoSize = true;
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(697, 46);
this.label1.Name = "label1";
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;
//
// pictureBoxClose
//
this.pictureBoxClose.ErrorImage = ((System.Drawing.Image)(resources.GetObject("pictureBoxClose.ErrorImage")));
this.pictureBoxClose.Image = ((System.Drawing.Image)(resources.GetObject("pictureBoxClose.Image")));
this.pictureBoxClose.InitialImage = ((System.Drawing.Image)(resources.GetObject("pictureBoxClose.InitialImage")));
this.pictureBoxClose.Location = new System.Drawing.Point(948, 7);
this.pictureBoxClose.Name = "pictureBoxClose";
this.pictureBoxClose.Size = new System.Drawing.Size(25, 25);
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);
//
// dTPInvDatum
//
this.dTPInvDatum.CalendarForeColor = System.Drawing.SystemColors.ActiveCaptionText;
this.dTPInvDatum.Format = System.Windows.Forms.DateTimePickerFormat.Short;
this.dTPInvDatum.Location = new System.Drawing.Point(142, 37);
this.dTPInvDatum.Name = "dTPInvDatum";
this.dTPInvDatum.Size = new System.Drawing.Size(161, 30);
this.dTPInvDatum.TabIndex = 41;
//
// pictureBoxPlus
//
this.pictureBoxPlus.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(192)))), ((int)(((byte)(0)))));
this.pictureBoxPlus.Image = ((System.Drawing.Image)(resources.GetObject("pictureBoxPlus.Image")));
this.pictureBoxPlus.Location = new System.Drawing.Point(948, 37);
this.pictureBoxPlus.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.pictureBoxPlus.Name = "pictureBoxPlus";
this.pictureBoxPlus.Size = new System.Drawing.Size(30, 30);
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);
//
// dGArtikel
//
this.dGArtikel.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dGArtikel.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.Column1,
this.Column2,
this.Column3,
this.Column4,
this.Column5,
this.Column6,
this.Column7});
this.dGArtikel.Dock = System.Windows.Forms.DockStyle.Bottom;
this.dGArtikel.Location = new System.Drawing.Point(5, 96);
this.dGArtikel.Margin = new System.Windows.Forms.Padding(4);
this.dGArtikel.MinimumSize = new System.Drawing.Size(0, 350);
this.dGArtikel.Name = "dGArtikel";
this.dGArtikel.RowHeadersVisible = false;
this.dGArtikel.RowHeadersWidth = 51;
this.dGArtikel.Size = new System.Drawing.Size(973, 384);
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);
//
// Column1
//
this.Column1.DataPropertyName = "ArtikelNR";
this.Column1.HeaderText = "Art.Nr.";
this.Column1.MinimumWidth = 6;
this.Column1.Name = "Column1";
this.Column1.ReadOnly = true;
this.Column1.Width = 103;
//
// Column2
//
this.Column2.DataPropertyName = "ArtikelName";
this.Column2.HeaderText = "Art.Name";
this.Column2.MinimumWidth = 6;
this.Column2.Name = "Column2";
this.Column2.ReadOnly = true;
this.Column2.Width = 131;
//
// Column3
//
this.Column3.DataPropertyName = "Stand";
this.Column3.HeaderText = "Ist-Stand";
this.Column3.MinimumWidth = 6;
this.Column3.Name = "Column3";
this.Column3.ReadOnly = true;
this.Column3.Width = 129;
//
// Column4
//
this.Column4.DataPropertyName = "Reklamation";
this.Column4.HeaderText = "Rekl.";
this.Column4.MinimumWidth = 6;
this.Column4.Name = "Column4";
this.Column4.ReadOnly = true;
this.Column4.Width = 89;
//
// Column5
//
this.Column5.DataPropertyName = "Fehlmenge";
this.Column5.HeaderText = "NW";
this.Column5.MinimumWidth = 6;
this.Column5.Name = "Column5";
this.Column5.ReadOnly = true;
this.Column5.Width = 77;
//
// Column6
//
this.Column6.HeaderText = "Schwund";
this.Column6.MinimumWidth = 6;
this.Column6.Name = "Column6";
this.Column6.ReadOnly = true;
this.Column6.Width = 130;
//
// Column7
//
this.Column7.DataPropertyName = "Korrektur";
this.Column7.HeaderText = "Inv.Ausgleich";
this.Column7.MinimumWidth = 6;
this.Column7.Name = "Column7";
this.Column7.ReadOnly = true;
this.Column7.Width = 125;
//
// buttonFreigeben
//
this.buttonFreigeben.AutoSize = true;
this.buttonFreigeben.BackColor = System.Drawing.Color.Gray;
this.buttonFreigeben.CausesValidation = false;
this.buttonFreigeben.Dock = System.Windows.Forms.DockStyle.Right;
this.buttonFreigeben.Enabled = false;
this.buttonFreigeben.FlatAppearance.BorderSize = 0;
this.buttonFreigeben.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.buttonFreigeben.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.buttonFreigeben.ForeColor = System.Drawing.Color.Black;
this.buttonFreigeben.Location = new System.Drawing.Point(776, 0);
this.buttonFreigeben.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.buttonFreigeben.Name = "buttonFreigeben";
this.buttonFreigeben.Size = new System.Drawing.Size(200, 48);
this.buttonFreigeben.TabIndex = 38;
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);
//
// panelButtons
//
this.panelButtons.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.panelButtons.Controls.Add(this.buttonSpeichern);
this.panelButtons.Controls.Add(this.labelInvText);
this.panelButtons.Controls.Add(this.buttonFreigeben);
this.panelButtons.Dock = System.Windows.Forms.DockStyle.Bottom;
this.panelButtons.Location = new System.Drawing.Point(3, 488);
this.panelButtons.Name = "panelButtons";
this.panelButtons.Padding = new System.Windows.Forms.Padding(5, 0, 5, 0);
this.panelButtons.Size = new System.Drawing.Size(983, 50);
this.panelButtons.TabIndex = 43;
//
// buttonSpeichern
//
this.buttonSpeichern.Anchor = System.Windows.Forms.AnchorStyles.Right;
this.buttonSpeichern.BackColor = System.Drawing.Color.Gray;
this.buttonSpeichern.CausesValidation = false;
this.buttonSpeichern.Enabled = false;
this.buttonSpeichern.FlatAppearance.BorderSize = 0;
this.buttonSpeichern.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.buttonSpeichern.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.buttonSpeichern.ForeColor = System.Drawing.Color.Black;
this.buttonSpeichern.Location = new System.Drawing.Point(569, 0);
this.buttonSpeichern.Margin = new System.Windows.Forms.Padding(5, 2, 5, 2);
this.buttonSpeichern.MinimumSize = new System.Drawing.Size(150, 50);
this.buttonSpeichern.Name = "buttonSpeichern";
this.buttonSpeichern.Size = new System.Drawing.Size(200, 50);
this.buttonSpeichern.TabIndex = 40;
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);
//
// labelInvText
//
this.labelInvText.AutoSize = true;
this.labelInvText.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.labelInvText.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(1)))), ((int)(((byte)(53)))), ((int)(((byte)(101)))));
this.labelInvText.Location = new System.Drawing.Point(8, 12);
this.labelInvText.Name = "labelInvText";
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);
//
// UCInventur
//
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.AutoSize = true;
this.BackColor = System.Drawing.SystemColors.Control;
this.Controls.Add(this.panelButtons);
this.Controls.Add(this.groupBoxInventur);
this.Margin = new System.Windows.Forms.Padding(5);
this.Name = "UCInventur";
this.Padding = new System.Windows.Forms.Padding(3);
this.Size = new System.Drawing.Size(989, 541);
this.Load += new System.EventHandler(this.UCInventur_Load);
this.SizeChanged += new System.EventHandler(this.UCInventur_SizeChanged);
this.groupBoxInventur.ResumeLayout(false);
this.groupBoxInventur.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.pictureBoxClose)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBoxPlus)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.dGArtikel)).EndInit();
this.panelButtons.ResumeLayout(false);
this.panelButtons.PerformLayout();
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.GroupBox groupBoxInventur;
private System.Windows.Forms.DataGridView dGArtikel;
private System.Windows.Forms.Button buttonFreigeben;
private System.Windows.Forms.PictureBox pictureBoxPlus;
private System.Windows.Forms.DateTimePicker dTPInvDatum;
private System.Windows.Forms.PictureBox pictureBoxClose;
private System.Windows.Forms.Panel panelButtons;
private System.Windows.Forms.Label labelInvText;
private System.Windows.Forms.DataGridViewTextBoxColumn Column1;
private System.Windows.Forms.DataGridViewTextBoxColumn Column2;
private System.Windows.Forms.DataGridViewTextBoxColumn Column3;
private System.Windows.Forms.DataGridViewTextBoxColumn Column4;
private System.Windows.Forms.DataGridViewTextBoxColumn Column5;
private System.Windows.Forms.DataGridViewTextBoxColumn Column6;
private System.Windows.Forms.DataGridViewTextBoxColumn Column7;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Button buttonSpeichern;
private System.Windows.Forms.Label labelLieferDat;
private System.Windows.Forms.DateTimePicker dTPLieferDat;
private System.Windows.Forms.Label labelInvDat;
}
}

550
UserControls/UCInventur.cs Normal file
View File

@ -0,0 +1,550 @@
using DatenDB;
using Microsoft.VisualBasic;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Configuration;
using System.Data;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Linq.Expressions;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using static System.Windows.Forms.LinkLabel;
namespace Deckungsbeitrag.UserControls
{
public partial class UCInventur : UserControl
{
public FormAuftragDetail formAuftragDetail;
private object Sender;
private Auftrag auftrag;
private Benutzer user;
private Kunde kunde;
private List<KundeArtikel> artikelListe;
private int controlHeight;
private bool neueinventur = false;
private string[] lines;
private bool formLoading = false;
private bool _tosave = false;
public event Action SizeChangedForParent;
public event Action UCInventur_Update;
private Point uci_loc;
public bool tosave
{
get { return _tosave; }
set
{
_tosave = value;
if (_tosave)
{
buttonSpeichern.Enabled = true;
buttonSpeichern.BackColor = Color.FromArgb(0, 192, 0);
}
else
{
buttonSpeichern.Enabled = false;
buttonSpeichern.BackColor = Color.Gray;
}
}
}
public UCInventur()
{
formLoading = true;
InitializeComponent();
}
public UCInventur(Kunde kunde, Benutzer benutzer) : this()
{
this.kunde = kunde;
this.user = benutzer;
}
public UCInventur(string[] lines, Benutzer benutzer, object sender) : this()
{
this.lines = lines;
this.user = benutzer;
this.Sender = sender;
this.kunde = Kunde.GetKunde(lines[1].Split(':')[1].Trim(), null, null);
this.auftrag = Auftrag.GetAuftrag(int.Parse(lines[3].Split(':')[1].Trim()));
}
private void UCInventur_Load(object sender, EventArgs e)
{
if (this.user.Rolle == BenutzerRolle.Verwaltung || this.user.Rolle == BenutzerRolle.Admin) { this.buttonFreigeben.Enabled = true; this.buttonFreigeben.BackColor = Color.Turquoise; }
string kundeName = this.kunde.Suchtext == null ? this.kunde.KundeName : this.kunde.Suchtext;
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 = sender as FormAuftragDetail;
pictureBoxClose.Visible = pictureBoxClose.Enabled = false;
pictureBoxPlus.Visible = pictureBoxPlus.Enabled = false;
}
formLoading = false;
}
private void Load_DGV()
{
this.dGArtikel.AutoGenerateColumns = false;
artikelListe = KundeArtikel.GetInventurList(this.kunde.KundeID);
//this.dGArtikel.DataSource = artikelListe;
this.dGArtikel.AllowUserToAddRows = false;
this.dGArtikel.Rows.Clear();
if (lines != null)
{
string[] aufID = lines[3].Split(':');
if (aufID.Length > 1) auftrag = Auftrag.GetAuftrag(int.Parse(aufID[1]));
// Artikelbezeichnungn für SpaltenHeader = 8. Zeile
string[] headerCols = lines[7].Split(';'); // oder "," je nach Trennzeichen
// Spalten hinzufügen oder bestehende Spalte ignorieren
foreach (string header in headerCols)
{
string cleanHeader = header.Trim();
if (cleanHeader == "Status" || string.IsNullOrWhiteSpace(cleanHeader)) continue;
// prüfen, ob Spalte mit diesem Header schon existiert
if (FindColumnByHeaderText(dGArtikel, cleanHeader) == null)
{
DataGridViewTextBoxColumn col = new DataGridViewTextBoxColumn
{
HeaderText = cleanHeader,
Name = "col_" + cleanHeader.Replace("-", "_").Replace(" ", ""),
ReadOnly = false
};
dGArtikel.Columns.Add(col);
}
}
}
// Zeilen manuell aus artikelListe und CSV laden
int idx = 0;
int index = 8;
foreach (KundeArtikel ka in artikelListe)
{
var row = new DataGridViewRow();
row.CreateCells(dGArtikel);
row.Cells[0].Value = ka.ArtikelNR;
row.Cells[1].Value = ka.ArtikelName;
row.Cells[2].Value = ka.Stand;
row.Cells[3].Value = ka.Reklamation;
row.Cells[4].Value = ka.Fehlmenge;
row.Cells[6].Value = ka.Korrektur;
if (lines != null)
{
// CSVZahlen ab dt.Columns.Count
string line = lines[index];
string[] fields = line.Split(';');
for (int j = 0; j < fields.Length; j++)
{
if (j != 0)
{
if (string.IsNullOrWhiteSpace(fields[j])) continue;
if (j == 6) row.Cells[5].Value = fields[6];
row.Cells[j - 1].Value = fields[j];
}
}
index++;
idx++;
}
dGArtikel.Rows.Add(row);
}
dGArtikel_DataBindingComplete(this.dGArtikel, null);
this.dGArtikel.Refresh();
}
private DataGridViewColumn FindColumnByHeaderText(DataGridView dgv, string headerText)
{
foreach (DataGridViewColumn col in dgv.Columns)
{
if (string.Equals(col.HeaderText, headerText, StringComparison.OrdinalIgnoreCase))
{
return col;
}
}
return null;
}
/// <summary>
/// Bei Click wird neue Spalte eingefügt. Titel wird durch Inputfeld erfasst und DisplayIndex ist Columns - 1
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
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;
DataGridViewTextBoxColumn column = new DataGridViewTextBoxColumn()
{
HeaderText = text,
ReadOnly = false,
};
this.dGArtikel.Columns.Add(column);
DataGridView_GetNewSize(this.dGArtikel);
}
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)
{
if (this.auftrag == null) return;
this.auftrag.Liefertag = dTPLieferDat.Value;
foreach (DataGridViewRow row in this.dGArtikel.Rows)
{
// KundeArtikel updaten. Neuen Stand eintragen, Reklamation & Fehlmenge auf Null setzten und Korrektur als InventruAusgleich speichern.
KundeArtikel art = (KundeArtikel)artikelListe[row.Index];
art.Reklamation = 0;
art.Fehlmenge = 0;
art.StandBearbeitet = this.user.BenutzerName + " am " + DateTime.Now;
art.FehlmengeBearbeitet = this.user.BenutzerName + " am " + DateTime.Now;
art.KorrekturBearbeitet = this.user.BenutzerName + " am " + DateTime.Now;
art.Stand = int.Parse(row.Cells[2].Value.ToString());
art.Korrektur = int.Parse(row.Cells[6].Value.ToString());
art.Save();
// 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;
auf.Save();
}
}
auftrag.Status = AuftragStatus.Herrichten;
auftrag.Save();
GetInventurCSV(sender, auftrag.AuftragID);
UCInventur_Update();
}
/// <summary>
/// DataGridView wird geladen.
/// Wenn Inventurdatei vorhanden werden Spalten hinzugefügt und Zeilen aufgefüllt.
/// </summary>
/// <param name="sender"></param>
private void GetInventurCSV(object sender, int? auftragID)
{
Button btn = (Button)sender;
Kunde _knd = this.kunde;
Benutzer _user = this.user;
List<KundeArtikel> _artikelliste = this.artikelListe;
string status = string.Empty;
string savePath = Path.Combine(ConfigurationManager.AppSettings["DateiSavePfad"], "Listen\\Inventuren") ?? "Inventuren";
// Inventur Status Warten wenn noch Zahlen fehlen und Herrichten wenn alle vorhanden.
if (btn.Text.ToString() == "Speichern") status = "Warten";
else
{
status = "Herrichten";
string delPath = Path.Combine(savePath, $"Warten-{auftragID.ToString()}-{_knd.KundeNummer}.csv");
if (File.Exists(delPath)) File.Delete(delPath);
}
string artikel = string.Empty;
string cols = string.Empty;
string fileName = $"{status}-{auftragID.ToString()}-{_knd.KundeNummer}.csv"; // Immer gleiche Datei!
string csvPath;
csvPath = Path.Combine(savePath, fileName);
// Prüfen ob Header schon existiert
bool headerExists = File.Exists(csvPath);
// Artikelbezeichnungen in string convertieren
foreach (KundeArtikel art in _artikelliste) artikel += art.ArtikelName + ";";
foreach (var col in dGArtikel.Columns.Cast<DataGridViewColumn>().Where(c => c.Visible).OrderBy(c => c.DisplayIndex))
{
if (col.Visible) cols += col.HeaderText + ";";
}
// Prüfen ob Inventur neu ist
if (headerExists) neueinventur = NeueInventur(csvPath, cols);
// Nur Header bei NEUER Datei
var csv = new StringBuilder();
if (!headerExists || !neueinventur)
{
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();
csv.AppendLine(new string('=', 30));
csv.AppendLine($"Status;{cols}");
//File.WriteAllText(csvPath, csv.ToString(), Encoding.UTF8);
}
// NEUE Artikel ANHÄNGEN (ohne Header)
var appendCsv = new StringBuilder();
foreach (DataGridViewRow row in this.dGArtikel.Rows)
{
// Nur sichtbare Spalten auslesen
var values = new List<string>();
for (int i = 0; i < row.Cells.Count; i++)
{
if (row.Cells[i].Visible)
{
if (i == 0)
{
if (artikelListe[row.Index].Korrektur == 0) values.Add("Erledigt");
else values.Add("Offen");
}
values.Add(row.Cells[i].Value?.ToString() ?? "0");
}
}
// Eine Zeile pro Row, mit allen Werten getrennt durch ";"
appendCsv.AppendLine(string.Join(";", values));
}
// ANHÄNGEN statt überschreiben
if (neueinventur)
{
File.AppendAllText(csvPath, appendCsv.ToString(), Encoding.UTF8);
}
else
{
File.WriteAllText(csvPath, csv.ToString(), Encoding.UTF8);
File.AppendAllText(csvPath, appendCsv.ToString(), Encoding.UTF8);
}
}
/// <summary>
/// Nachdem die DataGridView fertig ist werden Spalten entfernt, die Größe neu berechnet und auf GroupBox und UserControl übertragen.
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void dGArtikel_DataBindingComplete(object sender, DataGridViewBindingCompleteEventArgs e)
{
// Alle Spaltenbreiten an den Zellinhalt anpassen
this.dGArtikel.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.AllCells;
// Alle Zeilenhöhen an Zellinhalt anpassen
this.dGArtikel.AutoSizeRowsMode = DataGridViewAutoSizeRowsMode.AllCells;
DataGridView_GetNewSize(this.dGArtikel);
}
/// <summary>
/// Die Größe von GroupBox und UserControl wird an die aktuelle und neue Größe der DataGridView angepasst.
/// </summary>
/// <param name="dgv"></param>
private void DataGridView_GetNewSize(DataGridView dgv)
{
int totalWidth = dgv.RowHeadersVisible ? dgv.RowHeadersWidth : 0;
foreach (DataGridViewColumn col in dgv.Columns)
{
if (col.Visible) totalWidth += col.Width;
}
int totalHeight = dgv.ColumnHeadersVisible ? dgv.ColumnHeadersHeight : 0;
foreach (DataGridViewRow row in dGArtikel.Rows)
{
if (row.Visible) totalHeight += row.Height;
}
totalHeight += dgv.ColumnHeadersHeight;
dgv.ClientSize = new Size(totalWidth, totalHeight);
this.groupBoxInventur.ClientSize = new Size(dgv.ClientSize.Width, dgv.Height + pictureBoxPlus.Bottom + 10);
this.ClientSize = new Size(this.groupBoxInventur.ClientSize.Width + 10, this.groupBoxInventur.Height + panelButtons.Height + 10);
}
/// <summary>
/// Größe des UserControls wird verringert.
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
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 (groupBoxInventur.Visible)
{
this.buttonFreigeben.Visible = false;
this.buttonSpeichern.Visible = false;
this.labelInvText.Text = groupBoxInventur.Text;
this.groupBoxInventur.Visible = false;
this.labelInvText.Visible = true;
this.Height = panelButtons.Height + 6;
this.Width = labelInvText.Right + 10;
this.Location = uci_loc;
}
}
private bool NeueInventur(string csvPath, string cols)
{
DateTime? letzteInventur = null;
bool result = false;
int lineNumber = 0;
string[] lines = new string[lineNumber];
foreach (string line in File.ReadLines(csvPath, Encoding.UTF8))
{
Array.Resize<string>(ref lines, lineNumber + 1);
lines[lineNumber] = line;
lineNumber++;
if (lineNumber == 5)
{
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 (lineNumber == 8)
{
lines[lineNumber - 1] = cols;
}
}
File.WriteAllLines(csvPath, lines, Encoding.UTF8);
return result;
}
/// <summary>
/// Location der Controls im UserControl wird berechnet.
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
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.Width - pictureBoxClose.Width + this.Margin.All, 0);
this.pictureBoxPlus.Location = new Point(this.groupBoxInventur.Width - pictureBoxPlus.Width - this.groupBoxInventur.Margin.Right - this.Margin.Right, 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));
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.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);
if (Sender is FormAuftragDetail) SizeChangedForParent?.Invoke();
}
/// <summary>
/// Größe des UserControls wird wiederhergestellt.
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void labelInvText_Click(object sender, EventArgs e)
{
if (!groupBoxInventur.Visible)
{
uci_loc = this.Location;
DataGridView_GetNewSize(this.dGArtikel);
this.buttonFreigeben.Visible = true;
this.buttonSpeichern.Visible = true;
groupBoxInventur.Visible = true;
this.labelInvText.Visible = false;
}
}
private void dGArtikel_Leave(object sender, EventArgs e)
{
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))
{
var row = dgv.Rows[e.RowIndex];
sollstand = int.Parse(row.Cells[2].Value.ToString());
fehlmenge = int.Parse(row.Cells[3].Value.ToString()) + int.Parse(row.Cells[4].Value.ToString());
for (int j = 7; j < row.Cells.Count; j++)
{
if (row.Cells[j].Value == null) row.Cells[j].Value = 0;
iststand += int.TryParse(row.Cells[j].Value.ToString(), out int r) ? r : 0;
}
if (e.ColumnIndex >= 7)
{
row.Cells[5].Value = sollstand - fehlmenge - iststand;
row.Cells[6].Value = artikelListe[e.RowIndex].Korrektur = sollstand - iststand;
}
if (e.ColumnIndex == 2)
{
row.Cells[6].Value = artikelListe[e.RowIndex].Korrektur = sollstand - iststand;
}
}
else return;
dgv.Refresh();
}
private void dGArtikel_CellValueChanged(object sender, DataGridViewCellEventArgs e)
{
if (!formLoading) { tosave = true; }
else tosave = false;
}
private void buttonSpeichern_Click(object sender, EventArgs e)
{
this.dGArtikel.EndEdit(); // beendet aktuelle ZellBearbeitung
if (tosave)
{
if (auftrag == null)
{
auftrag = new Auftrag()
{
KundeID = (int)this.kunde.KundeID,
Liefertag = this.dTPLieferDat.Value,
Erstellt = DateTime.Now,
ErstelltVon = (int)this.user.BenutzerID,
Status = AuftragStatus.Warten,
Container = 0,
ContainerClean = 0,
Typ = AuftragTyp.Inventur,
};
auftrag.Save();
}
GetInventurCSV(sender, auftrag.AuftragID);
}
this.dTPLieferDat.Focus();
tosave = false;
}
private void dGArtikel_CellMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e)
{
DataGridView dgv = (DataGridView)sender;
if (e.ColumnIndex == 2)
{
if (MessageBox.Show("Möchtest du den Stand wirklich verändern?", "FRAGE", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.No) return;
else
{
dgv.Columns[e.ColumnIndex].ReadOnly = false;
}
}
}
}
}
//TODO: CLick auf Inventur freigeben Dateiname von "Warten" auf "Herrichten" ändern.
//TODO: Inventur freigeben nur für Admin oder Verwaltung.
//TODO: Inventur für Expedit zugänglich machen.

View File

@ -0,0 +1,176 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="pictureBoxClose.ErrorImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
wQAADsEBuJFr7QAAALtJREFUOE/tkTEKAjEQRdNbCJ7Eq+h2gngd9QwWyp5it/IoabRYQaKwvx35iyOT
mE1p5cAnw8z/j5A4EXFUWgDO3f0pFPt0/8mVANP1Sag/4FcAAHMAnucYwHoiAAd9j7DctXLpwuNtjACc
cVftW6FXIQrwi20jrjrIbFMrxBuA54w7eujlLLqBNfC83sIQptjbnd7y6w1SyGR1HDQWjgD6SBZiZcPZ
X9DKQdJwEZBCcmFWEcBSSC7M0twLBeEEF8s9ZFEAAAAASUVORK5CYII=
</value>
</data>
<data name="pictureBoxClose.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
wQAADsEBuJFr7QAAAKxJREFUOE9j+P//PwM2/O3bN4Nv3759gGIDdHkYxhBA1hwzYd9/EMZnCIYAsmaG
4DlgjM8QgpoJGUKUZnyG4NSMj41sCE7N3759g/NBbCzyYENABky4/uj1f77YheiSKAYgWwJSC9ID0gvz
woIT15/+z551GG4yFgPALgWpAakF6UEPxAXIfkM3ADmsYJpRDIAqUEBiYxiArgbDADTDsBqAjjEEhpkB
yBhdHoYBkN/zh5bcpfIAAAAASUVORK5CYII=
</value>
</data>
<data name="pictureBoxClose.InitialImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
wQAADsEBuJFr7QAAAKxJREFUOE9j+P//PwM2/O3bN4Nv3759gGIDdHkYxhBA1hwzYd9/EMZnCIYAsmaG
4DlgjM8QgpoJGUKUZnyG4NSMj41sCE7N3759g/NBbCzyYENABky4/uj1f77YheiSKAYgWwJSC9ID0gvz
woIT15/+z551GG4yFgPALgWpAakF6UEPxAXIfkM3ADmsYJpRDIAqUEBiYxiArgbDADTDsBqAjjEEhpkB
yBhdHoYBkN/zh5bcpfIAAAAASUVORK5CYII=
</value>
</data>
<data name="pictureBoxPlus.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
vAAADrwBlbxySQAAAFZJREFUOE+9kEEKACEMxHxb//+eXruwbGEwHhwKK+QSaqSuqloTIFwgXCBcKL6T
maW0xzyEBCLixQroqxpo9vljoC/u/BcYrTD+RA0o1wEXCBcIFwiXB07Nzd/k/DvRAAAAAElFTkSuQmCC
</value>
</data>
<metadata name="Column1.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column2.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column3.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column4.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column5.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column6.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column7.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
</root>

View File

@ -419,6 +419,12 @@
<Compile Include="UserControls\UCFeedback.Designer.cs"> <Compile Include="UserControls\UCFeedback.Designer.cs">
<DependentUpon>UCFeedback.cs</DependentUpon> <DependentUpon>UCFeedback.cs</DependentUpon>
</Compile> </Compile>
<Compile Include="UserControls\UCInventur.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Include="UserControls\UCInventur.Designer.cs">
<DependentUpon>UCInventur.cs</DependentUpon>
</Compile>
<Compile Include="UserControls\UCKunde.cs"> <Compile Include="UserControls\UCKunde.cs">
<SubType>UserControl</SubType> <SubType>UserControl</SubType>
</Compile> </Compile>
@ -563,6 +569,9 @@
<EmbeddedResource Include="UserControls\UCFeedback.resx"> <EmbeddedResource Include="UserControls\UCFeedback.resx">
<DependentUpon>UCFeedback.cs</DependentUpon> <DependentUpon>UCFeedback.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>
<EmbeddedResource Include="UserControls\UCInventur.resx">
<DependentUpon>UCInventur.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="UserControls\UCKunde.resx"> <EmbeddedResource Include="UserControls\UCKunde.resx">
<DependentUpon>UCKunde.cs</DependentUpon> <DependentUpon>UCKunde.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>

View File

@ -4,7 +4,7 @@ NEUIGKEITEN - Version 1.0.8.3
Build-Info: Build-Info:
- Build-Typ: Release Build - Build-Typ: Release Build
- Erledigte TODOs: 15 - Erledigte TODOs: 16
- Offene TODOs: 46 - Offene TODOs: 46
- Install-Reminders: 4 - Install-Reminders: 4
- Changes: 15 - Changes: 15
@ -34,7 +34,7 @@ Build-Info:
- ✨ Winter und Sommer wird getrennt geändert und gespeichert. [UCTabPageLKW.cs] - ✨ Winter und Sommer wird getrennt geändert und gespeichert. [UCTabPageLKW.cs]
=== ✅ ERLEDIGTE TODOs (15) === === ✅ ERLEDIGTE TODOs (16) ===
- ✅ : Auftrag über FormListe holen und daraus den Kunden für Fehlmenge holen. [FormFehlmengeCount.cs] - ✅ : Auftrag über FormListe holen und daraus den Kunden für Fehlmenge holen. [FormFehlmengeCount.cs]
- ✅ : Auftragliste bei Fahrer anzeigen wenn Login. [FormMain.cs] - ✅ : Auftragliste bei Fahrer anzeigen wenn Login. [FormMain.cs]
- ✅ : Bei Transport wir ein Fach mit Aktuellem Auftrag erstellt. Das Alte wird bei Transport gespeichert. [FormAusschlager.cs] - ✅ : Bei Transport wir ein Fach mit Aktuellem Auftrag erstellt. Das Alte wird bei Transport gespeichert. [FormAusschlager.cs]
@ -42,6 +42,7 @@ Build-Info:
- ✅ : Container schmutzig bearbeitbar machen [FormAuftragDetail.cs] - ✅ : Container schmutzig bearbeitbar machen [FormAuftragDetail.cs]
- ✅ : Feedback Button hinzufügen [FormAuftragDetail.cs] - ✅ : Feedback Button hinzufügen [FormAuftragDetail.cs]
- ✅ : HILFE zeigt OnBoarding. [FormMain.cs] - ✅ : HILFE zeigt OnBoarding. [FormMain.cs]
- ✅ : Korrigiere Bestand: Wenn -Zahl dann Stand - Zahl. [FormAuftragDetail.cs]
- ✅ : Logik überlegen wie ein bearbeiteter Auftrag nicht doppelt gewählt werden kann. (Abteilungen zu Auftrag hinzufügen und bei Ausschlager Druck definieren?) [FormFehlmengeCount.cs] - ✅ : Logik überlegen wie ein bearbeiteter Auftrag nicht doppelt gewählt werden kann. (Abteilungen zu Auftrag hinzufügen und bei Ausschlager Druck definieren?) [FormFehlmengeCount.cs]
- ✅ : Mit AddFehler können Fehler aus try/chatch in Obsidian eingefügt werden. (Timestamp, PC-Name, Ex-Message) [Program.cs] - ✅ : Mit AddFehler können Fehler aus try/chatch in Obsidian eingefügt werden. (Timestamp, PC-Name, Ex-Message) [Program.cs]
- ✅ : Neue Aufgabe Screen erstellen. [FormNeueAufgabe.cs] - ✅ : Neue Aufgabe Screen erstellen. [FormNeueAufgabe.cs]
@ -62,19 +63,21 @@ Build-Info:
- 🔄 Auftragauswahl aufrufen statt NeuerAuftrag. (Wenn Fahrer Aufträge erstellen) [FormWSVerfolgung.cs] - 🔄 Auftragauswahl aufrufen statt NeuerAuftrag. (Wenn Fahrer Aufträge erstellen) [FormWSVerfolgung.cs]
- 🔄 Aufträge zusammenführen wenn gleicher Kunde und Liefertag. [FormNeuerAuftrag.cs] - 🔄 Aufträge zusammenführen wenn gleicher Kunde und Liefertag. [FormNeuerAuftrag.cs]
- 🔄 Ausprobieren ob die Ausrichtung jetzt richtig ist. Sowohl beim ersten wie auch zweiten Mal. [Funktionen.cs] - 🔄 Ausprobieren ob die Ausrichtung jetzt richtig ist. Sowohl beim ersten wie auch zweiten Mal. [Funktionen.cs]
- 🔄 Bestand von allen Artikeln speichern und für Druck vorbereiten. [FormAuftragDetail.cs]
- 🔄 CLick auf Inventur freigeben Dateiname von "Warten" auf "Herrichten" ändern. [UCInventur.cs]
- 🔄 Dateinamen aus Tikos anschauen. Eventuell Datum von letztem Import über Dateiname wählen? [FormMain.cs] - 🔄 Dateinamen aus Tikos anschauen. Eventuell Datum von letztem Import über Dateiname wählen? [FormMain.cs]
- 🔄 Deaktivieren wenn SPS funktioniert. Transport wird simuliert. [FormWSVerfolgung.cs] - 🔄 Deaktivieren wenn SPS funktioniert. Transport wird simuliert. [FormWSVerfolgung.cs]
- 🔄 Design des Controls anpassen. Eventuell im Designer erstellen. [UCKunde.cs] - 🔄 Design des Controls anpassen. Eventuell im Designer erstellen. [UCKunde.cs]
- 🔄 Eingabemöglichkeit von Tour Start und Ende muss erledigt werden. [Tour.cs] - 🔄 Eingabemöglichkeit von Tour Start und Ende muss erledigt werden. [Tour.cs]
- 🔄 Erstellen von SonderAuftrag und Drucken von Etikett testen. [FormAuftragDetail.cs] - 🔄 Erstellen von SonderAuftrag und Drucken von Etikett testen. [FormAuftragDetail.cs]
- 🔄 Eventuell auch andere ListViews einbinden? [Funktionen.cs] - 🔄 Eventuell auch andere ListViews einbinden? [Funktionen.cs]
- 🔄 Form AuftragDetail muss überarbeitet werden. [FormNeuerAuftrag.cs] - 🔄 Eventuell die Zahlen in CSV speichern und von dort für Druck verwenden?! [FormAuftragDetail.cs]
- 🔄 Funktioniert mehrere KundenControls auf einmal DragDrop? [FormTourenplanung.cs] - 🔄 Funktioniert mehrere KundenControls auf einmal DragDrop? [FormTourenplanung.cs]
- 🔄 Gesamt soll immer 100% sein. [Funktionen.cs] - 🔄 Gesamt soll immer 100% sein. [Funktionen.cs]
- 🔄 Grund immer abfragen oder nur wenn Fahrer die Zuteilung ändert? [FormNeuerAuftrag.cs]
- 🔄 Hier Settings speichern mit UserSettingsManager Klasse. [FormEinstellung.cs] - 🔄 Hier Settings speichern mit UserSettingsManager Klasse. [FormEinstellung.cs]
- 🔄 Inventur freigeben nur für Admin oder Verwaltung. [UCInventur.cs]
- 🔄 Inventur für Expedit zugänglich machen. [UCInventur.cs]
- 🔄 JSON nach angemeldeten Fahrer durchsuchen und Kundenliste des aktuellen Wochentag anzeigen. [FormMain.cs] - 🔄 JSON nach angemeldeten Fahrer durchsuchen und Kundenliste des aktuellen Wochentag anzeigen. [FormMain.cs]
- 🔄 Korrigiere Bestand: Wenn -Zahl dann Stand - Zahl. [FormAuftragDetail.cs]
- 🔄 Kundenanzahl bei Tourenliste erstellen vergleichen und anpassen. [Tour.cs] - 🔄 Kundenanzahl bei Tourenliste erstellen vergleichen und anpassen. [Tour.cs]
- 🔄 Liste vorher/nachher durchdenken [FormAuftragDetail.cs] - 🔄 Liste vorher/nachher durchdenken [FormAuftragDetail.cs]
- 🔄 Mit AddFehler in Obsidian eine Fehlerliste betreiben. (Wichtige Infos feststellen und bereitstellen) [Program.cs] - 🔄 Mit AddFehler in Obsidian eine Fehlerliste betreiben. (Wichtige Infos feststellen und bereitstellen) [Program.cs]
@ -87,10 +90,8 @@ Build-Info:
- 🔄 Settings hier ändern auf UserSettingsManager Klasse. [FormEinstellung.cs] - 🔄 Settings hier ändern auf UserSettingsManager Klasse. [FormEinstellung.cs]
- 🔄 Soll hier ebenfalls der nächste Liefertag laut Rhythmus vorgeschlagen werden? [FormExpedit.cs] - 🔄 Soll hier ebenfalls der nächste Liefertag laut Rhythmus vorgeschlagen werden? [FormExpedit.cs]
- 🔄 Speichern etc. durchgehen und adaptieren [FormAuftragDetail.cs] - 🔄 Speichern etc. durchgehen und adaptieren [FormAuftragDetail.cs]
- 🔄 Standerhöhung funktioniert soweit Standverringerung soll nur auf Stand gehen [FormAuftragDetail.cs]
- 🔄 Standverminderung und Standerhöhung mit einem Aufruf (Standveränderung?) Bei Verminderung -Zahlen sonst Plus. [FormAuftragDetail.cs] - 🔄 Standverminderung und Standerhöhung mit einem Aufruf (Standveränderung?) Bei Verminderung -Zahlen sonst Plus. [FormAuftragDetail.cs]
- 🔄 TourenListe Entwurf muss überarbeitet werden. [FormNeuerAuftrag.cs] - 🔄 TourenListe Entwurf muss überarbeitet werden. [FormNeuerAuftrag.cs]
- 🔄 Umbau in Switch. [FormAufleger.cs]
- 🔄 Umbau in Switch. [FormWSVerfolgung.cs] - 🔄 Umbau in Switch. [FormWSVerfolgung.cs]
- 🔄 UserSetting Properties eintragen und in EinstellungsScreen abrufen. [UserSettingsManager.cs] - 🔄 UserSetting Properties eintragen und in EinstellungsScreen abrufen. [UserSettingsManager.cs]
- 🔄 Warum der falsche Path? Immer mit \\ [UCFeedback.cs] - 🔄 Warum der falsche Path? Immer mit \\ [UCFeedback.cs]
@ -100,5 +101,5 @@ Build-Info:
- 🔄 Wenn Nachwäsche oder Müllwäsche alle Artikel anzeigen. [FormFehlmengeCount.cs] - 🔄 Wenn Nachwäsche oder Müllwäsche alle Artikel anzeigen. [FormFehlmengeCount.cs]
- 🔄 Zuweisung zu Fahrer muss geklärt werden. [Funktionen.cs] - 🔄 Zuweisung zu Fahrer muss geklärt werden. [Funktionen.cs]
Installation: 24.03.2026 18:31 Installation: 30.03.2026 18:41
===================================== =====================================