From 7956d450d5534565cb8f2e15e72d2bd10b7ad15c Mon Sep 17 00:00:00 2001 From: Kilian Wirl Date: Mon, 15 Dec 2025 13:25:14 +0100 Subject: [PATCH] =?UTF-8?q?KundeAufgabe=20bei=20Fehlercount=20melden,=20Fo?= =?UTF-8?q?rmMain=20Resize=20unterdr=C3=BCcken=20(TouchTastatur),=20FormLi?= =?UTF-8?q?ste=20Best=C3=A4tigen=20Kunde,=20Anmerkung=20implementieren,=20?= =?UTF-8?q?Ansicht=20Fehlmenge=20und=20Expedit=20f=C3=BCr=20Anmerkung,=20K?= =?UTF-8?q?undeAufgabe=20ist=20mit=20RechtClick=20auf=20Spalte=20als=20erl?= =?UTF-8?q?edigt=20zu=20markieren.=20Anzahl=20Aufgaben=20Auftr=C3=A4ge=20i?= =?UTF-8?q?mplementiert.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AA-Forms/FormAufgabeVW.Designer.cs | 34 +- AA-Forms/FormAufgabeVW.cs | 8 +- AA-Forms/FormAufgabeVW.resx | 4 +- AA-Forms/FormAusschlager.cs | 7 +- AA-Forms/FormBenutzerVW.Designer.cs | 2 +- AA-Forms/FormExpedit.Designer.cs | 63 ++-- AA-Forms/FormExpedit.cs | 179 +++++----- AA-Forms/FormFehlmengeCount.Designer.cs | 36 ++- AA-Forms/FormFehlmengeCount.cs | 19 ++ AA-Forms/FormKundeVW.cs | 94 +++++- AA-Forms/FormKundeVW.designer.cs | 304 +++++++++-------- AA-Forms/FormListe.cs | 6 +- AA-Forms/FormMain.Designer.cs | 197 ++++++----- AA-Forms/FormMain.cs | 21 +- AA-Forms/FormNeueAufgabe.Designer.cs | 413 +++++++++++------------- AA-Forms/FormNeueAufgabe.cs | 88 +++-- AA-Forms/FormNeueAufgabe.resx | 111 ++++++- AA-Klassen/Aufgabe.cs | 2 + AA-Klassen/Auftrag.cs | 18 +- AA-Klassen/Kunde.cs | 28 +- Program.cs | 2 +- Verwaltung.csproj | 7 +- Verwaltung_ReadMe.txt | 74 +++++ 23 files changed, 1070 insertions(+), 647 deletions(-) create mode 100644 Verwaltung_ReadMe.txt diff --git a/AA-Forms/FormAufgabeVW.Designer.cs b/AA-Forms/FormAufgabeVW.Designer.cs index 3b92f16..53a740c 100644 --- a/AA-Forms/FormAufgabeVW.Designer.cs +++ b/AA-Forms/FormAufgabeVW.Designer.cs @@ -40,7 +40,7 @@ this.textBoxBezeichnung = new System.Windows.Forms.TextBox(); this.buttonAbbrechenAufgabe = new System.Windows.Forms.Button(); this.buttonSpeichernAufgabe = new System.Windows.Forms.Button(); - this.buttonNewUser = new System.Windows.Forms.Button(); + this.buttonNeueAufgabe = new System.Windows.Forms.Button(); this.groupBoxNeueAufgabe.SuspendLayout(); this.SuspendLayout(); // @@ -197,21 +197,21 @@ this.buttonSpeichernAufgabe.UseVisualStyleBackColor = false; this.buttonSpeichernAufgabe.Click += new System.EventHandler(this.buttonSpeichern_Click); // - // buttonNewUser + // buttonNeueAufgabe // - this.buttonNewUser.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); - this.buttonNewUser.BackColor = System.Drawing.Color.Yellow; - this.buttonNewUser.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.buttonNewUser.Image = ((System.Drawing.Image)(resources.GetObject("buttonNewUser.Image"))); - this.buttonNewUser.Location = new System.Drawing.Point(11, 430); - this.buttonNewUser.Margin = new System.Windows.Forms.Padding(2); - this.buttonNewUser.Name = "buttonNewUser"; - this.buttonNewUser.Size = new System.Drawing.Size(135, 32); - this.buttonNewUser.TabIndex = 46; - this.buttonNewUser.Text = "Neue Aufgabe"; - this.buttonNewUser.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText; - this.buttonNewUser.UseVisualStyleBackColor = false; - this.buttonNewUser.Click += new System.EventHandler(this.buttonNewUser_Click); + this.buttonNeueAufgabe.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); + this.buttonNeueAufgabe.BackColor = System.Drawing.Color.Yellow; + this.buttonNeueAufgabe.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.buttonNeueAufgabe.Image = ((System.Drawing.Image)(resources.GetObject("buttonNeueAufgabe.Image"))); + this.buttonNeueAufgabe.Location = new System.Drawing.Point(11, 430); + this.buttonNeueAufgabe.Margin = new System.Windows.Forms.Padding(2); + this.buttonNeueAufgabe.Name = "buttonNeueAufgabe"; + this.buttonNeueAufgabe.Size = new System.Drawing.Size(135, 32); + this.buttonNeueAufgabe.TabIndex = 46; + this.buttonNeueAufgabe.Text = "Neue Aufgabe"; + this.buttonNeueAufgabe.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText; + this.buttonNeueAufgabe.UseVisualStyleBackColor = false; + this.buttonNeueAufgabe.Click += new System.EventHandler(this.buttonNeueAufgabe_Click); // // FormAufgabeVW // @@ -219,7 +219,7 @@ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(1)))), ((int)(((byte)(53)))), ((int)(((byte)(101))))); this.ClientSize = new System.Drawing.Size(800, 473); - this.Controls.Add(this.buttonNewUser); + this.Controls.Add(this.buttonNeueAufgabe); this.Controls.Add(this.groupBoxNeueAufgabe); this.Controls.Add(this.listViewAufgabeVW); this.Controls.Add(this.buttonAbbrechenAufgabe); @@ -247,6 +247,6 @@ private System.Windows.Forms.Label label1; private System.Windows.Forms.TextBox textBoxBeschreibung; private System.Windows.Forms.TextBox textBoxBezeichnung; - private System.Windows.Forms.Button buttonNewUser; + private System.Windows.Forms.Button buttonNeueAufgabe; } } \ No newline at end of file diff --git a/AA-Forms/FormAufgabeVW.cs b/AA-Forms/FormAufgabeVW.cs index 6a93f3a..4b0a1b1 100644 --- a/AA-Forms/FormAufgabeVW.cs +++ b/AA-Forms/FormAufgabeVW.cs @@ -91,7 +91,7 @@ namespace Deckungsbeitrag private void buttonNewUser_Click(object sender, EventArgs e) { GroupBox_Visibility_State(this.groupBoxNeueAufgabe); - this.buttonNewUser.BackColor = Color.Gray; + this.buttonNeueAufgabe.BackColor = Color.Gray; this.groupBoxNeueAufgabe.Text = "Neue Aufgabe"; Load_comboBoxAufgabeKat(); Clear_controls(); @@ -110,5 +110,11 @@ namespace Deckungsbeitrag { this.Close(); } + + private void buttonNeueAufgabe_Click(object sender, EventArgs e) + { + FormNeueAufgabe neueAufgabe = new FormNeueAufgabe(); + neueAufgabe.ShowDialog(); + } } } diff --git a/AA-Forms/FormAufgabeVW.resx b/AA-Forms/FormAufgabeVW.resx index eed575b..5a21ee9 100644 --- a/AA-Forms/FormAufgabeVW.resx +++ b/AA-Forms/FormAufgabeVW.resx @@ -135,10 +135,10 @@ 0cRiAGlM6tRr9T1CAAAAAElFTkSuQmCC - + iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO - wQAADsEBuJFr7QAAALpJREFUOE+dk7ERwyAMRT1CRsgIKVKkpmcAtklFkSYLsAVDUaoBUTqnnPEJWXZM + wAAADsABataJCQAAALpJREFUOE+dk7ERwyAMRT1CRsgIKVKkpmcAtklFkSYLsAVDUaoBUTqnnPEJWXZM /t1vEE8fwTFNixBx5qY1ALggIsia3Lc2eLzuX7dCKeUZY5yNMRt772kfdMm8QbNzbhfOOd+6ZGmqHcLy 6NKywQaWl6eNcAhzyQZ89gVW3TXQkve8voIULWo3r8HqOPIkIYTzMFet9ZpSAmvtOExCxDdPH4LpD/D0 IZhEf6ClD8MkAij9L5jEXuEn/AEyPeZVqsLjAAAAAABJRU5ErkJggg== diff --git a/AA-Forms/FormAusschlager.cs b/AA-Forms/FormAusschlager.cs index c7714aa..6e53507 100644 --- a/AA-Forms/FormAusschlager.cs +++ b/AA-Forms/FormAusschlager.cs @@ -296,7 +296,6 @@ namespace Deckungsbeitrag return base.ProcessDialogKey(keyData); } - private void Open_NeuerAuftrag() { FormNeuerAuftrag neuerAuftrag = new FormNeuerAuftrag(this.Userid); @@ -306,10 +305,8 @@ namespace Deckungsbeitrag Fach_Laden(); } } - //TODO: Wenn NeuerAuftrag gewählt wie gehts weiter? - //DONE: Bei Transport wir ein Fach mit Aktuellem Auftrag erstellt. Das Alte wird bei Transport gespeichert. - //DONE: Wenn NeuerAuftrag gewählt Fach ändern nicht vergessen. - } } +//DONE: Bei Transport wir ein Fach mit Aktuellem Auftrag erstellt. Das Alte wird bei Transport gespeichert. +//DONE: Wenn NeuerAuftrag gewählt Fach ändern nicht vergessen. diff --git a/AA-Forms/FormBenutzerVW.Designer.cs b/AA-Forms/FormBenutzerVW.Designer.cs index 1848eda..f36ecc7 100644 --- a/AA-Forms/FormBenutzerVW.Designer.cs +++ b/AA-Forms/FormBenutzerVW.Designer.cs @@ -131,7 +131,7 @@ this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.Name = "FormBenutzerVW"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; - this.Text = "Benutzerverwaltung"; + this.Text = "BENUTZERVERWALTUNG"; this.Load += new System.EventHandler(this.FormBenutzerVW_Load); ((System.ComponentModel.ISupportInitialize)(this.objectListViewBenutzer)).EndInit(); this.ResumeLayout(false); diff --git a/AA-Forms/FormExpedit.Designer.cs b/AA-Forms/FormExpedit.Designer.cs index 119eb50..a7f0e21 100644 --- a/AA-Forms/FormExpedit.Designer.cs +++ b/AA-Forms/FormExpedit.Designer.cs @@ -29,11 +29,10 @@ private void InitializeComponent() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormExpedit)); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle(); this.label10 = new System.Windows.Forms.Label(); this.buttonDrucken = new System.Windows.Forms.Button(); - this.buttonAbbrechen = new System.Windows.Forms.Button(); this.groupBoxEtikett = new System.Windows.Forms.GroupBox(); this.textBoxCont = new System.Windows.Forms.TextBox(); this.label5 = new System.Windows.Forms.Label(); @@ -113,22 +112,6 @@ this.buttonDrucken.UseVisualStyleBackColor = false; this.buttonDrucken.Click += new System.EventHandler(this.buttonDrucken_Click); // - // buttonAbbrechen - // - 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.FlatAppearance.BorderSize = 0; - 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.Location = new System.Drawing.Point(1272, 726); - this.buttonAbbrechen.Margin = new System.Windows.Forms.Padding(2); - this.buttonAbbrechen.Name = "buttonAbbrechen"; - this.buttonAbbrechen.Size = new System.Drawing.Size(200, 41); - this.buttonAbbrechen.TabIndex = 1; - this.buttonAbbrechen.Text = "Abbrechen"; - this.buttonAbbrechen.UseVisualStyleBackColor = false; - this.buttonAbbrechen.Click += new System.EventHandler(this.buttonAbbrechen_Click); - // // groupBoxEtikett // this.groupBoxEtikett.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); @@ -399,7 +382,7 @@ this.buttonSWS_Drucken.FlatAppearance.BorderSize = 0; this.buttonSWS_Drucken.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.buttonSWS_Drucken.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.buttonSWS_Drucken.Location = new System.Drawing.Point(1068, 727); + this.buttonSWS_Drucken.Location = new System.Drawing.Point(1226, 727); this.buttonSWS_Drucken.Margin = new System.Windows.Forms.Padding(2); this.buttonSWS_Drucken.Name = "buttonSWS_Drucken"; this.buttonSWS_Drucken.Size = new System.Drawing.Size(200, 41); @@ -478,10 +461,10 @@ this.buttonNeuerAuftrag.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.buttonNeuerAuftrag.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.buttonNeuerAuftrag.ForeColor = System.Drawing.Color.Black; - this.buttonNeuerAuftrag.Location = new System.Drawing.Point(1179, 264); + this.buttonNeuerAuftrag.Location = new System.Drawing.Point(1022, 727); this.buttonNeuerAuftrag.Margin = new System.Windows.Forms.Padding(2); this.buttonNeuerAuftrag.Name = "buttonNeuerAuftrag"; - this.buttonNeuerAuftrag.Size = new System.Drawing.Size(286, 41); + this.buttonNeuerAuftrag.Size = new System.Drawing.Size(200, 41); this.buttonNeuerAuftrag.TabIndex = 43; this.buttonNeuerAuftrag.Text = "Neuer Auftrag"; this.buttonNeuerAuftrag.UseVisualStyleBackColor = false; @@ -491,14 +474,14 @@ // this.dGArtikel.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Right))); - dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; - dataGridViewCellStyle3.BackColor = System.Drawing.SystemColors.Control; - dataGridViewCellStyle3.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - dataGridViewCellStyle3.ForeColor = System.Drawing.SystemColors.WindowText; - dataGridViewCellStyle3.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle3.SelectionForeColor = System.Drawing.SystemColors.HighlightText; - dataGridViewCellStyle3.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.dGArtikel.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle3; + dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + dataGridViewCellStyle1.BackColor = System.Drawing.SystemColors.Control; + dataGridViewCellStyle1.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + dataGridViewCellStyle1.ForeColor = System.Drawing.SystemColors.WindowText; + dataGridViewCellStyle1.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle1.SelectionForeColor = System.Drawing.SystemColors.HighlightText; + dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.dGArtikel.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle1; this.dGArtikel.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.dGArtikel.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { this.KundeArtikelID, @@ -511,14 +494,14 @@ this.StandBearbeitet, this.FehlmengeBearbeitet, this.KorrekturBearbeitet}); - dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; - dataGridViewCellStyle4.BackColor = System.Drawing.SystemColors.Window; - dataGridViewCellStyle4.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - dataGridViewCellStyle4.ForeColor = System.Drawing.SystemColors.ControlText; - dataGridViewCellStyle4.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle4.SelectionForeColor = System.Drawing.SystemColors.HighlightText; - dataGridViewCellStyle4.WrapMode = System.Windows.Forms.DataGridViewTriState.False; - this.dGArtikel.DefaultCellStyle = dataGridViewCellStyle4; + dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + dataGridViewCellStyle2.BackColor = System.Drawing.SystemColors.Window; + dataGridViewCellStyle2.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + dataGridViewCellStyle2.ForeColor = System.Drawing.SystemColors.ControlText; + dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText; + dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.False; + this.dGArtikel.DefaultCellStyle = dataGridViewCellStyle2; this.dGArtikel.Location = new System.Drawing.Point(638, 42); this.dGArtikel.Name = "dGArtikel"; this.dGArtikel.RowHeadersWidth = 62; @@ -691,7 +674,7 @@ this.buttonEinstellung.FlatAppearance.BorderSize = 3; this.buttonEinstellung.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.buttonEinstellung.Image = global::Deckungsbeitrag.Properties.Resources.Monaco_Settings_16x; - this.buttonEinstellung.Location = new System.Drawing.Point(1022, 727); + this.buttonEinstellung.Location = new System.Drawing.Point(1431, 727); this.buttonEinstellung.Name = "buttonEinstellung"; this.buttonEinstellung.Size = new System.Drawing.Size(41, 41); this.buttonEinstellung.TabIndex = 45; @@ -714,7 +697,6 @@ this.Controls.Add(this.label2); this.Controls.Add(this.buttonSWS_Drucken); this.Controls.Add(this.tabControlAuftragList); - this.Controls.Add(this.buttonAbbrechen); this.Controls.Add(this.groupBoxEtikett); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; this.HelpButton = true; @@ -746,7 +728,6 @@ private System.Windows.Forms.Label label10; private System.Windows.Forms.Button buttonDrucken; private System.Windows.Forms.PictureBox pictureBoxEntwurf; - private System.Windows.Forms.Button buttonAbbrechen; private System.Windows.Forms.GroupBox groupBoxEtikett; private System.Windows.Forms.PictureBox pictureBoxMinus; private System.Windows.Forms.PictureBox pictureBoxPlus; diff --git a/AA-Forms/FormExpedit.cs b/AA-Forms/FormExpedit.cs index c17d044..e15ed1e 100644 --- a/AA-Forms/FormExpedit.cs +++ b/AA-Forms/FormExpedit.cs @@ -70,6 +70,7 @@ namespace Deckungsbeitrag this.Visible = false; imagelist.Images.Add(Resources.Exclamation_Red); + imagelist.Images.Add(Resources.InformationSymbol_16x); imagelist.ImageSize = new Size(24, 24); // Controls aktivieren und deaktivieren nach BenutzerRolle @@ -377,11 +378,6 @@ namespace Deckungsbeitrag Kunde knd = Funktionen.KundenAuswahl(); if(knd != null) Funktionen.SWS_Drucken(null, knd, this); } - private void buttonAbbrechen_Click(object sender, EventArgs e) - { - this.DialogResult = DialogResult.Cancel; - this.Close(); - } /// /// ObjectListView Funktionen @@ -415,13 +411,17 @@ namespace Deckungsbeitrag { ObjectListView olv = (ObjectListView)sender; - if (e.Column.Text == "Abschließen") + // Überprüfung ob Click war auch auf einem Item. + if (e.Model == null) return; + Auftrag _auftrag = (Auftrag)e.Model; + + // Überprüfung welche Spalte geclickt wurde. + switch (e.Column.Text) { - if(e.Model != null) - { - if(meldung.AuftragVorbereitetOhneEtikettDruck() == DialogResult.Yes) + case "Abschließen": + if (e.Item.Group.Header == "Vorbereitet") return; + if (meldung.AuftragVorbereitetOhneEtikettDruck() == DialogResult.Yes) { - Auftrag _auftrag = (Auftrag)e.Model; _auftrag.Status = AuftragStatus.Vorbereitet; _auftrag.Save(); olv.RefreshObject(e); @@ -429,10 +429,27 @@ namespace Deckungsbeitrag if (olv.Name.Contains("Sonder")) OLV_Load(olv, this.sonderlist); else OLV_Load(olv, this.auftraglist); } - } + break; + case "Aufgabe": + if (_auftrag.AufgabeID == null) return; + Kunde _kunde = Kunde.GetKunde(null, _auftrag.KundeID, null); + string name = string.Empty; + if (string.IsNullOrWhiteSpace(_kunde.Suchtext)) name = _kunde.KundeName; + else name = _kunde.Suchtext; + Aufgabe _aufgabe = Aufgabe.GetAufgabe(null, ((Auftrag)e.Model).AufgabeID); + if (meldung.GetFrage(this, $"Hast du beim Kunden {name} die Aufgabe {_aufgabe.Bezeichnung} erledigt und möchtest sie als erledigt markieren?", false) == DialogResult.Yes) + { + if (_kunde.AufgabeCount <= 0) _kunde.Aufgabe = null; + else _kunde.AufgabeCount--; + _auftrag.AufgabeErledigt = true; + if (_auftrag.Save()[0] != 1) meldung.GetFehler(this, $"Der Auftrag konnte nicht gespeichert und die Aufgabe nicht als erledigt markiert werden. Melde das bitte deinem Vorgesetzten.", false); + if (_kunde.Save() != 1) meldung.GetFehler(this, $"Der Kunde {name} konnte nicht gespeichert und die Aufgabe nicht entfernt werden. Melde das bitte deinem Vorgesetzten.", false); + } + break; + default: + break; } } - private void objectListViewAuftrag_ButtonClick(object sender, CellClickEventArgs e) { Cursor.Current = Cursors.WaitCursor; @@ -557,72 +574,90 @@ namespace Deckungsbeitrag } private void OLV_Load(ObjectListView olv, List auftraglist) { - // Cursor auf Warte-Status setzen, um Benutzerfeedback zu geben - Cursor.Current = Cursors.WaitCursor; - - // Layout- und Update-Änderungen pausieren, um Flackern zu verhindern - olv.SuspendLayout(); // Stoppt Layout-Berechnungen (Anchor/Dock) - olv.BeginUpdate(); // Stoppt Datenaktualisierungen/Redraws + // Cursor auf Warte-Status setzen, um Benutzerfeedback zu geben + Cursor.Current = Cursors.WaitCursor; + + // Layout- und Update-Änderungen pausieren, um Flackern zu verhindern + olv.SuspendLayout(); // Stoppt Layout-Berechnungen (Anchor/Dock) + olv.BeginUpdate(); // Stoppt Datenaktualisierungen/Redraws - // Automatisch alle Properties von Auftrag als Spalten generieren - Generator.GenerateColumns(olv, typeof(Auftrag), true); + // Automatisch alle Properties von Auftrag als Spalten generieren + Generator.GenerateColumns(olv, typeof(Auftrag), true); - // ========== SPALTE 11: BUTTON-KOLUMNE ========== - // Spalte 11 (Index 11) als Button-Spalte konfigurieren - OLVColumn buttonColumn = (OLVColumn)olv.Columns[11]; - buttonColumn.IsButton = true; // Als Button rendern - buttonColumn.ButtonSizing = OLVColumn.ButtonSizingMode.CellBounds; // Button füllt gesamte Zelle + // ========== SPALTE 11: BUTTON-COLUMNE ========== + // Spalte 11 (Index 11) als Button-Spalte konfigurieren + OLVColumn buttonColumn = (OLVColumn)olv.Columns[11]; + buttonColumn.IsButton = true; // Als Button rendern + buttonColumn.ButtonSizing = OLVColumn.ButtonSizingMode.CellBounds; // Button füllt gesamte Zelle - // ========== IMAGE-LIST ZUWEISEN ========== - // SmallImageList für Icons in Detail-View (16x16 Pixel standard) - olv.SmallImageList = imagelist; // Voraussetzung: imagelist mit Icon Index 0 gefüllt + // ========== IMAGE-LIST ZUWEISEN ========== + // SmallImageList für Icons in Detail-View (16x16 Pixel standard) + olv.SmallImageList = imagelist; // Voraussetzung: imagelist mit Icon Index 0 gefüllt - // ========== SPALTE 10: ICON-KOLUMNE ========== - // Spalte 10 als Icon-Spalte: zeigt Icon wenn AufgabeID vorhanden - OLVColumn iconColumn = (OLVColumn)olv.Columns[10]; - iconColumn.ImageGetter = rowObject => + // ========== SPALTE 10 & 1: ICON-KOLUMNE ========== + // Spalte 10 als Icon-Spalte: zeigt Icon wenn AufgabeID vorhanden + OLVColumn iconColumn = (OLVColumn)olv.Columns[10]; + iconColumn.ImageGetter = rowObject => + { + var auftrag = rowObject as Auftrag; + if (auftrag.AufgabeID == null) return null; // null = kein Icon anzeigen + else return 0; // Index 0 aus SmallImageList + }; + OLVColumn iColumn = (OLVColumn)olv.Columns[1]; + iColumn.ImageGetter = rowObject => + { + var _auftrag = rowObject as Auftrag; + if (string.IsNullOrWhiteSpace(Kunde.GetKunde(null, _auftrag.KundeID, null).Anmerkung)) return null; // null = kein Icon anzeigen + else return 1; // Index 0 aus SmallImageList + }; + + + // ========== TOOLTIP FÜR ICON-SPALTE ========== + // Automatischer Cell-Tooltip bei Mouse-Hover über Spalte 10 und 1 + olv.CellToolTipShowing += (s, e) => { - var auftrag = rowObject as Auftrag; - if (auftrag.AufgabeID == null) return null; // null = kein Icon anzeigen - else return 0; // Index 0 aus SmallImageList - }; - - // ========== TOOLTIP FÜR ICON-SPALTE ========== - // Automatischer Cell-Tooltip bei Mouse-Hover über Spalte 10 - olv.CellToolTipShowing += (s, e) => - { - // Nur für Icon-Spalte (Index 10) und gültiges Model - if (e.ColumnIndex == 10 && e.Model is Auftrag auftrag) + // Nur für Icon-Spalte (Index 10) und gültiges Model + if (e.ColumnIndex == 10 && e.Model is Auftrag auftrag) + { + // Lade Bezeichnung der Aufgabe als Tooltip-Text + e.Text = Aufgabe.GetAufgabe(null, auftrag.AufgabeID).Bezeichnung; + } + // Nur für Icon-Spalte (Index 1) und gültiges Model + if (e.ColumnIndex == 1 && e.Model is Auftrag _auftrag) + { + if (!string.IsNullOrWhiteSpace(Kunde.GetKunde(null, _auftrag.KundeID, null).Anmerkung)) { - // Lade Bezeichnung der Aufgabe als Tooltip-Text - e.Text = Aufgabe.GetAufgabe(null, auftrag.AufgabeID).Bezeichnung; + // Lade Anmerkung als Tooltip-Text + e.Text = Kunde.GetKunde(null, _auftrag.KundeID, null).Anmerkung; } + } + //TODO: Alle Icons in einer Spalte anzeigen? I für Anmerkung und ! für Aufgabe?? }; - // ========== DATEN LADEN ========== - // WICHTIG: SetObjects NACH Column-Konfiguration aufrufen! - olv.SetObjects(auftraglist); // Bindet die Auftragsliste an die View + // ========== DATEN LADEN ========== + // WICHTIG: SetObjects NACH Column-Konfiguration aufrufen! + olv.SetObjects(auftraglist); // Bindet die Auftragsliste an die View - // ========== SORTIERUNG ========== - // Spalte 5 als primäre Sortier-Spalte festlegen (nach Datenbindung!) - OLVColumn sortcolumn = (OLVColumn)olv.Columns[5]; - olv.Sort(sortcolumn); // Sortiert aufsteigend nach Spalte 5 + // ========== SORTIERUNG ========== + // Spalte 5 als primäre Sortier-Spalte festlegen (nach Datenbindung!) + OLVColumn sortcolumn = (OLVColumn)olv.Columns[5]; + olv.Sort(sortcolumn); // Sortiert aufsteigend nach Spalte 5 - // ========== CHECKBOX-FUNKTIONALITÄT ========== - // Aktiviert Checkboxen basierend auf "IsChecked" Property des Auftrag-Modells - olv.CheckedAspectName = "IsChecked"; + // ========== CHECKBOX-FUNKTIONALITÄT ========== + // Aktiviert Checkboxen basierend auf "IsChecked" Property des Auftrag-Modells + olv.CheckedAspectName = "IsChecked"; - // ========== SPALTEN ANPASSEN ========== - Funktionen.Columns_Resize(olv); // Externe Funktion für responsive Spaltenbreiten - - // Unsichtbare Spalten (Width = 0 = versteckt) - olv.Columns[0].Width = 0; // Spalte 0 verstecken - olv.Columns[7].Width = 0; // Spalte 7 verstecken - olv.Columns[8].Width = 0; // Spalte 8 verstecken - olv.Columns[9].Width = 0; // Spalte 9 verstecken + // ========== SPALTEN ANPASSEN ========== + Funktionen.Columns_Resize(olv); // Externe Funktion für responsive Spaltenbreiten + + // Unsichtbare Spalten (Width = 0 = versteckt) + olv.Columns[0].Width = 0; // Spalte 0 verstecken + olv.Columns[7].Width = 0; // Spalte 7 verstecken + olv.Columns[8].Width = 0; // Spalte 8 verstecken + olv.Columns[9].Width = 0; // Spalte 9 verstecken - // ========== STATISTIKEN (nur bei Auftrags-OLV) ========== - if (olv.Name.Contains("Auftrag")) + // ========== STATISTIKEN (nur bei Auftrags-OLV) ========== + if (olv.Name.Contains("Auftrag")) { // Anzahl sichtbarer Aufträge anzeigen this.labelauftragtag.Text = olv.Items.Count.ToString(); @@ -639,13 +674,13 @@ namespace Deckungsbeitrag this.labelcontainertag.Text = summe.ToString(); } - // ========== AUFRÄUMEN & AKTIVIEREN ========== - olv.EndUpdate(); // Update-Pause beenden, Daten neu zeichnen - olv.ResumeLayout(); // Layout-Pause beenden, Positionen neu berechnen - olv.Focus(); // OLV fokussieren (Tastaturbedienung aktivieren) - - // Cursor zurücksetzen - Cursor.Current = Cursors.Default; + // ========== AUFRÄUMEN & AKTIVIEREN ========== + olv.EndUpdate(); // Update-Pause beenden, Daten neu zeichnen + olv.ResumeLayout(); // Layout-Pause beenden, Positionen neu berechnen + olv.Focus(); // OLV fokussieren (Tastaturbedienung aktivieren) + + // Cursor zurücksetzen + Cursor.Current = Cursors.Default; } /// diff --git a/AA-Forms/FormFehlmengeCount.Designer.cs b/AA-Forms/FormFehlmengeCount.Designer.cs index cea05cd..9a9595d 100644 --- a/AA-Forms/FormFehlmengeCount.Designer.cs +++ b/AA-Forms/FormFehlmengeCount.Designer.cs @@ -43,6 +43,8 @@ this.buttonArt5 = new System.Windows.Forms.Button(); this.groupBoxArtikel = new System.Windows.Forms.GroupBox(); this.tableLayoutPanelArtikel = new System.Windows.Forms.TableLayoutPanel(); + this.labelAnmerkung = new System.Windows.Forms.Label(); + this.labelAnmerkungText = new System.Windows.Forms.Label(); this.groupBoxArtikel.SuspendLayout(); this.tableLayoutPanelArtikel.SuspendLayout(); this.SuspendLayout(); @@ -52,7 +54,7 @@ this.textBoxScann.Font = new System.Drawing.Font("Microsoft Sans Serif", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.textBoxScann.Location = new System.Drawing.Point(12, 12); this.textBoxScann.Name = "textBoxScann"; - this.textBoxScann.Size = new System.Drawing.Size(80, 31); + this.textBoxScann.Size = new System.Drawing.Size(130, 31); this.textBoxScann.TabIndex = 1; this.textBoxScann.KeyDown += new System.Windows.Forms.KeyEventHandler(this.textBoxScann_KeyDown); this.textBoxScann.Leave += new System.EventHandler(this.textBoxScann_Leave); @@ -62,7 +64,7 @@ this.labelSuchtext.AutoSize = true; this.labelSuchtext.Font = new System.Drawing.Font("Microsoft Sans Serif", 24F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.labelSuchtext.ForeColor = System.Drawing.Color.White; - this.labelSuchtext.Location = new System.Drawing.Point(12, 55); + this.labelSuchtext.Location = new System.Drawing.Point(148, 9); this.labelSuchtext.Name = "labelSuchtext"; this.labelSuchtext.Size = new System.Drawing.Size(195, 37); this.labelSuchtext.TabIndex = 2; @@ -86,7 +88,7 @@ this.labelName.AutoSize = true; this.labelName.Font = new System.Drawing.Font("Microsoft Sans Serif", 18F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.labelName.ForeColor = System.Drawing.Color.White; - this.labelName.Location = new System.Drawing.Point(12, 92); + this.labelName.Location = new System.Drawing.Point(7, 46); this.labelName.Name = "labelName"; this.labelName.Size = new System.Drawing.Size(148, 29); this.labelName.TabIndex = 4; @@ -251,12 +253,38 @@ this.tableLayoutPanelArtikel.Size = new System.Drawing.Size(1236, 499); this.tableLayoutPanelArtikel.TabIndex = 8; // + // labelAnmerkung + // + this.labelAnmerkung.AutoSize = true; + this.labelAnmerkung.Font = new System.Drawing.Font("Microsoft Sans Serif", 18F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.labelAnmerkung.ForeColor = System.Drawing.Color.White; + this.labelAnmerkung.Location = new System.Drawing.Point(7, 75); + this.labelAnmerkung.Name = "labelAnmerkung"; + this.labelAnmerkung.Size = new System.Drawing.Size(141, 29); + this.labelAnmerkung.TabIndex = 5; + this.labelAnmerkung.Text = "Anmerkung:"; + this.labelAnmerkung.Visible = false; + // + // labelAnmerkungText + // + this.labelAnmerkungText.AutoSize = true; + this.labelAnmerkungText.BackColor = System.Drawing.Color.White; + this.labelAnmerkungText.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.labelAnmerkungText.Location = new System.Drawing.Point(154, 82); + this.labelAnmerkungText.Name = "labelAnmerkungText"; + this.labelAnmerkungText.Size = new System.Drawing.Size(39, 20); + this.labelAnmerkungText.TabIndex = 6; + this.labelAnmerkungText.Text = "Text"; + this.labelAnmerkungText.Visible = false; + // // FormFehlmengeCount // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(1)))), ((int)(((byte)(53)))), ((int)(((byte)(101))))); this.ClientSize = new System.Drawing.Size(1266, 690); + this.Controls.Add(this.labelAnmerkungText); + this.Controls.Add(this.labelAnmerkung); this.Controls.Add(this.labelName); this.Controls.Add(this.buttonFertig); this.Controls.Add(this.labelSuchtext); @@ -289,5 +317,7 @@ private System.Windows.Forms.Button buttonArt5; private System.Windows.Forms.GroupBox groupBoxArtikel; private System.Windows.Forms.TableLayoutPanel tableLayoutPanelArtikel; + private System.Windows.Forms.Label labelAnmerkung; + private System.Windows.Forms.Label labelAnmerkungText; } } \ No newline at end of file diff --git a/AA-Forms/FormFehlmengeCount.cs b/AA-Forms/FormFehlmengeCount.cs index 9c1a483..d29b823 100644 --- a/AA-Forms/FormFehlmengeCount.cs +++ b/AA-Forms/FormFehlmengeCount.cs @@ -75,11 +75,28 @@ namespace Deckungsbeitrag this.labelSuchtext.Text = kunde.Suchtext; this.labelName.Text = kunde.KundeName; this.labelName.Visible = this.labelSuchtext.Visible = true; + this.labelAnmerkung.Visible = this.labelAnmerkungText.Visible = true; + if (!string.IsNullOrWhiteSpace(this.kunde.Anmerkung)) + { + this.labelAnmerkungText.Text = kunde.Anmerkung; + this.labelAnmerkungText.BackColor = Color.Yellow; + } + else + { + this.labelAnmerkungText.Text = "Derzeit keine Anmerkungen vorhanden."; + this.labelAnmerkungText.BackColor = Color.White; + } //this.textBoxScann.Clear(); this.artikelListe = KundeArtikel.GetList(kunde.KundeID.ToString()); this.textBoxScann.Text = this.kunde.KundeNummer; this.textBoxScann.Enabled = false; GroupBox_Load(); + + if(kunde.Aufgabe != null) + { + string n = kunde.Suchtext == null ? kunde.KundeName : kunde.Suchtext; + meldung.GetInfo(this, $"Bei Kunde {n} solltest du folgendes beachten: {Aufgabe.GetAufgabe(null, kunde.Aufgabe).Bezeichnung}", false); + } } CloseKeyboard(); @@ -371,3 +388,5 @@ namespace Deckungsbeitrag } } +//DONE: Kunde Anmerkung anzeigen. Spezielle Farbe verwenden. Label oder Textbox? +//TODO: Eventuell bei erstem Erscheinen Info anzeigen. \ No newline at end of file diff --git a/AA-Forms/FormKundeVW.cs b/AA-Forms/FormKundeVW.cs index 11ce81b..13a2bd5 100644 --- a/AA-Forms/FormKundeVW.cs +++ b/AA-Forms/FormKundeVW.cs @@ -35,6 +35,10 @@ namespace Deckungsbeitrag Benutzer benutzer; int beforeedit = 0; int[] saveindex = null; + private bool anmerkungChanged = false; + private bool formloading = false; + private bool aufgabeChanged = false; + private bool serviceChanged = false; public FormKundeVW() { @@ -50,6 +54,8 @@ namespace Deckungsbeitrag } private void KundeDaten_Load(object sender, EventArgs e) { + formloading = true; + videoDevices = new FilterInfoCollection(FilterCategory.VideoInputDevice); //Sortiment Liste erstellen. @@ -57,6 +63,8 @@ namespace Deckungsbeitrag //Alle TextBoxen deaktivieren. TextBoxes_Unable(); + labelAnzahlChars.Text = textBoxAnmerkung.TextLength.ToString() + "/" + textBoxAnmerkung.MaxLength.ToString(); + this.labelAnzahlChars.Location = new Point(this.textBoxAnmerkung.Right - this.labelAnzahlChars.Width, this.labelAnzahlChars.Location.Y); this.tabControlKunde.Location = new Point(this.textBoxSuchtext.Right + 10, 11); @@ -64,6 +72,9 @@ namespace Deckungsbeitrag this.kunde = Funktionen.KundenAuswahl(); if (this.kunde != null) DatenLesen(); + + formloading = false; + } private void ComboBox_Laden() @@ -145,6 +156,7 @@ namespace Deckungsbeitrag this.textBoxPLZ.Text = this.kunde.PLZ.ToString(); this.textBoxOrt.Text = this.kunde.Ort; this.textBoxSuchtext.Text = this.kunde.Suchtext; + this.textBoxAnmerkung.Text = this.kunde.Anmerkung; // ComboBox für Aufgabe wird geladen foreach (Aufgabe auf in comboBoxAufgabe.Items) if (auf.AufgabeID == this.kunde.Aufgabe) this.comboBoxAufgabe.SelectedItem = auf; @@ -155,10 +167,13 @@ namespace Deckungsbeitrag } + // numericUpDown für AufgabeCount befüllen + this.numericUpDownAufgabeCount.Value = (decimal)this.kunde.AufgabeCount; + // Wird noch nicht verwendet this.buttonProgramm.Text = "WP 01"; - //Buttons und ähnliches aktivieren. + // Buttons und ähnliches aktivieren. this.buttonProgramm.Enabled = true; this.buttonBewertung.Enabled = true; this.tabControlKunde.Enabled = true; @@ -172,7 +187,7 @@ namespace Deckungsbeitrag /// private void TextBoxes_Unable() { - foreach (Control ctr in this.Controls) if (ctr is TextBox) { ctr.Enabled = false; } + foreach (Control ctr in this.Controls) if (ctr is TextBox) { if (!ctr.Name.Contains("Anmerkung")) ctr.Enabled = false; } } private void TextBoxKndNr_Leave(object sender, EventArgs e) { @@ -281,13 +296,6 @@ namespace Deckungsbeitrag } private void comboBoxAufgabe_DropDownClosed(object sender, EventArgs e) { - if (MessageBox.Show("Möchtest du die Aufgabe speichern?", "Frage", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes) - { - if (this.comboBoxAufgabe.SelectedItem == null) this.kunde.Aufgabe = null; - else this.kunde.Aufgabe = ((Aufgabe)this.comboBoxAufgabe.SelectedItem).AufgabeID; - - this.kunde.Save(); - } } private void KundeDaten_KeyDown(object sender, KeyEventArgs e) { @@ -415,7 +423,6 @@ namespace Deckungsbeitrag DataGridView dataGrid = sender as DataGridView; beforeedit = int.Parse(dataGrid.Rows[e.RowIndex].Cells[e.ColumnIndex].Value.ToString()); } - private void dGArtikel_CellValueChanged(object sender, DataGridViewCellEventArgs e) { if (e.RowIndex >= 0) @@ -458,19 +465,78 @@ namespace Deckungsbeitrag } } - private void buttonServiceBearbeiten_Click(object sender, EventArgs e) { if(this.comboBoxService.Enabled == false) this.comboBoxService.Enabled = true; } + + private void textBoxAnmerkung_Leave(object sender, EventArgs e) + { + if (textBoxAnmerkung.TextLength > 0) if (meldung.GetFrage(this, "Möchtest du die Anmerkung speichern?", false) == DialogResult.Yes) { kunde.Anmerkung = textBoxAnmerkung.Text; kunde.Save(); } + } + private void numericUpDownAufgabeCount_Leave(object sender, EventArgs e) + { + + if (meldung.GetFrage(this, $"Möchtest du die Aufgabe für die nächsten {numericUpDownAufgabeCount.Value.ToString()} Aufträge speichern?", false) == DialogResult.Yes) + { + if (this.comboBoxAufgabe.SelectedItem == null) { this.kunde.Aufgabe = null; this.kunde.AufgabeCount = null; } + else { this.kunde.Aufgabe = ((Aufgabe)this.comboBoxAufgabe.SelectedItem).AufgabeID; this.kunde.AufgabeCount = (int)numericUpDownAufgabeCount.Value; } + + this.kunde.Save(); + } + } + + + /// + /// ValueChanged Events zum Speichern wenn Changed. + /// + /// + /// + private void textBoxAnmerkung_TextChanged(object sender, EventArgs e) + { + if (formloading) return; + anmerkungChanged = true; + labelAnzahlChars.Text = textBoxAnmerkung.TextLength.ToString() + "/" + textBoxAnmerkung.MaxLength.ToString(); + } + private void comboBoxAufgabe_SelectedIndexChanged(object sender, EventArgs e) + { + if (formloading) return; + aufgabeChanged = true; + } + private void numericUpDownAufgabeCount_ValueChanged(object sender, EventArgs e) + { + if (formloading) return; + aufgabeChanged = true; + + } private void comboBoxService_SelectedValueChanged(object sender, EventArgs e) { - if (this.comboBoxService.Enabled == true) + if ((formloading)) return; + serviceChanged = true; + } + + /// + /// FormClosing: Wenn Form wird geschlossen, Kontrolle ob Änderungen gemacht wurden. + /// + /// + /// + private void FormKundeVW_FormClosing(object sender, FormClosingEventArgs e) + { + if (anmerkungChanged) textBoxAnmerkung_Leave(this, null); + if (this.comboBoxAufgabe.SelectedItem != null && this.numericUpDownAufgabeCount.Value == 0) { meldung.GetFehler(this, $"Du hast für deine Aufgabe noch keine Auftraganzahl eingegeben. Hole das bitte jetzt nach.", false); e.Cancel = true; return; } + if (aufgabeChanged) numericUpDownAufgabeCount_Leave(this, null); + if (serviceChanged) { - this.kunde.Service = this.comboBoxService.SelectedValue.ToString(); - this.kunde.Save(); + if (this.comboBoxService.Enabled == true) + { + this.kunde.Service = this.comboBoxService.SelectedValue.ToString(); + this.kunde.Save(); + } + } } } } +//DONE: TextBox Anmerkung ausprogrammieren. (Immer Enabled, Speichern bei Leave oder Button) +//DONE: Zeichenanzahl aktuell/maximal anzeigen. \ No newline at end of file diff --git a/AA-Forms/FormKundeVW.designer.cs b/AA-Forms/FormKundeVW.designer.cs index 287fd7e..a922dd8 100644 --- a/AA-Forms/FormKundeVW.designer.cs +++ b/AA-Forms/FormKundeVW.designer.cs @@ -63,6 +63,7 @@ namespace Deckungsbeitrag this.tabControlKunde = new System.Windows.Forms.TabControl(); this.tabPageVorschau = new System.Windows.Forms.TabPage(); this.buttonSWS_Drucken = new System.Windows.Forms.Button(); + this.pictureBoxEntwurf = new System.Windows.Forms.PictureBox(); this.tabPageUmsatz = new System.Windows.Forms.TabPage(); this.labelMonatsumsatz = new System.Windows.Forms.Label(); this.chartMonatsumsatz = new System.Windows.Forms.DataVisualization.Charting.Chart(); @@ -90,12 +91,16 @@ namespace Deckungsbeitrag this.label3 = new System.Windows.Forms.Label(); this.comboBoxService = new System.Windows.Forms.ComboBox(); this.buttonServiceBearbeiten = new System.Windows.Forms.Button(); - this.pictureBoxEntwurf = new System.Windows.Forms.PictureBox(); this.buttonAufgEnt = new System.Windows.Forms.Button(); this.pictureBoxQRCode = new System.Windows.Forms.PictureBox(); + this.textBoxAnmerkung = new System.Windows.Forms.TextBox(); + this.label4 = new System.Windows.Forms.Label(); + this.labelAnzahlChars = new System.Windows.Forms.Label(); + this.numericUpDownAufgabeCount = new System.Windows.Forms.NumericUpDown(); this.contextMenuStrip1.SuspendLayout(); this.tabControlKunde.SuspendLayout(); this.tabPageVorschau.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.pictureBoxEntwurf)).BeginInit(); this.tabPageUmsatz.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.chartMonatsumsatz)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.olvMonatsumsatz)).BeginInit(); @@ -105,8 +110,8 @@ namespace Deckungsbeitrag ((System.ComponentModel.ISupportInitialize)(this.olvJahresumsatz)).BeginInit(); this.tabPageArtikel.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.dGArtikel)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBoxEntwurf)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.pictureBoxQRCode)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.numericUpDownAufgabeCount)).BeginInit(); this.SuspendLayout(); // // textBoxKndNr @@ -115,10 +120,9 @@ namespace Deckungsbeitrag this.textBoxKndNr.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.CustomSource; this.textBoxKndNr.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.textBoxKndNr.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.textBoxKndNr.Location = new System.Drawing.Point(10, 92); - this.textBoxKndNr.Margin = new System.Windows.Forms.Padding(2); + this.textBoxKndNr.Location = new System.Drawing.Point(13, 99); this.textBoxKndNr.Name = "textBoxKndNr"; - this.textBoxKndNr.Size = new System.Drawing.Size(69, 26); + this.textBoxKndNr.Size = new System.Drawing.Size(104, 26); this.textBoxKndNr.TabIndex = 0; // // labelKundeNummer @@ -126,8 +130,7 @@ namespace Deckungsbeitrag this.labelKundeNummer.AutoSize = true; this.labelKundeNummer.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.labelKundeNummer.ForeColor = System.Drawing.Color.White; - this.labelKundeNummer.Location = new System.Drawing.Point(6, 70); - this.labelKundeNummer.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); + this.labelKundeNummer.Location = new System.Drawing.Point(9, 76); this.labelKundeNummer.Name = "labelKundeNummer"; this.labelKundeNummer.Size = new System.Drawing.Size(69, 20); this.labelKundeNummer.TabIndex = 2; @@ -138,8 +141,7 @@ namespace Deckungsbeitrag this.labelKundeName.AutoSize = true; this.labelKundeName.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.labelKundeName.ForeColor = System.Drawing.Color.White; - this.labelKundeName.Location = new System.Drawing.Point(6, 120); - this.labelKundeName.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); + this.labelKundeName.Location = new System.Drawing.Point(9, 128); this.labelKundeName.Name = "labelKundeName"; this.labelKundeName.Size = new System.Drawing.Size(51, 20); this.labelKundeName.TabIndex = 3; @@ -149,20 +151,18 @@ namespace Deckungsbeitrag // this.textBoxKundeName.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.textBoxKundeName.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.textBoxKundeName.Location = new System.Drawing.Point(10, 142); - this.textBoxKundeName.Margin = new System.Windows.Forms.Padding(2); + this.textBoxKundeName.Location = new System.Drawing.Point(13, 151); this.textBoxKundeName.Name = "textBoxKundeName"; - this.textBoxKundeName.Size = new System.Drawing.Size(281, 26); + this.textBoxKundeName.Size = new System.Drawing.Size(352, 26); this.textBoxKundeName.TabIndex = 4; // // textBoxStraße // this.textBoxStraße.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.textBoxStraße.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.textBoxStraße.Location = new System.Drawing.Point(10, 242); - this.textBoxStraße.Margin = new System.Windows.Forms.Padding(2); + this.textBoxStraße.Location = new System.Drawing.Point(13, 255); this.textBoxStraße.Name = "textBoxStraße"; - this.textBoxStraße.Size = new System.Drawing.Size(281, 26); + this.textBoxStraße.Size = new System.Drawing.Size(352, 26); this.textBoxStraße.TabIndex = 5; // // labelStraße @@ -170,8 +170,7 @@ namespace Deckungsbeitrag this.labelStraße.AutoSize = true; this.labelStraße.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.labelStraße.ForeColor = System.Drawing.Color.White; - this.labelStraße.Location = new System.Drawing.Point(6, 220); - this.labelStraße.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); + this.labelStraße.Location = new System.Drawing.Point(9, 232); this.labelStraße.Name = "labelStraße"; this.labelStraße.Size = new System.Drawing.Size(94, 20); this.labelStraße.TabIndex = 6; @@ -181,10 +180,9 @@ namespace Deckungsbeitrag // this.textBoxPLZ.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.textBoxPLZ.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.textBoxPLZ.Location = new System.Drawing.Point(10, 292); - this.textBoxPLZ.Margin = new System.Windows.Forms.Padding(2); + this.textBoxPLZ.Location = new System.Drawing.Point(13, 307); this.textBoxPLZ.Name = "textBoxPLZ"; - this.textBoxPLZ.Size = new System.Drawing.Size(69, 26); + this.textBoxPLZ.Size = new System.Drawing.Size(102, 26); this.textBoxPLZ.TabIndex = 9; // // labelPLZ @@ -192,8 +190,7 @@ namespace Deckungsbeitrag this.labelPLZ.AutoSize = true; this.labelPLZ.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.labelPLZ.ForeColor = System.Drawing.Color.White; - this.labelPLZ.Location = new System.Drawing.Point(6, 270); - this.labelPLZ.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); + this.labelPLZ.Location = new System.Drawing.Point(9, 284); this.labelPLZ.Name = "labelPLZ"; this.labelPLZ.Size = new System.Drawing.Size(38, 20); this.labelPLZ.TabIndex = 10; @@ -203,10 +200,9 @@ namespace Deckungsbeitrag // this.textBoxOrt.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.textBoxOrt.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.textBoxOrt.Location = new System.Drawing.Point(83, 292); - this.textBoxOrt.Margin = new System.Windows.Forms.Padding(2); + this.textBoxOrt.Location = new System.Drawing.Point(121, 307); this.textBoxOrt.Name = "textBoxOrt"; - this.textBoxOrt.Size = new System.Drawing.Size(208, 26); + this.textBoxOrt.Size = new System.Drawing.Size(244, 26); this.textBoxOrt.TabIndex = 11; // // labelOrt @@ -214,8 +210,7 @@ namespace Deckungsbeitrag this.labelOrt.AutoSize = true; this.labelOrt.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.labelOrt.ForeColor = System.Drawing.Color.White; - this.labelOrt.Location = new System.Drawing.Point(79, 270); - this.labelOrt.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); + this.labelOrt.Location = new System.Drawing.Point(117, 284); this.labelOrt.Name = "labelOrt"; this.labelOrt.Size = new System.Drawing.Size(31, 20); this.labelOrt.TabIndex = 12; @@ -226,8 +221,7 @@ namespace Deckungsbeitrag this.labelKdnName2.AutoSize = true; this.labelKdnName2.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.labelKdnName2.ForeColor = System.Drawing.Color.White; - this.labelKdnName2.Location = new System.Drawing.Point(6, 170); - this.labelKdnName2.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); + this.labelKdnName2.Location = new System.Drawing.Point(9, 180); this.labelKdnName2.Name = "labelKdnName2"; this.labelKdnName2.Size = new System.Drawing.Size(100, 20); this.labelKdnName2.TabIndex = 25; @@ -237,30 +231,29 @@ namespace Deckungsbeitrag // this.textBoxKndName2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.textBoxKndName2.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.textBoxKndName2.Location = new System.Drawing.Point(10, 192); - this.textBoxKndName2.Margin = new System.Windows.Forms.Padding(2); + this.textBoxKndName2.Location = new System.Drawing.Point(13, 203); this.textBoxKndName2.Name = "textBoxKndName2"; - this.textBoxKndName2.Size = new System.Drawing.Size(281, 26); + this.textBoxKndName2.Size = new System.Drawing.Size(352, 26); this.textBoxKndName2.TabIndex = 26; // // buttonBewertung // + this.buttonBewertung.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.buttonBewertung.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.buttonBewertung.Location = new System.Drawing.Point(10, 481); - this.buttonBewertung.Margin = new System.Windows.Forms.Padding(2); + this.buttonBewertung.Location = new System.Drawing.Point(195, 706); this.buttonBewertung.Name = "buttonBewertung"; - this.buttonBewertung.Size = new System.Drawing.Size(160, 41); + this.buttonBewertung.Size = new System.Drawing.Size(170, 41); this.buttonBewertung.TabIndex = 1; this.buttonBewertung.Text = "Bewertung"; this.buttonBewertung.UseVisualStyleBackColor = true; // // buttonProgramm // + this.buttonProgramm.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.buttonProgramm.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.buttonProgramm.Location = new System.Drawing.Point(10, 436); - this.buttonProgramm.Margin = new System.Windows.Forms.Padding(2); + this.buttonProgramm.Location = new System.Drawing.Point(13, 706); this.buttonProgramm.Name = "buttonProgramm"; - this.buttonProgramm.Size = new System.Drawing.Size(160, 41); + this.buttonProgramm.Size = new System.Drawing.Size(170, 41); this.buttonProgramm.TabIndex = 28; this.buttonProgramm.Text = "PR 01"; this.buttonProgramm.UseVisualStyleBackColor = true; @@ -272,10 +265,9 @@ namespace Deckungsbeitrag this.textBoxSuchtext.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.CustomSource; this.textBoxSuchtext.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.textBoxSuchtext.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.textBoxSuchtext.Location = new System.Drawing.Point(83, 92); - this.textBoxSuchtext.Margin = new System.Windows.Forms.Padding(2); + this.textBoxSuchtext.Location = new System.Drawing.Point(122, 99); this.textBoxSuchtext.Name = "textBoxSuchtext"; - this.textBoxSuchtext.Size = new System.Drawing.Size(208, 26); + this.textBoxSuchtext.Size = new System.Drawing.Size(243, 26); this.textBoxSuchtext.TabIndex = 38; // // label1 @@ -283,8 +275,7 @@ namespace Deckungsbeitrag 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.ForeColor = System.Drawing.Color.White; - this.label1.Location = new System.Drawing.Point(79, 70); - this.label1.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); + this.label1.Location = new System.Drawing.Point(118, 76); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(95, 20); this.label1.TabIndex = 39; @@ -292,13 +283,14 @@ namespace Deckungsbeitrag // // comboBoxAufgabe // + this.comboBoxAufgabe.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboBoxAufgabe.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.comboBoxAufgabe.FormattingEnabled = true; - this.comboBoxAufgabe.Location = new System.Drawing.Point(10, 404); - this.comboBoxAufgabe.Margin = new System.Windows.Forms.Padding(2); + this.comboBoxAufgabe.Location = new System.Drawing.Point(13, 417); this.comboBoxAufgabe.Name = "comboBoxAufgabe"; - this.comboBoxAufgabe.Size = new System.Drawing.Size(128, 28); + this.comboBoxAufgabe.Size = new System.Drawing.Size(263, 28); this.comboBoxAufgabe.TabIndex = 41; + this.comboBoxAufgabe.SelectedIndexChanged += new System.EventHandler(this.comboBoxAufgabe_SelectedIndexChanged); this.comboBoxAufgabe.DropDownClosed += new System.EventHandler(this.comboBoxAufgabe_DropDownClosed); // // label2 @@ -306,8 +298,7 @@ namespace Deckungsbeitrag 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.ForeColor = System.Drawing.Color.White; - this.label2.Location = new System.Drawing.Point(6, 380); - this.label2.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); + this.label2.Location = new System.Drawing.Point(9, 394); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(123, 20); this.label2.TabIndex = 42; @@ -339,10 +330,11 @@ namespace Deckungsbeitrag this.tabControlKunde.Controls.Add(this.tabPageArtikel); this.tabControlKunde.Enabled = false; this.tabControlKunde.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.tabControlKunde.Location = new System.Drawing.Point(309, 11); + this.tabControlKunde.Location = new System.Drawing.Point(372, 17); + this.tabControlKunde.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); this.tabControlKunde.Name = "tabControlKunde"; this.tabControlKunde.SelectedIndex = 0; - this.tabControlKunde.Size = new System.Drawing.Size(915, 711); + this.tabControlKunde.Size = new System.Drawing.Size(933, 730); this.tabControlKunde.TabIndex = 44; // // tabPageVorschau @@ -351,28 +343,40 @@ namespace Deckungsbeitrag this.tabPageVorschau.Controls.Add(this.buttonSWS_Drucken); this.tabPageVorschau.Controls.Add(this.pictureBoxEntwurf); this.tabPageVorschau.Location = new System.Drawing.Point(4, 29); - this.tabPageVorschau.Margin = new System.Windows.Forms.Padding(2); this.tabPageVorschau.Name = "tabPageVorschau"; - this.tabPageVorschau.Size = new System.Drawing.Size(907, 678); + this.tabPageVorschau.Size = new System.Drawing.Size(925, 697); this.tabPageVorschau.TabIndex = 2; this.tabPageVorschau.Text = "SWS-Vorschau"; // // buttonSWS_Drucken // - this.buttonSWS_Drucken.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); + this.buttonSWS_Drucken.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.buttonSWS_Drucken.BackColor = System.Drawing.Color.Yellow; this.buttonSWS_Drucken.FlatAppearance.BorderSize = 0; this.buttonSWS_Drucken.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.buttonSWS_Drucken.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.buttonSWS_Drucken.Location = new System.Drawing.Point(2, 635); - this.buttonSWS_Drucken.Margin = new System.Windows.Forms.Padding(2); + this.buttonSWS_Drucken.Location = new System.Drawing.Point(622, 653); this.buttonSWS_Drucken.Name = "buttonSWS_Drucken"; - this.buttonSWS_Drucken.Size = new System.Drawing.Size(281, 41); + this.buttonSWS_Drucken.Size = new System.Drawing.Size(300, 41); this.buttonSWS_Drucken.TabIndex = 36; this.buttonSWS_Drucken.Text = "SWS-Drucken"; this.buttonSWS_Drucken.UseVisualStyleBackColor = false; this.buttonSWS_Drucken.Click += new System.EventHandler(this.ButtonDrucken_Click); // + // pictureBoxEntwurf + // + this.pictureBoxEntwurf.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.pictureBoxEntwurf.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(1)))), ((int)(((byte)(53)))), ((int)(((byte)(101))))); + this.pictureBoxEntwurf.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.pictureBoxEntwurf.Location = new System.Drawing.Point(0, 0); + this.pictureBoxEntwurf.Name = "pictureBoxEntwurf"; + this.pictureBoxEntwurf.Size = new System.Drawing.Size(925, 647); + this.pictureBoxEntwurf.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; + this.pictureBoxEntwurf.TabIndex = 16; + this.pictureBoxEntwurf.TabStop = false; + // // tabPageUmsatz // this.tabPageUmsatz.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(1)))), ((int)(((byte)(53)))), ((int)(((byte)(101))))); @@ -386,9 +390,10 @@ namespace Deckungsbeitrag this.tabPageUmsatz.Controls.Add(this.chartJahresumsatz); this.tabPageUmsatz.Controls.Add(this.olvJahresumsatz); this.tabPageUmsatz.Location = new System.Drawing.Point(4, 29); + this.tabPageUmsatz.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); this.tabPageUmsatz.Name = "tabPageUmsatz"; - this.tabPageUmsatz.Padding = new System.Windows.Forms.Padding(3); - this.tabPageUmsatz.Size = new System.Drawing.Size(907, 678); + this.tabPageUmsatz.Padding = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.tabPageUmsatz.Size = new System.Drawing.Size(925, 697); this.tabPageUmsatz.TabIndex = 0; this.tabPageUmsatz.Text = "Umsatz"; // @@ -397,8 +402,7 @@ namespace Deckungsbeitrag this.labelMonatsumsatz.AutoSize = true; this.labelMonatsumsatz.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.labelMonatsumsatz.ForeColor = System.Drawing.Color.White; - this.labelMonatsumsatz.Location = new System.Drawing.Point(672, 19); - this.labelMonatsumsatz.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); + this.labelMonatsumsatz.Location = new System.Drawing.Point(615, 53); this.labelMonatsumsatz.Name = "labelMonatsumsatz"; this.labelMonatsumsatz.Size = new System.Drawing.Size(136, 20); this.labelMonatsumsatz.TabIndex = 46; @@ -410,14 +414,13 @@ namespace Deckungsbeitrag this.chartMonatsumsatz.ChartAreas.Add(chartArea1); legend1.Name = "Legend1"; this.chartMonatsumsatz.Legends.Add(legend1); - this.chartMonatsumsatz.Location = new System.Drawing.Point(620, 201); - this.chartMonatsumsatz.Margin = new System.Windows.Forms.Padding(2); + this.chartMonatsumsatz.Location = new System.Drawing.Point(619, 309); this.chartMonatsumsatz.Name = "chartMonatsumsatz"; series1.ChartArea = "ChartArea1"; series1.Legend = "Legend1"; series1.Name = "Series1"; this.chartMonatsumsatz.Series.Add(series1); - this.chartMonatsumsatz.Size = new System.Drawing.Size(262, 203); + this.chartMonatsumsatz.Size = new System.Drawing.Size(299, 312); this.chartMonatsumsatz.TabIndex = 45; this.chartMonatsumsatz.Text = "chart1"; // @@ -433,15 +436,14 @@ namespace Deckungsbeitrag this.olvMonatsumsatz.FullRowSelect = true; this.olvMonatsumsatz.GridLines = true; this.olvMonatsumsatz.HideSelection = false; - this.olvMonatsumsatz.Location = new System.Drawing.Point(620, 54); - this.olvMonatsumsatz.Margin = new System.Windows.Forms.Padding(2); + this.olvMonatsumsatz.Location = new System.Drawing.Point(619, 83); this.olvMonatsumsatz.MenuLabelColumns = "Spalten"; this.olvMonatsumsatz.Name = "olvMonatsumsatz"; this.olvMonatsumsatz.SelectColumnsOnRightClickBehaviour = BrightIdeasSoftware.ObjectListView.ColumnSelectBehaviour.Submenu; this.olvMonatsumsatz.SelectedColumnTint = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(176)))), ((int)(((byte)(196)))), ((int)(((byte)(222))))); this.olvMonatsumsatz.ShowGroups = false; this.olvMonatsumsatz.ShowItemToolTips = true; - this.olvMonatsumsatz.Size = new System.Drawing.Size(263, 136); + this.olvMonatsumsatz.Size = new System.Drawing.Size(300, 208); this.olvMonatsumsatz.TabIndex = 44; this.olvMonatsumsatz.TintSortColumn = true; this.olvMonatsumsatz.UseAlternatingBackColors = true; @@ -456,8 +458,7 @@ namespace Deckungsbeitrag this.labelQuartalsumsatz.AutoSize = true; this.labelQuartalsumsatz.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.labelQuartalsumsatz.ForeColor = System.Drawing.Color.White; - this.labelQuartalsumsatz.Location = new System.Drawing.Point(416, 19); - this.labelQuartalsumsatz.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); + this.labelQuartalsumsatz.Location = new System.Drawing.Point(309, 53); this.labelQuartalsumsatz.Name = "labelQuartalsumsatz"; this.labelQuartalsumsatz.Size = new System.Drawing.Size(145, 20); this.labelQuartalsumsatz.TabIndex = 43; @@ -469,14 +470,13 @@ namespace Deckungsbeitrag this.chartQuartalsumsatz.ChartAreas.Add(chartArea2); legend2.Name = "Legend1"; this.chartQuartalsumsatz.Legends.Add(legend2); - this.chartQuartalsumsatz.Location = new System.Drawing.Point(354, 201); - this.chartQuartalsumsatz.Margin = new System.Windows.Forms.Padding(2); + this.chartQuartalsumsatz.Location = new System.Drawing.Point(313, 309); this.chartQuartalsumsatz.Name = "chartQuartalsumsatz"; series2.ChartArea = "ChartArea1"; series2.Legend = "Legend1"; series2.Name = "Series1"; this.chartQuartalsumsatz.Series.Add(series2); - this.chartQuartalsumsatz.Size = new System.Drawing.Size(262, 203); + this.chartQuartalsumsatz.Size = new System.Drawing.Size(300, 312); this.chartQuartalsumsatz.TabIndex = 42; this.chartQuartalsumsatz.Text = "chart1"; // @@ -492,15 +492,14 @@ namespace Deckungsbeitrag this.olvQuartalsumsatz.FullRowSelect = true; this.olvQuartalsumsatz.GridLines = true; this.olvQuartalsumsatz.HideSelection = false; - this.olvQuartalsumsatz.Location = new System.Drawing.Point(354, 54); - this.olvQuartalsumsatz.Margin = new System.Windows.Forms.Padding(2); + this.olvQuartalsumsatz.Location = new System.Drawing.Point(313, 83); this.olvQuartalsumsatz.MenuLabelColumns = "Spalten"; this.olvQuartalsumsatz.Name = "olvQuartalsumsatz"; this.olvQuartalsumsatz.SelectColumnsOnRightClickBehaviour = BrightIdeasSoftware.ObjectListView.ColumnSelectBehaviour.Submenu; this.olvQuartalsumsatz.SelectedColumnTint = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(176)))), ((int)(((byte)(196)))), ((int)(((byte)(222))))); this.olvQuartalsumsatz.ShowGroups = false; this.olvQuartalsumsatz.ShowItemToolTips = true; - this.olvQuartalsumsatz.Size = new System.Drawing.Size(263, 136); + this.olvQuartalsumsatz.Size = new System.Drawing.Size(300, 208); this.olvQuartalsumsatz.TabIndex = 41; this.olvQuartalsumsatz.TintSortColumn = true; this.olvQuartalsumsatz.UseAlternatingBackColors = true; @@ -515,8 +514,7 @@ namespace Deckungsbeitrag this.labelJahresumsatz.AutoSize = true; this.labelJahresumsatz.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.labelJahresumsatz.ForeColor = System.Drawing.Color.White; - this.labelJahresumsatz.Location = new System.Drawing.Point(156, 19); - this.labelJahresumsatz.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); + this.labelJahresumsatz.Location = new System.Drawing.Point(7, 55); this.labelJahresumsatz.Name = "labelJahresumsatz"; this.labelJahresumsatz.Size = new System.Drawing.Size(131, 20); this.labelJahresumsatz.TabIndex = 40; @@ -528,14 +526,13 @@ namespace Deckungsbeitrag this.chartJahresumsatz.ChartAreas.Add(chartArea3); legend3.Name = "Legend1"; this.chartJahresumsatz.Legends.Add(legend3); - this.chartJahresumsatz.Location = new System.Drawing.Point(86, 201); - this.chartJahresumsatz.Margin = new System.Windows.Forms.Padding(2); + this.chartJahresumsatz.Location = new System.Drawing.Point(7, 309); this.chartJahresumsatz.Name = "chartJahresumsatz"; series3.ChartArea = "ChartArea1"; series3.Legend = "Legend1"; series3.Name = "Series1"; this.chartJahresumsatz.Series.Add(series3); - this.chartJahresumsatz.Size = new System.Drawing.Size(262, 203); + this.chartJahresumsatz.Size = new System.Drawing.Size(300, 312); this.chartJahresumsatz.TabIndex = 39; this.chartJahresumsatz.Text = "chart1"; // @@ -551,15 +548,14 @@ namespace Deckungsbeitrag this.olvJahresumsatz.FullRowSelect = true; this.olvJahresumsatz.GridLines = true; this.olvJahresumsatz.HideSelection = false; - this.olvJahresumsatz.Location = new System.Drawing.Point(86, 54); - this.olvJahresumsatz.Margin = new System.Windows.Forms.Padding(2); + this.olvJahresumsatz.Location = new System.Drawing.Point(7, 83); this.olvJahresumsatz.MenuLabelColumns = "Spalten"; this.olvJahresumsatz.Name = "olvJahresumsatz"; this.olvJahresumsatz.SelectColumnsOnRightClickBehaviour = BrightIdeasSoftware.ObjectListView.ColumnSelectBehaviour.Submenu; this.olvJahresumsatz.SelectedColumnTint = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(176)))), ((int)(((byte)(196)))), ((int)(((byte)(222))))); this.olvJahresumsatz.ShowGroups = false; this.olvJahresumsatz.ShowItemToolTips = true; - this.olvJahresumsatz.Size = new System.Drawing.Size(263, 136); + this.olvJahresumsatz.Size = new System.Drawing.Size(300, 208); this.olvJahresumsatz.TabIndex = 38; this.olvJahresumsatz.TintSortColumn = true; this.olvJahresumsatz.UseAlternatingBackColors = true; @@ -575,24 +571,24 @@ namespace Deckungsbeitrag this.tabPageArtikel.Controls.Add(this.buttonSpeichern); this.tabPageArtikel.Controls.Add(this.dGArtikel); this.tabPageArtikel.Location = new System.Drawing.Point(4, 29); + this.tabPageArtikel.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); this.tabPageArtikel.Name = "tabPageArtikel"; - this.tabPageArtikel.Padding = new System.Windows.Forms.Padding(3); - this.tabPageArtikel.Size = new System.Drawing.Size(907, 678); + this.tabPageArtikel.Padding = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.tabPageArtikel.Size = new System.Drawing.Size(925, 697); this.tabPageArtikel.TabIndex = 1; this.tabPageArtikel.Text = "Artikelliste"; // // buttonSpeichern // - this.buttonSpeichern.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); + 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.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.White; - this.buttonSpeichern.Location = new System.Drawing.Point(2, 635); - this.buttonSpeichern.Margin = new System.Windows.Forms.Padding(2); + this.buttonSpeichern.Location = new System.Drawing.Point(618, 648); this.buttonSpeichern.Name = "buttonSpeichern"; - this.buttonSpeichern.Size = new System.Drawing.Size(281, 41); + this.buttonSpeichern.Size = new System.Drawing.Size(300, 41); this.buttonSpeichern.TabIndex = 37; this.buttonSpeichern.Text = "Stand speichern"; this.buttonSpeichern.UseVisualStyleBackColor = false; @@ -615,9 +611,10 @@ namespace Deckungsbeitrag this.StandBearbeitet, this.FehlmengeBearbeitet, this.KorrekturBearbeitet}); - this.dGArtikel.Location = new System.Drawing.Point(3, 3); + this.dGArtikel.Location = new System.Drawing.Point(4, 5); + this.dGArtikel.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); this.dGArtikel.Name = "dGArtikel"; - this.dGArtikel.Size = new System.Drawing.Size(901, 630); + this.dGArtikel.Size = new System.Drawing.Size(913, 635); this.dGArtikel.TabIndex = 11; this.dGArtikel.CellBeginEdit += new System.Windows.Forms.DataGridViewCellCancelEventHandler(this.dGArtikel_CellBeginEdit); this.dGArtikel.CellValueChanged += new System.Windows.Forms.DataGridViewCellEventHandler(this.dGArtikel_CellValueChanged); @@ -681,10 +678,9 @@ namespace Deckungsbeitrag this.buttonNextKunde.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.buttonNextKunde.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.buttonNextKunde.ForeColor = System.Drawing.SystemColors.ControlText; - this.buttonNextKunde.Location = new System.Drawing.Point(10, 11); - this.buttonNextKunde.Margin = new System.Windows.Forms.Padding(2); + this.buttonNextKunde.Location = new System.Drawing.Point(13, 17); this.buttonNextKunde.Name = "buttonNextKunde"; - this.buttonNextKunde.Size = new System.Drawing.Size(281, 41); + this.buttonNextKunde.Size = new System.Drawing.Size(350, 41); this.buttonNextKunde.TabIndex = 45; this.buttonNextKunde.Text = "Nächster Kunde"; this.buttonNextKunde.UseVisualStyleBackColor = false; @@ -695,8 +691,7 @@ namespace Deckungsbeitrag 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.ForeColor = System.Drawing.Color.White; - this.label3.Location = new System.Drawing.Point(6, 322); - this.label3.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); + this.label3.Location = new System.Drawing.Point(9, 336); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(61, 20); this.label3.TabIndex = 47; @@ -706,43 +701,27 @@ namespace Deckungsbeitrag // this.comboBoxService.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.comboBoxService.FormattingEnabled = true; - this.comboBoxService.Location = new System.Drawing.Point(10, 346); + this.comboBoxService.Location = new System.Drawing.Point(13, 361); + this.comboBoxService.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); this.comboBoxService.Name = "comboBoxService"; - this.comboBoxService.Size = new System.Drawing.Size(248, 28); + this.comboBoxService.Size = new System.Drawing.Size(315, 28); this.comboBoxService.TabIndex = 48; this.comboBoxService.SelectedValueChanged += new System.EventHandler(this.comboBoxService_SelectedValueChanged); // // buttonServiceBearbeiten // this.buttonServiceBearbeiten.Image = global::Deckungsbeitrag.Properties.Resources.PenOne_16x; - this.buttonServiceBearbeiten.Location = new System.Drawing.Point(263, 346); - this.buttonServiceBearbeiten.Margin = new System.Windows.Forms.Padding(2); + this.buttonServiceBearbeiten.Location = new System.Drawing.Point(337, 361); this.buttonServiceBearbeiten.Name = "buttonServiceBearbeiten"; this.buttonServiceBearbeiten.Size = new System.Drawing.Size(28, 28); this.buttonServiceBearbeiten.TabIndex = 49; this.buttonServiceBearbeiten.UseVisualStyleBackColor = true; this.buttonServiceBearbeiten.Click += new System.EventHandler(this.buttonServiceBearbeiten_Click); // - // pictureBoxEntwurf - // - this.pictureBoxEntwurf.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) - | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.pictureBoxEntwurf.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(1)))), ((int)(((byte)(53)))), ((int)(((byte)(101))))); - this.pictureBoxEntwurf.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.pictureBoxEntwurf.Location = new System.Drawing.Point(0, 0); - this.pictureBoxEntwurf.Margin = new System.Windows.Forms.Padding(2); - this.pictureBoxEntwurf.Name = "pictureBoxEntwurf"; - this.pictureBoxEntwurf.Size = new System.Drawing.Size(911, 631); - this.pictureBoxEntwurf.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; - this.pictureBoxEntwurf.TabIndex = 16; - this.pictureBoxEntwurf.TabStop = false; - // // buttonAufgEnt // this.buttonAufgEnt.Image = global::Deckungsbeitrag.Properties.Resources.Close_red_16x; - this.buttonAufgEnt.Location = new System.Drawing.Point(142, 404); - this.buttonAufgEnt.Margin = new System.Windows.Forms.Padding(2); + this.buttonAufgEnt.Location = new System.Drawing.Point(337, 417); this.buttonAufgEnt.Name = "buttonAufgEnt"; this.buttonAufgEnt.Size = new System.Drawing.Size(28, 28); this.buttonAufgEnt.TabIndex = 43; @@ -751,21 +730,75 @@ namespace Deckungsbeitrag // // pictureBoxQRCode // + this.pictureBoxQRCode.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.pictureBoxQRCode.BackColor = System.Drawing.Color.Transparent; this.pictureBoxQRCode.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.pictureBoxQRCode.Location = new System.Drawing.Point(174, 404); - this.pictureBoxQRCode.Margin = new System.Windows.Forms.Padding(2); + this.pictureBoxQRCode.Location = new System.Drawing.Point(13, 613); this.pictureBoxQRCode.Name = "pictureBoxQRCode"; - this.pictureBoxQRCode.Size = new System.Drawing.Size(117, 117); + this.pictureBoxQRCode.Size = new System.Drawing.Size(350, 87); this.pictureBoxQRCode.TabIndex = 27; this.pictureBoxQRCode.TabStop = false; // + // textBoxAnmerkung + // + this.textBoxAnmerkung.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Left))); + this.textBoxAnmerkung.Location = new System.Drawing.Point(13, 471); + this.textBoxAnmerkung.MaxLength = 200; + this.textBoxAnmerkung.Multiline = true; + this.textBoxAnmerkung.Name = "textBoxAnmerkung"; + this.textBoxAnmerkung.Size = new System.Drawing.Size(352, 136); + this.textBoxAnmerkung.TabIndex = 50; + this.textBoxAnmerkung.TextChanged += new System.EventHandler(this.textBoxAnmerkung_TextChanged); + this.textBoxAnmerkung.Leave += new System.EventHandler(this.textBoxAnmerkung_Leave); + // + // label4 + // + 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.ForeColor = System.Drawing.Color.White; + this.label4.Location = new System.Drawing.Point(9, 448); + this.label4.Name = "label4"; + this.label4.Size = new System.Drawing.Size(109, 20); + this.label4.TabIndex = 51; + this.label4.Text = "Anmerkungen"; + // + // labelAnzahlChars + // + this.labelAnzahlChars.AutoSize = true; + this.labelAnzahlChars.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.labelAnzahlChars.ForeColor = System.Drawing.Color.White; + this.labelAnzahlChars.Location = new System.Drawing.Point(312, 451); + this.labelAnzahlChars.Name = "labelAnzahlChars"; + this.labelAnzahlChars.Size = new System.Drawing.Size(53, 16); + this.labelAnzahlChars.TabIndex = 52; + this.labelAnzahlChars.Text = "000/000"; + // + // numericUpDownAufgabeCount + // + this.numericUpDownAufgabeCount.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.numericUpDownAufgabeCount.Location = new System.Drawing.Point(282, 417); + this.numericUpDownAufgabeCount.Maximum = new decimal(new int[] { + 99, + 0, + 0, + 0}); + this.numericUpDownAufgabeCount.Name = "numericUpDownAufgabeCount"; + this.numericUpDownAufgabeCount.Size = new System.Drawing.Size(46, 29); + this.numericUpDownAufgabeCount.TabIndex = 53; + this.numericUpDownAufgabeCount.ValueChanged += new System.EventHandler(this.numericUpDownAufgabeCount_ValueChanged); + this.numericUpDownAufgabeCount.Leave += new System.EventHandler(this.numericUpDownAufgabeCount_Leave); + // // FormKundeVW // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; + this.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(1)))), ((int)(((byte)(53)))), ((int)(((byte)(101))))); - this.ClientSize = new System.Drawing.Size(1224, 725); + this.ClientSize = new System.Drawing.Size(1318, 761); + this.Controls.Add(this.numericUpDownAufgabeCount); + this.Controls.Add(this.labelAnzahlChars); + this.Controls.Add(this.label4); + this.Controls.Add(this.textBoxAnmerkung); this.Controls.Add(this.buttonServiceBearbeiten); this.Controls.Add(this.comboBoxService); this.Controls.Add(this.label3); @@ -793,16 +826,17 @@ namespace Deckungsbeitrag this.Controls.Add(this.textBoxKundeName); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); - this.Margin = new System.Windows.Forms.Padding(2); - this.MinimumSize = new System.Drawing.Size(647, 615); + this.MinimumSize = new System.Drawing.Size(962, 800); this.Name = "FormKundeVW"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "KUNDENVERWALTUNG"; + this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FormKundeVW_FormClosing); this.Load += new System.EventHandler(this.KundeDaten_Load); this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.KundeDaten_KeyDown); this.contextMenuStrip1.ResumeLayout(false); this.tabControlKunde.ResumeLayout(false); this.tabPageVorschau.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.pictureBoxEntwurf)).EndInit(); this.tabPageUmsatz.ResumeLayout(false); this.tabPageUmsatz.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.chartMonatsumsatz)).EndInit(); @@ -813,8 +847,8 @@ namespace Deckungsbeitrag ((System.ComponentModel.ISupportInitialize)(this.olvJahresumsatz)).EndInit(); this.tabPageArtikel.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.dGArtikel)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBoxEntwurf)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.pictureBoxQRCode)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.numericUpDownAufgabeCount)).EndInit(); this.ResumeLayout(false); this.PerformLayout(); @@ -846,15 +880,7 @@ namespace Deckungsbeitrag private System.Windows.Forms.ToolStripMenuItem nächsterKundeToolStripMenuItem; private System.Windows.Forms.TabControl tabControlKunde; private System.Windows.Forms.TabPage tabPageUmsatz; - private System.Windows.Forms.Label labelMonatsumsatz; private System.Windows.Forms.DataVisualization.Charting.Chart chartMonatsumsatz; - private BrightIdeasSoftware.ObjectListView olvMonatsumsatz; - private System.Windows.Forms.Label labelQuartalsumsatz; - private System.Windows.Forms.DataVisualization.Charting.Chart chartQuartalsumsatz; - private BrightIdeasSoftware.ObjectListView olvQuartalsumsatz; - private System.Windows.Forms.Label labelJahresumsatz; - private System.Windows.Forms.DataVisualization.Charting.Chart chartJahresumsatz; - private BrightIdeasSoftware.ObjectListView olvJahresumsatz; private System.Windows.Forms.TabPage tabPageArtikel; private System.Windows.Forms.DataGridView dGArtikel; private System.Windows.Forms.DataGridViewTextBoxColumn KundeArtikelID; @@ -874,6 +900,18 @@ namespace Deckungsbeitrag private System.Windows.Forms.Label label3; private System.Windows.Forms.ComboBox comboBoxService; private System.Windows.Forms.Button buttonServiceBearbeiten; + private System.Windows.Forms.TextBox textBoxAnmerkung; + private System.Windows.Forms.Label label4; + private System.Windows.Forms.Label labelMonatsumsatz; + private BrightIdeasSoftware.ObjectListView olvMonatsumsatz; + private System.Windows.Forms.Label labelQuartalsumsatz; + private System.Windows.Forms.DataVisualization.Charting.Chart chartQuartalsumsatz; + private BrightIdeasSoftware.ObjectListView olvQuartalsumsatz; + private System.Windows.Forms.Label labelJahresumsatz; + private System.Windows.Forms.DataVisualization.Charting.Chart chartJahresumsatz; + private BrightIdeasSoftware.ObjectListView olvJahresumsatz; + private System.Windows.Forms.Label labelAnzahlChars; + private System.Windows.Forms.NumericUpDown numericUpDownAufgabeCount; } } diff --git a/AA-Forms/FormListe.cs b/AA-Forms/FormListe.cs index 7827abf..521da10 100644 --- a/AA-Forms/FormListe.cs +++ b/AA-Forms/FormListe.cs @@ -65,7 +65,7 @@ namespace Deckungsbeitrag { // Timer für Wartezeit bis TextChanged eintritt. timer = new Timer(); - timer.Interval = 1000; // 1 Sekunden + timer.Interval = 700; // 0,7 Sekunden timer.Tick += Timer_Tick; this.buttonOK.Visible = this.buttonOK.Enabled = false; @@ -249,9 +249,9 @@ namespace Deckungsbeitrag } else { - if (this.listViewKunde.SelectedItems.Count == 1) + if (this.listViewKunde.Items.Count == 1) { - kunde = (Kunde)this.listViewKunde.SelectedItems[0].Tag; + kunde = (Kunde)this.listViewKunde.Items[0].Tag; } else return; } diff --git a/AA-Forms/FormMain.Designer.cs b/AA-Forms/FormMain.Designer.cs index c670cfe..df2ee3a 100644 --- a/AA-Forms/FormMain.Designer.cs +++ b/AA-Forms/FormMain.Designer.cs @@ -121,7 +121,8 @@ namespace Deckungsbeitrag this.toolStripMenu.LayoutStyle = System.Windows.Forms.ToolStripLayoutStyle.VerticalStackWithOverflow; this.toolStripMenu.Location = new System.Drawing.Point(0, 0); this.toolStripMenu.Name = "toolStripMenu"; - this.toolStripMenu.Size = new System.Drawing.Size(212, 689); + this.toolStripMenu.Padding = new System.Windows.Forms.Padding(0, 0, 2, 0); + this.toolStripMenu.Size = new System.Drawing.Size(318, 1060); this.toolStripMenu.TabIndex = 0; this.toolStripMenu.Text = "toolStripMenu"; // @@ -406,10 +407,9 @@ namespace Deckungsbeitrag this.panelMain.Controls.Add(this.groupBoxAuftrag); this.panelMain.Controls.Add(this.groupBoxScannTest); this.panelMain.Dock = System.Windows.Forms.DockStyle.Right; - this.panelMain.Location = new System.Drawing.Point(218, 0); - this.panelMain.Margin = new System.Windows.Forms.Padding(2); + this.panelMain.Location = new System.Drawing.Point(327, 0); this.panelMain.Name = "panelMain"; - this.panelMain.Size = new System.Drawing.Size(938, 689); + this.panelMain.Size = new System.Drawing.Size(1407, 1060); this.panelMain.TabIndex = 5; this.panelMain.DragDrop += new System.Windows.Forms.DragEventHandler(this.panelMain_DragDrop); this.panelMain.DragEnter += new System.Windows.Forms.DragEventHandler(this.panelMain_DragEnter); @@ -424,10 +424,9 @@ namespace Deckungsbeitrag this.buttonNeuerUser.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.buttonNeuerUser.ForeColor = System.Drawing.Color.Black; this.buttonNeuerUser.ImageAlign = System.Drawing.ContentAlignment.MiddleRight; - this.buttonNeuerUser.Location = new System.Drawing.Point(8, 65); - this.buttonNeuerUser.Margin = new System.Windows.Forms.Padding(2); + this.buttonNeuerUser.Location = new System.Drawing.Point(12, 100); this.buttonNeuerUser.Name = "buttonNeuerUser"; - this.buttonNeuerUser.Size = new System.Drawing.Size(200, 41); + this.buttonNeuerUser.Size = new System.Drawing.Size(300, 63); this.buttonNeuerUser.TabIndex = 62; this.buttonNeuerUser.Text = "Neuer User"; this.buttonNeuerUser.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText; @@ -441,9 +440,11 @@ namespace Deckungsbeitrag this.groupBoxStatistik.Controls.Add(this.dateTimePicker1); this.groupBoxStatistik.Controls.Add(this.tableLayoutPanelStatistik); this.groupBoxStatistik.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(1)))), ((int)(((byte)(53)))), ((int)(((byte)(101))))); - this.groupBoxStatistik.Location = new System.Drawing.Point(8, 321); + this.groupBoxStatistik.Location = new System.Drawing.Point(12, 494); + this.groupBoxStatistik.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); this.groupBoxStatistik.Name = "groupBoxStatistik"; - this.groupBoxStatistik.Size = new System.Drawing.Size(279, 197); + this.groupBoxStatistik.Padding = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.groupBoxStatistik.Size = new System.Drawing.Size(418, 303); this.groupBoxStatistik.TabIndex = 61; this.groupBoxStatistik.TabStop = false; this.groupBoxStatistik.Text = "STATISTIK"; @@ -454,9 +455,10 @@ namespace Deckungsbeitrag this.dateTimePicker1.CustomFormat = "dddd dd.MM.yyyy"; this.dateTimePicker1.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.dateTimePicker1.Format = System.Windows.Forms.DateTimePickerFormat.Custom; - this.dateTimePicker1.Location = new System.Drawing.Point(10, 19); + this.dateTimePicker1.Location = new System.Drawing.Point(15, 29); + this.dateTimePicker1.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); this.dateTimePicker1.Name = "dateTimePicker1"; - this.dateTimePicker1.Size = new System.Drawing.Size(224, 26); + this.dateTimePicker1.Size = new System.Drawing.Size(334, 26); this.dateTimePicker1.TabIndex = 1; this.dateTimePicker1.CloseUp += new System.EventHandler(this.dateTimePicker1_CloseUp); // @@ -478,7 +480,8 @@ namespace Deckungsbeitrag this.tableLayoutPanelStatistik.Controls.Add(this.labelZahl1, 1, 0); this.tableLayoutPanelStatistik.Controls.Add(this.labelStatistik1, 0, 0); this.tableLayoutPanelStatistik.Dock = System.Windows.Forms.DockStyle.Bottom; - this.tableLayoutPanelStatistik.Location = new System.Drawing.Point(3, 51); + this.tableLayoutPanelStatistik.Location = new System.Drawing.Point(4, 78); + this.tableLayoutPanelStatistik.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); this.tableLayoutPanelStatistik.Name = "tableLayoutPanelStatistik"; this.tableLayoutPanelStatistik.RowCount = 6; this.tableLayoutPanelStatistik.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 16.66667F)); @@ -487,7 +490,7 @@ namespace Deckungsbeitrag this.tableLayoutPanelStatistik.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 16.66667F)); this.tableLayoutPanelStatistik.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 16.66667F)); this.tableLayoutPanelStatistik.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 16.66667F)); - this.tableLayoutPanelStatistik.Size = new System.Drawing.Size(273, 143); + this.tableLayoutPanelStatistik.Size = new System.Drawing.Size(410, 220); this.tableLayoutPanelStatistik.TabIndex = 0; this.tableLayoutPanelStatistik.MouseDown += new System.Windows.Forms.MouseEventHandler(this.groupBox_MouseDown); this.tableLayoutPanelStatistik.MouseMove += new System.Windows.Forms.MouseEventHandler(this.groupBox_MouseMove); @@ -499,9 +502,10 @@ namespace Deckungsbeitrag this.labelZahl6.Dock = System.Windows.Forms.DockStyle.Left; this.labelZahl6.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.labelZahl6.ForeColor = System.Drawing.SystemColors.ControlText; - this.labelZahl6.Location = new System.Drawing.Point(99, 115); + this.labelZahl6.Location = new System.Drawing.Point(102, 180); + this.labelZahl6.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.labelZahl6.Name = "labelZahl6"; - this.labelZahl6.Size = new System.Drawing.Size(53, 28); + this.labelZahl6.Size = new System.Drawing.Size(53, 40); this.labelZahl6.TabIndex = 11; this.labelZahl6.Text = "Zahl 6"; this.labelZahl6.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; @@ -512,9 +516,10 @@ namespace Deckungsbeitrag this.labelStatistik6.Dock = System.Windows.Forms.DockStyle.Left; this.labelStatistik6.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.labelStatistik6.ForeColor = System.Drawing.SystemColors.ControlText; - this.labelStatistik6.Location = new System.Drawing.Point(3, 115); + this.labelStatistik6.Location = new System.Drawing.Point(4, 180); + this.labelStatistik6.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.labelStatistik6.Name = "labelStatistik6"; - this.labelStatistik6.Size = new System.Drawing.Size(90, 28); + this.labelStatistik6.Size = new System.Drawing.Size(90, 40); this.labelStatistik6.TabIndex = 10; this.labelStatistik6.Text = "Statistik 6"; this.labelStatistik6.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; @@ -525,9 +530,10 @@ namespace Deckungsbeitrag this.labelZahl5.Dock = System.Windows.Forms.DockStyle.Left; this.labelZahl5.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.labelZahl5.ForeColor = System.Drawing.SystemColors.ControlText; - this.labelZahl5.Location = new System.Drawing.Point(99, 92); + this.labelZahl5.Location = new System.Drawing.Point(102, 144); + this.labelZahl5.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.labelZahl5.Name = "labelZahl5"; - this.labelZahl5.Size = new System.Drawing.Size(53, 23); + this.labelZahl5.Size = new System.Drawing.Size(53, 36); this.labelZahl5.TabIndex = 9; this.labelZahl5.Text = "Zahl 5"; this.labelZahl5.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; @@ -538,9 +544,10 @@ namespace Deckungsbeitrag this.labelStatistik5.Dock = System.Windows.Forms.DockStyle.Left; this.labelStatistik5.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.labelStatistik5.ForeColor = System.Drawing.SystemColors.ControlText; - this.labelStatistik5.Location = new System.Drawing.Point(3, 92); + this.labelStatistik5.Location = new System.Drawing.Point(4, 144); + this.labelStatistik5.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.labelStatistik5.Name = "labelStatistik5"; - this.labelStatistik5.Size = new System.Drawing.Size(90, 23); + this.labelStatistik5.Size = new System.Drawing.Size(90, 36); this.labelStatistik5.TabIndex = 8; this.labelStatistik5.Text = "Statistik 5"; this.labelStatistik5.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; @@ -551,9 +558,10 @@ namespace Deckungsbeitrag this.labelZahl4.Dock = System.Windows.Forms.DockStyle.Left; this.labelZahl4.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.labelZahl4.ForeColor = System.Drawing.SystemColors.ControlText; - this.labelZahl4.Location = new System.Drawing.Point(99, 69); + this.labelZahl4.Location = new System.Drawing.Point(102, 108); + this.labelZahl4.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.labelZahl4.Name = "labelZahl4"; - this.labelZahl4.Size = new System.Drawing.Size(53, 23); + this.labelZahl4.Size = new System.Drawing.Size(53, 36); this.labelZahl4.TabIndex = 7; this.labelZahl4.Text = "Zahl 4"; this.labelZahl4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; @@ -564,9 +572,10 @@ namespace Deckungsbeitrag this.labelStatistik4.Dock = System.Windows.Forms.DockStyle.Left; this.labelStatistik4.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.labelStatistik4.ForeColor = System.Drawing.SystemColors.ControlText; - this.labelStatistik4.Location = new System.Drawing.Point(3, 69); + this.labelStatistik4.Location = new System.Drawing.Point(4, 108); + this.labelStatistik4.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.labelStatistik4.Name = "labelStatistik4"; - this.labelStatistik4.Size = new System.Drawing.Size(90, 23); + this.labelStatistik4.Size = new System.Drawing.Size(90, 36); this.labelStatistik4.TabIndex = 6; this.labelStatistik4.Text = "Statistik 4"; this.labelStatistik4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; @@ -577,9 +586,10 @@ namespace Deckungsbeitrag this.labelZahl3.Dock = System.Windows.Forms.DockStyle.Left; this.labelZahl3.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.labelZahl3.ForeColor = System.Drawing.SystemColors.ControlText; - this.labelZahl3.Location = new System.Drawing.Point(99, 46); + this.labelZahl3.Location = new System.Drawing.Point(102, 72); + this.labelZahl3.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.labelZahl3.Name = "labelZahl3"; - this.labelZahl3.Size = new System.Drawing.Size(53, 23); + this.labelZahl3.Size = new System.Drawing.Size(53, 36); this.labelZahl3.TabIndex = 5; this.labelZahl3.Text = "Zahl 3"; this.labelZahl3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; @@ -590,9 +600,10 @@ namespace Deckungsbeitrag this.labelStatistik3.Dock = System.Windows.Forms.DockStyle.Left; this.labelStatistik3.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.labelStatistik3.ForeColor = System.Drawing.SystemColors.ControlText; - this.labelStatistik3.Location = new System.Drawing.Point(3, 46); + this.labelStatistik3.Location = new System.Drawing.Point(4, 72); + this.labelStatistik3.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.labelStatistik3.Name = "labelStatistik3"; - this.labelStatistik3.Size = new System.Drawing.Size(90, 23); + this.labelStatistik3.Size = new System.Drawing.Size(90, 36); this.labelStatistik3.TabIndex = 4; this.labelStatistik3.Text = "Statistik 3"; this.labelStatistik3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; @@ -603,9 +614,10 @@ namespace Deckungsbeitrag this.labelZahl2.Dock = System.Windows.Forms.DockStyle.Left; this.labelZahl2.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.labelZahl2.ForeColor = System.Drawing.SystemColors.ControlText; - this.labelZahl2.Location = new System.Drawing.Point(99, 23); + this.labelZahl2.Location = new System.Drawing.Point(102, 36); + this.labelZahl2.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.labelZahl2.Name = "labelZahl2"; - this.labelZahl2.Size = new System.Drawing.Size(53, 23); + this.labelZahl2.Size = new System.Drawing.Size(53, 36); this.labelZahl2.TabIndex = 3; this.labelZahl2.Text = "Zahl 2"; this.labelZahl2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; @@ -616,9 +628,10 @@ namespace Deckungsbeitrag this.labelStatistik2.Dock = System.Windows.Forms.DockStyle.Left; this.labelStatistik2.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.labelStatistik2.ForeColor = System.Drawing.SystemColors.ControlText; - this.labelStatistik2.Location = new System.Drawing.Point(3, 23); + this.labelStatistik2.Location = new System.Drawing.Point(4, 36); + this.labelStatistik2.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.labelStatistik2.Name = "labelStatistik2"; - this.labelStatistik2.Size = new System.Drawing.Size(90, 23); + this.labelStatistik2.Size = new System.Drawing.Size(90, 36); this.labelStatistik2.TabIndex = 2; this.labelStatistik2.Text = "Statistik 2"; this.labelStatistik2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; @@ -629,9 +642,10 @@ namespace Deckungsbeitrag this.labelZahl1.Dock = System.Windows.Forms.DockStyle.Left; this.labelZahl1.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.labelZahl1.ForeColor = System.Drawing.SystemColors.ControlText; - this.labelZahl1.Location = new System.Drawing.Point(99, 0); + this.labelZahl1.Location = new System.Drawing.Point(102, 0); + this.labelZahl1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.labelZahl1.Name = "labelZahl1"; - this.labelZahl1.Size = new System.Drawing.Size(53, 23); + this.labelZahl1.Size = new System.Drawing.Size(53, 36); this.labelZahl1.TabIndex = 1; this.labelZahl1.Text = "Zahl 1"; this.labelZahl1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; @@ -642,9 +656,10 @@ namespace Deckungsbeitrag this.labelStatistik1.Dock = System.Windows.Forms.DockStyle.Left; this.labelStatistik1.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.labelStatistik1.ForeColor = System.Drawing.SystemColors.ControlText; - this.labelStatistik1.Location = new System.Drawing.Point(3, 0); + this.labelStatistik1.Location = new System.Drawing.Point(4, 0); + this.labelStatistik1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.labelStatistik1.Name = "labelStatistik1"; - this.labelStatistik1.Size = new System.Drawing.Size(90, 23); + this.labelStatistik1.Size = new System.Drawing.Size(90, 36); this.labelStatistik1.TabIndex = 0; this.labelStatistik1.Text = "Statistik 1"; this.labelStatistik1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; @@ -653,9 +668,11 @@ namespace Deckungsbeitrag // this.groupBoxUpdate.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.groupBoxUpdate.Controls.Add(this.tableLayoutPanelUpdate); - this.groupBoxUpdate.Location = new System.Drawing.Point(8, 573); + this.groupBoxUpdate.Location = new System.Drawing.Point(12, 882); + this.groupBoxUpdate.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); this.groupBoxUpdate.Name = "groupBoxUpdate"; - this.groupBoxUpdate.Size = new System.Drawing.Size(573, 110); + this.groupBoxUpdate.Padding = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.groupBoxUpdate.Size = new System.Drawing.Size(860, 169); this.groupBoxUpdate.TabIndex = 60; this.groupBoxUpdate.TabStop = false; this.groupBoxUpdate.Text = "UPDATE"; @@ -671,21 +688,23 @@ namespace Deckungsbeitrag this.tableLayoutPanelUpdate.Controls.Add(this.progressBarArtikel, 1, 0); this.tableLayoutPanelUpdate.Controls.Add(this.buttonAllUpdate, 0, 2); this.tableLayoutPanelUpdate.Dock = System.Windows.Forms.DockStyle.Fill; - this.tableLayoutPanelUpdate.Location = new System.Drawing.Point(3, 16); + this.tableLayoutPanelUpdate.Location = new System.Drawing.Point(4, 24); + this.tableLayoutPanelUpdate.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); this.tableLayoutPanelUpdate.Name = "tableLayoutPanelUpdate"; this.tableLayoutPanelUpdate.RowCount = 3; this.tableLayoutPanelUpdate.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 33.33333F)); this.tableLayoutPanelUpdate.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 33.33333F)); this.tableLayoutPanelUpdate.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 33.33333F)); - this.tableLayoutPanelUpdate.Size = new System.Drawing.Size(567, 91); + this.tableLayoutPanelUpdate.Size = new System.Drawing.Size(852, 140); this.tableLayoutPanelUpdate.TabIndex = 0; // // progressBarSortiment // this.progressBarSortiment.Dock = System.Windows.Forms.DockStyle.Left; - this.progressBarSortiment.Location = new System.Drawing.Point(144, 33); + this.progressBarSortiment.Location = new System.Drawing.Point(217, 51); + this.progressBarSortiment.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); this.progressBarSortiment.Name = "progressBarSortiment"; - this.progressBarSortiment.Size = new System.Drawing.Size(420, 24); + this.progressBarSortiment.Size = new System.Drawing.Size(630, 36); this.progressBarSortiment.TabIndex = 62; // // buttonSortimentUpdate @@ -693,10 +712,9 @@ namespace Deckungsbeitrag this.buttonSortimentUpdate.BackColor = System.Drawing.Color.White; this.buttonSortimentUpdate.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.buttonSortimentUpdate.ImageAlign = System.Drawing.ContentAlignment.MiddleRight; - this.buttonSortimentUpdate.Location = new System.Drawing.Point(2, 32); - this.buttonSortimentUpdate.Margin = new System.Windows.Forms.Padding(2); + this.buttonSortimentUpdate.Location = new System.Drawing.Point(3, 49); this.buttonSortimentUpdate.Name = "buttonSortimentUpdate"; - this.buttonSortimentUpdate.Size = new System.Drawing.Size(137, 26); + this.buttonSortimentUpdate.Size = new System.Drawing.Size(206, 37); this.buttonSortimentUpdate.TabIndex = 61; this.buttonSortimentUpdate.Text = "Sortiment-Update"; this.buttonSortimentUpdate.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText; @@ -708,10 +726,9 @@ namespace Deckungsbeitrag this.buttonArtikelUpdate.BackColor = System.Drawing.Color.White; this.buttonArtikelUpdate.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.buttonArtikelUpdate.ImageAlign = System.Drawing.ContentAlignment.MiddleRight; - this.buttonArtikelUpdate.Location = new System.Drawing.Point(2, 2); - this.buttonArtikelUpdate.Margin = new System.Windows.Forms.Padding(2); + this.buttonArtikelUpdate.Location = new System.Drawing.Point(3, 3); this.buttonArtikelUpdate.Name = "buttonArtikelUpdate"; - this.buttonArtikelUpdate.Size = new System.Drawing.Size(137, 26); + this.buttonArtikelUpdate.Size = new System.Drawing.Size(206, 37); this.buttonArtikelUpdate.TabIndex = 59; this.buttonArtikelUpdate.Text = "Artikel-Update"; this.buttonArtikelUpdate.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText; @@ -721,9 +738,10 @@ namespace Deckungsbeitrag // progressBarArtikel // this.progressBarArtikel.Dock = System.Windows.Forms.DockStyle.Left; - this.progressBarArtikel.Location = new System.Drawing.Point(144, 3); + this.progressBarArtikel.Location = new System.Drawing.Point(217, 5); + this.progressBarArtikel.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); this.progressBarArtikel.Name = "progressBarArtikel"; - this.progressBarArtikel.Size = new System.Drawing.Size(420, 24); + this.progressBarArtikel.Size = new System.Drawing.Size(630, 36); this.progressBarArtikel.TabIndex = 58; // // buttonAllUpdate @@ -731,10 +749,9 @@ namespace Deckungsbeitrag this.buttonAllUpdate.BackColor = System.Drawing.Color.White; this.buttonAllUpdate.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.buttonAllUpdate.ImageAlign = System.Drawing.ContentAlignment.MiddleRight; - this.buttonAllUpdate.Location = new System.Drawing.Point(2, 62); - this.buttonAllUpdate.Margin = new System.Windows.Forms.Padding(2); + this.buttonAllUpdate.Location = new System.Drawing.Point(3, 95); this.buttonAllUpdate.Name = "buttonAllUpdate"; - this.buttonAllUpdate.Size = new System.Drawing.Size(137, 27); + this.buttonAllUpdate.Size = new System.Drawing.Size(206, 38); this.buttonAllUpdate.TabIndex = 60; this.buttonAllUpdate.Text = "Alle-Updates starten"; this.buttonAllUpdate.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText; @@ -750,10 +767,9 @@ namespace Deckungsbeitrag this.buttonNeuerAuftrag.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.buttonNeuerAuftrag.ForeColor = System.Drawing.Color.White; this.buttonNeuerAuftrag.ImageAlign = System.Drawing.ContentAlignment.MiddleRight; - this.buttonNeuerAuftrag.Location = new System.Drawing.Point(8, 9); - this.buttonNeuerAuftrag.Margin = new System.Windows.Forms.Padding(2); + this.buttonNeuerAuftrag.Location = new System.Drawing.Point(12, 14); this.buttonNeuerAuftrag.Name = "buttonNeuerAuftrag"; - this.buttonNeuerAuftrag.Size = new System.Drawing.Size(200, 41); + this.buttonNeuerAuftrag.Size = new System.Drawing.Size(300, 63); this.buttonNeuerAuftrag.TabIndex = 56; this.buttonNeuerAuftrag.Text = "Neuer Auftrag"; this.buttonNeuerAuftrag.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText; @@ -775,9 +791,11 @@ namespace Deckungsbeitrag this.groupBoxAuftrag.Controls.Add(this.rBAlle); this.groupBoxAuftrag.Controls.Add(this.buttonAufAbruf); this.groupBoxAuftrag.Controls.Add(this.buttonAusgeliefert); - this.groupBoxAuftrag.Location = new System.Drawing.Point(662, 150); + this.groupBoxAuftrag.Location = new System.Drawing.Point(993, 231); + this.groupBoxAuftrag.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); this.groupBoxAuftrag.Name = "groupBoxAuftrag"; - this.groupBoxAuftrag.Size = new System.Drawing.Size(663, 479); + this.groupBoxAuftrag.Padding = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.groupBoxAuftrag.Size = new System.Drawing.Size(994, 737); this.groupBoxAuftrag.TabIndex = 51; this.groupBoxAuftrag.TabStop = false; this.groupBoxAuftrag.Visible = false; @@ -795,9 +813,10 @@ namespace Deckungsbeitrag this.objectListViewAuftrag.FullRowSelect = true; this.objectListViewAuftrag.GridLines = true; this.objectListViewAuftrag.HideSelection = false; - this.objectListViewAuftrag.Location = new System.Drawing.Point(165, 14); + this.objectListViewAuftrag.Location = new System.Drawing.Point(248, 22); + this.objectListViewAuftrag.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); this.objectListViewAuftrag.Name = "objectListViewAuftrag"; - this.objectListViewAuftrag.Size = new System.Drawing.Size(492, 459); + this.objectListViewAuftrag.Size = new System.Drawing.Size(738, 706); this.objectListViewAuftrag.TabIndex = 58; this.objectListViewAuftrag.UseAlternatingBackColors = true; this.objectListViewAuftrag.UseCompatibleStateImageBehavior = false; @@ -809,7 +828,8 @@ namespace Deckungsbeitrag this.rBAufAbruf.AutoSize = true; this.rBAufAbruf.CheckAlign = System.Drawing.ContentAlignment.MiddleRight; this.rBAufAbruf.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.rBAufAbruf.Location = new System.Drawing.Point(44, 136); + this.rBAufAbruf.Location = new System.Drawing.Point(66, 209); + this.rBAufAbruf.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); this.rBAufAbruf.Name = "rBAufAbruf"; this.rBAufAbruf.Size = new System.Drawing.Size(95, 24); this.rBAufAbruf.TabIndex = 57; @@ -824,7 +844,8 @@ namespace Deckungsbeitrag this.rBAusgeliefert.AutoSize = true; this.rBAusgeliefert.CheckAlign = System.Drawing.ContentAlignment.MiddleRight; this.rBAusgeliefert.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.rBAusgeliefert.Location = new System.Drawing.Point(27, 106); + this.rBAusgeliefert.Location = new System.Drawing.Point(40, 163); + this.rBAusgeliefert.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); this.rBAusgeliefert.Name = "rBAusgeliefert"; this.rBAusgeliefert.Size = new System.Drawing.Size(112, 24); this.rBAusgeliefert.TabIndex = 54; @@ -839,7 +860,8 @@ namespace Deckungsbeitrag this.rBFertig.AutoSize = true; this.rBFertig.CheckAlign = System.Drawing.ContentAlignment.MiddleRight; this.rBFertig.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.rBFertig.Location = new System.Drawing.Point(71, 76); + this.rBFertig.Location = new System.Drawing.Point(106, 117); + this.rBFertig.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); this.rBFertig.Name = "rBFertig"; this.rBFertig.Size = new System.Drawing.Size(68, 24); this.rBFertig.TabIndex = 53; @@ -854,7 +876,8 @@ namespace Deckungsbeitrag this.rBVorbereitet.AutoSize = true; this.rBVorbereitet.CheckAlign = System.Drawing.ContentAlignment.MiddleRight; this.rBVorbereitet.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.rBVorbereitet.Location = new System.Drawing.Point(33, 46); + this.rBVorbereitet.Location = new System.Drawing.Point(50, 71); + this.rBVorbereitet.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); this.rBVorbereitet.Name = "rBVorbereitet"; this.rBVorbereitet.Size = new System.Drawing.Size(106, 24); this.rBVorbereitet.TabIndex = 52; @@ -869,7 +892,8 @@ namespace Deckungsbeitrag this.rBAlle.AutoSize = true; this.rBAlle.CheckAlign = System.Drawing.ContentAlignment.MiddleRight; this.rBAlle.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.rBAlle.Location = new System.Drawing.Point(86, 16); + this.rBAlle.Location = new System.Drawing.Point(129, 25); + this.rBAlle.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); this.rBAlle.Name = "rBAlle"; this.rBAlle.Size = new System.Drawing.Size(53, 24); this.rBAlle.TabIndex = 51; @@ -888,10 +912,9 @@ namespace Deckungsbeitrag this.buttonAufAbruf.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.buttonAufAbruf.ForeColor = System.Drawing.Color.White; this.buttonAufAbruf.ImageAlign = System.Drawing.ContentAlignment.MiddleRight; - this.buttonAufAbruf.Location = new System.Drawing.Point(10, 215); - this.buttonAufAbruf.Margin = new System.Windows.Forms.Padding(2); + this.buttonAufAbruf.Location = new System.Drawing.Point(15, 331); this.buttonAufAbruf.Name = "buttonAufAbruf"; - this.buttonAufAbruf.Size = new System.Drawing.Size(150, 41); + this.buttonAufAbruf.Size = new System.Drawing.Size(225, 63); this.buttonAufAbruf.TabIndex = 56; this.buttonAufAbruf.Text = "AufAbruf"; this.buttonAufAbruf.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText; @@ -908,10 +931,9 @@ namespace Deckungsbeitrag this.buttonAusgeliefert.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.buttonAusgeliefert.ForeColor = System.Drawing.Color.White; this.buttonAusgeliefert.ImageAlign = System.Drawing.ContentAlignment.MiddleRight; - this.buttonAusgeliefert.Location = new System.Drawing.Point(10, 170); - this.buttonAusgeliefert.Margin = new System.Windows.Forms.Padding(2); + this.buttonAusgeliefert.Location = new System.Drawing.Point(15, 262); this.buttonAusgeliefert.Name = "buttonAusgeliefert"; - this.buttonAusgeliefert.Size = new System.Drawing.Size(150, 41); + this.buttonAusgeliefert.Size = new System.Drawing.Size(225, 63); this.buttonAusgeliefert.TabIndex = 55; this.buttonAusgeliefert.Text = "Ausgeliefert"; this.buttonAusgeliefert.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText; @@ -927,18 +949,21 @@ namespace Deckungsbeitrag this.groupBoxScannTest.Controls.Add(this.textBoxScannTest); this.groupBoxScannTest.Controls.Add(this.buttonScannTest); this.groupBoxScannTest.Controls.Add(this.labelScannTest); - this.groupBoxScannTest.Location = new System.Drawing.Point(746, 223); + this.groupBoxScannTest.Location = new System.Drawing.Point(1119, 343); + this.groupBoxScannTest.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); this.groupBoxScannTest.Name = "groupBoxScannTest"; - this.groupBoxScannTest.Size = new System.Drawing.Size(932, 264); + this.groupBoxScannTest.Padding = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.groupBoxScannTest.Size = new System.Drawing.Size(1398, 406); this.groupBoxScannTest.TabIndex = 50; this.groupBoxScannTest.TabStop = false; this.groupBoxScannTest.Visible = false; // // pictureBoxScannTest // - this.pictureBoxScannTest.Location = new System.Drawing.Point(6, 10); + this.pictureBoxScannTest.Location = new System.Drawing.Point(9, 15); + this.pictureBoxScannTest.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); this.pictureBoxScannTest.Name = "pictureBoxScannTest"; - this.pictureBoxScannTest.Size = new System.Drawing.Size(179, 160); + this.pictureBoxScannTest.Size = new System.Drawing.Size(268, 246); this.pictureBoxScannTest.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; this.pictureBoxScannTest.TabIndex = 14; this.pictureBoxScannTest.TabStop = false; @@ -947,18 +972,20 @@ namespace Deckungsbeitrag // textBoxScannTest // this.textBoxScannTest.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.textBoxScannTest.Location = new System.Drawing.Point(6, 176); + this.textBoxScannTest.Location = new System.Drawing.Point(9, 271); + this.textBoxScannTest.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); this.textBoxScannTest.Name = "textBoxScannTest"; - this.textBoxScannTest.Size = new System.Drawing.Size(129, 26); + this.textBoxScannTest.Size = new System.Drawing.Size(192, 26); this.textBoxScannTest.TabIndex = 13; this.textBoxScannTest.Visible = false; this.textBoxScannTest.TextChanged += new System.EventHandler(this.textBoxScannTest_TextChanged); // // buttonScannTest // - this.buttonScannTest.Location = new System.Drawing.Point(6, 208); + this.buttonScannTest.Location = new System.Drawing.Point(9, 320); + this.buttonScannTest.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); this.buttonScannTest.Name = "buttonScannTest"; - this.buttonScannTest.Size = new System.Drawing.Size(75, 23); + this.buttonScannTest.Size = new System.Drawing.Size(112, 35); this.buttonScannTest.TabIndex = 12; this.buttonScannTest.Text = "Test starten"; this.buttonScannTest.UseVisualStyleBackColor = true; @@ -969,7 +996,8 @@ namespace Deckungsbeitrag // this.labelScannTest.AutoSize = true; this.labelScannTest.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.labelScannTest.Location = new System.Drawing.Point(6, 234); + this.labelScannTest.Location = new System.Drawing.Point(9, 360); + this.labelScannTest.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.labelScannTest.Name = "labelScannTest"; this.labelScannTest.Size = new System.Drawing.Size(60, 24); this.labelScannTest.TabIndex = 11; @@ -978,15 +1006,14 @@ namespace Deckungsbeitrag // // FormMain // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 20F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(1)))), ((int)(((byte)(53)))), ((int)(((byte)(101))))); - this.ClientSize = new System.Drawing.Size(1156, 689); + this.ClientSize = new System.Drawing.Size(1734, 1060); this.Controls.Add(this.toolStripMenu); this.Controls.Add(this.panelMain); this.HelpButton = true; this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); - this.Margin = new System.Windows.Forms.Padding(2); this.Name = "FormMain"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "Wolfgang Wirl GmbH - GRUNDPROGRAMM"; @@ -994,6 +1021,8 @@ namespace Deckungsbeitrag this.HelpButtonClicked += new System.ComponentModel.CancelEventHandler(this.FormMain_HelpButtonClicked); this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FormMain_FormClosing); this.Load += new System.EventHandler(this.FormMain_Load); + this.ResizeBegin += new System.EventHandler(this.FormMain_ResizeBegin); + this.Resize += new System.EventHandler(this.FormMain_Resize); this.toolStripMenu.ResumeLayout(false); this.toolStripMenu.PerformLayout(); this.panelMain.ResumeLayout(false); diff --git a/AA-Forms/FormMain.cs b/AA-Forms/FormMain.cs index 3c1d664..6d3e0f1 100644 --- a/AA-Forms/FormMain.cs +++ b/AA-Forms/FormMain.cs @@ -26,6 +26,8 @@ namespace Deckungsbeitrag private bool isDragging = false; private Point dragStartPoint; private Point newLocation; + private Size _fixedSize; + private bool _handlingResize; public FormMain() { @@ -92,7 +94,7 @@ namespace Deckungsbeitrag } } this.Activate(); - + _fixedSize = this.Size; } private void Paint_Boarder(Size size, Point location, PaintEventArgs e) @@ -903,6 +905,23 @@ namespace Deckungsbeitrag } } + 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; + } + } } } //DONE: DragDrop verbessern diff --git a/AA-Forms/FormNeueAufgabe.Designer.cs b/AA-Forms/FormNeueAufgabe.Designer.cs index 33f9a28..580eb22 100644 --- a/AA-Forms/FormNeueAufgabe.Designer.cs +++ b/AA-Forms/FormNeueAufgabe.Designer.cs @@ -29,228 +29,209 @@ namespace Deckungsbeitrag /// private void InitializeComponent() { - System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormNeueAufgabe)); - this.groupBoxNeueAufgabe = new System.Windows.Forms.GroupBox(); - this.label2 = new System.Windows.Forms.Label(); - this.label1 = new System.Windows.Forms.Label(); - this.buttonAbbrechen = new System.Windows.Forms.Button(); - this.buttonSpeichern = new System.Windows.Forms.Button(); - this.textBoxBeschreibung = new System.Windows.Forms.TextBox(); - this.textBoxBezeichnung = new System.Windows.Forms.TextBox(); - this.groupBoxNeuerFahrer = new System.Windows.Forms.GroupBox(); - this.label6 = new System.Windows.Forms.Label(); - this.label5 = new System.Windows.Forms.Label(); - this.label4 = new System.Windows.Forms.Label(); - this.label3 = new System.Windows.Forms.Label(); - this.dTPGueltigBis = new System.Windows.Forms.DateTimePicker(); - this.textBoxSchein = new System.Windows.Forms.TextBox(); - this.textBoxNachname = new System.Windows.Forms.TextBox(); - this.textBoxVorname = new System.Windows.Forms.TextBox(); - this.groupBoxNeueAufgabe.SuspendLayout(); - this.groupBoxNeuerFahrer.SuspendLayout(); - this.SuspendLayout(); - // - // groupBoxNeueAufgabe - // - this.groupBoxNeueAufgabe.Controls.Add(this.label2); - this.groupBoxNeueAufgabe.Controls.Add(this.label1); - this.groupBoxNeueAufgabe.Controls.Add(this.textBoxBeschreibung); - this.groupBoxNeueAufgabe.Controls.Add(this.textBoxBezeichnung); - this.groupBoxNeueAufgabe.Location = new System.Drawing.Point(12, 12); - this.groupBoxNeueAufgabe.Name = "groupBoxNeueAufgabe"; - this.groupBoxNeueAufgabe.Size = new System.Drawing.Size(652, 100); - this.groupBoxNeueAufgabe.TabIndex = 28; - this.groupBoxNeueAufgabe.TabStop = false; - this.groupBoxNeueAufgabe.Text = "Neue Aufgabe"; - // - // label2 - // - this.label2.AutoSize = true; - this.label2.Location = new System.Drawing.Point(178, 29); - this.label2.Name = "label2"; - this.label2.Size = new System.Drawing.Size(95, 17); - this.label2.TabIndex = 23; - this.label2.Text = "Beschreibung"; - // - // label1 - // - this.label1.AutoSize = true; - this.label1.Location = new System.Drawing.Point(14, 29); - this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(61, 17); - this.label1.TabIndex = 22; - this.label1.Text = "Aufgabe"; - // - // buttonAbbrechen - // - this.buttonAbbrechen.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.buttonAbbrechen.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.buttonAbbrechen.Image = ((System.Drawing.Image)(resources.GetObject("buttonAbbrechen.Image"))); - this.buttonAbbrechen.Location = new System.Drawing.Point(745, 231); - this.buttonAbbrechen.Name = "buttonAbbrechen"; - this.buttonAbbrechen.Size = new System.Drawing.Size(40, 40); - this.buttonAbbrechen.TabIndex = 21; - this.buttonAbbrechen.TextAlign = System.Drawing.ContentAlignment.BottomCenter; - this.buttonAbbrechen.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText; - this.buttonAbbrechen.UseVisualStyleBackColor = true; - // - // buttonSpeichern - // - this.buttonSpeichern.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.buttonSpeichern.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.buttonSpeichern.Image = ((System.Drawing.Image)(resources.GetObject("buttonSpeichern.Image"))); - this.buttonSpeichern.Location = new System.Drawing.Point(699, 232); - this.buttonSpeichern.Name = "buttonSpeichern"; - this.buttonSpeichern.Size = new System.Drawing.Size(40, 40); - this.buttonSpeichern.TabIndex = 20; - this.buttonSpeichern.TextAlign = System.Drawing.ContentAlignment.BottomCenter; - this.buttonSpeichern.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText; - this.buttonSpeichern.UseVisualStyleBackColor = true; - // - // textBoxBeschreibung - // - this.textBoxBeschreibung.Location = new System.Drawing.Point(181, 49); - this.textBoxBeschreibung.Name = "textBoxBeschreibung"; - this.textBoxBeschreibung.Size = new System.Drawing.Size(459, 22); - this.textBoxBeschreibung.TabIndex = 19; - // - // textBoxBezeichnung - // - this.textBoxBezeichnung.Location = new System.Drawing.Point(17, 49); - this.textBoxBezeichnung.Name = "textBoxBezeichnung"; - this.textBoxBezeichnung.Size = new System.Drawing.Size(158, 22); - this.textBoxBezeichnung.TabIndex = 18; - // - // groupBoxNeuerFahrer - // - this.groupBoxNeuerFahrer.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); - this.groupBoxNeuerFahrer.Controls.Add(this.label6); - this.groupBoxNeuerFahrer.Controls.Add(this.label5); - this.groupBoxNeuerFahrer.Controls.Add(this.label4); - this.groupBoxNeuerFahrer.Controls.Add(this.label3); - this.groupBoxNeuerFahrer.Controls.Add(this.dTPGueltigBis); - this.groupBoxNeuerFahrer.Controls.Add(this.textBoxSchein); - this.groupBoxNeuerFahrer.Controls.Add(this.textBoxNachname); - this.groupBoxNeuerFahrer.Controls.Add(this.textBoxVorname); - this.groupBoxNeuerFahrer.Location = new System.Drawing.Point(12, 171); - this.groupBoxNeuerFahrer.Name = "groupBoxNeuerFahrer"; - this.groupBoxNeuerFahrer.Size = new System.Drawing.Size(652, 100); - this.groupBoxNeuerFahrer.TabIndex = 29; - this.groupBoxNeuerFahrer.TabStop = false; - this.groupBoxNeuerFahrer.Text = "NeuerFahrer"; - // - // label6 - // - this.label6.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); - this.label6.AutoSize = true; - this.label6.Location = new System.Drawing.Point(516, 28); - this.label6.Name = "label6"; - this.label6.Size = new System.Drawing.Size(67, 17); - this.label6.TabIndex = 37; - this.label6.Text = "Gültig bis"; - // - // label5 - // - this.label5.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); - this.label5.AutoSize = true; - this.label5.Location = new System.Drawing.Point(284, 28); - this.label5.Name = "label5"; - this.label5.Size = new System.Drawing.Size(106, 17); - this.label5.TabIndex = 36; - this.label5.Text = "FührerscheinNr"; - // - // label4 - // - this.label4.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); - this.label4.AutoSize = true; - this.label4.Location = new System.Drawing.Point(149, 28); - this.label4.Name = "label4"; - this.label4.Size = new System.Drawing.Size(76, 17); - this.label4.TabIndex = 35; - this.label4.Text = "Nachname"; - // - // label3 - // - this.label3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); - this.label3.AutoSize = true; - this.label3.Location = new System.Drawing.Point(14, 28); - this.label3.Name = "label3"; - this.label3.Size = new System.Drawing.Size(65, 17); - this.label3.TabIndex = 34; - this.label3.Text = "Vorname"; - // - // dTPGueltigBis - // - this.dTPGueltigBis.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); - this.dTPGueltigBis.Format = System.Windows.Forms.DateTimePickerFormat.Short; - this.dTPGueltigBis.Location = new System.Drawing.Point(519, 48); - this.dTPGueltigBis.Name = "dTPGueltigBis"; - this.dTPGueltigBis.Size = new System.Drawing.Size(121, 22); - this.dTPGueltigBis.TabIndex = 31; - // - // textBoxSchein - // - this.textBoxSchein.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); - this.textBoxSchein.Location = new System.Drawing.Point(287, 48); - this.textBoxSchein.Name = "textBoxSchein"; - this.textBoxSchein.Size = new System.Drawing.Size(226, 22); - this.textBoxSchein.TabIndex = 30; - // - // textBoxNachname - // - this.textBoxNachname.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); - this.textBoxNachname.Location = new System.Drawing.Point(152, 48); - this.textBoxNachname.Name = "textBoxNachname"; - this.textBoxNachname.Size = new System.Drawing.Size(129, 22); - this.textBoxNachname.TabIndex = 29; - // - // textBoxVorname - // - this.textBoxVorname.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); - this.textBoxVorname.Location = new System.Drawing.Point(17, 48); - this.textBoxVorname.Name = "textBoxVorname"; - this.textBoxVorname.Size = new System.Drawing.Size(129, 22); - this.textBoxVorname.TabIndex = 28; - // - // FormNeueAufgabe - // - this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(797, 286); - this.Controls.Add(this.groupBoxNeuerFahrer); - this.Controls.Add(this.groupBoxNeueAufgabe); - this.Controls.Add(this.buttonAbbrechen); - this.Controls.Add(this.buttonSpeichern); - this.MaximizeBox = false; - this.MinimizeBox = false; - this.Name = "FormNeueAufgabe"; - this.ShowInTaskbar = false; - this.Text = "FormNeueAufgabe"; - this.groupBoxNeueAufgabe.ResumeLayout(false); - this.groupBoxNeueAufgabe.PerformLayout(); - this.groupBoxNeuerFahrer.ResumeLayout(false); - this.groupBoxNeuerFahrer.PerformLayout(); - this.ResumeLayout(false); + System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormNeueAufgabe)); + this.label2 = new System.Windows.Forms.Label(); + this.label1 = new System.Windows.Forms.Label(); + this.textBoxBeschreibung = new System.Windows.Forms.TextBox(); + this.textBoxBezeichnung = new System.Windows.Forms.TextBox(); + this.buttonAbbrechen = new System.Windows.Forms.Button(); + this.buttonSpeichern = new System.Windows.Forms.Button(); + this.buttonFarbe = new System.Windows.Forms.Button(); + this.label11 = new System.Windows.Forms.Label(); + this.comboBoxAufgabeKat = new System.Windows.Forms.ComboBox(); + this.label3 = new System.Windows.Forms.Label(); + this.label4 = new System.Windows.Forms.Label(); + this.SuspendLayout(); + // + // label2 + // + 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.ForeColor = System.Drawing.Color.White; + this.label2.Location = new System.Drawing.Point(12, 63); + this.label2.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(107, 20); + this.label2.TabIndex = 23; + this.label2.Text = "Beschreibung"; + // + // label1 + // + 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.ForeColor = System.Drawing.Color.White; + this.label1.Location = new System.Drawing.Point(12, 9); + this.label1.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(70, 20); + this.label1.TabIndex = 22; + this.label1.Text = "Aufgabe"; + // + // textBoxBeschreibung + // + this.textBoxBeschreibung.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.textBoxBeschreibung.Location = new System.Drawing.Point(16, 85); + this.textBoxBeschreibung.Margin = new System.Windows.Forms.Padding(2); + this.textBoxBeschreibung.Multiline = true; + this.textBoxBeschreibung.Name = "textBoxBeschreibung"; + this.textBoxBeschreibung.Size = new System.Drawing.Size(309, 75); + this.textBoxBeschreibung.TabIndex = 2; + // + // textBoxBezeichnung + // + this.textBoxBezeichnung.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.textBoxBezeichnung.Location = new System.Drawing.Point(16, 31); + this.textBoxBezeichnung.Margin = new System.Windows.Forms.Padding(2); + this.textBoxBezeichnung.Name = "textBoxBezeichnung"; + this.textBoxBezeichnung.Size = new System.Drawing.Size(120, 26); + this.textBoxBezeichnung.TabIndex = 0; + // + // buttonAbbrechen + // + 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.CausesValidation = false; + this.buttonAbbrechen.FlatAppearance.BorderColor = System.Drawing.Color.Red; + this.buttonAbbrechen.FlatAppearance.BorderSize = 0; + this.buttonAbbrechen.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.buttonAbbrechen.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.buttonAbbrechen.Image = ((System.Drawing.Image)(resources.GetObject("buttonAbbrechen.Image"))); + this.buttonAbbrechen.Location = new System.Drawing.Point(284, 233); + this.buttonAbbrechen.Margin = new System.Windows.Forms.Padding(2); + this.buttonAbbrechen.Name = "buttonAbbrechen"; + this.buttonAbbrechen.Size = new System.Drawing.Size(41, 41); + this.buttonAbbrechen.TabIndex = 5; + this.buttonAbbrechen.TextAlign = System.Drawing.ContentAlignment.BottomCenter; + this.buttonAbbrechen.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText; + this.buttonAbbrechen.UseVisualStyleBackColor = false; + this.buttonAbbrechen.Click += new System.EventHandler(this.buttonAbbrechen_Click); + // + // buttonSpeichern + // + this.buttonSpeichern.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); + this.buttonSpeichern.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(192)))), ((int)(((byte)(0))))); + this.buttonSpeichern.CausesValidation = false; + this.buttonSpeichern.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(192)))), ((int)(((byte)(0))))); + this.buttonSpeichern.FlatAppearance.BorderSize = 0; + this.buttonSpeichern.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.buttonSpeichern.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.buttonSpeichern.Image = ((System.Drawing.Image)(resources.GetObject("buttonSpeichern.Image"))); + this.buttonSpeichern.Location = new System.Drawing.Point(16, 233); + this.buttonSpeichern.Margin = new System.Windows.Forms.Padding(2); + this.buttonSpeichern.Name = "buttonSpeichern"; + this.buttonSpeichern.Size = new System.Drawing.Size(41, 41); + this.buttonSpeichern.TabIndex = 4; + this.buttonSpeichern.TextAlign = System.Drawing.ContentAlignment.BottomCenter; + this.buttonSpeichern.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText; + this.buttonSpeichern.UseVisualStyleBackColor = false; + this.buttonSpeichern.Click += new System.EventHandler(this.buttonSpeichern_Click); + // + // buttonFarbe + // + this.buttonFarbe.FlatAppearance.BorderColor = System.Drawing.Color.White; + this.buttonFarbe.FlatAppearance.BorderSize = 3; + this.buttonFarbe.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.buttonFarbe.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.buttonFarbe.ForeColor = System.Drawing.Color.White; + this.buttonFarbe.Location = new System.Drawing.Point(16, 173); + this.buttonFarbe.Margin = new System.Windows.Forms.Padding(2); + this.buttonFarbe.Name = "buttonFarbe"; + this.buttonFarbe.Size = new System.Drawing.Size(100, 41); + this.buttonFarbe.TabIndex = 3; + this.buttonFarbe.Tag = "false"; + this.buttonFarbe.Text = "Farbe"; + this.buttonFarbe.UseVisualStyleBackColor = true; + this.buttonFarbe.Click += new System.EventHandler(this.buttonFarbe_Click); + // + // label11 + // + this.label11.AutoSize = true; + this.label11.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label11.ForeColor = System.Drawing.Color.White; + this.label11.Location = new System.Drawing.Point(136, 9); + this.label11.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); + this.label11.Name = "label11"; + this.label11.Size = new System.Drawing.Size(77, 20); + this.label11.TabIndex = 49; + this.label11.Text = "Kategorie"; + // + // comboBoxAufgabeKat + // + this.comboBoxAufgabeKat.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.comboBoxAufgabeKat.Font = new System.Drawing.Font("Microsoft Sans Serif", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.comboBoxAufgabeKat.FormattingEnabled = true; + this.comboBoxAufgabeKat.Location = new System.Drawing.Point(140, 31); + this.comboBoxAufgabeKat.Margin = new System.Windows.Forms.Padding(2); + this.comboBoxAufgabeKat.Name = "comboBoxAufgabeKat"; + this.comboBoxAufgabeKat.Size = new System.Drawing.Size(185, 26); + this.comboBoxAufgabeKat.TabIndex = 1; + this.comboBoxAufgabeKat.Validating += new System.ComponentModel.CancelEventHandler(this.comboBoxAufgabeKat_Validating); + // + // label3 + // + this.label3.AutoSize = true; + this.label3.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label3.ForeColor = System.Drawing.Color.White; + this.label3.Location = new System.Drawing.Point(120, 180); + this.label3.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); + this.label3.Name = "label3"; + this.label3.Size = new System.Drawing.Size(196, 13); + this.label3.TabIndex = 51; + this.label3.Text = "Die Farbe wird im Waschstrassenscreen"; + // + // label4 + // + this.label4.AutoSize = true; + this.label4.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label4.ForeColor = System.Drawing.Color.White; + this.label4.Location = new System.Drawing.Point(120, 195); + this.label4.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); + this.label4.Name = "label4"; + this.label4.Size = new System.Drawing.Size(144, 13); + this.label4.TabIndex = 52; + this.label4.Text = "zur Visualisierung verwendet."; + // + // FormNeueAufgabe + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(1)))), ((int)(((byte)(53)))), ((int)(((byte)(101))))); + this.ClientSize = new System.Drawing.Size(339, 285); + this.Controls.Add(this.label4); + this.Controls.Add(this.label3); + this.Controls.Add(this.buttonFarbe); + this.Controls.Add(this.label11); + this.Controls.Add(this.comboBoxAufgabeKat); + this.Controls.Add(this.label2); + this.Controls.Add(this.buttonAbbrechen); + this.Controls.Add(this.label1); + this.Controls.Add(this.buttonSpeichern); + this.Controls.Add(this.textBoxBeschreibung); + this.Controls.Add(this.textBoxBezeichnung); + this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); + this.Margin = new System.Windows.Forms.Padding(2); + this.MaximizeBox = false; + this.MinimizeBox = false; + this.Name = "FormNeueAufgabe"; + this.ShowInTaskbar = false; + this.Text = "NEUE AUFGABE"; + this.Load += new System.EventHandler(this.FormNeueAufgabe_Load); + this.ResumeLayout(false); + this.PerformLayout(); } #endregion - - private System.Windows.Forms.GroupBox groupBoxNeueAufgabe; private System.Windows.Forms.Label label2; private System.Windows.Forms.Label label1; - private System.Windows.Forms.Button buttonAbbrechen; - private System.Windows.Forms.Button buttonSpeichern; private System.Windows.Forms.TextBox textBoxBeschreibung; private System.Windows.Forms.TextBox textBoxBezeichnung; - private System.Windows.Forms.GroupBox groupBoxNeuerFahrer; - private System.Windows.Forms.Label label6; - private System.Windows.Forms.Label label5; - private System.Windows.Forms.Label label4; - private System.Windows.Forms.Label label3; - private System.Windows.Forms.DateTimePicker dTPGueltigBis; - private System.Windows.Forms.TextBox textBoxSchein; - private System.Windows.Forms.TextBox textBoxNachname; - private System.Windows.Forms.TextBox textBoxVorname; - } + private System.Windows.Forms.Button buttonAbbrechen; + private System.Windows.Forms.Button buttonSpeichern; + private System.Windows.Forms.Button buttonFarbe; + private System.Windows.Forms.Label label11; + private System.Windows.Forms.ComboBox comboBoxAufgabeKat; + private System.Windows.Forms.Label label3; + private System.Windows.Forms.Label label4; + } } \ No newline at end of file diff --git a/AA-Forms/FormNeueAufgabe.cs b/AA-Forms/FormNeueAufgabe.cs index d395002..6c4badc 100644 --- a/AA-Forms/FormNeueAufgabe.cs +++ b/AA-Forms/FormNeueAufgabe.cs @@ -13,43 +13,71 @@ namespace Deckungsbeitrag { public partial class FormNeueAufgabe : Form { - public Aufgabe aufgabe; + private Aufgabe aufgabe; + private Meldungen meldung = new Meldungen(); public FormNeueAufgabe() { InitializeComponent(); } - public FormNeueAufgabe(string v) :this() + private void FormNeueAufgabe_Load(object sender, EventArgs e) + { + this.buttonFarbe.Enabled = false; + this.buttonFarbe.Tag = false; + Load_comboBoxAufgabeKat(); + } + private void Load_comboBoxAufgabeKat() + { + this.comboBoxAufgabeKat.DataSource = Enum.GetValues(typeof(Kategorie)); + this.comboBoxAufgabeKat.SelectedIndex = -1; + } + + private void buttonSpeichern_Click(object sender, EventArgs e) { - if (v == "NeuerFahrer") - { - this.groupBoxNeueAufgabe.Visible = false; - this.Text = "Neuen Fahrer anlegen"; - } - if (v == "NeueAufgabe") - { - this.groupBoxNeuerFahrer.Visible = false; - this.Text = "Neue Aufgabe anlegen"; - } - - } - - private void buttonSpeichern_Click(object sender, EventArgs e) - { - if (aufgabe == null) this.aufgabe = new Aufgabe(); - this.aufgabe.Bezeichnung = this.textBoxBezeichnung.Text; - this.aufgabe.Beschreibung = this.textBoxBeschreibung.Text; - - if (aufgabe.Save() == 1) - { - this.DialogResult = DialogResult.OK; - this.Close(); - } - - } - private void buttonAbbrechen_Click(object sender, EventArgs e) + Aufgabe aufgabe = new Aufgabe(); + aufgabe.Bezeichnung = textBoxBezeichnung.Text; + aufgabe.Beschreibung = textBoxBeschreibung.Text; + aufgabe.Kategorie = (Kategorie)comboBoxAufgabeKat.SelectedItem; + if (buttonFarbe.Enabled) + { + if ((bool)buttonFarbe.Tag == true) aufgabe.Farbe = buttonFarbe.FlatAppearance.BorderColor; + else + { + switch (meldung.GetFrage(this, $"Du hast keine Farbe für die Aufgabe gewählt. Möchtest du die Farbe jetzt wählen? {Environment.NewLine}Wenn du die Aufgabekategorie ändern möchtest drücke Abbrechen.", true)) + { + case DialogResult.Cancel: + return; + case DialogResult.Yes: + buttonFarbe_Click(this, null); + break; + case DialogResult.No: + break; + default: + break; + } + } + } + aufgabe.Save(); + } + private void buttonAbbrechen_Click(object sender, EventArgs e) { this.DialogResult = DialogResult.Cancel; this.Close(); } - } + + private void buttonFarbe_Click(object sender, EventArgs e) + { + ColorDialog color = new ColorDialog(); + if(color.ShowDialog() == DialogResult.OK) + { + buttonFarbe.FlatAppearance.BorderColor = buttonFarbe.ForeColor = color.Color; + buttonFarbe.Tag = true; + } + } + + private void comboBoxAufgabeKat_Validating(object sender, CancelEventArgs e) + { + if ((Kategorie)comboBoxAufgabeKat.SelectedItem == Kategorie.Waschstrasse) this.buttonFarbe.Enabled = true; + } + } } +//TODO: Neue Aufgabe Screen erstellen. \ No newline at end of file diff --git a/AA-Forms/FormNeueAufgabe.resx b/AA-Forms/FormNeueAufgabe.resx index 215c5b4..b94f547 100644 --- a/AA-Forms/FormNeueAufgabe.resx +++ b/AA-Forms/FormNeueAufgabe.resx @@ -121,18 +121,115 @@ iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO - xAAADsQBlSsOGwAAALZJREFUOE9jQAbfvn0zgDJxApxqgBIVQPwfiDOhQhgAJAdVUwEVggCQwKubV/9v - i3T///b+HayGgMRAcltCHP4/v3gWYQiQYQDEYM0L1Xj/r3XWxTAEphkkB1IDMgSkB6QXqwJkQ/DJgTXD - AC6FRGmGAWyGEK0ZBtANIUkzCFBkALpmEI3MxmsINs0gPjYxDENwaQaJ45ODaaZKQiI/KcMASACIsWqG - AZAcVA2qZhgASpCYnRkYAKjTuVoFkX4yAAAAAElFTkSuQmCC + vwAADr8BOAVTJAAAAHNJREFUOE+1krEJwDAMBD1IyrTZv02XJbLLBYEKh5eFHRHBF5b+D2TUgFaRNFbV + P3bgBLY2KJsBF3BEAAtb3RHEwzazMogAesMLEs0EkBil514FDCASTgEBRMLu+QlQWiEIz3/iyJiABVA+ + pPIpf5I0VvUA30mnWXzROjQAAAAASUVORK5CYII= iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO - xAAADsQBlSsOGwAAAHhJREFUOE9j+PbtWzgQvwHi/yRikJ5wkAFvtAvW/GcInkMSBukB6QUZgFUBMRis - F9mAD+8/EoWHswGk4kFqADY/I2NktbQ1AJ2PLg7CMAPuFM8/hqEBnY8uDsIwA2SQDUFXiKwZWRyEwQaA - AMwQkABIEYgmDn/7DwBpTOrUXkrGYgAAAABJRU5ErkJggg== + vAAADrwBlbxySQAAAG5JREFUOE9j+PbtW/i3b9/efPv27T+JGKQnnAHE0C5Y858heA5JGKQHpBdkAIYk + sRisF9mAD+8/EoWHswGk4kFqALp/0TH9DEDno4sjG3CneP4xDA3ofHRxZANkkA1BV0jQABCAGQISACkC + 0cRiAGlM6tRr9T1CAAAAAElFTkSuQmCC + + + + + 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 + QmCC \ No newline at end of file diff --git a/AA-Klassen/Aufgabe.cs b/AA-Klassen/Aufgabe.cs index 3aa173d..ff3e8a1 100644 --- a/AA-Klassen/Aufgabe.cs +++ b/AA-Klassen/Aufgabe.cs @@ -121,3 +121,5 @@ namespace DatenDB } } } +//TODO: Aktive Property einfügen. +//TODO: Spalte Aktiv in DB einfügen. diff --git a/AA-Klassen/Auftrag.cs b/AA-Klassen/Auftrag.cs index 9d7a2e1..3ad3172 100644 --- a/AA-Klassen/Auftrag.cs +++ b/AA-Klassen/Auftrag.cs @@ -35,8 +35,8 @@ namespace DatenDB public class Auftrag { - // 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 - public const string COLUMNS = "auftrag_id, benutzer_id, aufgabe_id, kunde_id, zusatz, liefertag, gedruckt, gedruckt_von, erledigt, erledigt_von, erstellt, erstellt_von, status, tour_id, container_dirt, maschine_id, container_clean, typ"; + // 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 + public const string COLUMNS = "auftrag_id, benutzer_id, aufgabe_id, kunde_id, zusatz, liefertag, gedruckt, gedruckt_von, erledigt, erledigt_von, erstellt, erstellt_von, status, tour_id, container_dirt, maschine_id, container_clean, typ, aufgabe_erledigt"; private const string TABLE = "kundenverwaltung.auftrag"; public const string ASPECTS = "FahrerID,AufgabeID,KundeID,ZusatzInfo,Wann,Gedruckt,Erledigt,Erstellt von,Erstellt Am"; public Auftrag() @@ -199,7 +199,8 @@ namespace DatenDB this.Container = reader.IsDBNull(14) ? 0 : reader.GetInt32(14); this.MaschineID = reader.IsDBNull(15) ? null : (int?)reader.GetInt32(15); this.ContainerClean = reader.IsDBNull(16) ? 0 : reader.GetInt32(16); - this.Typ =reader.IsDBNull(17) ? AuftragTyp.Standart : (AuftragTyp)reader.GetInt32(17); + this.Typ = reader.IsDBNull(17) ? AuftragTyp.Standart : (AuftragTyp)reader.GetInt32(17); + this.AufgabeErledigt = reader.IsDBNull(18) ? false : reader.GetBoolean(18); } @@ -226,7 +227,7 @@ namespace DatenDB { get { - if (this.Typ >= AuftragTyp.Inventur) return _auftragaufgabe = Aufgabe.GetAufgabe(null, AufgabeID).Bezeichnung; + if (this.AufgabeID != null) return _auftragaufgabe = Aufgabe.GetAufgabe(null, this.AufgabeID).Bezeichnung; else return null; } @@ -370,6 +371,8 @@ namespace DatenDB public int? ArbeiterID { get; set; } [OLVIgnore] public int? AufgabeID { get; set; } + [OLVIgnore] + public bool AufgabeErledigt { get; set; } = false; @@ -384,13 +387,13 @@ namespace DatenDB if (this.AuftragID.HasValue & this.AuftragID != 0) { - command.CommandText = $"update {TABLE} set benutzer_id = :p1, aufgabe_id = :p2, kunde_id = :p3, zusatz = :p4, liefertag = :p5, gedruckt = :p6, gedruckt_von = :p7, erledigt = :p8, erledigt_von = :p9, erstellt = :p10, erstellt_von = :p11, status = :p12, tour_id = :p13, container_dirt = :p14, maschine_id = :p15, container_clean = :p16, typ = :p17 WHERE auftrag_id = :p0"; + command.CommandText = $"update {TABLE} set benutzer_id = :p1, aufgabe_id = :p2, kunde_id = :p3, zusatz = :p4, liefertag = :p5, gedruckt = :p6, gedruckt_von = :p7, erledigt = :p8, erledigt_von = :p9, erstellt = :p10, erstellt_von = :p11, status = :p12, tour_id = :p13, container_dirt = :p14, maschine_id = :p15, container_clean = :p16, typ = :p17, aufgabe_erledigt = :p18 WHERE auftrag_id = :p0"; } else { command.CommandText = "select nextval('kundenverwaltung.auftrag_seq')"; this.AuftragID = result[1] = (int)(long)command.ExecuteScalar(); - command.CommandText = $"insert into {TABLE} ({COLUMNS}) values (:p0, :p1, :p2, :p3, :p4, :p5, :p6, :p7, :p8, :p9, :p10, :p11, :p12, :p13, :p14, :p15, :p16, :p17)"; + command.CommandText = $"insert into {TABLE} ({COLUMNS}) values (:p0, :p1, :p2, :p3, :p4, :p5, :p6, :p7, :p8, :p9, :p10, :p11, :p12, :p13, :p14, :p15, :p16, :p17, :p18)"; } command.Parameters.AddWithValue("p0", this.AuftragID); @@ -411,6 +414,7 @@ namespace DatenDB command.Parameters.AddWithValue("p15", this.MaschineID.HasValue ? this.MaschineID.Value : 0); command.Parameters.AddWithValue("p16", this.ContainerClean); command.Parameters.AddWithValue("p17", (int)this.Typ); + command.Parameters.AddWithValue("p18", this.AufgabeErledigt); result[0] = command.ExecuteNonQuery(); DatenbankConnection.GetConnection().Close(); @@ -419,3 +423,5 @@ namespace DatenDB } } +//TODO: AufgabeID als Spalte in DB hinzufügen. +//TODO: AufgabeErledigt als Spalte in DB hinzufügen. \ No newline at end of file diff --git a/AA-Klassen/Kunde.cs b/AA-Klassen/Kunde.cs index ce9a2c6..6766378 100644 --- a/AA-Klassen/Kunde.cs +++ b/AA-Klassen/Kunde.cs @@ -13,8 +13,8 @@ namespace DatenDB { public class Kunde { - // 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 - public const string COLUMNS = "kunde_id, tour_id, kunde_nr, name1, name2, straße, plz, bezeichnung, land, aktiv, bettenanzahl, kunde_gruppe, service, region, waescheart, suchtext, aufgabe"; + // 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 + public const string COLUMNS = "kunde_id, tour_id, kunde_nr, name1, name2, straße, plz, bezeichnung, land, aktiv, bettenanzahl, kunde_gruppe, service, region, waescheart, suchtext, aufgabe, anmerkung, aufgabe_count"; private const string RED_COLUMNS = "kunde_id, tour_id, kunde_nr, name1, name2, straße, plz, bezeichnung, land, aktiv, bettenanzahl, kunde_gruppe, service, region, waescheart, jahr, umsatz"; public const string TABLE = "kundenverwaltung.kunde"; public const string VIEW = "kundenverwaltung.jahresumsaetze"; //RICHTIGE VIEW AUSSUCHEN FÜR INAKTIVE MIT LETZTEN UMSATZ... @@ -186,8 +186,11 @@ namespace DatenDB this.Waescheart = reader.IsDBNull(14) ? string.Empty : reader.GetString(14); this.Suchtext = reader.IsDBNull(15) ? string.Empty : reader.GetString(15); this.Aufgabe = reader.IsDBNull(16) ? null : (int?)reader.GetInt32(16); + this.Anmerkung = reader.IsDBNull(17) ? string.Empty : reader.GetString(17); + this.AufgabeCount = reader.IsDBNull(18) ? 0 : reader.GetInt32(18); + } - } + } public Kunde(NpgsqlDataReader reader) { this.KundeID = reader.GetInt32(0); @@ -207,7 +210,8 @@ namespace DatenDB this.Waescheart = reader.IsDBNull(14) ? string.Empty : reader.GetString(14); this.Suchtext = reader.IsDBNull(15) ? string.Empty : reader.GetString(15); this.Aufgabe = reader.IsDBNull(16) ? null : (int?)reader.GetInt32(16); - + this.Anmerkung = reader.IsDBNull(17) ? string.Empty : reader.GetString(17); + this.AufgabeCount = reader.IsDBNull(18) ? 0 : reader.GetInt32(18); } public int Save() { @@ -219,13 +223,13 @@ namespace DatenDB if (this.KundeID.HasValue & this.KundeID != 0) { - command.CommandText = $"update {TABLE} set tour_id = :p1, kunde_nr = :p2, name1 = :p3, name2 = :p4, straße = :p5, plz = :p6, bezeichnung = :p7, land = :p8, aktiv = :p9, bettenanzahl = :p10, kunde_gruppe = :p11, service = :p12, region = :p13, waescheart = :p14, suchtext = :p15, aufgabe = :p16 WHERE kunde_id = :p0"; + command.CommandText = $"update {TABLE} set tour_id = :p1, kunde_nr = :p2, name1 = :p3, name2 = :p4, straße = :p5, plz = :p6, bezeichnung = :p7, land = :p8, aktiv = :p9, bettenanzahl = :p10, kunde_gruppe = :p11, service = :p12, region = :p13, waescheart = :p14, suchtext = :p15, aufgabe = :p16, anmerkung = :p17, aufgabe_count = :p18 WHERE kunde_id = :p0"; } else { command.CommandText = "select nextval('kundenverwaltung.kunde_seq')"; this.KundeID = (int)(long)command.ExecuteScalar(); - command.CommandText = $"insert into {TABLE} ({COLUMNS}) values (:p0, :p1, :p2, :p3, :p4, :p5, :p6, :p7, :p8, :p9, :p10, :p11, :p12, :p13, :p14, :p15, :p16)"; + command.CommandText = $"insert into {TABLE} ({COLUMNS}) values (:p0, :p1, :p2, :p3, :p4, :p5, :p6, :p7, :p8, :p9, :p10, :p11, :p12, :p13, :p14, :p15, :p16, :p17, :p18)"; } command.Parameters.AddWithValue("p0", this.KundeID); @@ -245,6 +249,8 @@ namespace DatenDB command.Parameters.AddWithValue("p14", string.IsNullOrEmpty(this.Waescheart) ? (object)DBNull.Value : this.Waescheart); command.Parameters.AddWithValue("p15", string.IsNullOrEmpty(this.Suchtext) ? (object)DBNull.Value : this.Suchtext); command.Parameters.AddWithValue("p16", this.Aufgabe ?? (object)DBNull.Value); + command.Parameters.AddWithValue("p17", string.IsNullOrWhiteSpace(this.Anmerkung) ? (object)DBNull.Value : this.Anmerkung); + command.Parameters.AddWithValue("p18", this.AufgabeCount ?? (object)DBNull.Value); int result = command.ExecuteNonQuery(); DatenbankConnection.GetConnection().Close(); @@ -360,5 +366,13 @@ namespace DatenDB [OLVIgnore] public int? Aufgabe { get; set; } - } + + [OLVIgnore] + public int? AufgabeCount { get; set; } + + [OLVIgnore] + public string Anmerkung { get; set; } + } } +//TODO: Spalte Anmerkung in DB hinzufügen. +//TODO: Spalte Aufgabe Count in DB hinzufügen. \ No newline at end of file diff --git a/Program.cs b/Program.cs index 32614e4..0702c22 100644 --- a/Program.cs +++ b/Program.cs @@ -27,7 +27,6 @@ namespace Deckungsbeitrag Application.SetCompatibleTextRenderingDefault(false); Screen[] screens = Screen.AllScreens; - //DONE: Für Maschinen keine Anmeldung notwendig. if (userid.StartsWith("ms") | userid.StartsWith("ps")) { if (userid.Contains("wstrasse")) Application.Run(new FormWSVerfolgung(userid)); @@ -76,3 +75,4 @@ namespace Deckungsbeitrag } } } +//DONE: Für Maschinen keine Anmeldung notwendig. diff --git a/Verwaltung.csproj b/Verwaltung.csproj index c5a660a..f40d880 100644 --- a/Verwaltung.csproj +++ b/Verwaltung.csproj @@ -12,6 +12,9 @@ 512 true true + false + + publish\ true Disk @@ -24,11 +27,8 @@ true 0 1.0.0.%2a - false false true - - AnyCPU @@ -55,6 +55,7 @@ wirlneu_transparent %281%29.ico + packages\AForge.2.2.5\lib\AForge.dll diff --git a/Verwaltung_ReadMe.txt b/Verwaltung_ReadMe.txt new file mode 100644 index 0000000..c2670af --- /dev/null +++ b/Verwaltung_ReadMe.txt @@ -0,0 +1,74 @@ +===================================== +NEUIGKEITEN - Version 1.0.2.6 +===================================== + +Build-Info: +- Build-Typ: Erledigte TODOs: 10 +- Erledigte TODOs: ✅ : Für Maschinen keine Anmeldung notwendig. [Program.cs] +✅ : Bei Transport wir ein Fach mit Aktuellem Auftrag erstellt. Das Alte wird bei Transport gespeichert. [FormAusschlager.cs] +✅ : Wenn NeuerAuftrag gewählt Fach ändern nicht vergessen. [FormAusschlager.cs] +✅ : Breite der GridView festlegen. [FormExpedit.cs] +✅ : OLV-Item refresh. Neuer Liefertag speichern. [FormExpedit.cs] +✅ : Testen ob ausblenden der Button Column funktioniert. Benutzer-Verwaltung oder Frottee oder Flach notwendig. [FormExpedit.cs] +✅ : DragDrop verbessern [FormMain.cs] +✅ : GroupBox Realtime verschieben testen. Sonst Endposition nehmen. gb.Location hier entfernen und unten einkommentieren. [FormMain.cs] +✅ : GroupBox wird an Endposition verschoben. [FormMain.cs] +✅ : Funktionalität klären. MessageBox vor Screenauswahl? oder mit Button im Screen Kamera? [Funktionen.cs] + +Installation: 11.12.2025 14:53 +===================================== + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +