Vorbereiten für Vollbetrieb
This commit is contained in:
parent
d3fdada8b0
commit
269f94c03a
@ -206,11 +206,6 @@ namespace Deckungsbeitrag
|
|||||||
|
|
||||||
private void FormAufleger_Shown(object sender, EventArgs e)
|
private void FormAufleger_Shown(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
this.ResumeLayout(true);
|
this.ResumeLayout(true);
|
||||||
this.Cursor = Cursors.Default;
|
this.Cursor = Cursors.Default;
|
||||||
|
|
||||||
@ -262,7 +257,7 @@ namespace Deckungsbeitrag
|
|||||||
else kunde = Kunde.GetKunde(null, null, textBoxScan.Text);
|
else kunde = Kunde.GetKunde(null, null, textBoxScan.Text);
|
||||||
}
|
}
|
||||||
|
|
||||||
List<Auftrag> auftList = Auftrag.FindeAuftragVonKunde(kunde, zusatz);
|
List<Auftrag> auftList = Auftrag.FindeAuftragVonKunde(kunde, zusatz, null, (DateTime?)null);
|
||||||
if (auftList.Count == 0) { meldung.GetFehler(this, "Es konnte kein Auftrag zum eingescannten Kunden gefunden werden.\nBitte Informiere deinen Vorgesetzten."); return; }
|
if (auftList.Count == 0) { meldung.GetFehler(this, "Es konnte kein Auftrag zum eingescannten Kunden gefunden werden.\nBitte Informiere deinen Vorgesetzten."); return; }
|
||||||
|
|
||||||
// Alten Auftrag Speichern (Status Gewaschen) wenn neuer Auftrag gefunden wurde.
|
// Alten Auftrag Speichern (Status Gewaschen) wenn neuer Auftrag gefunden wurde.
|
||||||
|
|||||||
438
AA-Forms/FormAuftragDetail.Designer.cs
generated
438
AA-Forms/FormAuftragDetail.Designer.cs
generated
@ -37,29 +37,29 @@
|
|||||||
this.textBoxZusatz = new System.Windows.Forms.TextBox();
|
this.textBoxZusatz = new System.Windows.Forms.TextBox();
|
||||||
this.label1 = new System.Windows.Forms.Label();
|
this.label1 = new System.Windows.Forms.Label();
|
||||||
this.label2 = new System.Windows.Forms.Label();
|
this.label2 = new System.Windows.Forms.Label();
|
||||||
this.listViewDavor = new System.Windows.Forms.ListView();
|
|
||||||
this.columnHeader3 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
|
|
||||||
this.columnHeader1 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
|
|
||||||
this.columnHeader2 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
|
|
||||||
this.columnHeader7 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
|
|
||||||
this.listViewDanach = new System.Windows.Forms.ListView();
|
|
||||||
this.columnHeader4 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
|
|
||||||
this.columnHeader5 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
|
|
||||||
this.columnHeader6 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
|
|
||||||
this.columnHeader8 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
|
|
||||||
this.label3 = new System.Windows.Forms.Label();
|
|
||||||
this.label4 = new System.Windows.Forms.Label();
|
|
||||||
this.pictureBoxMinus = new System.Windows.Forms.PictureBox();
|
this.pictureBoxMinus = new System.Windows.Forms.PictureBox();
|
||||||
this.pictureBoxPlus = new System.Windows.Forms.PictureBox();
|
this.pictureBoxPlus = new System.Windows.Forms.PictureBox();
|
||||||
this.labelContainer = new System.Windows.Forms.Label();
|
this.labelContainer = new System.Windows.Forms.Label();
|
||||||
this.label5 = new System.Windows.Forms.Label();
|
this.label5 = new System.Windows.Forms.Label();
|
||||||
this.label6 = new System.Windows.Forms.Label();
|
this.label6 = new System.Windows.Forms.Label();
|
||||||
this.labelContDirt = new System.Windows.Forms.Label();
|
|
||||||
this.buttonSWS = new System.Windows.Forms.Button();
|
this.buttonSWS = new System.Windows.Forms.Button();
|
||||||
this.listViewArtikel = new System.Windows.Forms.ListView();
|
|
||||||
this.buttonSpeichern = new System.Windows.Forms.Button();
|
this.buttonSpeichern = new System.Windows.Forms.Button();
|
||||||
|
this.label7 = new System.Windows.Forms.Label();
|
||||||
|
this.label10 = new System.Windows.Forms.Label();
|
||||||
|
this.comboBoxPriority = new System.Windows.Forms.ComboBox();
|
||||||
|
this.comboBoxFahrer = new System.Windows.Forms.ComboBox();
|
||||||
|
this.pictureBoxDirtMinus = new System.Windows.Forms.PictureBox();
|
||||||
|
this.pictureBoxDirtPlus = new System.Windows.Forms.PictureBox();
|
||||||
|
this.labelContDirt = new System.Windows.Forms.Label();
|
||||||
|
this.label3 = new System.Windows.Forms.Label();
|
||||||
|
this.label4 = new System.Windows.Forms.Label();
|
||||||
|
this.label8 = new System.Windows.Forms.Label();
|
||||||
|
this.oLVArtikel = new BrightIdeasSoftware.ObjectListView();
|
||||||
((System.ComponentModel.ISupportInitialize)(this.pictureBoxMinus)).BeginInit();
|
((System.ComponentModel.ISupportInitialize)(this.pictureBoxMinus)).BeginInit();
|
||||||
((System.ComponentModel.ISupportInitialize)(this.pictureBoxPlus)).BeginInit();
|
((System.ComponentModel.ISupportInitialize)(this.pictureBoxPlus)).BeginInit();
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.pictureBoxDirtMinus)).BeginInit();
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.pictureBoxDirtPlus)).BeginInit();
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.oLVArtikel)).BeginInit();
|
||||||
this.SuspendLayout();
|
this.SuspendLayout();
|
||||||
//
|
//
|
||||||
// dTPLiefertag
|
// dTPLiefertag
|
||||||
@ -67,12 +67,11 @@
|
|||||||
this.dTPLiefertag.CustomFormat = "dddd dd.MM.yyyy";
|
this.dTPLiefertag.CustomFormat = "dddd dd.MM.yyyy";
|
||||||
this.dTPLiefertag.DropDownAlign = System.Windows.Forms.LeftRightAlignment.Right;
|
this.dTPLiefertag.DropDownAlign = System.Windows.Forms.LeftRightAlignment.Right;
|
||||||
this.dTPLiefertag.Enabled = false;
|
this.dTPLiefertag.Enabled = false;
|
||||||
this.dTPLiefertag.Font = new System.Drawing.Font("Microsoft Sans Serif", 19.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
this.dTPLiefertag.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||||
this.dTPLiefertag.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
|
this.dTPLiefertag.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
|
||||||
this.dTPLiefertag.Location = new System.Drawing.Point(15, 17);
|
this.dTPLiefertag.Location = new System.Drawing.Point(138, 171);
|
||||||
this.dTPLiefertag.Margin = new System.Windows.Forms.Padding(2);
|
|
||||||
this.dTPLiefertag.Name = "dTPLiefertag";
|
this.dTPLiefertag.Name = "dTPLiefertag";
|
||||||
this.dTPLiefertag.Size = new System.Drawing.Size(388, 37);
|
this.dTPLiefertag.Size = new System.Drawing.Size(390, 29);
|
||||||
this.dTPLiefertag.TabIndex = 1;
|
this.dTPLiefertag.TabIndex = 1;
|
||||||
//
|
//
|
||||||
// labelKundeName
|
// labelKundeName
|
||||||
@ -80,8 +79,7 @@
|
|||||||
this.labelKundeName.AutoSize = true;
|
this.labelKundeName.AutoSize = true;
|
||||||
this.labelKundeName.Font = new System.Drawing.Font("Microsoft Sans Serif", 22.2F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
this.labelKundeName.Font = new System.Drawing.Font("Microsoft Sans Serif", 22.2F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||||
this.labelKundeName.ForeColor = System.Drawing.Color.White;
|
this.labelKundeName.ForeColor = System.Drawing.Color.White;
|
||||||
this.labelKundeName.Location = new System.Drawing.Point(15, 70);
|
this.labelKundeName.Location = new System.Drawing.Point(12, 45);
|
||||||
this.labelKundeName.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
|
|
||||||
this.labelKundeName.Name = "labelKundeName";
|
this.labelKundeName.Name = "labelKundeName";
|
||||||
this.labelKundeName.Size = new System.Drawing.Size(179, 36);
|
this.labelKundeName.Size = new System.Drawing.Size(179, 36);
|
||||||
this.labelKundeName.TabIndex = 1;
|
this.labelKundeName.TabIndex = 1;
|
||||||
@ -95,10 +93,9 @@
|
|||||||
this.buttonFertig.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
this.buttonFertig.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||||
this.buttonFertig.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
this.buttonFertig.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||||
this.buttonFertig.ForeColor = System.Drawing.Color.Black;
|
this.buttonFertig.ForeColor = System.Drawing.Color.Black;
|
||||||
this.buttonFertig.Location = new System.Drawing.Point(419, 462);
|
this.buttonFertig.Location = new System.Drawing.Point(322, 769);
|
||||||
this.buttonFertig.Margin = new System.Windows.Forms.Padding(2);
|
|
||||||
this.buttonFertig.Name = "buttonFertig";
|
this.buttonFertig.Name = "buttonFertig";
|
||||||
this.buttonFertig.Size = new System.Drawing.Size(200, 41);
|
this.buttonFertig.Size = new System.Drawing.Size(300, 63);
|
||||||
this.buttonFertig.TabIndex = 14;
|
this.buttonFertig.TabIndex = 14;
|
||||||
this.buttonFertig.Text = "Auftrag abschließen";
|
this.buttonFertig.Text = "Auftrag abschließen";
|
||||||
this.buttonFertig.UseVisualStyleBackColor = false;
|
this.buttonFertig.UseVisualStyleBackColor = false;
|
||||||
@ -112,10 +109,9 @@
|
|||||||
this.buttonAbbrechen.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
this.buttonAbbrechen.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||||
this.buttonAbbrechen.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
this.buttonAbbrechen.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||||
this.buttonAbbrechen.ForeColor = System.Drawing.Color.Black;
|
this.buttonAbbrechen.ForeColor = System.Drawing.Color.Black;
|
||||||
this.buttonAbbrechen.Location = new System.Drawing.Point(623, 462);
|
this.buttonAbbrechen.Location = new System.Drawing.Point(934, 769);
|
||||||
this.buttonAbbrechen.Margin = new System.Windows.Forms.Padding(2);
|
|
||||||
this.buttonAbbrechen.Name = "buttonAbbrechen";
|
this.buttonAbbrechen.Name = "buttonAbbrechen";
|
||||||
this.buttonAbbrechen.Size = new System.Drawing.Size(200, 41);
|
this.buttonAbbrechen.Size = new System.Drawing.Size(300, 63);
|
||||||
this.buttonAbbrechen.TabIndex = 0;
|
this.buttonAbbrechen.TabIndex = 0;
|
||||||
this.buttonAbbrechen.Text = "Abbrechen";
|
this.buttonAbbrechen.Text = "Abbrechen";
|
||||||
this.buttonAbbrechen.UseVisualStyleBackColor = false;
|
this.buttonAbbrechen.UseVisualStyleBackColor = false;
|
||||||
@ -124,12 +120,11 @@
|
|||||||
// labelRegion
|
// labelRegion
|
||||||
//
|
//
|
||||||
this.labelRegion.AutoSize = true;
|
this.labelRegion.AutoSize = true;
|
||||||
this.labelRegion.Font = new System.Drawing.Font("Microsoft Sans Serif", 22.2F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
this.labelRegion.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||||
this.labelRegion.ForeColor = System.Drawing.Color.White;
|
this.labelRegion.ForeColor = System.Drawing.Color.White;
|
||||||
this.labelRegion.Location = new System.Drawing.Point(15, 121);
|
this.labelRegion.Location = new System.Drawing.Point(132, 117);
|
||||||
this.labelRegion.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
|
|
||||||
this.labelRegion.Name = "labelRegion";
|
this.labelRegion.Name = "labelRegion";
|
||||||
this.labelRegion.Size = new System.Drawing.Size(111, 36);
|
this.labelRegion.Size = new System.Drawing.Size(71, 24);
|
||||||
this.labelRegion.TabIndex = 18;
|
this.labelRegion.TabIndex = 18;
|
||||||
this.labelRegion.Text = "Region";
|
this.labelRegion.Text = "Region";
|
||||||
//
|
//
|
||||||
@ -139,149 +134,41 @@
|
|||||||
| System.Windows.Forms.AnchorStyles.Right)));
|
| System.Windows.Forms.AnchorStyles.Right)));
|
||||||
this.textBoxZusatz.Enabled = false;
|
this.textBoxZusatz.Enabled = false;
|
||||||
this.textBoxZusatz.Font = new System.Drawing.Font("Microsoft Sans Serif", 16.2F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
this.textBoxZusatz.Font = new System.Drawing.Font("Microsoft Sans Serif", 16.2F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||||
this.textBoxZusatz.Location = new System.Drawing.Point(502, 17);
|
this.textBoxZusatz.Location = new System.Drawing.Point(24, 546);
|
||||||
this.textBoxZusatz.Margin = new System.Windows.Forms.Padding(2);
|
|
||||||
this.textBoxZusatz.Multiline = true;
|
this.textBoxZusatz.Multiline = true;
|
||||||
this.textBoxZusatz.Name = "textBoxZusatz";
|
this.textBoxZusatz.Name = "textBoxZusatz";
|
||||||
this.textBoxZusatz.Size = new System.Drawing.Size(315, 141);
|
this.textBoxZusatz.Size = new System.Drawing.Size(504, 201);
|
||||||
this.textBoxZusatz.TabIndex = 20;
|
this.textBoxZusatz.TabIndex = 20;
|
||||||
//
|
//
|
||||||
// label1
|
// label1
|
||||||
//
|
//
|
||||||
this.label1.AutoSize = true;
|
this.label1.AutoSize = true;
|
||||||
this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 16.2F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||||
this.label1.ForeColor = System.Drawing.Color.White;
|
this.label1.ForeColor = System.Drawing.Color.White;
|
||||||
this.label1.Location = new System.Drawing.Point(417, 17);
|
this.label1.Location = new System.Drawing.Point(18, 512);
|
||||||
this.label1.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
|
|
||||||
this.label1.Name = "label1";
|
this.label1.Name = "label1";
|
||||||
this.label1.Size = new System.Drawing.Size(83, 26);
|
this.label1.Size = new System.Drawing.Size(62, 20);
|
||||||
this.label1.TabIndex = 21;
|
this.label1.TabIndex = 21;
|
||||||
this.label1.Text = "Zusatz:";
|
this.label1.Text = "Zusatz:";
|
||||||
//
|
//
|
||||||
// label2
|
// label2
|
||||||
//
|
//
|
||||||
this.label2.AutoSize = true;
|
this.label2.AutoSize = true;
|
||||||
this.label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 16.2F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
this.label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||||
this.label2.ForeColor = System.Drawing.Color.White;
|
this.label2.ForeColor = System.Drawing.Color.White;
|
||||||
this.label2.Location = new System.Drawing.Point(338, 66);
|
this.label2.Location = new System.Drawing.Point(18, 382);
|
||||||
this.label2.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
|
|
||||||
this.label2.Name = "label2";
|
this.label2.Name = "label2";
|
||||||
this.label2.Size = new System.Drawing.Size(106, 26);
|
this.label2.Size = new System.Drawing.Size(82, 20);
|
||||||
this.label2.TabIndex = 22;
|
this.label2.TabIndex = 22;
|
||||||
this.label2.Text = "Container";
|
this.label2.Text = "Container:";
|
||||||
//
|
|
||||||
// listViewDavor
|
|
||||||
//
|
|
||||||
this.listViewDavor.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(1)))), ((int)(((byte)(53)))), ((int)(((byte)(101)))));
|
|
||||||
this.listViewDavor.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
|
|
||||||
this.columnHeader3,
|
|
||||||
this.columnHeader1,
|
|
||||||
this.columnHeader2,
|
|
||||||
this.columnHeader7});
|
|
||||||
this.listViewDavor.Font = new System.Drawing.Font("Microsoft Sans Serif", 10.2F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
||||||
this.listViewDavor.ForeColor = System.Drawing.Color.White;
|
|
||||||
this.listViewDavor.FullRowSelect = true;
|
|
||||||
this.listViewDavor.GridLines = true;
|
|
||||||
this.listViewDavor.HideSelection = false;
|
|
||||||
this.listViewDavor.Location = new System.Drawing.Point(15, 217);
|
|
||||||
this.listViewDavor.Margin = new System.Windows.Forms.Padding(2);
|
|
||||||
this.listViewDavor.Name = "listViewDavor";
|
|
||||||
this.listViewDavor.Size = new System.Drawing.Size(396, 231);
|
|
||||||
this.listViewDavor.TabIndex = 23;
|
|
||||||
this.listViewDavor.UseCompatibleStateImageBehavior = false;
|
|
||||||
this.listViewDavor.View = System.Windows.Forms.View.Details;
|
|
||||||
//
|
|
||||||
// columnHeader3
|
|
||||||
//
|
|
||||||
this.columnHeader3.Text = "Kunde Name";
|
|
||||||
this.columnHeader3.Width = 150;
|
|
||||||
//
|
|
||||||
// columnHeader1
|
|
||||||
//
|
|
||||||
this.columnHeader1.Text = "Region";
|
|
||||||
this.columnHeader1.Width = 200;
|
|
||||||
//
|
|
||||||
// columnHeader2
|
|
||||||
//
|
|
||||||
this.columnHeader2.Text = "Container";
|
|
||||||
this.columnHeader2.Width = 150;
|
|
||||||
//
|
|
||||||
// columnHeader7
|
|
||||||
//
|
|
||||||
this.columnHeader7.Text = "Status";
|
|
||||||
//
|
|
||||||
// listViewDanach
|
|
||||||
//
|
|
||||||
this.listViewDanach.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(1)))), ((int)(((byte)(53)))), ((int)(((byte)(101)))));
|
|
||||||
this.listViewDanach.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
|
|
||||||
this.columnHeader4,
|
|
||||||
this.columnHeader5,
|
|
||||||
this.columnHeader6,
|
|
||||||
this.columnHeader8});
|
|
||||||
this.listViewDanach.Font = new System.Drawing.Font("Microsoft Sans Serif", 10.2F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
||||||
this.listViewDanach.ForeColor = System.Drawing.Color.White;
|
|
||||||
this.listViewDanach.FullRowSelect = true;
|
|
||||||
this.listViewDanach.GridLines = true;
|
|
||||||
this.listViewDanach.HideSelection = false;
|
|
||||||
this.listViewDanach.Location = new System.Drawing.Point(422, 218);
|
|
||||||
this.listViewDanach.Margin = new System.Windows.Forms.Padding(2);
|
|
||||||
this.listViewDanach.Name = "listViewDanach";
|
|
||||||
this.listViewDanach.Size = new System.Drawing.Size(396, 231);
|
|
||||||
this.listViewDanach.TabIndex = 24;
|
|
||||||
this.listViewDanach.UseCompatibleStateImageBehavior = false;
|
|
||||||
this.listViewDanach.View = System.Windows.Forms.View.Details;
|
|
||||||
//
|
|
||||||
// columnHeader4
|
|
||||||
//
|
|
||||||
this.columnHeader4.Text = "Kunde Name";
|
|
||||||
this.columnHeader4.Width = 150;
|
|
||||||
//
|
|
||||||
// columnHeader5
|
|
||||||
//
|
|
||||||
this.columnHeader5.Text = "Region";
|
|
||||||
this.columnHeader5.Width = 200;
|
|
||||||
//
|
|
||||||
// columnHeader6
|
|
||||||
//
|
|
||||||
this.columnHeader6.Text = "Container";
|
|
||||||
this.columnHeader6.Width = 150;
|
|
||||||
//
|
|
||||||
// columnHeader8
|
|
||||||
//
|
|
||||||
this.columnHeader8.Text = "Status";
|
|
||||||
//
|
|
||||||
// label3
|
|
||||||
//
|
|
||||||
this.label3.AutoSize = true;
|
|
||||||
this.label3.Font = new System.Drawing.Font("Microsoft Sans Serif", 16.2F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
||||||
this.label3.ForeColor = System.Drawing.Color.White;
|
|
||||||
this.label3.Location = new System.Drawing.Point(15, 189);
|
|
||||||
this.label3.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
|
|
||||||
this.label3.Name = "label3";
|
|
||||||
this.label3.Size = new System.Drawing.Size(160, 26);
|
|
||||||
this.label3.TabIndex = 25;
|
|
||||||
this.label3.Text = "Aufträge davor:";
|
|
||||||
//
|
|
||||||
// label4
|
|
||||||
//
|
|
||||||
this.label4.AutoSize = true;
|
|
||||||
this.label4.Font = new System.Drawing.Font("Microsoft Sans Serif", 16.2F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
||||||
this.label4.ForeColor = System.Drawing.Color.White;
|
|
||||||
this.label4.Location = new System.Drawing.Point(424, 189);
|
|
||||||
this.label4.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
|
|
||||||
this.label4.Name = "label4";
|
|
||||||
this.label4.Size = new System.Drawing.Size(177, 26);
|
|
||||||
this.label4.TabIndex = 26;
|
|
||||||
this.label4.Text = "Aufträge danach:";
|
|
||||||
//
|
//
|
||||||
// pictureBoxMinus
|
// pictureBoxMinus
|
||||||
//
|
//
|
||||||
this.pictureBoxMinus.BackColor = System.Drawing.Color.Red;
|
this.pictureBoxMinus.BackColor = System.Drawing.Color.Red;
|
||||||
this.pictureBoxMinus.Image = ((System.Drawing.Image)(resources.GetObject("pictureBoxMinus.Image")));
|
this.pictureBoxMinus.Image = ((System.Drawing.Image)(resources.GetObject("pictureBoxMinus.Image")));
|
||||||
this.pictureBoxMinus.Location = new System.Drawing.Point(283, 117);
|
this.pictureBoxMinus.Location = new System.Drawing.Point(138, 434);
|
||||||
this.pictureBoxMinus.Margin = new System.Windows.Forms.Padding(2);
|
|
||||||
this.pictureBoxMinus.Name = "pictureBoxMinus";
|
this.pictureBoxMinus.Name = "pictureBoxMinus";
|
||||||
this.pictureBoxMinus.Size = new System.Drawing.Size(38, 41);
|
this.pictureBoxMinus.Size = new System.Drawing.Size(57, 63);
|
||||||
this.pictureBoxMinus.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
|
this.pictureBoxMinus.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
|
||||||
this.pictureBoxMinus.TabIndex = 30;
|
this.pictureBoxMinus.TabIndex = 30;
|
||||||
this.pictureBoxMinus.TabStop = false;
|
this.pictureBoxMinus.TabStop = false;
|
||||||
@ -291,10 +178,9 @@
|
|||||||
//
|
//
|
||||||
this.pictureBoxPlus.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(192)))), ((int)(((byte)(0)))));
|
this.pictureBoxPlus.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(192)))), ((int)(((byte)(0)))));
|
||||||
this.pictureBoxPlus.Image = ((System.Drawing.Image)(resources.GetObject("pictureBoxPlus.Image")));
|
this.pictureBoxPlus.Image = ((System.Drawing.Image)(resources.GetObject("pictureBoxPlus.Image")));
|
||||||
this.pictureBoxPlus.Location = new System.Drawing.Point(358, 117);
|
this.pictureBoxPlus.Location = new System.Drawing.Point(250, 434);
|
||||||
this.pictureBoxPlus.Margin = new System.Windows.Forms.Padding(2);
|
|
||||||
this.pictureBoxPlus.Name = "pictureBoxPlus";
|
this.pictureBoxPlus.Name = "pictureBoxPlus";
|
||||||
this.pictureBoxPlus.Size = new System.Drawing.Size(38, 41);
|
this.pictureBoxPlus.Size = new System.Drawing.Size(57, 63);
|
||||||
this.pictureBoxPlus.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
|
this.pictureBoxPlus.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
|
||||||
this.pictureBoxPlus.TabIndex = 29;
|
this.pictureBoxPlus.TabIndex = 29;
|
||||||
this.pictureBoxPlus.TabStop = false;
|
this.pictureBoxPlus.TabStop = false;
|
||||||
@ -305,10 +191,9 @@
|
|||||||
this.labelContainer.BackColor = System.Drawing.Color.White;
|
this.labelContainer.BackColor = System.Drawing.Color.White;
|
||||||
this.labelContainer.Font = new System.Drawing.Font("Microsoft Sans Serif", 16.2F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
this.labelContainer.Font = new System.Drawing.Font("Microsoft Sans Serif", 16.2F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||||
this.labelContainer.ForeColor = System.Drawing.Color.Black;
|
this.labelContainer.ForeColor = System.Drawing.Color.Black;
|
||||||
this.labelContainer.Location = new System.Drawing.Point(320, 117);
|
this.labelContainer.Location = new System.Drawing.Point(194, 434);
|
||||||
this.labelContainer.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
|
|
||||||
this.labelContainer.Name = "labelContainer";
|
this.labelContainer.Name = "labelContainer";
|
||||||
this.labelContainer.Size = new System.Drawing.Size(38, 41);
|
this.labelContainer.Size = new System.Drawing.Size(57, 63);
|
||||||
this.labelContainer.TabIndex = 28;
|
this.labelContainer.TabIndex = 28;
|
||||||
this.labelContainer.Text = "0";
|
this.labelContainer.Text = "0";
|
||||||
this.labelContainer.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
this.labelContainer.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||||
@ -319,8 +204,7 @@
|
|||||||
this.label5.AutoSize = true;
|
this.label5.AutoSize = true;
|
||||||
this.label5.Font = new System.Drawing.Font("Microsoft Sans Serif", 10.2F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
this.label5.Font = new System.Drawing.Font("Microsoft Sans Serif", 10.2F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||||
this.label5.ForeColor = System.Drawing.Color.White;
|
this.label5.ForeColor = System.Drawing.Color.White;
|
||||||
this.label5.Location = new System.Drawing.Point(316, 98);
|
this.label5.Location = new System.Drawing.Point(188, 405);
|
||||||
this.label5.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
|
|
||||||
this.label5.Name = "label5";
|
this.label5.Name = "label5";
|
||||||
this.label5.Size = new System.Drawing.Size(52, 17);
|
this.label5.Size = new System.Drawing.Size(52, 17);
|
||||||
this.label5.TabIndex = 31;
|
this.label5.TabIndex = 31;
|
||||||
@ -331,25 +215,12 @@
|
|||||||
this.label6.AutoSize = true;
|
this.label6.AutoSize = true;
|
||||||
this.label6.Font = new System.Drawing.Font("Microsoft Sans Serif", 10.2F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
this.label6.Font = new System.Drawing.Font("Microsoft Sans Serif", 10.2F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||||
this.label6.ForeColor = System.Drawing.Color.White;
|
this.label6.ForeColor = System.Drawing.Color.White;
|
||||||
this.label6.Location = new System.Drawing.Point(420, 98);
|
this.label6.Location = new System.Drawing.Point(394, 405);
|
||||||
this.label6.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
|
|
||||||
this.label6.Name = "label6";
|
this.label6.Name = "label6";
|
||||||
this.label6.Size = new System.Drawing.Size(71, 17);
|
this.label6.Size = new System.Drawing.Size(71, 17);
|
||||||
this.label6.TabIndex = 32;
|
this.label6.TabIndex = 32;
|
||||||
this.label6.Text = "schmutzig";
|
this.label6.Text = "schmutzig";
|
||||||
//
|
//
|
||||||
// labelContDirt
|
|
||||||
//
|
|
||||||
this.labelContDirt.AutoSize = true;
|
|
||||||
this.labelContDirt.Font = new System.Drawing.Font("Microsoft Sans Serif", 22.2F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
||||||
this.labelContDirt.ForeColor = System.Drawing.Color.White;
|
|
||||||
this.labelContDirt.Location = new System.Drawing.Point(438, 118);
|
|
||||||
this.labelContDirt.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
|
|
||||||
this.labelContDirt.Name = "labelContDirt";
|
|
||||||
this.labelContDirt.Size = new System.Drawing.Size(32, 36);
|
|
||||||
this.labelContDirt.TabIndex = 33;
|
|
||||||
this.labelContDirt.Text = "0";
|
|
||||||
//
|
|
||||||
// buttonSWS
|
// buttonSWS
|
||||||
//
|
//
|
||||||
this.buttonSWS.Anchor = System.Windows.Forms.AnchorStyles.Bottom;
|
this.buttonSWS.Anchor = System.Windows.Forms.AnchorStyles.Bottom;
|
||||||
@ -358,69 +229,194 @@
|
|||||||
this.buttonSWS.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
this.buttonSWS.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||||
this.buttonSWS.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
this.buttonSWS.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||||
this.buttonSWS.ForeColor = System.Drawing.Color.Black;
|
this.buttonSWS.ForeColor = System.Drawing.Color.Black;
|
||||||
this.buttonSWS.Location = new System.Drawing.Point(11, 462);
|
this.buttonSWS.Location = new System.Drawing.Point(16, 769);
|
||||||
this.buttonSWS.Margin = new System.Windows.Forms.Padding(2);
|
|
||||||
this.buttonSWS.Name = "buttonSWS";
|
this.buttonSWS.Name = "buttonSWS";
|
||||||
this.buttonSWS.Size = new System.Drawing.Size(200, 41);
|
this.buttonSWS.Size = new System.Drawing.Size(300, 63);
|
||||||
this.buttonSWS.TabIndex = 34;
|
this.buttonSWS.TabIndex = 34;
|
||||||
this.buttonSWS.Text = "Schmutzwäscheschein";
|
this.buttonSWS.Text = "Sonderetikett drucken";
|
||||||
this.buttonSWS.UseVisualStyleBackColor = false;
|
this.buttonSWS.UseVisualStyleBackColor = false;
|
||||||
this.buttonSWS.Click += new System.EventHandler(this.buttonSWS_Click);
|
this.buttonSWS.Click += new System.EventHandler(this.buttonSWS_Click);
|
||||||
//
|
//
|
||||||
// listViewArtikel
|
|
||||||
//
|
|
||||||
this.listViewArtikel.CheckBoxes = true;
|
|
||||||
this.listViewArtikel.Font = new System.Drawing.Font("Microsoft Sans Serif", 20.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
||||||
this.listViewArtikel.FullRowSelect = true;
|
|
||||||
this.listViewArtikel.GridLines = true;
|
|
||||||
this.listViewArtikel.HideSelection = false;
|
|
||||||
this.listViewArtikel.Location = new System.Drawing.Point(12, 189);
|
|
||||||
this.listViewArtikel.Name = "listViewArtikel";
|
|
||||||
this.listViewArtikel.Size = new System.Drawing.Size(811, 260);
|
|
||||||
this.listViewArtikel.TabIndex = 35;
|
|
||||||
this.listViewArtikel.UseCompatibleStateImageBehavior = false;
|
|
||||||
this.listViewArtikel.View = System.Windows.Forms.View.Details;
|
|
||||||
this.listViewArtikel.Visible = false;
|
|
||||||
this.listViewArtikel.ItemCheck += new System.Windows.Forms.ItemCheckEventHandler(this.listViewArtikel_ItemCheck);
|
|
||||||
this.listViewArtikel.ItemChecked += new System.Windows.Forms.ItemCheckedEventHandler(this.listViewArtikel_ItemChecked);
|
|
||||||
//
|
|
||||||
// buttonSpeichern
|
// buttonSpeichern
|
||||||
//
|
//
|
||||||
this.buttonSpeichern.Anchor = System.Windows.Forms.AnchorStyles.Bottom;
|
this.buttonSpeichern.Anchor = System.Windows.Forms.AnchorStyles.Bottom;
|
||||||
this.buttonSpeichern.BackColor = System.Drawing.Color.Lime;
|
this.buttonSpeichern.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(192)))), ((int)(((byte)(0)))));
|
||||||
this.buttonSpeichern.FlatAppearance.BorderSize = 0;
|
this.buttonSpeichern.FlatAppearance.BorderSize = 0;
|
||||||
this.buttonSpeichern.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
this.buttonSpeichern.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||||
this.buttonSpeichern.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
this.buttonSpeichern.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||||
this.buttonSpeichern.ForeColor = System.Drawing.Color.Black;
|
this.buttonSpeichern.ForeColor = System.Drawing.Color.Black;
|
||||||
this.buttonSpeichern.Location = new System.Drawing.Point(215, 462);
|
this.buttonSpeichern.Location = new System.Drawing.Point(628, 769);
|
||||||
this.buttonSpeichern.Margin = new System.Windows.Forms.Padding(2);
|
|
||||||
this.buttonSpeichern.Name = "buttonSpeichern";
|
this.buttonSpeichern.Name = "buttonSpeichern";
|
||||||
this.buttonSpeichern.Size = new System.Drawing.Size(200, 41);
|
this.buttonSpeichern.Size = new System.Drawing.Size(300, 63);
|
||||||
this.buttonSpeichern.TabIndex = 36;
|
this.buttonSpeichern.TabIndex = 36;
|
||||||
this.buttonSpeichern.Text = "Änderungen speichern";
|
this.buttonSpeichern.Text = "Änderungen speichern";
|
||||||
this.buttonSpeichern.UseVisualStyleBackColor = false;
|
this.buttonSpeichern.UseVisualStyleBackColor = false;
|
||||||
this.buttonSpeichern.Visible = false;
|
|
||||||
this.buttonSpeichern.Click += new System.EventHandler(this.buttonSpeichern_Click);
|
this.buttonSpeichern.Click += new System.EventHandler(this.buttonSpeichern_Click);
|
||||||
//
|
//
|
||||||
|
// label7
|
||||||
|
//
|
||||||
|
this.label7.AutoSize = true;
|
||||||
|
this.label7.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||||
|
this.label7.ForeColor = System.Drawing.Color.White;
|
||||||
|
this.label7.Location = new System.Drawing.Point(16, 249);
|
||||||
|
this.label7.Name = "label7";
|
||||||
|
this.label7.Size = new System.Drawing.Size(60, 20);
|
||||||
|
this.label7.TabIndex = 37;
|
||||||
|
this.label7.Text = "Fahrer:";
|
||||||
|
//
|
||||||
|
// label10
|
||||||
|
//
|
||||||
|
this.label10.AutoSize = true;
|
||||||
|
this.label10.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||||
|
this.label10.ForeColor = System.Drawing.Color.White;
|
||||||
|
this.label10.Location = new System.Drawing.Point(16, 320);
|
||||||
|
this.label10.Name = "label10";
|
||||||
|
this.label10.Size = new System.Drawing.Size(67, 20);
|
||||||
|
this.label10.TabIndex = 39;
|
||||||
|
this.label10.Text = "Priorität:";
|
||||||
|
//
|
||||||
|
// comboBoxPriority
|
||||||
|
//
|
||||||
|
this.comboBoxPriority.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||||
|
this.comboBoxPriority.FormattingEnabled = true;
|
||||||
|
this.comboBoxPriority.Location = new System.Drawing.Point(136, 311);
|
||||||
|
this.comboBoxPriority.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
|
||||||
|
this.comboBoxPriority.Name = "comboBoxPriority";
|
||||||
|
this.comboBoxPriority.Size = new System.Drawing.Size(391, 32);
|
||||||
|
this.comboBoxPriority.TabIndex = 41;
|
||||||
|
this.comboBoxPriority.SelectedValueChanged += new System.EventHandler(this.comboBox_SelectedValueChanged);
|
||||||
|
//
|
||||||
|
// comboBoxFahrer
|
||||||
|
//
|
||||||
|
this.comboBoxFahrer.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||||
|
this.comboBoxFahrer.FormattingEnabled = true;
|
||||||
|
this.comboBoxFahrer.Location = new System.Drawing.Point(136, 240);
|
||||||
|
this.comboBoxFahrer.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
|
||||||
|
this.comboBoxFahrer.Name = "comboBoxFahrer";
|
||||||
|
this.comboBoxFahrer.Size = new System.Drawing.Size(391, 32);
|
||||||
|
this.comboBoxFahrer.TabIndex = 42;
|
||||||
|
this.comboBoxFahrer.SelectedValueChanged += new System.EventHandler(this.comboBox_SelectedValueChanged);
|
||||||
|
//
|
||||||
|
// pictureBoxDirtMinus
|
||||||
|
//
|
||||||
|
this.pictureBoxDirtMinus.BackColor = System.Drawing.Color.Red;
|
||||||
|
this.pictureBoxDirtMinus.Image = ((System.Drawing.Image)(resources.GetObject("pictureBoxDirtMinus.Image")));
|
||||||
|
this.pictureBoxDirtMinus.Location = new System.Drawing.Point(360, 434);
|
||||||
|
this.pictureBoxDirtMinus.Name = "pictureBoxDirtMinus";
|
||||||
|
this.pictureBoxDirtMinus.Size = new System.Drawing.Size(57, 63);
|
||||||
|
this.pictureBoxDirtMinus.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
|
||||||
|
this.pictureBoxDirtMinus.TabIndex = 45;
|
||||||
|
this.pictureBoxDirtMinus.TabStop = false;
|
||||||
|
this.pictureBoxDirtMinus.Click += new System.EventHandler(this.Container_Click);
|
||||||
|
//
|
||||||
|
// pictureBoxDirtPlus
|
||||||
|
//
|
||||||
|
this.pictureBoxDirtPlus.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(192)))), ((int)(((byte)(0)))));
|
||||||
|
this.pictureBoxDirtPlus.Image = ((System.Drawing.Image)(resources.GetObject("pictureBoxDirtPlus.Image")));
|
||||||
|
this.pictureBoxDirtPlus.Location = new System.Drawing.Point(472, 434);
|
||||||
|
this.pictureBoxDirtPlus.Name = "pictureBoxDirtPlus";
|
||||||
|
this.pictureBoxDirtPlus.Size = new System.Drawing.Size(57, 63);
|
||||||
|
this.pictureBoxDirtPlus.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
|
||||||
|
this.pictureBoxDirtPlus.TabIndex = 44;
|
||||||
|
this.pictureBoxDirtPlus.TabStop = false;
|
||||||
|
this.pictureBoxDirtPlus.Click += new System.EventHandler(this.Container_Click);
|
||||||
|
//
|
||||||
|
// labelContDirt
|
||||||
|
//
|
||||||
|
this.labelContDirt.BackColor = System.Drawing.Color.White;
|
||||||
|
this.labelContDirt.Font = new System.Drawing.Font("Microsoft Sans Serif", 16.2F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||||
|
this.labelContDirt.ForeColor = System.Drawing.Color.Black;
|
||||||
|
this.labelContDirt.Location = new System.Drawing.Point(416, 434);
|
||||||
|
this.labelContDirt.Name = "labelContDirt";
|
||||||
|
this.labelContDirt.Size = new System.Drawing.Size(57, 63);
|
||||||
|
this.labelContDirt.TabIndex = 43;
|
||||||
|
this.labelContDirt.Text = "0";
|
||||||
|
this.labelContDirt.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||||
|
//
|
||||||
|
// label3
|
||||||
|
//
|
||||||
|
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(18, 14);
|
||||||
|
this.label3.Name = "label3";
|
||||||
|
this.label3.Size = new System.Drawing.Size(75, 20);
|
||||||
|
this.label3.TabIndex = 46;
|
||||||
|
this.label3.Text = "KundeNr:";
|
||||||
|
//
|
||||||
|
// 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(16, 122);
|
||||||
|
this.label4.Name = "label4";
|
||||||
|
this.label4.Size = new System.Drawing.Size(64, 20);
|
||||||
|
this.label4.TabIndex = 47;
|
||||||
|
this.label4.Text = "Region:";
|
||||||
|
//
|
||||||
|
// label8
|
||||||
|
//
|
||||||
|
this.label8.AutoSize = true;
|
||||||
|
this.label8.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||||
|
this.label8.ForeColor = System.Drawing.Color.White;
|
||||||
|
this.label8.Location = new System.Drawing.Point(18, 185);
|
||||||
|
this.label8.Name = "label8";
|
||||||
|
this.label8.Size = new System.Drawing.Size(76, 20);
|
||||||
|
this.label8.TabIndex = 48;
|
||||||
|
this.label8.Text = "Liefertag:";
|
||||||
|
//
|
||||||
|
// oLVArtikel
|
||||||
|
//
|
||||||
|
this.oLVArtikel.AlternateRowBackColor = System.Drawing.Color.LightSteelBlue;
|
||||||
|
this.oLVArtikel.CellEditActivation = BrightIdeasSoftware.ObjectListView.CellEditActivateMode.DoubleClick;
|
||||||
|
this.oLVArtikel.CellEditUseWholeCell = false;
|
||||||
|
this.oLVArtikel.CheckBoxes = true;
|
||||||
|
this.oLVArtikel.CheckedAspectName = "Erledigt";
|
||||||
|
this.oLVArtikel.Cursor = System.Windows.Forms.Cursors.Default;
|
||||||
|
this.oLVArtikel.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||||
|
this.oLVArtikel.FullRowSelect = true;
|
||||||
|
this.oLVArtikel.GridLines = true;
|
||||||
|
this.oLVArtikel.HideSelection = false;
|
||||||
|
this.oLVArtikel.Location = new System.Drawing.Point(556, 97);
|
||||||
|
this.oLVArtikel.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
|
||||||
|
this.oLVArtikel.Name = "oLVArtikel";
|
||||||
|
this.oLVArtikel.ShowImagesOnSubItems = true;
|
||||||
|
this.oLVArtikel.Size = new System.Drawing.Size(676, 650);
|
||||||
|
this.oLVArtikel.TabIndex = 49;
|
||||||
|
this.oLVArtikel.UseAlternatingBackColors = true;
|
||||||
|
this.oLVArtikel.UseCompatibleStateImageBehavior = false;
|
||||||
|
this.oLVArtikel.UseSubItemCheckBoxes = true;
|
||||||
|
this.oLVArtikel.View = System.Windows.Forms.View.Details;
|
||||||
|
this.oLVArtikel.CellEditFinished += new BrightIdeasSoftware.CellEditEventHandler(this.oLVArtikel_CellEditFinished);
|
||||||
|
this.oLVArtikel.CellEditStarting += new BrightIdeasSoftware.CellEditEventHandler(this.oLVArtikel_CellEditStarting);
|
||||||
|
this.oLVArtikel.ItemCheck += new System.Windows.Forms.ItemCheckEventHandler(this.oLVArtikel_ItemCheck);
|
||||||
|
this.oLVArtikel.ItemChecked += new System.Windows.Forms.ItemCheckedEventHandler(this.oLVArtikel_ItemChecked);
|
||||||
|
//
|
||||||
// FormAuftragDetail
|
// FormAuftragDetail
|
||||||
//
|
//
|
||||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 20F);
|
||||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||||
this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(1)))), ((int)(((byte)(53)))), ((int)(((byte)(101)))));
|
this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(1)))), ((int)(((byte)(53)))), ((int)(((byte)(101)))));
|
||||||
this.ClientSize = new System.Drawing.Size(835, 520);
|
this.ClientSize = new System.Drawing.Size(1252, 858);
|
||||||
this.Controls.Add(this.buttonSpeichern);
|
this.Controls.Add(this.oLVArtikel);
|
||||||
this.Controls.Add(this.listViewArtikel);
|
this.Controls.Add(this.label8);
|
||||||
this.Controls.Add(this.buttonSWS);
|
this.Controls.Add(this.label4);
|
||||||
|
this.Controls.Add(this.label3);
|
||||||
|
this.Controls.Add(this.pictureBoxDirtMinus);
|
||||||
|
this.Controls.Add(this.pictureBoxDirtPlus);
|
||||||
this.Controls.Add(this.labelContDirt);
|
this.Controls.Add(this.labelContDirt);
|
||||||
|
this.Controls.Add(this.comboBoxFahrer);
|
||||||
|
this.Controls.Add(this.comboBoxPriority);
|
||||||
|
this.Controls.Add(this.label10);
|
||||||
|
this.Controls.Add(this.label7);
|
||||||
|
this.Controls.Add(this.buttonSpeichern);
|
||||||
|
this.Controls.Add(this.buttonSWS);
|
||||||
this.Controls.Add(this.label6);
|
this.Controls.Add(this.label6);
|
||||||
this.Controls.Add(this.label5);
|
this.Controls.Add(this.label5);
|
||||||
this.Controls.Add(this.pictureBoxMinus);
|
this.Controls.Add(this.pictureBoxMinus);
|
||||||
this.Controls.Add(this.pictureBoxPlus);
|
this.Controls.Add(this.pictureBoxPlus);
|
||||||
this.Controls.Add(this.labelContainer);
|
this.Controls.Add(this.labelContainer);
|
||||||
this.Controls.Add(this.label4);
|
|
||||||
this.Controls.Add(this.label3);
|
|
||||||
this.Controls.Add(this.listViewDanach);
|
|
||||||
this.Controls.Add(this.listViewDavor);
|
|
||||||
this.Controls.Add(this.label2);
|
this.Controls.Add(this.label2);
|
||||||
this.Controls.Add(this.label1);
|
this.Controls.Add(this.label1);
|
||||||
this.Controls.Add(this.textBoxZusatz);
|
this.Controls.Add(this.textBoxZusatz);
|
||||||
@ -431,14 +427,17 @@
|
|||||||
this.Controls.Add(this.dTPLiefertag);
|
this.Controls.Add(this.dTPLiefertag);
|
||||||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
|
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
|
||||||
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
||||||
this.Margin = new System.Windows.Forms.Padding(2);
|
|
||||||
this.MaximizeBox = false;
|
this.MaximizeBox = false;
|
||||||
this.Name = "FormAuftragDetail";
|
this.Name = "FormAuftragDetail";
|
||||||
this.Text = "Auftrag Detail";
|
this.Text = "Auftrag Detail";
|
||||||
this.Load += new System.EventHandler(this.FormAuftragDetail_Load);
|
this.Load += new System.EventHandler(this.FormAuftragDetail_Load);
|
||||||
|
this.Shown += new System.EventHandler(this.FormAuftragDetail_Shown);
|
||||||
this.MouseClick += new System.Windows.Forms.MouseEventHandler(this.FormAuftragDetail_MouseClick);
|
this.MouseClick += new System.Windows.Forms.MouseEventHandler(this.FormAuftragDetail_MouseClick);
|
||||||
((System.ComponentModel.ISupportInitialize)(this.pictureBoxMinus)).EndInit();
|
((System.ComponentModel.ISupportInitialize)(this.pictureBoxMinus)).EndInit();
|
||||||
((System.ComponentModel.ISupportInitialize)(this.pictureBoxPlus)).EndInit();
|
((System.ComponentModel.ISupportInitialize)(this.pictureBoxPlus)).EndInit();
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.pictureBoxDirtMinus)).EndInit();
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.pictureBoxDirtPlus)).EndInit();
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.oLVArtikel)).EndInit();
|
||||||
this.ResumeLayout(false);
|
this.ResumeLayout(false);
|
||||||
this.PerformLayout();
|
this.PerformLayout();
|
||||||
|
|
||||||
@ -454,26 +453,23 @@
|
|||||||
private System.Windows.Forms.TextBox textBoxZusatz;
|
private System.Windows.Forms.TextBox textBoxZusatz;
|
||||||
private System.Windows.Forms.Label label1;
|
private System.Windows.Forms.Label label1;
|
||||||
private System.Windows.Forms.Label label2;
|
private System.Windows.Forms.Label label2;
|
||||||
private System.Windows.Forms.ListView listViewDavor;
|
|
||||||
private System.Windows.Forms.ColumnHeader columnHeader3;
|
|
||||||
private System.Windows.Forms.ColumnHeader columnHeader1;
|
|
||||||
private System.Windows.Forms.ColumnHeader columnHeader2;
|
|
||||||
private System.Windows.Forms.ListView listViewDanach;
|
|
||||||
private System.Windows.Forms.ColumnHeader columnHeader4;
|
|
||||||
private System.Windows.Forms.ColumnHeader columnHeader5;
|
|
||||||
private System.Windows.Forms.ColumnHeader columnHeader6;
|
|
||||||
private System.Windows.Forms.Label label3;
|
|
||||||
private System.Windows.Forms.Label label4;
|
|
||||||
private System.Windows.Forms.ColumnHeader columnHeader7;
|
|
||||||
private System.Windows.Forms.ColumnHeader columnHeader8;
|
|
||||||
private System.Windows.Forms.PictureBox pictureBoxMinus;
|
private System.Windows.Forms.PictureBox pictureBoxMinus;
|
||||||
private System.Windows.Forms.PictureBox pictureBoxPlus;
|
private System.Windows.Forms.PictureBox pictureBoxPlus;
|
||||||
private System.Windows.Forms.Label labelContainer;
|
private System.Windows.Forms.Label labelContainer;
|
||||||
private System.Windows.Forms.Label label5;
|
private System.Windows.Forms.Label label5;
|
||||||
private System.Windows.Forms.Label label6;
|
private System.Windows.Forms.Label label6;
|
||||||
private System.Windows.Forms.Label labelContDirt;
|
|
||||||
private System.Windows.Forms.Button buttonSWS;
|
private System.Windows.Forms.Button buttonSWS;
|
||||||
private System.Windows.Forms.ListView listViewArtikel;
|
|
||||||
private System.Windows.Forms.Button buttonSpeichern;
|
private System.Windows.Forms.Button buttonSpeichern;
|
||||||
|
private System.Windows.Forms.Label label7;
|
||||||
|
private System.Windows.Forms.Label label10;
|
||||||
|
private System.Windows.Forms.ComboBox comboBoxPriority;
|
||||||
|
private System.Windows.Forms.ComboBox comboBoxFahrer;
|
||||||
|
private System.Windows.Forms.PictureBox pictureBoxDirtMinus;
|
||||||
|
private System.Windows.Forms.PictureBox pictureBoxDirtPlus;
|
||||||
|
private System.Windows.Forms.Label labelContDirt;
|
||||||
|
private System.Windows.Forms.Label label3;
|
||||||
|
private System.Windows.Forms.Label label4;
|
||||||
|
private System.Windows.Forms.Label label8;
|
||||||
|
private BrightIdeasSoftware.ObjectListView oLVArtikel;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -10,7 +10,9 @@ using System.Text;
|
|||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using System.Web;
|
using System.Web;
|
||||||
using System.Windows.Forms;
|
using System.Windows.Forms;
|
||||||
|
using BrightIdeasSoftware;
|
||||||
using DatenDB;
|
using DatenDB;
|
||||||
|
using Deckungsbeitrag.UserControls;
|
||||||
|
|
||||||
namespace Deckungsbeitrag
|
namespace Deckungsbeitrag
|
||||||
{
|
{
|
||||||
@ -20,6 +22,10 @@ namespace Deckungsbeitrag
|
|||||||
public Benutzer benutzer;
|
public Benutzer benutzer;
|
||||||
public List<AuftragArtikel> artikelList;
|
public List<AuftragArtikel> artikelList;
|
||||||
public Meldungen meldung = new Meldungen();
|
public Meldungen meldung = new Meldungen();
|
||||||
|
public Kunde kunde;
|
||||||
|
private int diff = 0;
|
||||||
|
int[] bestand = new int[3]; // Reklamation/Fehlmenge/Standveränderung
|
||||||
|
|
||||||
|
|
||||||
//WENN AUFTRAG SPEICHERN
|
//WENN AUFTRAG SPEICHERN
|
||||||
private bool _tosave = false;
|
private bool _tosave = false;
|
||||||
@ -32,7 +38,7 @@ namespace Deckungsbeitrag
|
|||||||
if (_tosave)
|
if (_tosave)
|
||||||
{
|
{
|
||||||
buttonSpeichern.Enabled = true;
|
buttonSpeichern.Enabled = true;
|
||||||
buttonSpeichern.BackColor = Color.Yellow;
|
buttonSpeichern.BackColor = Color.FromArgb(0,192,0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -53,7 +59,6 @@ namespace Deckungsbeitrag
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public FormAuftragDetail()
|
public FormAuftragDetail()
|
||||||
{
|
{
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
@ -71,83 +76,63 @@ namespace Deckungsbeitrag
|
|||||||
this.benutzer = benutzer;
|
this.benutzer = benutzer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
private void FormAuftragDetail_Load(object sender, EventArgs e)
|
private void FormAuftragDetail_Load(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
|
LadeComboBoxen();
|
||||||
|
this.Text = this.auftrag.Typ.ToString() + "-Auftrag";
|
||||||
|
this.kunde = Kunde.GetKunde(string.Empty, auftrag.KundeID, string.Empty);
|
||||||
|
|
||||||
this.dTPLiefertag.Value = auftrag.Liefertag;
|
this.dTPLiefertag.Value = auftrag.Liefertag;
|
||||||
this.labelKundeName.Text = Kunde.GetKunde(string.Empty, auftrag.KundeID, string.Empty).Suchtext;
|
this.labelKundeName.Text = string.IsNullOrWhiteSpace(this.kunde.Suchtext) ? this.kunde.KundeName : this.kunde.Suchtext;
|
||||||
this.labelRegion.Text = Kunde.GetKunde(string.Empty, auftrag.KundeID, string.Empty).Region;
|
this.labelRegion.Text = this.kunde.Region;
|
||||||
this.labelContainer.Text = auftrag.ContainerClean.ToString();
|
this.labelContainer.Text = auftrag.ContainerClean.ToString();
|
||||||
this.labelContDirt.Text = auftrag.Container.ToString();
|
this.labelContDirt.Text = auftrag.Container.ToString();
|
||||||
//this.textBoxZusatz.Text = auftrag.ZusatzInfo;
|
this.textBoxZusatz.Text = $"{auftrag.ZusatzInfo}\n{this.kunde.Anmerkung}\n{Aufgabe.GetAufgabe(null, this.kunde.Aufgabe).Bezeichnung}";
|
||||||
|
if (auftrag.Fahrer == null) this.comboBoxFahrer.SelectedIndex = -1;
|
||||||
|
else this.comboBoxFahrer.SelectedValue = auftrag.Fahrer;
|
||||||
|
this.comboBoxPriority.SelectedItem = auftrag.Priority;
|
||||||
|
|
||||||
//WENN STATUS 3(HERRICHTEN) oder HÖHER(FERTIG, AUSGELIEFERT) DANN KEINE VORHER NACHHER LISTEN
|
// Events nach dem Laden der Daten wieder den ComboBoxen zuweisen.
|
||||||
if (auftrag.Status <= AuftragStatus.Gewaschen)
|
this.comboBoxPriority.SelectedValueChanged += comboBox_SelectedValueChanged;
|
||||||
{
|
this.comboBoxFahrer.SelectedValueChanged += comboBox_SelectedValueChanged;
|
||||||
List<Auftrag> davor = Auftrag.GetAuftragList("davor", auftrag);
|
|
||||||
List<Auftrag> danach = Auftrag.GetAuftragList("danach", auftrag);
|
|
||||||
|
|
||||||
foreach (Auftrag auftrag in davor)
|
Load_OLV();
|
||||||
{
|
|
||||||
ListViewItem item = new ListViewItem();
|
|
||||||
item.Tag = auftrag;
|
|
||||||
item.Text = Kunde.GetKunde(string.Empty, auftrag.KundeID, string.Empty).Suchtext;
|
|
||||||
item.SubItems.Add(Kunde.GetKunde(string.Empty, auftrag.KundeID, string.Empty).Region);
|
|
||||||
item.SubItems.Add(auftrag.Container.ToString());
|
|
||||||
item.SubItems.Add(auftrag.Status.ToString());
|
|
||||||
|
|
||||||
this.listViewDavor.Items.Add(item);
|
|
||||||
}
|
|
||||||
foreach (Auftrag auftrag in danach)
|
|
||||||
{
|
|
||||||
ListViewItem item = new ListViewItem();
|
|
||||||
item.Tag = auftrag;
|
|
||||||
item.Text = Kunde.GetKunde(string.Empty, auftrag.KundeID, string.Empty).Suchtext;
|
|
||||||
item.SubItems.Add(Kunde.GetKunde(string.Empty, auftrag.KundeID, string.Empty).Region);
|
|
||||||
item.SubItems.Add(auftrag.Container.ToString());
|
|
||||||
item.SubItems.Add(auftrag.Status.ToString());
|
|
||||||
|
|
||||||
this.listViewDanach.Items.Add(item);
|
|
||||||
|
|
||||||
}
|
|
||||||
int width = this.listViewDavor.Width;
|
|
||||||
this.listViewDavor = Funktionen.Columns_Resize(this.listViewDavor, null).lv;
|
|
||||||
this.listViewDanach = Funktionen.Columns_Resize(this.listViewDanach, null).lv;
|
|
||||||
this.listViewDanach.Width = this.listViewDavor.Width = width;
|
|
||||||
}
|
|
||||||
else listViewDanach.Visible = listViewDavor.Visible = label3.Visible = label4.Visible = false;
|
|
||||||
|
|
||||||
//WENN STATUS HERRICHTEN DANN LISTVIEW-ARTIKEL LADEN UND ANZEIGEN
|
|
||||||
if(auftrag.Status == AuftragStatus.Herrichten)
|
|
||||||
{
|
|
||||||
this.listViewArtikel.Visible = true;
|
|
||||||
this.artikelList = AuftragArtikel.GetList(auftrag.AuftragID);
|
|
||||||
this.listViewArtikel.Columns.Clear();
|
|
||||||
this.listViewArtikel.Columns.Add("ARTIKEL");
|
|
||||||
this.listViewArtikel.Columns.Add("ANZAHL");
|
|
||||||
|
|
||||||
foreach(AuftragArtikel art in artikelList)
|
|
||||||
{
|
|
||||||
ListViewItem item = new ListViewItem();
|
|
||||||
item.Tag = art;
|
|
||||||
item.Text = art.ArtikelName;
|
|
||||||
item.SubItems.Add(art.Anzahl.ToString());
|
|
||||||
if (art.Erledigt) { item.Checked = true; }
|
|
||||||
else item.Checked = false;
|
|
||||||
|
|
||||||
this.listViewArtikel.Items.Add(item);
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
this.listViewArtikel = Funktionen.Columns_Resize(this.listViewArtikel, null).lv;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
this.ClientSize = new Size(this.oLVArtikel.Right + 10, this.ClientSize.Height);
|
||||||
//WENN STATUS VORBEREITET BUTTON FERTIG ENABLEN
|
//WENN STATUS VORBEREITET BUTTON FERTIG ENABLEN
|
||||||
if (auftrag.Status == AuftragStatus.Vorbereitet) { buttonFertig.Enabled = true; buttonFertig.BackColor = Color.FromArgb(0, 192, 0); toclose = true; }
|
if (auftrag.Status == AuftragStatus.Vorbereitet) { buttonFertig.Enabled = true; buttonFertig.BackColor = Color.FromArgb(0, 192, 0); toclose = true; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void Load_OLV()
|
||||||
|
{
|
||||||
|
Generator.GenerateColumns(this.oLVArtikel, typeof(AuftragArtikel), true);
|
||||||
|
|
||||||
|
this.artikelList = AuftragArtikel.GetList(auftrag.AuftragID);
|
||||||
|
|
||||||
|
this.oLVArtikel.SetObjects(this.artikelList);
|
||||||
|
this.oLVArtikel = Funktionen.Columns_Resize(null, this.oLVArtikel).olv;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void LadeComboBoxen()
|
||||||
|
{
|
||||||
|
this.comboBoxFahrer.SelectedValueChanged -= comboBox_SelectedValueChanged;
|
||||||
|
this.comboBoxPriority.SelectedValueChanged -= comboBox_SelectedValueChanged;
|
||||||
|
|
||||||
|
List<Benutzer> benutzerliste = Benutzer.GetFahrerList();
|
||||||
|
this.comboBoxFahrer.DataSource = benutzerliste;
|
||||||
|
this.comboBoxFahrer.ValueMember = "BenutzerName";
|
||||||
|
|
||||||
|
this.comboBoxPriority.DataSource = Enum.GetValues(typeof(AuftragPriority));
|
||||||
|
}
|
||||||
|
private void comboBox_SelectedValueChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
tosave = true;
|
||||||
|
}
|
||||||
private void labelContainer_TextChanged(object sender, EventArgs e)
|
private void labelContainer_TextChanged(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
if (this.labelContainer.Text == "0") { this.pictureBoxMinus.Enabled = false; this.pictureBoxMinus.BackColor = Color.Gray; }
|
if (this.labelContainer.Text == "0") { this.pictureBoxMinus.Enabled = this.pictureBoxDirtMinus.Enabled = false; this.pictureBoxMinus.BackColor = this.pictureBoxDirtMinus.BackColor = Color.Gray; }
|
||||||
else { this.pictureBoxMinus.Enabled = true; this.pictureBoxMinus.BackColor = Color.Red; }
|
else { this.pictureBoxMinus.Enabled = this.pictureBoxDirtMinus.Enabled = true; this.pictureBoxMinus.BackColor = this.pictureBoxDirtMinus.BackColor = Color.Red; }
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -159,13 +144,22 @@ namespace Deckungsbeitrag
|
|||||||
//BEI CLICK AUF CONTAINER +/- SPEICHERN WIRD AKITV
|
//BEI CLICK AUF CONTAINER +/- SPEICHERN WIRD AKITV
|
||||||
private void Container_Click(object sender, EventArgs e)
|
private void Container_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
|
|
||||||
PictureBox pb = (PictureBox)sender;
|
PictureBox pb = (PictureBox)sender;
|
||||||
int cont = int.Parse(this.labelContainer.Text);
|
int cont = 0;
|
||||||
if (pb.Name.ToString().Contains("Plus")) cont++;
|
if (pb.Name.Contains("Dirt"))
|
||||||
if (pb.Name.ToString().Contains("Minus")) cont--;
|
{
|
||||||
this.labelContainer.Text = cont.ToString();
|
cont = int.Parse(this.labelContDirt.Text);
|
||||||
|
if (pb.Name.ToString().Contains("Plus")) cont++;
|
||||||
|
if (pb.Name.ToString().Contains("Minus")) cont--;
|
||||||
|
this.labelContDirt.Text = cont.ToString();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
cont = int.Parse(this.labelContainer.Text);
|
||||||
|
if (pb.Name.ToString().Contains("Plus")) cont++;
|
||||||
|
if (pb.Name.ToString().Contains("Minus")) cont--;
|
||||||
|
this.labelContainer.Text = cont.ToString();
|
||||||
|
}
|
||||||
tosave = true;
|
tosave = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -184,15 +178,10 @@ namespace Deckungsbeitrag
|
|||||||
}
|
}
|
||||||
|
|
||||||
//WENN LISTVIEW NICHT FOCUSED (FORM.LOAD) TOSAVE BLEIBT FALSE
|
//WENN LISTVIEW NICHT FOCUSED (FORM.LOAD) TOSAVE BLEIBT FALSE
|
||||||
private void listViewArtikel_ItemCheck(object sender, ItemCheckEventArgs e)
|
private void oLVArtikel_ItemCheck(object sender, ItemCheckEventArgs e)
|
||||||
{
|
{
|
||||||
ListView listView = (ListView)sender;
|
ObjectListView olv = (ObjectListView)sender;
|
||||||
|
if (e.NewValue != e.CurrentValue) { tosave = true; }
|
||||||
if (listView.Focused)
|
|
||||||
{
|
|
||||||
if (e.NewValue != e.CurrentValue) { tosave = true; }
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -200,10 +189,16 @@ namespace Deckungsbeitrag
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// TOCLOSE
|
/// TOCLOSE
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private void listViewArtikel_ItemChecked(object sender, ItemCheckedEventArgs e)
|
private void oLVArtikel_ItemChecked(object sender, ItemCheckedEventArgs e)
|
||||||
{
|
{
|
||||||
ListView listView = (ListView)sender;
|
ObjectListView olv = (ObjectListView)sender;
|
||||||
if(listView.Items.Count == listView.CheckedItems.Count) toclose = true;
|
if (olv.Items.Count == olv.CheckedItems.Count) toclose = true;
|
||||||
|
foreach(OLVListItem item in olv.CheckedItems)
|
||||||
|
{
|
||||||
|
AuftragArtikel auftragArtikel = (AuftragArtikel)item.RowObject;
|
||||||
|
auftragArtikel.Erledigt = true;
|
||||||
|
auftragArtikel.Save();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -217,23 +212,26 @@ namespace Deckungsbeitrag
|
|||||||
{
|
{
|
||||||
auftrag.Liefertag = dTPLiefertag.Value;
|
auftrag.Liefertag = dTPLiefertag.Value;
|
||||||
auftrag.ContainerClean = int.Parse(this.labelContainer.Text);
|
auftrag.ContainerClean = int.Parse(this.labelContainer.Text);
|
||||||
|
auftrag.Container = int.Parse(this.labelContDirt.Text);
|
||||||
|
auftrag.ArbeiterID = this.comboBoxFahrer.SelectedIndex == -1 ? null : ((Benutzer)this.comboBoxFahrer.SelectedItem).BenutzerID;
|
||||||
|
auftrag.Priority = this.comboBoxPriority.SelectedIndex == -1 ? AuftragPriority.None : ((AuftragPriority)this.comboBoxPriority.SelectedItem);
|
||||||
|
auftrag.ZusatzInfo = this.textBoxZusatz.Text;
|
||||||
auftrag.Save();
|
auftrag.Save();
|
||||||
|
|
||||||
//WENN STATUS HERRICHTEN DANN ITEMS UPDATEN
|
if (auftrag.Typ == AuftragTyp.Regelmäßig)
|
||||||
//LISTVIEWITEMS UPDATEN
|
|
||||||
if (auftrag.Typ >= AuftragTyp.Inventur)
|
|
||||||
{
|
{
|
||||||
//LISTVIEWITEMS UPDATEN
|
foreach (OLVListItem item in this.oLVArtikel.Items)
|
||||||
foreach (ListViewItem item in this.listViewArtikel.Items)
|
|
||||||
{
|
{
|
||||||
AuftragArtikel art = (AuftragArtikel)item.Tag;
|
AuftragArtikel art = (AuftragArtikel)item.Tag;
|
||||||
if (item.Checked) art.Erledigt = true;
|
if (item.Checked) art.Erledigt = true;
|
||||||
else art.Erledigt = false;
|
else art.Erledigt = false;
|
||||||
|
|
||||||
art.Save();
|
art.Save();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
this.DialogResult = DialogResult.OK;
|
this.DialogResult = DialogResult.OK;
|
||||||
this.Close();
|
this.Close();
|
||||||
|
|
||||||
@ -251,7 +249,9 @@ namespace Deckungsbeitrag
|
|||||||
{
|
{
|
||||||
if (toclose)
|
if (toclose)
|
||||||
{
|
{
|
||||||
if (int.Parse(this.labelContainer.Text) == 0) if (meldung.NoCleanContainer() == DialogResult.OK) return;
|
if (auftrag.Typ < AuftragTyp.Standerhöhung || auftrag.Typ > AuftragTyp.Regelmäßig)
|
||||||
|
if (int.Parse(this.labelContainer.Text) == 0) if (meldung.NoCleanContainer() == DialogResult.OK) return;
|
||||||
|
|
||||||
if (int.Parse(this.labelContainer.Text) != auftrag.ContainerClean)
|
if (int.Parse(this.labelContainer.Text) != auftrag.ContainerClean)
|
||||||
{
|
{
|
||||||
switch (meldung.DifferentCleanContainer())
|
switch (meldung.DifferentCleanContainer())
|
||||||
@ -301,6 +301,8 @@ namespace Deckungsbeitrag
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
auftrag.Erledigt = DateTime.Now;
|
||||||
|
auftrag.ErledigtVon = (int)benutzer.BenutzerID;
|
||||||
auftrag.Status = AuftragStatus.Fertig;
|
auftrag.Status = AuftragStatus.Fertig;
|
||||||
auftrag.Save();
|
auftrag.Save();
|
||||||
}
|
}
|
||||||
@ -314,19 +316,13 @@ namespace Deckungsbeitrag
|
|||||||
//SCHMUTZWÄSCHESCHEIN DRUCKEN
|
//SCHMUTZWÄSCHESCHEIN DRUCKEN
|
||||||
private void buttonSWS_Click(object sender, EventArgs e)
|
private void buttonSWS_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
Funktionen.SWS_Drucken(auftrag, null, this);
|
//TODO: Bestand von allen Artikeln speichern und für Druck vorbereiten.
|
||||||
//PrintDialog dialog = new PrintDialog();
|
//TODO: Eventuell die Zahlen in CSV speichern und von dort für Druck verwenden?!
|
||||||
//foreach (string printer in PrinterSettings.InstalledPrinters) if (printer.Contains(ConfigurationManager.AppSettings["PrinterName"])) dialog.PrinterSettings.PrinterName = printer;
|
//TODO: Erstellen von SonderAuftrag und Drucken von Etikett testen.
|
||||||
|
if (MessageBox.Show("Möchtest du Etiketten für die Änderung drucken?", "FRAGE", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
|
||||||
////dialog.PrinterSettings.Copies = 10;
|
{
|
||||||
|
Funktionen.SonderEtikett_Drucken(this.auftrag, bestand);
|
||||||
//if (dialog.ShowDialog() == DialogResult.OK)
|
}
|
||||||
//{
|
|
||||||
// PrintDocument printDocument = new PrintDocument();
|
|
||||||
// printDocument.PrintPage += new PrintPageEventHandler(PrintDocument_PrintPage);
|
|
||||||
// printDocument.PrinterSettings = dialog.PrinterSettings;
|
|
||||||
// printDocument.Print();
|
|
||||||
//}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -346,11 +342,97 @@ namespace Deckungsbeitrag
|
|||||||
|
|
||||||
}
|
}
|
||||||
//PRINT PAGE FÜR DRUCK
|
//PRINT PAGE FÜR DRUCK
|
||||||
private void PrintDocument_PrintPage(object sender, System.Drawing.Printing.PrintPageEventArgs e)
|
private void FormAuftragDetail_Shown(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
//e.Graphics.DrawImage(Funktionen.SWS_Entwurf(auftrag), e.PageBounds);
|
UCFeedback fb = new UCFeedback(benutzer);
|
||||||
//e.Graphics.DrawImage(bitmap, 0, 0, 790, 900);
|
Button btn = fb.Controls[0] as Button;
|
||||||
|
if (fb != null) fb.Location = new Point(this.ClientSize.Width - fb.Width - 7, 0);
|
||||||
|
btn.BackColor = Program.Wirlblau;
|
||||||
|
btn.ForeColor = Color.White;
|
||||||
|
btn.FlatAppearance.BorderColor = Color.White;
|
||||||
|
this.Controls.Add(fb);
|
||||||
|
fb.BringToFront();
|
||||||
|
this.oLVArtikel.Location = new Point(this.oLVArtikel.Location.X, fb.Bottom + 2);
|
||||||
|
this.oLVArtikel.Height = this.textBoxZusatz.Bottom - this.oLVArtikel.Top;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void oLVArtikel_CellEditStarting(object sender, CellEditEventArgs e)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
private void oLVArtikel_CellEditFinished(object sender, CellEditEventArgs e)
|
||||||
|
{
|
||||||
|
this.Cursor = Cursors.WaitCursor;
|
||||||
|
this.SuspendLayout();
|
||||||
|
|
||||||
|
ObjectListView olv = (ObjectListView)sender;
|
||||||
|
AuftragArtikel auftragArtikel = (AuftragArtikel)e.RowObject;
|
||||||
|
if (e.Column.Text == "Anzahl") diff = ((int)e.Value - ((int)e.NewValue));
|
||||||
|
|
||||||
|
auftragArtikel.Anzahl = (int)e.NewValue;
|
||||||
|
auftragArtikel.Save();
|
||||||
|
|
||||||
|
KundeArtikel kndart = KundeArtikel.GetKundeArtikelVonArtikelID(this.kunde.KundeID, auftragArtikel.ArtikelID);
|
||||||
|
|
||||||
|
int reklamation = kndart.Reklamation;
|
||||||
|
int fehlmenge = kndart.Fehlmenge;
|
||||||
|
int stand = kndart.Stand;
|
||||||
|
KorrigiereBestand(diff, ref reklamation, ref fehlmenge, ref stand);
|
||||||
|
kndart.Reklamation = reklamation;
|
||||||
|
kndart.Fehlmenge = fehlmenge;
|
||||||
|
kndart.Stand = stand;
|
||||||
|
|
||||||
|
|
||||||
|
kndart.Save();
|
||||||
|
this.ResumeLayout();
|
||||||
|
this.Cursor = Cursors.Default;
|
||||||
|
|
||||||
|
}
|
||||||
|
//TODO: Standerhöhung funktioniert soweit Standverringerung soll nur auf Stand gehen
|
||||||
|
public void KorrigiereBestand(int diff, ref int reklamation, ref int fehlmenge, ref int stand)
|
||||||
|
{
|
||||||
|
|
||||||
|
if (diff == 0)
|
||||||
|
return;
|
||||||
|
|
||||||
|
if (diff < 0) { bestand[2] = diff; stand += diff; return; }
|
||||||
|
|
||||||
|
int rest = diff * 1;
|
||||||
|
|
||||||
|
// 1) Reklamation nur korrigieren, wenn sie <= diff ist
|
||||||
|
if (reklamation > 0 && reklamation <= rest)
|
||||||
|
{
|
||||||
|
rest -= reklamation;
|
||||||
|
bestand[0] = reklamation;
|
||||||
|
reklamation = 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
// 2) Fehlmenge korrigieren
|
||||||
|
if (fehlmenge > 0)
|
||||||
|
{
|
||||||
|
int abbau = Math.Min(fehlmenge, rest);
|
||||||
|
bestand[1] = abbau;
|
||||||
|
fehlmenge -= abbau;
|
||||||
|
rest -= abbau;
|
||||||
|
}
|
||||||
|
|
||||||
|
// 3) Rest auf Stand buchen
|
||||||
|
if (rest > 0)
|
||||||
|
stand += rest;
|
||||||
|
bestand[2] = rest;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void oLVArtikel_ItemSelectionChanged(object sender, ListViewItemSelectionChangedEventArgs e)
|
||||||
|
{
|
||||||
|
tosave = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
//TODO: Standverminderung und Standerhöhung mit einem Aufruf (Standveränderung?) Bei Verminderung -Zahlen sonst Plus.
|
||||||
|
//TODO: Korrigiere Bestand: Wenn -Zahl dann Stand - Zahl.
|
||||||
|
//TODO: Speichern etc. durchgehen und adaptieren
|
||||||
|
//TODO: Liste vorher/nachher durchdenken
|
||||||
|
//DONE: Feedback Button hinzufügen
|
||||||
|
//DONE: ComboBox Fahrer und Priorität implementieren
|
||||||
|
//DONE: Container schmutzig bearbeitbar machen
|
||||||
@ -130,23 +130,118 @@
|
|||||||
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
|
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
|
||||||
vAAADrwBlbxySQAAAFZJREFUOE+9kEEKACEMxHxb//+eXruwbGEwHhwKK+QSaqSuqloTIFwgXCBcKL6T
|
vAAADrwBlbxySQAAAFZJREFUOE+9kEEKACEMxHxb//+eXruwbGEwHhwKK+QSaqSuqloTIFwgXCBcKL6T
|
||||||
maW0xzyEBCLixQroqxpo9vljoC/u/BcYrTD+RA0o1wEXCBcIFwiXB07Nzd/k/DvRAAAAAElFTkSuQmCC
|
maW0xzyEBCLixQroqxpo9vljoC/u/BcYrTD+RA0o1wEXCBcIFwiXB07Nzd/k/DvRAAAAAElFTkSuQmCC
|
||||||
|
</value>
|
||||||
|
</data>
|
||||||
|
<data name="pictureBoxDirtMinus.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||||
|
<value>
|
||||||
|
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
|
||||||
|
vAAADrwBlbxySQAAADJJREFUOE9jYBgF1Affv393IITR9aCAb9++/SeE0fWgAJACJycnnJg+BhDC6HpG
|
||||||
|
wUADABXZimqO3LMmAAAAAElFTkSuQmCC
|
||||||
|
</value>
|
||||||
|
</data>
|
||||||
|
<data name="pictureBoxDirtPlus.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||||
|
<value>
|
||||||
|
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
|
||||||
|
vAAADrwBlbxySQAAAFZJREFUOE+9kEEKACEMxHxb//+eXruwbGEwHhwKK+QSaqSuqloTIFwgXCBcKL6T
|
||||||
|
maW0xzyEBCLixQroqxpo9vljoC/u/BcYrTD+RA0o1wEXCBcIFwiXB07Nzd/k/DvRAAAAAElFTkSuQmCC
|
||||||
</value>
|
</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||||
<value>
|
<value>
|
||||||
AAABAAEAICAQAAAAAADoAgAAFgAAACgAAAAgAAAAQAAAAAEABAAAAAAAgAIAAAAAAAAAAAAAAAAAAAAA
|
AAABAAEAAAAAAAEAIAC5FQAAFgAAAIlQTkcNChoKAAAADUlIRFIAAAEAAAABAAgGAAAAXHKoZgAAAAFv
|
||||||
AAAAAAAAAACAAACAAAAAgIAAgAAAAIAAgACAgAAAwMDAAICAgAAAAP8AAP8AAAD//wD/AAAA/wD/AP//
|
ck5UAc+id5oAABVzSURBVHja7Z0LuFVVtcfPOqCg4gMFVDQhsHyics4GfBUIPsMywULt4Ytz4CqSWV5R
|
||||||
AAD///8A////////////////////////////////////////////////////////////////////////
|
UwnsZpaZ0c23XtNKI/JVGT5BTbtqiqX5SMRXGnI1LdBjiNwx9h57sfY6a5+91jl77b3WXr/f9/0//Pz4
|
||||||
////////8AD//////////////////w//D/////////////////8PDw///////MzP////zMz/D/8P////
|
Ps4Zc8wx5xpzzDmamgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||||
//zMzP///8zMz/AA///////MzMzM//zMzMzP////////zMzMzMz8zMzMzM///////MzMzMzPzMzMzMz/
|
|
||||||
//////zMzMzM/8zMzMzP///////MzMzMzPzMzMzMz///////zMzMzM/8zMzMzP///////MzMzMzPzMzM
|
|
||||||
zMz///////zMzMzM/8zMzMzP/Mz////MzMzMzPzMzMzMz/zMzM//zMzMzM/8zMzMzP/MzMzM/8zMzMzP
|
|
||||||
zMzMzMz8zMzMzPzMzMzM/8zMzMzP/MzMzMz8zMzMzPzMzMzMz8zMzMzMzMzMzM/MzMzMzPzMzMzMz//8
|
|
||||||
zMzP//zMzMz//8zMzM////zM/////8zP/////Mz/////////////////////////////////////////
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
|
||||||
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
|
||||||
|
QmCC
|
||||||
</value>
|
</value>
|
||||||
</data>
|
</data>
|
||||||
</root>
|
</root>
|
||||||
1
AA-Forms/FormBenutzerVW.Designer.cs
generated
1
AA-Forms/FormBenutzerVW.Designer.cs
generated
@ -62,7 +62,6 @@
|
|||||||
this.objectListViewBenutzer.CellEditFinished += new BrightIdeasSoftware.CellEditEventHandler(this.objectListViewBenutzer_CellEditFinished);
|
this.objectListViewBenutzer.CellEditFinished += new BrightIdeasSoftware.CellEditEventHandler(this.objectListViewBenutzer_CellEditFinished);
|
||||||
this.objectListViewBenutzer.CellEditStarting += new BrightIdeasSoftware.CellEditEventHandler(this.objectListViewBenutzer_CellEditStarting);
|
this.objectListViewBenutzer.CellEditStarting += new BrightIdeasSoftware.CellEditEventHandler(this.objectListViewBenutzer_CellEditStarting);
|
||||||
this.objectListViewBenutzer.SubItemChecking += new System.EventHandler<BrightIdeasSoftware.SubItemCheckingEventArgs>(this.objectListViewBenutzer_SubItemChecking);
|
this.objectListViewBenutzer.SubItemChecking += new System.EventHandler<BrightIdeasSoftware.SubItemCheckingEventArgs>(this.objectListViewBenutzer_SubItemChecking);
|
||||||
this.objectListViewBenutzer.SelectedIndexChanged += new System.EventHandler(this.objectListViewBenutzer_SelectedIndexChanged);
|
|
||||||
//
|
//
|
||||||
// buttonNewUser
|
// buttonNewUser
|
||||||
//
|
//
|
||||||
|
|||||||
@ -49,6 +49,34 @@ namespace Deckungsbeitrag
|
|||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
private void FormBenutzerVW_Shown(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
this.CenterToScreen();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// BUTTON CLICK EVENTS
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="sender"></param>
|
||||||
|
/// <param name="e"></param>
|
||||||
|
private void buttonNewUser_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
FormNeuerBenutzer neuerBenutzer = new FormNeuerBenutzer();
|
||||||
|
neuerBenutzer.Show();
|
||||||
|
}
|
||||||
|
private void buttonAbbrechen_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
this.Close();
|
||||||
|
}
|
||||||
|
private void Save_Benutzer(Benutzer benutzer, bool show)
|
||||||
|
{
|
||||||
|
if (benutzer.Save() == 1) if (show) meldung.Gespeichert();
|
||||||
|
else if (show) meldung.Speicherfehler();
|
||||||
|
}
|
||||||
|
|
||||||
|
#region ObjectListView-Funktionen
|
||||||
private void Load_OLV(List<Benutzer> alist)
|
private void Load_OLV(List<Benutzer> alist)
|
||||||
{
|
{
|
||||||
Generator.GenerateColumns(this.objectListViewBenutzer, typeof(Benutzer), true);
|
Generator.GenerateColumns(this.objectListViewBenutzer, typeof(Benutzer), true);
|
||||||
@ -67,22 +95,6 @@ namespace Deckungsbeitrag
|
|||||||
this.objectListViewBenutzer = Funktionen.Columns_Resize(null, this.objectListViewBenutzer).olv;
|
this.objectListViewBenutzer = Funktionen.Columns_Resize(null, this.objectListViewBenutzer).olv;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// BUTTON CLICK EVENTS
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="sender"></param>
|
|
||||||
/// <param name="e"></param>
|
|
||||||
private void buttonNewUser_Click(object sender, EventArgs e)
|
|
||||||
{
|
|
||||||
FormNeuerBenutzer neuerBenutzer = new FormNeuerBenutzer();
|
|
||||||
neuerBenutzer.Show();
|
|
||||||
}
|
|
||||||
private void buttonAbbrechen_Click(object sender, EventArgs e)
|
|
||||||
{
|
|
||||||
this.Close();
|
|
||||||
}
|
|
||||||
private void objectListViewBenutzer_CellEditFinished(object sender, CellEditEventArgs e)
|
private void objectListViewBenutzer_CellEditFinished(object sender, CellEditEventArgs e)
|
||||||
{
|
{
|
||||||
Benutzer benutzer = (Benutzer)e.RowObject;
|
Benutzer benutzer = (Benutzer)e.RowObject;
|
||||||
@ -96,30 +108,16 @@ namespace Deckungsbeitrag
|
|||||||
|
|
||||||
Save_Benutzer(benutzer, false);
|
Save_Benutzer(benutzer, false);
|
||||||
}
|
}
|
||||||
private void Save_Benutzer(Benutzer benutzer, bool show)
|
|
||||||
{
|
|
||||||
if (benutzer.Save() == 1) if (show) meldung.Gespeichert();
|
|
||||||
else if (show) meldung.Speicherfehler();
|
|
||||||
}
|
|
||||||
|
|
||||||
private void objectListViewBenutzer_SelectedIndexChanged(object sender, EventArgs e)
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
private void objectListViewBenutzer_CellEditStarting(object sender, CellEditEventArgs e)
|
private void objectListViewBenutzer_CellEditStarting(object sender, CellEditEventArgs e)
|
||||||
{
|
{
|
||||||
ObjectListView olv = (ObjectListView)sender;
|
ObjectListView olv = (ObjectListView)sender;
|
||||||
user = e.RowObject as Benutzer;
|
user = e.RowObject as Benutzer;
|
||||||
|
|
||||||
if (user == null) return;
|
if (user == null) return;
|
||||||
else { this.DialogResult = DialogResult.OK; this.Close(); }
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
|
||||||
private void FormBenutzerVW_Shown(object sender, EventArgs e)
|
|
||||||
{
|
|
||||||
this.CenterToScreen();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
890
AA-Forms/FormExpedit.Designer.cs
generated
890
AA-Forms/FormExpedit.Designer.cs
generated
@ -34,63 +34,42 @@
|
|||||||
System.Windows.Forms.DataVisualization.Charting.Title title1 = new System.Windows.Forms.DataVisualization.Charting.Title();
|
System.Windows.Forms.DataVisualization.Charting.Title title1 = new System.Windows.Forms.DataVisualization.Charting.Title();
|
||||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormExpedit));
|
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormExpedit));
|
||||||
this.buttonNeuerAuftrag = new System.Windows.Forms.Button();
|
this.buttonNeuerAuftrag = new System.Windows.Forms.Button();
|
||||||
this.dGArtikel = new System.Windows.Forms.DataGridView();
|
|
||||||
this.KundeArtikelID = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
|
||||||
this.KundeID = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
|
||||||
this.ArtikelNR = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
|
||||||
this.ArtikelName = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
|
||||||
this.Stand = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
|
||||||
this.Fehlmenge = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
|
||||||
this.Korrektur = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
|
||||||
this.StandBearbeitet = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
|
||||||
this.FehlmengeBearbeitet = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
|
||||||
this.KorrekturBearbeitet = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
|
||||||
this.tabPageSonder = new System.Windows.Forms.TabPage();
|
|
||||||
this.objectListViewSonder = new BrightIdeasSoftware.ObjectListView();
|
|
||||||
this.tabPageAll = new System.Windows.Forms.TabPage();
|
|
||||||
this.objectListViewAuftrag = new BrightIdeasSoftware.ObjectListView();
|
|
||||||
this.tabControlAuftragList = new System.Windows.Forms.TabControl();
|
|
||||||
this.tabPageGeschaeft = new System.Windows.Forms.TabPage();
|
|
||||||
this.objectListViewGeschaeft = new BrightIdeasSoftware.ObjectListView();
|
|
||||||
this.groupBoxStatistik = new System.Windows.Forms.GroupBox();
|
|
||||||
this.dateTimePicker1 = new System.Windows.Forms.DateTimePicker();
|
|
||||||
this.tableLayoutPanelStatistik = new System.Windows.Forms.TableLayoutPanel();
|
|
||||||
this.labelZahl6 = new System.Windows.Forms.Label();
|
|
||||||
this.labelStatistik6 = new System.Windows.Forms.Label();
|
|
||||||
this.labelZahl5 = new System.Windows.Forms.Label();
|
|
||||||
this.labelStatistik5 = new System.Windows.Forms.Label();
|
|
||||||
this.labelZahl4 = new System.Windows.Forms.Label();
|
|
||||||
this.labelStatistik4 = new System.Windows.Forms.Label();
|
|
||||||
this.labelZahl3 = new System.Windows.Forms.Label();
|
|
||||||
this.labelStatistik3 = new System.Windows.Forms.Label();
|
|
||||||
this.labelZahl2 = new System.Windows.Forms.Label();
|
|
||||||
this.labelStatistik2 = new System.Windows.Forms.Label();
|
|
||||||
this.labelZahl1 = new System.Windows.Forms.Label();
|
|
||||||
this.labelStatistik1 = new System.Windows.Forms.Label();
|
|
||||||
this.buttonSuchen = new System.Windows.Forms.Button();
|
this.buttonSuchen = new System.Windows.Forms.Button();
|
||||||
this.buttonReklamation = new System.Windows.Forms.Button();
|
this.buttonReklamation = new System.Windows.Forms.Button();
|
||||||
this.buttonSWS_Drucken = new System.Windows.Forms.Button();
|
this.buttonSWS_Drucken = new System.Windows.Forms.Button();
|
||||||
this.buttonStats = new System.Windows.Forms.Button();
|
|
||||||
this.buttonEinstellung = new System.Windows.Forms.Button();
|
|
||||||
this.chartFehlmenge = new System.Windows.Forms.DataVisualization.Charting.Chart();
|
this.chartFehlmenge = new System.Windows.Forms.DataVisualization.Charting.Chart();
|
||||||
this.groupBoxKndInfo = new System.Windows.Forms.GroupBox();
|
this.groupBoxKndInfo = new System.Windows.Forms.GroupBox();
|
||||||
this.tableLayoutPanelInfo = new System.Windows.Forms.TableLayoutPanel();
|
this.tableLayoutPanelInfo = new System.Windows.Forms.TableLayoutPanel();
|
||||||
this.labelAnmerkung = new System.Windows.Forms.Label();
|
this.labelAnmerkung = new System.Windows.Forms.Label();
|
||||||
this.labelAufgabe = new System.Windows.Forms.Label();
|
this.labelAufgabe = new System.Windows.Forms.Label();
|
||||||
this.buttonTourenListe = new System.Windows.Forms.Button();
|
this.buttonTourenListe = new System.Windows.Forms.Button();
|
||||||
((System.ComponentModel.ISupportInitialize)(this.dGArtikel)).BeginInit();
|
this.buttonStats = new System.Windows.Forms.Button();
|
||||||
this.tabPageSonder.SuspendLayout();
|
this.buttonEinstellung = new System.Windows.Forms.Button();
|
||||||
((System.ComponentModel.ISupportInitialize)(this.objectListViewSonder)).BeginInit();
|
this.tabPageRampe = new System.Windows.Forms.TabPage();
|
||||||
this.tabPageAll.SuspendLayout();
|
this.objectListViewRampe = new BrightIdeasSoftware.ObjectListView();
|
||||||
((System.ComponentModel.ISupportInitialize)(this.objectListViewAuftrag)).BeginInit();
|
this.tabPageSonder = new System.Windows.Forms.TabPage();
|
||||||
this.tabControlAuftragList.SuspendLayout();
|
this.objectListViewSonder = new BrightIdeasSoftware.ObjectListView();
|
||||||
this.tabPageGeschaeft.SuspendLayout();
|
this.tabPageGeschaeft = new System.Windows.Forms.TabPage();
|
||||||
((System.ComponentModel.ISupportInitialize)(this.objectListViewGeschaeft)).BeginInit();
|
this.objectListViewGeschaeft = new BrightIdeasSoftware.ObjectListView();
|
||||||
this.groupBoxStatistik.SuspendLayout();
|
this.tabPageAll = new System.Windows.Forms.TabPage();
|
||||||
this.tableLayoutPanelStatistik.SuspendLayout();
|
this.objectListViewAuftrag = new BrightIdeasSoftware.ObjectListView();
|
||||||
|
this.tabControlAuftragList = new System.Windows.Forms.TabControl();
|
||||||
|
this.tabPageVorbereitet = new System.Windows.Forms.TabPage();
|
||||||
|
this.objectListViewVorbereitet = new BrightIdeasSoftware.ObjectListView();
|
||||||
((System.ComponentModel.ISupportInitialize)(this.chartFehlmenge)).BeginInit();
|
((System.ComponentModel.ISupportInitialize)(this.chartFehlmenge)).BeginInit();
|
||||||
this.groupBoxKndInfo.SuspendLayout();
|
this.groupBoxKndInfo.SuspendLayout();
|
||||||
this.tableLayoutPanelInfo.SuspendLayout();
|
this.tableLayoutPanelInfo.SuspendLayout();
|
||||||
|
this.tabPageRampe.SuspendLayout();
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.objectListViewRampe)).BeginInit();
|
||||||
|
this.tabPageSonder.SuspendLayout();
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.objectListViewSonder)).BeginInit();
|
||||||
|
this.tabPageGeschaeft.SuspendLayout();
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.objectListViewGeschaeft)).BeginInit();
|
||||||
|
this.tabPageAll.SuspendLayout();
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.objectListViewAuftrag)).BeginInit();
|
||||||
|
this.tabControlAuftragList.SuspendLayout();
|
||||||
|
this.tabPageVorbereitet.SuspendLayout();
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.objectListViewVorbereitet)).BeginInit();
|
||||||
this.SuspendLayout();
|
this.SuspendLayout();
|
||||||
//
|
//
|
||||||
// buttonNeuerAuftrag
|
// buttonNeuerAuftrag
|
||||||
@ -111,465 +90,6 @@
|
|||||||
this.buttonNeuerAuftrag.UseVisualStyleBackColor = false;
|
this.buttonNeuerAuftrag.UseVisualStyleBackColor = false;
|
||||||
this.buttonNeuerAuftrag.Click += new System.EventHandler(this.buttonNeuerAuftrag_Click);
|
this.buttonNeuerAuftrag.Click += new System.EventHandler(this.buttonNeuerAuftrag_Click);
|
||||||
//
|
//
|
||||||
// dGArtikel
|
|
||||||
//
|
|
||||||
this.dGArtikel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
|
||||||
this.dGArtikel.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
|
|
||||||
this.dGArtikel.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
|
|
||||||
this.KundeArtikelID,
|
|
||||||
this.KundeID,
|
|
||||||
this.ArtikelNR,
|
|
||||||
this.ArtikelName,
|
|
||||||
this.Stand,
|
|
||||||
this.Fehlmenge,
|
|
||||||
this.Korrektur,
|
|
||||||
this.StandBearbeitet,
|
|
||||||
this.FehlmengeBearbeitet,
|
|
||||||
this.KorrekturBearbeitet});
|
|
||||||
this.dGArtikel.Location = new System.Drawing.Point(385, 43);
|
|
||||||
this.dGArtikel.Name = "dGArtikel";
|
|
||||||
this.dGArtikel.RowHeadersVisible = false;
|
|
||||||
this.dGArtikel.RowHeadersWidth = 62;
|
|
||||||
this.dGArtikel.Size = new System.Drawing.Size(527, 592);
|
|
||||||
this.dGArtikel.TabIndex = 44;
|
|
||||||
this.dGArtikel.Visible = false;
|
|
||||||
this.dGArtikel.CellBeginEdit += new System.Windows.Forms.DataGridViewCellCancelEventHandler(this.dGArtikel_CellBeginEdit);
|
|
||||||
this.dGArtikel.CellEndEdit += new System.Windows.Forms.DataGridViewCellEventHandler(this.dGArtikel_CellEndEdit);
|
|
||||||
this.dGArtikel.CellValidating += new System.Windows.Forms.DataGridViewCellValidatingEventHandler(this.dGArtikel_CellValidating);
|
|
||||||
this.dGArtikel.VisibleChanged += new System.EventHandler(this.dGArtikel_VisibleChanged);
|
|
||||||
//
|
|
||||||
// KundeArtikelID
|
|
||||||
//
|
|
||||||
this.KundeArtikelID.HeaderText = "KundeArtikelID";
|
|
||||||
this.KundeArtikelID.MinimumWidth = 8;
|
|
||||||
this.KundeArtikelID.Name = "KundeArtikelID";
|
|
||||||
this.KundeArtikelID.ReadOnly = true;
|
|
||||||
this.KundeArtikelID.Visible = false;
|
|
||||||
this.KundeArtikelID.Width = 150;
|
|
||||||
//
|
|
||||||
// KundeID
|
|
||||||
//
|
|
||||||
this.KundeID.HeaderText = "KundeID";
|
|
||||||
this.KundeID.MinimumWidth = 8;
|
|
||||||
this.KundeID.Name = "KundeID";
|
|
||||||
this.KundeID.ReadOnly = true;
|
|
||||||
this.KundeID.Visible = false;
|
|
||||||
this.KundeID.Width = 150;
|
|
||||||
//
|
|
||||||
// ArtikelNR
|
|
||||||
//
|
|
||||||
this.ArtikelNR.HeaderText = "Art. Nr.";
|
|
||||||
this.ArtikelNR.MinimumWidth = 8;
|
|
||||||
this.ArtikelNR.Name = "ArtikelNR";
|
|
||||||
this.ArtikelNR.ReadOnly = true;
|
|
||||||
this.ArtikelNR.Width = 150;
|
|
||||||
//
|
|
||||||
// ArtikelName
|
|
||||||
//
|
|
||||||
this.ArtikelName.HeaderText = "Art. Name";
|
|
||||||
this.ArtikelName.MinimumWidth = 8;
|
|
||||||
this.ArtikelName.Name = "ArtikelName";
|
|
||||||
this.ArtikelName.ReadOnly = true;
|
|
||||||
this.ArtikelName.Width = 150;
|
|
||||||
//
|
|
||||||
// Stand
|
|
||||||
//
|
|
||||||
this.Stand.HeaderText = "Stand";
|
|
||||||
this.Stand.MinimumWidth = 8;
|
|
||||||
this.Stand.Name = "Stand";
|
|
||||||
this.Stand.ReadOnly = true;
|
|
||||||
this.Stand.Width = 150;
|
|
||||||
//
|
|
||||||
// Fehlmenge
|
|
||||||
//
|
|
||||||
this.Fehlmenge.HeaderText = "NW";
|
|
||||||
this.Fehlmenge.MinimumWidth = 8;
|
|
||||||
this.Fehlmenge.Name = "Fehlmenge";
|
|
||||||
this.Fehlmenge.Width = 150;
|
|
||||||
//
|
|
||||||
// Korrektur
|
|
||||||
//
|
|
||||||
this.Korrektur.HeaderText = "Korr";
|
|
||||||
this.Korrektur.MinimumWidth = 8;
|
|
||||||
this.Korrektur.Name = "Korrektur";
|
|
||||||
this.Korrektur.Width = 150;
|
|
||||||
//
|
|
||||||
// StandBearbeitet
|
|
||||||
//
|
|
||||||
this.StandBearbeitet.HeaderText = "Stand Bearbeitet";
|
|
||||||
this.StandBearbeitet.MinimumWidth = 8;
|
|
||||||
this.StandBearbeitet.Name = "StandBearbeitet";
|
|
||||||
this.StandBearbeitet.Width = 150;
|
|
||||||
//
|
|
||||||
// FehlmengeBearbeitet
|
|
||||||
//
|
|
||||||
this.FehlmengeBearbeitet.HeaderText = "Fehlmenge Bearbeitet";
|
|
||||||
this.FehlmengeBearbeitet.MinimumWidth = 8;
|
|
||||||
this.FehlmengeBearbeitet.Name = "FehlmengeBearbeitet";
|
|
||||||
this.FehlmengeBearbeitet.Width = 150;
|
|
||||||
//
|
|
||||||
// KorrekturBearbeitet
|
|
||||||
//
|
|
||||||
this.KorrekturBearbeitet.HeaderText = "Korrektur Bearbeitet";
|
|
||||||
this.KorrekturBearbeitet.MinimumWidth = 8;
|
|
||||||
this.KorrekturBearbeitet.Name = "KorrekturBearbeitet";
|
|
||||||
this.KorrekturBearbeitet.Width = 150;
|
|
||||||
//
|
|
||||||
// tabPageSonder
|
|
||||||
//
|
|
||||||
this.tabPageSonder.Controls.Add(this.objectListViewSonder);
|
|
||||||
this.tabPageSonder.Location = new System.Drawing.Point(4, 34);
|
|
||||||
this.tabPageSonder.Name = "tabPageSonder";
|
|
||||||
this.tabPageSonder.Padding = new System.Windows.Forms.Padding(3);
|
|
||||||
this.tabPageSonder.Size = new System.Drawing.Size(890, 587);
|
|
||||||
this.tabPageSonder.TabIndex = 1;
|
|
||||||
this.tabPageSonder.Text = "Sonderaufträge";
|
|
||||||
this.tabPageSonder.UseVisualStyleBackColor = true;
|
|
||||||
//
|
|
||||||
// objectListViewSonder
|
|
||||||
//
|
|
||||||
this.objectListViewSonder.AlternateRowBackColor = System.Drawing.Color.LightBlue;
|
|
||||||
this.objectListViewSonder.CellEditActivation = BrightIdeasSoftware.ObjectListView.CellEditActivateMode.DoubleClick;
|
|
||||||
this.objectListViewSonder.CellEditUseWholeCell = false;
|
|
||||||
this.objectListViewSonder.Cursor = System.Windows.Forms.Cursors.Default;
|
|
||||||
this.objectListViewSonder.Dock = System.Windows.Forms.DockStyle.Fill;
|
|
||||||
this.objectListViewSonder.FullRowSelect = true;
|
|
||||||
this.objectListViewSonder.GridLines = true;
|
|
||||||
this.objectListViewSonder.HideSelection = false;
|
|
||||||
this.objectListViewSonder.Location = new System.Drawing.Point(3, 3);
|
|
||||||
this.objectListViewSonder.Name = "objectListViewSonder";
|
|
||||||
this.objectListViewSonder.SelectColumnsOnRightClickBehaviour = BrightIdeasSoftware.ObjectListView.ColumnSelectBehaviour.Submenu;
|
|
||||||
this.objectListViewSonder.Size = new System.Drawing.Size(884, 581);
|
|
||||||
this.objectListViewSonder.Sorting = System.Windows.Forms.SortOrder.Ascending;
|
|
||||||
this.objectListViewSonder.TabIndex = 2;
|
|
||||||
this.objectListViewSonder.TintSortColumn = true;
|
|
||||||
this.objectListViewSonder.UseAlternatingBackColors = true;
|
|
||||||
this.objectListViewSonder.UseCompatibleStateImageBehavior = false;
|
|
||||||
this.objectListViewSonder.UseHotControls = false;
|
|
||||||
this.objectListViewSonder.View = System.Windows.Forms.View.Details;
|
|
||||||
this.objectListViewSonder.ButtonClick += new System.EventHandler<BrightIdeasSoftware.CellClickEventArgs>(this.objectListViewAuftrag_ButtonClick);
|
|
||||||
this.objectListViewSonder.CellClick += new System.EventHandler<BrightIdeasSoftware.CellClickEventArgs>(this.objectListViewAuftrag_CellClick);
|
|
||||||
this.objectListViewSonder.FormatCell += new System.EventHandler<BrightIdeasSoftware.FormatCellEventArgs>(this.objectListViewAuftrag_FormatCell);
|
|
||||||
//
|
|
||||||
// tabPageAll
|
|
||||||
//
|
|
||||||
this.tabPageAll.Controls.Add(this.objectListViewAuftrag);
|
|
||||||
this.tabPageAll.Location = new System.Drawing.Point(4, 34);
|
|
||||||
this.tabPageAll.Name = "tabPageAll";
|
|
||||||
this.tabPageAll.Padding = new System.Windows.Forms.Padding(3);
|
|
||||||
this.tabPageAll.Size = new System.Drawing.Size(890, 587);
|
|
||||||
this.tabPageAll.TabIndex = 0;
|
|
||||||
this.tabPageAll.Text = "Aufträge heute";
|
|
||||||
this.tabPageAll.UseVisualStyleBackColor = true;
|
|
||||||
//
|
|
||||||
// objectListViewAuftrag
|
|
||||||
//
|
|
||||||
this.objectListViewAuftrag.AllowColumnReorder = true;
|
|
||||||
this.objectListViewAuftrag.AlternateRowBackColor = System.Drawing.Color.LightBlue;
|
|
||||||
this.objectListViewAuftrag.CellEditActivation = BrightIdeasSoftware.ObjectListView.CellEditActivateMode.DoubleClick;
|
|
||||||
this.objectListViewAuftrag.CellEditUseWholeCell = false;
|
|
||||||
this.objectListViewAuftrag.Cursor = System.Windows.Forms.Cursors.Default;
|
|
||||||
this.objectListViewAuftrag.Dock = System.Windows.Forms.DockStyle.Fill;
|
|
||||||
this.objectListViewAuftrag.FullRowSelect = true;
|
|
||||||
this.objectListViewAuftrag.GridLines = true;
|
|
||||||
this.objectListViewAuftrag.HideSelection = false;
|
|
||||||
this.objectListViewAuftrag.Location = new System.Drawing.Point(3, 3);
|
|
||||||
this.objectListViewAuftrag.Name = "objectListViewAuftrag";
|
|
||||||
this.objectListViewAuftrag.SelectColumnsOnRightClickBehaviour = BrightIdeasSoftware.ObjectListView.ColumnSelectBehaviour.Submenu;
|
|
||||||
this.objectListViewAuftrag.Size = new System.Drawing.Size(884, 581);
|
|
||||||
this.objectListViewAuftrag.Sorting = System.Windows.Forms.SortOrder.Ascending;
|
|
||||||
this.objectListViewAuftrag.TabIndex = 1;
|
|
||||||
this.objectListViewAuftrag.TintSortColumn = true;
|
|
||||||
this.objectListViewAuftrag.UnfocusedSelectedBackColor = System.Drawing.SystemColors.Highlight;
|
|
||||||
this.objectListViewAuftrag.UnfocusedSelectedForeColor = System.Drawing.SystemColors.HighlightText;
|
|
||||||
this.objectListViewAuftrag.UseAlternatingBackColors = true;
|
|
||||||
this.objectListViewAuftrag.UseCellFormatEvents = true;
|
|
||||||
this.objectListViewAuftrag.UseCompatibleStateImageBehavior = false;
|
|
||||||
this.objectListViewAuftrag.UseFiltering = true;
|
|
||||||
this.objectListViewAuftrag.UseHotControls = false;
|
|
||||||
this.objectListViewAuftrag.UseHyperlinks = true;
|
|
||||||
this.objectListViewAuftrag.View = System.Windows.Forms.View.Details;
|
|
||||||
this.objectListViewAuftrag.ButtonClick += new System.EventHandler<BrightIdeasSoftware.CellClickEventArgs>(this.objectListViewAuftrag_ButtonClick);
|
|
||||||
this.objectListViewAuftrag.CellEditFinished += new BrightIdeasSoftware.CellEditEventHandler(this.objectListViewAuftrag_CellEditFinished);
|
|
||||||
this.objectListViewAuftrag.CellEditStarting += new BrightIdeasSoftware.CellEditEventHandler(this.objectListViewAuftrag_CellEditStarting);
|
|
||||||
this.objectListViewAuftrag.CellClick += new System.EventHandler<BrightIdeasSoftware.CellClickEventArgs>(this.objectListViewAuftrag_CellClick);
|
|
||||||
this.objectListViewAuftrag.CellRightClick += new System.EventHandler<BrightIdeasSoftware.CellRightClickEventArgs>(this.objectListViewAuftrag_CellRightClick);
|
|
||||||
this.objectListViewAuftrag.FormatCell += new System.EventHandler<BrightIdeasSoftware.FormatCellEventArgs>(this.objectListViewAuftrag_FormatCell);
|
|
||||||
//
|
|
||||||
// tabControlAuftragList
|
|
||||||
//
|
|
||||||
this.tabControlAuftragList.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.tabControlAuftragList.Controls.Add(this.tabPageAll);
|
|
||||||
this.tabControlAuftragList.Controls.Add(this.tabPageSonder);
|
|
||||||
this.tabControlAuftragList.Controls.Add(this.tabPageGeschaeft);
|
|
||||||
this.tabControlAuftragList.Font = new System.Drawing.Font("Microsoft Sans Serif", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
||||||
this.tabControlAuftragList.Location = new System.Drawing.Point(4, 9);
|
|
||||||
this.tabControlAuftragList.Name = "tabControlAuftragList";
|
|
||||||
this.tabControlAuftragList.SelectedIndex = 0;
|
|
||||||
this.tabControlAuftragList.Size = new System.Drawing.Size(898, 625);
|
|
||||||
this.tabControlAuftragList.TabIndex = 0;
|
|
||||||
this.tabControlAuftragList.Visible = false;
|
|
||||||
this.tabControlAuftragList.SelectedIndexChanged += new System.EventHandler(this.tabControlAuftragList_SelectedIndexChanged);
|
|
||||||
this.tabControlAuftragList.Selected += new System.Windows.Forms.TabControlEventHandler(this.tabControlAuftragList_Selected);
|
|
||||||
//
|
|
||||||
// tabPageGeschaeft
|
|
||||||
//
|
|
||||||
this.tabPageGeschaeft.Controls.Add(this.objectListViewGeschaeft);
|
|
||||||
this.tabPageGeschaeft.Location = new System.Drawing.Point(4, 34);
|
|
||||||
this.tabPageGeschaeft.Name = "tabPageGeschaeft";
|
|
||||||
this.tabPageGeschaeft.Padding = new System.Windows.Forms.Padding(3);
|
|
||||||
this.tabPageGeschaeft.Size = new System.Drawing.Size(890, 587);
|
|
||||||
this.tabPageGeschaeft.TabIndex = 2;
|
|
||||||
this.tabPageGeschaeft.Text = "Geschäft";
|
|
||||||
this.tabPageGeschaeft.UseVisualStyleBackColor = true;
|
|
||||||
//
|
|
||||||
// objectListViewGeschaeft
|
|
||||||
//
|
|
||||||
this.objectListViewGeschaeft.AllowColumnReorder = true;
|
|
||||||
this.objectListViewGeschaeft.AlternateRowBackColor = System.Drawing.Color.LightBlue;
|
|
||||||
this.objectListViewGeschaeft.CellEditActivation = BrightIdeasSoftware.ObjectListView.CellEditActivateMode.DoubleClick;
|
|
||||||
this.objectListViewGeschaeft.CellEditUseWholeCell = false;
|
|
||||||
this.objectListViewGeschaeft.Cursor = System.Windows.Forms.Cursors.Default;
|
|
||||||
this.objectListViewGeschaeft.Dock = System.Windows.Forms.DockStyle.Fill;
|
|
||||||
this.objectListViewGeschaeft.FullRowSelect = true;
|
|
||||||
this.objectListViewGeschaeft.GridLines = true;
|
|
||||||
this.objectListViewGeschaeft.HideSelection = false;
|
|
||||||
this.objectListViewGeschaeft.Location = new System.Drawing.Point(3, 3);
|
|
||||||
this.objectListViewGeschaeft.Name = "objectListViewGeschaeft";
|
|
||||||
this.objectListViewGeschaeft.SelectColumnsOnRightClickBehaviour = BrightIdeasSoftware.ObjectListView.ColumnSelectBehaviour.Submenu;
|
|
||||||
this.objectListViewGeschaeft.Size = new System.Drawing.Size(884, 581);
|
|
||||||
this.objectListViewGeschaeft.Sorting = System.Windows.Forms.SortOrder.Ascending;
|
|
||||||
this.objectListViewGeschaeft.TabIndex = 2;
|
|
||||||
this.objectListViewGeschaeft.TintSortColumn = true;
|
|
||||||
this.objectListViewGeschaeft.UnfocusedSelectedBackColor = System.Drawing.SystemColors.Highlight;
|
|
||||||
this.objectListViewGeschaeft.UnfocusedSelectedForeColor = System.Drawing.SystemColors.HighlightText;
|
|
||||||
this.objectListViewGeschaeft.UseAlternatingBackColors = true;
|
|
||||||
this.objectListViewGeschaeft.UseCellFormatEvents = true;
|
|
||||||
this.objectListViewGeschaeft.UseCompatibleStateImageBehavior = false;
|
|
||||||
this.objectListViewGeschaeft.UseFiltering = true;
|
|
||||||
this.objectListViewGeschaeft.UseHotControls = false;
|
|
||||||
this.objectListViewGeschaeft.UseHyperlinks = true;
|
|
||||||
this.objectListViewGeschaeft.View = System.Windows.Forms.View.Details;
|
|
||||||
this.objectListViewGeschaeft.ButtonClick += new System.EventHandler<BrightIdeasSoftware.CellClickEventArgs>(this.objectListViewAuftrag_ButtonClick);
|
|
||||||
this.objectListViewGeschaeft.CellEditFinished += new BrightIdeasSoftware.CellEditEventHandler(this.objectListViewAuftrag_CellEditFinished);
|
|
||||||
this.objectListViewGeschaeft.CellEditStarting += new BrightIdeasSoftware.CellEditEventHandler(this.objectListViewAuftrag_CellEditStarting);
|
|
||||||
this.objectListViewGeschaeft.CellClick += new System.EventHandler<BrightIdeasSoftware.CellClickEventArgs>(this.objectListViewAuftrag_CellClick);
|
|
||||||
this.objectListViewGeschaeft.CellRightClick += new System.EventHandler<BrightIdeasSoftware.CellRightClickEventArgs>(this.objectListViewAuftrag_CellRightClick);
|
|
||||||
this.objectListViewGeschaeft.FormatCell += new System.EventHandler<BrightIdeasSoftware.FormatCellEventArgs>(this.objectListViewAuftrag_FormatCell);
|
|
||||||
//
|
|
||||||
// groupBoxStatistik
|
|
||||||
//
|
|
||||||
this.groupBoxStatistik.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
|
||||||
this.groupBoxStatistik.Controls.Add(this.dateTimePicker1);
|
|
||||||
this.groupBoxStatistik.Controls.Add(this.tableLayoutPanelStatistik);
|
|
||||||
this.groupBoxStatistik.ForeColor = System.Drawing.Color.White;
|
|
||||||
this.groupBoxStatistik.Location = new System.Drawing.Point(908, 12);
|
|
||||||
this.groupBoxStatistik.Name = "groupBoxStatistik";
|
|
||||||
this.groupBoxStatistik.Size = new System.Drawing.Size(301, 197);
|
|
||||||
this.groupBoxStatistik.TabIndex = 62;
|
|
||||||
this.groupBoxStatistik.TabStop = false;
|
|
||||||
this.groupBoxStatistik.Text = "STATISTIK";
|
|
||||||
this.groupBoxStatistik.Visible = false;
|
|
||||||
//
|
|
||||||
// dateTimePicker1
|
|
||||||
//
|
|
||||||
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.Name = "dateTimePicker1";
|
|
||||||
this.dateTimePicker1.Size = new System.Drawing.Size(224, 26);
|
|
||||||
this.dateTimePicker1.TabIndex = 1;
|
|
||||||
this.dateTimePicker1.CloseUp += new System.EventHandler(this.dateTimePicker1_CloseUp);
|
|
||||||
//
|
|
||||||
// tableLayoutPanelStatistik
|
|
||||||
//
|
|
||||||
this.tableLayoutPanelStatistik.ColumnCount = 2;
|
|
||||||
this.tableLayoutPanelStatistik.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
|
|
||||||
this.tableLayoutPanelStatistik.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
|
|
||||||
this.tableLayoutPanelStatistik.Controls.Add(this.labelZahl6, 1, 5);
|
|
||||||
this.tableLayoutPanelStatistik.Controls.Add(this.labelStatistik6, 0, 5);
|
|
||||||
this.tableLayoutPanelStatistik.Controls.Add(this.labelZahl5, 1, 4);
|
|
||||||
this.tableLayoutPanelStatistik.Controls.Add(this.labelStatistik5, 0, 4);
|
|
||||||
this.tableLayoutPanelStatistik.Controls.Add(this.labelZahl4, 1, 3);
|
|
||||||
this.tableLayoutPanelStatistik.Controls.Add(this.labelStatistik4, 0, 3);
|
|
||||||
this.tableLayoutPanelStatistik.Controls.Add(this.labelZahl3, 1, 2);
|
|
||||||
this.tableLayoutPanelStatistik.Controls.Add(this.labelStatistik3, 0, 2);
|
|
||||||
this.tableLayoutPanelStatistik.Controls.Add(this.labelZahl2, 1, 1);
|
|
||||||
this.tableLayoutPanelStatistik.Controls.Add(this.labelStatistik2, 0, 1);
|
|
||||||
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.Name = "tableLayoutPanelStatistik";
|
|
||||||
this.tableLayoutPanelStatistik.RowCount = 6;
|
|
||||||
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.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(295, 143);
|
|
||||||
this.tableLayoutPanelStatistik.TabIndex = 0;
|
|
||||||
//
|
|
||||||
// labelZahl6
|
|
||||||
//
|
|
||||||
this.labelZahl6.AutoSize = true;
|
|
||||||
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.Color.White;
|
|
||||||
this.labelZahl6.Location = new System.Drawing.Point(99, 115);
|
|
||||||
this.labelZahl6.Name = "labelZahl6";
|
|
||||||
this.labelZahl6.Size = new System.Drawing.Size(53, 28);
|
|
||||||
this.labelZahl6.TabIndex = 11;
|
|
||||||
this.labelZahl6.Text = "Zahl 6";
|
|
||||||
this.labelZahl6.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
|
||||||
//
|
|
||||||
// labelStatistik6
|
|
||||||
//
|
|
||||||
this.labelStatistik6.AutoSize = true;
|
|
||||||
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.Color.White;
|
|
||||||
this.labelStatistik6.Location = new System.Drawing.Point(3, 115);
|
|
||||||
this.labelStatistik6.Name = "labelStatistik6";
|
|
||||||
this.labelStatistik6.Size = new System.Drawing.Size(90, 28);
|
|
||||||
this.labelStatistik6.TabIndex = 10;
|
|
||||||
this.labelStatistik6.Text = "Statistik 6";
|
|
||||||
this.labelStatistik6.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
|
||||||
//
|
|
||||||
// labelZahl5
|
|
||||||
//
|
|
||||||
this.labelZahl5.AutoSize = true;
|
|
||||||
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.Color.White;
|
|
||||||
this.labelZahl5.Location = new System.Drawing.Point(99, 92);
|
|
||||||
this.labelZahl5.Name = "labelZahl5";
|
|
||||||
this.labelZahl5.Size = new System.Drawing.Size(53, 23);
|
|
||||||
this.labelZahl5.TabIndex = 9;
|
|
||||||
this.labelZahl5.Text = "Zahl 5";
|
|
||||||
this.labelZahl5.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
|
||||||
//
|
|
||||||
// labelStatistik5
|
|
||||||
//
|
|
||||||
this.labelStatistik5.AutoSize = true;
|
|
||||||
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.Color.White;
|
|
||||||
this.labelStatistik5.Location = new System.Drawing.Point(3, 92);
|
|
||||||
this.labelStatistik5.Name = "labelStatistik5";
|
|
||||||
this.labelStatistik5.Size = new System.Drawing.Size(90, 23);
|
|
||||||
this.labelStatistik5.TabIndex = 8;
|
|
||||||
this.labelStatistik5.Text = "Statistik 5";
|
|
||||||
this.labelStatistik5.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
|
||||||
//
|
|
||||||
// labelZahl4
|
|
||||||
//
|
|
||||||
this.labelZahl4.AutoSize = true;
|
|
||||||
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.Color.White;
|
|
||||||
this.labelZahl4.Location = new System.Drawing.Point(99, 69);
|
|
||||||
this.labelZahl4.Name = "labelZahl4";
|
|
||||||
this.labelZahl4.Size = new System.Drawing.Size(53, 23);
|
|
||||||
this.labelZahl4.TabIndex = 7;
|
|
||||||
this.labelZahl4.Text = "Zahl 4";
|
|
||||||
this.labelZahl4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
|
||||||
//
|
|
||||||
// labelStatistik4
|
|
||||||
//
|
|
||||||
this.labelStatistik4.AutoSize = true;
|
|
||||||
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.Color.White;
|
|
||||||
this.labelStatistik4.Location = new System.Drawing.Point(3, 69);
|
|
||||||
this.labelStatistik4.Name = "labelStatistik4";
|
|
||||||
this.labelStatistik4.Size = new System.Drawing.Size(90, 23);
|
|
||||||
this.labelStatistik4.TabIndex = 6;
|
|
||||||
this.labelStatistik4.Text = "Statistik 4";
|
|
||||||
this.labelStatistik4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
|
||||||
//
|
|
||||||
// labelZahl3
|
|
||||||
//
|
|
||||||
this.labelZahl3.AutoSize = true;
|
|
||||||
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.Color.White;
|
|
||||||
this.labelZahl3.Location = new System.Drawing.Point(99, 46);
|
|
||||||
this.labelZahl3.Name = "labelZahl3";
|
|
||||||
this.labelZahl3.Size = new System.Drawing.Size(53, 23);
|
|
||||||
this.labelZahl3.TabIndex = 5;
|
|
||||||
this.labelZahl3.Text = "Zahl 3";
|
|
||||||
this.labelZahl3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
|
||||||
//
|
|
||||||
// labelStatistik3
|
|
||||||
//
|
|
||||||
this.labelStatistik3.AutoSize = true;
|
|
||||||
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.Color.White;
|
|
||||||
this.labelStatistik3.Location = new System.Drawing.Point(3, 46);
|
|
||||||
this.labelStatistik3.Name = "labelStatistik3";
|
|
||||||
this.labelStatistik3.Size = new System.Drawing.Size(90, 23);
|
|
||||||
this.labelStatistik3.TabIndex = 4;
|
|
||||||
this.labelStatistik3.Text = "Statistik 3";
|
|
||||||
this.labelStatistik3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
|
||||||
//
|
|
||||||
// labelZahl2
|
|
||||||
//
|
|
||||||
this.labelZahl2.AutoSize = true;
|
|
||||||
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.Color.White;
|
|
||||||
this.labelZahl2.Location = new System.Drawing.Point(99, 23);
|
|
||||||
this.labelZahl2.Name = "labelZahl2";
|
|
||||||
this.labelZahl2.Size = new System.Drawing.Size(53, 23);
|
|
||||||
this.labelZahl2.TabIndex = 3;
|
|
||||||
this.labelZahl2.Text = "Zahl 2";
|
|
||||||
this.labelZahl2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
|
||||||
//
|
|
||||||
// labelStatistik2
|
|
||||||
//
|
|
||||||
this.labelStatistik2.AutoSize = true;
|
|
||||||
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.Color.White;
|
|
||||||
this.labelStatistik2.Location = new System.Drawing.Point(3, 23);
|
|
||||||
this.labelStatistik2.Name = "labelStatistik2";
|
|
||||||
this.labelStatistik2.Size = new System.Drawing.Size(90, 23);
|
|
||||||
this.labelStatistik2.TabIndex = 2;
|
|
||||||
this.labelStatistik2.Text = "Statistik 2";
|
|
||||||
this.labelStatistik2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
|
||||||
//
|
|
||||||
// labelZahl1
|
|
||||||
//
|
|
||||||
this.labelZahl1.AutoSize = true;
|
|
||||||
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.Color.White;
|
|
||||||
this.labelZahl1.Location = new System.Drawing.Point(99, 0);
|
|
||||||
this.labelZahl1.Name = "labelZahl1";
|
|
||||||
this.labelZahl1.Size = new System.Drawing.Size(53, 23);
|
|
||||||
this.labelZahl1.TabIndex = 1;
|
|
||||||
this.labelZahl1.Text = "Zahl 1";
|
|
||||||
this.labelZahl1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
|
||||||
//
|
|
||||||
// labelStatistik1
|
|
||||||
//
|
|
||||||
this.labelStatistik1.AutoSize = true;
|
|
||||||
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.Color.White;
|
|
||||||
this.labelStatistik1.Location = new System.Drawing.Point(3, 0);
|
|
||||||
this.labelStatistik1.Name = "labelStatistik1";
|
|
||||||
this.labelStatistik1.Size = new System.Drawing.Size(90, 23);
|
|
||||||
this.labelStatistik1.TabIndex = 0;
|
|
||||||
this.labelStatistik1.Text = "Statistik 1";
|
|
||||||
this.labelStatistik1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
|
||||||
//
|
|
||||||
// buttonSuchen
|
// buttonSuchen
|
||||||
//
|
//
|
||||||
this.buttonSuchen.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
|
this.buttonSuchen.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
|
||||||
@ -584,7 +104,7 @@
|
|||||||
this.buttonSuchen.Name = "buttonSuchen";
|
this.buttonSuchen.Name = "buttonSuchen";
|
||||||
this.buttonSuchen.Size = new System.Drawing.Size(200, 41);
|
this.buttonSuchen.Size = new System.Drawing.Size(200, 41);
|
||||||
this.buttonSuchen.TabIndex = 63;
|
this.buttonSuchen.TabIndex = 63;
|
||||||
this.buttonSuchen.Text = "Suchen";
|
this.buttonSuchen.Text = "Auftrag Suchen";
|
||||||
this.buttonSuchen.UseVisualStyleBackColor = false;
|
this.buttonSuchen.UseVisualStyleBackColor = false;
|
||||||
this.buttonSuchen.Click += new System.EventHandler(this.buttonSuchen_Click);
|
this.buttonSuchen.Click += new System.EventHandler(this.buttonSuchen_Click);
|
||||||
//
|
//
|
||||||
@ -620,34 +140,6 @@
|
|||||||
this.buttonSWS_Drucken.UseVisualStyleBackColor = false;
|
this.buttonSWS_Drucken.UseVisualStyleBackColor = false;
|
||||||
this.buttonSWS_Drucken.Click += new System.EventHandler(this.buttonSWS_Drucken_Click);
|
this.buttonSWS_Drucken.Click += new System.EventHandler(this.buttonSWS_Drucken_Click);
|
||||||
//
|
//
|
||||||
// buttonStats
|
|
||||||
//
|
|
||||||
this.buttonStats.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
|
||||||
this.buttonStats.FlatAppearance.BorderColor = System.Drawing.Color.White;
|
|
||||||
this.buttonStats.FlatAppearance.BorderSize = 3;
|
|
||||||
this.buttonStats.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
|
||||||
this.buttonStats.Image = global::Deckungsbeitrag.Properties.Resources.StatisticsWarning_16x;
|
|
||||||
this.buttonStats.Location = new System.Drawing.Point(1121, 650);
|
|
||||||
this.buttonStats.Name = "buttonStats";
|
|
||||||
this.buttonStats.Size = new System.Drawing.Size(41, 41);
|
|
||||||
this.buttonStats.TabIndex = 46;
|
|
||||||
this.buttonStats.UseVisualStyleBackColor = true;
|
|
||||||
this.buttonStats.Click += new System.EventHandler(this.buttonStats_Click);
|
|
||||||
//
|
|
||||||
// buttonEinstellung
|
|
||||||
//
|
|
||||||
this.buttonEinstellung.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
|
||||||
this.buttonEinstellung.FlatAppearance.BorderColor = System.Drawing.Color.White;
|
|
||||||
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(1168, 650);
|
|
||||||
this.buttonEinstellung.Name = "buttonEinstellung";
|
|
||||||
this.buttonEinstellung.Size = new System.Drawing.Size(41, 41);
|
|
||||||
this.buttonEinstellung.TabIndex = 45;
|
|
||||||
this.buttonEinstellung.UseVisualStyleBackColor = true;
|
|
||||||
this.buttonEinstellung.Click += new System.EventHandler(this.buttonEinstellung_Click);
|
|
||||||
//
|
|
||||||
// chartFehlmenge
|
// chartFehlmenge
|
||||||
//
|
//
|
||||||
this.chartFehlmenge.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
this.chartFehlmenge.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
||||||
@ -662,19 +154,20 @@
|
|||||||
this.chartFehlmenge.ChartAreas.Add(chartArea1);
|
this.chartFehlmenge.ChartAreas.Add(chartArea1);
|
||||||
legend1.Name = "Legend1";
|
legend1.Name = "Legend1";
|
||||||
this.chartFehlmenge.Legends.Add(legend1);
|
this.chartFehlmenge.Legends.Add(legend1);
|
||||||
this.chartFehlmenge.Location = new System.Drawing.Point(908, 12);
|
this.chartFehlmenge.Location = new System.Drawing.Point(916, 43);
|
||||||
this.chartFehlmenge.Name = "chartFehlmenge";
|
this.chartFehlmenge.Name = "chartFehlmenge";
|
||||||
series1.ChartArea = "ChartArea1";
|
series1.ChartArea = "ChartArea1";
|
||||||
series1.Legend = "Legend1";
|
series1.Legend = "Legend1";
|
||||||
series1.Name = "Series1";
|
series1.Name = "Series1";
|
||||||
this.chartFehlmenge.Series.Add(series1);
|
this.chartFehlmenge.Series.Add(series1);
|
||||||
this.chartFehlmenge.Size = new System.Drawing.Size(301, 434);
|
this.chartFehlmenge.Size = new System.Drawing.Size(293, 403);
|
||||||
this.chartFehlmenge.TabIndex = 2;
|
this.chartFehlmenge.TabIndex = 2;
|
||||||
this.chartFehlmenge.Text = "chart1";
|
this.chartFehlmenge.Text = "chart1";
|
||||||
title1.Name = "Title1";
|
title1.Name = "Title1";
|
||||||
title1.Text = "Hallo Test";
|
title1.Text = "Hallo Test";
|
||||||
this.chartFehlmenge.Titles.Add(title1);
|
this.chartFehlmenge.Titles.Add(title1);
|
||||||
this.chartFehlmenge.Visible = false;
|
this.chartFehlmenge.Visible = false;
|
||||||
|
this.chartFehlmenge.VisibleChanged += new System.EventHandler(this.chartFehlmenge_VisibleChanged);
|
||||||
//
|
//
|
||||||
// groupBoxKndInfo
|
// groupBoxKndInfo
|
||||||
//
|
//
|
||||||
@ -689,6 +182,7 @@
|
|||||||
this.groupBoxKndInfo.TabStop = false;
|
this.groupBoxKndInfo.TabStop = false;
|
||||||
this.groupBoxKndInfo.Text = "INFOS";
|
this.groupBoxKndInfo.Text = "INFOS";
|
||||||
this.groupBoxKndInfo.Visible = false;
|
this.groupBoxKndInfo.Visible = false;
|
||||||
|
this.groupBoxKndInfo.VisibleChanged += new System.EventHandler(this.groupBoxKndInfo_VisibleChanged);
|
||||||
this.groupBoxKndInfo.Paint += new System.Windows.Forms.PaintEventHandler(this.groupBoxKndInfo_Paint);
|
this.groupBoxKndInfo.Paint += new System.Windows.Forms.PaintEventHandler(this.groupBoxKndInfo_Paint);
|
||||||
//
|
//
|
||||||
// tableLayoutPanelInfo
|
// tableLayoutPanelInfo
|
||||||
@ -745,6 +239,264 @@
|
|||||||
this.buttonTourenListe.UseVisualStyleBackColor = false;
|
this.buttonTourenListe.UseVisualStyleBackColor = false;
|
||||||
this.buttonTourenListe.Click += new System.EventHandler(this.buttonTourenListe_Click);
|
this.buttonTourenListe.Click += new System.EventHandler(this.buttonTourenListe_Click);
|
||||||
//
|
//
|
||||||
|
// buttonStats
|
||||||
|
//
|
||||||
|
this.buttonStats.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||||
|
this.buttonStats.FlatAppearance.BorderColor = System.Drawing.Color.White;
|
||||||
|
this.buttonStats.FlatAppearance.BorderSize = 3;
|
||||||
|
this.buttonStats.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||||
|
this.buttonStats.Image = global::Deckungsbeitrag.Properties.Resources.StatisticsWarning_16x;
|
||||||
|
this.buttonStats.Location = new System.Drawing.Point(1121, 650);
|
||||||
|
this.buttonStats.Name = "buttonStats";
|
||||||
|
this.buttonStats.Size = new System.Drawing.Size(41, 41);
|
||||||
|
this.buttonStats.TabIndex = 46;
|
||||||
|
this.buttonStats.UseVisualStyleBackColor = true;
|
||||||
|
this.buttonStats.Click += new System.EventHandler(this.buttonStats_Click);
|
||||||
|
//
|
||||||
|
// buttonEinstellung
|
||||||
|
//
|
||||||
|
this.buttonEinstellung.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||||
|
this.buttonEinstellung.FlatAppearance.BorderColor = System.Drawing.Color.White;
|
||||||
|
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(1168, 650);
|
||||||
|
this.buttonEinstellung.Name = "buttonEinstellung";
|
||||||
|
this.buttonEinstellung.Size = new System.Drawing.Size(41, 41);
|
||||||
|
this.buttonEinstellung.TabIndex = 45;
|
||||||
|
this.buttonEinstellung.UseVisualStyleBackColor = true;
|
||||||
|
this.buttonEinstellung.Click += new System.EventHandler(this.buttonEinstellung_Click);
|
||||||
|
//
|
||||||
|
// tabPageRampe
|
||||||
|
//
|
||||||
|
this.tabPageRampe.Controls.Add(this.objectListViewRampe);
|
||||||
|
this.tabPageRampe.Location = new System.Drawing.Point(4, 34);
|
||||||
|
this.tabPageRampe.Name = "tabPageRampe";
|
||||||
|
this.tabPageRampe.Size = new System.Drawing.Size(890, 584);
|
||||||
|
this.tabPageRampe.TabIndex = 3;
|
||||||
|
this.tabPageRampe.Text = "Rampe";
|
||||||
|
this.tabPageRampe.UseVisualStyleBackColor = true;
|
||||||
|
//
|
||||||
|
// objectListViewRampe
|
||||||
|
//
|
||||||
|
this.objectListViewRampe.AllowColumnReorder = true;
|
||||||
|
this.objectListViewRampe.AlternateRowBackColor = System.Drawing.Color.LightBlue;
|
||||||
|
this.objectListViewRampe.CellEditActivation = BrightIdeasSoftware.ObjectListView.CellEditActivateMode.DoubleClick;
|
||||||
|
this.objectListViewRampe.CellEditUseWholeCell = false;
|
||||||
|
this.objectListViewRampe.Cursor = System.Windows.Forms.Cursors.Default;
|
||||||
|
this.objectListViewRampe.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||||
|
this.objectListViewRampe.FullRowSelect = true;
|
||||||
|
this.objectListViewRampe.GridLines = true;
|
||||||
|
this.objectListViewRampe.HideSelection = false;
|
||||||
|
this.objectListViewRampe.Location = new System.Drawing.Point(0, 0);
|
||||||
|
this.objectListViewRampe.Name = "objectListViewRampe";
|
||||||
|
this.objectListViewRampe.SelectColumnsOnRightClickBehaviour = BrightIdeasSoftware.ObjectListView.ColumnSelectBehaviour.Submenu;
|
||||||
|
this.objectListViewRampe.Size = new System.Drawing.Size(890, 584);
|
||||||
|
this.objectListViewRampe.Sorting = System.Windows.Forms.SortOrder.Ascending;
|
||||||
|
this.objectListViewRampe.TabIndex = 2;
|
||||||
|
this.objectListViewRampe.TintSortColumn = true;
|
||||||
|
this.objectListViewRampe.UnfocusedSelectedBackColor = System.Drawing.SystemColors.Highlight;
|
||||||
|
this.objectListViewRampe.UnfocusedSelectedForeColor = System.Drawing.SystemColors.HighlightText;
|
||||||
|
this.objectListViewRampe.UseAlternatingBackColors = true;
|
||||||
|
this.objectListViewRampe.UseCellFormatEvents = true;
|
||||||
|
this.objectListViewRampe.UseCompatibleStateImageBehavior = false;
|
||||||
|
this.objectListViewRampe.UseFiltering = true;
|
||||||
|
this.objectListViewRampe.UseHotControls = false;
|
||||||
|
this.objectListViewRampe.UseHyperlinks = true;
|
||||||
|
this.objectListViewRampe.View = System.Windows.Forms.View.Details;
|
||||||
|
//
|
||||||
|
// tabPageSonder
|
||||||
|
//
|
||||||
|
this.tabPageSonder.Controls.Add(this.objectListViewSonder);
|
||||||
|
this.tabPageSonder.Location = new System.Drawing.Point(4, 34);
|
||||||
|
this.tabPageSonder.Name = "tabPageSonder";
|
||||||
|
this.tabPageSonder.Padding = new System.Windows.Forms.Padding(3);
|
||||||
|
this.tabPageSonder.Size = new System.Drawing.Size(890, 584);
|
||||||
|
this.tabPageSonder.TabIndex = 1;
|
||||||
|
this.tabPageSonder.Text = "Sonderaufträge";
|
||||||
|
this.tabPageSonder.UseVisualStyleBackColor = true;
|
||||||
|
//
|
||||||
|
// objectListViewSonder
|
||||||
|
//
|
||||||
|
this.objectListViewSonder.AlternateRowBackColor = System.Drawing.Color.LightBlue;
|
||||||
|
this.objectListViewSonder.CellEditActivation = BrightIdeasSoftware.ObjectListView.CellEditActivateMode.DoubleClick;
|
||||||
|
this.objectListViewSonder.CellEditUseWholeCell = false;
|
||||||
|
this.objectListViewSonder.Cursor = System.Windows.Forms.Cursors.Default;
|
||||||
|
this.objectListViewSonder.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||||
|
this.objectListViewSonder.FullRowSelect = true;
|
||||||
|
this.objectListViewSonder.GridLines = true;
|
||||||
|
this.objectListViewSonder.HideSelection = false;
|
||||||
|
this.objectListViewSonder.Location = new System.Drawing.Point(3, 3);
|
||||||
|
this.objectListViewSonder.Name = "objectListViewSonder";
|
||||||
|
this.objectListViewSonder.SelectColumnsOnRightClickBehaviour = BrightIdeasSoftware.ObjectListView.ColumnSelectBehaviour.Submenu;
|
||||||
|
this.objectListViewSonder.Size = new System.Drawing.Size(884, 578);
|
||||||
|
this.objectListViewSonder.Sorting = System.Windows.Forms.SortOrder.Ascending;
|
||||||
|
this.objectListViewSonder.TabIndex = 2;
|
||||||
|
this.objectListViewSonder.TintSortColumn = true;
|
||||||
|
this.objectListViewSonder.UseAlternatingBackColors = true;
|
||||||
|
this.objectListViewSonder.UseCompatibleStateImageBehavior = false;
|
||||||
|
this.objectListViewSonder.UseHotControls = false;
|
||||||
|
this.objectListViewSonder.View = System.Windows.Forms.View.Details;
|
||||||
|
this.objectListViewSonder.ButtonClick += new System.EventHandler<BrightIdeasSoftware.CellClickEventArgs>(this.objectListViewAuftrag_ButtonClick);
|
||||||
|
this.objectListViewSonder.CellEditFinished += new BrightIdeasSoftware.CellEditEventHandler(this.objectListViewAuftrag_CellEditFinished);
|
||||||
|
this.objectListViewSonder.CellEditStarting += new BrightIdeasSoftware.CellEditEventHandler(this.objectListViewAuftrag_CellEditStarting);
|
||||||
|
this.objectListViewSonder.CellClick += new System.EventHandler<BrightIdeasSoftware.CellClickEventArgs>(this.objectListViewAuftrag_CellClick);
|
||||||
|
this.objectListViewSonder.CellRightClick += new System.EventHandler<BrightIdeasSoftware.CellRightClickEventArgs>(this.objectListViewAuftrag_CellRightClick);
|
||||||
|
this.objectListViewSonder.FormatCell += new System.EventHandler<BrightIdeasSoftware.FormatCellEventArgs>(this.objectListViewAuftrag_FormatCell);
|
||||||
|
//
|
||||||
|
// tabPageGeschaeft
|
||||||
|
//
|
||||||
|
this.tabPageGeschaeft.Controls.Add(this.objectListViewGeschaeft);
|
||||||
|
this.tabPageGeschaeft.Location = new System.Drawing.Point(4, 34);
|
||||||
|
this.tabPageGeschaeft.Name = "tabPageGeschaeft";
|
||||||
|
this.tabPageGeschaeft.Padding = new System.Windows.Forms.Padding(3);
|
||||||
|
this.tabPageGeschaeft.Size = new System.Drawing.Size(890, 584);
|
||||||
|
this.tabPageGeschaeft.TabIndex = 2;
|
||||||
|
this.tabPageGeschaeft.Text = "Geschäft";
|
||||||
|
this.tabPageGeschaeft.UseVisualStyleBackColor = true;
|
||||||
|
//
|
||||||
|
// objectListViewGeschaeft
|
||||||
|
//
|
||||||
|
this.objectListViewGeschaeft.AllowColumnReorder = true;
|
||||||
|
this.objectListViewGeschaeft.AlternateRowBackColor = System.Drawing.Color.LightBlue;
|
||||||
|
this.objectListViewGeschaeft.CellEditActivation = BrightIdeasSoftware.ObjectListView.CellEditActivateMode.DoubleClick;
|
||||||
|
this.objectListViewGeschaeft.CellEditUseWholeCell = false;
|
||||||
|
this.objectListViewGeschaeft.Cursor = System.Windows.Forms.Cursors.Default;
|
||||||
|
this.objectListViewGeschaeft.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||||
|
this.objectListViewGeschaeft.FullRowSelect = true;
|
||||||
|
this.objectListViewGeschaeft.GridLines = true;
|
||||||
|
this.objectListViewGeschaeft.HideSelection = false;
|
||||||
|
this.objectListViewGeschaeft.Location = new System.Drawing.Point(3, 3);
|
||||||
|
this.objectListViewGeschaeft.Name = "objectListViewGeschaeft";
|
||||||
|
this.objectListViewGeschaeft.SelectColumnsOnRightClickBehaviour = BrightIdeasSoftware.ObjectListView.ColumnSelectBehaviour.Submenu;
|
||||||
|
this.objectListViewGeschaeft.Size = new System.Drawing.Size(884, 578);
|
||||||
|
this.objectListViewGeschaeft.Sorting = System.Windows.Forms.SortOrder.Ascending;
|
||||||
|
this.objectListViewGeschaeft.TabIndex = 2;
|
||||||
|
this.objectListViewGeschaeft.TintSortColumn = true;
|
||||||
|
this.objectListViewGeschaeft.UnfocusedSelectedBackColor = System.Drawing.SystemColors.Highlight;
|
||||||
|
this.objectListViewGeschaeft.UnfocusedSelectedForeColor = System.Drawing.SystemColors.HighlightText;
|
||||||
|
this.objectListViewGeschaeft.UseAlternatingBackColors = true;
|
||||||
|
this.objectListViewGeschaeft.UseCellFormatEvents = true;
|
||||||
|
this.objectListViewGeschaeft.UseCompatibleStateImageBehavior = false;
|
||||||
|
this.objectListViewGeschaeft.UseFiltering = true;
|
||||||
|
this.objectListViewGeschaeft.UseHotControls = false;
|
||||||
|
this.objectListViewGeschaeft.UseHyperlinks = true;
|
||||||
|
this.objectListViewGeschaeft.View = System.Windows.Forms.View.Details;
|
||||||
|
this.objectListViewGeschaeft.ButtonClick += new System.EventHandler<BrightIdeasSoftware.CellClickEventArgs>(this.objectListViewAuftrag_ButtonClick);
|
||||||
|
this.objectListViewGeschaeft.CellEditFinished += new BrightIdeasSoftware.CellEditEventHandler(this.objectListViewAuftrag_CellEditFinished);
|
||||||
|
this.objectListViewGeschaeft.CellEditStarting += new BrightIdeasSoftware.CellEditEventHandler(this.objectListViewAuftrag_CellEditStarting);
|
||||||
|
this.objectListViewGeschaeft.CellClick += new System.EventHandler<BrightIdeasSoftware.CellClickEventArgs>(this.objectListViewAuftrag_CellClick);
|
||||||
|
this.objectListViewGeschaeft.CellRightClick += new System.EventHandler<BrightIdeasSoftware.CellRightClickEventArgs>(this.objectListViewAuftrag_CellRightClick);
|
||||||
|
this.objectListViewGeschaeft.FormatCell += new System.EventHandler<BrightIdeasSoftware.FormatCellEventArgs>(this.objectListViewAuftrag_FormatCell);
|
||||||
|
//
|
||||||
|
// tabPageAll
|
||||||
|
//
|
||||||
|
this.tabPageAll.Controls.Add(this.objectListViewAuftrag);
|
||||||
|
this.tabPageAll.Location = new System.Drawing.Point(4, 34);
|
||||||
|
this.tabPageAll.Name = "tabPageAll";
|
||||||
|
this.tabPageAll.Padding = new System.Windows.Forms.Padding(3);
|
||||||
|
this.tabPageAll.Size = new System.Drawing.Size(890, 584);
|
||||||
|
this.tabPageAll.TabIndex = 0;
|
||||||
|
this.tabPageAll.Text = "Aufträge heute";
|
||||||
|
this.tabPageAll.UseVisualStyleBackColor = true;
|
||||||
|
//
|
||||||
|
// objectListViewAuftrag
|
||||||
|
//
|
||||||
|
this.objectListViewAuftrag.AllowColumnReorder = true;
|
||||||
|
this.objectListViewAuftrag.AlternateRowBackColor = System.Drawing.Color.LightBlue;
|
||||||
|
this.objectListViewAuftrag.CellEditActivation = BrightIdeasSoftware.ObjectListView.CellEditActivateMode.DoubleClick;
|
||||||
|
this.objectListViewAuftrag.CellEditUseWholeCell = false;
|
||||||
|
this.objectListViewAuftrag.Cursor = System.Windows.Forms.Cursors.Default;
|
||||||
|
this.objectListViewAuftrag.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||||
|
this.objectListViewAuftrag.FullRowSelect = true;
|
||||||
|
this.objectListViewAuftrag.GridLines = true;
|
||||||
|
this.objectListViewAuftrag.HideSelection = false;
|
||||||
|
this.objectListViewAuftrag.Location = new System.Drawing.Point(3, 3);
|
||||||
|
this.objectListViewAuftrag.Name = "objectListViewAuftrag";
|
||||||
|
this.objectListViewAuftrag.SelectColumnsOnRightClickBehaviour = BrightIdeasSoftware.ObjectListView.ColumnSelectBehaviour.Submenu;
|
||||||
|
this.objectListViewAuftrag.Size = new System.Drawing.Size(884, 578);
|
||||||
|
this.objectListViewAuftrag.Sorting = System.Windows.Forms.SortOrder.Ascending;
|
||||||
|
this.objectListViewAuftrag.TabIndex = 1;
|
||||||
|
this.objectListViewAuftrag.TintSortColumn = true;
|
||||||
|
this.objectListViewAuftrag.UnfocusedSelectedBackColor = System.Drawing.SystemColors.Highlight;
|
||||||
|
this.objectListViewAuftrag.UnfocusedSelectedForeColor = System.Drawing.SystemColors.HighlightText;
|
||||||
|
this.objectListViewAuftrag.UseAlternatingBackColors = true;
|
||||||
|
this.objectListViewAuftrag.UseCellFormatEvents = true;
|
||||||
|
this.objectListViewAuftrag.UseCompatibleStateImageBehavior = false;
|
||||||
|
this.objectListViewAuftrag.UseFiltering = true;
|
||||||
|
this.objectListViewAuftrag.UseHotControls = false;
|
||||||
|
this.objectListViewAuftrag.UseHyperlinks = true;
|
||||||
|
this.objectListViewAuftrag.View = System.Windows.Forms.View.Details;
|
||||||
|
this.objectListViewAuftrag.ButtonClick += new System.EventHandler<BrightIdeasSoftware.CellClickEventArgs>(this.objectListViewAuftrag_ButtonClick);
|
||||||
|
this.objectListViewAuftrag.CellEditFinished += new BrightIdeasSoftware.CellEditEventHandler(this.objectListViewAuftrag_CellEditFinished);
|
||||||
|
this.objectListViewAuftrag.CellEditStarting += new BrightIdeasSoftware.CellEditEventHandler(this.objectListViewAuftrag_CellEditStarting);
|
||||||
|
this.objectListViewAuftrag.CellClick += new System.EventHandler<BrightIdeasSoftware.CellClickEventArgs>(this.objectListViewAuftrag_CellClick);
|
||||||
|
this.objectListViewAuftrag.CellRightClick += new System.EventHandler<BrightIdeasSoftware.CellRightClickEventArgs>(this.objectListViewAuftrag_CellRightClick);
|
||||||
|
this.objectListViewAuftrag.FormatCell += new System.EventHandler<BrightIdeasSoftware.FormatCellEventArgs>(this.objectListViewAuftrag_FormatCell);
|
||||||
|
//
|
||||||
|
// tabControlAuftragList
|
||||||
|
//
|
||||||
|
this.tabControlAuftragList.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.tabControlAuftragList.Controls.Add(this.tabPageAll);
|
||||||
|
this.tabControlAuftragList.Controls.Add(this.tabPageGeschaeft);
|
||||||
|
this.tabControlAuftragList.Controls.Add(this.tabPageSonder);
|
||||||
|
this.tabControlAuftragList.Controls.Add(this.tabPageRampe);
|
||||||
|
this.tabControlAuftragList.Controls.Add(this.tabPageVorbereitet);
|
||||||
|
this.tabControlAuftragList.Font = new System.Drawing.Font("Microsoft Sans Serif", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||||
|
this.tabControlAuftragList.Location = new System.Drawing.Point(4, 17);
|
||||||
|
this.tabControlAuftragList.Name = "tabControlAuftragList";
|
||||||
|
this.tabControlAuftragList.SelectedIndex = 0;
|
||||||
|
this.tabControlAuftragList.Size = new System.Drawing.Size(898, 622);
|
||||||
|
this.tabControlAuftragList.TabIndex = 0;
|
||||||
|
this.tabControlAuftragList.Visible = false;
|
||||||
|
this.tabControlAuftragList.SelectedIndexChanged += new System.EventHandler(this.tabControlAuftragList_SelectedIndexChanged);
|
||||||
|
this.tabControlAuftragList.MouseDown += new System.Windows.Forms.MouseEventHandler(this.tabControlAuftragList_MouseDown);
|
||||||
|
//
|
||||||
|
// tabPageVorbereitet
|
||||||
|
//
|
||||||
|
this.tabPageVorbereitet.Controls.Add(this.objectListViewVorbereitet);
|
||||||
|
this.tabPageVorbereitet.Location = new System.Drawing.Point(4, 34);
|
||||||
|
this.tabPageVorbereitet.Name = "tabPageVorbereitet";
|
||||||
|
this.tabPageVorbereitet.Size = new System.Drawing.Size(890, 584);
|
||||||
|
this.tabPageVorbereitet.TabIndex = 4;
|
||||||
|
this.tabPageVorbereitet.Text = "Vorbereitet";
|
||||||
|
this.tabPageVorbereitet.UseVisualStyleBackColor = true;
|
||||||
|
//
|
||||||
|
// objectListViewVorbereitet
|
||||||
|
//
|
||||||
|
this.objectListViewVorbereitet.AllowColumnReorder = true;
|
||||||
|
this.objectListViewVorbereitet.AlternateRowBackColor = System.Drawing.Color.LightBlue;
|
||||||
|
this.objectListViewVorbereitet.CellEditActivation = BrightIdeasSoftware.ObjectListView.CellEditActivateMode.DoubleClick;
|
||||||
|
this.objectListViewVorbereitet.CellEditUseWholeCell = false;
|
||||||
|
this.objectListViewVorbereitet.CheckBoxes = true;
|
||||||
|
this.objectListViewVorbereitet.Cursor = System.Windows.Forms.Cursors.Default;
|
||||||
|
this.objectListViewVorbereitet.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||||
|
this.objectListViewVorbereitet.FullRowSelect = true;
|
||||||
|
this.objectListViewVorbereitet.GridLines = true;
|
||||||
|
this.objectListViewVorbereitet.HideSelection = false;
|
||||||
|
this.objectListViewVorbereitet.Location = new System.Drawing.Point(0, 0);
|
||||||
|
this.objectListViewVorbereitet.Name = "objectListViewVorbereitet";
|
||||||
|
this.objectListViewVorbereitet.SelectColumnsOnRightClickBehaviour = BrightIdeasSoftware.ObjectListView.ColumnSelectBehaviour.Submenu;
|
||||||
|
this.objectListViewVorbereitet.Size = new System.Drawing.Size(890, 584);
|
||||||
|
this.objectListViewVorbereitet.Sorting = System.Windows.Forms.SortOrder.Ascending;
|
||||||
|
this.objectListViewVorbereitet.TabIndex = 2;
|
||||||
|
this.objectListViewVorbereitet.TintSortColumn = true;
|
||||||
|
this.objectListViewVorbereitet.UnfocusedSelectedBackColor = System.Drawing.SystemColors.Highlight;
|
||||||
|
this.objectListViewVorbereitet.UnfocusedSelectedForeColor = System.Drawing.SystemColors.HighlightText;
|
||||||
|
this.objectListViewVorbereitet.UseAlternatingBackColors = true;
|
||||||
|
this.objectListViewVorbereitet.UseCellFormatEvents = true;
|
||||||
|
this.objectListViewVorbereitet.UseCompatibleStateImageBehavior = false;
|
||||||
|
this.objectListViewVorbereitet.UseFiltering = true;
|
||||||
|
this.objectListViewVorbereitet.UseHyperlinks = true;
|
||||||
|
this.objectListViewVorbereitet.View = System.Windows.Forms.View.Details;
|
||||||
|
this.objectListViewVorbereitet.ButtonClick += new System.EventHandler<BrightIdeasSoftware.CellClickEventArgs>(this.objectListViewAuftrag_ButtonClick);
|
||||||
|
this.objectListViewVorbereitet.CellEditFinished += new BrightIdeasSoftware.CellEditEventHandler(this.objectListViewAuftrag_CellEditFinished);
|
||||||
|
this.objectListViewVorbereitet.CellEditStarting += new BrightIdeasSoftware.CellEditEventHandler(this.objectListViewAuftrag_CellEditStarting);
|
||||||
|
this.objectListViewVorbereitet.CellClick += new System.EventHandler<BrightIdeasSoftware.CellClickEventArgs>(this.objectListViewAuftrag_CellClick);
|
||||||
|
this.objectListViewVorbereitet.FormatCell += new System.EventHandler<BrightIdeasSoftware.FormatCellEventArgs>(this.objectListViewAuftrag_FormatCell);
|
||||||
|
//
|
||||||
// FormExpedit
|
// FormExpedit
|
||||||
//
|
//
|
||||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
|
||||||
@ -760,8 +512,6 @@
|
|||||||
this.Controls.Add(this.buttonNeuerAuftrag);
|
this.Controls.Add(this.buttonNeuerAuftrag);
|
||||||
this.Controls.Add(this.buttonSWS_Drucken);
|
this.Controls.Add(this.buttonSWS_Drucken);
|
||||||
this.Controls.Add(this.tabControlAuftragList);
|
this.Controls.Add(this.tabControlAuftragList);
|
||||||
this.Controls.Add(this.dGArtikel);
|
|
||||||
this.Controls.Add(this.groupBoxStatistik);
|
|
||||||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
|
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
|
||||||
this.HelpButton = true;
|
this.HelpButton = true;
|
||||||
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
||||||
@ -775,21 +525,21 @@
|
|||||||
this.Load += new System.EventHandler(this.FormExpedit_Load);
|
this.Load += new System.EventHandler(this.FormExpedit_Load);
|
||||||
this.Shown += new System.EventHandler(this.FormExpedit_Shown);
|
this.Shown += new System.EventHandler(this.FormExpedit_Shown);
|
||||||
this.Resize += new System.EventHandler(this.FormExpedit_Resize);
|
this.Resize += new System.EventHandler(this.FormExpedit_Resize);
|
||||||
((System.ComponentModel.ISupportInitialize)(this.dGArtikel)).EndInit();
|
|
||||||
this.tabPageSonder.ResumeLayout(false);
|
|
||||||
((System.ComponentModel.ISupportInitialize)(this.objectListViewSonder)).EndInit();
|
|
||||||
this.tabPageAll.ResumeLayout(false);
|
|
||||||
((System.ComponentModel.ISupportInitialize)(this.objectListViewAuftrag)).EndInit();
|
|
||||||
this.tabControlAuftragList.ResumeLayout(false);
|
|
||||||
this.tabPageGeschaeft.ResumeLayout(false);
|
|
||||||
((System.ComponentModel.ISupportInitialize)(this.objectListViewGeschaeft)).EndInit();
|
|
||||||
this.groupBoxStatistik.ResumeLayout(false);
|
|
||||||
this.tableLayoutPanelStatistik.ResumeLayout(false);
|
|
||||||
this.tableLayoutPanelStatistik.PerformLayout();
|
|
||||||
((System.ComponentModel.ISupportInitialize)(this.chartFehlmenge)).EndInit();
|
((System.ComponentModel.ISupportInitialize)(this.chartFehlmenge)).EndInit();
|
||||||
this.groupBoxKndInfo.ResumeLayout(false);
|
this.groupBoxKndInfo.ResumeLayout(false);
|
||||||
this.tableLayoutPanelInfo.ResumeLayout(false);
|
this.tableLayoutPanelInfo.ResumeLayout(false);
|
||||||
this.tableLayoutPanelInfo.PerformLayout();
|
this.tableLayoutPanelInfo.PerformLayout();
|
||||||
|
this.tabPageRampe.ResumeLayout(false);
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.objectListViewRampe)).EndInit();
|
||||||
|
this.tabPageSonder.ResumeLayout(false);
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.objectListViewSonder)).EndInit();
|
||||||
|
this.tabPageGeschaeft.ResumeLayout(false);
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.objectListViewGeschaeft)).EndInit();
|
||||||
|
this.tabPageAll.ResumeLayout(false);
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.objectListViewAuftrag)).EndInit();
|
||||||
|
this.tabControlAuftragList.ResumeLayout(false);
|
||||||
|
this.tabPageVorbereitet.ResumeLayout(false);
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.objectListViewVorbereitet)).EndInit();
|
||||||
this.ResumeLayout(false);
|
this.ResumeLayout(false);
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -797,48 +547,26 @@
|
|||||||
#endregion
|
#endregion
|
||||||
private System.Windows.Forms.Button buttonSWS_Drucken;
|
private System.Windows.Forms.Button buttonSWS_Drucken;
|
||||||
private System.Windows.Forms.Button buttonNeuerAuftrag;
|
private System.Windows.Forms.Button buttonNeuerAuftrag;
|
||||||
private System.Windows.Forms.DataGridView dGArtikel;
|
|
||||||
private System.Windows.Forms.TabPage tabPageSonder;
|
|
||||||
private BrightIdeasSoftware.ObjectListView objectListViewSonder;
|
|
||||||
private System.Windows.Forms.TabPage tabPageAll;
|
|
||||||
private BrightIdeasSoftware.ObjectListView objectListViewAuftrag;
|
|
||||||
private System.Windows.Forms.TabControl tabControlAuftragList;
|
|
||||||
private System.Windows.Forms.Button buttonEinstellung;
|
private System.Windows.Forms.Button buttonEinstellung;
|
||||||
private System.Windows.Forms.Button buttonStats;
|
private System.Windows.Forms.Button buttonStats;
|
||||||
private System.Windows.Forms.GroupBox groupBoxStatistik;
|
|
||||||
private System.Windows.Forms.DateTimePicker dateTimePicker1;
|
|
||||||
private System.Windows.Forms.TableLayoutPanel tableLayoutPanelStatistik;
|
|
||||||
private System.Windows.Forms.Label labelZahl6;
|
|
||||||
private System.Windows.Forms.Label labelStatistik6;
|
|
||||||
private System.Windows.Forms.Label labelZahl5;
|
|
||||||
private System.Windows.Forms.Label labelStatistik5;
|
|
||||||
private System.Windows.Forms.Label labelZahl4;
|
|
||||||
private System.Windows.Forms.Label labelStatistik4;
|
|
||||||
private System.Windows.Forms.Label labelZahl3;
|
|
||||||
private System.Windows.Forms.Label labelStatistik3;
|
|
||||||
private System.Windows.Forms.Label labelZahl2;
|
|
||||||
private System.Windows.Forms.Label labelStatistik2;
|
|
||||||
private System.Windows.Forms.Label labelZahl1;
|
|
||||||
private System.Windows.Forms.Label labelStatistik1;
|
|
||||||
private System.Windows.Forms.DataGridViewTextBoxColumn KundeArtikelID;
|
|
||||||
private System.Windows.Forms.DataGridViewTextBoxColumn KundeID;
|
|
||||||
private System.Windows.Forms.DataGridViewTextBoxColumn ArtikelNR;
|
|
||||||
private System.Windows.Forms.DataGridViewTextBoxColumn ArtikelName;
|
|
||||||
private System.Windows.Forms.DataGridViewTextBoxColumn Stand;
|
|
||||||
private System.Windows.Forms.DataGridViewTextBoxColumn Fehlmenge;
|
|
||||||
private System.Windows.Forms.DataGridViewTextBoxColumn Korrektur;
|
|
||||||
private System.Windows.Forms.DataGridViewTextBoxColumn StandBearbeitet;
|
|
||||||
private System.Windows.Forms.DataGridViewTextBoxColumn FehlmengeBearbeitet;
|
|
||||||
private System.Windows.Forms.DataGridViewTextBoxColumn KorrekturBearbeitet;
|
|
||||||
private System.Windows.Forms.Button buttonSuchen;
|
private System.Windows.Forms.Button buttonSuchen;
|
||||||
private System.Windows.Forms.Button buttonReklamation;
|
private System.Windows.Forms.Button buttonReklamation;
|
||||||
private System.Windows.Forms.TabPage tabPageGeschaeft;
|
|
||||||
private BrightIdeasSoftware.ObjectListView objectListViewGeschaeft;
|
|
||||||
private System.Windows.Forms.DataVisualization.Charting.Chart chartFehlmenge;
|
private System.Windows.Forms.DataVisualization.Charting.Chart chartFehlmenge;
|
||||||
private System.Windows.Forms.GroupBox groupBoxKndInfo;
|
private System.Windows.Forms.GroupBox groupBoxKndInfo;
|
||||||
private System.Windows.Forms.TableLayoutPanel tableLayoutPanelInfo;
|
private System.Windows.Forms.TableLayoutPanel tableLayoutPanelInfo;
|
||||||
private System.Windows.Forms.Label labelAnmerkung;
|
private System.Windows.Forms.Label labelAnmerkung;
|
||||||
private System.Windows.Forms.Label labelAufgabe;
|
private System.Windows.Forms.Label labelAufgabe;
|
||||||
private System.Windows.Forms.Button buttonTourenListe;
|
private System.Windows.Forms.Button buttonTourenListe;
|
||||||
|
private System.Windows.Forms.TabPage tabPageRampe;
|
||||||
|
private BrightIdeasSoftware.ObjectListView objectListViewRampe;
|
||||||
|
private System.Windows.Forms.TabPage tabPageSonder;
|
||||||
|
private BrightIdeasSoftware.ObjectListView objectListViewSonder;
|
||||||
|
private System.Windows.Forms.TabPage tabPageGeschaeft;
|
||||||
|
private BrightIdeasSoftware.ObjectListView objectListViewGeschaeft;
|
||||||
|
private System.Windows.Forms.TabPage tabPageAll;
|
||||||
|
private BrightIdeasSoftware.ObjectListView objectListViewAuftrag;
|
||||||
|
private System.Windows.Forms.TabControl tabControlAuftragList;
|
||||||
|
private System.Windows.Forms.TabPage tabPageVorbereitet;
|
||||||
|
private BrightIdeasSoftware.ObjectListView objectListViewVorbereitet;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
File diff suppressed because it is too large
Load Diff
@ -117,36 +117,6 @@
|
|||||||
<resheader name="writer">
|
<resheader name="writer">
|
||||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
</resheader>
|
</resheader>
|
||||||
<metadata name="KundeArtikelID.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
|
||||||
<value>True</value>
|
|
||||||
</metadata>
|
|
||||||
<metadata name="KundeID.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
|
||||||
<value>True</value>
|
|
||||||
</metadata>
|
|
||||||
<metadata name="ArtikelNR.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
|
||||||
<value>True</value>
|
|
||||||
</metadata>
|
|
||||||
<metadata name="ArtikelName.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
|
||||||
<value>True</value>
|
|
||||||
</metadata>
|
|
||||||
<metadata name="Stand.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
|
||||||
<value>True</value>
|
|
||||||
</metadata>
|
|
||||||
<metadata name="Fehlmenge.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
|
||||||
<value>True</value>
|
|
||||||
</metadata>
|
|
||||||
<metadata name="Korrektur.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
|
||||||
<value>True</value>
|
|
||||||
</metadata>
|
|
||||||
<metadata name="StandBearbeitet.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
|
||||||
<value>True</value>
|
|
||||||
</metadata>
|
|
||||||
<metadata name="FehlmengeBearbeitet.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
|
||||||
<value>True</value>
|
|
||||||
</metadata>
|
|
||||||
<metadata name="KorrekturBearbeitet.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
|
||||||
<value>True</value>
|
|
||||||
</metadata>
|
|
||||||
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||||
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||||
<value>
|
<value>
|
||||||
|
|||||||
@ -26,7 +26,7 @@ namespace Deckungsbeitrag
|
|||||||
Meldungen meldung = new Meldungen();
|
Meldungen meldung = new Meldungen();
|
||||||
private Benutzer benutzer;
|
private Benutzer benutzer;
|
||||||
private List<object> auftragsliste;
|
private List<object> auftragsliste;
|
||||||
|
private ArtikelKategorie kategorie;
|
||||||
string userid;
|
string userid;
|
||||||
|
|
||||||
#region Form-Konstruktor
|
#region Form-Konstruktor
|
||||||
@ -54,6 +54,10 @@ namespace Deckungsbeitrag
|
|||||||
videoDevices = new FilterInfoCollection(FilterCategory.VideoInputDevice);
|
videoDevices = new FilterInfoCollection(FilterCategory.VideoInputDevice);
|
||||||
this.Text = " Version: " + Assembly.GetExecutingAssembly().GetName().Version.ToString();
|
this.Text = " Version: " + Assembly.GetExecutingAssembly().GetName().Version.ToString();
|
||||||
|
|
||||||
|
if (userid.Contains("kleinteile")) { kategorie = ArtikelKategorie.Kleinteile; }
|
||||||
|
if (userid.Contains("grossteile")) { kategorie = ArtikelKategorie.Grossteile; }
|
||||||
|
if (userid.Contains("frottee") || userid.Contains("spannleintuch")) { kategorie = ArtikelKategorie.Frottee; }
|
||||||
|
|
||||||
//Kunde wird durch Scan oder Handeingabe Ausgewählt.
|
//Kunde wird durch Scan oder Handeingabe Ausgewählt.
|
||||||
//this.kunde = Funktionen.KundenAuswahl();
|
//this.kunde = Funktionen.KundenAuswahl();
|
||||||
Open_Liste();
|
Open_Liste();
|
||||||
@ -98,7 +102,7 @@ namespace Deckungsbeitrag
|
|||||||
this.labelAnmerkungText.BackColor = Color.White;
|
this.labelAnmerkungText.BackColor = Color.White;
|
||||||
}
|
}
|
||||||
//this.textBoxScann.Clear();
|
//this.textBoxScann.Clear();
|
||||||
this.artikelListe = KundeArtikel.GetList(kunde.KundeID.ToString());
|
this.artikelListe = KundeArtikel.GetFehlmengeList(kunde.KundeID.ToString());
|
||||||
this.textBoxScann.Text = this.kunde.KundeNummer;
|
this.textBoxScann.Text = this.kunde.KundeNummer;
|
||||||
this.textBoxScann.Enabled = false;
|
this.textBoxScann.Enabled = false;
|
||||||
if ((userid != null && userid.Contains("reklamation")) || (this.benutzer != null && this.benutzer.Rolle == BenutzerRolle.Expedit)) Reklamation_GroupBox();
|
if ((userid != null && userid.Contains("reklamation")) || (this.benutzer != null && this.benutzer.Rolle == BenutzerRolle.Expedit)) Reklamation_GroupBox();
|
||||||
@ -121,7 +125,6 @@ namespace Deckungsbeitrag
|
|||||||
if (userid.Contains("frottee") || userid.Contains("spannleintuch")) { auftrag.Abteilungen |= AbteilungsStatus.FrotteeBegonnen; auftrag.Save(); }
|
if (userid.Contains("frottee") || userid.Contains("spannleintuch")) { auftrag.Abteilungen |= AbteilungsStatus.FrotteeBegonnen; auftrag.Save(); }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
CloseKeyboard();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -137,6 +140,7 @@ namespace Deckungsbeitrag
|
|||||||
// Buttons werden den Artikeln aus der Artikelliste zugewiesen. Unterschied zwischen Frotteewäsche, Spannleintüchern, Großteilen und Kleinteilen
|
// Buttons werden den Artikeln aus der Artikelliste zugewiesen. Unterschied zwischen Frotteewäsche, Spannleintüchern, Großteilen und Kleinteilen
|
||||||
foreach (KundeArtikel artikel in artikelListe)
|
foreach (KundeArtikel artikel in artikelListe)
|
||||||
{
|
{
|
||||||
|
|
||||||
// Unterschied zwischen Maschine oder Person.
|
// Unterschied zwischen Maschine oder Person.
|
||||||
if(this.userid.StartsWith("ms"))
|
if(this.userid.StartsWith("ms"))
|
||||||
{
|
{
|
||||||
@ -167,7 +171,7 @@ namespace Deckungsbeitrag
|
|||||||
case var nr when nr.ToString().StartsWith("6312") & nr.ToString().EndsWith("1"): //DUSCHTUCH BLAU
|
case var nr when nr.ToString().StartsWith("6312") & nr.ToString().EndsWith("1"): //DUSCHTUCH BLAU
|
||||||
this.buttonArt7.Tag = artikel;
|
this.buttonArt7.Tag = artikel;
|
||||||
break;
|
break;
|
||||||
case var nr when nr.ToString().StartsWith("61115") & (nr.ToString().EndsWith("00") || nr.ToString().EndsWith("30") || nr.ToString().EndsWith("10")): //SPANNLEINTUCH SINGLE
|
case var nr when nr.ToString().StartsWith("61115") & (nr.ToString().EndsWith("00") || nr.ToString().EndsWith("10")): //SPANNLEINTUCH SINGLE
|
||||||
this.buttonArt8.Tag = artikel;
|
this.buttonArt8.Tag = artikel;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
@ -322,7 +326,7 @@ namespace Deckungsbeitrag
|
|||||||
Tag = artikel,
|
Tag = artikel,
|
||||||
Name = $"btn_{artikel.ArtikelNR}",
|
Name = $"btn_{artikel.ArtikelNR}",
|
||||||
AutoSize = true,
|
AutoSize = true,
|
||||||
Margin = new Padding(5),
|
Margin = new Padding(0),
|
||||||
BackColor = Color.Turquoise,
|
BackColor = Color.Turquoise,
|
||||||
ForeColor = Color.Black,
|
ForeColor = Color.Black,
|
||||||
};
|
};
|
||||||
@ -333,7 +337,16 @@ namespace Deckungsbeitrag
|
|||||||
flowPanel.Controls.Add(btn);
|
flowPanel.Controls.Add(btn);
|
||||||
}
|
}
|
||||||
int buttons = flowPanel.Controls.OfType<Button>().Count();
|
int buttons = flowPanel.Controls.OfType<Button>().Count();
|
||||||
Size btnsize = new Size(flowPanel.Width / (buttons / 2), (flowPanel.Height / 2) - (flowPanel.Margin.All * 3));
|
|
||||||
|
// Berechnen der Buttonbreite laut Panelbreit durch Buttonanzahl. (Zweireihig und deshalb durch 2)
|
||||||
|
Size btnsize = new Size((int)((double)flowPanel.ClientSize.Width / ((double)buttons / (double)2)), (flowPanel.ClientSize.Height / 2) - (flowPanel.Margin.All * 3));
|
||||||
|
|
||||||
|
// Breite der Buttons wird angepasst falls nicht alle angezeigt werden können.
|
||||||
|
while (((btnsize.Width + flowPanel.Margin.All) * (int)(buttons / 2)) >= flowPanel.ClientSize.Width)
|
||||||
|
{
|
||||||
|
btnsize.Width--;
|
||||||
|
}
|
||||||
|
|
||||||
foreach (Button btn in flowPanel.Controls)
|
foreach (Button btn in flowPanel.Controls)
|
||||||
{
|
{
|
||||||
btn.MaximumSize = btnsize;
|
btn.MaximumSize = btnsize;
|
||||||
@ -372,7 +385,7 @@ namespace Deckungsbeitrag
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (userid.Contains("reklamation") || (this.benutzer != null && this.benutzer.Rolle == BenutzerRolle.Expedit))
|
if ((userid != null && userid.Contains("reklamation")) || (this.benutzer != null && this.benutzer.Rolle == BenutzerRolle.Expedit))
|
||||||
{
|
{
|
||||||
DialogResult result = meldung.GetFrage(this, "Möchtest du eine weitere Reklamation eingeben?", false);
|
DialogResult result = meldung.GetFrage(this, "Möchtest du eine weitere Reklamation eingeben?", false);
|
||||||
switch (result)
|
switch (result)
|
||||||
@ -405,13 +418,13 @@ namespace Deckungsbeitrag
|
|||||||
/// <param name="extra">Wenn Extrakunde dann true</param>
|
/// <param name="extra">Wenn Extrakunde dann true</param>
|
||||||
private void Open_Liste()
|
private void Open_Liste()
|
||||||
{
|
{
|
||||||
|
int listentyp = 0;
|
||||||
|
|
||||||
|
|
||||||
|
if ((userid != null && userid.Contains("reklamation")) || (this.benutzer != null && this.benutzer.Rolle == BenutzerRolle.Expedit)) { auftragsliste = null; listentyp = 5; }
|
||||||
|
else auftragsliste = new List<object>(Auftrag.GetFinishingList(kategorie));
|
||||||
|
|
||||||
if ((userid != null && userid.Contains("reklamation")) || (this.benutzer != null && this.benutzer.Rolle == BenutzerRolle.Expedit)) auftragsliste = null;
|
FormListe liste = new FormListe(auftragsliste, listentyp);
|
||||||
else auftragsliste = new List<object>(Auftrag.GetFinishingList());
|
|
||||||
|
|
||||||
FormListe liste = new FormListe(auftragsliste, 0);
|
|
||||||
if (liste.ShowDialog() == DialogResult.OK)
|
if (liste.ShowDialog() == DialogResult.OK)
|
||||||
{
|
{
|
||||||
if (liste.auftrag != null)
|
if (liste.auftrag != null)
|
||||||
|
|||||||
@ -491,7 +491,7 @@ namespace Deckungsbeitrag
|
|||||||
// Wenn der Zellenwert sich geändert hat, wird die entsprechende Zahl in der DB upgedatet.
|
// Wenn der Zellenwert sich geändert hat, wird die entsprechende Zahl in der DB upgedatet.
|
||||||
if (beforeedit != int.Parse(cell.Value.ToString()))
|
if (beforeedit != int.Parse(cell.Value.ToString()))
|
||||||
{
|
{
|
||||||
|
// Speichern des aktuellen Zellinhaltes.
|
||||||
if (row.Cells[0].Value != null)
|
if (row.Cells[0].Value != null)
|
||||||
{
|
{
|
||||||
KundeArtikel item = KundeArtikel.GetItem(int.Parse(row.Cells[0].Value.ToString()));
|
KundeArtikel item = KundeArtikel.GetItem(int.Parse(row.Cells[0].Value.ToString()));
|
||||||
@ -507,6 +507,11 @@ namespace Deckungsbeitrag
|
|||||||
item.Fehlmenge = int.Parse(row.Cells[e.ColumnIndex].Value.ToString());
|
item.Fehlmenge = int.Parse(row.Cells[e.ColumnIndex].Value.ToString());
|
||||||
item.FehlmengeBearbeitet = this.benutzer.BenutzerName + " am " + DateTime.Now.ToString();
|
item.FehlmengeBearbeitet = this.benutzer.BenutzerName + " am " + DateTime.Now.ToString();
|
||||||
}
|
}
|
||||||
|
if (row.Cells[e.ColumnIndex].OwningColumn.Name == "Reklamation")
|
||||||
|
{
|
||||||
|
item.Reklamation = int.Parse(row.Cells[e.ColumnIndex].Value.ToString());
|
||||||
|
//item.KorrekturBearbeitet = this.benutzer.BenutzerName + " am " + DateTime.Now.ToString();
|
||||||
|
}
|
||||||
if (row.Cells[e.ColumnIndex].OwningColumn.Name == "Korrektur")
|
if (row.Cells[e.ColumnIndex].OwningColumn.Name == "Korrektur")
|
||||||
{
|
{
|
||||||
item.Korrektur = int.Parse(row.Cells[e.ColumnIndex].Value.ToString());
|
item.Korrektur = int.Parse(row.Cells[e.ColumnIndex].Value.ToString());
|
||||||
|
|||||||
@ -22,7 +22,8 @@ namespace Deckungsbeitrag
|
|||||||
Aufgabenliste = 1,
|
Aufgabenliste = 1,
|
||||||
Benutzerliste = 2,
|
Benutzerliste = 2,
|
||||||
Auftragliste = 3,
|
Auftragliste = 3,
|
||||||
Finishingliste = 4
|
Finishingliste = 4,
|
||||||
|
Reklamationliste = 5
|
||||||
}
|
}
|
||||||
public partial class FormListe : Form
|
public partial class FormListe : Form
|
||||||
{
|
{
|
||||||
@ -250,12 +251,47 @@ namespace Deckungsbeitrag
|
|||||||
}
|
}
|
||||||
if (listViewKunde.Items.Count == 1)
|
if (listViewKunde.Items.Count == 1)
|
||||||
{
|
{
|
||||||
kunde = (Kunde)listViewKunde.Items[0].Tag;
|
auftrag = (Auftrag)listViewKunde.Items[0].Tag;
|
||||||
this.DialogResult = DialogResult.OK;
|
this.DialogResult = DialogResult.OK;
|
||||||
this.Close();
|
this.Close();
|
||||||
}
|
}
|
||||||
this.buttonNeuerAuftrag.Visible = this.buttonNeuerAuftrag.Enabled = false;
|
this.buttonNeuerAuftrag.Visible = this.buttonNeuerAuftrag.Enabled = false;
|
||||||
|
|
||||||
|
break;
|
||||||
|
case var reklamationliste when type_of_list == (int)Listentyp.Reklamationliste:
|
||||||
|
{
|
||||||
|
//SPALTEN ERSTELLEN UND EINFÜGEN
|
||||||
|
string[] colname = knd_col.Split(',');
|
||||||
|
foreach (string s in colname)
|
||||||
|
{
|
||||||
|
ColumnHeader ch = new ColumnHeader();
|
||||||
|
ch.Text = s;
|
||||||
|
|
||||||
|
this.listViewKunde.Columns.Add(ch);
|
||||||
|
}
|
||||||
|
//KUNDEN LADEN
|
||||||
|
this.Text = "KUNDE WÄHLEN";
|
||||||
|
if (this.Kundenliste == null) this.Kundenliste = Kunde.GetReklamationListe("Miete");
|
||||||
|
foreach (Kunde kunde in this.Kundenliste)
|
||||||
|
{
|
||||||
|
ListViewItem item = new ListViewItem();
|
||||||
|
item.Tag = kunde;
|
||||||
|
item.Text = kunde.KundeNummer;
|
||||||
|
item.SubItems.Add(kunde.Suchtext);
|
||||||
|
item.SubItems.Add(kunde.KundeName);
|
||||||
|
item.SubItems.Add(kunde.Ort);
|
||||||
|
|
||||||
|
this.listViewKunde.Items.Add(item);
|
||||||
|
}
|
||||||
|
if (listViewKunde.Items.Count == 1)
|
||||||
|
{
|
||||||
|
kunde = (Kunde)listViewKunde.Items[0].Tag;
|
||||||
|
this.DialogResult = DialogResult.OK;
|
||||||
|
this.Close();
|
||||||
|
|
||||||
|
}
|
||||||
|
this.buttonNeuerAuftrag.Visible = this.buttonNeuerAuftrag.Enabled = false;
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
@ -331,7 +367,6 @@ namespace Deckungsbeitrag
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void listViewKunde_MouseClick(object sender, MouseEventArgs e)
|
private void listViewKunde_MouseClick(object sender, MouseEventArgs e)
|
||||||
{
|
{
|
||||||
ListViewItem item = this.listViewKunde.GetItemAt(e.X, e.Y);
|
ListViewItem item = this.listViewKunde.GetItemAt(e.X, e.Y);
|
||||||
@ -355,7 +390,14 @@ namespace Deckungsbeitrag
|
|||||||
this.DialogResult = DialogResult.OK;
|
this.DialogResult = DialogResult.OK;
|
||||||
this.Close();
|
this.Close();
|
||||||
break;
|
break;
|
||||||
default:
|
case var _ when type_of_list == (int)Listentyp.Reklamationliste:
|
||||||
|
{
|
||||||
|
kunde = (Kunde)item.Tag;
|
||||||
|
this.DialogResult = DialogResult.OK;
|
||||||
|
this.Close();
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -19,6 +19,8 @@ namespace Deckungsbeitrag
|
|||||||
{
|
{
|
||||||
string progFiles = @"C:\Program Files\Common Files\Microsoft Shared\ink";
|
string progFiles = @"C:\Program Files\Common Files\Microsoft Shared\ink";
|
||||||
string keyboardPath;
|
string keyboardPath;
|
||||||
|
private OnboardingSchritt onBoardingArt;
|
||||||
|
public Benutzer Person { get; set; }
|
||||||
|
|
||||||
public FormLogin()
|
public FormLogin()
|
||||||
{
|
{
|
||||||
@ -58,7 +60,7 @@ namespace Deckungsbeitrag
|
|||||||
break;
|
break;
|
||||||
case -3:
|
case -3:
|
||||||
MessageBox.Show(lex.Message, "Registrieren", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
|
MessageBox.Show(lex.Message, "Registrieren", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
|
||||||
Program.AddFehler(null, lex.Message, null, DateTime.Now.ToString("dd.MM.yyyy-HH-mm"));
|
if (Program.ShowOnBoarding(string.Empty, onBoardingArt) == DialogResult.Cancel) Application.Exit();
|
||||||
this.buttonRegistrieren.Visible = true;
|
this.buttonRegistrieren.Visible = true;
|
||||||
this.buttonAnmelden.Enabled = false;
|
this.buttonAnmelden.Enabled = false;
|
||||||
this.groupBox1.Height = 146;
|
this.groupBox1.Height = 146;
|
||||||
@ -87,7 +89,6 @@ namespace Deckungsbeitrag
|
|||||||
this.Close();
|
this.Close();
|
||||||
}
|
}
|
||||||
|
|
||||||
public Benutzer Person { get; set; }
|
|
||||||
private void buttonRegistrieren_Click(object sender, EventArgs e)
|
private void buttonRegistrieren_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
if (!String.IsNullOrEmpty(this.textBoxBenutzer.Text) && !String.IsNullOrEmpty(this.textBoxPasswort.Text) && this.textBoxPasswort.Text == this.textBoxPwdWh.Text)
|
if (!String.IsNullOrEmpty(this.textBoxBenutzer.Text) && !String.IsNullOrEmpty(this.textBoxPasswort.Text) && this.textBoxPasswort.Text == this.textBoxPwdWh.Text)
|
||||||
|
|||||||
314
AA-Forms/FormMain.Designer.cs
generated
314
AA-Forms/FormMain.Designer.cs
generated
@ -52,7 +52,6 @@ namespace Deckungsbeitrag
|
|||||||
this.panelProgress = new System.Windows.Forms.Panel();
|
this.panelProgress = new System.Windows.Forms.Panel();
|
||||||
this.buttonKundeArtikelUpdate = new System.Windows.Forms.Button();
|
this.buttonKundeArtikelUpdate = new System.Windows.Forms.Button();
|
||||||
this.progressBarKundeArtikelUpdate = new System.Windows.Forms.ProgressBar();
|
this.progressBarKundeArtikelUpdate = new System.Windows.Forms.ProgressBar();
|
||||||
this.labelProgress = new System.Windows.Forms.Label();
|
|
||||||
this.buttonTourenliste = new System.Windows.Forms.Button();
|
this.buttonTourenliste = new System.Windows.Forms.Button();
|
||||||
this.groupBoxContAnz = new System.Windows.Forms.GroupBox();
|
this.groupBoxContAnz = new System.Windows.Forms.GroupBox();
|
||||||
this.tLPContAnz = new System.Windows.Forms.TableLayoutPanel();
|
this.tLPContAnz = new System.Windows.Forms.TableLayoutPanel();
|
||||||
@ -90,21 +89,6 @@ namespace Deckungsbeitrag
|
|||||||
this.buttonNeueAufgabe = new System.Windows.Forms.Button();
|
this.buttonNeueAufgabe = new System.Windows.Forms.Button();
|
||||||
this.buttonNeuerAuftrag = new System.Windows.Forms.Button();
|
this.buttonNeuerAuftrag = new System.Windows.Forms.Button();
|
||||||
this.buttonNeuerUser = new System.Windows.Forms.Button();
|
this.buttonNeuerUser = new System.Windows.Forms.Button();
|
||||||
this.groupBoxStatistik = new System.Windows.Forms.GroupBox();
|
|
||||||
this.dateTimePicker1 = new System.Windows.Forms.DateTimePicker();
|
|
||||||
this.tableLayoutPanelStatistik = new System.Windows.Forms.TableLayoutPanel();
|
|
||||||
this.labelZahl6 = new System.Windows.Forms.Label();
|
|
||||||
this.labelStatistik6 = new System.Windows.Forms.Label();
|
|
||||||
this.labelZahl5 = new System.Windows.Forms.Label();
|
|
||||||
this.labelStatistik5 = new System.Windows.Forms.Label();
|
|
||||||
this.labelZahl4 = new System.Windows.Forms.Label();
|
|
||||||
this.labelStatistik4 = new System.Windows.Forms.Label();
|
|
||||||
this.labelZahl3 = new System.Windows.Forms.Label();
|
|
||||||
this.labelStatistik3 = new System.Windows.Forms.Label();
|
|
||||||
this.labelZahl2 = new System.Windows.Forms.Label();
|
|
||||||
this.labelStatistik2 = new System.Windows.Forms.Label();
|
|
||||||
this.labelZahl1 = new System.Windows.Forms.Label();
|
|
||||||
this.labelStatistik1 = new System.Windows.Forms.Label();
|
|
||||||
this.groupBoxUpdate = new System.Windows.Forms.GroupBox();
|
this.groupBoxUpdate = new System.Windows.Forms.GroupBox();
|
||||||
this.tableLayoutPanelUpdate = new System.Windows.Forms.TableLayoutPanel();
|
this.tableLayoutPanelUpdate = new System.Windows.Forms.TableLayoutPanel();
|
||||||
this.labelSoftwareDatum = new System.Windows.Forms.Label();
|
this.labelSoftwareDatum = new System.Windows.Forms.Label();
|
||||||
@ -133,8 +117,6 @@ namespace Deckungsbeitrag
|
|||||||
this.groupBoxContAnz.SuspendLayout();
|
this.groupBoxContAnz.SuspendLayout();
|
||||||
this.tLPContAnz.SuspendLayout();
|
this.tLPContAnz.SuspendLayout();
|
||||||
this.groupBoxSaison.SuspendLayout();
|
this.groupBoxSaison.SuspendLayout();
|
||||||
this.groupBoxStatistik.SuspendLayout();
|
|
||||||
this.tableLayoutPanelStatistik.SuspendLayout();
|
|
||||||
this.groupBoxUpdate.SuspendLayout();
|
this.groupBoxUpdate.SuspendLayout();
|
||||||
this.tableLayoutPanelUpdate.SuspendLayout();
|
this.tableLayoutPanelUpdate.SuspendLayout();
|
||||||
this.groupBoxAuftrag.SuspendLayout();
|
this.groupBoxAuftrag.SuspendLayout();
|
||||||
@ -312,6 +294,7 @@ namespace Deckungsbeitrag
|
|||||||
this.toolStripDB.Size = new System.Drawing.Size(180, 40);
|
this.toolStripDB.Size = new System.Drawing.Size(180, 40);
|
||||||
this.toolStripDB.Text = "DECKUNGSBEITRAG";
|
this.toolStripDB.Text = "DECKUNGSBEITRAG";
|
||||||
this.toolStripDB.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
|
this.toolStripDB.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
|
||||||
|
this.toolStripDB.Visible = false;
|
||||||
this.toolStripDB.Click += new System.EventHandler(this.toolStripDB_Click);
|
this.toolStripDB.Click += new System.EventHandler(this.toolStripDB_Click);
|
||||||
this.toolStripDB.MouseEnter += new System.EventHandler(this.toolStrip_MouseEnter);
|
this.toolStripDB.MouseEnter += new System.EventHandler(this.toolStrip_MouseEnter);
|
||||||
this.toolStripDB.MouseLeave += new System.EventHandler(this.toolStrip_MouseLeave);
|
this.toolStripDB.MouseLeave += new System.EventHandler(this.toolStrip_MouseLeave);
|
||||||
@ -332,6 +315,7 @@ namespace Deckungsbeitrag
|
|||||||
this.tSBKosten.Size = new System.Drawing.Size(180, 40);
|
this.tSBKosten.Size = new System.Drawing.Size(180, 40);
|
||||||
this.tSBKosten.Text = "KOSTENLISTE";
|
this.tSBKosten.Text = "KOSTENLISTE";
|
||||||
this.tSBKosten.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
|
this.tSBKosten.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
|
||||||
|
this.tSBKosten.Visible = false;
|
||||||
this.tSBKosten.Click += new System.EventHandler(this.tSBKosten_Click);
|
this.tSBKosten.Click += new System.EventHandler(this.tSBKosten_Click);
|
||||||
this.tSBKosten.MouseEnter += new System.EventHandler(this.toolStrip_MouseEnter);
|
this.tSBKosten.MouseEnter += new System.EventHandler(this.toolStrip_MouseEnter);
|
||||||
this.tSBKosten.MouseLeave += new System.EventHandler(this.toolStrip_MouseLeave);
|
this.tSBKosten.MouseLeave += new System.EventHandler(this.toolStrip_MouseLeave);
|
||||||
@ -365,6 +349,7 @@ namespace Deckungsbeitrag
|
|||||||
this.tSBScannTest.Size = new System.Drawing.Size(180, 40);
|
this.tSBScannTest.Size = new System.Drawing.Size(180, 40);
|
||||||
this.tSBScannTest.Text = "SCANN TEST";
|
this.tSBScannTest.Text = "SCANN TEST";
|
||||||
this.tSBScannTest.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
|
this.tSBScannTest.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
|
||||||
|
this.tSBScannTest.Visible = false;
|
||||||
this.tSBScannTest.Click += new System.EventHandler(this.tSBScannTest_Click);
|
this.tSBScannTest.Click += new System.EventHandler(this.tSBScannTest_Click);
|
||||||
this.tSBScannTest.MouseEnter += new System.EventHandler(this.toolStrip_MouseEnter);
|
this.tSBScannTest.MouseEnter += new System.EventHandler(this.toolStrip_MouseEnter);
|
||||||
this.tSBScannTest.MouseLeave += new System.EventHandler(this.toolStrip_MouseLeave);
|
this.tSBScannTest.MouseLeave += new System.EventHandler(this.toolStrip_MouseLeave);
|
||||||
@ -403,6 +388,7 @@ namespace Deckungsbeitrag
|
|||||||
this.toolStripButtonImport.Size = new System.Drawing.Size(180, 40);
|
this.toolStripButtonImport.Size = new System.Drawing.Size(180, 40);
|
||||||
this.toolStripButtonImport.Text = "IMPORT";
|
this.toolStripButtonImport.Text = "IMPORT";
|
||||||
this.toolStripButtonImport.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
|
this.toolStripButtonImport.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
|
||||||
|
this.toolStripButtonImport.Visible = false;
|
||||||
this.toolStripButtonImport.Click += new System.EventHandler(this.toolStripButtonImport_Click);
|
this.toolStripButtonImport.Click += new System.EventHandler(this.toolStripButtonImport_Click);
|
||||||
this.toolStripButtonImport.MouseEnter += new System.EventHandler(this.toolStrip_MouseEnter);
|
this.toolStripButtonImport.MouseEnter += new System.EventHandler(this.toolStrip_MouseEnter);
|
||||||
this.toolStripButtonImport.MouseLeave += new System.EventHandler(this.toolStrip_MouseLeave);
|
this.toolStripButtonImport.MouseLeave += new System.EventHandler(this.toolStrip_MouseLeave);
|
||||||
@ -501,9 +487,7 @@ namespace Deckungsbeitrag
|
|||||||
this.panelMain.Controls.Add(this.buttonNeueAufgabe);
|
this.panelMain.Controls.Add(this.buttonNeueAufgabe);
|
||||||
this.panelMain.Controls.Add(this.buttonNeuerAuftrag);
|
this.panelMain.Controls.Add(this.buttonNeuerAuftrag);
|
||||||
this.panelMain.Controls.Add(this.buttonNeuerUser);
|
this.panelMain.Controls.Add(this.buttonNeuerUser);
|
||||||
this.panelMain.Controls.Add(this.groupBoxStatistik);
|
|
||||||
this.panelMain.Controls.Add(this.groupBoxUpdate);
|
this.panelMain.Controls.Add(this.groupBoxUpdate);
|
||||||
this.panelMain.Controls.Add(this.groupBoxAuftrag);
|
|
||||||
this.panelMain.Controls.Add(this.groupBoxScannTest);
|
this.panelMain.Controls.Add(this.groupBoxScannTest);
|
||||||
this.panelMain.Location = new System.Drawing.Point(218, 0);
|
this.panelMain.Location = new System.Drawing.Point(218, 0);
|
||||||
this.panelMain.Margin = new System.Windows.Forms.Padding(2);
|
this.panelMain.Margin = new System.Windows.Forms.Padding(2);
|
||||||
@ -515,13 +499,13 @@ namespace Deckungsbeitrag
|
|||||||
//
|
//
|
||||||
// buttonNeuerRegAuft
|
// buttonNeuerRegAuft
|
||||||
//
|
//
|
||||||
this.buttonNeuerRegAuft.BackColor = System.Drawing.Color.DarkSlateGray;
|
this.buttonNeuerRegAuft.BackColor = System.Drawing.Color.CadetBlue;
|
||||||
this.buttonNeuerRegAuft.Enabled = false;
|
this.buttonNeuerRegAuft.Enabled = false;
|
||||||
this.buttonNeuerRegAuft.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(192)))), ((int)(((byte)(0)))));
|
this.buttonNeuerRegAuft.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(192)))), ((int)(((byte)(0)))));
|
||||||
this.buttonNeuerRegAuft.FlatAppearance.BorderSize = 0;
|
this.buttonNeuerRegAuft.FlatAppearance.BorderSize = 0;
|
||||||
this.buttonNeuerRegAuft.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
this.buttonNeuerRegAuft.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||||
this.buttonNeuerRegAuft.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
this.buttonNeuerRegAuft.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||||
this.buttonNeuerRegAuft.ForeColor = System.Drawing.Color.White;
|
this.buttonNeuerRegAuft.ForeColor = System.Drawing.Color.Black;
|
||||||
this.buttonNeuerRegAuft.ImageAlign = System.Drawing.ContentAlignment.MiddleRight;
|
this.buttonNeuerRegAuft.ImageAlign = System.Drawing.ContentAlignment.MiddleRight;
|
||||||
this.buttonNeuerRegAuft.Location = new System.Drawing.Point(790, 14);
|
this.buttonNeuerRegAuft.Location = new System.Drawing.Point(790, 14);
|
||||||
this.buttonNeuerRegAuft.Margin = new System.Windows.Forms.Padding(5);
|
this.buttonNeuerRegAuft.Margin = new System.Windows.Forms.Padding(5);
|
||||||
@ -537,21 +521,20 @@ namespace Deckungsbeitrag
|
|||||||
// panelProgress
|
// panelProgress
|
||||||
//
|
//
|
||||||
this.panelProgress.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
this.panelProgress.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||||
this.panelProgress.BackColor = System.Drawing.Color.LightGray;
|
this.panelProgress.BackColor = System.Drawing.Color.Transparent;
|
||||||
this.panelProgress.Controls.Add(this.buttonKundeArtikelUpdate);
|
this.panelProgress.Controls.Add(this.buttonKundeArtikelUpdate);
|
||||||
this.panelProgress.Controls.Add(this.progressBarKundeArtikelUpdate);
|
this.panelProgress.Controls.Add(this.progressBarKundeArtikelUpdate);
|
||||||
this.panelProgress.Controls.Add(this.labelProgress);
|
|
||||||
this.panelProgress.Enabled = false;
|
this.panelProgress.Enabled = false;
|
||||||
this.panelProgress.Location = new System.Drawing.Point(806, 639);
|
this.panelProgress.Location = new System.Drawing.Point(801, 560);
|
||||||
this.panelProgress.Name = "panelProgress";
|
this.panelProgress.Name = "panelProgress";
|
||||||
this.panelProgress.Size = new System.Drawing.Size(250, 41);
|
this.panelProgress.Size = new System.Drawing.Size(250, 117);
|
||||||
this.panelProgress.TabIndex = 70;
|
this.panelProgress.TabIndex = 70;
|
||||||
this.panelProgress.Visible = false;
|
this.panelProgress.Visible = false;
|
||||||
//
|
//
|
||||||
// buttonKundeArtikelUpdate
|
// buttonKundeArtikelUpdate
|
||||||
//
|
//
|
||||||
this.buttonKundeArtikelUpdate.BackColor = System.Drawing.SystemColors.Control;
|
this.buttonKundeArtikelUpdate.BackColor = System.Drawing.SystemColors.Control;
|
||||||
this.buttonKundeArtikelUpdate.Dock = System.Windows.Forms.DockStyle.Fill;
|
this.buttonKundeArtikelUpdate.Dock = System.Windows.Forms.DockStyle.Bottom;
|
||||||
this.buttonKundeArtikelUpdate.Enabled = false;
|
this.buttonKundeArtikelUpdate.Enabled = false;
|
||||||
this.buttonKundeArtikelUpdate.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(192)))), ((int)(((byte)(0)))));
|
this.buttonKundeArtikelUpdate.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(192)))), ((int)(((byte)(0)))));
|
||||||
this.buttonKundeArtikelUpdate.FlatAppearance.BorderSize = 0;
|
this.buttonKundeArtikelUpdate.FlatAppearance.BorderSize = 0;
|
||||||
@ -559,7 +542,7 @@ namespace Deckungsbeitrag
|
|||||||
this.buttonKundeArtikelUpdate.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
this.buttonKundeArtikelUpdate.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||||
this.buttonKundeArtikelUpdate.ForeColor = System.Drawing.Color.Black;
|
this.buttonKundeArtikelUpdate.ForeColor = System.Drawing.Color.Black;
|
||||||
this.buttonKundeArtikelUpdate.ImageAlign = System.Drawing.ContentAlignment.MiddleRight;
|
this.buttonKundeArtikelUpdate.ImageAlign = System.Drawing.ContentAlignment.MiddleRight;
|
||||||
this.buttonKundeArtikelUpdate.Location = new System.Drawing.Point(0, 0);
|
this.buttonKundeArtikelUpdate.Location = new System.Drawing.Point(0, 35);
|
||||||
this.buttonKundeArtikelUpdate.Margin = new System.Windows.Forms.Padding(5);
|
this.buttonKundeArtikelUpdate.Margin = new System.Windows.Forms.Padding(5);
|
||||||
this.buttonKundeArtikelUpdate.Name = "buttonKundeArtikelUpdate";
|
this.buttonKundeArtikelUpdate.Name = "buttonKundeArtikelUpdate";
|
||||||
this.buttonKundeArtikelUpdate.Size = new System.Drawing.Size(250, 41);
|
this.buttonKundeArtikelUpdate.Size = new System.Drawing.Size(250, 41);
|
||||||
@ -572,25 +555,12 @@ namespace Deckungsbeitrag
|
|||||||
//
|
//
|
||||||
// progressBarKundeArtikelUpdate
|
// progressBarKundeArtikelUpdate
|
||||||
//
|
//
|
||||||
this.progressBarKundeArtikelUpdate.Dock = System.Windows.Forms.DockStyle.Fill;
|
this.progressBarKundeArtikelUpdate.Dock = System.Windows.Forms.DockStyle.Bottom;
|
||||||
this.progressBarKundeArtikelUpdate.Location = new System.Drawing.Point(0, 0);
|
this.progressBarKundeArtikelUpdate.Location = new System.Drawing.Point(0, 76);
|
||||||
this.progressBarKundeArtikelUpdate.Name = "progressBarKundeArtikelUpdate";
|
this.progressBarKundeArtikelUpdate.Name = "progressBarKundeArtikelUpdate";
|
||||||
this.progressBarKundeArtikelUpdate.Size = new System.Drawing.Size(250, 41);
|
this.progressBarKundeArtikelUpdate.Size = new System.Drawing.Size(250, 41);
|
||||||
this.progressBarKundeArtikelUpdate.TabIndex = 68;
|
this.progressBarKundeArtikelUpdate.TabIndex = 68;
|
||||||
//
|
//
|
||||||
// labelProgress
|
|
||||||
//
|
|
||||||
this.labelProgress.BackColor = System.Drawing.Color.Transparent;
|
|
||||||
this.labelProgress.Dock = System.Windows.Forms.DockStyle.Fill;
|
|
||||||
this.labelProgress.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
||||||
this.labelProgress.Location = new System.Drawing.Point(0, 0);
|
|
||||||
this.labelProgress.Name = "labelProgress";
|
|
||||||
this.labelProgress.Size = new System.Drawing.Size(250, 41);
|
|
||||||
this.labelProgress.TabIndex = 69;
|
|
||||||
this.labelProgress.Text = "KundeArtikel Update";
|
|
||||||
this.labelProgress.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
|
||||||
this.labelProgress.Visible = false;
|
|
||||||
//
|
|
||||||
// buttonTourenliste
|
// buttonTourenliste
|
||||||
//
|
//
|
||||||
this.buttonTourenliste.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(128)))));
|
this.buttonTourenliste.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(128)))));
|
||||||
@ -616,11 +586,12 @@ namespace Deckungsbeitrag
|
|||||||
//
|
//
|
||||||
this.groupBoxContAnz.AutoSize = true;
|
this.groupBoxContAnz.AutoSize = true;
|
||||||
this.groupBoxContAnz.Controls.Add(this.tLPContAnz);
|
this.groupBoxContAnz.Controls.Add(this.tLPContAnz);
|
||||||
|
this.groupBoxContAnz.Controls.Add(this.groupBoxAuftrag);
|
||||||
this.groupBoxContAnz.Enabled = false;
|
this.groupBoxContAnz.Enabled = false;
|
||||||
this.groupBoxContAnz.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(1)))), ((int)(((byte)(53)))), ((int)(((byte)(101)))));
|
this.groupBoxContAnz.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(1)))), ((int)(((byte)(53)))), ((int)(((byte)(101)))));
|
||||||
this.groupBoxContAnz.Location = new System.Drawing.Point(296, 251);
|
this.groupBoxContAnz.Location = new System.Drawing.Point(579, 75);
|
||||||
this.groupBoxContAnz.Name = "groupBoxContAnz";
|
this.groupBoxContAnz.Name = "groupBoxContAnz";
|
||||||
this.groupBoxContAnz.Size = new System.Drawing.Size(305, 248);
|
this.groupBoxContAnz.Size = new System.Drawing.Size(741, 260);
|
||||||
this.groupBoxContAnz.TabIndex = 62;
|
this.groupBoxContAnz.TabIndex = 62;
|
||||||
this.groupBoxContAnz.TabStop = false;
|
this.groupBoxContAnz.TabStop = false;
|
||||||
this.groupBoxContAnz.Text = "CONT. ANZAHL / WASCHZEIT";
|
this.groupBoxContAnz.Text = "CONT. ANZAHL / WASCHZEIT";
|
||||||
@ -1032,7 +1003,7 @@ namespace Deckungsbeitrag
|
|||||||
this.groupBoxSaison.Controls.Add(this.comboBoxSaison);
|
this.groupBoxSaison.Controls.Add(this.comboBoxSaison);
|
||||||
this.groupBoxSaison.Enabled = false;
|
this.groupBoxSaison.Enabled = false;
|
||||||
this.groupBoxSaison.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(1)))), ((int)(((byte)(53)))), ((int)(((byte)(101)))));
|
this.groupBoxSaison.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(1)))), ((int)(((byte)(53)))), ((int)(((byte)(101)))));
|
||||||
this.groupBoxSaison.Location = new System.Drawing.Point(8, 251);
|
this.groupBoxSaison.Location = new System.Drawing.Point(281, 116);
|
||||||
this.groupBoxSaison.Name = "groupBoxSaison";
|
this.groupBoxSaison.Name = "groupBoxSaison";
|
||||||
this.groupBoxSaison.Size = new System.Drawing.Size(279, 59);
|
this.groupBoxSaison.Size = new System.Drawing.Size(279, 59);
|
||||||
this.groupBoxSaison.TabIndex = 62;
|
this.groupBoxSaison.TabIndex = 62;
|
||||||
@ -1055,7 +1026,7 @@ namespace Deckungsbeitrag
|
|||||||
//
|
//
|
||||||
// buttonNeuerStand
|
// buttonNeuerStand
|
||||||
//
|
//
|
||||||
this.buttonNeuerStand.BackColor = System.Drawing.Color.CadetBlue;
|
this.buttonNeuerStand.BackColor = System.Drawing.Color.MediumTurquoise;
|
||||||
this.buttonNeuerStand.Enabled = false;
|
this.buttonNeuerStand.Enabled = false;
|
||||||
this.buttonNeuerStand.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(192)))), ((int)(((byte)(0)))));
|
this.buttonNeuerStand.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(192)))), ((int)(((byte)(0)))));
|
||||||
this.buttonNeuerStand.FlatAppearance.BorderSize = 0;
|
this.buttonNeuerStand.FlatAppearance.BorderSize = 0;
|
||||||
@ -1076,7 +1047,7 @@ namespace Deckungsbeitrag
|
|||||||
//
|
//
|
||||||
// buttonNeueInventur
|
// buttonNeueInventur
|
||||||
//
|
//
|
||||||
this.buttonNeueInventur.BackColor = System.Drawing.Color.MediumTurquoise;
|
this.buttonNeueInventur.BackColor = System.Drawing.Color.Turquoise;
|
||||||
this.buttonNeueInventur.Enabled = false;
|
this.buttonNeueInventur.Enabled = false;
|
||||||
this.buttonNeueInventur.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(192)))), ((int)(((byte)(0)))));
|
this.buttonNeueInventur.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(192)))), ((int)(((byte)(0)))));
|
||||||
this.buttonNeueInventur.FlatAppearance.BorderSize = 0;
|
this.buttonNeueInventur.FlatAppearance.BorderSize = 0;
|
||||||
@ -1097,7 +1068,7 @@ namespace Deckungsbeitrag
|
|||||||
//
|
//
|
||||||
// buttonNeueAufgabe
|
// buttonNeueAufgabe
|
||||||
//
|
//
|
||||||
this.buttonNeueAufgabe.BackColor = System.Drawing.Color.Yellow;
|
this.buttonNeueAufgabe.BackColor = System.Drawing.Color.DarkOrange;
|
||||||
this.buttonNeueAufgabe.Enabled = false;
|
this.buttonNeueAufgabe.Enabled = false;
|
||||||
this.buttonNeueAufgabe.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(192)))), ((int)(((byte)(0)))));
|
this.buttonNeueAufgabe.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(192)))), ((int)(((byte)(0)))));
|
||||||
this.buttonNeueAufgabe.FlatAppearance.BorderSize = 0;
|
this.buttonNeueAufgabe.FlatAppearance.BorderSize = 0;
|
||||||
@ -1139,7 +1110,7 @@ namespace Deckungsbeitrag
|
|||||||
//
|
//
|
||||||
// buttonNeuerUser
|
// buttonNeuerUser
|
||||||
//
|
//
|
||||||
this.buttonNeuerUser.BackColor = System.Drawing.Color.Yellow;
|
this.buttonNeuerUser.BackColor = System.Drawing.Color.DarkOrange;
|
||||||
this.buttonNeuerUser.Enabled = false;
|
this.buttonNeuerUser.Enabled = false;
|
||||||
this.buttonNeuerUser.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(192)))), ((int)(((byte)(0)))));
|
this.buttonNeuerUser.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(192)))), ((int)(((byte)(0)))));
|
||||||
this.buttonNeuerUser.FlatAppearance.BorderSize = 0;
|
this.buttonNeuerUser.FlatAppearance.BorderSize = 0;
|
||||||
@ -1158,223 +1129,6 @@ namespace Deckungsbeitrag
|
|||||||
this.buttonNeuerUser.Visible = false;
|
this.buttonNeuerUser.Visible = false;
|
||||||
this.buttonNeuerUser.Click += new System.EventHandler(this.buttonNeuerUser_Click);
|
this.buttonNeuerUser.Click += new System.EventHandler(this.buttonNeuerUser_Click);
|
||||||
//
|
//
|
||||||
// groupBoxStatistik
|
|
||||||
//
|
|
||||||
this.groupBoxStatistik.AutoSize = true;
|
|
||||||
this.groupBoxStatistik.Controls.Add(this.dateTimePicker1);
|
|
||||||
this.groupBoxStatistik.Controls.Add(this.tableLayoutPanelStatistik);
|
|
||||||
this.groupBoxStatistik.Enabled = false;
|
|
||||||
this.groupBoxStatistik.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(1)))), ((int)(((byte)(53)))), ((int)(((byte)(101)))));
|
|
||||||
this.groupBoxStatistik.Location = new System.Drawing.Point(8, 316);
|
|
||||||
this.groupBoxStatistik.Name = "groupBoxStatistik";
|
|
||||||
this.groupBoxStatistik.Size = new System.Drawing.Size(282, 250);
|
|
||||||
this.groupBoxStatistik.TabIndex = 61;
|
|
||||||
this.groupBoxStatistik.TabStop = false;
|
|
||||||
this.groupBoxStatistik.Text = "STATISTIK";
|
|
||||||
this.groupBoxStatistik.Visible = false;
|
|
||||||
this.groupBoxStatistik.GiveFeedback += new System.Windows.Forms.GiveFeedbackEventHandler(this.groupBox_GiveFeedback);
|
|
||||||
this.groupBoxStatistik.Paint += new System.Windows.Forms.PaintEventHandler(this.groupBox_Paint);
|
|
||||||
//
|
|
||||||
// dateTimePicker1
|
|
||||||
//
|
|
||||||
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(4, 19);
|
|
||||||
this.dateTimePicker1.Name = "dateTimePicker1";
|
|
||||||
this.dateTimePicker1.Size = new System.Drawing.Size(270, 26);
|
|
||||||
this.dateTimePicker1.TabIndex = 1;
|
|
||||||
this.dateTimePicker1.CloseUp += new System.EventHandler(this.dateTimePicker1_CloseUp);
|
|
||||||
//
|
|
||||||
// tableLayoutPanelStatistik
|
|
||||||
//
|
|
||||||
this.tableLayoutPanelStatistik.AutoSize = true;
|
|
||||||
this.tableLayoutPanelStatistik.ColumnCount = 2;
|
|
||||||
this.tableLayoutPanelStatistik.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
|
|
||||||
this.tableLayoutPanelStatistik.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
|
|
||||||
this.tableLayoutPanelStatistik.Controls.Add(this.labelZahl6, 1, 5);
|
|
||||||
this.tableLayoutPanelStatistik.Controls.Add(this.labelStatistik6, 0, 5);
|
|
||||||
this.tableLayoutPanelStatistik.Controls.Add(this.labelZahl5, 1, 4);
|
|
||||||
this.tableLayoutPanelStatistik.Controls.Add(this.labelStatistik5, 0, 4);
|
|
||||||
this.tableLayoutPanelStatistik.Controls.Add(this.labelZahl4, 1, 3);
|
|
||||||
this.tableLayoutPanelStatistik.Controls.Add(this.labelStatistik4, 0, 3);
|
|
||||||
this.tableLayoutPanelStatistik.Controls.Add(this.labelZahl3, 1, 2);
|
|
||||||
this.tableLayoutPanelStatistik.Controls.Add(this.labelStatistik3, 0, 2);
|
|
||||||
this.tableLayoutPanelStatistik.Controls.Add(this.labelZahl2, 1, 1);
|
|
||||||
this.tableLayoutPanelStatistik.Controls.Add(this.labelStatistik2, 0, 1);
|
|
||||||
this.tableLayoutPanelStatistik.Controls.Add(this.labelZahl1, 1, 0);
|
|
||||||
this.tableLayoutPanelStatistik.Controls.Add(this.labelStatistik1, 0, 0);
|
|
||||||
this.tableLayoutPanelStatistik.Location = new System.Drawing.Point(3, 51);
|
|
||||||
this.tableLayoutPanelStatistik.Name = "tableLayoutPanelStatistik";
|
|
||||||
this.tableLayoutPanelStatistik.RowCount = 6;
|
|
||||||
this.tableLayoutPanelStatistik.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 30F));
|
|
||||||
this.tableLayoutPanelStatistik.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 30F));
|
|
||||||
this.tableLayoutPanelStatistik.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 30F));
|
|
||||||
this.tableLayoutPanelStatistik.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 30F));
|
|
||||||
this.tableLayoutPanelStatistik.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 30F));
|
|
||||||
this.tableLayoutPanelStatistik.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 30F));
|
|
||||||
this.tableLayoutPanelStatistik.Size = new System.Drawing.Size(273, 180);
|
|
||||||
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);
|
|
||||||
this.tableLayoutPanelStatistik.MouseUp += new System.Windows.Forms.MouseEventHandler(this.groupBox_MouseUp);
|
|
||||||
//
|
|
||||||
// labelZahl6
|
|
||||||
//
|
|
||||||
this.labelZahl6.AutoSize = true;
|
|
||||||
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, 150);
|
|
||||||
this.labelZahl6.Name = "labelZahl6";
|
|
||||||
this.labelZahl6.Size = new System.Drawing.Size(53, 30);
|
|
||||||
this.labelZahl6.TabIndex = 11;
|
|
||||||
this.labelZahl6.Text = "Zahl 6";
|
|
||||||
this.labelZahl6.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
|
||||||
//
|
|
||||||
// labelStatistik6
|
|
||||||
//
|
|
||||||
this.labelStatistik6.AutoSize = true;
|
|
||||||
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, 150);
|
|
||||||
this.labelStatistik6.Name = "labelStatistik6";
|
|
||||||
this.labelStatistik6.Size = new System.Drawing.Size(90, 30);
|
|
||||||
this.labelStatistik6.TabIndex = 10;
|
|
||||||
this.labelStatistik6.Text = "Statistik 6";
|
|
||||||
this.labelStatistik6.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
|
||||||
//
|
|
||||||
// labelZahl5
|
|
||||||
//
|
|
||||||
this.labelZahl5.AutoSize = true;
|
|
||||||
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, 120);
|
|
||||||
this.labelZahl5.Name = "labelZahl5";
|
|
||||||
this.labelZahl5.Size = new System.Drawing.Size(53, 30);
|
|
||||||
this.labelZahl5.TabIndex = 9;
|
|
||||||
this.labelZahl5.Text = "Zahl 5";
|
|
||||||
this.labelZahl5.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
|
||||||
//
|
|
||||||
// labelStatistik5
|
|
||||||
//
|
|
||||||
this.labelStatistik5.AutoSize = true;
|
|
||||||
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, 120);
|
|
||||||
this.labelStatistik5.Name = "labelStatistik5";
|
|
||||||
this.labelStatistik5.Size = new System.Drawing.Size(90, 30);
|
|
||||||
this.labelStatistik5.TabIndex = 8;
|
|
||||||
this.labelStatistik5.Text = "Statistik 5";
|
|
||||||
this.labelStatistik5.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
|
||||||
//
|
|
||||||
// labelZahl4
|
|
||||||
//
|
|
||||||
this.labelZahl4.AutoSize = true;
|
|
||||||
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, 90);
|
|
||||||
this.labelZahl4.Name = "labelZahl4";
|
|
||||||
this.labelZahl4.Size = new System.Drawing.Size(53, 30);
|
|
||||||
this.labelZahl4.TabIndex = 7;
|
|
||||||
this.labelZahl4.Text = "Zahl 4";
|
|
||||||
this.labelZahl4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
|
||||||
//
|
|
||||||
// labelStatistik4
|
|
||||||
//
|
|
||||||
this.labelStatistik4.AutoSize = true;
|
|
||||||
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, 90);
|
|
||||||
this.labelStatistik4.Name = "labelStatistik4";
|
|
||||||
this.labelStatistik4.Size = new System.Drawing.Size(90, 30);
|
|
||||||
this.labelStatistik4.TabIndex = 6;
|
|
||||||
this.labelStatistik4.Text = "Statistik 4";
|
|
||||||
this.labelStatistik4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
|
||||||
//
|
|
||||||
// labelZahl3
|
|
||||||
//
|
|
||||||
this.labelZahl3.AutoSize = true;
|
|
||||||
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, 60);
|
|
||||||
this.labelZahl3.Name = "labelZahl3";
|
|
||||||
this.labelZahl3.Size = new System.Drawing.Size(53, 30);
|
|
||||||
this.labelZahl3.TabIndex = 5;
|
|
||||||
this.labelZahl3.Text = "Zahl 3";
|
|
||||||
this.labelZahl3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
|
||||||
//
|
|
||||||
// labelStatistik3
|
|
||||||
//
|
|
||||||
this.labelStatistik3.AutoSize = true;
|
|
||||||
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, 60);
|
|
||||||
this.labelStatistik3.Name = "labelStatistik3";
|
|
||||||
this.labelStatistik3.Size = new System.Drawing.Size(90, 30);
|
|
||||||
this.labelStatistik3.TabIndex = 4;
|
|
||||||
this.labelStatistik3.Text = "Statistik 3";
|
|
||||||
this.labelStatistik3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
|
||||||
//
|
|
||||||
// labelZahl2
|
|
||||||
//
|
|
||||||
this.labelZahl2.AutoSize = true;
|
|
||||||
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, 30);
|
|
||||||
this.labelZahl2.Name = "labelZahl2";
|
|
||||||
this.labelZahl2.Size = new System.Drawing.Size(53, 30);
|
|
||||||
this.labelZahl2.TabIndex = 3;
|
|
||||||
this.labelZahl2.Text = "Zahl 2";
|
|
||||||
this.labelZahl2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
|
||||||
//
|
|
||||||
// labelStatistik2
|
|
||||||
//
|
|
||||||
this.labelStatistik2.AutoSize = true;
|
|
||||||
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, 30);
|
|
||||||
this.labelStatistik2.Name = "labelStatistik2";
|
|
||||||
this.labelStatistik2.Size = new System.Drawing.Size(90, 30);
|
|
||||||
this.labelStatistik2.TabIndex = 2;
|
|
||||||
this.labelStatistik2.Text = "Statistik 2";
|
|
||||||
this.labelStatistik2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
|
||||||
//
|
|
||||||
// labelZahl1
|
|
||||||
//
|
|
||||||
this.labelZahl1.AutoSize = true;
|
|
||||||
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.Name = "labelZahl1";
|
|
||||||
this.labelZahl1.Size = new System.Drawing.Size(53, 30);
|
|
||||||
this.labelZahl1.TabIndex = 1;
|
|
||||||
this.labelZahl1.Text = "Zahl 1";
|
|
||||||
this.labelZahl1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
|
||||||
//
|
|
||||||
// labelStatistik1
|
|
||||||
//
|
|
||||||
this.labelStatistik1.AutoSize = true;
|
|
||||||
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.Name = "labelStatistik1";
|
|
||||||
this.labelStatistik1.Size = new System.Drawing.Size(90, 30);
|
|
||||||
this.labelStatistik1.TabIndex = 0;
|
|
||||||
this.labelStatistik1.Text = "Statistik 1";
|
|
||||||
this.labelStatistik1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
|
||||||
//
|
|
||||||
// groupBoxUpdate
|
// groupBoxUpdate
|
||||||
//
|
//
|
||||||
this.groupBoxUpdate.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
|
this.groupBoxUpdate.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
|
||||||
@ -1498,9 +1252,9 @@ namespace Deckungsbeitrag
|
|||||||
this.groupBoxAuftrag.Controls.Add(this.buttonAufAbruf);
|
this.groupBoxAuftrag.Controls.Add(this.buttonAufAbruf);
|
||||||
this.groupBoxAuftrag.Controls.Add(this.buttonAusgeliefert);
|
this.groupBoxAuftrag.Controls.Add(this.buttonAusgeliefert);
|
||||||
this.groupBoxAuftrag.Enabled = false;
|
this.groupBoxAuftrag.Enabled = false;
|
||||||
this.groupBoxAuftrag.Location = new System.Drawing.Point(662, 87);
|
this.groupBoxAuftrag.Location = new System.Drawing.Point(252, 10);
|
||||||
this.groupBoxAuftrag.Name = "groupBoxAuftrag";
|
this.groupBoxAuftrag.Name = "groupBoxAuftrag";
|
||||||
this.groupBoxAuftrag.Size = new System.Drawing.Size(788, 479);
|
this.groupBoxAuftrag.Size = new System.Drawing.Size(1224, 491);
|
||||||
this.groupBoxAuftrag.TabIndex = 51;
|
this.groupBoxAuftrag.TabIndex = 51;
|
||||||
this.groupBoxAuftrag.TabStop = false;
|
this.groupBoxAuftrag.TabStop = false;
|
||||||
this.groupBoxAuftrag.Visible = false;
|
this.groupBoxAuftrag.Visible = false;
|
||||||
@ -1521,7 +1275,7 @@ namespace Deckungsbeitrag
|
|||||||
this.objectListViewAuftrag.HideSelection = false;
|
this.objectListViewAuftrag.HideSelection = false;
|
||||||
this.objectListViewAuftrag.Location = new System.Drawing.Point(165, 14);
|
this.objectListViewAuftrag.Location = new System.Drawing.Point(165, 14);
|
||||||
this.objectListViewAuftrag.Name = "objectListViewAuftrag";
|
this.objectListViewAuftrag.Name = "objectListViewAuftrag";
|
||||||
this.objectListViewAuftrag.Size = new System.Drawing.Size(617, 459);
|
this.objectListViewAuftrag.Size = new System.Drawing.Size(1053, 471);
|
||||||
this.objectListViewAuftrag.TabIndex = 58;
|
this.objectListViewAuftrag.TabIndex = 58;
|
||||||
this.objectListViewAuftrag.UseAlternatingBackColors = true;
|
this.objectListViewAuftrag.UseAlternatingBackColors = true;
|
||||||
this.objectListViewAuftrag.UseCompatibleStateImageBehavior = false;
|
this.objectListViewAuftrag.UseCompatibleStateImageBehavior = false;
|
||||||
@ -1723,10 +1477,6 @@ namespace Deckungsbeitrag
|
|||||||
this.tLPContAnz.ResumeLayout(false);
|
this.tLPContAnz.ResumeLayout(false);
|
||||||
this.tLPContAnz.PerformLayout();
|
this.tLPContAnz.PerformLayout();
|
||||||
this.groupBoxSaison.ResumeLayout(false);
|
this.groupBoxSaison.ResumeLayout(false);
|
||||||
this.groupBoxStatistik.ResumeLayout(false);
|
|
||||||
this.groupBoxStatistik.PerformLayout();
|
|
||||||
this.tableLayoutPanelStatistik.ResumeLayout(false);
|
|
||||||
this.tableLayoutPanelStatistik.PerformLayout();
|
|
||||||
this.groupBoxUpdate.ResumeLayout(false);
|
this.groupBoxUpdate.ResumeLayout(false);
|
||||||
this.tableLayoutPanelUpdate.ResumeLayout(false);
|
this.tableLayoutPanelUpdate.ResumeLayout(false);
|
||||||
this.tableLayoutPanelUpdate.PerformLayout();
|
this.tableLayoutPanelUpdate.PerformLayout();
|
||||||
@ -1775,21 +1525,6 @@ namespace Deckungsbeitrag
|
|||||||
private System.Windows.Forms.TableLayoutPanel tableLayoutPanelUpdate;
|
private System.Windows.Forms.TableLayoutPanel tableLayoutPanelUpdate;
|
||||||
private BrightIdeasSoftware.ObjectListView objectListViewAuftrag;
|
private BrightIdeasSoftware.ObjectListView objectListViewAuftrag;
|
||||||
private System.Windows.Forms.ToolStripButton tSBHilfe;
|
private System.Windows.Forms.ToolStripButton tSBHilfe;
|
||||||
private System.Windows.Forms.GroupBox groupBoxStatistik;
|
|
||||||
private System.Windows.Forms.TableLayoutPanel tableLayoutPanelStatistik;
|
|
||||||
private System.Windows.Forms.Label labelStatistik1;
|
|
||||||
private System.Windows.Forms.Label labelZahl6;
|
|
||||||
private System.Windows.Forms.Label labelStatistik6;
|
|
||||||
private System.Windows.Forms.Label labelZahl5;
|
|
||||||
private System.Windows.Forms.Label labelStatistik5;
|
|
||||||
private System.Windows.Forms.Label labelZahl4;
|
|
||||||
private System.Windows.Forms.Label labelStatistik4;
|
|
||||||
private System.Windows.Forms.Label labelZahl3;
|
|
||||||
private System.Windows.Forms.Label labelStatistik3;
|
|
||||||
private System.Windows.Forms.Label labelZahl2;
|
|
||||||
private System.Windows.Forms.Label labelStatistik2;
|
|
||||||
private System.Windows.Forms.Label labelZahl1;
|
|
||||||
private System.Windows.Forms.DateTimePicker dateTimePicker1;
|
|
||||||
private System.Windows.Forms.Button buttonNeuerUser;
|
private System.Windows.Forms.Button buttonNeuerUser;
|
||||||
private System.Windows.Forms.Button buttonNeueAufgabe;
|
private System.Windows.Forms.Button buttonNeueAufgabe;
|
||||||
private System.Windows.Forms.Button buttonNeueInventur;
|
private System.Windows.Forms.Button buttonNeueInventur;
|
||||||
@ -1836,7 +1571,6 @@ namespace Deckungsbeitrag
|
|||||||
private System.Windows.Forms.Label labelKundenDatum;
|
private System.Windows.Forms.Label labelKundenDatum;
|
||||||
private System.Windows.Forms.Button buttonKundeArtikelUpdate;
|
private System.Windows.Forms.Button buttonKundeArtikelUpdate;
|
||||||
private System.Windows.Forms.ProgressBar progressBarKundeArtikelUpdate;
|
private System.Windows.Forms.ProgressBar progressBarKundeArtikelUpdate;
|
||||||
private System.Windows.Forms.Label labelProgress;
|
|
||||||
private System.Windows.Forms.Panel panelProgress;
|
private System.Windows.Forms.Panel panelProgress;
|
||||||
private System.Windows.Forms.Button buttonNeuerRegAuft;
|
private System.Windows.Forms.Button buttonNeuerRegAuft;
|
||||||
}
|
}
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
260
AA-Forms/FormNeuerAuftrag.Designer.cs
generated
260
AA-Forms/FormNeuerAuftrag.Designer.cs
generated
@ -62,12 +62,12 @@ namespace Deckungsbeitrag
|
|||||||
this.comboBoxFahrer = new System.Windows.Forms.ComboBox();
|
this.comboBoxFahrer = new System.Windows.Forms.ComboBox();
|
||||||
this.buttonEinstellung = new System.Windows.Forms.Button();
|
this.buttonEinstellung = new System.Windows.Forms.Button();
|
||||||
this.panelRegAuftrag = new System.Windows.Forms.Panel();
|
this.panelRegAuftrag = new System.Windows.Forms.Panel();
|
||||||
this.fLPArtikel = new System.Windows.Forms.FlowLayoutPanel();
|
|
||||||
this.comboBoxRhythmus = new System.Windows.Forms.ComboBox();
|
|
||||||
this.label7 = new System.Windows.Forms.Label();
|
|
||||||
this.comboBoxArtikel = new System.Windows.Forms.ComboBox();
|
|
||||||
this.label8 = new System.Windows.Forms.Label();
|
|
||||||
this.pictureBoxAddArtikel = new System.Windows.Forms.PictureBox();
|
this.pictureBoxAddArtikel = new System.Windows.Forms.PictureBox();
|
||||||
|
this.label8 = new System.Windows.Forms.Label();
|
||||||
|
this.comboBoxArtikel = new System.Windows.Forms.ComboBox();
|
||||||
|
this.label7 = new System.Windows.Forms.Label();
|
||||||
|
this.comboBoxRhythmus = new System.Windows.Forms.ComboBox();
|
||||||
|
this.fLPArtikel = new System.Windows.Forms.FlowLayoutPanel();
|
||||||
this.pictureBoxMinus = new System.Windows.Forms.PictureBox();
|
this.pictureBoxMinus = new System.Windows.Forms.PictureBox();
|
||||||
this.pictureBoxPlus = new System.Windows.Forms.PictureBox();
|
this.pictureBoxPlus = new System.Windows.Forms.PictureBox();
|
||||||
((System.ComponentModel.ISupportInitialize)(this.dGArtikel)).BeginInit();
|
((System.ComponentModel.ISupportInitialize)(this.dGArtikel)).BeginInit();
|
||||||
@ -83,10 +83,9 @@ namespace Deckungsbeitrag
|
|||||||
this.dTPLiefertag.DropDownAlign = System.Windows.Forms.LeftRightAlignment.Right;
|
this.dTPLiefertag.DropDownAlign = System.Windows.Forms.LeftRightAlignment.Right;
|
||||||
this.dTPLiefertag.Font = new System.Drawing.Font("Microsoft Sans Serif", 16.2F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
this.dTPLiefertag.Font = new System.Drawing.Font("Microsoft Sans Serif", 16.2F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||||
this.dTPLiefertag.Format = System.Windows.Forms.DateTimePickerFormat.Short;
|
this.dTPLiefertag.Format = System.Windows.Forms.DateTimePickerFormat.Short;
|
||||||
this.dTPLiefertag.Location = new System.Drawing.Point(146, 206);
|
this.dTPLiefertag.Location = new System.Drawing.Point(219, 317);
|
||||||
this.dTPLiefertag.Margin = new System.Windows.Forms.Padding(2);
|
|
||||||
this.dTPLiefertag.Name = "dTPLiefertag";
|
this.dTPLiefertag.Name = "dTPLiefertag";
|
||||||
this.dTPLiefertag.Size = new System.Drawing.Size(141, 32);
|
this.dTPLiefertag.Size = new System.Drawing.Size(210, 32);
|
||||||
this.dTPLiefertag.TabIndex = 2;
|
this.dTPLiefertag.TabIndex = 2;
|
||||||
this.dTPLiefertag.ValueChanged += new System.EventHandler(this.dTPLiefertag_ValueChanged);
|
this.dTPLiefertag.ValueChanged += new System.EventHandler(this.dTPLiefertag_ValueChanged);
|
||||||
this.dTPLiefertag.Leave += new System.EventHandler(this.dTPLiefertag_Leave);
|
this.dTPLiefertag.Leave += new System.EventHandler(this.dTPLiefertag_Leave);
|
||||||
@ -100,10 +99,9 @@ namespace Deckungsbeitrag
|
|||||||
this.buttonSpeichern.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
this.buttonSpeichern.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||||
this.buttonSpeichern.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
this.buttonSpeichern.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||||
this.buttonSpeichern.ForeColor = System.Drawing.Color.White;
|
this.buttonSpeichern.ForeColor = System.Drawing.Color.White;
|
||||||
this.buttonSpeichern.Location = new System.Drawing.Point(496, 376);
|
this.buttonSpeichern.Location = new System.Drawing.Point(83, 578);
|
||||||
this.buttonSpeichern.Margin = new System.Windows.Forms.Padding(2);
|
|
||||||
this.buttonSpeichern.Name = "buttonSpeichern";
|
this.buttonSpeichern.Name = "buttonSpeichern";
|
||||||
this.buttonSpeichern.Size = new System.Drawing.Size(115, 41);
|
this.buttonSpeichern.Size = new System.Drawing.Size(172, 63);
|
||||||
this.buttonSpeichern.TabIndex = 11;
|
this.buttonSpeichern.TabIndex = 11;
|
||||||
this.buttonSpeichern.Text = "Speichern";
|
this.buttonSpeichern.Text = "Speichern";
|
||||||
this.buttonSpeichern.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText;
|
this.buttonSpeichern.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText;
|
||||||
@ -120,10 +118,9 @@ namespace Deckungsbeitrag
|
|||||||
this.buttonAbbrechen.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
this.buttonAbbrechen.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||||
this.buttonAbbrechen.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
this.buttonAbbrechen.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||||
this.buttonAbbrechen.ForeColor = System.Drawing.Color.White;
|
this.buttonAbbrechen.ForeColor = System.Drawing.Color.White;
|
||||||
this.buttonAbbrechen.Location = new System.Drawing.Point(615, 376);
|
this.buttonAbbrechen.Location = new System.Drawing.Point(262, 578);
|
||||||
this.buttonAbbrechen.Margin = new System.Windows.Forms.Padding(2);
|
|
||||||
this.buttonAbbrechen.Name = "buttonAbbrechen";
|
this.buttonAbbrechen.Name = "buttonAbbrechen";
|
||||||
this.buttonAbbrechen.Size = new System.Drawing.Size(115, 41);
|
this.buttonAbbrechen.Size = new System.Drawing.Size(172, 63);
|
||||||
this.buttonAbbrechen.TabIndex = 12;
|
this.buttonAbbrechen.TabIndex = 12;
|
||||||
this.buttonAbbrechen.Text = "Abbrechen";
|
this.buttonAbbrechen.Text = "Abbrechen";
|
||||||
this.buttonAbbrechen.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText;
|
this.buttonAbbrechen.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText;
|
||||||
@ -133,10 +130,9 @@ namespace Deckungsbeitrag
|
|||||||
// textBoxKndNr
|
// textBoxKndNr
|
||||||
//
|
//
|
||||||
this.textBoxKndNr.Font = new System.Drawing.Font("Microsoft Sans Serif", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
this.textBoxKndNr.Font = new System.Drawing.Font("Microsoft Sans Serif", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||||
this.textBoxKndNr.Location = new System.Drawing.Point(9, 43);
|
this.textBoxKndNr.Location = new System.Drawing.Point(14, 66);
|
||||||
this.textBoxKndNr.Margin = new System.Windows.Forms.Padding(2);
|
|
||||||
this.textBoxKndNr.Name = "textBoxKndNr";
|
this.textBoxKndNr.Name = "textBoxKndNr";
|
||||||
this.textBoxKndNr.Size = new System.Drawing.Size(105, 31);
|
this.textBoxKndNr.Size = new System.Drawing.Size(156, 31);
|
||||||
this.textBoxKndNr.TabIndex = 0;
|
this.textBoxKndNr.TabIndex = 0;
|
||||||
this.textBoxKndNr.Click += new System.EventHandler(this.textBoxKndNr_Click);
|
this.textBoxKndNr.Click += new System.EventHandler(this.textBoxKndNr_Click);
|
||||||
this.textBoxKndNr.PreviewKeyDown += new System.Windows.Forms.PreviewKeyDownEventHandler(this.textBoxKndNr_PreviewKeyDown);
|
this.textBoxKndNr.PreviewKeyDown += new System.Windows.Forms.PreviewKeyDownEventHandler(this.textBoxKndNr_PreviewKeyDown);
|
||||||
@ -145,8 +141,7 @@ namespace Deckungsbeitrag
|
|||||||
//
|
//
|
||||||
this.label2.AutoSize = true;
|
this.label2.AutoSize = true;
|
||||||
this.label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
this.label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||||
this.label2.Location = new System.Drawing.Point(5, 17);
|
this.label2.Location = new System.Drawing.Point(8, 26);
|
||||||
this.label2.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
|
|
||||||
this.label2.Name = "label2";
|
this.label2.Name = "label2";
|
||||||
this.label2.Size = new System.Drawing.Size(75, 20);
|
this.label2.Size = new System.Drawing.Size(75, 20);
|
||||||
this.label2.TabIndex = 0;
|
this.label2.TabIndex = 0;
|
||||||
@ -155,10 +150,9 @@ namespace Deckungsbeitrag
|
|||||||
// textBoxKundeName
|
// textBoxKundeName
|
||||||
//
|
//
|
||||||
this.textBoxKundeName.Font = new System.Drawing.Font("Microsoft Sans Serif", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
this.textBoxKundeName.Font = new System.Drawing.Font("Microsoft Sans Serif", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||||
this.textBoxKundeName.Location = new System.Drawing.Point(9, 104);
|
this.textBoxKundeName.Location = new System.Drawing.Point(14, 160);
|
||||||
this.textBoxKundeName.Margin = new System.Windows.Forms.Padding(2);
|
|
||||||
this.textBoxKundeName.Name = "textBoxKundeName";
|
this.textBoxKundeName.Name = "textBoxKundeName";
|
||||||
this.textBoxKundeName.Size = new System.Drawing.Size(278, 31);
|
this.textBoxKundeName.Size = new System.Drawing.Size(415, 31);
|
||||||
this.textBoxKundeName.TabIndex = 8;
|
this.textBoxKundeName.TabIndex = 8;
|
||||||
this.textBoxKundeName.Leave += new System.EventHandler(this.textBoxKundeName_Leave);
|
this.textBoxKundeName.Leave += new System.EventHandler(this.textBoxKundeName_Leave);
|
||||||
//
|
//
|
||||||
@ -166,8 +160,7 @@ namespace Deckungsbeitrag
|
|||||||
//
|
//
|
||||||
this.label3.AutoSize = true;
|
this.label3.AutoSize = true;
|
||||||
this.label3.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
this.label3.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||||
this.label3.Location = new System.Drawing.Point(5, 79);
|
this.label3.Location = new System.Drawing.Point(8, 122);
|
||||||
this.label3.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
|
|
||||||
this.label3.Name = "label3";
|
this.label3.Name = "label3";
|
||||||
this.label3.Size = new System.Drawing.Size(59, 20);
|
this.label3.Size = new System.Drawing.Size(59, 20);
|
||||||
this.label3.TabIndex = 19;
|
this.label3.TabIndex = 19;
|
||||||
@ -177,8 +170,7 @@ namespace Deckungsbeitrag
|
|||||||
//
|
//
|
||||||
this.label4.AutoSize = true;
|
this.label4.AutoSize = true;
|
||||||
this.label4.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
this.label4.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||||
this.label4.Location = new System.Drawing.Point(5, 216);
|
this.label4.Location = new System.Drawing.Point(8, 332);
|
||||||
this.label4.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
|
|
||||||
this.label4.Name = "label4";
|
this.label4.Name = "label4";
|
||||||
this.label4.Size = new System.Drawing.Size(98, 20);
|
this.label4.Size = new System.Drawing.Size(98, 20);
|
||||||
this.label4.TabIndex = 22;
|
this.label4.TabIndex = 22;
|
||||||
@ -188,8 +180,7 @@ namespace Deckungsbeitrag
|
|||||||
//
|
//
|
||||||
this.label5.AutoSize = true;
|
this.label5.AutoSize = true;
|
||||||
this.label5.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
this.label5.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||||
this.label5.Location = new System.Drawing.Point(5, 276);
|
this.label5.Location = new System.Drawing.Point(8, 425);
|
||||||
this.label5.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
|
|
||||||
this.label5.Name = "label5";
|
this.label5.Name = "label5";
|
||||||
this.label5.Size = new System.Drawing.Size(158, 20);
|
this.label5.Size = new System.Drawing.Size(158, 20);
|
||||||
this.label5.TabIndex = 24;
|
this.label5.TabIndex = 24;
|
||||||
@ -204,10 +195,9 @@ namespace Deckungsbeitrag
|
|||||||
this.rBMO.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
this.rBMO.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||||
this.rBMO.Font = new System.Drawing.Font("Microsoft Sans Serif", 10.8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
this.rBMO.Font = new System.Drawing.Font("Microsoft Sans Serif", 10.8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||||
this.rBMO.ForeColor = System.Drawing.Color.Black;
|
this.rBMO.ForeColor = System.Drawing.Color.Black;
|
||||||
this.rBMO.Location = new System.Drawing.Point(10, 146);
|
this.rBMO.Location = new System.Drawing.Point(15, 225);
|
||||||
this.rBMO.Margin = new System.Windows.Forms.Padding(2);
|
|
||||||
this.rBMO.Name = "rBMO";
|
this.rBMO.Name = "rBMO";
|
||||||
this.rBMO.Size = new System.Drawing.Size(45, 45);
|
this.rBMO.Size = new System.Drawing.Size(68, 69);
|
||||||
this.rBMO.TabIndex = 3;
|
this.rBMO.TabIndex = 3;
|
||||||
this.rBMO.TabStop = true;
|
this.rBMO.TabStop = true;
|
||||||
this.rBMO.Tag = "";
|
this.rBMO.Tag = "";
|
||||||
@ -226,10 +216,9 @@ namespace Deckungsbeitrag
|
|||||||
this.rBFR.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
this.rBFR.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||||
this.rBFR.Font = new System.Drawing.Font("Microsoft Sans Serif", 10.8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
this.rBFR.Font = new System.Drawing.Font("Microsoft Sans Serif", 10.8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||||
this.rBFR.ForeColor = System.Drawing.Color.Black;
|
this.rBFR.ForeColor = System.Drawing.Color.Black;
|
||||||
this.rBFR.Location = new System.Drawing.Point(242, 146);
|
this.rBFR.Location = new System.Drawing.Point(363, 225);
|
||||||
this.rBFR.Margin = new System.Windows.Forms.Padding(2);
|
|
||||||
this.rBFR.Name = "rBFR";
|
this.rBFR.Name = "rBFR";
|
||||||
this.rBFR.Size = new System.Drawing.Size(45, 45);
|
this.rBFR.Size = new System.Drawing.Size(68, 69);
|
||||||
this.rBFR.TabIndex = 7;
|
this.rBFR.TabIndex = 7;
|
||||||
this.rBFR.TabStop = true;
|
this.rBFR.TabStop = true;
|
||||||
this.rBFR.Text = "FR";
|
this.rBFR.Text = "FR";
|
||||||
@ -247,10 +236,9 @@ namespace Deckungsbeitrag
|
|||||||
this.rBDO.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
this.rBDO.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||||
this.rBDO.Font = new System.Drawing.Font("Microsoft Sans Serif", 10.8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
this.rBDO.Font = new System.Drawing.Font("Microsoft Sans Serif", 10.8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||||
this.rBDO.ForeColor = System.Drawing.Color.Black;
|
this.rBDO.ForeColor = System.Drawing.Color.Black;
|
||||||
this.rBDO.Location = new System.Drawing.Point(185, 146);
|
this.rBDO.Location = new System.Drawing.Point(278, 225);
|
||||||
this.rBDO.Margin = new System.Windows.Forms.Padding(2);
|
|
||||||
this.rBDO.Name = "rBDO";
|
this.rBDO.Name = "rBDO";
|
||||||
this.rBDO.Size = new System.Drawing.Size(45, 45);
|
this.rBDO.Size = new System.Drawing.Size(68, 69);
|
||||||
this.rBDO.TabIndex = 6;
|
this.rBDO.TabIndex = 6;
|
||||||
this.rBDO.TabStop = true;
|
this.rBDO.TabStop = true;
|
||||||
this.rBDO.Text = "DO";
|
this.rBDO.Text = "DO";
|
||||||
@ -268,10 +256,9 @@ namespace Deckungsbeitrag
|
|||||||
this.rBMI.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
this.rBMI.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||||
this.rBMI.Font = new System.Drawing.Font("Microsoft Sans Serif", 10.8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
this.rBMI.Font = new System.Drawing.Font("Microsoft Sans Serif", 10.8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||||
this.rBMI.ForeColor = System.Drawing.Color.Black;
|
this.rBMI.ForeColor = System.Drawing.Color.Black;
|
||||||
this.rBMI.Location = new System.Drawing.Point(128, 146);
|
this.rBMI.Location = new System.Drawing.Point(192, 225);
|
||||||
this.rBMI.Margin = new System.Windows.Forms.Padding(2);
|
|
||||||
this.rBMI.Name = "rBMI";
|
this.rBMI.Name = "rBMI";
|
||||||
this.rBMI.Size = new System.Drawing.Size(45, 45);
|
this.rBMI.Size = new System.Drawing.Size(68, 69);
|
||||||
this.rBMI.TabIndex = 5;
|
this.rBMI.TabIndex = 5;
|
||||||
this.rBMI.TabStop = true;
|
this.rBMI.TabStop = true;
|
||||||
this.rBMI.Text = "MI";
|
this.rBMI.Text = "MI";
|
||||||
@ -289,10 +276,9 @@ namespace Deckungsbeitrag
|
|||||||
this.rBDI.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
this.rBDI.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||||
this.rBDI.Font = new System.Drawing.Font("Microsoft Sans Serif", 10.8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
this.rBDI.Font = new System.Drawing.Font("Microsoft Sans Serif", 10.8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||||
this.rBDI.ForeColor = System.Drawing.Color.Black;
|
this.rBDI.ForeColor = System.Drawing.Color.Black;
|
||||||
this.rBDI.Location = new System.Drawing.Point(69, 146);
|
this.rBDI.Location = new System.Drawing.Point(104, 225);
|
||||||
this.rBDI.Margin = new System.Windows.Forms.Padding(2);
|
|
||||||
this.rBDI.Name = "rBDI";
|
this.rBDI.Name = "rBDI";
|
||||||
this.rBDI.Size = new System.Drawing.Size(45, 45);
|
this.rBDI.Size = new System.Drawing.Size(68, 69);
|
||||||
this.rBDI.TabIndex = 4;
|
this.rBDI.TabIndex = 4;
|
||||||
this.rBDI.TabStop = true;
|
this.rBDI.TabStop = true;
|
||||||
this.rBDI.Text = "DI";
|
this.rBDI.Text = "DI";
|
||||||
@ -305,8 +291,7 @@ namespace Deckungsbeitrag
|
|||||||
//
|
//
|
||||||
this.label6.AutoSize = true;
|
this.label6.AutoSize = true;
|
||||||
this.label6.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
this.label6.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||||
this.label6.Location = new System.Drawing.Point(114, 17);
|
this.label6.Location = new System.Drawing.Point(171, 26);
|
||||||
this.label6.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
|
|
||||||
this.label6.Name = "label6";
|
this.label6.Name = "label6";
|
||||||
this.label6.Size = new System.Drawing.Size(95, 20);
|
this.label6.Size = new System.Drawing.Size(95, 20);
|
||||||
this.label6.TabIndex = 1;
|
this.label6.TabIndex = 1;
|
||||||
@ -319,20 +304,18 @@ namespace Deckungsbeitrag
|
|||||||
this.comboBoxTyp.FlatStyle = System.Windows.Forms.FlatStyle.System;
|
this.comboBoxTyp.FlatStyle = System.Windows.Forms.FlatStyle.System;
|
||||||
this.comboBoxTyp.Font = new System.Drawing.Font("Microsoft Sans Serif", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
this.comboBoxTyp.Font = new System.Drawing.Font("Microsoft Sans Serif", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||||
this.comboBoxTyp.FormattingEnabled = true;
|
this.comboBoxTyp.FormattingEnabled = true;
|
||||||
this.comboBoxTyp.Location = new System.Drawing.Point(118, 42);
|
this.comboBoxTyp.Location = new System.Drawing.Point(177, 65);
|
||||||
this.comboBoxTyp.Margin = new System.Windows.Forms.Padding(2);
|
|
||||||
this.comboBoxTyp.Name = "comboBoxTyp";
|
this.comboBoxTyp.Name = "comboBoxTyp";
|
||||||
this.comboBoxTyp.Size = new System.Drawing.Size(169, 33);
|
this.comboBoxTyp.Size = new System.Drawing.Size(252, 33);
|
||||||
this.comboBoxTyp.TabIndex = 1;
|
this.comboBoxTyp.TabIndex = 1;
|
||||||
this.comboBoxTyp.SelectedValueChanged += new System.EventHandler(this.comboBoxTyp_SelectedValueChanged);
|
this.comboBoxTyp.SelectedValueChanged += new System.EventHandler(this.comboBoxTyp_SelectedValueChanged);
|
||||||
//
|
//
|
||||||
// textBoxCont
|
// textBoxCont
|
||||||
//
|
//
|
||||||
this.textBoxCont.Font = new System.Drawing.Font("Microsoft Sans Serif", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
this.textBoxCont.Font = new System.Drawing.Font("Microsoft Sans Serif", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||||
this.textBoxCont.Location = new System.Drawing.Point(210, 256);
|
this.textBoxCont.Location = new System.Drawing.Point(315, 394);
|
||||||
this.textBoxCont.Margin = new System.Windows.Forms.Padding(2);
|
|
||||||
this.textBoxCont.Name = "textBoxCont";
|
this.textBoxCont.Name = "textBoxCont";
|
||||||
this.textBoxCont.Size = new System.Drawing.Size(39, 40);
|
this.textBoxCont.Size = new System.Drawing.Size(56, 40);
|
||||||
this.textBoxCont.TabIndex = 31;
|
this.textBoxCont.TabIndex = 31;
|
||||||
this.textBoxCont.Text = "0";
|
this.textBoxCont.Text = "0";
|
||||||
this.textBoxCont.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
|
this.textBoxCont.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
|
||||||
@ -354,10 +337,11 @@ namespace Deckungsbeitrag
|
|||||||
this.StandBearbeitet,
|
this.StandBearbeitet,
|
||||||
this.FehlmengeBearbeitet,
|
this.FehlmengeBearbeitet,
|
||||||
this.KorrekturBearbeitet});
|
this.KorrekturBearbeitet});
|
||||||
this.dGArtikel.Location = new System.Drawing.Point(307, 12);
|
this.dGArtikel.Location = new System.Drawing.Point(460, 18);
|
||||||
this.dGArtikel.MinimumSize = new System.Drawing.Size(0, 284);
|
this.dGArtikel.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
|
||||||
|
this.dGArtikel.MinimumSize = new System.Drawing.Size(0, 437);
|
||||||
this.dGArtikel.Name = "dGArtikel";
|
this.dGArtikel.Name = "dGArtikel";
|
||||||
this.dGArtikel.Size = new System.Drawing.Size(427, 340);
|
this.dGArtikel.Size = new System.Drawing.Size(640, 523);
|
||||||
this.dGArtikel.TabIndex = 32;
|
this.dGArtikel.TabIndex = 32;
|
||||||
this.dGArtikel.CellEnter += new System.Windows.Forms.DataGridViewCellEventHandler(this.DataGridView_CellEnter);
|
this.dGArtikel.CellEnter += new System.Windows.Forms.DataGridViewCellEventHandler(this.DataGridView_CellEnter);
|
||||||
this.dGArtikel.CellValidating += new System.Windows.Forms.DataGridViewCellValidatingEventHandler(this.dGArtikel_CellValidating);
|
this.dGArtikel.CellValidating += new System.Windows.Forms.DataGridViewCellValidatingEventHandler(this.dGArtikel_CellValidating);
|
||||||
@ -383,58 +367,57 @@ namespace Deckungsbeitrag
|
|||||||
this.ArtikelNR.HeaderText = "Art. Nr.";
|
this.ArtikelNR.HeaderText = "Art. Nr.";
|
||||||
this.ArtikelNR.Name = "ArtikelNR";
|
this.ArtikelNR.Name = "ArtikelNR";
|
||||||
this.ArtikelNR.ReadOnly = true;
|
this.ArtikelNR.ReadOnly = true;
|
||||||
this.ArtikelNR.Width = 48;
|
this.ArtikelNR.Width = 59;
|
||||||
//
|
//
|
||||||
// ArtikelName
|
// ArtikelName
|
||||||
//
|
//
|
||||||
this.ArtikelName.HeaderText = "Art. Name";
|
this.ArtikelName.HeaderText = "Art. Name";
|
||||||
this.ArtikelName.Name = "ArtikelName";
|
this.ArtikelName.Name = "ArtikelName";
|
||||||
this.ArtikelName.ReadOnly = true;
|
this.ArtikelName.ReadOnly = true;
|
||||||
this.ArtikelName.Width = 73;
|
this.ArtikelName.Width = 97;
|
||||||
//
|
//
|
||||||
// Stand
|
// Stand
|
||||||
//
|
//
|
||||||
this.Stand.HeaderText = "Stand";
|
this.Stand.HeaderText = "Stand";
|
||||||
this.Stand.Name = "Stand";
|
this.Stand.Name = "Stand";
|
||||||
this.Stand.ReadOnly = true;
|
this.Stand.ReadOnly = true;
|
||||||
this.Stand.Width = 60;
|
this.Stand.Width = 77;
|
||||||
//
|
//
|
||||||
// Fehlmenge
|
// Fehlmenge
|
||||||
//
|
//
|
||||||
this.Fehlmenge.HeaderText = "Fehlmenge";
|
this.Fehlmenge.HeaderText = "Fehlmenge";
|
||||||
this.Fehlmenge.Name = "Fehlmenge";
|
this.Fehlmenge.Name = "Fehlmenge";
|
||||||
this.Fehlmenge.Width = 84;
|
this.Fehlmenge.Width = 114;
|
||||||
//
|
//
|
||||||
// Korrektur
|
// Korrektur
|
||||||
//
|
//
|
||||||
this.Korrektur.HeaderText = "Korrektur";
|
this.Korrektur.HeaderText = "Korrektur";
|
||||||
this.Korrektur.Name = "Korrektur";
|
this.Korrektur.Name = "Korrektur";
|
||||||
this.Korrektur.Width = 75;
|
this.Korrektur.Width = 99;
|
||||||
//
|
//
|
||||||
// StandBearbeitet
|
// StandBearbeitet
|
||||||
//
|
//
|
||||||
this.StandBearbeitet.HeaderText = "Stand Bearbeitet";
|
this.StandBearbeitet.HeaderText = "Stand Bearbeitet";
|
||||||
this.StandBearbeitet.Name = "StandBearbeitet";
|
this.StandBearbeitet.Name = "StandBearbeitet";
|
||||||
this.StandBearbeitet.Width = 102;
|
this.StandBearbeitet.Width = 142;
|
||||||
//
|
//
|
||||||
// FehlmengeBearbeitet
|
// FehlmengeBearbeitet
|
||||||
//
|
//
|
||||||
this.FehlmengeBearbeitet.HeaderText = "Fehlmenge Bearbeitet";
|
this.FehlmengeBearbeitet.HeaderText = "Fehlmenge Bearbeitet";
|
||||||
this.FehlmengeBearbeitet.Name = "FehlmengeBearbeitet";
|
this.FehlmengeBearbeitet.Name = "FehlmengeBearbeitet";
|
||||||
this.FehlmengeBearbeitet.Width = 124;
|
this.FehlmengeBearbeitet.Width = 175;
|
||||||
//
|
//
|
||||||
// KorrekturBearbeitet
|
// KorrekturBearbeitet
|
||||||
//
|
//
|
||||||
this.KorrekturBearbeitet.HeaderText = "Korrektur Bearbeitet";
|
this.KorrekturBearbeitet.HeaderText = "Korrektur Bearbeitet";
|
||||||
this.KorrekturBearbeitet.Name = "KorrekturBearbeitet";
|
this.KorrekturBearbeitet.Name = "KorrekturBearbeitet";
|
||||||
this.KorrekturBearbeitet.Width = 115;
|
this.KorrekturBearbeitet.Width = 161;
|
||||||
//
|
//
|
||||||
// label1
|
// label1
|
||||||
//
|
//
|
||||||
this.label1.AutoSize = true;
|
this.label1.AutoSize = true;
|
||||||
this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||||
this.label1.Location = new System.Drawing.Point(6, 332);
|
this.label1.Location = new System.Drawing.Point(9, 511);
|
||||||
this.label1.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
|
|
||||||
this.label1.Name = "label1";
|
this.label1.Name = "label1";
|
||||||
this.label1.Size = new System.Drawing.Size(102, 20);
|
this.label1.Size = new System.Drawing.Size(102, 20);
|
||||||
this.label1.TabIndex = 33;
|
this.label1.TabIndex = 33;
|
||||||
@ -447,10 +430,9 @@ namespace Deckungsbeitrag
|
|||||||
this.comboBoxFahrer.FlatStyle = System.Windows.Forms.FlatStyle.System;
|
this.comboBoxFahrer.FlatStyle = System.Windows.Forms.FlatStyle.System;
|
||||||
this.comboBoxFahrer.Font = new System.Drawing.Font("Microsoft Sans Serif", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
this.comboBoxFahrer.Font = new System.Drawing.Font("Microsoft Sans Serif", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||||
this.comboBoxFahrer.FormattingEnabled = true;
|
this.comboBoxFahrer.FormattingEnabled = true;
|
||||||
this.comboBoxFahrer.Location = new System.Drawing.Point(118, 319);
|
this.comboBoxFahrer.Location = new System.Drawing.Point(177, 491);
|
||||||
this.comboBoxFahrer.Margin = new System.Windows.Forms.Padding(2);
|
|
||||||
this.comboBoxFahrer.Name = "comboBoxFahrer";
|
this.comboBoxFahrer.Name = "comboBoxFahrer";
|
||||||
this.comboBoxFahrer.Size = new System.Drawing.Size(169, 33);
|
this.comboBoxFahrer.Size = new System.Drawing.Size(252, 33);
|
||||||
this.comboBoxFahrer.TabIndex = 34;
|
this.comboBoxFahrer.TabIndex = 34;
|
||||||
this.comboBoxFahrer.Validating += new System.ComponentModel.CancelEventHandler(this.comboBoxFahrer_Validating);
|
this.comboBoxFahrer.Validating += new System.ComponentModel.CancelEventHandler(this.comboBoxFahrer_Validating);
|
||||||
//
|
//
|
||||||
@ -461,9 +443,10 @@ namespace Deckungsbeitrag
|
|||||||
this.buttonEinstellung.FlatAppearance.BorderSize = 3;
|
this.buttonEinstellung.FlatAppearance.BorderSize = 3;
|
||||||
this.buttonEinstellung.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
this.buttonEinstellung.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||||
this.buttonEinstellung.Font = new System.Drawing.Font("Microsoft Sans Serif", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
this.buttonEinstellung.Font = new System.Drawing.Font("Microsoft Sans Serif", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||||
this.buttonEinstellung.Location = new System.Drawing.Point(9, 376);
|
this.buttonEinstellung.Location = new System.Drawing.Point(14, 578);
|
||||||
|
this.buttonEinstellung.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
|
||||||
this.buttonEinstellung.Name = "buttonEinstellung";
|
this.buttonEinstellung.Name = "buttonEinstellung";
|
||||||
this.buttonEinstellung.Size = new System.Drawing.Size(41, 41);
|
this.buttonEinstellung.Size = new System.Drawing.Size(62, 63);
|
||||||
this.buttonEinstellung.TabIndex = 46;
|
this.buttonEinstellung.TabIndex = 46;
|
||||||
this.buttonEinstellung.Text = "i";
|
this.buttonEinstellung.Text = "i";
|
||||||
this.buttonEinstellung.UseVisualStyleBackColor = true;
|
this.buttonEinstellung.UseVisualStyleBackColor = true;
|
||||||
@ -478,49 +461,36 @@ namespace Deckungsbeitrag
|
|||||||
this.panelRegAuftrag.Controls.Add(this.comboBoxRhythmus);
|
this.panelRegAuftrag.Controls.Add(this.comboBoxRhythmus);
|
||||||
this.panelRegAuftrag.Controls.Add(this.fLPArtikel);
|
this.panelRegAuftrag.Controls.Add(this.fLPArtikel);
|
||||||
this.panelRegAuftrag.Enabled = false;
|
this.panelRegAuftrag.Enabled = false;
|
||||||
this.panelRegAuftrag.Location = new System.Drawing.Point(307, -3);
|
this.panelRegAuftrag.Location = new System.Drawing.Point(460, -5);
|
||||||
|
this.panelRegAuftrag.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
|
||||||
this.panelRegAuftrag.Name = "panelRegAuftrag";
|
this.panelRegAuftrag.Name = "panelRegAuftrag";
|
||||||
this.panelRegAuftrag.Size = new System.Drawing.Size(427, 355);
|
this.panelRegAuftrag.Size = new System.Drawing.Size(640, 546);
|
||||||
this.panelRegAuftrag.TabIndex = 47;
|
this.panelRegAuftrag.TabIndex = 47;
|
||||||
this.panelRegAuftrag.Visible = false;
|
this.panelRegAuftrag.Visible = false;
|
||||||
this.panelRegAuftrag.EnabledChanged += new System.EventHandler(this.panelRegAuftrag_EnabledChanged);
|
this.panelRegAuftrag.EnabledChanged += new System.EventHandler(this.panelRegAuftrag_EnabledChanged);
|
||||||
//
|
//
|
||||||
// fLPArtikel
|
// pictureBoxAddArtikel
|
||||||
//
|
//
|
||||||
this.fLPArtikel.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
this.pictureBoxAddArtikel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||||
| System.Windows.Forms.AnchorStyles.Right)));
|
this.pictureBoxAddArtikel.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(192)))), ((int)(((byte)(0)))));
|
||||||
this.fLPArtikel.AutoScroll = true;
|
this.pictureBoxAddArtikel.Image = ((System.Drawing.Image)(resources.GetObject("pictureBoxAddArtikel.Image")));
|
||||||
this.fLPArtikel.BackColor = System.Drawing.SystemColors.Control;
|
this.pictureBoxAddArtikel.Location = new System.Drawing.Point(562, 165);
|
||||||
this.fLPArtikel.Location = new System.Drawing.Point(19, 149);
|
this.pictureBoxAddArtikel.Name = "pictureBoxAddArtikel";
|
||||||
this.fLPArtikel.Name = "fLPArtikel";
|
this.pictureBoxAddArtikel.Size = new System.Drawing.Size(50, 51);
|
||||||
this.fLPArtikel.Size = new System.Drawing.Size(389, 206);
|
this.pictureBoxAddArtikel.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
|
||||||
this.fLPArtikel.TabIndex = 0;
|
this.pictureBoxAddArtikel.TabIndex = 39;
|
||||||
|
this.pictureBoxAddArtikel.TabStop = false;
|
||||||
|
this.pictureBoxAddArtikel.Click += new System.EventHandler(this.pictureBoxAddArtikel_Click);
|
||||||
//
|
//
|
||||||
// comboBoxRhythmus
|
// label8
|
||||||
//
|
//
|
||||||
this.comboBoxRhythmus.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
this.label8.AutoSize = true;
|
||||||
| System.Windows.Forms.AnchorStyles.Right)));
|
this.label8.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||||
this.comboBoxRhythmus.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.CustomSource;
|
this.label8.Location = new System.Drawing.Point(22, 131);
|
||||||
this.comboBoxRhythmus.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
this.label8.Name = "label8";
|
||||||
this.comboBoxRhythmus.FlatStyle = System.Windows.Forms.FlatStyle.System;
|
this.label8.Size = new System.Drawing.Size(57, 20);
|
||||||
this.comboBoxRhythmus.Font = new System.Drawing.Font("Microsoft Sans Serif", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
this.label8.TabIndex = 38;
|
||||||
this.comboBoxRhythmus.FormattingEnabled = true;
|
this.label8.Text = "Artikel:";
|
||||||
this.comboBoxRhythmus.Location = new System.Drawing.Point(19, 44);
|
|
||||||
this.comboBoxRhythmus.Margin = new System.Windows.Forms.Padding(2);
|
|
||||||
this.comboBoxRhythmus.Name = "comboBoxRhythmus";
|
|
||||||
this.comboBoxRhythmus.Size = new System.Drawing.Size(389, 33);
|
|
||||||
this.comboBoxRhythmus.TabIndex = 35;
|
|
||||||
//
|
|
||||||
// label7
|
|
||||||
//
|
|
||||||
this.label7.AutoSize = true;
|
|
||||||
this.label7.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
||||||
this.label7.Location = new System.Drawing.Point(15, 20);
|
|
||||||
this.label7.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
|
|
||||||
this.label7.Name = "label7";
|
|
||||||
this.label7.Size = new System.Drawing.Size(85, 20);
|
|
||||||
this.label7.TabIndex = 36;
|
|
||||||
this.label7.Text = "Rhythmus:";
|
|
||||||
//
|
//
|
||||||
// comboBoxArtikel
|
// comboBoxArtikel
|
||||||
//
|
//
|
||||||
@ -531,45 +501,54 @@ namespace Deckungsbeitrag
|
|||||||
this.comboBoxArtikel.FlatStyle = System.Windows.Forms.FlatStyle.System;
|
this.comboBoxArtikel.FlatStyle = System.Windows.Forms.FlatStyle.System;
|
||||||
this.comboBoxArtikel.Font = new System.Drawing.Font("Microsoft Sans Serif", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
this.comboBoxArtikel.Font = new System.Drawing.Font("Microsoft Sans Serif", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||||
this.comboBoxArtikel.FormattingEnabled = true;
|
this.comboBoxArtikel.FormattingEnabled = true;
|
||||||
this.comboBoxArtikel.Location = new System.Drawing.Point(19, 107);
|
this.comboBoxArtikel.Location = new System.Drawing.Point(28, 165);
|
||||||
this.comboBoxArtikel.Margin = new System.Windows.Forms.Padding(2);
|
|
||||||
this.comboBoxArtikel.Name = "comboBoxArtikel";
|
this.comboBoxArtikel.Name = "comboBoxArtikel";
|
||||||
this.comboBoxArtikel.Size = new System.Drawing.Size(338, 33);
|
this.comboBoxArtikel.Size = new System.Drawing.Size(505, 33);
|
||||||
this.comboBoxArtikel.TabIndex = 37;
|
this.comboBoxArtikel.TabIndex = 37;
|
||||||
//
|
//
|
||||||
// label8
|
// label7
|
||||||
//
|
//
|
||||||
this.label8.AutoSize = true;
|
this.label7.AutoSize = true;
|
||||||
this.label8.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
this.label7.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||||
this.label8.Location = new System.Drawing.Point(15, 85);
|
this.label7.Location = new System.Drawing.Point(22, 31);
|
||||||
this.label8.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
|
this.label7.Name = "label7";
|
||||||
this.label8.Name = "label8";
|
this.label7.Size = new System.Drawing.Size(85, 20);
|
||||||
this.label8.Size = new System.Drawing.Size(57, 20);
|
this.label7.TabIndex = 36;
|
||||||
this.label8.TabIndex = 38;
|
this.label7.Text = "Rhythmus:";
|
||||||
this.label8.Text = "Artikel:";
|
|
||||||
//
|
//
|
||||||
// pictureBoxAddArtikel
|
// comboBoxRhythmus
|
||||||
//
|
//
|
||||||
this.pictureBoxAddArtikel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
this.comboBoxRhythmus.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||||
this.pictureBoxAddArtikel.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(192)))), ((int)(((byte)(0)))));
|
| System.Windows.Forms.AnchorStyles.Right)));
|
||||||
this.pictureBoxAddArtikel.Image = ((System.Drawing.Image)(resources.GetObject("pictureBoxAddArtikel.Image")));
|
this.comboBoxRhythmus.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.CustomSource;
|
||||||
this.pictureBoxAddArtikel.Location = new System.Drawing.Point(375, 107);
|
this.comboBoxRhythmus.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||||
this.pictureBoxAddArtikel.Margin = new System.Windows.Forms.Padding(2);
|
this.comboBoxRhythmus.FlatStyle = System.Windows.Forms.FlatStyle.System;
|
||||||
this.pictureBoxAddArtikel.Name = "pictureBoxAddArtikel";
|
this.comboBoxRhythmus.Font = new System.Drawing.Font("Microsoft Sans Serif", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||||
this.pictureBoxAddArtikel.Size = new System.Drawing.Size(33, 33);
|
this.comboBoxRhythmus.FormattingEnabled = true;
|
||||||
this.pictureBoxAddArtikel.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
|
this.comboBoxRhythmus.Location = new System.Drawing.Point(28, 68);
|
||||||
this.pictureBoxAddArtikel.TabIndex = 39;
|
this.comboBoxRhythmus.Name = "comboBoxRhythmus";
|
||||||
this.pictureBoxAddArtikel.TabStop = false;
|
this.comboBoxRhythmus.Size = new System.Drawing.Size(582, 33);
|
||||||
this.pictureBoxAddArtikel.Click += new System.EventHandler(this.pictureBoxAddArtikel_Click);
|
this.comboBoxRhythmus.TabIndex = 35;
|
||||||
|
//
|
||||||
|
// fLPArtikel
|
||||||
|
//
|
||||||
|
this.fLPArtikel.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||||
|
| System.Windows.Forms.AnchorStyles.Right)));
|
||||||
|
this.fLPArtikel.AutoScroll = true;
|
||||||
|
this.fLPArtikel.BackColor = System.Drawing.SystemColors.Control;
|
||||||
|
this.fLPArtikel.Location = new System.Drawing.Point(28, 229);
|
||||||
|
this.fLPArtikel.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
|
||||||
|
this.fLPArtikel.Name = "fLPArtikel";
|
||||||
|
this.fLPArtikel.Size = new System.Drawing.Size(584, 317);
|
||||||
|
this.fLPArtikel.TabIndex = 0;
|
||||||
//
|
//
|
||||||
// pictureBoxMinus
|
// pictureBoxMinus
|
||||||
//
|
//
|
||||||
this.pictureBoxMinus.BackColor = System.Drawing.Color.Red;
|
this.pictureBoxMinus.BackColor = System.Drawing.Color.Red;
|
||||||
this.pictureBoxMinus.Image = ((System.Drawing.Image)(resources.GetObject("pictureBoxMinus.Image")));
|
this.pictureBoxMinus.Image = ((System.Drawing.Image)(resources.GetObject("pictureBoxMinus.Image")));
|
||||||
this.pictureBoxMinus.Location = new System.Drawing.Point(174, 256);
|
this.pictureBoxMinus.Location = new System.Drawing.Point(261, 394);
|
||||||
this.pictureBoxMinus.Margin = new System.Windows.Forms.Padding(2);
|
|
||||||
this.pictureBoxMinus.Name = "pictureBoxMinus";
|
this.pictureBoxMinus.Name = "pictureBoxMinus";
|
||||||
this.pictureBoxMinus.Size = new System.Drawing.Size(38, 40);
|
this.pictureBoxMinus.Size = new System.Drawing.Size(57, 62);
|
||||||
this.pictureBoxMinus.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
|
this.pictureBoxMinus.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
|
||||||
this.pictureBoxMinus.TabIndex = 27;
|
this.pictureBoxMinus.TabIndex = 27;
|
||||||
this.pictureBoxMinus.TabStop = false;
|
this.pictureBoxMinus.TabStop = false;
|
||||||
@ -579,10 +558,9 @@ namespace Deckungsbeitrag
|
|||||||
//
|
//
|
||||||
this.pictureBoxPlus.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(192)))), ((int)(((byte)(0)))));
|
this.pictureBoxPlus.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(192)))), ((int)(((byte)(0)))));
|
||||||
this.pictureBoxPlus.Image = ((System.Drawing.Image)(resources.GetObject("pictureBoxPlus.Image")));
|
this.pictureBoxPlus.Image = ((System.Drawing.Image)(resources.GetObject("pictureBoxPlus.Image")));
|
||||||
this.pictureBoxPlus.Location = new System.Drawing.Point(249, 256);
|
this.pictureBoxPlus.Location = new System.Drawing.Point(374, 394);
|
||||||
this.pictureBoxPlus.Margin = new System.Windows.Forms.Padding(2);
|
|
||||||
this.pictureBoxPlus.Name = "pictureBoxPlus";
|
this.pictureBoxPlus.Name = "pictureBoxPlus";
|
||||||
this.pictureBoxPlus.Size = new System.Drawing.Size(38, 40);
|
this.pictureBoxPlus.Size = new System.Drawing.Size(57, 62);
|
||||||
this.pictureBoxPlus.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
|
this.pictureBoxPlus.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
|
||||||
this.pictureBoxPlus.TabIndex = 26;
|
this.pictureBoxPlus.TabIndex = 26;
|
||||||
this.pictureBoxPlus.TabStop = false;
|
this.pictureBoxPlus.TabStop = false;
|
||||||
@ -590,17 +568,15 @@ namespace Deckungsbeitrag
|
|||||||
//
|
//
|
||||||
// FormNeuerAuftrag
|
// FormNeuerAuftrag
|
||||||
//
|
//
|
||||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 20F);
|
||||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||||
this.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
|
this.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
|
||||||
this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(1)))), ((int)(((byte)(53)))), ((int)(((byte)(101)))));
|
this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(1)))), ((int)(((byte)(53)))), ((int)(((byte)(101)))));
|
||||||
this.CancelButton = this.buttonAbbrechen;
|
this.CancelButton = this.buttonAbbrechen;
|
||||||
this.ClientSize = new System.Drawing.Size(741, 431);
|
this.ClientSize = new System.Drawing.Size(451, 663);
|
||||||
this.Controls.Add(this.panelRegAuftrag);
|
|
||||||
this.Controls.Add(this.buttonEinstellung);
|
this.Controls.Add(this.buttonEinstellung);
|
||||||
this.Controls.Add(this.comboBoxFahrer);
|
this.Controls.Add(this.comboBoxFahrer);
|
||||||
this.Controls.Add(this.label1);
|
this.Controls.Add(this.label1);
|
||||||
this.Controls.Add(this.dGArtikel);
|
|
||||||
this.Controls.Add(this.textBoxCont);
|
this.Controls.Add(this.textBoxCont);
|
||||||
this.Controls.Add(this.label6);
|
this.Controls.Add(this.label6);
|
||||||
this.Controls.Add(this.comboBoxTyp);
|
this.Controls.Add(this.comboBoxTyp);
|
||||||
@ -620,18 +596,22 @@ namespace Deckungsbeitrag
|
|||||||
this.Controls.Add(this.buttonAbbrechen);
|
this.Controls.Add(this.buttonAbbrechen);
|
||||||
this.Controls.Add(this.buttonSpeichern);
|
this.Controls.Add(this.buttonSpeichern);
|
||||||
this.Controls.Add(this.dTPLiefertag);
|
this.Controls.Add(this.dTPLiefertag);
|
||||||
|
this.Controls.Add(this.panelRegAuftrag);
|
||||||
|
this.Controls.Add(this.dGArtikel);
|
||||||
this.ForeColor = System.Drawing.Color.White;
|
this.ForeColor = System.Drawing.Color.White;
|
||||||
|
this.HelpButton = true;
|
||||||
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
||||||
this.Margin = new System.Windows.Forms.Padding(2);
|
|
||||||
this.MaximizeBox = false;
|
this.MaximizeBox = false;
|
||||||
this.MinimizeBox = false;
|
this.MinimizeBox = false;
|
||||||
this.MinimumSize = new System.Drawing.Size(16, 470);
|
this.MinimumSize = new System.Drawing.Size(16, 702);
|
||||||
this.Name = "FormNeuerAuftrag";
|
this.Name = "FormNeuerAuftrag";
|
||||||
this.ShowInTaskbar = false;
|
this.ShowInTaskbar = false;
|
||||||
this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide;
|
this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide;
|
||||||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
|
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
|
||||||
this.Text = "NEUER AUFTRAG";
|
this.Text = "NEUER AUFTRAG";
|
||||||
|
this.HelpButtonClicked += new System.ComponentModel.CancelEventHandler(this.FormNeuerAuftrag_HelpButtonClicked);
|
||||||
this.Load += new System.EventHandler(this.FormNeuerAuftrag_Load);
|
this.Load += new System.EventHandler(this.FormNeuerAuftrag_Load);
|
||||||
|
this.Shown += new System.EventHandler(this.FormNeuerAuftrag_Shown);
|
||||||
((System.ComponentModel.ISupportInitialize)(this.dGArtikel)).EndInit();
|
((System.ComponentModel.ISupportInitialize)(this.dGArtikel)).EndInit();
|
||||||
this.panelRegAuftrag.ResumeLayout(false);
|
this.panelRegAuftrag.ResumeLayout(false);
|
||||||
this.panelRegAuftrag.PerformLayout();
|
this.panelRegAuftrag.PerformLayout();
|
||||||
|
|||||||
@ -43,6 +43,8 @@ namespace Deckungsbeitrag
|
|||||||
private AuftragTyp auftragtyp = AuftragTyp.Standart;
|
private AuftragTyp auftragtyp = AuftragTyp.Standart;
|
||||||
private string eingabe = string.Empty;
|
private string eingabe = string.Empty;
|
||||||
private DateTime nextLiefertag = DateTime.Today;
|
private DateTime nextLiefertag = DateTime.Today;
|
||||||
|
private OnboardingSchritt onBoardingArt = OnboardingSchritt.NeuerAuftrag;
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region Form-Konstruktor
|
#region Form-Konstruktor
|
||||||
@ -129,7 +131,6 @@ namespace Deckungsbeitrag
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Kundendaten Liefertag werden eingefügt.
|
/// Kundendaten Liefertag werden eingefügt.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -273,7 +274,7 @@ namespace Deckungsbeitrag
|
|||||||
else Auftrag = new Auftrag();
|
else Auftrag = new Auftrag();
|
||||||
|
|
||||||
if (this.benutzer.Rolle == BenutzerRolle.Fahrer) { AuftragSpeichern(); return; }
|
if (this.benutzer.Rolle == BenutzerRolle.Fahrer) { AuftragSpeichern(); return; }
|
||||||
if ((AuftragTyp)comboBoxTyp.SelectedItem == AuftragTyp.Regelmäßig) { RegAuftragSpeichern(); return; }
|
if ((AuftragTyp)comboBoxTyp.SelectedItem >= AuftragTyp.Standerhöhung & (AuftragTyp)comboBoxTyp.SelectedItem <= AuftragTyp.Regelmäßig) { SpezialAuftragSpeichern(); return; }
|
||||||
|
|
||||||
//AUFTRAG DATEN ÜBERGEBEN
|
//AUFTRAG DATEN ÜBERGEBEN
|
||||||
Auftrag.KundeID = (int)kunde.KundeID;
|
Auftrag.KundeID = (int)kunde.KundeID;
|
||||||
@ -290,9 +291,13 @@ namespace Deckungsbeitrag
|
|||||||
Auftrag.Container = int.Parse(this.textBoxCont.Text);
|
Auftrag.Container = int.Parse(this.textBoxCont.Text);
|
||||||
Auftrag.Typ = (AuftragTyp)comboBoxTyp.SelectedItem;
|
Auftrag.Typ = (AuftragTyp)comboBoxTyp.SelectedItem;
|
||||||
Auftrag.ArbeiterID = this.comboBoxFahrer.SelectedIndex == -1 ? null : ((Benutzer)this.comboBoxFahrer.SelectedItem).BenutzerID;
|
Auftrag.ArbeiterID = this.comboBoxFahrer.SelectedIndex == -1 ? null : ((Benutzer)this.comboBoxFahrer.SelectedItem).BenutzerID;
|
||||||
|
Auftrag.Abteilungen = AbteilungsStatus.Keine;
|
||||||
|
Auftrag.Priority = Funktionen.GetPriority((Benutzer)this.comboBoxFahrer.SelectedItem);
|
||||||
if (maschine != null) Auftrag.MaschineID = (int)maschine.MaschineID;
|
if (maschine != null) Auftrag.MaschineID = (int)maschine.MaschineID;
|
||||||
else Auftrag.MaschineID = null;
|
else Auftrag.MaschineID = null;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (Auftrag.FindeAuftrag(true).Gefunden) //TODO: Aufträge zusammenführen wenn gleicher Kunde und Liefertag.
|
if (Auftrag.FindeAuftrag(true).Gefunden) //TODO: Aufträge zusammenführen wenn gleicher Kunde und Liefertag.
|
||||||
{
|
{
|
||||||
if (meldung.AuftragVorhanden(Auftrag) == DialogResult.Yes)
|
if (meldung.AuftragVorhanden(Auftrag) == DialogResult.Yes)
|
||||||
@ -474,15 +479,16 @@ namespace Deckungsbeitrag
|
|||||||
if (!this.textBoxCont.Enabled) Auftrag.Container = int.Parse(this.textBoxCont.Text);
|
if (!this.textBoxCont.Enabled) Auftrag.Container = int.Parse(this.textBoxCont.Text);
|
||||||
Auftrag.Typ = (AuftragTyp)comboBoxTyp.SelectedItem;
|
Auftrag.Typ = (AuftragTyp)comboBoxTyp.SelectedItem;
|
||||||
Auftrag.ArbeiterID = this.comboBoxFahrer.SelectedIndex == -1 ? null : ((Benutzer)this.comboBoxFahrer.SelectedItem).BenutzerID;
|
Auftrag.ArbeiterID = this.comboBoxFahrer.SelectedIndex == -1 ? null : ((Benutzer)this.comboBoxFahrer.SelectedItem).BenutzerID;
|
||||||
|
Auftrag.Abteilungen = AbteilungsStatus.Keine;
|
||||||
|
Auftrag.Priority = Funktionen.GetPriority((Benutzer)this.comboBoxFahrer.SelectedItem);
|
||||||
|
|
||||||
}
|
}
|
||||||
private void RegAuftragSpeichern()
|
private void SpezialAuftragSpeichern()
|
||||||
{
|
{
|
||||||
//TODO: ArbeiterID muss gefunden werden. Eventuell suche Aufträge mit Kunden am selben Liefertag und Region.
|
|
||||||
AuftragUpdate();
|
AuftragUpdate();
|
||||||
Auftrag.ArbeiterID = Auftrag.FindeFahrerIDZuAuftrag(kunde, Auftrag.Liefertag);
|
Auftrag.ArbeiterID = comboBoxFahrer.SelectedIndex != -1 ? ((Benutzer)comboBoxFahrer.SelectedItem).BenutzerID : Auftrag.FindeFahrerIDZuAuftrag(kunde, Auftrag.Liefertag);
|
||||||
Auftrag.Status = AuftragStatus.Herrichten;
|
Auftrag.Status = AuftragStatus.Herrichten;
|
||||||
Lieferrhythmen.Rhythmus = (RegRhythmen)this.comboBoxRhythmus.SelectedItem;
|
Auftrag.Rhythmus = this.comboBoxRhythmus.Enabled ? (RegRhythmen)this.comboBoxRhythmus.SelectedItem : RegRhythmen.Unbekannt;
|
||||||
|
|
||||||
if (Auftrag.FindeAuftrag(false).Gefunden)
|
if (Auftrag.FindeAuftrag(false).Gefunden)
|
||||||
{
|
{
|
||||||
@ -504,12 +510,26 @@ namespace Deckungsbeitrag
|
|||||||
{
|
{
|
||||||
foreach (UCArtikel uca in this.fLPArtikel.Controls)
|
foreach (UCArtikel uca in this.fLPArtikel.Controls)
|
||||||
{
|
{
|
||||||
|
int? id;
|
||||||
|
string artname;
|
||||||
|
if (uca.Tag is Artikel)
|
||||||
|
{
|
||||||
|
id = ((Artikel)uca.Tag).ArtikelID;
|
||||||
|
artname = ((Artikel)uca.Tag).Nummer + ((Artikel)uca.Tag).Bezeichnung;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
id = ((KundeArtikel)uca.Tag).ArtikelID;
|
||||||
|
artname = ((KundeArtikel)uca.Tag).ArtikelNR + ((KundeArtikel)uca.Tag).ArtikelName;
|
||||||
|
}
|
||||||
AuftragArtikel aufart = new AuftragArtikel()
|
AuftragArtikel aufart = new AuftragArtikel()
|
||||||
{
|
{
|
||||||
AuftragID = Auftrag.AuftragID,
|
AuftragID = Auftrag.AuftragID,
|
||||||
ArtikelID = ((Artikel)uca.Tag).ArtikelID,
|
ArtikelID = id,
|
||||||
|
ArtikelName = artname,
|
||||||
Anzahl = uca.Anzahl,
|
Anzahl = uca.Anzahl,
|
||||||
Erledigt = false,
|
Erledigt = false,
|
||||||
|
Gesamt = uca.Anzahl,
|
||||||
};
|
};
|
||||||
aufart.Save();
|
aufart.Save();
|
||||||
}
|
}
|
||||||
@ -531,6 +551,9 @@ namespace Deckungsbeitrag
|
|||||||
Auftrag.Typ = (AuftragTyp)comboBoxTyp.SelectedItem;
|
Auftrag.Typ = (AuftragTyp)comboBoxTyp.SelectedItem;
|
||||||
Auftrag.ArbeiterID = this.comboBoxFahrer.SelectedIndex == -1 ? null : ((Benutzer)this.comboBoxFahrer.SelectedItem).BenutzerID;
|
Auftrag.ArbeiterID = this.comboBoxFahrer.SelectedIndex == -1 ? null : ((Benutzer)this.comboBoxFahrer.SelectedItem).BenutzerID;
|
||||||
Auftrag.Status = AuftragStatus.Abgeholt;
|
Auftrag.Status = AuftragStatus.Abgeholt;
|
||||||
|
Auftrag.Abteilungen = AbteilungsStatus.Keine;
|
||||||
|
Auftrag.Priority = Funktionen.GetPriority((Benutzer)this.comboBoxFahrer.SelectedItem);
|
||||||
|
|
||||||
|
|
||||||
Tour tour = null;
|
Tour tour = null;
|
||||||
do
|
do
|
||||||
@ -630,6 +653,53 @@ namespace Deckungsbeitrag
|
|||||||
// ANHÄNGEN statt überschreiben
|
// ANHÄNGEN statt überschreiben
|
||||||
File.AppendAllText(csvPath, appendCsv.ToString(), Encoding.UTF8);
|
File.AppendAllText(csvPath, appendCsv.ToString(), Encoding.UTF8);
|
||||||
}
|
}
|
||||||
|
private void GetStandCSV()
|
||||||
|
{
|
||||||
|
Kunde _knd = Kunde.GetKunde(null, Auftrag.KundeID, null);
|
||||||
|
Benutzer _user = Benutzer.GetBenutzer(null, Auftrag.ErstelltVon);
|
||||||
|
|
||||||
|
string fileName = $"{_knd.KundeNummer}.csv"; // Immer gleiche Datei!
|
||||||
|
string inventurOrdner = ConfigurationManager.AppSettings["InventurPfad"] ?? "Inventur";
|
||||||
|
string csvPath = Path.Combine(Application.StartupPath, inventurOrdner, fileName);
|
||||||
|
|
||||||
|
// Prüfen ob Header schon existiert
|
||||||
|
bool headerExists = File.Exists(csvPath);
|
||||||
|
|
||||||
|
// Nur Header bei NEUER Datei
|
||||||
|
if (!headerExists)
|
||||||
|
{
|
||||||
|
var csv = new StringBuilder();
|
||||||
|
csv.AppendLine("=== INVENTUR INFO ===");
|
||||||
|
csv.AppendLine($"KundeNr: {_knd.KundeNummer}");
|
||||||
|
csv.AppendLine($"Kunde: {_knd.KundeName}");
|
||||||
|
csv.AppendLine(new string('=', 30));
|
||||||
|
csv.AppendLine();
|
||||||
|
csv.AppendLine("Erstellt am;Erstellt von;Liefertag;ArtikelNr;Bezeichnung;Stand;Fehlmenge;Korrektur;InventurDatum");
|
||||||
|
File.WriteAllText(csvPath, csv.ToString(), Encoding.UTF8);
|
||||||
|
}
|
||||||
|
|
||||||
|
// NEUE Artikel ANHÄNGEN (ohne Header)
|
||||||
|
var appendCsv = new StringBuilder();
|
||||||
|
|
||||||
|
foreach (DataGridViewRow row in this.dGArtikel.Rows.Cast<DataGridViewRow>()
|
||||||
|
.Where(row => row.Cells[0].Value != null))
|
||||||
|
{
|
||||||
|
appendCsv.AppendLine(string.Join(";", new object[]
|
||||||
|
{
|
||||||
|
Auftrag.Erstellt.Value.Date.ToString("yyyy-MM-dd"),
|
||||||
|
_user.Vorname + " " + _user.Nachname,
|
||||||
|
Auftrag.Liefertag.Date.ToString("yyyy-MM-dd"),
|
||||||
|
row.Cells[2].Value?.ToString().Replace(";", " ") ?? "",
|
||||||
|
row.Cells[3].Value?.ToString().Replace(";", " ") ?? "",
|
||||||
|
row.Cells[4].Value?.ToString() ?? "0",
|
||||||
|
row.Cells[5].Visible ? (row.Cells[5].Value?.ToString() ?? "0") : "",
|
||||||
|
row.Cells[6].Visible ? (row.Cells[6].Value?.ToString() ?? "0") : "",
|
||||||
|
}));
|
||||||
|
}
|
||||||
|
|
||||||
|
// ANHÄNGEN statt überschreiben
|
||||||
|
File.AppendAllText(csvPath, appendCsv.ToString(), Encoding.UTF8);
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// TextBox Events
|
/// TextBox Events
|
||||||
@ -751,16 +821,28 @@ namespace Deckungsbeitrag
|
|||||||
this.Height = this.dGArtikel.Bottom + this.buttonSpeichern.Height + 60;
|
this.Height = this.dGArtikel.Bottom + this.buttonSpeichern.Height + 60;
|
||||||
break;
|
break;
|
||||||
case AuftragTyp.Standerhöhung:
|
case AuftragTyp.Standerhöhung:
|
||||||
if (this.kunde != null) Load_Gridview(this.kunde.KundeID.ToString(), (AuftragTyp)comboBoxTyp.SelectedValue);
|
if (this.kunde == null) return;
|
||||||
this.dGArtikel.Enabled = this.dGArtikel.Visible = true;
|
|
||||||
this.Width = this.dGArtikel.Right + 25;
|
this.dGArtikel.Enabled = this.dGArtikel.Visible = false;
|
||||||
this.Height = this.dGArtikel.Bottom + this.buttonSpeichern.Height + 60;
|
this.panelRegAuftrag.Enabled = this.panelRegAuftrag.Visible = true;
|
||||||
|
this.pictureBoxPlus.Enabled = this.pictureBoxMinus.Enabled = this.textBoxCont.Enabled = false;
|
||||||
|
this.Width = this.panelRegAuftrag.Right + 25;
|
||||||
|
this.Height = 470;
|
||||||
|
//if (this.kunde != null) Load_Gridview(this.kunde.KundeID.ToString(), (AuftragTyp)comboBoxTyp.SelectedValue);
|
||||||
|
//this.dGArtikel.Enabled = this.dGArtikel.Visible = true;
|
||||||
|
//this.Width = this.dGArtikel.Right + 25;
|
||||||
|
//this.Height = this.dGArtikel.Bottom + this.buttonSpeichern.Height + 60;
|
||||||
break;
|
break;
|
||||||
case AuftragTyp.Standverminderung:
|
case AuftragTyp.Standverminderung:
|
||||||
if (this.kunde != null) Load_Gridview(this.kunde.KundeID.ToString(), (AuftragTyp)comboBoxTyp.SelectedValue);
|
this.dGArtikel.Enabled = this.dGArtikel.Visible = false;
|
||||||
this.dGArtikel.Enabled = this.dGArtikel.Visible = true;
|
this.panelRegAuftrag.Enabled = this.panelRegAuftrag.Visible = true;
|
||||||
this.Width = this.dGArtikel.Right + 25;
|
this.pictureBoxPlus.Enabled = this.pictureBoxMinus.Enabled = this.textBoxCont.Enabled = false;
|
||||||
this.Height = this.dGArtikel.Bottom + this.buttonSpeichern.Height + 60;
|
this.Width = this.panelRegAuftrag.Right + 25;
|
||||||
|
this.Height = 470;
|
||||||
|
//if (this.kunde != null) Load_Gridview(this.kunde.KundeID.ToString(), (AuftragTyp)comboBoxTyp.SelectedValue);
|
||||||
|
//this.dGArtikel.Enabled = this.dGArtikel.Visible = true;
|
||||||
|
//this.Width = this.dGArtikel.Right + 25;
|
||||||
|
//this.Height = this.dGArtikel.Bottom + this.buttonSpeichern.Height + 60;
|
||||||
break;
|
break;
|
||||||
case AuftragTyp.Regelmäßig:
|
case AuftragTyp.Regelmäßig:
|
||||||
this.dGArtikel.Enabled = this.dGArtikel.Visible = false;
|
this.dGArtikel.Enabled = this.dGArtikel.Visible = false;
|
||||||
@ -783,6 +865,7 @@ namespace Deckungsbeitrag
|
|||||||
{
|
{
|
||||||
if (((ComboBox)sender).SelectedIndex == -1) return;
|
if (((ComboBox)sender).SelectedIndex == -1) return;
|
||||||
if (((Benutzer)((ComboBox)sender).SelectedItem).BenutzerID == this.benutzer.BenutzerID) return;
|
if (((Benutzer)((ComboBox)sender).SelectedItem).BenutzerID == this.benutzer.BenutzerID) return;
|
||||||
|
if (this.benutzer.Rolle == BenutzerRolle.Verwaltung || this.benutzer.Rolle == BenutzerRolle.Admin) return;
|
||||||
if (meldung.GetFrage(this, "Möchtest du den Auftrag wirklich einem anderen Fahrer zuteilen?", false) == DialogResult.No) { ((ComboBox)sender).SelectedIndex = -1; e.Cancel = true; }
|
if (meldung.GetFrage(this, "Möchtest du den Auftrag wirklich einem anderen Fahrer zuteilen?", false) == DialogResult.No) { ((ComboBox)sender).SelectedIndex = -1; e.Cancel = true; }
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -802,16 +885,17 @@ namespace Deckungsbeitrag
|
|||||||
int index = 0;
|
int index = 0;
|
||||||
int artAnzahl = 1;
|
int artAnzahl = 1;
|
||||||
string anzahl = string.Empty;
|
string anzahl = string.Empty;
|
||||||
Artikel art = (Artikel)this.comboBoxArtikel.SelectedItem;
|
UCArtikel uca;
|
||||||
|
var art = this.comboBoxArtikel.SelectedItem;
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
if (index > 0) MessageBox.Show("Bitte nur ganze Zahlen eingeben.", "ACHTUNG", MessageBoxButtons.OK, MessageBoxIcon.Warning);
|
if (index > 0) MessageBox.Show("Bitte nur ganze Zahlen eingeben.", "ACHTUNG", MessageBoxButtons.OK, MessageBoxIcon.Warning);
|
||||||
anzahl = Interaction.InputBox($"Wieviel Stück {art.Bezeichnung} sollen geliefert werden?\n\nStück:", "Artikelanzahl", "");
|
anzahl = Interaction.InputBox($"Wieviel Stück sollen geliefert werden?\n\nStück:", "Artikelanzahl", "");
|
||||||
index++;
|
index++;
|
||||||
} while (!int.TryParse(anzahl, out artAnzahl));
|
} while (!int.TryParse(anzahl, out artAnzahl));
|
||||||
|
|
||||||
|
if (art is Artikel) uca = new UCArtikel((Artikel)art, artAnzahl);
|
||||||
UCArtikel uca = new UCArtikel(art, artAnzahl);
|
else uca = new UCArtikel((KundeArtikel)art, artAnzahl);
|
||||||
uca.Width = fLPArtikel.Width - 25;
|
uca.Width = fLPArtikel.Width - 25;
|
||||||
uca.DeleteClicked += Uca_DeleteClicked;
|
uca.DeleteClicked += Uca_DeleteClicked;
|
||||||
this.fLPArtikel.Controls.Add(uca);
|
this.fLPArtikel.Controls.Add(uca);
|
||||||
@ -828,19 +912,61 @@ namespace Deckungsbeitrag
|
|||||||
int dropdownWidth = comboBoxArtikel.DropDownWidth;
|
int dropdownWidth = comboBoxArtikel.DropDownWidth;
|
||||||
if (panel.Enabled)
|
if (panel.Enabled)
|
||||||
{
|
{
|
||||||
List<Artikel> artikelListe = Artikel.GetRegArtikelList();
|
if ((AuftragTyp)comboBoxTyp.SelectedValue == AuftragTyp.Regelmäßig)
|
||||||
comboBoxArtikel.DataSource = artikelListe;
|
|
||||||
comboBoxArtikel.DisplayMember = "Bezeichnung";
|
|
||||||
foreach (Artikel art in artikelListe)
|
|
||||||
{
|
{
|
||||||
int bezWidth = TextRenderer.MeasureText(art.Bezeichnung, comboBoxArtikel.Font).Width;
|
List<Artikel> artikelListe = Artikel.GetRegArtikelList();
|
||||||
if (dropdownWidth < bezWidth) dropdownWidth = bezWidth;
|
comboBoxArtikel.DataSource = artikelListe;
|
||||||
}
|
comboBoxArtikel.DisplayMember = "Bezeichnung";
|
||||||
comboBoxArtikel.DropDownWidth = dropdownWidth;
|
foreach (Artikel art in artikelListe)
|
||||||
comboBoxArtikel.SelectedIndex = -1;
|
{
|
||||||
|
int bezWidth = TextRenderer.MeasureText(art.Bezeichnung, comboBoxArtikel.Font).Width;
|
||||||
|
if (dropdownWidth < bezWidth) dropdownWidth = bezWidth;
|
||||||
|
}
|
||||||
|
comboBoxArtikel.DropDownWidth = dropdownWidth;
|
||||||
|
comboBoxArtikel.SelectedIndex = -1;
|
||||||
|
|
||||||
comboBoxRhythmus.DataSource = Enum.GetValues(typeof(RegRhythmen));
|
comboBoxRhythmus.DataSource = Enum.GetValues(typeof(RegRhythmen));
|
||||||
comboBoxRhythmus.SelectedIndex = -1;
|
comboBoxRhythmus.SelectedIndex = -1;
|
||||||
|
}
|
||||||
|
if ((AuftragTyp)comboBoxTyp.SelectedValue == AuftragTyp.Standerhöhung || (AuftragTyp)comboBoxTyp.SelectedValue == AuftragTyp.Standverminderung)
|
||||||
|
{
|
||||||
|
List<KundeArtikel> kndartikel = KundeArtikel.GetList(this.kunde.KundeID.ToString());
|
||||||
|
comboBoxArtikel.DataSource = kndartikel;
|
||||||
|
comboBoxArtikel.DisplayMember = "ArtikelName";
|
||||||
|
foreach (KundeArtikel art in kndartikel)
|
||||||
|
{
|
||||||
|
int bezWidth = TextRenderer.MeasureText(art.ArtikelName, comboBoxArtikel.Font).Width;
|
||||||
|
if (dropdownWidth < bezWidth) dropdownWidth = bezWidth;
|
||||||
|
}
|
||||||
|
comboBoxArtikel.DropDownWidth = dropdownWidth;
|
||||||
|
comboBoxArtikel.SelectedIndex = -1;
|
||||||
|
|
||||||
|
comboBoxRhythmus.Enabled = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void FormNeuerAuftrag_Shown(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
private async void FormNeuerAuftrag_HelpButtonClicked(object sender, CancelEventArgs e)
|
||||||
|
{
|
||||||
|
this.benutzer.OnboardingStatus = this.benutzer.ClearOnboardingFlag(onBoardingArt); // OnBoarding zurücksetzen
|
||||||
|
await this.benutzer.UpdateOnBoardingAsync(); // Update OnBoardingStatus
|
||||||
|
ZeigeOnboarding();
|
||||||
|
|
||||||
|
}
|
||||||
|
private async void ZeigeOnboarding()
|
||||||
|
{
|
||||||
|
if (this.benutzer.IstGesehen(onBoardingArt)) return; // Bereits fertig
|
||||||
|
|
||||||
|
if (Program.ShowOnBoarding(this.benutzer.Rolle.ToString(), onBoardingArt) == DialogResult.OK)
|
||||||
|
{
|
||||||
|
// Nächster Schritt → Flag setzen
|
||||||
|
this.benutzer.OnboardingStatus = this.benutzer.SetOnboardingFlag(onBoardingArt);
|
||||||
|
await this.benutzer.UpdateOnBoardingAsync(); // Deine Update-Methode
|
||||||
|
//this.Close(); // Onboarding beendet
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -147,6 +147,36 @@
|
|||||||
<metadata name="KorrekturBearbeitet.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
<metadata name="KorrekturBearbeitet.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
<value>True</value>
|
<value>True</value>
|
||||||
</metadata>
|
</metadata>
|
||||||
|
<metadata name="KundeArtikelID.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<value>True</value>
|
||||||
|
</metadata>
|
||||||
|
<metadata name="KundeID.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<value>True</value>
|
||||||
|
</metadata>
|
||||||
|
<metadata name="ArtikelNR.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<value>True</value>
|
||||||
|
</metadata>
|
||||||
|
<metadata name="ArtikelName.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<value>True</value>
|
||||||
|
</metadata>
|
||||||
|
<metadata name="Stand.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<value>True</value>
|
||||||
|
</metadata>
|
||||||
|
<metadata name="Fehlmenge.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<value>True</value>
|
||||||
|
</metadata>
|
||||||
|
<metadata name="Korrektur.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<value>True</value>
|
||||||
|
</metadata>
|
||||||
|
<metadata name="StandBearbeitet.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<value>True</value>
|
||||||
|
</metadata>
|
||||||
|
<metadata name="FehlmengeBearbeitet.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<value>True</value>
|
||||||
|
</metadata>
|
||||||
|
<metadata name="KorrekturBearbeitet.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<value>True</value>
|
||||||
|
</metadata>
|
||||||
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||||
<data name="pictureBoxAddArtikel.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
<data name="pictureBoxAddArtikel.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||||
<value>
|
<value>
|
||||||
|
|||||||
215
AA-Forms/FormOnBoarding.Designer.cs
generated
Normal file
215
AA-Forms/FormOnBoarding.Designer.cs
generated
Normal file
@ -0,0 +1,215 @@
|
|||||||
|
namespace Deckungsbeitrag.AA_Forms
|
||||||
|
{
|
||||||
|
partial class FormOnBoarding
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Required designer variable.
|
||||||
|
/// </summary>
|
||||||
|
private System.ComponentModel.IContainer components = null;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Clean up any resources being used.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||||
|
protected override void Dispose(bool disposing)
|
||||||
|
{
|
||||||
|
if (disposing && (components != null))
|
||||||
|
{
|
||||||
|
components.Dispose();
|
||||||
|
}
|
||||||
|
base.Dispose(disposing);
|
||||||
|
}
|
||||||
|
|
||||||
|
#region Windows Form Designer generated code
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Required method for Designer support - do not modify
|
||||||
|
/// the contents of this method with the code editor.
|
||||||
|
/// </summary>
|
||||||
|
private void InitializeComponent()
|
||||||
|
{
|
||||||
|
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormOnBoarding));
|
||||||
|
this.panelButtons = new System.Windows.Forms.Panel();
|
||||||
|
this.tLPButtons = new System.Windows.Forms.TableLayoutPanel();
|
||||||
|
this.buttonFertig = new System.Windows.Forms.Button();
|
||||||
|
this.buttonPrevious = new System.Windows.Forms.Button();
|
||||||
|
this.buttonNext = new System.Windows.Forms.Button();
|
||||||
|
this.panelText = new System.Windows.Forms.Panel();
|
||||||
|
this.labelText = new System.Windows.Forms.Label();
|
||||||
|
this.labelHeader = new System.Windows.Forms.Label();
|
||||||
|
this.pictureBoxScreen = new System.Windows.Forms.PictureBox();
|
||||||
|
this.panelButtons.SuspendLayout();
|
||||||
|
this.tLPButtons.SuspendLayout();
|
||||||
|
this.panelText.SuspendLayout();
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.pictureBoxScreen)).BeginInit();
|
||||||
|
this.SuspendLayout();
|
||||||
|
//
|
||||||
|
// panelButtons
|
||||||
|
//
|
||||||
|
this.panelButtons.BackColor = System.Drawing.Color.Transparent;
|
||||||
|
this.panelButtons.Controls.Add(this.tLPButtons);
|
||||||
|
this.panelButtons.Dock = System.Windows.Forms.DockStyle.Bottom;
|
||||||
|
this.panelButtons.Location = new System.Drawing.Point(0, 380);
|
||||||
|
this.panelButtons.Name = "panelButtons";
|
||||||
|
this.panelButtons.Size = new System.Drawing.Size(800, 70);
|
||||||
|
this.panelButtons.TabIndex = 1;
|
||||||
|
//
|
||||||
|
// tLPButtons
|
||||||
|
//
|
||||||
|
this.tLPButtons.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(1)))), ((int)(((byte)(53)))), ((int)(((byte)(101)))));
|
||||||
|
this.tLPButtons.ColumnCount = 3;
|
||||||
|
this.tLPButtons.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 38.46154F));
|
||||||
|
this.tLPButtons.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 23.07692F));
|
||||||
|
this.tLPButtons.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 38.46154F));
|
||||||
|
this.tLPButtons.Controls.Add(this.buttonFertig, 1, 0);
|
||||||
|
this.tLPButtons.Controls.Add(this.buttonPrevious, 0, 0);
|
||||||
|
this.tLPButtons.Controls.Add(this.buttonNext, 2, 0);
|
||||||
|
this.tLPButtons.Dock = System.Windows.Forms.DockStyle.Bottom;
|
||||||
|
this.tLPButtons.Location = new System.Drawing.Point(0, 23);
|
||||||
|
this.tLPButtons.Name = "tLPButtons";
|
||||||
|
this.tLPButtons.RowCount = 1;
|
||||||
|
this.tLPButtons.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 47F));
|
||||||
|
this.tLPButtons.Size = new System.Drawing.Size(800, 47);
|
||||||
|
this.tLPButtons.TabIndex = 0;
|
||||||
|
//
|
||||||
|
// buttonFertig
|
||||||
|
//
|
||||||
|
this.buttonFertig.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
|
||||||
|
this.buttonFertig.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(192)))), ((int)(((byte)(0)))));
|
||||||
|
this.buttonFertig.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||||
|
this.buttonFertig.FlatAppearance.BorderSize = 0;
|
||||||
|
this.buttonFertig.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||||
|
this.buttonFertig.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||||
|
this.buttonFertig.ForeColor = System.Drawing.Color.Black;
|
||||||
|
this.buttonFertig.Location = new System.Drawing.Point(309, 2);
|
||||||
|
this.buttonFertig.Margin = new System.Windows.Forms.Padding(2);
|
||||||
|
this.buttonFertig.Name = "buttonFertig";
|
||||||
|
this.buttonFertig.Size = new System.Drawing.Size(180, 43);
|
||||||
|
this.buttonFertig.TabIndex = 48;
|
||||||
|
this.buttonFertig.Text = "Fertig";
|
||||||
|
this.buttonFertig.UseVisualStyleBackColor = false;
|
||||||
|
this.buttonFertig.EnabledChanged += new System.EventHandler(this.buttonFertig_EnabledChanged);
|
||||||
|
this.buttonFertig.Click += new System.EventHandler(this.buttonFertig_Click);
|
||||||
|
//
|
||||||
|
// buttonPrevious
|
||||||
|
//
|
||||||
|
this.buttonPrevious.Dock = System.Windows.Forms.DockStyle.Right;
|
||||||
|
this.buttonPrevious.FlatAppearance.BorderColor = System.Drawing.Color.White;
|
||||||
|
this.buttonPrevious.FlatAppearance.BorderSize = 3;
|
||||||
|
this.buttonPrevious.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||||
|
this.buttonPrevious.Font = new System.Drawing.Font("Microsoft Sans Serif", 18F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||||
|
this.buttonPrevious.ForeColor = System.Drawing.Color.White;
|
||||||
|
this.buttonPrevious.Location = new System.Drawing.Point(263, 3);
|
||||||
|
this.buttonPrevious.Name = "buttonPrevious";
|
||||||
|
this.buttonPrevious.Size = new System.Drawing.Size(41, 41);
|
||||||
|
this.buttonPrevious.TabIndex = 47;
|
||||||
|
this.buttonPrevious.Text = "<";
|
||||||
|
this.buttonPrevious.UseVisualStyleBackColor = true;
|
||||||
|
this.buttonPrevious.EnabledChanged += new System.EventHandler(this.button_EnabledChanged);
|
||||||
|
this.buttonPrevious.Click += new System.EventHandler(this.buttonPrevious_Click);
|
||||||
|
//
|
||||||
|
// buttonNext
|
||||||
|
//
|
||||||
|
this.buttonNext.Dock = System.Windows.Forms.DockStyle.Left;
|
||||||
|
this.buttonNext.FlatAppearance.BorderColor = System.Drawing.Color.White;
|
||||||
|
this.buttonNext.FlatAppearance.BorderSize = 3;
|
||||||
|
this.buttonNext.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||||
|
this.buttonNext.Font = new System.Drawing.Font("Microsoft Sans Serif", 18F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||||
|
this.buttonNext.ForeColor = System.Drawing.Color.White;
|
||||||
|
this.buttonNext.Location = new System.Drawing.Point(494, 3);
|
||||||
|
this.buttonNext.Name = "buttonNext";
|
||||||
|
this.buttonNext.Size = new System.Drawing.Size(41, 41);
|
||||||
|
this.buttonNext.TabIndex = 46;
|
||||||
|
this.buttonNext.Text = ">";
|
||||||
|
this.buttonNext.UseVisualStyleBackColor = true;
|
||||||
|
this.buttonNext.EnabledChanged += new System.EventHandler(this.button_EnabledChanged);
|
||||||
|
this.buttonNext.Click += new System.EventHandler(this.buttonNext_Click);
|
||||||
|
//
|
||||||
|
// panelText
|
||||||
|
//
|
||||||
|
this.panelText.Controls.Add(this.labelText);
|
||||||
|
this.panelText.Controls.Add(this.labelHeader);
|
||||||
|
this.panelText.Controls.Add(this.pictureBoxScreen);
|
||||||
|
this.panelText.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||||
|
this.panelText.Location = new System.Drawing.Point(0, 0);
|
||||||
|
this.panelText.Name = "panelText";
|
||||||
|
this.panelText.Size = new System.Drawing.Size(800, 380);
|
||||||
|
this.panelText.TabIndex = 2;
|
||||||
|
//
|
||||||
|
// labelText
|
||||||
|
//
|
||||||
|
this.labelText.AutoSize = true;
|
||||||
|
this.labelText.Dock = System.Windows.Forms.DockStyle.Top;
|
||||||
|
this.labelText.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||||
|
this.labelText.ForeColor = System.Drawing.Color.White;
|
||||||
|
this.labelText.Location = new System.Drawing.Point(0, 42);
|
||||||
|
this.labelText.Name = "labelText";
|
||||||
|
this.labelText.Size = new System.Drawing.Size(0, 20);
|
||||||
|
this.labelText.TabIndex = 2;
|
||||||
|
this.labelText.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
||||||
|
this.labelText.Resize += new System.EventHandler(this.labelText_Resize);
|
||||||
|
//
|
||||||
|
// labelHeader
|
||||||
|
//
|
||||||
|
this.labelHeader.Dock = System.Windows.Forms.DockStyle.Top;
|
||||||
|
this.labelHeader.Font = new System.Drawing.Font("Microsoft Sans Serif", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||||
|
this.labelHeader.ForeColor = System.Drawing.Color.White;
|
||||||
|
this.labelHeader.Location = new System.Drawing.Point(0, 0);
|
||||||
|
this.labelHeader.Name = "labelHeader";
|
||||||
|
this.labelHeader.Size = new System.Drawing.Size(800, 42);
|
||||||
|
this.labelHeader.TabIndex = 1;
|
||||||
|
this.labelHeader.Text = "label1";
|
||||||
|
this.labelHeader.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
||||||
|
//
|
||||||
|
// pictureBoxScreen
|
||||||
|
//
|
||||||
|
this.pictureBoxScreen.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.pictureBoxScreen.BackColor = System.Drawing.Color.SkyBlue;
|
||||||
|
this.pictureBoxScreen.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
|
||||||
|
this.pictureBoxScreen.Location = new System.Drawing.Point(0, 149);
|
||||||
|
this.pictureBoxScreen.Name = "pictureBoxScreen";
|
||||||
|
this.pictureBoxScreen.Size = new System.Drawing.Size(800, 231);
|
||||||
|
this.pictureBoxScreen.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
|
||||||
|
this.pictureBoxScreen.TabIndex = 0;
|
||||||
|
this.pictureBoxScreen.TabStop = false;
|
||||||
|
//
|
||||||
|
// FormOnBoarding
|
||||||
|
//
|
||||||
|
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(800, 450);
|
||||||
|
this.Controls.Add(this.panelText);
|
||||||
|
this.Controls.Add(this.panelButtons);
|
||||||
|
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
||||||
|
this.MaximizeBox = false;
|
||||||
|
this.MinimizeBox = false;
|
||||||
|
this.Name = "FormOnBoarding";
|
||||||
|
this.Text = "OnBoarding";
|
||||||
|
this.Load += new System.EventHandler(this.FormOnBoarding_Load);
|
||||||
|
this.Shown += new System.EventHandler(this.FormOnBoarding_Shown);
|
||||||
|
this.Resize += new System.EventHandler(this.FormOnBoarding_Resize);
|
||||||
|
this.panelButtons.ResumeLayout(false);
|
||||||
|
this.tLPButtons.ResumeLayout(false);
|
||||||
|
this.panelText.ResumeLayout(false);
|
||||||
|
this.panelText.PerformLayout();
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.pictureBoxScreen)).EndInit();
|
||||||
|
this.ResumeLayout(false);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
private System.Windows.Forms.Panel panelButtons;
|
||||||
|
private System.Windows.Forms.Panel panelText;
|
||||||
|
private System.Windows.Forms.PictureBox pictureBoxScreen;
|
||||||
|
private System.Windows.Forms.Label labelText;
|
||||||
|
private System.Windows.Forms.Label labelHeader;
|
||||||
|
private System.Windows.Forms.TableLayoutPanel tLPButtons;
|
||||||
|
private System.Windows.Forms.Button buttonNext;
|
||||||
|
private System.Windows.Forms.Button buttonPrevious;
|
||||||
|
private System.Windows.Forms.Button buttonFertig;
|
||||||
|
}
|
||||||
|
}
|
||||||
223
AA-Forms/FormOnBoarding.cs
Normal file
223
AA-Forms/FormOnBoarding.cs
Normal file
@ -0,0 +1,223 @@
|
|||||||
|
using DatenDB;
|
||||||
|
using Deckungsbeitrag.Properties;
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.ComponentModel;
|
||||||
|
using System.Configuration;
|
||||||
|
using System.Data;
|
||||||
|
using System.Drawing;
|
||||||
|
using System.IO;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Runtime;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using System.Windows.Forms;
|
||||||
|
using static System.Windows.Forms.LinkLabel;
|
||||||
|
|
||||||
|
namespace Deckungsbeitrag.AA_Forms
|
||||||
|
{
|
||||||
|
public partial class FormOnBoarding : Form
|
||||||
|
{
|
||||||
|
private Dictionary<string, (string text, Image bild)> OnBoardingText;
|
||||||
|
private string userid;
|
||||||
|
private OnboardingSchritt onBoardingArt;
|
||||||
|
private static string savePath = ConfigurationManager.AppSettings["DateiSavePfad"];
|
||||||
|
private string[] schritte;
|
||||||
|
private int Schritt = 0;
|
||||||
|
private int MaxSchritte;
|
||||||
|
private bool retour = false;
|
||||||
|
|
||||||
|
public FormOnBoarding()
|
||||||
|
{
|
||||||
|
InitializeComponent();
|
||||||
|
}
|
||||||
|
|
||||||
|
public FormOnBoarding(string userid, OnboardingSchritt OnBoardingArt) : this()
|
||||||
|
{
|
||||||
|
// Wenn der Aufruf von Main kommt ist die userid die BenutzerRolle als string.
|
||||||
|
this.userid = userid;
|
||||||
|
this.onBoardingArt = OnBoardingArt;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void FormOnBoarding_Load(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
GetDictionary();
|
||||||
|
|
||||||
|
if (OnBoardingText != null)
|
||||||
|
{
|
||||||
|
MaxSchritte = OnBoardingText.Count;
|
||||||
|
schritte = OnBoardingText.Keys.ToArray();
|
||||||
|
LoadControls(Schritt);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Buttons Vor und Zurück werden erstellt.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="schritt"></param>
|
||||||
|
private void LoadControls(int schritt)
|
||||||
|
{
|
||||||
|
if (MaxSchritte == (Schritt + 1)) { this.buttonNext.Enabled = false; this.buttonFertig.Enabled = true; }
|
||||||
|
else { this.buttonNext.Enabled = true; this.buttonFertig.Enabled = false; }
|
||||||
|
if (Schritt == 0) this.buttonPrevious.Enabled = false;
|
||||||
|
else this.buttonPrevious.Enabled = true;
|
||||||
|
|
||||||
|
if (retour)
|
||||||
|
{
|
||||||
|
this.labelHeader.Text = $"Dein OnBoarding für {onBoardingArt}";
|
||||||
|
this.pictureBoxScreen.Image = OnBoardingText[schritte[Schritt]].bild;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
this.labelHeader.Text = $"Dein OnBoarding für {onBoardingArt}";
|
||||||
|
this.pictureBoxScreen.Image = OnBoardingText[schritte[schritt]].bild;
|
||||||
|
this.labelText.Text += OnBoardingText[schritte[schritt]].text;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
private void GetDictionary()
|
||||||
|
{
|
||||||
|
switch (onBoardingArt)
|
||||||
|
{
|
||||||
|
case OnboardingSchritt.NeuerAuftrag:
|
||||||
|
switch (userid)
|
||||||
|
{
|
||||||
|
case var u when u == "fahrer":
|
||||||
|
OnBoardingText = LoadDictionary("FahrerNeuerAuftrag");
|
||||||
|
break;
|
||||||
|
case var u when u == "admin":
|
||||||
|
break;
|
||||||
|
case var u when u == "verwaltung":
|
||||||
|
break;
|
||||||
|
case var u when u == "expedit":
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case OnboardingSchritt.Main:
|
||||||
|
// Unterscheidung zwischen UserID da Main unterschiedliche OnBoardings für User hat. (Unterschiedliche Buttons und GroupBoxen zu erklären)
|
||||||
|
switch (userid)
|
||||||
|
{
|
||||||
|
case var u when u == "fahrer":
|
||||||
|
OnBoardingText = LoadDictionary("FahrerMain");
|
||||||
|
break;
|
||||||
|
case var u when u == "admin":
|
||||||
|
break;
|
||||||
|
case var u when u == "verwaltung":
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case OnboardingSchritt.Expedit:
|
||||||
|
break;
|
||||||
|
case OnboardingSchritt.Tourenplanung:
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
OnBoardingText = LoadDictionary("Login");
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
private Dictionary<string, (string text, Image bild)> LoadDictionary(string art)
|
||||||
|
{
|
||||||
|
string path = Path.Combine(savePath, "OnBoarding");
|
||||||
|
string txtFile = "onboarding.txt";
|
||||||
|
Dictionary<string, (string text, Image bild)> dictionary = new Dictionary<string, (string text, Image bild)>();
|
||||||
|
|
||||||
|
if (!File.Exists(Path.Combine(path, txtFile)))
|
||||||
|
{
|
||||||
|
MessageBox.Show($"Onboarding-Datei nicht gefunden: {txtFile}", "Fehler", MessageBoxButtons.OK, MessageBoxIcon.Warning);
|
||||||
|
Program.AddFehler(null, $"Onboarding-Datei nicht gefunden: {Path.Combine(path, txtFile)}", string.Empty, null);
|
||||||
|
return null; // oder Fallback-Daten laden
|
||||||
|
}
|
||||||
|
string[] lines = File.ReadAllLines(Path.Combine(path, "onboarding.txt"));
|
||||||
|
int i = 0;
|
||||||
|
foreach (string line in lines)
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
if (!line.StartsWith(art)) continue;
|
||||||
|
var parts = line.Split('|');
|
||||||
|
string key = parts[0].Trim();
|
||||||
|
string text = parts[1].Trim();
|
||||||
|
|
||||||
|
string imagePath = Path.Combine(path, key + ".png");
|
||||||
|
if (File.Exists(imagePath))
|
||||||
|
dictionary.Add(key, (i > 0 ? Environment.NewLine + text : text, Image.FromFile(imagePath)));
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
// Loggen oder MessageBox in WinForms
|
||||||
|
Console.WriteLine($"Fehler bei Zeile '{line}': {ex.Message}");
|
||||||
|
Program.AddFehler(null, $"Fehler bei Zeile '{line}': {ex.Message}", ex.StackTrace, null);
|
||||||
|
}
|
||||||
|
i++;
|
||||||
|
}
|
||||||
|
|
||||||
|
return dictionary;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void buttonNext_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (MaxSchritte == (Schritt + 1)) return;
|
||||||
|
this.SuspendLayout();
|
||||||
|
Schritt++;
|
||||||
|
LoadControls(Schritt);
|
||||||
|
this.ResumeLayout();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void buttonPrevious_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (Schritt == 0) return;
|
||||||
|
retour = true;
|
||||||
|
this.SuspendLayout();
|
||||||
|
Schritt--;
|
||||||
|
LoadControls(Schritt);
|
||||||
|
this.ResumeLayout();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void button_EnabledChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
Button btn = (Button)sender;
|
||||||
|
if (!btn.Enabled) btn.Visible = false;
|
||||||
|
else btn.Visible = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void buttonFertig_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
this.DialogResult = DialogResult.OK;
|
||||||
|
this.Close();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void buttonFertig_EnabledChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
Button btn = (Button)sender;
|
||||||
|
if (!btn.Enabled) { btn.BackColor = Color.Gray; btn.ForeColor = Color.White; }
|
||||||
|
else { btn.BackColor = Color.Green; btn.ForeColor = Color.White; }
|
||||||
|
}
|
||||||
|
|
||||||
|
private void FormOnBoarding_Resize(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
this.labelText.MaximumSize = new Size(this.Width, 0);
|
||||||
|
this.pictureBoxScreen.Height = this.panelButtons.Top - this.labelText.Bottom;
|
||||||
|
this.pictureBoxScreen.Dock = DockStyle.Bottom;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
private void FormOnBoarding_Shown(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
this.labelText.MaximumSize = new Size(this.Width, this.pictureBoxScreen.Top);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void labelText_Resize(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (this.labelText.Bottom <= this.pictureBoxScreen.Top) return;
|
||||||
|
|
||||||
|
this.pictureBoxScreen.Height = this.panelButtons.Top - this.labelText.Bottom;
|
||||||
|
this.pictureBoxScreen.Dock = DockStyle.Bottom;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
219
AA-Forms/FormOnBoarding.resx
Normal file
219
AA-Forms/FormOnBoarding.resx
Normal file
@ -0,0 +1,219 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<root>
|
||||||
|
<!--
|
||||||
|
Microsoft ResX Schema
|
||||||
|
|
||||||
|
Version 2.0
|
||||||
|
|
||||||
|
The primary goals of this format is to allow a simple XML format
|
||||||
|
that is mostly human readable. The generation and parsing of the
|
||||||
|
various data types are done through the TypeConverter classes
|
||||||
|
associated with the data types.
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
|
... ado.net/XML headers & schema ...
|
||||||
|
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||||
|
<resheader name="version">2.0</resheader>
|
||||||
|
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||||
|
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||||
|
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||||
|
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||||
|
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||||
|
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||||
|
</data>
|
||||||
|
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||||
|
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||||
|
<comment>This is a comment</comment>
|
||||||
|
</data>
|
||||||
|
|
||||||
|
There are any number of "resheader" rows that contain simple
|
||||||
|
name/value pairs.
|
||||||
|
|
||||||
|
Each data row contains a name, and value. The row also contains a
|
||||||
|
type or mimetype. Type corresponds to a .NET class that support
|
||||||
|
text/value conversion through the TypeConverter architecture.
|
||||||
|
Classes that don't support this are serialized and stored with the
|
||||||
|
mimetype set.
|
||||||
|
|
||||||
|
The mimetype is used for serialized objects, and tells the
|
||||||
|
ResXResourceReader how to depersist the object. This is currently not
|
||||||
|
extensible. For a given mimetype the value must be set accordingly:
|
||||||
|
|
||||||
|
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||||
|
that the ResXResourceWriter will generate, however the reader can
|
||||||
|
read any of the formats listed below.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.binary.base64
|
||||||
|
value : The object must be serialized with
|
||||||
|
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.soap.base64
|
||||||
|
value : The object must be serialized with
|
||||||
|
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||||
|
value : The object must be serialized into a byte array
|
||||||
|
: using a System.ComponentModel.TypeConverter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
-->
|
||||||
|
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||||
|
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||||
|
<xsd:element name="root" msdata:IsDataSet="true">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:choice maxOccurs="unbounded">
|
||||||
|
<xsd:element name="metadata">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||||
|
<xsd:attribute name="type" type="xsd:string" />
|
||||||
|
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||||
|
<xsd:attribute ref="xml:space" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="assembly">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:attribute name="alias" type="xsd:string" />
|
||||||
|
<xsd:attribute name="name" type="xsd:string" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="data">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||||
|
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||||
|
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||||
|
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||||
|
<xsd:attribute ref="xml:space" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="resheader">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
</xsd:choice>
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
</xsd:schema>
|
||||||
|
<resheader name="resmimetype">
|
||||||
|
<value>text/microsoft-resx</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="version">
|
||||||
|
<value>2.0</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="reader">
|
||||||
|
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="writer">
|
||||||
|
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
|
</resheader>
|
||||||
|
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||||
|
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||||
|
<value>
|
||||||
|
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
|
||||||
|
QmCC
|
||||||
|
</value>
|
||||||
|
</data>
|
||||||
|
</root>
|
||||||
56
AA-Forms/FormShowGroupBox.Designer.cs
generated
Normal file
56
AA-Forms/FormShowGroupBox.Designer.cs
generated
Normal file
@ -0,0 +1,56 @@
|
|||||||
|
namespace Deckungsbeitrag.AA_Forms
|
||||||
|
{
|
||||||
|
partial class FormShowGroupBox
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Required designer variable.
|
||||||
|
/// </summary>
|
||||||
|
private System.ComponentModel.IContainer components = null;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Clean up any resources being used.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||||
|
protected override void Dispose(bool disposing)
|
||||||
|
{
|
||||||
|
if (disposing && (components != null))
|
||||||
|
{
|
||||||
|
components.Dispose();
|
||||||
|
}
|
||||||
|
base.Dispose(disposing);
|
||||||
|
}
|
||||||
|
|
||||||
|
#region Windows Form Designer generated code
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Required method for Designer support - do not modify
|
||||||
|
/// the contents of this method with the code editor.
|
||||||
|
/// </summary>
|
||||||
|
private void InitializeComponent()
|
||||||
|
{
|
||||||
|
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormShowGroupBox));
|
||||||
|
this.SuspendLayout();
|
||||||
|
//
|
||||||
|
// FormShowGroupBox
|
||||||
|
//
|
||||||
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||||
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||||
|
this.BackColor = System.Drawing.SystemColors.Control;
|
||||||
|
this.ClientSize = new System.Drawing.Size(356, 450);
|
||||||
|
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
|
||||||
|
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
||||||
|
this.MaximizeBox = false;
|
||||||
|
this.MinimizeBox = false;
|
||||||
|
this.Name = "FormShowGroupBox";
|
||||||
|
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
|
||||||
|
this.Text = "FormShowGroupBox";
|
||||||
|
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FormShowGroupBox_FormClosing);
|
||||||
|
this.Load += new System.EventHandler(this.FormShowGroupBox_Load);
|
||||||
|
this.Shown += new System.EventHandler(this.FormShowGroupBox_Shown);
|
||||||
|
this.ResumeLayout(false);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
}
|
||||||
|
}
|
||||||
92
AA-Forms/FormShowGroupBox.cs
Normal file
92
AA-Forms/FormShowGroupBox.cs
Normal file
@ -0,0 +1,92 @@
|
|||||||
|
using DatenDB;
|
||||||
|
using Deckungsbeitrag.UserControls;
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.ComponentModel;
|
||||||
|
using System.Data;
|
||||||
|
using System.Drawing;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using System.Windows.Forms;
|
||||||
|
|
||||||
|
namespace Deckungsbeitrag.AA_Forms
|
||||||
|
{
|
||||||
|
|
||||||
|
public partial class FormShowGroupBox : Form
|
||||||
|
{
|
||||||
|
private Benutzer benutzer;
|
||||||
|
private UCAuftragSuchen ucas;
|
||||||
|
private UCStatistik ucs;
|
||||||
|
private UCAuftragListe ucal;
|
||||||
|
private UserControl uc;
|
||||||
|
public List<Auftrag> auftragliste;
|
||||||
|
private string gb;
|
||||||
|
private bool toclose = false;
|
||||||
|
|
||||||
|
public bool _toclose
|
||||||
|
{
|
||||||
|
get { return toclose; }
|
||||||
|
set
|
||||||
|
{
|
||||||
|
if (toclose != value)
|
||||||
|
{
|
||||||
|
toclose = value;
|
||||||
|
if (toclose == true)
|
||||||
|
{
|
||||||
|
this.Close();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
public FormShowGroupBox()
|
||||||
|
{
|
||||||
|
InitializeComponent();
|
||||||
|
}
|
||||||
|
public FormShowGroupBox(string groupBox, Benutzer user) : this()
|
||||||
|
{
|
||||||
|
this.gb = groupBox;
|
||||||
|
this.benutzer = user;
|
||||||
|
this.Text = gb;
|
||||||
|
}
|
||||||
|
public FormShowGroupBox(string groupBox, Benutzer user, List<Auftrag> auftragListe) : this(groupBox, user)
|
||||||
|
{
|
||||||
|
this.auftragliste = auftragListe;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void FormShowGroupBox_Load(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
switch (this.gb)
|
||||||
|
{
|
||||||
|
case var t when t == "Auftrag Suchen":
|
||||||
|
{
|
||||||
|
uc = new UCAuftragSuchen(this.benutzer, this);
|
||||||
|
this.Controls.Add(uc);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case var t when t == "Statistik":
|
||||||
|
{
|
||||||
|
uc = new UCStatistik();
|
||||||
|
this.Controls.Add(uc);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case var t when t == "Auftragliste":
|
||||||
|
uc = new UCAuftragListe(this.benutzer, this.auftragliste);
|
||||||
|
this.Controls.Add(uc);
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
private void FormShowGroupBox_Shown(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
this.ClientSize = new Size(uc.Width, uc.Height);
|
||||||
|
//ucs.Location = new Point(5, 10);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void FormShowGroupBox_FormClosing(object sender, FormClosingEventArgs e)
|
||||||
|
{
|
||||||
|
if (this.benutzer.Rolle == BenutzerRolle.Expedit) this.DialogResult = DialogResult.OK;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
219
AA-Forms/FormShowGroupBox.resx
Normal file
219
AA-Forms/FormShowGroupBox.resx
Normal file
@ -0,0 +1,219 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<root>
|
||||||
|
<!--
|
||||||
|
Microsoft ResX Schema
|
||||||
|
|
||||||
|
Version 2.0
|
||||||
|
|
||||||
|
The primary goals of this format is to allow a simple XML format
|
||||||
|
that is mostly human readable. The generation and parsing of the
|
||||||
|
various data types are done through the TypeConverter classes
|
||||||
|
associated with the data types.
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
|
... ado.net/XML headers & schema ...
|
||||||
|
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||||
|
<resheader name="version">2.0</resheader>
|
||||||
|
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||||
|
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||||
|
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||||
|
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||||
|
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||||
|
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||||
|
</data>
|
||||||
|
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||||
|
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||||
|
<comment>This is a comment</comment>
|
||||||
|
</data>
|
||||||
|
|
||||||
|
There are any number of "resheader" rows that contain simple
|
||||||
|
name/value pairs.
|
||||||
|
|
||||||
|
Each data row contains a name, and value. The row also contains a
|
||||||
|
type or mimetype. Type corresponds to a .NET class that support
|
||||||
|
text/value conversion through the TypeConverter architecture.
|
||||||
|
Classes that don't support this are serialized and stored with the
|
||||||
|
mimetype set.
|
||||||
|
|
||||||
|
The mimetype is used for serialized objects, and tells the
|
||||||
|
ResXResourceReader how to depersist the object. This is currently not
|
||||||
|
extensible. For a given mimetype the value must be set accordingly:
|
||||||
|
|
||||||
|
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||||
|
that the ResXResourceWriter will generate, however the reader can
|
||||||
|
read any of the formats listed below.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.binary.base64
|
||||||
|
value : The object must be serialized with
|
||||||
|
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.soap.base64
|
||||||
|
value : The object must be serialized with
|
||||||
|
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||||
|
value : The object must be serialized into a byte array
|
||||||
|
: using a System.ComponentModel.TypeConverter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
-->
|
||||||
|
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||||
|
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||||
|
<xsd:element name="root" msdata:IsDataSet="true">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:choice maxOccurs="unbounded">
|
||||||
|
<xsd:element name="metadata">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||||
|
<xsd:attribute name="type" type="xsd:string" />
|
||||||
|
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||||
|
<xsd:attribute ref="xml:space" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="assembly">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:attribute name="alias" type="xsd:string" />
|
||||||
|
<xsd:attribute name="name" type="xsd:string" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="data">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||||
|
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||||
|
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||||
|
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||||
|
<xsd:attribute ref="xml:space" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="resheader">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
</xsd:choice>
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
</xsd:schema>
|
||||||
|
<resheader name="resmimetype">
|
||||||
|
<value>text/microsoft-resx</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="version">
|
||||||
|
<value>2.0</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="reader">
|
||||||
|
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="writer">
|
||||||
|
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
|
</resheader>
|
||||||
|
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||||
|
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||||
|
<value>
|
||||||
|
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
|
||||||
|
QmCC
|
||||||
|
</value>
|
||||||
|
</data>
|
||||||
|
</root>
|
||||||
@ -53,6 +53,19 @@ namespace DatenDB
|
|||||||
DatenbankConnection.GetConnection().Close();
|
DatenbankConnection.GetConnection().Close();
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
internal static string GetShort(int? artikelID)
|
||||||
|
{
|
||||||
|
DatenbankConnection.GetConnection().Open();
|
||||||
|
string result = null;
|
||||||
|
NpgsqlCommand command = new NpgsqlCommand();
|
||||||
|
command.Connection = DatenbankConnection.GetConnection();
|
||||||
|
command.CommandText = $"select short from {TABLE} where artikel_id = {artikelID}";
|
||||||
|
NpgsqlDataReader reader = command.ExecuteReader();
|
||||||
|
while (reader.Read()) result = reader.IsDBNull(0) ? string.Empty : reader.GetString(0);
|
||||||
|
reader.Close();
|
||||||
|
DatenbankConnection.GetConnection().Close();
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
public static Artikel GetArtikel(int? artikelNr)
|
public static Artikel GetArtikel(int? artikelNr)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -1,6 +1,7 @@
|
|||||||
using BrightIdeasSoftware;
|
using BrightIdeasSoftware;
|
||||||
using Deckungsbeitrag;
|
using Deckungsbeitrag;
|
||||||
using Deckungsbeitrag.AA_Klassen;
|
using Deckungsbeitrag.AA_Klassen;
|
||||||
|
using Deckungsbeitrag.UserControls;
|
||||||
using HarfBuzzSharp;
|
using HarfBuzzSharp;
|
||||||
using Npgsql;
|
using Npgsql;
|
||||||
using System;
|
using System;
|
||||||
@ -17,6 +18,17 @@ using static System.Windows.Forms.VisualStyles.VisualStyleElement;
|
|||||||
namespace DatenDB
|
namespace DatenDB
|
||||||
{
|
{
|
||||||
#region Enums
|
#region Enums
|
||||||
|
public enum AuftragPriority
|
||||||
|
{
|
||||||
|
None = 0,
|
||||||
|
First = 1,
|
||||||
|
Second = 2,
|
||||||
|
Third = 3,
|
||||||
|
Fourth = 4,
|
||||||
|
Fifth = 5
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Enum AuftragStatus
|
/// Enum AuftragStatus
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -70,10 +82,10 @@ namespace DatenDB
|
|||||||
|
|
||||||
public class Auftrag
|
public class Auftrag
|
||||||
{
|
{
|
||||||
// 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
|
// 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
|
||||||
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, abteilungen_status, rhythmus";
|
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, abteilungen_status, rhythmus, priority";
|
||||||
// 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
|
// 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
|
||||||
public const string ACOLUMNS = "a.auftrag_id, a.benutzer_id, a.aufgabe_id, a.kunde_id, a.zusatz, a.liefertag, a.gedruckt, a.gedruckt_von, a.erledigt, a.erledigt_von, a.erstellt, a.erstellt_von, a.status, a.tour_id, a.container_dirt, a.maschine_id, a.container_clean, a.typ, a.aufgabe_erledigt, a.abteilungen_status, a.rhythmus";
|
public const string ACOLUMNS = "a.auftrag_id, a.benutzer_id, a.aufgabe_id, a.kunde_id, a.zusatz, a.liefertag, a.gedruckt, a.gedruckt_von, a.erledigt, a.erledigt_von, a.erstellt, a.erstellt_von, a.status, a.tour_id, a.container_dirt, a.maschine_id, a.container_clean, a.typ, a.aufgabe_erledigt, a.abteilungen_status, a.rhythmus, a.priority";
|
||||||
private const string TABLE = "kundenverwaltung.auftrag";
|
private const string TABLE = "kundenverwaltung.auftrag";
|
||||||
public const string ASPECTS = "FahrerID,AufgabeID,KundeID,ZusatzInfo,Wann,Gedruckt,Erledigt,Erstellt von,Erstellt Am";
|
public const string ASPECTS = "FahrerID,AufgabeID,KundeID,ZusatzInfo,Wann,Gedruckt,Erledigt,Erstellt von,Erstellt Am";
|
||||||
static bool isExpedit = false;
|
static bool isExpedit = false;
|
||||||
@ -81,18 +93,31 @@ namespace DatenDB
|
|||||||
public Auftrag()
|
public Auftrag()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
#region async Tasks
|
#region async Tasks
|
||||||
public static async Task<List<Auftrag>> GetAuftragListTodayAsync(DateTime produktion, NpgsqlConnection conn, AuftragTyp typ, int? abtstatus)
|
public static async Task<List<Auftrag>> GetAuftragListTodayAsync(AuftragStatus? status, NpgsqlConnection conn, AuftragTyp? typ, int? abtstatus)
|
||||||
{
|
{
|
||||||
List<Auftrag> resultList = new List<Auftrag>();
|
List<Auftrag> resultList = new List<Auftrag>();
|
||||||
bool isExpedit = true;
|
bool isExpedit = true;
|
||||||
using (var command = new NpgsqlCommand())
|
using (var command = new NpgsqlCommand())
|
||||||
{
|
{
|
||||||
command.Connection = conn;
|
command.Connection = conn;
|
||||||
if (abtstatus != null) command.CommandText = $"SELECT {ACOLUMNS}, k.name1 as kunde_name, k.suchtext as suchtext, u.benutzer_name as fahrer FROM {TABLE} a left join kundenverwaltung.kunde k on a.kunde_id = k.kunde_id left join kundenverwaltung.benutzer u on a.benutzer_id = u.benutzer_id WHERE typ = {(int)typ} AND status < {(int)AuftragStatus.Fertig} AND (a.abteilungen_status & 2) = 0 ORDER BY liefertag ASC";
|
// Listen für FROTTEE EXPEDIT
|
||||||
else command.CommandText = $"SELECT {ACOLUMNS}, k.name1 as kunde_name, k.suchtext as suchtext, u.benutzer_name as fahrer FROM {TABLE} a left join kundenverwaltung.kunde k on a.kunde_id = k.kunde_id left join kundenverwaltung.benutzer u on a.benutzer_id = u.benutzer_id WHERE typ = {(int)typ} AND status < {(int)AuftragStatus.Fertig} ORDER BY liefertag ASC"; //Aufträge Typ STANDART, Status kleiner FERTIG Erstellungsdatum EGAL.
|
if (abtstatus != null) command.CommandText = $"SELECT {ACOLUMNS}, k.name1 as kunde_name, k.suchtext as suchtext, u.benutzer_name as fahrer FROM {TABLE} a left join kundenverwaltung.kunde k on a.kunde_id = k.kunde_id left join kundenverwaltung.benutzer u on a.benutzer_id = u.benutzer_id WHERE status < {(int)status} AND status > {(int)AuftragStatus.Aufgelegt} AND (a.abteilungen_status & 2) = 0 ORDER BY liefertag ASC";
|
||||||
// Sollten Aufträge nicht richtig angezeigt werden: else command.CommandText = $"SELECT {ACOLUMNS}, k.name1 as kunde_name, k.suchtext as suchtext, u.benutzer_name as fahrer FROM {TABLE} a left join kundenverwaltung.kunde k on a.kunde_id = k.kunde_id left join kundenverwaltung.benutzer u on a.benutzer_id = u.benutzer_id WHERE typ = {(int)typ} AND erstellt::date = @produktion OR typ = {(int)typ} AND status < {(int)AuftragStatus.Fertig} ORDER BY liefertag ASC"; //Status kleiner FERTIG
|
else
|
||||||
command.Parameters.AddWithValue("@produktion", produktion.Date);
|
{
|
||||||
|
// Listen für EXPEDIT
|
||||||
|
// Aufträge mit: alle Typen, mit Status "Gewaschen" und "Herrichten" fällig HEUTE + 2 Tage
|
||||||
|
if (typ == null) command.CommandText = $"SELECT {ACOLUMNS}, k.name1 as kunde_name, k.suchtext as suchtext, u.benutzer_name as fahrer FROM {TABLE} a left join kundenverwaltung.kunde k on a.kunde_id = k.kunde_id left join kundenverwaltung.benutzer u on a.benutzer_id = u.benutzer_id WHERE status < {(int)status} AND status > {(int)AuftragStatus.Aufgelegt} AND liefertag < '{DateTime.Today.Date.AddDays(2)}' ORDER BY liefertag ASC";
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if (status == null) command.CommandText = $"SELECT {ACOLUMNS}, k.name1 as kunde_name, k.suchtext as suchtext, u.benutzer_name as fahrer FROM {TABLE} a left join kundenverwaltung.kunde k on a.kunde_id = k.kunde_id left join kundenverwaltung.benutzer u on a.benutzer_id = u.benutzer_id WHERE typ = {(int)typ} and status < {(int)AuftragStatus.Vorbereitet} ORDER BY liefertag ASC";
|
||||||
|
else command.CommandText = $"SELECT {ACOLUMNS}, k.name1 as kunde_name, k.suchtext as suchtext, u.benutzer_name as fahrer FROM {TABLE} a left join kundenverwaltung.kunde k on a.kunde_id = k.kunde_id left join kundenverwaltung.benutzer u on a.benutzer_id = u.benutzer_id WHERE typ <= {(int)typ} AND status = {(int)status} ORDER BY liefertag ASC";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
using (var reader = await command.ExecuteReaderAsync())
|
using (var reader = await command.ExecuteReaderAsync())
|
||||||
{
|
{
|
||||||
@ -104,7 +129,7 @@ namespace DatenDB
|
|||||||
//isExpedit1 = false;
|
//isExpedit1 = false;
|
||||||
return resultList;
|
return resultList;
|
||||||
}
|
}
|
||||||
public static async Task<List<Auftrag>> GetExpeditListsAsync(int? typ, NpgsqlConnection conn, int? abtstatus)
|
public static async Task<List<Auftrag>> GetSonderListsAsync(int? typ, NpgsqlConnection conn, int? abtstatus)
|
||||||
{
|
{
|
||||||
List<Auftrag> resultList = new List<Auftrag>();
|
List<Auftrag> resultList = new List<Auftrag>();
|
||||||
isExpedit = true;
|
isExpedit = true;
|
||||||
@ -177,7 +202,7 @@ namespace DatenDB
|
|||||||
using (var command = new NpgsqlCommand())
|
using (var command = new NpgsqlCommand())
|
||||||
{
|
{
|
||||||
command.Connection = conn;
|
command.Connection = conn;
|
||||||
command.CommandText = $"SELECT {COLUMNS} from {TABLE} where status <= {(int)aufgelegt} and liefertag >= CURRENT_DATE order by liefertag";
|
command.CommandText = $"SELECT {COLUMNS} from {TABLE} where status <= {(int)aufgelegt} and liefertag >= CURRENT_DATE order by liefertag ASC and priority ASC";
|
||||||
|
|
||||||
using (var reader = await command.ExecuteReaderAsync())
|
using (var reader = await command.ExecuteReaderAsync())
|
||||||
{
|
{
|
||||||
@ -198,15 +223,15 @@ namespace DatenDB
|
|||||||
}
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
public static List<Auftrag> GetFinishingList(ArtikelKategorie kategorie)
|
||||||
public static List<Auftrag> GetFinishingList()
|
|
||||||
{
|
{
|
||||||
DatenbankConnection.GetConnection().Open();
|
DatenbankConnection.GetConnection().Open();
|
||||||
List<Auftrag> resultList = new List<Auftrag>();
|
List<Auftrag> resultList = new List<Auftrag>();
|
||||||
NpgsqlCommand cmd = new NpgsqlCommand();
|
NpgsqlCommand cmd = new NpgsqlCommand();
|
||||||
cmd.Connection = DatenbankConnection.GetConnection();
|
cmd.Connection = DatenbankConnection.GetConnection();
|
||||||
|
//cmd.CommandText = $"select {COLUMNS} from {TABLE} where status = 2 order by liefertag asc";
|
||||||
cmd.CommandText = $"select {COLUMNS} from {TABLE} where status = 2 order by liefertag asc";
|
if (kategorie == ArtikelKategorie.Frottee) cmd.CommandText = $"select {ACOLUMNS} from {TABLE} a JOIN kundenverwaltung.kunde_artikel k ON a.kunde_id = k.kunde_id JOIN kundenverwaltung.artikel b ON k.artikel_id = b.artikel_id WHERE a.status = 2 and b.kategorie = {(int)kategorie} or a.status = 2 and b.kategorie = 4 GROUP BY a.auftrag_id, a.kunde_id HAVING COUNT(*) >= 1";
|
||||||
|
else cmd.CommandText = $"select {ACOLUMNS} from {TABLE} a JOIN kundenverwaltung.kunde_artikel k ON a.kunde_id = k.kunde_id JOIN kundenverwaltung.artikel b ON k.artikel_id = b.artikel_id WHERE a.status = 2 and b.kategorie = {(int)kategorie} GROUP BY a.auftrag_id, a.kunde_id HAVING COUNT(*) >= 1";
|
||||||
|
|
||||||
NpgsqlDataReader reader = cmd.ExecuteReader();
|
NpgsqlDataReader reader = cmd.ExecuteReader();
|
||||||
while (reader.Read()) resultList.Add(new Auftrag(reader));
|
while (reader.Read()) resultList.Add(new Auftrag(reader));
|
||||||
@ -330,7 +355,7 @@ namespace DatenDB
|
|||||||
return result;
|
return result;
|
||||||
|
|
||||||
}
|
}
|
||||||
public static List<Auftrag> FindeAuftragVonKunde(Kunde kunde, string zusatz)
|
public static List<Auftrag> FindeAuftragVonKunde(Kunde kunde, string zusatz, string datum, DateTime? date)
|
||||||
{
|
{
|
||||||
List<Auftrag> result = new List<Auftrag>();
|
List<Auftrag> result = new List<Auftrag>();
|
||||||
DatenbankConnection.GetConnection().Open();
|
DatenbankConnection.GetConnection().Open();
|
||||||
@ -339,7 +364,8 @@ namespace DatenDB
|
|||||||
command.Connection = DatenbankConnection.GetConnection();
|
command.Connection = DatenbankConnection.GetConnection();
|
||||||
if (string.IsNullOrWhiteSpace(zusatz))
|
if (string.IsNullOrWhiteSpace(zusatz))
|
||||||
{
|
{
|
||||||
command.CommandText = $"select {COLUMNS} from {TABLE} where kunde_id = {kunde.KundeID} and status = {(int)AuftragStatus.Abgeholt}";
|
if (date == null) command.CommandText = $"select {COLUMNS} from {TABLE} where kunde_id = {kunde.KundeID} and status = {(int)AuftragStatus.Abgeholt}";
|
||||||
|
else command.CommandText = $"select {COLUMNS} from {TABLE} where kunde_id = {kunde.KundeID} and {datum} = '{date}'";
|
||||||
}
|
}
|
||||||
else command.CommandText = $"select {COLUMNS} from {TABLE} where kunde_id = {kunde.KundeID} and status = {(int)AuftragStatus.Abgeholt} and zusatz ~* '{zusatz}'";
|
else command.CommandText = $"select {COLUMNS} from {TABLE} where kunde_id = {kunde.KundeID} and status = {(int)AuftragStatus.Abgeholt} and zusatz ~* '{zusatz}'";
|
||||||
NpgsqlDataReader reader = command.ExecuteReader();
|
NpgsqlDataReader reader = command.ExecuteReader();
|
||||||
@ -407,8 +433,7 @@ namespace DatenDB
|
|||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
|
return result;
|
||||||
throw;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -425,7 +450,7 @@ namespace DatenDB
|
|||||||
if (this.Typ != AuftragTyp.Regelmäßig)
|
if (this.Typ != AuftragTyp.Regelmäßig)
|
||||||
{
|
{
|
||||||
if (exakt) command.CommandText = $"select auftrag_id from {TABLE} where kunde_id = {this.KundeID} and erstellt::date = '{this.Erstellt.Value.Date}' and liefertag = '{this.Liefertag}'";
|
if (exakt) command.CommandText = $"select auftrag_id from {TABLE} where kunde_id = {this.KundeID} and erstellt::date = '{this.Erstellt.Value.Date}' and liefertag = '{this.Liefertag}'";
|
||||||
else command.CommandText = $"select auftrag_id from {TABLE} where kunde = {this.KundeID} and liefertag = '{this.Liefertag}' and status = {(int)this.Status}";
|
else command.CommandText = $"select auftrag_id from {TABLE} where kunde_id = {this.KundeID} and liefertag = '{this.Liefertag}' and status = {(int)this.Status}";
|
||||||
}
|
}
|
||||||
else command.CommandText = $"select auftrag_id from {TABLE} where kunde_id = {this.KundeID} and typ = {(int)this.Typ}";
|
else command.CommandText = $"select auftrag_id from {TABLE} where kunde_id = {this.KundeID} and typ = {(int)this.Typ}";
|
||||||
NpgsqlDataReader reader = command.ExecuteReader();
|
NpgsqlDataReader reader = command.ExecuteReader();
|
||||||
@ -531,13 +556,14 @@ namespace DatenDB
|
|||||||
this.AufgabeErledigt = reader.IsDBNull(18) ? false : reader.GetBoolean(18);
|
this.AufgabeErledigt = reader.IsDBNull(18) ? false : reader.GetBoolean(18);
|
||||||
this.Abteilungen = reader.IsDBNull(19) ? AbteilungsStatus.Keine : (AbteilungsStatus)reader.GetInt16(19);
|
this.Abteilungen = reader.IsDBNull(19) ? AbteilungsStatus.Keine : (AbteilungsStatus)reader.GetInt16(19);
|
||||||
this.Rhythmus = reader.IsDBNull(20) ? RegRhythmen.Unbekannt : (RegRhythmen)reader.GetInt32(20);
|
this.Rhythmus = reader.IsDBNull(20) ? RegRhythmen.Unbekannt : (RegRhythmen)reader.GetInt32(20);
|
||||||
|
this.Priority = (AuftragPriority)reader.GetInt32(21);
|
||||||
|
|
||||||
if (isExpedit)
|
if (isExpedit)
|
||||||
{
|
{
|
||||||
this.Kundename = reader.GetString(21);
|
this.Kundename = reader.GetString(22);
|
||||||
this.Kundename = reader.IsDBNull(22) ? this.Kundename : reader.GetString(22);
|
this.Kundename = reader.IsDBNull(23) ? this.Kundename : reader.GetString(23);
|
||||||
if (this.Kundename == "BAR DIVERSE") this.Kundename = this.ZusatzInfo;
|
if (this.Kundename == "BAR DIVERSE") this.Kundename = this.ZusatzInfo;
|
||||||
this.Fahrer = reader.IsDBNull(23) ? string.Empty : reader.GetString(23);
|
this.Fahrer = reader.IsDBNull(24) ? string.Empty : reader.GetString(24);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -565,6 +591,7 @@ namespace DatenDB
|
|||||||
this.AufgabeErledigt = reader.IsDBNull(18) ? false : reader.GetBoolean(18);
|
this.AufgabeErledigt = reader.IsDBNull(18) ? false : reader.GetBoolean(18);
|
||||||
this.Abteilungen = reader.IsDBNull(19) ? AbteilungsStatus.Keine : (AbteilungsStatus)reader.GetInt16(19);
|
this.Abteilungen = reader.IsDBNull(19) ? AbteilungsStatus.Keine : (AbteilungsStatus)reader.GetInt16(19);
|
||||||
this.Rhythmus = reader.IsDBNull(20) ? RegRhythmen.Unbekannt : (RegRhythmen)reader.GetInt32(20);
|
this.Rhythmus = reader.IsDBNull(20) ? RegRhythmen.Unbekannt : (RegRhythmen)reader.GetInt32(20);
|
||||||
|
this.Priority = (AuftragPriority)reader.GetInt32(21);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -575,12 +602,6 @@ namespace DatenDB
|
|||||||
[OLVColumn("Kunde", DisplayIndex = 0)]
|
[OLVColumn("Kunde", DisplayIndex = 0)]
|
||||||
public string Kundename { get; set; }
|
public string Kundename { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// SPALTE 2 - CheckBoxen zur Auftragsauswahl als erste Spalte.
|
|
||||||
/// </summary>
|
|
||||||
[OLVColumn("Auswählen", CheckBoxes = true, DisplayIndex = 1)]
|
|
||||||
public bool IsChecked { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// SPALTE 3 - Liefertag mit ausgeschriebenen Tag als zweite Spalte.
|
/// SPALTE 3 - Liefertag mit ausgeschriebenen Tag als zweite Spalte.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -741,11 +762,10 @@ namespace DatenDB
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
[OLVColumn("Fahrer", DisplayIndex = 13)]
|
|
||||||
|
[OLVColumn("Fahrer", DisplayIndex = 13)]
|
||||||
public string Fahrer { get; set; }
|
public string Fahrer { get; set; }
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Zusatz und Typ Properties werden ausgeblendet.
|
/// Zusatz und Typ Properties werden ausgeblendet.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -756,6 +776,8 @@ namespace DatenDB
|
|||||||
/// Properties von ObjectListView ignoriert.
|
/// Properties von ObjectListView ignoriert.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[OLVIgnore]
|
[OLVIgnore]
|
||||||
|
public bool IsChecked { get; set; }
|
||||||
|
[OLVIgnore]
|
||||||
public int? AuftragID { get; set; }
|
public int? AuftragID { get; set; }
|
||||||
[OLVIgnore]
|
[OLVIgnore]
|
||||||
public int? GedrucktVon { get; set; }
|
public int? GedrucktVon { get; set; }
|
||||||
@ -788,6 +810,8 @@ namespace DatenDB
|
|||||||
public AbteilungsStatus Abteilungen { get; set; }
|
public AbteilungsStatus Abteilungen { get; set; }
|
||||||
[OLVIgnore]
|
[OLVIgnore]
|
||||||
public RegRhythmen Rhythmus { get; set; }
|
public RegRhythmen Rhythmus { get; set; }
|
||||||
|
[OLVIgnore]
|
||||||
|
public AuftragPriority Priority { get; set; } = 0;
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
private void SpeichereStatus()
|
private void SpeichereStatus()
|
||||||
@ -835,13 +859,13 @@ namespace DatenDB
|
|||||||
|
|
||||||
if (this.AuftragID.HasValue & this.AuftragID != 0)
|
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, aufgabe_erledigt = :p18, abteilungen_status = :p19, rhythmus = :p20 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, abteilungen_status = :p19, rhythmus = :p20, priority = :p21 WHERE auftrag_id = :p0";
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
command.CommandText = "select nextval('kundenverwaltung.auftrag_seq')";
|
command.CommandText = "select nextval('kundenverwaltung.auftrag_seq')";
|
||||||
this.AuftragID = result[1] = (int)(long)command.ExecuteScalar();
|
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, :p18, :p19, :p20)";
|
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, :p19, :p20, :p21)";
|
||||||
}
|
}
|
||||||
|
|
||||||
command.Parameters.AddWithValue("p0", this.AuftragID);
|
command.Parameters.AddWithValue("p0", this.AuftragID);
|
||||||
@ -865,6 +889,7 @@ namespace DatenDB
|
|||||||
command.Parameters.AddWithValue("p18", this.AufgabeErledigt);
|
command.Parameters.AddWithValue("p18", this.AufgabeErledigt);
|
||||||
command.Parameters.AddWithValue("p19", (int)this.Abteilungen);
|
command.Parameters.AddWithValue("p19", (int)this.Abteilungen);
|
||||||
command.Parameters.AddWithValue("p20", (int)this.Rhythmus);
|
command.Parameters.AddWithValue("p20", (int)this.Rhythmus);
|
||||||
|
command.Parameters.AddWithValue("p21", (int)this.Priority);
|
||||||
|
|
||||||
result[0] = command.ExecuteNonQuery();
|
result[0] = command.ExecuteNonQuery();
|
||||||
DatenbankConnection.GetConnection().Close();
|
DatenbankConnection.GetConnection().Close();
|
||||||
@ -882,11 +907,39 @@ namespace DatenDB
|
|||||||
return kandidat;
|
return kandidat;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
internal static List<Auftrag> SucheAuftrag(string datum, DateTime date, AuftragStatus? status, AuftragTyp? typ)
|
||||||
|
{
|
||||||
|
int parts = 0;
|
||||||
|
string commandline = $"select {COLUMNS} from {TABLE} where ";
|
||||||
|
string and = " and ";
|
||||||
|
List<Auftrag> result = new List<Auftrag>();
|
||||||
|
DatenbankConnection.GetConnection().Open();
|
||||||
|
NpgsqlCommand command = new NpgsqlCommand();
|
||||||
|
|
||||||
|
command.Connection = DatenbankConnection.GetConnection();
|
||||||
|
if (!string.IsNullOrWhiteSpace(datum)) { commandline += $"{datum} = '{date}'"; parts++; }
|
||||||
|
if (status != null)
|
||||||
|
{
|
||||||
|
if (parts > 0) commandline += and + $"status = {(int)status}";
|
||||||
|
else commandline += $"status = {(int)status}";
|
||||||
|
}
|
||||||
|
if (typ != null)
|
||||||
|
{
|
||||||
|
if (parts > 0) commandline += and + $"typ = {(int)typ}";
|
||||||
|
else commandline += $"typ = {(int)typ}";
|
||||||
|
}
|
||||||
|
|
||||||
|
command.CommandText = commandline;
|
||||||
|
NpgsqlDataReader reader = command.ExecuteReader();
|
||||||
|
while (reader.Read()) result.Add(new Auftrag(reader));
|
||||||
|
reader.Close();
|
||||||
|
DatenbankConnection.GetConnection().Close();
|
||||||
|
|
||||||
|
return result;
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//INSTALL-REMINDER: Change Status in DB-Auftrag von 7 auf 6
|
//INSTALL-REMINDER: DB anpassen. (Priority in Auftrag etc.)
|
||||||
//INSTALL-REMINDER: Tabelle Auftrag_Status muss in DB erstellt werden.
|
//CAHNGES: Priority wird bei Auftrag hinterlegt. Derzeit nach Fahrer Vorname bis andere Lösung gefunden.
|
||||||
//CHANGES: Wenn AuftragStatus geändert wird, wird in der DB gesucht ob bereits ein Eintrag mit AuftragID und Status übereinstimmt. Wenn ja wird ignoriert, sonst wird ein Eintrag erstellt.
|
//TODO: Non-Hard-Coded-Lösung für Priority finden.
|
||||||
//CHANGES: Gespeichert wird AuftragID, Status, Zeitpunkt und User des Changes.
|
|
||||||
//CHANGES: Abfragen müssen versucht werden wenn Einträge existieren. (Wieviele Container wurden pro Tag gewaschen?, etc.)
|
|
||||||
//CAHNGES: Abfragen von Standartliste in Expedit wird ohne ERSTELLT AM abgefragt. Nur Aufträge nach TYP und STATUS.
|
|
||||||
@ -1,4 +1,5 @@
|
|||||||
using Npgsql;
|
using BrightIdeasSoftware;
|
||||||
|
using Npgsql;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
@ -12,7 +13,7 @@ namespace DatenDB
|
|||||||
public class AuftragArtikel
|
public class AuftragArtikel
|
||||||
{
|
{
|
||||||
private static string TABLE = "kundenverwaltung.auftrag_artikel";
|
private static string TABLE = "kundenverwaltung.auftrag_artikel";
|
||||||
private static string COLUMNS = "auftrag_artikel_id, auftrag_id, artikel_id, artikel_name, anzahl, erledigt";
|
private static string COLUMNS = "auftrag_artikel_id, auftrag_id, artikel_id, artikel_name, anzahl, erledigt, gesamt";
|
||||||
public Kunde kunde;
|
public Kunde kunde;
|
||||||
|
|
||||||
public AuftragArtikel()
|
public AuftragArtikel()
|
||||||
@ -55,13 +56,13 @@ namespace DatenDB
|
|||||||
command.Connection = DatenbankConnection.GetConnection();
|
command.Connection = DatenbankConnection.GetConnection();
|
||||||
if(this.AuftragArtikelID.HasValue & this.AuftragArtikelID != 0)
|
if(this.AuftragArtikelID.HasValue & this.AuftragArtikelID != 0)
|
||||||
{
|
{
|
||||||
command.CommandText = $"update {TABLE} set auftrag_id = :p1, artikel_id = :p2, artikel_name = :p3, anzahl = :p4, erledigt = :p5 WHERE auftrag_artikel_id = :p0";
|
command.CommandText = $"update {TABLE} set auftrag_id = :p1, artikel_id = :p2, artikel_name = :p3, anzahl = :p4, erledigt = :p5, gesamt = :p6 WHERE auftrag_artikel_id = :p0";
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
command.CommandText = "select nextval('kundenverwaltung.auftrag_artikel_seq')";
|
command.CommandText = "select nextval('kundenverwaltung.auftrag_artikel_seq')";
|
||||||
this.AuftragArtikelID = (int)(long)command.ExecuteScalar();
|
this.AuftragArtikelID = (int)(long)command.ExecuteScalar();
|
||||||
command.CommandText = $"insert into {TABLE} ({COLUMNS}) values (:p0, :p1, :p2, :p3, :p4, :p5)";
|
command.CommandText = $"insert into {TABLE} ({COLUMNS}) values (:p0, :p1, :p2, :p3, :p4, :p5, :p6)";
|
||||||
}
|
}
|
||||||
|
|
||||||
command.Parameters.AddWithValue("p0", this.AuftragArtikelID.Value);
|
command.Parameters.AddWithValue("p0", this.AuftragArtikelID.Value);
|
||||||
@ -70,6 +71,7 @@ namespace DatenDB
|
|||||||
command.Parameters.AddWithValue("p3", string.IsNullOrWhiteSpace(this.ArtikelName) ? (object)DBNull.Value : this.ArtikelName);
|
command.Parameters.AddWithValue("p3", string.IsNullOrWhiteSpace(this.ArtikelName) ? (object)DBNull.Value : this.ArtikelName);
|
||||||
command.Parameters.AddWithValue("p4", this.Anzahl);
|
command.Parameters.AddWithValue("p4", this.Anzahl);
|
||||||
command.Parameters.AddWithValue("p5", this.Erledigt);
|
command.Parameters.AddWithValue("p5", this.Erledigt);
|
||||||
|
command.Parameters.AddWithValue("p6", this.Gesamt);
|
||||||
|
|
||||||
int result = command.ExecuteNonQuery();
|
int result = command.ExecuteNonQuery();
|
||||||
DatenbankConnection.GetConnection().Close();
|
DatenbankConnection.GetConnection().Close();
|
||||||
@ -87,6 +89,7 @@ namespace DatenDB
|
|||||||
this.ArtikelName = reader.IsDBNull(3) ? string.Empty : reader.GetString(3);
|
this.ArtikelName = reader.IsDBNull(3) ? string.Empty : reader.GetString(3);
|
||||||
this.Anzahl = reader.GetInt32(4);
|
this.Anzahl = reader.GetInt32(4);
|
||||||
this.Erledigt = reader.GetBoolean(5);
|
this.Erledigt = reader.GetBoolean(5);
|
||||||
|
this.Gesamt = reader.IsDBNull(6) ? 0 : reader.GetInt32(6);
|
||||||
}
|
}
|
||||||
if (i == 2)
|
if (i == 2)
|
||||||
{
|
{
|
||||||
@ -99,12 +102,22 @@ namespace DatenDB
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[OLVIgnore]
|
||||||
public int? AuftragArtikelID { get; set; }
|
public int? AuftragArtikelID { get; set; }
|
||||||
|
[OLVIgnore]
|
||||||
public int? AuftragID { get; set; }
|
public int? AuftragID { get; set; }
|
||||||
|
[OLVIgnore]
|
||||||
public int? ArtikelID { get; set; }
|
public int? ArtikelID { get; set; }
|
||||||
|
|
||||||
|
|
||||||
|
[OLVColumn(DisplayIndex = 1)]
|
||||||
public string ArtikelName { get; set; }
|
public string ArtikelName { get; set; }
|
||||||
|
[OLVColumn(DisplayIndex = 2, TextAlign = HorizontalAlignment.Center)]
|
||||||
public int Anzahl { get; set; }
|
public int Anzahl { get; set; }
|
||||||
|
[OLVColumn("Erledigt", DisplayIndex = 0, CheckBoxes = true)]
|
||||||
public bool Erledigt { get; set; }
|
public bool Erledigt { get; set; }
|
||||||
|
[OLVIgnore]
|
||||||
|
public int Gesamt { get; set; }
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -3,6 +3,7 @@ using Deckungsbeitrag;
|
|||||||
using Npgsql;
|
using Npgsql;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
using System.Configuration;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
@ -22,10 +23,19 @@ namespace DatenDB
|
|||||||
Flach = 7
|
Flach = 7
|
||||||
}
|
}
|
||||||
|
|
||||||
public class Benutzer
|
[Flags]
|
||||||
|
public enum OnboardingSchritt
|
||||||
|
{
|
||||||
|
NeuerAuftrag = 1,
|
||||||
|
Main = 2,
|
||||||
|
Expedit = 4,
|
||||||
|
Tourenplanung = 8
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Benutzer
|
||||||
{
|
{
|
||||||
// 0 1 2 3 4 5 6 7 8
|
// 0 1 2 3 4 5 6 7 8 9
|
||||||
public const string COLUMNS = "benutzer_id, rolle, passwort, vorname, nachname, schein, gueltig_bis, ist_aktiv, benutzer_name";
|
public const string COLUMNS = "benutzer_id, rolle, passwort, vorname, nachname, schein, gueltig_bis, ist_aktiv, benutzer_name, onboarding_status";
|
||||||
private const string TABLE = "kundenverwaltung.benutzer";
|
private const string TABLE = "kundenverwaltung.benutzer";
|
||||||
|
|
||||||
public Benutzer()
|
public Benutzer()
|
||||||
@ -95,6 +105,18 @@ namespace DatenDB
|
|||||||
throw;
|
throw;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
public async Task UpdateOnBoardingAsync()
|
||||||
|
{
|
||||||
|
var conn = new NpgsqlConnection(ConfigurationManager.AppSettings["ConnectionString"]);
|
||||||
|
await conn.OpenAsync();
|
||||||
|
|
||||||
|
var cmd = new NpgsqlCommand($"UPDATE {TABLE} SET onboarding_status = @status WHERE benutzer_id = @id", conn);
|
||||||
|
|
||||||
|
cmd.Parameters.AddWithValue("status", OnboardingStatus);
|
||||||
|
cmd.Parameters.AddWithValue("id", BenutzerID);
|
||||||
|
|
||||||
|
await cmd.ExecuteNonQueryAsync();
|
||||||
|
}
|
||||||
|
|
||||||
#region Properties
|
#region Properties
|
||||||
|
|
||||||
@ -144,6 +166,9 @@ namespace DatenDB
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
[OLVColumn("Benutzername", DisplayIndex = 3)]
|
[OLVColumn("Benutzername", DisplayIndex = 3)]
|
||||||
public string BenutzerName { get; set; }
|
public string BenutzerName { get; set; }
|
||||||
|
|
||||||
|
[OLVIgnore]
|
||||||
|
public int OnboardingStatus { get; set; }
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
public static Benutzer Get(string benutzerName, string passwort)
|
public static Benutzer Get(string benutzerName, string passwort)
|
||||||
@ -185,6 +210,7 @@ namespace DatenDB
|
|||||||
this.GueltigBis = reader.IsDBNull(6) ? null : (DateTime?)reader.GetDateTime(6);
|
this.GueltigBis = reader.IsDBNull(6) ? null : (DateTime?)reader.GetDateTime(6);
|
||||||
this.Aktiv = reader.IsDBNull(7) ? true : reader.GetBoolean(7);
|
this.Aktiv = reader.IsDBNull(7) ? true : reader.GetBoolean(7);
|
||||||
this.BenutzerName = reader.IsDBNull(8) ? string.Empty : reader.GetString(8);
|
this.BenutzerName = reader.IsDBNull(8) ? string.Empty : reader.GetString(8);
|
||||||
|
this.OnboardingStatus = reader.GetInt32(9);
|
||||||
}
|
}
|
||||||
public int Save()
|
public int Save()
|
||||||
{
|
{
|
||||||
@ -195,13 +221,13 @@ namespace DatenDB
|
|||||||
|
|
||||||
if (this.BenutzerID.HasValue & this.BenutzerID != 0)
|
if (this.BenutzerID.HasValue & this.BenutzerID != 0)
|
||||||
{
|
{
|
||||||
command.CommandText = $"update {TABLE} set rolle = :p1, passwort = :p2, vorname = :p3, nachname = :p4, schein = :p5, gueltig_bis = :p6, ist_aktiv = :p7, benutzer_name = :p8 where benutzer_id = :p0";
|
command.CommandText = $"update {TABLE} set rolle = :p1, passwort = :p2, vorname = :p3, nachname = :p4, schein = :p5, gueltig_bis = :p6, ist_aktiv = :p7, benutzer_name = :p8, onboarding_status = :p9 where benutzer_id = :p0";
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
command.CommandText = "select nextval('kundenverwaltung.benutzer_seq')";
|
command.CommandText = "select nextval('kundenverwaltung.benutzer_seq')";
|
||||||
this.BenutzerID = (int)(long)command.ExecuteScalar();
|
this.BenutzerID = (int)(long)command.ExecuteScalar();
|
||||||
command.CommandText = $"insert into {TABLE} ({COLUMNS}) values (:p0, :p1, :p2, :p3, :p4, :p5, :p6, :p7, :p8)";
|
command.CommandText = $"insert into {TABLE} ({COLUMNS}) values (:p0, :p1, :p2, :p3, :p4, :p5, :p6, :p7, :p8, :p9)";
|
||||||
}
|
}
|
||||||
|
|
||||||
command.Parameters.AddWithValue("p0", this.BenutzerID);
|
command.Parameters.AddWithValue("p0", this.BenutzerID);
|
||||||
@ -213,11 +239,30 @@ namespace DatenDB
|
|||||||
command.Parameters.AddWithValue("p6", this.Rolle == BenutzerRolle.Fahrer ? this.GueltigBis.Value : (object)DBNull.Value);
|
command.Parameters.AddWithValue("p6", this.Rolle == BenutzerRolle.Fahrer ? this.GueltigBis.Value : (object)DBNull.Value);
|
||||||
command.Parameters.AddWithValue("p7", this.Aktiv);
|
command.Parameters.AddWithValue("p7", this.Aktiv);
|
||||||
command.Parameters.AddWithValue("p8", string.IsNullOrEmpty(this.BenutzerName) ? (object)DBNull.Value : this.BenutzerName);
|
command.Parameters.AddWithValue("p8", string.IsNullOrEmpty(this.BenutzerName) ? (object)DBNull.Value : this.BenutzerName);
|
||||||
|
command.Parameters.AddWithValue("p9", this.OnboardingStatus);
|
||||||
|
|
||||||
int result = command.ExecuteNonQuery();
|
int result = command.ExecuteNonQuery();
|
||||||
DatenbankConnection.GetConnection().Close();
|
DatenbankConnection.GetConnection().Close();
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
public static class BenutzerExtensions
|
||||||
|
{
|
||||||
|
public static int SetOnboardingFlag(this Benutzer user, OnboardingSchritt schritt)
|
||||||
|
{
|
||||||
|
return user.OnboardingStatus | (int)schritt;
|
||||||
|
}
|
||||||
|
public static int ClearOnboardingFlag(this Benutzer user, OnboardingSchritt schritt)
|
||||||
|
{
|
||||||
|
user.OnboardingStatus &= ~(int)schritt;
|
||||||
|
return user.OnboardingStatus;
|
||||||
|
}
|
||||||
|
public static bool IstGesehen(this Benutzer user, OnboardingSchritt schritt)
|
||||||
|
{
|
||||||
|
return (user.OnboardingStatus & (int)schritt) != 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
//INSTALL-REMINDER: DB anpassen.
|
||||||
|
//CHANGES: OnBoarding wird jetzt gespeichert wenn gesehen.
|
||||||
|
|||||||
@ -49,7 +49,7 @@ namespace Deckungsbeitrag
|
|||||||
private static Benutzer _benutzer;
|
private static Benutzer _benutzer;
|
||||||
private static PrintDocument printdoc;
|
private static PrintDocument printdoc;
|
||||||
public static bool IsPhysicalPrint = false; // Globaler Schalter
|
public static bool IsPhysicalPrint = false; // Globaler Schalter
|
||||||
|
static int[] _bestand;
|
||||||
|
|
||||||
public Funktionen()
|
public Funktionen()
|
||||||
{
|
{
|
||||||
@ -640,8 +640,11 @@ namespace Deckungsbeitrag
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// QR-CODE FÜR ETIKETTEN
|
/// QR-Code für SWS-Scheine und KundeDetail
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
/// <param name="kunde"></param>
|
||||||
|
/// <param name="auftrag"></param>
|
||||||
|
/// <returns>Image des Codes mit der Kundennummer</returns>
|
||||||
public static Image Get_QR_Code(Kunde kunde, Auftrag auftrag)
|
public static Image Get_QR_Code(Kunde kunde, Auftrag auftrag)
|
||||||
{
|
{
|
||||||
Image img = null;
|
Image img = null;
|
||||||
@ -653,13 +656,20 @@ namespace Deckungsbeitrag
|
|||||||
return img;
|
return img;
|
||||||
}
|
}
|
||||||
|
|
||||||
private static Bitmap ErstelleQRMitRahmen(Kunde kunde, Auftrag auftrag, int groesse = 200)
|
/// <summary>
|
||||||
|
/// QR-Code für Etikett
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="kunde">Der Kunde aus dem Auftrag</param>
|
||||||
|
/// <param name="auftrag">Der gewählte Auftrag</param>
|
||||||
|
/// <param name="groesse">Die Größe des Codes (Standart=250)</param>
|
||||||
|
/// <returns>Eine Bitmap mit dem entsprechenden Code inkl. Beschriftung</returns>
|
||||||
|
private static Bitmap ErstelleQRMitRahmen(Kunde kunde, Auftrag auftrag, int groesse = 250)
|
||||||
{
|
{
|
||||||
string obererText = "Abholung notwendig?";
|
string obererText = "Abholung notwendig?";
|
||||||
string untererText = "Scan Me!";
|
string untererText = "Scan Me!";
|
||||||
string text = $"https://www.wirl.tirol/kontakt?name={kunde.KundeNummer}%20{kunde.KundeName}";
|
string text = $"https://www.wirl.tirol/kontakt?name={kunde.KundeNummer}%20{kunde.KundeName}";
|
||||||
if (kunde.KundeNummer == "2320000") text = $"https://www.wirl.tirol/kontakt?name={kunde.KundeNummer}%20{auftrag.ZusatzInfo}";
|
if (kunde.KundeNummer == "2320000") text = $"https://www.wirl.tirol/kontakt?name={kunde.KundeNummer}%20{auftrag.ZusatzInfo}";
|
||||||
else text = $"https://www.wirl.tirol/kontakt?name={kunde.KundeNummer}%20{kunde.KundeName}&address={kunde.Strasse},%20{kunde.PLZ.ToString()}%20{kunde.Ort}";
|
else text = $"https://www.wirl.tirol/kontakt?name={kunde.KundeNummer}%20{kunde.KundeName}&address={kunde.Strasse},%20{kunde.PLZ.ToString()}%20{kunde.Ort}&bettenanzahl={kunde.Bettenanzahl.ToString()}&nachricht=Bitte Wäscheabholung organisieren.";
|
||||||
|
|
||||||
// QR ohne Margin generieren
|
// QR ohne Margin generieren
|
||||||
var hints = new Dictionary<ZXing.EncodeHintType, object>
|
var hints = new Dictionary<ZXing.EncodeHintType, object>
|
||||||
@ -683,7 +693,7 @@ namespace Deckungsbeitrag
|
|||||||
g.Clear(Color.White);
|
g.Clear(Color.White);
|
||||||
|
|
||||||
// Oberen Text (zentriert)
|
// Oberen Text (zentriert)
|
||||||
Font font = new Font("Arial", 14, FontStyle.Bold);
|
Font font = new Font("Arial", 18, FontStyle.Bold);
|
||||||
SizeF obTextSize = g.MeasureString(obererText, font);
|
SizeF obTextSize = g.MeasureString(obererText, font);
|
||||||
g.DrawString(obererText, font, Brushes.Black,
|
g.DrawString(obererText, font, Brushes.Black,
|
||||||
(erweitert.Width - obTextSize.Width) / 2,
|
(erweitert.Width - obTextSize.Width) / 2,
|
||||||
@ -705,6 +715,7 @@ namespace Deckungsbeitrag
|
|||||||
}
|
}
|
||||||
return erweitert;
|
return erweitert;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// DRUCKEN VON SCHMUTZWÄSCHESCHEINEN & ETIKETTEN & TOURENLISTEN
|
/// DRUCKEN VON SCHMUTZWÄSCHESCHEINEN & ETIKETTEN & TOURENLISTEN
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -847,7 +858,7 @@ namespace Deckungsbeitrag
|
|||||||
|
|
||||||
g.FillRectangle(Brushes.White, 0, 0, bitmap.Width, bitmap.Height);
|
g.FillRectangle(Brushes.White, 0, 0, bitmap.Width, bitmap.Height);
|
||||||
//QR-Code
|
//QR-Code
|
||||||
g.DrawImage(qr, 10, 15, 350, 280);
|
g.DrawImage(qr, 10, (bitmap.Height - qr.Height) / 2, qr.Width, qr.Height);
|
||||||
//Etikett-Text
|
//Etikett-Text
|
||||||
g.DrawString($"{kunde.Suchtext}", font1, Brushes.Black, startpoint);
|
g.DrawString($"{kunde.Suchtext}", font1, Brushes.Black, startpoint);
|
||||||
|
|
||||||
@ -868,7 +879,7 @@ namespace Deckungsbeitrag
|
|||||||
_auftrag = auftrag;
|
_auftrag = auftrag;
|
||||||
int x = auftrag.ContainerClean;
|
int x = auftrag.ContainerClean;
|
||||||
PrintDialog dialog = new PrintDialog();
|
PrintDialog dialog = new PrintDialog();
|
||||||
PrintPreviewDialog preview = new PrintPreviewDialog();
|
//PrintPreviewDialog preview = new PrintPreviewDialog();
|
||||||
PrintDocument printDocument = new PrintDocument();
|
PrintDocument printDocument = new PrintDocument();
|
||||||
|
|
||||||
foreach (string printer in PrinterSettings.InstalledPrinters) if (printer.Contains(Properties.Settings.Default.Etikett_Drucker)) dialog.PrinterSettings.PrinterName = printer;
|
foreach (string printer in PrinterSettings.InstalledPrinters) if (printer.Contains(Properties.Settings.Default.Etikett_Drucker)) dialog.PrinterSettings.PrinterName = printer;
|
||||||
@ -878,15 +889,15 @@ namespace Deckungsbeitrag
|
|||||||
{
|
{
|
||||||
printDocument.PrinterSettings = dialog.PrinterSettings;
|
printDocument.PrinterSettings = dialog.PrinterSettings;
|
||||||
printDocument.PrintPage += new PrintPageEventHandler(PrintDocument_PrintPage);
|
printDocument.PrintPage += new PrintPageEventHandler(PrintDocument_PrintPage);
|
||||||
printDocument.DefaultPageSettings.PaperSize = new PaperSize("Etikett-Custom", 29, 90);
|
if (!printDocument.PrinterSettings.PrinterName.Contains(Properties.Settings.Default.Etikett_Drucker)) printDocument.DefaultPageSettings.PaperSize = new PaperSize("Etikett-Custom", 29, 90);
|
||||||
preview.StartPosition = FormStartPosition.CenterScreen;
|
//preview.StartPosition = FormStartPosition.CenterScreen;
|
||||||
preview.WindowState = FormWindowState.Normal;
|
//preview.WindowState = FormWindowState.Normal;
|
||||||
preview.Document = printDocument;
|
//preview.Document = printDocument;
|
||||||
preview.Document.DocumentName = "Etikett";
|
//preview.Document.DocumentName = "Etikett";
|
||||||
preview.ShowDialog();
|
//preview.ShowDialog();
|
||||||
//dialog.Document = printDocument;
|
dialog.Document = printDocument;
|
||||||
//dialog.Document.DocumentName = "Etikett";
|
dialog.Document.DocumentName = "Etikett";
|
||||||
//printDocument.Print();
|
printDocument.Print();
|
||||||
|
|
||||||
return DialogResult.OK;
|
return DialogResult.OK;
|
||||||
}
|
}
|
||||||
@ -1108,6 +1119,73 @@ namespace Deckungsbeitrag
|
|||||||
File.Delete(tmpPdf);
|
File.Delete(tmpPdf);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
public static Image SonderEtikett_Entwurf(Auftrag auftrag, int[] bestand)
|
||||||
|
{
|
||||||
|
Kunde kunde = Kunde.GetKunde(string.Empty, auftrag.KundeID, string.Empty);
|
||||||
|
if (kunde.Suchtext.StartsWith("?") | kunde.KundeNummer == "2320000") kunde.Suchtext = auftrag.ZusatzInfo;
|
||||||
|
List<AuftragArtikel> artliste = AuftragArtikel.GetList(auftrag.AuftragID);
|
||||||
|
if (artliste == null || artliste.Count == 0) return null;
|
||||||
|
|
||||||
|
Bitmap bitmap = new Bitmap(300, 1200);
|
||||||
|
Graphics g = Graphics.FromImage(bitmap);
|
||||||
|
Font font1 = new Font("Arial", 15, FontStyle.Bold);
|
||||||
|
Font font2 = new Font("Arial", 30, FontStyle.Bold);
|
||||||
|
Font font3 = new Font("Arial", 30, FontStyle.Regular);
|
||||||
|
Font font4 = new Font("Arial", 150, FontStyle.Bold);
|
||||||
|
float height_font1 = g.MeasureString($"{kunde.Suchtext}", font1).Height;
|
||||||
|
float height_font2 = g.MeasureString($"{kunde.PLZ} {kunde.Ort})", font2).Height;
|
||||||
|
SizeF size_container = g.MeasureString($"Container/Pakete:", font3);
|
||||||
|
SizeF size_Liefertag = new SizeF(g.MeasureString("Liefertag:", font3));
|
||||||
|
float width_date_font1 = g.MeasureString("25.05.2023", font1).Width;
|
||||||
|
int nextposition = 40;
|
||||||
|
int einzug = 20;
|
||||||
|
Point startpoint = new Point(20, 40);
|
||||||
|
|
||||||
|
g.FillRectangle(Brushes.White, 0, 0, bitmap.Width, bitmap.Height);
|
||||||
|
//Etikett-Text
|
||||||
|
g.DrawString($"{kunde.KundeNummer}", font1, Brushes.Black, startpoint);
|
||||||
|
nextposition += (int)height_font1;
|
||||||
|
g.DrawString($"{kunde.Suchtext}", font1, Brushes.Black, einzug, nextposition);
|
||||||
|
nextposition += (int)height_font1;
|
||||||
|
foreach (AuftragArtikel artikel in artliste)
|
||||||
|
{
|
||||||
|
g.DrawString($"{Artikel.GetShort(artikel.ArtikelID)}", font1, Brushes.Black, einzug, nextposition);
|
||||||
|
g.DrawString($"{bestand[0].ToString()}/{bestand[1].ToString()}/{bestand[2].ToString()}", font1, Brushes.Black, einzug + 50, nextposition);
|
||||||
|
nextposition += (int)height_font1;
|
||||||
|
}
|
||||||
|
|
||||||
|
Image img = bitmap;
|
||||||
|
return img;
|
||||||
|
}
|
||||||
|
public static void SonderEtikett_Drucken(Auftrag auftrag, int[] bestand)
|
||||||
|
{
|
||||||
|
_auftrag = auftrag;
|
||||||
|
_bestand = bestand;
|
||||||
|
int x = auftrag.ContainerClean;
|
||||||
|
PrintDialog dialog = new PrintDialog();
|
||||||
|
PrintPreviewDialog preview = new PrintPreviewDialog();
|
||||||
|
PrintDocument printDocument = new PrintDocument();
|
||||||
|
|
||||||
|
foreach (string printer in PrinterSettings.InstalledPrinters) if (printer.Contains(Properties.Settings.Default.Etikett_Drucker)) dialog.PrinterSettings.PrinterName = printer;
|
||||||
|
dialog.PrinterSettings.Copies = 2;
|
||||||
|
|
||||||
|
if (dialog.ShowDialog() == DialogResult.OK)
|
||||||
|
{
|
||||||
|
printDocument.PrinterSettings = dialog.PrinterSettings;
|
||||||
|
printDocument.PrintPage += new PrintPageEventHandler(PrintDocument_PrintPage);
|
||||||
|
if (!printDocument.PrinterSettings.PrinterName.Contains(Properties.Settings.Default.Etikett_Drucker)) printDocument.DefaultPageSettings.PaperSize = new PaperSize("Etikett-Custom", 29, 90);
|
||||||
|
preview.StartPosition = FormStartPosition.CenterScreen;
|
||||||
|
preview.WindowState = FormWindowState.Normal;
|
||||||
|
preview.Document = printDocument;
|
||||||
|
preview.Document.DocumentName = "SonderEtikett";
|
||||||
|
preview.ShowDialog();
|
||||||
|
//dialog.Document = printDocument;
|
||||||
|
//dialog.Document.DocumentName = "Etikett";
|
||||||
|
//printDocument.Print();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
private static void PrintDocument_PrintPage(object sender, System.Drawing.Printing.PrintPageEventArgs e)
|
private static void PrintDocument_PrintPage(object sender, System.Drawing.Printing.PrintPageEventArgs e)
|
||||||
{
|
{
|
||||||
@ -1137,6 +1215,7 @@ namespace Deckungsbeitrag
|
|||||||
e.HasMorePages = false;
|
e.HasMorePages = false;
|
||||||
}
|
}
|
||||||
if (sender.ToString().Contains("Etikett")) e.Graphics.DrawImage(Funktionen.Etikett_Entwurf(null, _auftrag, _nocont), e.PageBounds);
|
if (sender.ToString().Contains("Etikett")) e.Graphics.DrawImage(Funktionen.Etikett_Entwurf(null, _auftrag, _nocont), e.PageBounds);
|
||||||
|
if (sender.ToString().Contains("Sonder")) e.Graphics.DrawImage(SonderEtikett_Entwurf(_auftrag, _bestand), e.PageBounds);
|
||||||
if (sender.ToString().Contains("TourenListe"))
|
if (sender.ToString().Contains("TourenListe"))
|
||||||
{
|
{
|
||||||
if (pagesToPrint == currentPage) currentPage = 0;
|
if (pagesToPrint == currentPage) currentPage = 0;
|
||||||
@ -1542,12 +1621,11 @@ namespace Deckungsbeitrag
|
|||||||
{
|
{
|
||||||
chart1.Series.Clear();
|
chart1.Series.Clear();
|
||||||
|
|
||||||
Title title = new Title();
|
Title title = chart1.Titles[0];
|
||||||
title.Text = Kunde.GetKunde(null, artikelDaten[0].KundeID, null).KundeName;
|
title.Text = Kunde.GetKunde(null, artikelDaten[0].KundeID, null).Suchtext == null ? Kunde.GetKunde(null, artikelDaten[0].KundeID, null).KundeName : Kunde.GetKunde(null, artikelDaten[0].KundeID, null).Suchtext;
|
||||||
title.Font = new Font("Arial", 12, FontStyle.Bold);
|
title.Font = new Font("Arial", 16, FontStyle.Bold);
|
||||||
title.ForeColor = Color.White;
|
title.ForeColor = Color.White;
|
||||||
title.BackColor = Color.Transparent;
|
title.BackColor = Color.Transparent;
|
||||||
|
|
||||||
title.Position = new ElementPosition(0, 0, 100, 8); // X,Y,Breite,Höhe (Prozent)
|
title.Position = new ElementPosition(0, 0, 100, 8); // X,Y,Breite,Höhe (Prozent)
|
||||||
title.Alignment = ContentAlignment.TopCenter;
|
title.Alignment = ContentAlignment.TopCenter;
|
||||||
title.Docking = Docking.Top;
|
title.Docking = Docking.Top;
|
||||||
@ -1564,20 +1642,24 @@ namespace Deckungsbeitrag
|
|||||||
var serieGesamt = new Series("Gesamtmenge")
|
var serieGesamt = new Series("Gesamtmenge")
|
||||||
{
|
{
|
||||||
ChartType = SeriesChartType.StackedBar100,
|
ChartType = SeriesChartType.StackedBar100,
|
||||||
Color = Color.Transparent,
|
Color = Color.LightBlue,
|
||||||
CustomProperties = "DrawSideBySide=False, PointWidth=0.8"
|
CustomProperties = "DrawSideBySide=False, PointWidth=0.8",
|
||||||
|
LabelFormat = "{0:P0}",
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
// Gestapelte Fehler-Serie (rechts darüber)
|
// Gestapelte Fehler-Serie (rechts darüber)
|
||||||
var serieFehler = new Series("Fehlmenge")
|
var serieFehler = new Series("Fehlmenge")
|
||||||
{
|
{
|
||||||
ChartType = SeriesChartType.StackedBar100,
|
ChartType = SeriesChartType.StackedBar100,
|
||||||
Color = Color.Orange
|
Color = Color.Orange,
|
||||||
|
LabelFormat = "{0:P0}%"
|
||||||
};
|
};
|
||||||
var serieReklamation = new Series("Reklamation")
|
var serieReklamation = new Series("Reklamation")
|
||||||
{
|
{
|
||||||
ChartType = SeriesChartType.StackedBar100,
|
ChartType = SeriesChartType.StackedBar100,
|
||||||
Color = Color.OrangeRed
|
Color = Color.OrangeRed,
|
||||||
|
LabelFormat = "{0:P0}%"
|
||||||
};
|
};
|
||||||
|
|
||||||
for (int i = 0; i < artikelDaten.Count; i++)
|
for (int i = 0; i < artikelDaten.Count; i++)
|
||||||
@ -1587,20 +1669,20 @@ namespace Deckungsbeitrag
|
|||||||
|
|
||||||
if (daten.Stand > 0)
|
if (daten.Stand > 0)
|
||||||
{
|
{
|
||||||
serieGesamt.Points.AddXY(index, daten.Stand);
|
serieGesamt.Points.AddXY(index, 1.0 - (((double)daten.Fehlmenge + (double)daten.Reklamation) / (double)daten.Stand));
|
||||||
serieGesamt.Label = " ";
|
//serieGesamt.Points[i].Label = daten.Stand.ToString("N0");
|
||||||
|
|
||||||
serieFehler.Points.AddXY(index, ((double)daten.Fehlmenge / (double)daten.Stand) * 100);
|
serieFehler.Points.AddXY(index, ((double)daten.Fehlmenge / (double)daten.Stand));
|
||||||
if (daten.Fehlmenge > 0) serieFehler.Points[i].Label = daten.Fehlmenge.ToString();
|
if (daten.Fehlmenge > 0) serieFehler.Points[i].Label = daten.Fehlmenge.ToString("N0");
|
||||||
else serieFehler.Points[i].Label = " ";
|
else serieFehler.Points[i].Label = " ";
|
||||||
|
|
||||||
serieReklamation.Points.AddXY(index, ((double)daten.Reklamation / (double)daten.Stand) * 100);
|
serieReklamation.Points.AddXY(index, ((double)daten.Reklamation / (double)daten.Stand));
|
||||||
if (daten.Reklamation > 0) serieReklamation.Points[i].Label = daten.Reklamation.ToString();
|
if (daten.Reklamation > 0) serieReklamation.Points[i].Label = daten.Reklamation.ToString("N0");
|
||||||
else serieReklamation.Points[i].Label = " ";
|
else serieReklamation.Points[i].Label = " ";
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
serieGesamt.Points.AddXY(index, daten.Stand);
|
serieGesamt.Points.AddXY(index, 1.0d);
|
||||||
serieGesamt.Label = " ";
|
serieGesamt.Label = " ";
|
||||||
|
|
||||||
serieFehler.Points.AddXY(index, daten.Fehlmenge);
|
serieFehler.Points.AddXY(index, daten.Fehlmenge);
|
||||||
@ -1614,9 +1696,9 @@ namespace Deckungsbeitrag
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Label setzen (X-Achse zeigt Artikelnamen)
|
// Label setzen (X-Achse zeigt Artikelnamen)
|
||||||
string label = daten.ArtikelName;
|
string label = Artikel.GetShort(daten.ArtikelID);
|
||||||
if (label.Length > 10)
|
//if (label.Length > 10)
|
||||||
label = label.Substring(0, 10) + "...";
|
// label = label.Substring(0, 10) + "...";
|
||||||
|
|
||||||
serieGesamt.Points[i].AxisLabel = label;
|
serieGesamt.Points[i].AxisLabel = label;
|
||||||
}
|
}
|
||||||
@ -1625,21 +1707,11 @@ namespace Deckungsbeitrag
|
|||||||
chart1.Series.Add(serieReklamation);
|
chart1.Series.Add(serieReklamation);
|
||||||
chart1.Series.Add(serieGesamt);
|
chart1.Series.Add(serieGesamt);
|
||||||
|
|
||||||
foreach(Series serie in chart1.Series)
|
|
||||||
{
|
|
||||||
if (serie.Name != "Gesamtmenge")
|
|
||||||
{
|
|
||||||
serie.IsValueShownAsLabel = true;
|
|
||||||
serie.LabelForeColor = Color.Black;
|
|
||||||
|
|
||||||
serie.LabelFormat = "{0:N0}"; // 123 Stück
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Legende wird ausgeblendet
|
// Legende wird ausgeblendet
|
||||||
chart1.Legends.Clear();
|
chart1.Legends.Clear();
|
||||||
|
|
||||||
// Für Y-Achse (Mengen) WAAGERECHT
|
// Für Y-Achse (Mengen) WAAGERECHT
|
||||||
|
chart1.ChartAreas[0].AxisY.Maximum = 100;
|
||||||
chart1.ChartAreas[0].AxisY.LabelStyle.ForeColor = Color.White;
|
chart1.ChartAreas[0].AxisY.LabelStyle.ForeColor = Color.White;
|
||||||
chart1.ChartAreas[0].AxisY.TitleForeColor = Color.White;
|
chart1.ChartAreas[0].AxisY.TitleForeColor = Color.White;
|
||||||
chart1.ChartAreas[0].AxisY.LabelStyle.Font = new Font("Arial", 9, FontStyle.Bold);
|
chart1.ChartAreas[0].AxisY.LabelStyle.Font = new Font("Arial", 9, FontStyle.Bold);
|
||||||
@ -1647,8 +1719,8 @@ namespace Deckungsbeitrag
|
|||||||
// Für X-Achse (Mengen) SENKRECHT
|
// Für X-Achse (Mengen) SENKRECHT
|
||||||
chart1.ChartAreas[0].AxisX.LabelStyle.ForeColor = Color.White;
|
chart1.ChartAreas[0].AxisX.LabelStyle.ForeColor = Color.White;
|
||||||
chart1.ChartAreas[0].AxisX.TitleForeColor = Color.White;
|
chart1.ChartAreas[0].AxisX.TitleForeColor = Color.White;
|
||||||
chart1.ChartAreas[0].AxisX.LabelStyle.Font = new Font("Arial", 7, FontStyle.Regular);
|
chart1.ChartAreas[0].AxisX.LabelStyle.Font = new Font("Arial", 10, FontStyle.Regular);
|
||||||
chart1.ChartAreas[0].AxisX.LabelStyle.Angle = -45; // Schräg für mehr Platz
|
//chart1.ChartAreas[0].AxisX.LabelStyle.Angle = -45; // Schräg für mehr Platz
|
||||||
|
|
||||||
// Gitterlinien (optional)
|
// Gitterlinien (optional)
|
||||||
chart1.ChartAreas[0].AxisX.MajorGrid.LineColor = Color.LightGray;
|
chart1.ChartAreas[0].AxisX.MajorGrid.LineColor = Color.LightGray;
|
||||||
@ -1708,5 +1780,20 @@ namespace Deckungsbeitrag
|
|||||||
|
|
||||||
if (tour.Save() == 0) meldung.GetFehler(null, "Speichern oder Updaten der Tour war nicht möglich.\nBitte informiere deinen Vorgesetzten.");
|
if (tour.Save() == 0) meldung.GetFehler(null, "Speichern oder Updaten der Tour war nicht möglich.\nBitte informiere deinen Vorgesetzten.");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
internal static AuftragPriority GetPriority(Benutzer user)
|
||||||
|
{
|
||||||
|
string vorname;
|
||||||
|
if (user == null) vorname = string.Empty;
|
||||||
|
else vorname = user.Vorname;
|
||||||
|
switch (vorname)
|
||||||
|
{
|
||||||
|
case var n when n == "Gerald": return AuftragPriority.First;
|
||||||
|
case var n when n == "Jochen": return AuftragPriority.Second;
|
||||||
|
case var n when n == "Thomas": return AuftragPriority.Third;
|
||||||
|
case var n when n == "Alil": return AuftragPriority.Fourth;
|
||||||
|
default: return AuftragPriority.None;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -99,6 +99,22 @@ namespace DatenDB
|
|||||||
|
|
||||||
return resultList;
|
return resultList;
|
||||||
}
|
}
|
||||||
|
internal static List<Kunde> GetReklamationListe(string waescheart)
|
||||||
|
{
|
||||||
|
DatenbankConnection.GetConnection().Open();
|
||||||
|
List<Kunde> resultList = new List<Kunde>();
|
||||||
|
using (NpgsqlCommand command = new NpgsqlCommand())
|
||||||
|
{
|
||||||
|
command.Connection = DatenbankConnection.GetConnection();
|
||||||
|
command.CommandText = $"select {COLUMNS} from {TABLE} where aktiv = true and waescheart = '{waescheart}' order by bettenanzahl desc";
|
||||||
|
NpgsqlDataReader reader = command.ExecuteReader();
|
||||||
|
while (reader.Read()) resultList.Add(new Kunde(reader));
|
||||||
|
reader.Close();
|
||||||
|
}
|
||||||
|
DatenbankConnection.GetConnection().Close();
|
||||||
|
|
||||||
|
return resultList;
|
||||||
|
}
|
||||||
internal static List<Kunde> GetKundenTourenListe(string region)
|
internal static List<Kunde> GetKundenTourenListe(string region)
|
||||||
{
|
{
|
||||||
DatenbankConnection.GetConnection().Open();
|
DatenbankConnection.GetConnection().Open();
|
||||||
@ -429,8 +445,9 @@ namespace DatenDB
|
|||||||
[OLVIgnore]
|
[OLVIgnore]
|
||||||
public int SommerLieferRhythmus { get; set; }
|
public int SommerLieferRhythmus { get; set; }
|
||||||
public int WinterLieferRhythmus { get; set; }
|
public int WinterLieferRhythmus { get; set; }
|
||||||
#endregion
|
|
||||||
}
|
#endregion
|
||||||
|
}
|
||||||
public class KData
|
public class KData
|
||||||
{
|
{
|
||||||
public string Name { get; set; }
|
public string Name { get; set; }
|
||||||
|
|||||||
@ -6,6 +6,7 @@ using System.Linq;
|
|||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using System.Web.UI.WebControls;
|
using System.Web.UI.WebControls;
|
||||||
|
using static System.Windows.Forms.VisualStyles.VisualStyleElement;
|
||||||
|
|
||||||
namespace DatenDB
|
namespace DatenDB
|
||||||
{
|
{
|
||||||
@ -58,6 +59,44 @@ namespace DatenDB
|
|||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
public static KundeArtikel GetKundeArtikelVonArtikelID(int? kndid, int? artikelid)
|
||||||
|
{
|
||||||
|
DatenbankConnection.GetConnection().Open();
|
||||||
|
KundeArtikel result = null;
|
||||||
|
NpgsqlCommand command = new NpgsqlCommand();
|
||||||
|
command.Connection = DatenbankConnection.GetConnection();
|
||||||
|
command.CommandText = $"SELECT {COLUMNS} from {TABLE} where kunde_id = {kndid} and artikel_id = {artikelid}";
|
||||||
|
NpgsqlDataReader reader = command.ExecuteReader();
|
||||||
|
while (reader.Read()) result = new KundeArtikel(reader);
|
||||||
|
reader.Close();
|
||||||
|
DatenbankConnection.GetConnection().Close();
|
||||||
|
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
public static List<KundeArtikel> GetFehlmengeList(string kundeid)
|
||||||
|
{
|
||||||
|
DatenbankConnection.GetConnection().Open();
|
||||||
|
List<KundeArtikel> resultList = new List<KundeArtikel>();
|
||||||
|
NpgsqlCommand command = new NpgsqlCommand();
|
||||||
|
command.Connection = DatenbankConnection.GetConnection();
|
||||||
|
command.CommandText = $"select {COLUMNS} from {TABLE} where kunde_id = {kundeid} and SUBSTRING(artikel_nr::text, 1, 1) = '6' order by reihung asc";
|
||||||
|
NpgsqlDataReader reader = command.ExecuteReader();
|
||||||
|
while (reader.Read()) resultList.Add(new KundeArtikel(reader));
|
||||||
|
reader.Close();
|
||||||
|
DatenbankConnection.GetConnection().Close();
|
||||||
|
return resultList;
|
||||||
|
}
|
||||||
|
internal static bool HatKategorieArtikel(int kundeid, ArtikelKategorie frottee)
|
||||||
|
{
|
||||||
|
DatenbankConnection.GetConnection().Open();
|
||||||
|
NpgsqlCommand command = new NpgsqlCommand();
|
||||||
|
command.Connection = DatenbankConnection.GetConnection();
|
||||||
|
command.CommandText = $"SELECT CASE WHEN COUNT(*) > 0 THEN 1 ELSE 0 END FROM {TABLE} a inner join kundenverwaltung.artikel b on a.artikel_id = b.artikel_id WHERE a.kunde_id = {kundeid} and b.kategorie = {(int)frottee}";
|
||||||
|
|
||||||
|
int result = (int)command.ExecuteScalar();
|
||||||
|
DatenbankConnection.GetConnection().Close();
|
||||||
|
return result > 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -138,7 +177,7 @@ namespace DatenDB
|
|||||||
using (var conn = new NpgsqlConnection(connectionString))
|
using (var conn = new NpgsqlConnection(connectionString))
|
||||||
{
|
{
|
||||||
conn.Open();
|
conn.Open();
|
||||||
using (var cmd = new NpgsqlCommand($"SELECT artikel_name, stand, fehlmenge, kunde_id, reklamation, artikel_id, reihung FROM {TABLE} WHERE kunde_id = {kunde.KundeID}", conn))
|
using (var cmd = new NpgsqlCommand($"SELECT a.artikel_name, a.stand, a.fehlmenge, a.kunde_id, a.reklamation, a.artikel_id, a.reihung, b.kategorie FROM {TABLE} a inner join kundenverwaltung.artikel b on a.artikel_id = b.artikel_id WHERE a.kunde_id = {kunde.KundeID} and b.kategorie > 0 and (a.fehlmenge + a.reklamation) > 0", conn))
|
||||||
{
|
{
|
||||||
using (var reader = cmd.ExecuteReader())
|
using (var reader = cmd.ExecuteReader())
|
||||||
{
|
{
|
||||||
@ -163,6 +202,7 @@ namespace DatenDB
|
|||||||
return artikelDaten;
|
return artikelDaten;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public KundeArtikel(NpgsqlDataReader reader)
|
public KundeArtikel(NpgsqlDataReader reader)
|
||||||
{
|
{
|
||||||
this.KundeArtikelID = reader.GetInt32(0);
|
this.KundeArtikelID = reader.GetInt32(0);
|
||||||
|
|||||||
38
Program.cs
38
Program.cs
@ -20,6 +20,7 @@ using System.Text.RegularExpressions;
|
|||||||
using System.Threading;
|
using System.Threading;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using System.Timers;
|
using System.Timers;
|
||||||
|
using System.Web.SessionState;
|
||||||
using System.Windows.Forms;
|
using System.Windows.Forms;
|
||||||
|
|
||||||
namespace Deckungsbeitrag
|
namespace Deckungsbeitrag
|
||||||
@ -37,7 +38,7 @@ namespace Deckungsbeitrag
|
|||||||
private static System.Timers.Timer timer;
|
private static System.Timers.Timer timer;
|
||||||
//public static string vaultPath = @"N:\TECHNIK\Software\Wirl-Verwaltung\Feedback";
|
//public static string vaultPath = @"N:\TECHNIK\Software\Wirl-Verwaltung\Feedback";
|
||||||
private static string savePath = ConfigurationManager.AppSettings["DateiSavePfad"];
|
private static string savePath = ConfigurationManager.AppSettings["DateiSavePfad"];
|
||||||
|
private static readonly string login = "login";
|
||||||
private static bool istest = false;
|
private static bool istest = false;
|
||||||
|
|
||||||
|
|
||||||
@ -64,7 +65,7 @@ namespace Deckungsbeitrag
|
|||||||
MessageBox.Show("Update wurde erfolgreich durchgeführt.\nStarte das Programm über den Desktop neu.", "UPDATE INFO", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
MessageBox.Show("Update wurde erfolgreich durchgeführt.\nStarte das Programm über den Desktop neu.", "UPDATE INFO", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||||
Software_Updated = true;
|
Software_Updated = true;
|
||||||
Settings.Default.LastSoftwareUpdate = DateTime.Now;
|
Settings.Default.LastSoftwareUpdate = DateTime.Now;
|
||||||
return;
|
//return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Laden der Image-Liste mit Icons für ObjectListView in Export etc.
|
// Laden der Image-Liste mit Icons für ObjectListView in Export etc.
|
||||||
@ -77,9 +78,10 @@ namespace Deckungsbeitrag
|
|||||||
ArtikelList_Laden();
|
ArtikelList_Laden();
|
||||||
|
|
||||||
Settings.Default.Save();
|
Settings.Default.Save();
|
||||||
|
|
||||||
Cursor.Current = Cursors.Default;
|
Cursor.Current = Cursors.Default;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (istest) { Application.Run(new FormAufleger()); return; }
|
if (istest) { Application.Run(new FormAufleger()); return; }
|
||||||
|
|
||||||
if (userid.StartsWith("ms") | userid.StartsWith("ps"))
|
if (userid.StartsWith("ms") | userid.StartsWith("ps"))
|
||||||
@ -116,7 +118,7 @@ namespace Deckungsbeitrag
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
// Öffnen der ReadMe wenn noch nicht geöffnet wurde.
|
// Öffnen der ReadMe wenn noch nicht geöffnet wurde.
|
||||||
Open_ReadMe();
|
//Open_ReadMe();
|
||||||
|
|
||||||
FormLogin loginForm = new FormLogin();
|
FormLogin loginForm = new FormLogin();
|
||||||
if (loginForm.ShowDialog() == DialogResult.OK)
|
if (loginForm.ShowDialog() == DialogResult.OK)
|
||||||
@ -159,6 +161,7 @@ namespace Deckungsbeitrag
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#region private-Funktionen
|
||||||
private static void Open_ReadMe()
|
private static void Open_ReadMe()
|
||||||
{
|
{
|
||||||
string readmePath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Verwaltung_ReadMe.txt");
|
string readmePath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Verwaltung_ReadMe.txt");
|
||||||
@ -503,7 +506,7 @@ namespace Deckungsbeitrag
|
|||||||
UseShellExecute = true
|
UseShellExecute = true
|
||||||
};
|
};
|
||||||
|
|
||||||
// Prozexxe und Programm schließen.
|
// Prozesse und Programm schließen.
|
||||||
// 1. SELBST schließen (wichtig!)
|
// 1. SELBST schließen (wichtig!)
|
||||||
Application.Exit();
|
Application.Exit();
|
||||||
|
|
||||||
@ -568,10 +571,12 @@ namespace Deckungsbeitrag
|
|||||||
imagelist.Images.Add("close", Resources.Close_red_16x);
|
imagelist.Images.Add("close", Resources.Close_red_16x);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region public-Funktion
|
||||||
public static void AddFeedback(Benutzer user, string feedbackText, string bildDateiname, string timeStamp)
|
public static void AddFeedback(Benutzer user, string feedbackText, string bildDateiname, string timeStamp)
|
||||||
{
|
{
|
||||||
string vaultPath = Path.Combine(savePath, "Feedback\\VerwaltungFeedback.md");
|
string vaultPath = Path.Combine(savePath, "Feedback\\VerwaltungFeedback.md");
|
||||||
string bildPath = Path.Combine(savePath, bildDateiname);
|
|
||||||
string feedback = string.Empty;
|
string feedback = string.Empty;
|
||||||
Benutzer ben = benutzer;
|
Benutzer ben = benutzer;
|
||||||
|
|
||||||
@ -588,8 +593,12 @@ namespace Deckungsbeitrag
|
|||||||
// Test wenn Image mitgegeben wird wird es hier gespeichert. (Pfadprobleme)
|
// Test wenn Image mitgegeben wird wird es hier gespeichert. (Pfadprobleme)
|
||||||
File.AppendAllText(vaultPath, feedback);
|
File.AppendAllText(vaultPath, feedback);
|
||||||
}
|
}
|
||||||
|
public static DialogResult ShowOnBoarding(string userid, OnboardingSchritt onBoardingArt)
|
||||||
|
{
|
||||||
|
FormOnBoarding formOnBoarding = new FormOnBoarding(userid.ToLower(), onBoardingArt);
|
||||||
|
if (formOnBoarding.ShowDialog() == DialogResult.Cancel) return DialogResult.Cancel;
|
||||||
|
else return DialogResult.OK;
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Fehler werden in Obsidian Fehlerliste Importiert.
|
/// Fehler werden in Obsidian Fehlerliste Importiert.
|
||||||
@ -600,7 +609,8 @@ namespace Deckungsbeitrag
|
|||||||
/// <param name="timeStamp"> wenn null wird TimeStamp hier erstellt</param>
|
/// <param name="timeStamp"> wenn null wird TimeStamp hier erstellt</param>
|
||||||
public static void AddFehler(Benutzer user, string fehlerText, string fehlerStackTrace, string timeStamp)
|
public static void AddFehler(Benutzer user, string fehlerText, string fehlerStackTrace, string timeStamp)
|
||||||
{
|
{
|
||||||
string vaultPath = Path.Combine(savePath, "Feedback\\VerwaltungFehler.md");
|
string path = Path.Combine(savePath, "Feedback");
|
||||||
|
string vaultPath = Path.Combine(path, "VerwaltungFehler.md");
|
||||||
//string bildPath = Path.Combine(savePath, bildDateiname);
|
//string bildPath = Path.Combine(savePath, bildDateiname);
|
||||||
string fehler = string.Empty;
|
string fehler = string.Empty;
|
||||||
string benutzerKennung = string.Empty;
|
string benutzerKennung = string.Empty;
|
||||||
@ -609,7 +619,7 @@ namespace Deckungsbeitrag
|
|||||||
// Wenn User existiert wird dieser Verwendet. Sonst der bei Anmeldung registrierte Benutzer.
|
// Wenn User existiert wird dieser Verwendet. Sonst der bei Anmeldung registrierte Benutzer.
|
||||||
if (user != null) ben = user;
|
if (user != null) ben = user;
|
||||||
if (ben.BenutzerID == null) benutzerKennung = userid; else benutzerKennung = ben.Vorname + " " + ben.Nachname;
|
if (ben.BenutzerID == null) benutzerKennung = userid; else benutzerKennung = ben.Vorname + " " + ben.Nachname;
|
||||||
if (timeStamp == null) timeStamp = DateTime.Now.ToString("dd.MM.yyyy-HH:mm");
|
if (timeStamp == null) timeStamp = DateTime.Now.ToString("dd.MM.yyyy-HH-mm");
|
||||||
// Wenn der Bilddateiname leer ist wird feedback ohne Bilddateiname erstellt.
|
// Wenn der Bilddateiname leer ist wird feedback ohne Bilddateiname erstellt.
|
||||||
if (string.IsNullOrWhiteSpace(fehlerStackTrace))
|
if (string.IsNullOrWhiteSpace(fehlerStackTrace))
|
||||||
{
|
{
|
||||||
@ -617,14 +627,16 @@ namespace Deckungsbeitrag
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
string filename = $"fehler-{timeStamp}.txt";
|
||||||
fehler = $@" - [ ] **Zeitpunkt:** {timeStamp} **| User:** {benutzerKennung} **| Fehler:** {fehlerText} **| StackTrace:** {fehlerStackTrace}{Environment.NewLine}";
|
string txtfile = Path.Combine(path, filename);
|
||||||
|
File.WriteAllText(txtfile, fehlerStackTrace);
|
||||||
|
fehler = $@" - [ ] **Zeitpunkt:** {timeStamp} **| User:** {benutzerKennung} **| Fehler:** {fehlerText} **| StackTrace:** [[{filename}]]{Environment.NewLine}";
|
||||||
}
|
}
|
||||||
|
|
||||||
// Test wenn Image mitgegeben wird wird es hier gespeichert. (Pfadprobleme)
|
// Test wenn Image mitgegeben wird wird es hier gespeichert. (Pfadprobleme)
|
||||||
File.AppendAllText(vaultPath, fehler);
|
File.AppendAllText(vaultPath, fehler);
|
||||||
}
|
}
|
||||||
|
#endregion
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//TODO: Mit AddFehler in Obsidian eine Fehlerliste betreiben. (Wichtige Infos feststellen und bereitstellen)
|
//TODO: Mit AddFehler in Obsidian eine Fehlerliste betreiben. (Wichtige Infos feststellen und bereitstellen)
|
||||||
|
|||||||
@ -31,5 +31,5 @@ using System.Runtime.InteropServices;
|
|||||||
//
|
//
|
||||||
// Sie können alle Werte angeben oder Standardwerte für die Build- und Revisionsnummern verwenden,
|
// Sie können alle Werte angeben oder Standardwerte für die Build- und Revisionsnummern verwenden,
|
||||||
// indem Sie "*" wie unten gezeigt eingeben:
|
// indem Sie "*" wie unten gezeigt eingeben:
|
||||||
[assembly: AssemblyVersion("1.0.8.0")]
|
[assembly: AssemblyVersion("1.0.8.3")]
|
||||||
[assembly: AssemblyFileVersion("1.0.8.0")]
|
[assembly: AssemblyFileVersion("1.0.8.3")]
|
||||||
|
|||||||
@ -1867,15 +1867,15 @@
|
|||||||
{
|
{
|
||||||
"Name" = "8:Microsoft Visual Studio"
|
"Name" = "8:Microsoft Visual Studio"
|
||||||
"ProductName" = "8:SetupVerwaltung"
|
"ProductName" = "8:SetupVerwaltung"
|
||||||
"ProductCode" = "8:{64342440-05F3-46F2-A8F6-20A35192849F}"
|
"ProductCode" = "8:{DD41E808-CC1B-435B-8010-93A1C9B3E97A}"
|
||||||
"PackageCode" = "8:{094EB76B-7223-482A-8DCA-57B28545D843}"
|
"PackageCode" = "8:{AB6183BA-817F-4160-A9FF-13F11152D881}"
|
||||||
"UpgradeCode" = "8:{2DC7CE56-8D1C-42EB-B326-2E887EBB7F5A}"
|
"UpgradeCode" = "8:{2DC7CE56-8D1C-42EB-B326-2E887EBB7F5A}"
|
||||||
"AspNetVersion" = "8:"
|
"AspNetVersion" = "8:"
|
||||||
"RestartWWWService" = "11:FALSE"
|
"RestartWWWService" = "11:FALSE"
|
||||||
"RemovePreviousVersions" = "11:TRUE"
|
"RemovePreviousVersions" = "11:TRUE"
|
||||||
"DetectNewerInstalledVersion" = "11:TRUE"
|
"DetectNewerInstalledVersion" = "11:TRUE"
|
||||||
"InstallAllUsers" = "11:FALSE"
|
"InstallAllUsers" = "11:FALSE"
|
||||||
"ProductVersion" = "8:1.0.80"
|
"ProductVersion" = "8:1.0.83"
|
||||||
"Manufacturer" = "8:Kilian Wirl GmbH"
|
"Manufacturer" = "8:Kilian Wirl GmbH"
|
||||||
"ARPHELPTELEPHONE" = "8:"
|
"ARPHELPTELEPHONE" = "8:"
|
||||||
"ARPHELPLINK" = "8:"
|
"ARPHELPLINK" = "8:"
|
||||||
|
|||||||
@ -19,6 +19,7 @@ namespace Deckungsbeitrag.UserControls
|
|||||||
get => labelArtikel.Text;
|
get => labelArtikel.Text;
|
||||||
set => labelArtikel.Text = value;
|
set => labelArtikel.Text = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
public int Anzahl;
|
public int Anzahl;
|
||||||
|
|
||||||
public UCArtikel()
|
public UCArtikel()
|
||||||
@ -31,10 +32,16 @@ namespace Deckungsbeitrag.UserControls
|
|||||||
this.Anzahl = anzahl;
|
this.Anzahl = anzahl;
|
||||||
this.Tag = artikel;
|
this.Tag = artikel;
|
||||||
}
|
}
|
||||||
public UCArtikel(string s) : this()
|
public UCArtikel(KundeArtikel artikel, int anzahl) : this()
|
||||||
{
|
{
|
||||||
this.labelArtikel.Text = s;
|
this.labelArtikel.Text = $"{artikel.ArtikelNR.ToString()}\n{artikel.ArtikelName}";
|
||||||
|
this.Anzahl = anzahl;
|
||||||
|
this.Tag = artikel;
|
||||||
}
|
}
|
||||||
|
//public UCArtikel(string s) : this()
|
||||||
|
//{
|
||||||
|
// this.labelArtikel.Text = s;
|
||||||
|
//}
|
||||||
|
|
||||||
private void pictureBoxMinus_Click(object sender, EventArgs e)
|
private void pictureBoxMinus_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
|
|||||||
162
UserControls/UCAuftragListe.Designer.cs
generated
Normal file
162
UserControls/UCAuftragListe.Designer.cs
generated
Normal file
@ -0,0 +1,162 @@
|
|||||||
|
namespace Deckungsbeitrag.UserControls
|
||||||
|
{
|
||||||
|
partial class UCAuftragListe
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Erforderliche Designervariable.
|
||||||
|
/// </summary>
|
||||||
|
private System.ComponentModel.IContainer components = null;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Verwendete Ressourcen bereinigen.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="disposing">True, wenn verwaltete Ressourcen gelöscht werden sollen; andernfalls False.</param>
|
||||||
|
protected override void Dispose(bool disposing)
|
||||||
|
{
|
||||||
|
if (disposing && (components != null))
|
||||||
|
{
|
||||||
|
components.Dispose();
|
||||||
|
}
|
||||||
|
base.Dispose(disposing);
|
||||||
|
}
|
||||||
|
|
||||||
|
#region Vom Komponenten-Designer generierter Code
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Erforderliche Methode für die Designerunterstützung.
|
||||||
|
/// Der Inhalt der Methode darf nicht mit dem Code-Editor geändert werden.
|
||||||
|
/// </summary>
|
||||||
|
private void InitializeComponent()
|
||||||
|
{
|
||||||
|
this.panelButtons = new System.Windows.Forms.Panel();
|
||||||
|
this.panelListe = new System.Windows.Forms.Panel();
|
||||||
|
this.objectListViewAuftrag = new BrightIdeasSoftware.ObjectListView();
|
||||||
|
this.rBAlle = new System.Windows.Forms.RadioButton();
|
||||||
|
this.buttonAufAbruf = new System.Windows.Forms.Button();
|
||||||
|
this.buttonAusgeliefert = new System.Windows.Forms.Button();
|
||||||
|
this.panelButtons.SuspendLayout();
|
||||||
|
this.panelListe.SuspendLayout();
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.objectListViewAuftrag)).BeginInit();
|
||||||
|
this.SuspendLayout();
|
||||||
|
//
|
||||||
|
// panelButtons
|
||||||
|
//
|
||||||
|
this.panelButtons.Controls.Add(this.rBAlle);
|
||||||
|
this.panelButtons.Controls.Add(this.buttonAufAbruf);
|
||||||
|
this.panelButtons.Controls.Add(this.buttonAusgeliefert);
|
||||||
|
this.panelButtons.Dock = System.Windows.Forms.DockStyle.Left;
|
||||||
|
this.panelButtons.Location = new System.Drawing.Point(0, 0);
|
||||||
|
this.panelButtons.MaximumSize = new System.Drawing.Size(156, 0);
|
||||||
|
this.panelButtons.Name = "panelButtons";
|
||||||
|
this.panelButtons.Padding = new System.Windows.Forms.Padding(10);
|
||||||
|
this.panelButtons.Size = new System.Drawing.Size(156, 850);
|
||||||
|
this.panelButtons.TabIndex = 67;
|
||||||
|
//
|
||||||
|
// panelListe
|
||||||
|
//
|
||||||
|
this.panelListe.Controls.Add(this.objectListViewAuftrag);
|
||||||
|
this.panelListe.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||||
|
this.panelListe.Location = new System.Drawing.Point(156, 0);
|
||||||
|
this.panelListe.Name = "panelListe";
|
||||||
|
this.panelListe.Padding = new System.Windows.Forms.Padding(5);
|
||||||
|
this.panelListe.Size = new System.Drawing.Size(1090, 850);
|
||||||
|
this.panelListe.TabIndex = 68;
|
||||||
|
//
|
||||||
|
// objectListViewAuftrag
|
||||||
|
//
|
||||||
|
this.objectListViewAuftrag.AlternateRowBackColor = System.Drawing.Color.LightSteelBlue;
|
||||||
|
this.objectListViewAuftrag.BorderStyle = System.Windows.Forms.BorderStyle.None;
|
||||||
|
this.objectListViewAuftrag.CellEditUseWholeCell = false;
|
||||||
|
this.objectListViewAuftrag.CheckBoxes = true;
|
||||||
|
this.objectListViewAuftrag.Cursor = System.Windows.Forms.Cursors.Default;
|
||||||
|
this.objectListViewAuftrag.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||||
|
this.objectListViewAuftrag.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||||
|
this.objectListViewAuftrag.FullRowSelect = true;
|
||||||
|
this.objectListViewAuftrag.GridLines = true;
|
||||||
|
this.objectListViewAuftrag.HideSelection = false;
|
||||||
|
this.objectListViewAuftrag.Location = new System.Drawing.Point(5, 5);
|
||||||
|
this.objectListViewAuftrag.Name = "objectListViewAuftrag";
|
||||||
|
this.objectListViewAuftrag.Size = new System.Drawing.Size(1080, 840);
|
||||||
|
this.objectListViewAuftrag.TabIndex = 67;
|
||||||
|
this.objectListViewAuftrag.UseAlternatingBackColors = true;
|
||||||
|
this.objectListViewAuftrag.UseCompatibleStateImageBehavior = false;
|
||||||
|
this.objectListViewAuftrag.View = System.Windows.Forms.View.Details;
|
||||||
|
//
|
||||||
|
// rBAlle
|
||||||
|
//
|
||||||
|
this.rBAlle.CheckAlign = System.Drawing.ContentAlignment.MiddleRight;
|
||||||
|
this.rBAlle.Dock = System.Windows.Forms.DockStyle.Top;
|
||||||
|
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(10, 10);
|
||||||
|
this.rBAlle.Name = "rBAlle";
|
||||||
|
this.rBAlle.Size = new System.Drawing.Size(136, 36);
|
||||||
|
this.rBAlle.TabIndex = 58;
|
||||||
|
this.rBAlle.TabStop = true;
|
||||||
|
this.rBAlle.Text = "Alle";
|
||||||
|
this.rBAlle.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
|
||||||
|
this.rBAlle.UseVisualStyleBackColor = true;
|
||||||
|
this.rBAlle.CheckedChanged += new System.EventHandler(this.RadioButton_CheckedChanged);
|
||||||
|
//
|
||||||
|
// buttonAufAbruf
|
||||||
|
//
|
||||||
|
this.buttonAufAbruf.BackColor = System.Drawing.Color.Red;
|
||||||
|
this.buttonAufAbruf.FlatAppearance.BorderColor = System.Drawing.Color.Red;
|
||||||
|
this.buttonAufAbruf.FlatAppearance.BorderSize = 0;
|
||||||
|
this.buttonAufAbruf.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||||
|
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(3, 272);
|
||||||
|
this.buttonAufAbruf.Margin = new System.Windows.Forms.Padding(2);
|
||||||
|
this.buttonAufAbruf.Name = "buttonAufAbruf";
|
||||||
|
this.buttonAufAbruf.Size = new System.Drawing.Size(150, 41);
|
||||||
|
this.buttonAufAbruf.TabIndex = 63;
|
||||||
|
this.buttonAufAbruf.Text = "AufAbruf";
|
||||||
|
this.buttonAufAbruf.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;
|
||||||
|
this.buttonAufAbruf.UseVisualStyleBackColor = false;
|
||||||
|
this.buttonAufAbruf.Visible = false;
|
||||||
|
//
|
||||||
|
// buttonAusgeliefert
|
||||||
|
//
|
||||||
|
this.buttonAusgeliefert.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(192)))), ((int)(((byte)(0)))));
|
||||||
|
this.buttonAusgeliefert.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(192)))), ((int)(((byte)(0)))));
|
||||||
|
this.buttonAusgeliefert.FlatAppearance.BorderSize = 0;
|
||||||
|
this.buttonAusgeliefert.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||||
|
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(3, 227);
|
||||||
|
this.buttonAusgeliefert.Margin = new System.Windows.Forms.Padding(2);
|
||||||
|
this.buttonAusgeliefert.Name = "buttonAusgeliefert";
|
||||||
|
this.buttonAusgeliefert.Size = new System.Drawing.Size(150, 41);
|
||||||
|
this.buttonAusgeliefert.TabIndex = 62;
|
||||||
|
this.buttonAusgeliefert.Text = "Ausgeliefert";
|
||||||
|
this.buttonAusgeliefert.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;
|
||||||
|
this.buttonAusgeliefert.UseVisualStyleBackColor = false;
|
||||||
|
this.buttonAusgeliefert.Visible = false;
|
||||||
|
//
|
||||||
|
// UCAuftragListe
|
||||||
|
//
|
||||||
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||||
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||||
|
this.Controls.Add(this.panelListe);
|
||||||
|
this.Controls.Add(this.panelButtons);
|
||||||
|
this.Name = "UCAuftragListe";
|
||||||
|
this.Size = new System.Drawing.Size(1246, 850);
|
||||||
|
this.Load += new System.EventHandler(this.UCAuftragListe_Load);
|
||||||
|
this.panelButtons.ResumeLayout(false);
|
||||||
|
this.panelListe.ResumeLayout(false);
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.objectListViewAuftrag)).EndInit();
|
||||||
|
this.ResumeLayout(false);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
private System.Windows.Forms.Panel panelButtons;
|
||||||
|
private System.Windows.Forms.Panel panelListe;
|
||||||
|
private BrightIdeasSoftware.ObjectListView objectListViewAuftrag;
|
||||||
|
private System.Windows.Forms.RadioButton rBAlle;
|
||||||
|
private System.Windows.Forms.Button buttonAufAbruf;
|
||||||
|
private System.Windows.Forms.Button buttonAusgeliefert;
|
||||||
|
}
|
||||||
|
}
|
||||||
390
UserControls/UCAuftragListe.cs
Normal file
390
UserControls/UCAuftragListe.cs
Normal file
@ -0,0 +1,390 @@
|
|||||||
|
using BrightIdeasSoftware;
|
||||||
|
using DatenDB;
|
||||||
|
using Npgsql;
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.ComponentModel;
|
||||||
|
using System.Configuration;
|
||||||
|
using System.Data;
|
||||||
|
using System.Drawing;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using System.Windows.Forms;
|
||||||
|
|
||||||
|
namespace Deckungsbeitrag.UserControls
|
||||||
|
{
|
||||||
|
public partial class UCAuftragListe : UserControl
|
||||||
|
{
|
||||||
|
private Benutzer benutzer;
|
||||||
|
private Meldungen meldung;
|
||||||
|
private List<Auftrag> auftragliste;
|
||||||
|
public UCAuftragListe()
|
||||||
|
{
|
||||||
|
InitializeComponent();
|
||||||
|
}
|
||||||
|
public UCAuftragListe(Benutzer benutzer, List<Auftrag> auftragListe) : this()
|
||||||
|
{
|
||||||
|
this.benutzer = benutzer;
|
||||||
|
this.auftragliste = auftragListe;
|
||||||
|
}
|
||||||
|
private void UCAuftragListe_Load(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
GetRadioButtons();
|
||||||
|
this.buttonAusgeliefert.Dock = DockStyle.Top;
|
||||||
|
this.buttonAufAbruf.Dock = DockStyle.Top;
|
||||||
|
GetExpeditList(null);
|
||||||
|
}
|
||||||
|
private void GetRadioButtons()
|
||||||
|
{
|
||||||
|
foreach (AuftragStatus status in Enum.GetValues(typeof(AuftragStatus)))
|
||||||
|
{
|
||||||
|
RadioButton rb = new RadioButton();
|
||||||
|
rb.Tag = status;
|
||||||
|
rb.Text = status.ToString();
|
||||||
|
rb.Dock = DockStyle.Top;
|
||||||
|
rb.TextAlign = ContentAlignment.MiddleRight;
|
||||||
|
rb.CheckAlign = ContentAlignment.MiddleRight;
|
||||||
|
rb.Height = 36;
|
||||||
|
rb.Font = new Font(rb.Font.FontFamily, 12);
|
||||||
|
rb.CheckedChanged += RadioButton_CheckedChanged;
|
||||||
|
|
||||||
|
this.panelButtons.Controls.Add(rb);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// AUFTRAGSVERWALTUNG FUNKTIONEN
|
||||||
|
/// RadioButtons für Auftragsverwaltung & Laden der Auftragsliste nach Status.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="sender"></param>
|
||||||
|
/// <param name="e"></param>
|
||||||
|
private void RadioButton_CheckedChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
RadioButton rB = (RadioButton)sender;
|
||||||
|
if (rB.Checked)
|
||||||
|
{
|
||||||
|
if (Enum.TryParse(rB.Name.Substring(2), out AuftragStatus status)) rB.Tag = (int)status;
|
||||||
|
else rB.Tag = null;
|
||||||
|
|
||||||
|
switch (rB.Tag)
|
||||||
|
{
|
||||||
|
case AuftragStatus.Abgeholt:
|
||||||
|
break;
|
||||||
|
case AuftragStatus.Aufgelegt:
|
||||||
|
break;
|
||||||
|
case AuftragStatus.Gewaschen:
|
||||||
|
break;
|
||||||
|
case AuftragStatus.Herrichten:
|
||||||
|
break;
|
||||||
|
case AuftragStatus.Vorbereitet:
|
||||||
|
GetExpeditList((int?)rB.Tag);
|
||||||
|
break;
|
||||||
|
case AuftragStatus.Fertig:
|
||||||
|
GetExpeditList((int?)rB.Tag);
|
||||||
|
break;
|
||||||
|
case AuftragStatus.Ausgeliefert:
|
||||||
|
GetExpeditList((int?)rB.Tag);
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
GetExpeditList((int?)rB.Tag);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
private async void GetExpeditList(int? status)
|
||||||
|
{
|
||||||
|
Application.UseWaitCursor = true;
|
||||||
|
this.objectListViewAuftrag.SuspendLayout();
|
||||||
|
this.objectListViewAuftrag.BeginUpdate();
|
||||||
|
|
||||||
|
if (this.auftragliste == null)
|
||||||
|
{
|
||||||
|
var conn = new NpgsqlConnection(ConfigurationManager.AppSettings["ConnectionString"]); // Pro Task!
|
||||||
|
try
|
||||||
|
{
|
||||||
|
await conn.OpenAsync();
|
||||||
|
if (status == null & this.benutzer.Rolle == BenutzerRolle.Fahrer) auftragliste = await Auftrag.GetFahrerListAsync(this.benutzer.BenutzerID, conn);
|
||||||
|
else auftragliste = await Auftrag.GetStatusListAsync(status, conn);
|
||||||
|
}
|
||||||
|
finally
|
||||||
|
{
|
||||||
|
if (conn.State == ConnectionState.Open)
|
||||||
|
conn.Close();
|
||||||
|
conn.Dispose();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
if (auftragliste.Count == 0) meldung.KeineAufträge();
|
||||||
|
else Load_OLV(auftragliste); // Load_ListView(alist);
|
||||||
|
|
||||||
|
this.objectListViewAuftrag.EndUpdate();
|
||||||
|
this.objectListViewAuftrag.ResumeLayout();
|
||||||
|
Application.UseWaitCursor = false;
|
||||||
|
}
|
||||||
|
private void GetUnvisibleColumns()
|
||||||
|
{
|
||||||
|
|
||||||
|
foreach (OLVColumn col in this.objectListViewAuftrag.Columns)
|
||||||
|
{
|
||||||
|
if (this.benutzer.Rolle == BenutzerRolle.Frottee)
|
||||||
|
{
|
||||||
|
if (col.Text == "Etikett" & col.IsButton) col.IsVisible = false;
|
||||||
|
}
|
||||||
|
else if (col.IsButton) col.IsVisible = false;
|
||||||
|
|
||||||
|
switch (this.benutzer.Rolle)
|
||||||
|
{
|
||||||
|
case BenutzerRolle.Verwaltung:
|
||||||
|
break;
|
||||||
|
case BenutzerRolle.Fahrer:
|
||||||
|
if (col.IsButton) col.IsVisible = false;
|
||||||
|
if (col.Text == "FR" || col.Text == "GT" || col.Text == "KT") col.IsVisible = false;
|
||||||
|
|
||||||
|
break;
|
||||||
|
case BenutzerRolle.Admin:
|
||||||
|
break;
|
||||||
|
case BenutzerRolle.Waschstrasse:
|
||||||
|
break;
|
||||||
|
case BenutzerRolle.Master:
|
||||||
|
break;
|
||||||
|
case BenutzerRolle.Expedit:
|
||||||
|
break;
|
||||||
|
case BenutzerRolle.Frottee:
|
||||||
|
if (col.Text == "Etikett" & col.IsButton) col.IsVisible = false;
|
||||||
|
break;
|
||||||
|
case BenutzerRolle.Flach:
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
this.objectListViewAuftrag.RebuildColumns();
|
||||||
|
}
|
||||||
|
private void objectListViewAuftrag_ItemChecked(object sender, ItemCheckedEventArgs e)
|
||||||
|
{
|
||||||
|
if (this.objectListViewAuftrag.CheckedItems.Count > 0) this.buttonAusgeliefert.Visible = true;
|
||||||
|
else this.buttonAusgeliefert.Visible = false;
|
||||||
|
if (this.objectListViewAuftrag.CheckedItems.Count == 1) this.buttonAufAbruf.Visible = true;
|
||||||
|
else this.buttonAufAbruf.Visible = false;
|
||||||
|
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// AUFTRAGSVERWALTUNG FUNKTIONEN
|
||||||
|
/// ObjectListView für Auftragsverwaltung laden.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="alist"></param>
|
||||||
|
private void Load_OLV(List<Auftrag> alist)
|
||||||
|
{
|
||||||
|
// Cursor auf Warte-Status setzen, um Benutzerfeedback zu geben
|
||||||
|
this.Cursor = Cursors.WaitCursor;
|
||||||
|
|
||||||
|
// Spalten erstellen nach Typ Auftrag.
|
||||||
|
Generator.GenerateColumns(this.objectListViewAuftrag, typeof(Auftrag), true);
|
||||||
|
|
||||||
|
// ========== CHECKBOX COLUMNS FÜR ABTEILUNGEN ===========
|
||||||
|
// Spalten-Setup
|
||||||
|
var colFrottee = new OLVColumn("Frottee", "Frottee");
|
||||||
|
colFrottee.Text = "FR";
|
||||||
|
colFrottee.DisplayIndex = 6;
|
||||||
|
colFrottee.TextAlign = HorizontalAlignment.Center;
|
||||||
|
colFrottee.CheckBoxes = false;
|
||||||
|
colFrottee.TriStateCheckBoxes = false;
|
||||||
|
colFrottee.Width = 50;
|
||||||
|
colFrottee.AspectGetter = row => {
|
||||||
|
var auftrag = (Auftrag)row;
|
||||||
|
int abteilungen = (int)auftrag.Abteilungen;
|
||||||
|
|
||||||
|
bool begonnen = (abteilungen & (int)AbteilungsStatus.FrotteeBegonnen) != 0;
|
||||||
|
bool beendet = (abteilungen & (int)AbteilungsStatus.FrotteeBeendet) != 0;
|
||||||
|
|
||||||
|
if (beendet) return "✅"; // Status 1 ✓
|
||||||
|
if (begonnen) return "⭕"; // Status 2 ✓
|
||||||
|
return "❌"; // Status 0 ✓
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
var colKleinteile = new OLVColumn("Kleinteile", "Kleinteile");
|
||||||
|
colKleinteile.Text = "KT";
|
||||||
|
colKleinteile.DisplayIndex = 7;
|
||||||
|
colKleinteile.TextAlign = HorizontalAlignment.Center;
|
||||||
|
colKleinteile.CheckBoxes = false;
|
||||||
|
colKleinteile.TriStateCheckBoxes = false;
|
||||||
|
colKleinteile.Width = 50;
|
||||||
|
colKleinteile.AspectGetter = row => {
|
||||||
|
var auftrag = (Auftrag)row;
|
||||||
|
int abteilungen = (int)auftrag.Abteilungen;
|
||||||
|
|
||||||
|
bool begonnen = (abteilungen & (int)AbteilungsStatus.KleinteileBegonnen) != 0;
|
||||||
|
bool beendet = (abteilungen & (int)AbteilungsStatus.KleinteileBeendet) != 0;
|
||||||
|
|
||||||
|
if (beendet) return "✅"; // Status 1 ✓
|
||||||
|
if (begonnen) return "⭕"; // Status 2 ✓
|
||||||
|
return "❌"; // Status 0 ✓
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
var colGrosseTeile = new OLVColumn("Großteile", "Großteile");
|
||||||
|
colGrosseTeile.Text = "GT";
|
||||||
|
colGrosseTeile.DisplayIndex = 8;
|
||||||
|
colGrosseTeile.TextAlign = HorizontalAlignment.Center;
|
||||||
|
colGrosseTeile.CheckBoxes = false;
|
||||||
|
colGrosseTeile.TriStateCheckBoxes = false;
|
||||||
|
colGrosseTeile.Width = 50;
|
||||||
|
colGrosseTeile.AspectGetter = row => {
|
||||||
|
var auftrag = (Auftrag)row;
|
||||||
|
int abteilungen = (int)auftrag.Abteilungen;
|
||||||
|
|
||||||
|
bool begonnen = (abteilungen & (int)AbteilungsStatus.GrossteileBegonnen) != 0;
|
||||||
|
bool beendet = (abteilungen & (int)AbteilungsStatus.GrossteileBeendet) != 0;
|
||||||
|
|
||||||
|
if (beendet) return "✅"; // Status 1 ✓
|
||||||
|
if (begonnen) return "⭕"; // Status 2 ✓
|
||||||
|
return "❌"; // Status 0 ✓
|
||||||
|
};
|
||||||
|
|
||||||
|
this.objectListViewAuftrag.AllColumns.Add(colFrottee);
|
||||||
|
this.objectListViewAuftrag.AllColumns.Add(colKleinteile);
|
||||||
|
this.objectListViewAuftrag.AllColumns.Add(colGrosseTeile);
|
||||||
|
|
||||||
|
foreach (OLVColumn col in this.objectListViewAuftrag.AllColumns)
|
||||||
|
{
|
||||||
|
switch (col.Text)
|
||||||
|
{
|
||||||
|
case "Abschließen": // Abschließen Spalte als Button-Spalte konfigurieren
|
||||||
|
|
||||||
|
OLVColumn fertigColumn = col;
|
||||||
|
fertigColumn.DisplayIndex = 11;
|
||||||
|
fertigColumn.IsButton = true; // Als Button rendern
|
||||||
|
fertigColumn.ButtonSizing = OLVColumn.ButtonSizingMode.CellBounds; // Button füllt gesamte Zelle
|
||||||
|
fertigColumn.HeaderImageKey = "abschließen";
|
||||||
|
fertigColumn.ShowTextInHeader = false;
|
||||||
|
fertigColumn.MinimumWidth = fertigColumn.MaximumWidth = 80;
|
||||||
|
break;
|
||||||
|
case "Etikett": // Etikett Spalte als Button-Spalte konfigurieren
|
||||||
|
OLVColumn etikettColumn = col;
|
||||||
|
etikettColumn.DisplayIndex = 10;
|
||||||
|
etikettColumn.IsButton = true; // Als Button rendern
|
||||||
|
etikettColumn.ButtonSizing = OLVColumn.ButtonSizingMode.CellBounds; // Button füllt gesamte Zelle
|
||||||
|
etikettColumn.HeaderImageKey = "print";
|
||||||
|
etikettColumn.ShowTextInHeader = false;
|
||||||
|
etikettColumn.MinimumWidth = etikettColumn.MaximumWidth = 80;
|
||||||
|
break;
|
||||||
|
case "Aufgabe": // Aufgabe Spalte als Icon-Spalte: zeigt Icon wenn AufgabeID vorhanden
|
||||||
|
OLVColumn iconColumn = col;
|
||||||
|
iconColumn.DisplayIndex = 9;
|
||||||
|
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
|
||||||
|
};
|
||||||
|
break;
|
||||||
|
case "Kunde": // Kunde Spalte als Icon-Spalte: zeigt Icon und Kundename wenn Anmerkung vorhanden
|
||||||
|
OLVColumn iColumn = col;
|
||||||
|
iColumn.HeaderCheckBox = true;
|
||||||
|
iColumn.HeaderCheckBoxUpdatesRowCheckBoxes = true;
|
||||||
|
iColumn.DisplayIndex = 0;
|
||||||
|
iColumn.ImageGetter = rowObject =>
|
||||||
|
{
|
||||||
|
var _auftrag = rowObject as Auftrag;
|
||||||
|
if (string.IsNullOrWhiteSpace(Kunde.GetKunde(null, _auftrag.KundeID, null).Anmerkung)) return null;
|
||||||
|
else return 1;
|
||||||
|
};
|
||||||
|
break;
|
||||||
|
case "Liefertag": // Liefertag Spalte Zeigt Liefertag als String an.
|
||||||
|
OLVColumn dateColumn = col;
|
||||||
|
dateColumn.DisplayIndex = 1;
|
||||||
|
dateColumn.AspectToStringFormat = "{0:ddd dd.MM.}";
|
||||||
|
// DateTime-Filter für Spalte 2
|
||||||
|
dateColumn.ClusteringStrategy = new DateTimeClusteringStrategy(DateTimePortion.Day, "ddd dd.MM."); // DateTimeClustering damit Datum gefiltert werden kann
|
||||||
|
this.objectListViewAuftrag.SecondarySortColumn = dateColumn; // Primary Sortiert nach Spalte 5 (Status) Secundary Sortiert nach Spalte 2 (Liefertag)
|
||||||
|
break;
|
||||||
|
case "Status": // Spalte 5 als primäre Sortier-Spalte festlegen (nach Datenbindung!)
|
||||||
|
OLVColumn sortcolumn = col;
|
||||||
|
sortcolumn.DisplayIndex = 4;
|
||||||
|
this.objectListViewAuftrag.PrimarySortColumn = sortcolumn; // Primary Sortiert nach Spalte 5 (Status) Secundary Sortiert nach Spalte 2 (Liefertag)
|
||||||
|
break;
|
||||||
|
case "Erstellt":
|
||||||
|
col.IsVisible = false;
|
||||||
|
break;
|
||||||
|
case "Gedruckt":
|
||||||
|
col.IsVisible = false;
|
||||||
|
break;
|
||||||
|
case "Erledigt":
|
||||||
|
col.IsVisible = false;
|
||||||
|
break;
|
||||||
|
case "schmutzig":
|
||||||
|
col.HeaderImageKey = "dirt";
|
||||||
|
col.ShowTextInHeader = false;
|
||||||
|
col.MinimumWidth = col.MaximumWidth = 80;
|
||||||
|
col.DisplayIndex = 2;
|
||||||
|
break;
|
||||||
|
case "sauber":
|
||||||
|
col.HeaderImageKey = "clean";
|
||||||
|
col.ShowTextInHeader = false;
|
||||||
|
col.MinimumWidth = col.MaximumWidth = 80;
|
||||||
|
col.DisplayIndex = 3;
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// ========== IMAGE-LIST ZUWEISEN ==========
|
||||||
|
// SmallImageList für Icons in Detail-View (16x16 Pixel standard)
|
||||||
|
Program.imagelist.ImageSize = new Size(24, 24);
|
||||||
|
this.objectListViewAuftrag.SmallImageList = Program.imagelist; // Voraussetzung: imagelist mit Icon Index 0 gefüllt
|
||||||
|
|
||||||
|
// ========== TOOLTIP FÜR ICON-SPALTEN ==========
|
||||||
|
// Automatischer Cell-Tooltip bei Mouse-Hover über Spalte 10 und 1
|
||||||
|
this.objectListViewAuftrag.CellToolTipShowing += (s, e) =>
|
||||||
|
{
|
||||||
|
// Nur für Icon-Spalte (Index 10) und gültiges Model
|
||||||
|
if (e.Column.Text == "Aufgabe" && 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.Column.Text == "Kunde" && e.Model is Auftrag _auftrag)
|
||||||
|
{
|
||||||
|
if (!string.IsNullOrWhiteSpace(Kunde.GetKunde(null, _auftrag.KundeID, null).Anmerkung))
|
||||||
|
{
|
||||||
|
// 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??
|
||||||
|
if (e.Column.Text == "Fahrer" && e.Model is Auftrag auftrag1)
|
||||||
|
{
|
||||||
|
e.Text = auftrag1.ZusatzInfo;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
// ========== DATEN LADEN ==========
|
||||||
|
// WICHTIG: SetObjects NACH Column-Konfiguration aufrufen!
|
||||||
|
this.objectListViewAuftrag.SetObjects(auftragliste);
|
||||||
|
|
||||||
|
this.objectListViewAuftrag.RebuildColumns();
|
||||||
|
//if (_settings.OLV_State != null) this.objectListViewAuftrag.RestoreState(_settings.OLV_State);
|
||||||
|
GetUnvisibleColumns();
|
||||||
|
|
||||||
|
|
||||||
|
this.objectListViewAuftrag = Funktionen.Columns_Resize(null, this.objectListViewAuftrag).olv;
|
||||||
|
|
||||||
|
// Cursor auf Default-Status setzen, um Benutzerfeedback zu geben
|
||||||
|
this.Cursor = Cursors.Default;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
120
UserControls/UCAuftragListe.resx
Normal file
120
UserControls/UCAuftragListe.resx
Normal file
@ -0,0 +1,120 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<root>
|
||||||
|
<!--
|
||||||
|
Microsoft ResX Schema
|
||||||
|
|
||||||
|
Version 2.0
|
||||||
|
|
||||||
|
The primary goals of this format is to allow a simple XML format
|
||||||
|
that is mostly human readable. The generation and parsing of the
|
||||||
|
various data types are done through the TypeConverter classes
|
||||||
|
associated with the data types.
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
|
... ado.net/XML headers & schema ...
|
||||||
|
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||||
|
<resheader name="version">2.0</resheader>
|
||||||
|
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||||
|
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||||
|
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||||
|
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||||
|
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||||
|
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||||
|
</data>
|
||||||
|
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||||
|
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||||
|
<comment>This is a comment</comment>
|
||||||
|
</data>
|
||||||
|
|
||||||
|
There are any number of "resheader" rows that contain simple
|
||||||
|
name/value pairs.
|
||||||
|
|
||||||
|
Each data row contains a name, and value. The row also contains a
|
||||||
|
type or mimetype. Type corresponds to a .NET class that support
|
||||||
|
text/value conversion through the TypeConverter architecture.
|
||||||
|
Classes that don't support this are serialized and stored with the
|
||||||
|
mimetype set.
|
||||||
|
|
||||||
|
The mimetype is used for serialized objects, and tells the
|
||||||
|
ResXResourceReader how to depersist the object. This is currently not
|
||||||
|
extensible. For a given mimetype the value must be set accordingly:
|
||||||
|
|
||||||
|
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||||
|
that the ResXResourceWriter will generate, however the reader can
|
||||||
|
read any of the formats listed below.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.binary.base64
|
||||||
|
value : The object must be serialized with
|
||||||
|
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.soap.base64
|
||||||
|
value : The object must be serialized with
|
||||||
|
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||||
|
value : The object must be serialized into a byte array
|
||||||
|
: using a System.ComponentModel.TypeConverter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
-->
|
||||||
|
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||||
|
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||||
|
<xsd:element name="root" msdata:IsDataSet="true">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:choice maxOccurs="unbounded">
|
||||||
|
<xsd:element name="metadata">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||||
|
<xsd:attribute name="type" type="xsd:string" />
|
||||||
|
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||||
|
<xsd:attribute ref="xml:space" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="assembly">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:attribute name="alias" type="xsd:string" />
|
||||||
|
<xsd:attribute name="name" type="xsd:string" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="data">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||||
|
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||||
|
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||||
|
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||||
|
<xsd:attribute ref="xml:space" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="resheader">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
</xsd:choice>
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
</xsd:schema>
|
||||||
|
<resheader name="resmimetype">
|
||||||
|
<value>text/microsoft-resx</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="version">
|
||||||
|
<value>2.0</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="reader">
|
||||||
|
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="writer">
|
||||||
|
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
|
</resheader>
|
||||||
|
</root>
|
||||||
194
UserControls/UCAuftragSuchen.Designer.cs
generated
Normal file
194
UserControls/UCAuftragSuchen.Designer.cs
generated
Normal file
@ -0,0 +1,194 @@
|
|||||||
|
namespace Deckungsbeitrag.UserControls
|
||||||
|
{
|
||||||
|
partial class UCAuftragSuchen
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Erforderliche Designervariable.
|
||||||
|
/// </summary>
|
||||||
|
private System.ComponentModel.IContainer components = null;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Verwendete Ressourcen bereinigen.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="disposing">True, wenn verwaltete Ressourcen gelöscht werden sollen; andernfalls False.</param>
|
||||||
|
protected override void Dispose(bool disposing)
|
||||||
|
{
|
||||||
|
if (disposing && (components != null))
|
||||||
|
{
|
||||||
|
components.Dispose();
|
||||||
|
}
|
||||||
|
base.Dispose(disposing);
|
||||||
|
}
|
||||||
|
|
||||||
|
#region Vom Komponenten-Designer generierter Code
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Erforderliche Methode für die Designerunterstützung.
|
||||||
|
/// Der Inhalt der Methode darf nicht mit dem Code-Editor geändert werden.
|
||||||
|
/// </summary>
|
||||||
|
private void InitializeComponent()
|
||||||
|
{
|
||||||
|
this.groupBoxSuchen = new System.Windows.Forms.GroupBox();
|
||||||
|
this.comboBoxStatus = new System.Windows.Forms.ComboBox();
|
||||||
|
this.comboBoxTyp = new System.Windows.Forms.ComboBox();
|
||||||
|
this.radioButtonErstellt = new System.Windows.Forms.RadioButton();
|
||||||
|
this.radioButtonLiefertag = new System.Windows.Forms.RadioButton();
|
||||||
|
this.buttonKunde = new System.Windows.Forms.Button();
|
||||||
|
this.dTPSuchen = new System.Windows.Forms.DateTimePicker();
|
||||||
|
this.buttonSuchen = new System.Windows.Forms.Button();
|
||||||
|
this.groupBoxSuchen.SuspendLayout();
|
||||||
|
this.SuspendLayout();
|
||||||
|
//
|
||||||
|
// groupBoxSuchen
|
||||||
|
//
|
||||||
|
this.groupBoxSuchen.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||||
|
this.groupBoxSuchen.Controls.Add(this.comboBoxStatus);
|
||||||
|
this.groupBoxSuchen.Controls.Add(this.comboBoxTyp);
|
||||||
|
this.groupBoxSuchen.Controls.Add(this.radioButtonErstellt);
|
||||||
|
this.groupBoxSuchen.Controls.Add(this.radioButtonLiefertag);
|
||||||
|
this.groupBoxSuchen.Controls.Add(this.buttonKunde);
|
||||||
|
this.groupBoxSuchen.Controls.Add(this.dTPSuchen);
|
||||||
|
this.groupBoxSuchen.Controls.Add(this.buttonSuchen);
|
||||||
|
this.groupBoxSuchen.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(1)))), ((int)(((byte)(53)))), ((int)(((byte)(101)))));
|
||||||
|
this.groupBoxSuchen.Location = new System.Drawing.Point(20, 20);
|
||||||
|
this.groupBoxSuchen.Name = "groupBoxSuchen";
|
||||||
|
this.groupBoxSuchen.Size = new System.Drawing.Size(220, 236);
|
||||||
|
this.groupBoxSuchen.TabIndex = 68;
|
||||||
|
this.groupBoxSuchen.TabStop = false;
|
||||||
|
this.groupBoxSuchen.Text = "AUFTRAG SUCHEN";
|
||||||
|
this.groupBoxSuchen.VisibleChanged += new System.EventHandler(this.groupBoxSuchen_VisibleChanged);
|
||||||
|
this.groupBoxSuchen.Paint += new System.Windows.Forms.PaintEventHandler(this.groupBoxSuchen_Paint);
|
||||||
|
//
|
||||||
|
// comboBoxStatus
|
||||||
|
//
|
||||||
|
this.comboBoxStatus.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||||
|
this.comboBoxStatus.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||||
|
this.comboBoxStatus.FormattingEnabled = true;
|
||||||
|
this.comboBoxStatus.Location = new System.Drawing.Point(8, 165);
|
||||||
|
this.comboBoxStatus.Name = "comboBoxStatus";
|
||||||
|
this.comboBoxStatus.Size = new System.Drawing.Size(200, 28);
|
||||||
|
this.comboBoxStatus.TabIndex = 79;
|
||||||
|
//
|
||||||
|
// comboBoxTyp
|
||||||
|
//
|
||||||
|
this.comboBoxTyp.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||||
|
this.comboBoxTyp.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||||
|
this.comboBoxTyp.FormattingEnabled = true;
|
||||||
|
this.comboBoxTyp.Location = new System.Drawing.Point(8, 131);
|
||||||
|
this.comboBoxTyp.Name = "comboBoxTyp";
|
||||||
|
this.comboBoxTyp.Size = new System.Drawing.Size(200, 28);
|
||||||
|
this.comboBoxTyp.TabIndex = 78;
|
||||||
|
//
|
||||||
|
// radioButtonErstellt
|
||||||
|
//
|
||||||
|
this.radioButtonErstellt.Appearance = System.Windows.Forms.Appearance.Button;
|
||||||
|
this.radioButtonErstellt.BackColor = System.Drawing.Color.White;
|
||||||
|
this.radioButtonErstellt.FlatAppearance.BorderSize = 3;
|
||||||
|
this.radioButtonErstellt.FlatAppearance.CheckedBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(1)))), ((int)(((byte)(53)))), ((int)(((byte)(101)))));
|
||||||
|
this.radioButtonErstellt.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||||
|
this.radioButtonErstellt.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||||
|
this.radioButtonErstellt.Location = new System.Drawing.Point(113, 59);
|
||||||
|
this.radioButtonErstellt.Name = "radioButtonErstellt";
|
||||||
|
this.radioButtonErstellt.Size = new System.Drawing.Size(95, 29);
|
||||||
|
this.radioButtonErstellt.TabIndex = 77;
|
||||||
|
this.radioButtonErstellt.TabStop = true;
|
||||||
|
this.radioButtonErstellt.Tag = "erstellt";
|
||||||
|
this.radioButtonErstellt.Text = "Erstellt am";
|
||||||
|
this.radioButtonErstellt.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||||
|
this.radioButtonErstellt.UseVisualStyleBackColor = false;
|
||||||
|
this.radioButtonErstellt.CheckedChanged += new System.EventHandler(this.radioButtonSuchen_CheckedChanged);
|
||||||
|
//
|
||||||
|
// radioButtonLiefertag
|
||||||
|
//
|
||||||
|
this.radioButtonLiefertag.Appearance = System.Windows.Forms.Appearance.Button;
|
||||||
|
this.radioButtonLiefertag.BackColor = System.Drawing.Color.White;
|
||||||
|
this.radioButtonLiefertag.FlatAppearance.BorderSize = 3;
|
||||||
|
this.radioButtonLiefertag.FlatAppearance.CheckedBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(1)))), ((int)(((byte)(53)))), ((int)(((byte)(101)))));
|
||||||
|
this.radioButtonLiefertag.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||||
|
this.radioButtonLiefertag.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||||
|
this.radioButtonLiefertag.Location = new System.Drawing.Point(8, 59);
|
||||||
|
this.radioButtonLiefertag.Name = "radioButtonLiefertag";
|
||||||
|
this.radioButtonLiefertag.Size = new System.Drawing.Size(95, 29);
|
||||||
|
this.radioButtonLiefertag.TabIndex = 76;
|
||||||
|
this.radioButtonLiefertag.TabStop = true;
|
||||||
|
this.radioButtonLiefertag.Tag = "liefertag";
|
||||||
|
this.radioButtonLiefertag.Text = "Liefertag";
|
||||||
|
this.radioButtonLiefertag.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||||
|
this.radioButtonLiefertag.UseVisualStyleBackColor = false;
|
||||||
|
this.radioButtonLiefertag.CheckedChanged += new System.EventHandler(this.radioButtonSuchen_CheckedChanged);
|
||||||
|
//
|
||||||
|
// buttonKunde
|
||||||
|
//
|
||||||
|
this.buttonKunde.BackColor = System.Drawing.Color.White;
|
||||||
|
this.buttonKunde.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(1)))), ((int)(((byte)(53)))), ((int)(((byte)(101)))));
|
||||||
|
this.buttonKunde.FlatAppearance.BorderSize = 3;
|
||||||
|
this.buttonKunde.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||||
|
this.buttonKunde.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||||
|
this.buttonKunde.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(1)))), ((int)(((byte)(53)))), ((int)(((byte)(101)))));
|
||||||
|
this.buttonKunde.Location = new System.Drawing.Point(8, 22);
|
||||||
|
this.buttonKunde.Name = "buttonKunde";
|
||||||
|
this.buttonKunde.Size = new System.Drawing.Size(200, 29);
|
||||||
|
this.buttonKunde.TabIndex = 75;
|
||||||
|
this.buttonKunde.Text = "Kunde wählen";
|
||||||
|
this.buttonKunde.UseVisualStyleBackColor = false;
|
||||||
|
this.buttonKunde.Click += new System.EventHandler(this.buttonKunde_Click);
|
||||||
|
//
|
||||||
|
// dTPSuchen
|
||||||
|
//
|
||||||
|
this.dTPSuchen.Checked = false;
|
||||||
|
this.dTPSuchen.CustomFormat = "ddd - dd.MM.yyyy";
|
||||||
|
this.dTPSuchen.Enabled = false;
|
||||||
|
this.dTPSuchen.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||||
|
this.dTPSuchen.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
|
||||||
|
this.dTPSuchen.Location = new System.Drawing.Point(8, 99);
|
||||||
|
this.dTPSuchen.Name = "dTPSuchen";
|
||||||
|
this.dTPSuchen.ShowCheckBox = true;
|
||||||
|
this.dTPSuchen.Size = new System.Drawing.Size(200, 26);
|
||||||
|
this.dTPSuchen.TabIndex = 74;
|
||||||
|
//
|
||||||
|
// buttonSuchen
|
||||||
|
//
|
||||||
|
this.buttonSuchen.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
|
||||||
|
this.buttonSuchen.BackColor = System.Drawing.Color.SpringGreen;
|
||||||
|
this.buttonSuchen.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(192)))), ((int)(((byte)(0)))));
|
||||||
|
this.buttonSuchen.FlatAppearance.BorderSize = 0;
|
||||||
|
this.buttonSuchen.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||||
|
this.buttonSuchen.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||||
|
this.buttonSuchen.ForeColor = System.Drawing.Color.Black;
|
||||||
|
this.buttonSuchen.ImageAlign = System.Drawing.ContentAlignment.MiddleRight;
|
||||||
|
this.buttonSuchen.Location = new System.Drawing.Point(8, 199);
|
||||||
|
this.buttonSuchen.Margin = new System.Windows.Forms.Padding(5);
|
||||||
|
this.buttonSuchen.Name = "buttonSuchen";
|
||||||
|
this.buttonSuchen.Size = new System.Drawing.Size(200, 29);
|
||||||
|
this.buttonSuchen.TabIndex = 72;
|
||||||
|
this.buttonSuchen.Text = "Auftrag Suchen";
|
||||||
|
this.buttonSuchen.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;
|
||||||
|
this.buttonSuchen.UseVisualStyleBackColor = false;
|
||||||
|
this.buttonSuchen.Click += new System.EventHandler(this.buttonSuchen_Click);
|
||||||
|
//
|
||||||
|
// UCAuftragSuchen
|
||||||
|
//
|
||||||
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||||
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||||
|
this.BackColor = System.Drawing.Color.Transparent;
|
||||||
|
this.Controls.Add(this.groupBoxSuchen);
|
||||||
|
this.Name = "UCAuftragSuchen";
|
||||||
|
this.Size = new System.Drawing.Size(260, 276);
|
||||||
|
this.Load += new System.EventHandler(this.UCAuftragSuchen_Load);
|
||||||
|
this.groupBoxSuchen.ResumeLayout(false);
|
||||||
|
this.ResumeLayout(false);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
private System.Windows.Forms.GroupBox groupBoxSuchen;
|
||||||
|
private System.Windows.Forms.ComboBox comboBoxStatus;
|
||||||
|
private System.Windows.Forms.ComboBox comboBoxTyp;
|
||||||
|
private System.Windows.Forms.RadioButton radioButtonErstellt;
|
||||||
|
private System.Windows.Forms.RadioButton radioButtonLiefertag;
|
||||||
|
private System.Windows.Forms.Button buttonKunde;
|
||||||
|
private System.Windows.Forms.DateTimePicker dTPSuchen;
|
||||||
|
private System.Windows.Forms.Button buttonSuchen;
|
||||||
|
}
|
||||||
|
}
|
||||||
102
UserControls/UCAuftragSuchen.cs
Normal file
102
UserControls/UCAuftragSuchen.cs
Normal file
@ -0,0 +1,102 @@
|
|||||||
|
using DatenDB;
|
||||||
|
using Deckungsbeitrag.AA_Forms;
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.ComponentModel;
|
||||||
|
using System.Data;
|
||||||
|
using System.Drawing;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using System.Windows.Forms;
|
||||||
|
|
||||||
|
namespace Deckungsbeitrag.UserControls
|
||||||
|
{
|
||||||
|
public partial class UCAuftragSuchen : UserControl
|
||||||
|
{
|
||||||
|
private Benutzer benutzer;
|
||||||
|
private FormShowGroupBox showbox;
|
||||||
|
public UCAuftragSuchen()
|
||||||
|
{
|
||||||
|
InitializeComponent();
|
||||||
|
}
|
||||||
|
|
||||||
|
public UCAuftragSuchen(Benutzer benutzer, object sender) : this()
|
||||||
|
{
|
||||||
|
this.benutzer = benutzer;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void UCAuftragSuchen_Load(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
showbox = this.Parent as FormShowGroupBox;
|
||||||
|
}
|
||||||
|
#region Suchen-GroupBox
|
||||||
|
|
||||||
|
private void buttonSuchen_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
List<Auftrag> auftraglist;
|
||||||
|
string datum = string.Empty;
|
||||||
|
DateTime date = this.dTPSuchen.Value.Date;
|
||||||
|
AuftragStatus? status = (AuftragStatus?)this.comboBoxStatus.SelectedItem == null ? null : (AuftragStatus?)this.comboBoxStatus.SelectedItem;
|
||||||
|
AuftragTyp? typ = (AuftragTyp?)this.comboBoxTyp.SelectedItem == null ? null : (AuftragTyp?)this.comboBoxTyp.SelectedItem;
|
||||||
|
foreach (RadioButton rb in this.groupBoxSuchen.Controls.OfType<RadioButton>()) if (rb.Checked) { datum = rb.Tag.ToString(); }
|
||||||
|
|
||||||
|
if (datum == string.Empty && status == null && typ == null && this.buttonKunde.Tag == null) { MessageBox.Show("Nach was möchtest du suchen?", "ANGABEN FEHLEN", MessageBoxButtons.OK, MessageBoxIcon.Question); return; }
|
||||||
|
if (this.buttonKunde.Tag != null) auftraglist = Auftrag.FindeAuftragVonKunde((Kunde)this.buttonKunde.Tag, null, datum, date);
|
||||||
|
else auftraglist = Auftrag.SucheAuftrag(datum, date, status, typ);
|
||||||
|
|
||||||
|
if (auftraglist.Count == 0) { MessageBox.Show("Es konnte kein Auftrag gefunden werden.", "FEHLER", MessageBoxButtons.OK, MessageBoxIcon.Error); return; }
|
||||||
|
if (auftraglist.Count > 1)
|
||||||
|
{
|
||||||
|
//MessageBox.Show("Es wurden mehrere Aufträge gefunden. Bitte melde das Problem.", "FEHLER", MessageBoxButtons.OK, MessageBoxIcon.Error); return;
|
||||||
|
showbox.auftragliste = auftraglist;
|
||||||
|
showbox._toclose = true;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
FormAuftragDetail auftragDetail = new FormAuftragDetail(auftraglist[0], this.benutzer);
|
||||||
|
DialogResult result = auftragDetail.ShowDialog();
|
||||||
|
if (result == DialogResult.OK || result == DialogResult.Cancel)
|
||||||
|
{
|
||||||
|
showbox._toclose = true;
|
||||||
|
}
|
||||||
|
this.buttonKunde.BackColor = Color.White;
|
||||||
|
this.buttonKunde.ForeColor = this.buttonKunde.FlatAppearance.BorderColor = Program.Wirlblau;
|
||||||
|
}
|
||||||
|
private void radioButtonSuchen_CheckedChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
RadioButton rb = (RadioButton)sender;
|
||||||
|
if (rb.Checked) { rb.ForeColor = Color.White; }
|
||||||
|
else { rb.ForeColor = Program.Wirlblau; rb.FlatAppearance.BorderColor = Program.Wirlblau; }
|
||||||
|
this.dTPSuchen.Enabled = true;
|
||||||
|
}
|
||||||
|
private void buttonKunde_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
Button btn = (Button)sender;
|
||||||
|
Kunde kunde = Funktionen.Open_List(null);
|
||||||
|
if (kunde == null) return;
|
||||||
|
btn.Tag = kunde;
|
||||||
|
btn.Text = string.IsNullOrWhiteSpace(kunde.Suchtext) ? kunde.KundeName : kunde.Suchtext;
|
||||||
|
btn.BackColor = Program.Wirlblau;
|
||||||
|
btn.ForeColor = Color.White;
|
||||||
|
}
|
||||||
|
private void groupBoxSuchen_VisibleChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
this.SuspendLayout();
|
||||||
|
if (!this.groupBoxSuchen.Visible) return;
|
||||||
|
this.comboBoxTyp.DataSource = Enum.GetValues(typeof(AuftragPriority));
|
||||||
|
this.comboBoxTyp.SelectedIndex = -1;
|
||||||
|
this.comboBoxStatus.DataSource = Enum.GetValues(typeof(AuftragStatus));
|
||||||
|
this.comboBoxStatus.SelectedIndex = -1;
|
||||||
|
this.ResumeLayout();
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
private void groupBoxSuchen_Paint(object sender, PaintEventArgs e)
|
||||||
|
{
|
||||||
|
GroupBox gb = (GroupBox)sender;
|
||||||
|
base.OnPaint(e);
|
||||||
|
Funktionen.GetGroupBoxBoarder(gb, e);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
120
UserControls/UCAuftragSuchen.resx
Normal file
120
UserControls/UCAuftragSuchen.resx
Normal file
@ -0,0 +1,120 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<root>
|
||||||
|
<!--
|
||||||
|
Microsoft ResX Schema
|
||||||
|
|
||||||
|
Version 2.0
|
||||||
|
|
||||||
|
The primary goals of this format is to allow a simple XML format
|
||||||
|
that is mostly human readable. The generation and parsing of the
|
||||||
|
various data types are done through the TypeConverter classes
|
||||||
|
associated with the data types.
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
|
... ado.net/XML headers & schema ...
|
||||||
|
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||||
|
<resheader name="version">2.0</resheader>
|
||||||
|
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||||
|
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||||
|
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||||
|
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||||
|
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||||
|
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||||
|
</data>
|
||||||
|
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||||
|
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||||
|
<comment>This is a comment</comment>
|
||||||
|
</data>
|
||||||
|
|
||||||
|
There are any number of "resheader" rows that contain simple
|
||||||
|
name/value pairs.
|
||||||
|
|
||||||
|
Each data row contains a name, and value. The row also contains a
|
||||||
|
type or mimetype. Type corresponds to a .NET class that support
|
||||||
|
text/value conversion through the TypeConverter architecture.
|
||||||
|
Classes that don't support this are serialized and stored with the
|
||||||
|
mimetype set.
|
||||||
|
|
||||||
|
The mimetype is used for serialized objects, and tells the
|
||||||
|
ResXResourceReader how to depersist the object. This is currently not
|
||||||
|
extensible. For a given mimetype the value must be set accordingly:
|
||||||
|
|
||||||
|
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||||
|
that the ResXResourceWriter will generate, however the reader can
|
||||||
|
read any of the formats listed below.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.binary.base64
|
||||||
|
value : The object must be serialized with
|
||||||
|
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.soap.base64
|
||||||
|
value : The object must be serialized with
|
||||||
|
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||||
|
value : The object must be serialized into a byte array
|
||||||
|
: using a System.ComponentModel.TypeConverter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
-->
|
||||||
|
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||||
|
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||||
|
<xsd:element name="root" msdata:IsDataSet="true">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:choice maxOccurs="unbounded">
|
||||||
|
<xsd:element name="metadata">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||||
|
<xsd:attribute name="type" type="xsd:string" />
|
||||||
|
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||||
|
<xsd:attribute ref="xml:space" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="assembly">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:attribute name="alias" type="xsd:string" />
|
||||||
|
<xsd:attribute name="name" type="xsd:string" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="data">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||||
|
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||||
|
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||||
|
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||||
|
<xsd:attribute ref="xml:space" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="resheader">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
</xsd:choice>
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
</xsd:schema>
|
||||||
|
<resheader name="resmimetype">
|
||||||
|
<value>text/microsoft-resx</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="version">
|
||||||
|
<value>2.0</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="reader">
|
||||||
|
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="writer">
|
||||||
|
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
|
</resheader>
|
||||||
|
</root>
|
||||||
294
UserControls/UCStatistik.Designer.cs
generated
Normal file
294
UserControls/UCStatistik.Designer.cs
generated
Normal file
@ -0,0 +1,294 @@
|
|||||||
|
namespace Deckungsbeitrag.UserControls
|
||||||
|
{
|
||||||
|
partial class UCStatistik
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Erforderliche Designervariable.
|
||||||
|
/// </summary>
|
||||||
|
private System.ComponentModel.IContainer components = null;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Verwendete Ressourcen bereinigen.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="disposing">True, wenn verwaltete Ressourcen gelöscht werden sollen; andernfalls False.</param>
|
||||||
|
protected override void Dispose(bool disposing)
|
||||||
|
{
|
||||||
|
if (disposing && (components != null))
|
||||||
|
{
|
||||||
|
components.Dispose();
|
||||||
|
}
|
||||||
|
base.Dispose(disposing);
|
||||||
|
}
|
||||||
|
|
||||||
|
#region Vom Komponenten-Designer generierter Code
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Erforderliche Methode für die Designerunterstützung.
|
||||||
|
/// Der Inhalt der Methode darf nicht mit dem Code-Editor geändert werden.
|
||||||
|
/// </summary>
|
||||||
|
private void InitializeComponent()
|
||||||
|
{
|
||||||
|
this.groupBoxStatistik = new System.Windows.Forms.GroupBox();
|
||||||
|
this.dateTimePicker1 = new System.Windows.Forms.DateTimePicker();
|
||||||
|
this.tableLayoutPanelStatistik = new System.Windows.Forms.TableLayoutPanel();
|
||||||
|
this.labelZahl6 = new System.Windows.Forms.Label();
|
||||||
|
this.labelStatistik6 = new System.Windows.Forms.Label();
|
||||||
|
this.labelZahl5 = new System.Windows.Forms.Label();
|
||||||
|
this.labelStatistik5 = new System.Windows.Forms.Label();
|
||||||
|
this.labelZahl4 = new System.Windows.Forms.Label();
|
||||||
|
this.labelStatistik4 = new System.Windows.Forms.Label();
|
||||||
|
this.labelZahl3 = new System.Windows.Forms.Label();
|
||||||
|
this.labelStatistik3 = new System.Windows.Forms.Label();
|
||||||
|
this.labelZahl2 = new System.Windows.Forms.Label();
|
||||||
|
this.labelStatistik2 = new System.Windows.Forms.Label();
|
||||||
|
this.labelZahl1 = new System.Windows.Forms.Label();
|
||||||
|
this.labelStatistik1 = new System.Windows.Forms.Label();
|
||||||
|
this.groupBoxStatistik.SuspendLayout();
|
||||||
|
this.tableLayoutPanelStatistik.SuspendLayout();
|
||||||
|
this.SuspendLayout();
|
||||||
|
//
|
||||||
|
// groupBoxStatistik
|
||||||
|
//
|
||||||
|
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(20, 20);
|
||||||
|
this.groupBoxStatistik.Name = "groupBoxStatistik";
|
||||||
|
this.groupBoxStatistik.Size = new System.Drawing.Size(293, 197);
|
||||||
|
this.groupBoxStatistik.TabIndex = 63;
|
||||||
|
this.groupBoxStatistik.TabStop = false;
|
||||||
|
this.groupBoxStatistik.Text = "STATISTIK";
|
||||||
|
this.groupBoxStatistik.Paint += new System.Windows.Forms.PaintEventHandler(this.groupBoxStatistik_Paint);
|
||||||
|
//
|
||||||
|
// dateTimePicker1
|
||||||
|
//
|
||||||
|
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.Name = "dateTimePicker1";
|
||||||
|
this.dateTimePicker1.Size = new System.Drawing.Size(224, 26);
|
||||||
|
this.dateTimePicker1.TabIndex = 1;
|
||||||
|
this.dateTimePicker1.CloseUp += new System.EventHandler(this.dateTimePicker1_CloseUp);
|
||||||
|
//
|
||||||
|
// tableLayoutPanelStatistik
|
||||||
|
//
|
||||||
|
this.tableLayoutPanelStatistik.ColumnCount = 2;
|
||||||
|
this.tableLayoutPanelStatistik.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
|
||||||
|
this.tableLayoutPanelStatistik.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
|
||||||
|
this.tableLayoutPanelStatistik.Controls.Add(this.labelZahl6, 1, 5);
|
||||||
|
this.tableLayoutPanelStatistik.Controls.Add(this.labelStatistik6, 0, 5);
|
||||||
|
this.tableLayoutPanelStatistik.Controls.Add(this.labelZahl5, 1, 4);
|
||||||
|
this.tableLayoutPanelStatistik.Controls.Add(this.labelStatistik5, 0, 4);
|
||||||
|
this.tableLayoutPanelStatistik.Controls.Add(this.labelZahl4, 1, 3);
|
||||||
|
this.tableLayoutPanelStatistik.Controls.Add(this.labelStatistik4, 0, 3);
|
||||||
|
this.tableLayoutPanelStatistik.Controls.Add(this.labelZahl3, 1, 2);
|
||||||
|
this.tableLayoutPanelStatistik.Controls.Add(this.labelStatistik3, 0, 2);
|
||||||
|
this.tableLayoutPanelStatistik.Controls.Add(this.labelZahl2, 1, 1);
|
||||||
|
this.tableLayoutPanelStatistik.Controls.Add(this.labelStatistik2, 0, 1);
|
||||||
|
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.Name = "tableLayoutPanelStatistik";
|
||||||
|
this.tableLayoutPanelStatistik.RowCount = 6;
|
||||||
|
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.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(287, 143);
|
||||||
|
this.tableLayoutPanelStatistik.TabIndex = 0;
|
||||||
|
//
|
||||||
|
// labelZahl6
|
||||||
|
//
|
||||||
|
this.labelZahl6.AutoSize = true;
|
||||||
|
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.Color.Black;
|
||||||
|
this.labelZahl6.Location = new System.Drawing.Point(99, 115);
|
||||||
|
this.labelZahl6.Name = "labelZahl6";
|
||||||
|
this.labelZahl6.Size = new System.Drawing.Size(53, 28);
|
||||||
|
this.labelZahl6.TabIndex = 11;
|
||||||
|
this.labelZahl6.Text = "Zahl 6";
|
||||||
|
this.labelZahl6.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||||
|
//
|
||||||
|
// labelStatistik6
|
||||||
|
//
|
||||||
|
this.labelStatistik6.AutoSize = true;
|
||||||
|
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.Color.Black;
|
||||||
|
this.labelStatistik6.Location = new System.Drawing.Point(3, 115);
|
||||||
|
this.labelStatistik6.Name = "labelStatistik6";
|
||||||
|
this.labelStatistik6.Size = new System.Drawing.Size(90, 28);
|
||||||
|
this.labelStatistik6.TabIndex = 10;
|
||||||
|
this.labelStatistik6.Text = "Statistik 6";
|
||||||
|
this.labelStatistik6.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||||
|
//
|
||||||
|
// labelZahl5
|
||||||
|
//
|
||||||
|
this.labelZahl5.AutoSize = true;
|
||||||
|
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.Color.Black;
|
||||||
|
this.labelZahl5.Location = new System.Drawing.Point(99, 92);
|
||||||
|
this.labelZahl5.Name = "labelZahl5";
|
||||||
|
this.labelZahl5.Size = new System.Drawing.Size(53, 23);
|
||||||
|
this.labelZahl5.TabIndex = 9;
|
||||||
|
this.labelZahl5.Text = "Zahl 5";
|
||||||
|
this.labelZahl5.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||||
|
//
|
||||||
|
// labelStatistik5
|
||||||
|
//
|
||||||
|
this.labelStatistik5.AutoSize = true;
|
||||||
|
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.Color.Black;
|
||||||
|
this.labelStatistik5.Location = new System.Drawing.Point(3, 92);
|
||||||
|
this.labelStatistik5.Name = "labelStatistik5";
|
||||||
|
this.labelStatistik5.Size = new System.Drawing.Size(90, 23);
|
||||||
|
this.labelStatistik5.TabIndex = 8;
|
||||||
|
this.labelStatistik5.Text = "Statistik 5";
|
||||||
|
this.labelStatistik5.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||||
|
//
|
||||||
|
// labelZahl4
|
||||||
|
//
|
||||||
|
this.labelZahl4.AutoSize = true;
|
||||||
|
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.Color.Black;
|
||||||
|
this.labelZahl4.Location = new System.Drawing.Point(99, 69);
|
||||||
|
this.labelZahl4.Name = "labelZahl4";
|
||||||
|
this.labelZahl4.Size = new System.Drawing.Size(53, 23);
|
||||||
|
this.labelZahl4.TabIndex = 7;
|
||||||
|
this.labelZahl4.Text = "Zahl 4";
|
||||||
|
this.labelZahl4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||||
|
//
|
||||||
|
// labelStatistik4
|
||||||
|
//
|
||||||
|
this.labelStatistik4.AutoSize = true;
|
||||||
|
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.Color.Black;
|
||||||
|
this.labelStatistik4.Location = new System.Drawing.Point(3, 69);
|
||||||
|
this.labelStatistik4.Name = "labelStatistik4";
|
||||||
|
this.labelStatistik4.Size = new System.Drawing.Size(90, 23);
|
||||||
|
this.labelStatistik4.TabIndex = 6;
|
||||||
|
this.labelStatistik4.Text = "Statistik 4";
|
||||||
|
this.labelStatistik4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||||
|
//
|
||||||
|
// labelZahl3
|
||||||
|
//
|
||||||
|
this.labelZahl3.AutoSize = true;
|
||||||
|
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.Color.Black;
|
||||||
|
this.labelZahl3.Location = new System.Drawing.Point(99, 46);
|
||||||
|
this.labelZahl3.Name = "labelZahl3";
|
||||||
|
this.labelZahl3.Size = new System.Drawing.Size(53, 23);
|
||||||
|
this.labelZahl3.TabIndex = 5;
|
||||||
|
this.labelZahl3.Text = "Zahl 3";
|
||||||
|
this.labelZahl3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||||
|
//
|
||||||
|
// labelStatistik3
|
||||||
|
//
|
||||||
|
this.labelStatistik3.AutoSize = true;
|
||||||
|
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.Color.Black;
|
||||||
|
this.labelStatistik3.Location = new System.Drawing.Point(3, 46);
|
||||||
|
this.labelStatistik3.Name = "labelStatistik3";
|
||||||
|
this.labelStatistik3.Size = new System.Drawing.Size(90, 23);
|
||||||
|
this.labelStatistik3.TabIndex = 4;
|
||||||
|
this.labelStatistik3.Text = "Statistik 3";
|
||||||
|
this.labelStatistik3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||||
|
//
|
||||||
|
// labelZahl2
|
||||||
|
//
|
||||||
|
this.labelZahl2.AutoSize = true;
|
||||||
|
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.Color.Black;
|
||||||
|
this.labelZahl2.Location = new System.Drawing.Point(99, 23);
|
||||||
|
this.labelZahl2.Name = "labelZahl2";
|
||||||
|
this.labelZahl2.Size = new System.Drawing.Size(53, 23);
|
||||||
|
this.labelZahl2.TabIndex = 3;
|
||||||
|
this.labelZahl2.Text = "Zahl 2";
|
||||||
|
this.labelZahl2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||||
|
//
|
||||||
|
// labelStatistik2
|
||||||
|
//
|
||||||
|
this.labelStatistik2.AutoSize = true;
|
||||||
|
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.Color.Black;
|
||||||
|
this.labelStatistik2.Location = new System.Drawing.Point(3, 23);
|
||||||
|
this.labelStatistik2.Name = "labelStatistik2";
|
||||||
|
this.labelStatistik2.Size = new System.Drawing.Size(90, 23);
|
||||||
|
this.labelStatistik2.TabIndex = 2;
|
||||||
|
this.labelStatistik2.Text = "Statistik 2";
|
||||||
|
this.labelStatistik2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||||
|
//
|
||||||
|
// labelZahl1
|
||||||
|
//
|
||||||
|
this.labelZahl1.AutoSize = true;
|
||||||
|
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.Color.Black;
|
||||||
|
this.labelZahl1.Location = new System.Drawing.Point(99, 0);
|
||||||
|
this.labelZahl1.Name = "labelZahl1";
|
||||||
|
this.labelZahl1.Size = new System.Drawing.Size(53, 23);
|
||||||
|
this.labelZahl1.TabIndex = 1;
|
||||||
|
this.labelZahl1.Text = "Zahl 1";
|
||||||
|
this.labelZahl1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||||
|
//
|
||||||
|
// labelStatistik1
|
||||||
|
//
|
||||||
|
this.labelStatistik1.AutoSize = true;
|
||||||
|
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.Color.Black;
|
||||||
|
this.labelStatistik1.Location = new System.Drawing.Point(3, 0);
|
||||||
|
this.labelStatistik1.Name = "labelStatistik1";
|
||||||
|
this.labelStatistik1.Size = new System.Drawing.Size(90, 23);
|
||||||
|
this.labelStatistik1.TabIndex = 0;
|
||||||
|
this.labelStatistik1.Text = "Statistik 1";
|
||||||
|
this.labelStatistik1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||||
|
//
|
||||||
|
// UCStatistik
|
||||||
|
//
|
||||||
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||||
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||||
|
this.BackColor = System.Drawing.Color.Transparent;
|
||||||
|
this.Controls.Add(this.groupBoxStatistik);
|
||||||
|
this.Name = "UCStatistik";
|
||||||
|
this.Size = new System.Drawing.Size(333, 237);
|
||||||
|
this.Load += new System.EventHandler(this.UCStatistik_Load);
|
||||||
|
this.groupBoxStatistik.ResumeLayout(false);
|
||||||
|
this.tableLayoutPanelStatistik.ResumeLayout(false);
|
||||||
|
this.tableLayoutPanelStatistik.PerformLayout();
|
||||||
|
this.ResumeLayout(false);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
private System.Windows.Forms.GroupBox groupBoxStatistik;
|
||||||
|
private System.Windows.Forms.DateTimePicker dateTimePicker1;
|
||||||
|
private System.Windows.Forms.TableLayoutPanel tableLayoutPanelStatistik;
|
||||||
|
private System.Windows.Forms.Label labelZahl6;
|
||||||
|
private System.Windows.Forms.Label labelStatistik6;
|
||||||
|
private System.Windows.Forms.Label labelZahl5;
|
||||||
|
private System.Windows.Forms.Label labelStatistik5;
|
||||||
|
private System.Windows.Forms.Label labelZahl4;
|
||||||
|
private System.Windows.Forms.Label labelStatistik4;
|
||||||
|
private System.Windows.Forms.Label labelZahl3;
|
||||||
|
private System.Windows.Forms.Label labelStatistik3;
|
||||||
|
private System.Windows.Forms.Label labelZahl2;
|
||||||
|
private System.Windows.Forms.Label labelStatistik2;
|
||||||
|
private System.Windows.Forms.Label labelZahl1;
|
||||||
|
private System.Windows.Forms.Label labelStatistik1;
|
||||||
|
}
|
||||||
|
}
|
||||||
95
UserControls/UCStatistik.cs
Normal file
95
UserControls/UCStatistik.cs
Normal file
@ -0,0 +1,95 @@
|
|||||||
|
using DatenDB;
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.ComponentModel;
|
||||||
|
using System.Data;
|
||||||
|
using System.Drawing;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using System.Windows.Forms;
|
||||||
|
|
||||||
|
namespace Deckungsbeitrag.UserControls
|
||||||
|
{
|
||||||
|
public partial class UCStatistik : UserControl
|
||||||
|
{
|
||||||
|
public UCStatistik()
|
||||||
|
{
|
||||||
|
InitializeComponent();
|
||||||
|
}
|
||||||
|
private void UCStatistik_Load(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
#region Statistik
|
||||||
|
private void GetStatistik()
|
||||||
|
{
|
||||||
|
string[] statistik = { "Container gewaschen:", "Container hergerichtet:", "Container fertig:", "Kunden gewaschen:", "Kunden hergerichtet:", "Kunden abgeschlossen:" };
|
||||||
|
List<Auftrag> auftraglist = Auftrag.GetAuftragStatsListToday(this.dateTimePicker1.Value.Date);
|
||||||
|
|
||||||
|
for (int i = 1; i <= statistik.Length; i++)
|
||||||
|
{
|
||||||
|
foreach (Control ctr in this.tableLayoutPanelStatistik.Controls)
|
||||||
|
{
|
||||||
|
Label lbl;
|
||||||
|
if (ctr.GetType() == typeof(Label))
|
||||||
|
{
|
||||||
|
lbl = (Label)ctr;
|
||||||
|
if (lbl.Text.Contains("Statistik") && lbl.Text.Contains($"{i.ToString()}")) lbl.Text = statistik[i - 1].ToString();
|
||||||
|
if (lbl.Name.Contains("Zahl"))
|
||||||
|
{
|
||||||
|
|
||||||
|
int j = 0;
|
||||||
|
switch (lbl.Name)
|
||||||
|
{
|
||||||
|
case var s when s.Contains($"1"):
|
||||||
|
foreach (Auftrag a in auftraglist) if (a.Status == AuftragStatus.Aufgelegt) j += a.Container;
|
||||||
|
lbl.Text = j.ToString();
|
||||||
|
break;
|
||||||
|
case var s when s.Contains($"2"):
|
||||||
|
foreach (Auftrag a in auftraglist) if (a.Status == AuftragStatus.Vorbereitet) j += a.ContainerClean;
|
||||||
|
lbl.Text = j.ToString();
|
||||||
|
break;
|
||||||
|
case var s when s.Contains($"3"):
|
||||||
|
foreach (Auftrag a in auftraglist) if (a.Status == AuftragStatus.Fertig) j += a.ContainerClean;
|
||||||
|
lbl.Text = j.ToString();
|
||||||
|
break;
|
||||||
|
case var s when s.Contains($"4"):
|
||||||
|
foreach (Auftrag a in auftraglist) if (a.Status == AuftragStatus.Aufgelegt) j++;
|
||||||
|
lbl.Text = j.ToString();
|
||||||
|
break;
|
||||||
|
case var s when s.Contains($"5"):
|
||||||
|
foreach (Auftrag a in auftraglist) if (a.Status == AuftragStatus.Vorbereitet) j++;
|
||||||
|
lbl.Text = j.ToString();
|
||||||
|
break;
|
||||||
|
case var s when s.Contains($"{i}"):
|
||||||
|
foreach (Auftrag a in auftraglist) if (a.Status == AuftragStatus.Fertig) j++;
|
||||||
|
lbl.Text = j.ToString();
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
//this.groupBoxStatistik.Width = this.tableLayoutPanelStatistik.Right;
|
||||||
|
|
||||||
|
}
|
||||||
|
private void dateTimePicker1_CloseUp(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
GetStatistik();
|
||||||
|
}
|
||||||
|
private void groupBoxStatistik_Paint(object sender, PaintEventArgs e)
|
||||||
|
{
|
||||||
|
GroupBox gb = (GroupBox)sender;
|
||||||
|
base.OnPaint(e);
|
||||||
|
Funktionen.GetGroupBoxBoarder(gb, e);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
120
UserControls/UCStatistik.resx
Normal file
120
UserControls/UCStatistik.resx
Normal file
@ -0,0 +1,120 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<root>
|
||||||
|
<!--
|
||||||
|
Microsoft ResX Schema
|
||||||
|
|
||||||
|
Version 2.0
|
||||||
|
|
||||||
|
The primary goals of this format is to allow a simple XML format
|
||||||
|
that is mostly human readable. The generation and parsing of the
|
||||||
|
various data types are done through the TypeConverter classes
|
||||||
|
associated with the data types.
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
|
... ado.net/XML headers & schema ...
|
||||||
|
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||||
|
<resheader name="version">2.0</resheader>
|
||||||
|
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||||
|
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||||
|
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||||
|
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||||
|
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||||
|
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||||
|
</data>
|
||||||
|
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||||
|
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||||
|
<comment>This is a comment</comment>
|
||||||
|
</data>
|
||||||
|
|
||||||
|
There are any number of "resheader" rows that contain simple
|
||||||
|
name/value pairs.
|
||||||
|
|
||||||
|
Each data row contains a name, and value. The row also contains a
|
||||||
|
type or mimetype. Type corresponds to a .NET class that support
|
||||||
|
text/value conversion through the TypeConverter architecture.
|
||||||
|
Classes that don't support this are serialized and stored with the
|
||||||
|
mimetype set.
|
||||||
|
|
||||||
|
The mimetype is used for serialized objects, and tells the
|
||||||
|
ResXResourceReader how to depersist the object. This is currently not
|
||||||
|
extensible. For a given mimetype the value must be set accordingly:
|
||||||
|
|
||||||
|
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||||
|
that the ResXResourceWriter will generate, however the reader can
|
||||||
|
read any of the formats listed below.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.binary.base64
|
||||||
|
value : The object must be serialized with
|
||||||
|
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.soap.base64
|
||||||
|
value : The object must be serialized with
|
||||||
|
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||||
|
value : The object must be serialized into a byte array
|
||||||
|
: using a System.ComponentModel.TypeConverter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
-->
|
||||||
|
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||||
|
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||||
|
<xsd:element name="root" msdata:IsDataSet="true">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:choice maxOccurs="unbounded">
|
||||||
|
<xsd:element name="metadata">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||||
|
<xsd:attribute name="type" type="xsd:string" />
|
||||||
|
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||||
|
<xsd:attribute ref="xml:space" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="assembly">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:attribute name="alias" type="xsd:string" />
|
||||||
|
<xsd:attribute name="name" type="xsd:string" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="data">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||||
|
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||||
|
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||||
|
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||||
|
<xsd:attribute ref="xml:space" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="resheader">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
</xsd:choice>
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
</xsd:schema>
|
||||||
|
<resheader name="resmimetype">
|
||||||
|
<value>text/microsoft-resx</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="version">
|
||||||
|
<value>2.0</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="reader">
|
||||||
|
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="writer">
|
||||||
|
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
|
</resheader>
|
||||||
|
</root>
|
||||||
@ -17,6 +17,7 @@ public class UserSettingsManager
|
|||||||
public Color Hubband { get; set; } = Color.LightBlue;
|
public Color Hubband { get; set; } = Color.LightBlue;
|
||||||
public Color Trockner { get; set; } = Color.Green;
|
public Color Trockner { get; set; } = Color.Green;
|
||||||
public Color Entladeband { get; set; } = Color.Violet;
|
public Color Entladeband { get; set; } = Color.Violet;
|
||||||
|
public Point LocationGroupBoxAuftragSuchen { get; set; } = new Point(0, 0);
|
||||||
public Point LocationGroupBoxStatistik { get; set; } = new Point(0, 0);
|
public Point LocationGroupBoxStatistik { get; set; } = new Point(0, 0);
|
||||||
public Point LocationGroupBoxSaison { get; set; } = new Point(0, 0);
|
public Point LocationGroupBoxSaison { get; set; } = new Point(0, 0);
|
||||||
public Point LocationGroupBoxContainer { get; set; } = new Point(0, 0);
|
public Point LocationGroupBoxContainer { get; set; } = new Point(0, 0);
|
||||||
@ -60,6 +61,7 @@ public class UserSettingsManager
|
|||||||
Hubband = loadedSettings.Hubband;
|
Hubband = loadedSettings.Hubband;
|
||||||
Trockner = loadedSettings.Trockner;
|
Trockner = loadedSettings.Trockner;
|
||||||
Entladeband = loadedSettings.Entladeband;
|
Entladeband = loadedSettings.Entladeband;
|
||||||
|
LocationGroupBoxAuftragSuchen = loadedSettings.LocationGroupBoxAuftragSuchen;
|
||||||
LocationGroupBoxStatistik = loadedSettings.LocationGroupBoxStatistik;
|
LocationGroupBoxStatistik = loadedSettings.LocationGroupBoxStatistik;
|
||||||
LocationGroupBoxSaison = loadedSettings.LocationGroupBoxSaison;
|
LocationGroupBoxSaison = loadedSettings.LocationGroupBoxSaison;
|
||||||
LocationGroupBoxContainer = loadedSettings.LocationGroupBoxContainer;
|
LocationGroupBoxContainer = loadedSettings.LocationGroupBoxContainer;
|
||||||
@ -70,7 +72,6 @@ public class UserSettingsManager
|
|||||||
LocationButtonNeueAufgabe = loadedSettings.LocationButtonNeueAufgabe;
|
LocationButtonNeueAufgabe = loadedSettings.LocationButtonNeueAufgabe;
|
||||||
|
|
||||||
OLV_State = loadedSettings.OLV_State;
|
OLV_State = loadedSettings.OLV_State;
|
||||||
|
|
||||||
// Weitere Properties hier zuweisen
|
// Weitere Properties hier zuweisen
|
||||||
//TODO: Weitere Properties von oben hier zuweisen
|
//TODO: Weitere Properties von oben hier zuweisen
|
||||||
}
|
}
|
||||||
|
|||||||
@ -178,12 +178,24 @@
|
|||||||
<Compile Include="AA-Forms\FehlmengeChart.Designer.cs">
|
<Compile Include="AA-Forms\FehlmengeChart.Designer.cs">
|
||||||
<DependentUpon>FehlmengeChart.cs</DependentUpon>
|
<DependentUpon>FehlmengeChart.cs</DependentUpon>
|
||||||
</Compile>
|
</Compile>
|
||||||
|
<Compile Include="AA-Forms\FormOnBoarding.cs">
|
||||||
|
<SubType>Form</SubType>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="AA-Forms\FormOnBoarding.Designer.cs">
|
||||||
|
<DependentUpon>FormOnBoarding.cs</DependentUpon>
|
||||||
|
</Compile>
|
||||||
<Compile Include="AA-Forms\FormNeuerBenutzer.cs">
|
<Compile Include="AA-Forms\FormNeuerBenutzer.cs">
|
||||||
<SubType>Form</SubType>
|
<SubType>Form</SubType>
|
||||||
</Compile>
|
</Compile>
|
||||||
<Compile Include="AA-Forms\FormNeuerBenutzer.Designer.cs">
|
<Compile Include="AA-Forms\FormNeuerBenutzer.Designer.cs">
|
||||||
<DependentUpon>FormNeuerBenutzer.cs</DependentUpon>
|
<DependentUpon>FormNeuerBenutzer.cs</DependentUpon>
|
||||||
</Compile>
|
</Compile>
|
||||||
|
<Compile Include="AA-Forms\FormShowGroupBox.cs">
|
||||||
|
<SubType>Form</SubType>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="AA-Forms\FormShowGroupBox.Designer.cs">
|
||||||
|
<DependentUpon>FormShowGroupBox.cs</DependentUpon>
|
||||||
|
</Compile>
|
||||||
<Compile Include="AA-Forms\FormTourenplanung.cs">
|
<Compile Include="AA-Forms\FormTourenplanung.cs">
|
||||||
<SubType>Form</SubType>
|
<SubType>Form</SubType>
|
||||||
</Compile>
|
</Compile>
|
||||||
@ -238,12 +250,6 @@
|
|||||||
<Compile Include="AA-Forms\FormFehlmengeCount.Designer.cs">
|
<Compile Include="AA-Forms\FormFehlmengeCount.Designer.cs">
|
||||||
<DependentUpon>FormFehlmengeCount.cs</DependentUpon>
|
<DependentUpon>FormFehlmengeCount.cs</DependentUpon>
|
||||||
</Compile>
|
</Compile>
|
||||||
<Compile Include="AA-Forms\FormHelp.cs">
|
|
||||||
<SubType>Form</SubType>
|
|
||||||
</Compile>
|
|
||||||
<Compile Include="AA-Forms\FormHelp.Designer.cs">
|
|
||||||
<DependentUpon>FormHelp.cs</DependentUpon>
|
|
||||||
</Compile>
|
|
||||||
<Compile Include="AA-Forms\FormKamera.cs">
|
<Compile Include="AA-Forms\FormKamera.cs">
|
||||||
<SubType>Form</SubType>
|
<SubType>Form</SubType>
|
||||||
</Compile>
|
</Compile>
|
||||||
@ -395,6 +401,18 @@
|
|||||||
<Compile Include="UserControls\UCArtikel.Designer.cs">
|
<Compile Include="UserControls\UCArtikel.Designer.cs">
|
||||||
<DependentUpon>UCArtikel.cs</DependentUpon>
|
<DependentUpon>UCArtikel.cs</DependentUpon>
|
||||||
</Compile>
|
</Compile>
|
||||||
|
<Compile Include="UserControls\UCAuftragListe.cs">
|
||||||
|
<SubType>UserControl</SubType>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="UserControls\UCAuftragListe.Designer.cs">
|
||||||
|
<DependentUpon>UCAuftragListe.cs</DependentUpon>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="UserControls\UCAuftragSuchen.cs">
|
||||||
|
<SubType>UserControl</SubType>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="UserControls\UCAuftragSuchen.Designer.cs">
|
||||||
|
<DependentUpon>UCAuftragSuchen.cs</DependentUpon>
|
||||||
|
</Compile>
|
||||||
<Compile Include="UserControls\UCFeedback.cs">
|
<Compile Include="UserControls\UCFeedback.cs">
|
||||||
<SubType>UserControl</SubType>
|
<SubType>UserControl</SubType>
|
||||||
</Compile>
|
</Compile>
|
||||||
@ -422,6 +440,12 @@
|
|||||||
<Compile Include="UserControls\UCFach.Designer.cs">
|
<Compile Include="UserControls\UCFach.Designer.cs">
|
||||||
<DependentUpon>UCFach.cs</DependentUpon>
|
<DependentUpon>UCFach.cs</DependentUpon>
|
||||||
</Compile>
|
</Compile>
|
||||||
|
<Compile Include="UserControls\UCStatistik.cs">
|
||||||
|
<SubType>UserControl</SubType>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="UserControls\UCStatistik.Designer.cs">
|
||||||
|
<DependentUpon>UCStatistik.cs</DependentUpon>
|
||||||
|
</Compile>
|
||||||
<Compile Include="UserControls\UCTabPageLKW.cs">
|
<Compile Include="UserControls\UCTabPageLKW.cs">
|
||||||
<SubType>UserControl</SubType>
|
<SubType>UserControl</SubType>
|
||||||
</Compile>
|
</Compile>
|
||||||
@ -432,6 +456,9 @@
|
|||||||
<EmbeddedResource Include="AA-Forms\FehlmengeChart.resx">
|
<EmbeddedResource Include="AA-Forms\FehlmengeChart.resx">
|
||||||
<DependentUpon>FehlmengeChart.cs</DependentUpon>
|
<DependentUpon>FehlmengeChart.cs</DependentUpon>
|
||||||
</EmbeddedResource>
|
</EmbeddedResource>
|
||||||
|
<EmbeddedResource Include="AA-Forms\FormOnBoarding.resx">
|
||||||
|
<DependentUpon>FormOnBoarding.cs</DependentUpon>
|
||||||
|
</EmbeddedResource>
|
||||||
<EmbeddedResource Include="AA-Forms\FormArtikelVW.resx">
|
<EmbeddedResource Include="AA-Forms\FormArtikelVW.resx">
|
||||||
<DependentUpon>FormArtikelVW.cs</DependentUpon>
|
<DependentUpon>FormArtikelVW.cs</DependentUpon>
|
||||||
</EmbeddedResource>
|
</EmbeddedResource>
|
||||||
@ -447,9 +474,6 @@
|
|||||||
<EmbeddedResource Include="AA-Forms\FormFehlmengeCount.resx">
|
<EmbeddedResource Include="AA-Forms\FormFehlmengeCount.resx">
|
||||||
<DependentUpon>FormFehlmengeCount.cs</DependentUpon>
|
<DependentUpon>FormFehlmengeCount.cs</DependentUpon>
|
||||||
</EmbeddedResource>
|
</EmbeddedResource>
|
||||||
<EmbeddedResource Include="AA-Forms\FormHelp.resx">
|
|
||||||
<DependentUpon>FormHelp.cs</DependentUpon>
|
|
||||||
</EmbeddedResource>
|
|
||||||
<EmbeddedResource Include="AA-Forms\FormKamera.resx">
|
<EmbeddedResource Include="AA-Forms\FormKamera.resx">
|
||||||
<DependentUpon>FormKamera.cs</DependentUpon>
|
<DependentUpon>FormKamera.cs</DependentUpon>
|
||||||
</EmbeddedResource>
|
</EmbeddedResource>
|
||||||
@ -504,6 +528,9 @@
|
|||||||
<EmbeddedResource Include="AA-Forms\FormProgrammauswahl.resx">
|
<EmbeddedResource Include="AA-Forms\FormProgrammauswahl.resx">
|
||||||
<DependentUpon>FormProgrammauswahl.cs</DependentUpon>
|
<DependentUpon>FormProgrammauswahl.cs</DependentUpon>
|
||||||
</EmbeddedResource>
|
</EmbeddedResource>
|
||||||
|
<EmbeddedResource Include="AA-Forms\FormShowGroupBox.resx">
|
||||||
|
<DependentUpon>FormShowGroupBox.cs</DependentUpon>
|
||||||
|
</EmbeddedResource>
|
||||||
<EmbeddedResource Include="AA-Forms\FormTourenplanung.resx">
|
<EmbeddedResource Include="AA-Forms\FormTourenplanung.resx">
|
||||||
<DependentUpon>FormTourenplanung.cs</DependentUpon>
|
<DependentUpon>FormTourenplanung.cs</DependentUpon>
|
||||||
</EmbeddedResource>
|
</EmbeddedResource>
|
||||||
@ -527,6 +554,12 @@
|
|||||||
<EmbeddedResource Include="UserControls\UCArtikel.resx">
|
<EmbeddedResource Include="UserControls\UCArtikel.resx">
|
||||||
<DependentUpon>UCArtikel.cs</DependentUpon>
|
<DependentUpon>UCArtikel.cs</DependentUpon>
|
||||||
</EmbeddedResource>
|
</EmbeddedResource>
|
||||||
|
<EmbeddedResource Include="UserControls\UCAuftragListe.resx">
|
||||||
|
<DependentUpon>UCAuftragListe.cs</DependentUpon>
|
||||||
|
</EmbeddedResource>
|
||||||
|
<EmbeddedResource Include="UserControls\UCAuftragSuchen.resx">
|
||||||
|
<DependentUpon>UCAuftragSuchen.cs</DependentUpon>
|
||||||
|
</EmbeddedResource>
|
||||||
<EmbeddedResource Include="UserControls\UCFeedback.resx">
|
<EmbeddedResource Include="UserControls\UCFeedback.resx">
|
||||||
<DependentUpon>UCFeedback.cs</DependentUpon>
|
<DependentUpon>UCFeedback.cs</DependentUpon>
|
||||||
</EmbeddedResource>
|
</EmbeddedResource>
|
||||||
@ -539,6 +572,9 @@
|
|||||||
<EmbeddedResource Include="UserControls\UCFach.resx">
|
<EmbeddedResource Include="UserControls\UCFach.resx">
|
||||||
<DependentUpon>UCFach.cs</DependentUpon>
|
<DependentUpon>UCFach.cs</DependentUpon>
|
||||||
</EmbeddedResource>
|
</EmbeddedResource>
|
||||||
|
<EmbeddedResource Include="UserControls\UCStatistik.resx">
|
||||||
|
<DependentUpon>UCStatistik.cs</DependentUpon>
|
||||||
|
</EmbeddedResource>
|
||||||
<EmbeddedResource Include="UserControls\UCTabPageLKW.resx">
|
<EmbeddedResource Include="UserControls\UCTabPageLKW.resx">
|
||||||
<DependentUpon>UCTabPageLKW.cs</DependentUpon>
|
<DependentUpon>UCTabPageLKW.cs</DependentUpon>
|
||||||
</EmbeddedResource>
|
</EmbeddedResource>
|
||||||
|
|||||||
@ -1,71 +1,72 @@
|
|||||||
=====================================
|
=====================================
|
||||||
NEUIGKEITEN - Version 1.0.8.0
|
NEUIGKEITEN - Version 1.0.8.3
|
||||||
=====================================
|
=====================================
|
||||||
|
|
||||||
Build-Info:
|
Build-Info:
|
||||||
- Build-Typ: Release Build
|
- Build-Typ: Release Build
|
||||||
- Erledigte TODOs: 10
|
- Erledigte TODOs: 15
|
||||||
- Offene TODOs: 41
|
- Offene TODOs: 46
|
||||||
- Install-Reminders: 4
|
- Install-Reminders: 4
|
||||||
- Changes: 19
|
- Changes: 15
|
||||||
|
|
||||||
|
|
||||||
=== ⚙️ INSTALL-REMINDER (4) ===
|
=== ⚙️ INSTALL-REMINDER (4) ===
|
||||||
- ⚙️ Change Status in DB-Auftrag von 7 auf 6 [Auftrag.cs]
|
- ⚙️ DB anpassen. [Benutzer.cs]
|
||||||
- ⚙️ Tabelle Auftrag_Status muss in DB erstellt werden. [Auftrag.cs]
|
- ⚙️ DB anpassen. (Priority in Auftrag etc.) [Auftrag.cs]
|
||||||
- ⚙️ Tabelle KundeArtikel Spalten ArtikelID und Reihung hinzufügen. [FormKundeVW.cs]
|
- ⚙️ Tabelle KundeArtikel Spalten ArtikelID und Reihung hinzufügen. [FormKundeVW.cs]
|
||||||
- ⚙️ Tabelle Tour in Datenbank einfügen [Tour.cs]
|
- ⚙️ Tabelle Tour in Datenbank einfügen [Tour.cs]
|
||||||
|
|
||||||
=== ✨ CHANGES (19) ===
|
=== ✨ CHANGES (15) ===
|
||||||
- ✨ Abfragen müssen versucht werden wenn Einträge existieren. (Wieviele Container wurden pro Tag gewaschen?, etc.) [Auftrag.cs]
|
|
||||||
- ✨ Artikelliste und Kundenliste werden automatisch importiert wenn vorhanden. [FormMain.cs]
|
- ✨ Artikelliste und Kundenliste werden automatisch importiert wenn vorhanden. [FormMain.cs]
|
||||||
- ✨ Class Tour wurde erstellt. Speichern, Laden und Bearbeiten von Touren sollte möglich sein. [Tour.cs]
|
- ✨ Class Tour wurde erstellt. Speichern, Laden und Bearbeiten von Touren sollte möglich sein. [Tour.cs]
|
||||||
- ✨ Datum von letztem Import verfügbar. [FormMain.cs]
|
|
||||||
- ✨ Es kann nach der Kontrolle der Lieferrhythmus geändert werden. Dazu muss auch die Anzahl der Liefertage gewählt werden. [FormTourenplanung.cs]
|
- ✨ Es kann nach der Kontrolle der Lieferrhythmus geändert werden. Dazu muss auch die Anzahl der Liefertage gewählt werden. [FormTourenplanung.cs]
|
||||||
- ✨ Es können nur so viele Clone erstellt werden wie Liefertag im Lieferrhythmus hinterlegt sind. [FormTourenplanung.cs]
|
- ✨ Es können nur so viele Clone erstellt werden wie Liefertag im Lieferrhythmus hinterlegt sind. [FormTourenplanung.cs]
|
||||||
- ✨ Es wir kontrolliert ob der gewählte Liefertag zum hinterlegten Lieferrhythmus passt. [FormTourenplanung.cs]
|
- ✨ Es wir kontrolliert ob der gewählte Liefertag zum hinterlegten Lieferrhythmus passt. [FormTourenplanung.cs]
|
||||||
- ✨ Fahrer können abgeholte Aufträge erstellen und ausgelieferte Aufträge markieren. [FormMain.cs]
|
- ✨ Fahrer können abgeholte Aufträge erstellen und ausgelieferte Aufträge markieren. [FormMain.cs]
|
||||||
- ✨ Gespeichert wird AuftragID, Status, Zeitpunkt und User des Changes. [Auftrag.cs]
|
|
||||||
- ✨ Innerhalb eines Tages kann die Reihenfolge angepasst werden. [UCTabPageLKW.cs]
|
- ✨ Innerhalb eines Tages kann die Reihenfolge angepasst werden. [UCTabPageLKW.cs]
|
||||||
- ✨ KundeArtikel wird mit Reihung gespeichert und angezeigt. [FormKundeVW.cs]
|
- ✨ KundeArtikel wird mit Reihung gespeichert und angezeigt. [FormKundeVW.cs]
|
||||||
- ✨ Lieferrhythmen können angepasst und übernommen werden. [UCTabPageLKW.cs]
|
- ✨ Lieferrhythmen können angepasst und übernommen werden. [UCTabPageLKW.cs]
|
||||||
|
- ✨ OnBoarding wird jetzt gespeichert wenn gesehen. [Benutzer.cs]
|
||||||
- ✨ Programm wird mit Button geschlossen. (Sicherheitsabfrage ob wirklich gewollt wird gemacht.) [FormAufleger.cs]
|
- ✨ Programm wird mit Button geschlossen. (Sicherheitsabfrage ob wirklich gewollt wird gemacht.) [FormAufleger.cs]
|
||||||
- ✨ Saisonauswahl DropDown eingefügt. Wenn Zwischensaison gewählt wir Warnung wegen falschen Liefertagen gezeigt. Sonst wird Saisonrhythmus als Liefertag beachtet. [FormMain.cs]
|
|
||||||
- ✨ Speichern und Laden wurde angepasst, JSON enthält jetzt pro Tag eine Kundenliste. [UCTabPageLKW.cs]
|
- ✨ Speichern und Laden wurde angepasst, JSON enthält jetzt pro Tag eine Kundenliste. [UCTabPageLKW.cs]
|
||||||
- ✨ TabText wird mit Benutzerliste verglichen. Wenn ein passender gefunden wird Tag hinterlegt. [FormTourenplanung.cs]
|
- ✨ TabText wird mit Benutzerliste verglichen. Wenn ein passender gefunden wird Tag hinterlegt. [FormTourenplanung.cs]
|
||||||
- ✨ Wenn AuftragStatus geändert wird, wird in der DB gesucht ob bereits ein Eintrag mit AuftragID und Status übereinstimmt. Wenn ja wird ignoriert, sonst wird ein Eintrag erstellt. [Auftrag.cs]
|
|
||||||
- ✨ Wenn der Lieferrhythmus geändert wird, werden KundenControls an falschen Tagen gelöscht. [UCTabPageLKW.cs]
|
- ✨ Wenn der Lieferrhythmus geändert wird, werden KundenControls an falschen Tagen gelöscht. [UCTabPageLKW.cs]
|
||||||
- ✨ Winter und Sommer wird getrennt geändert und gespeichert. [UCTabPageLKW.cs]
|
- ✨ Winter und Sommer wird getrennt geändert und gespeichert. [UCTabPageLKW.cs]
|
||||||
|
|
||||||
|
|
||||||
=== ✅ ERLEDIGTE TODOs (10) ===
|
=== ✅ ERLEDIGTE TODOs (15) ===
|
||||||
- ✅ : Auftrag über FormListe holen und daraus den Kunden für Fehlmenge holen. [FormFehlmengeCount.cs]
|
- ✅ : Auftrag über FormListe holen und daraus den Kunden für Fehlmenge holen. [FormFehlmengeCount.cs]
|
||||||
|
- ✅ : Auftragliste bei Fahrer anzeigen wenn Login. [FormMain.cs]
|
||||||
- ✅ : Bei Transport wir ein Fach mit Aktuellem Auftrag erstellt. Das Alte wird bei Transport gespeichert. [FormAusschlager.cs]
|
- ✅ : Bei Transport wir ein Fach mit Aktuellem Auftrag erstellt. Das Alte wird bei Transport gespeichert. [FormAusschlager.cs]
|
||||||
|
- ✅ : ComboBox Fahrer und Priorität implementieren [FormAuftragDetail.cs]
|
||||||
|
- ✅ : Container schmutzig bearbeitbar machen [FormAuftragDetail.cs]
|
||||||
|
- ✅ : Feedback Button hinzufügen [FormAuftragDetail.cs]
|
||||||
|
- ✅ : HILFE zeigt OnBoarding. [FormMain.cs]
|
||||||
- ✅ : Logik überlegen wie ein bearbeiteter Auftrag nicht doppelt gewählt werden kann. (Abteilungen zu Auftrag hinzufügen und bei Ausschlager Druck definieren?) [FormFehlmengeCount.cs]
|
- ✅ : Logik überlegen wie ein bearbeiteter Auftrag nicht doppelt gewählt werden kann. (Abteilungen zu Auftrag hinzufügen und bei Ausschlager Druck definieren?) [FormFehlmengeCount.cs]
|
||||||
- ✅ : Mit AddFehler können Fehler aus try/chatch in Obsidian eingefügt werden. (Timestamp, PC-Name, Ex-Message) [Program.cs]
|
- ✅ : Mit AddFehler können Fehler aus try/chatch in Obsidian eingefügt werden. (Timestamp, PC-Name, Ex-Message) [Program.cs]
|
||||||
- ✅ : Neue Aufgabe Screen erstellen. [FormNeueAufgabe.cs]
|
- ✅ : Neue Aufgabe Screen erstellen. [FormNeueAufgabe.cs]
|
||||||
- ✅ : Nur die Kunden der Aufträge als Liste anzeigen wäre möglich. Macht die Auswahl für das Personal einfacher weil 90% bereits weg fallen. [FormFehlmengeCount.cs]
|
- ✅ : Nur die Kunden der Aufträge als Liste anzeigen wäre möglich. Macht die Auswahl für das Personal einfacher weil 90% bereits weg fallen. [FormFehlmengeCount.cs]
|
||||||
- ✅ : Testen ob Scan mit Prompt bei Suchen funktioniert. Kundenummer und Text etc. (meherere QR-Codes teseten) [FormExpedit.cs]
|
|
||||||
- ✅ : Wenn Fahrer neuen Auftrag erstellt, wird Tour (BenutzerID & Liefertag) gesucht und gespeichert oder upgedatet. Dabei werden die Containerzahlen schmutzig addiert und die Kundenanzahl um 1 erhöht. [Tour.cs]
|
- ✅ : Wenn Fahrer neuen Auftrag erstellt, wird Tour (BenutzerID & Liefertag) gesucht und gespeichert oder upgedatet. Dabei werden die Containerzahlen schmutzig addiert und die Kundenanzahl um 1 erhöht. [Tour.cs]
|
||||||
- ✅ : Wenn NeuerAuftrag gewählt Fach ändern nicht vergessen. [FormAusschlager.cs]
|
- ✅ : Wenn NeuerAuftrag gewählt Fach ändern nicht vergessen. [FormAusschlager.cs]
|
||||||
- ✅ : Wenn NeuerAuftrag gewählt wie gehts weiter? [FormAusschlager.cs]
|
- ✅ : Wenn NeuerAuftrag gewählt wie gehts weiter? [FormAusschlager.cs]
|
||||||
|
- ✅ : Wenn RegAuftrag wird als augeliefert markiert, wird dieser automatisch neu erstellt laut hinterlegtem Rhythmus. [FormMain.cs]
|
||||||
|
|
||||||
|
|
||||||
=== 🔄 OFFENE TODOs (41) ===
|
=== 🔄 OFFENE TODOs (46) ===
|
||||||
- 🔄 !!ÜBERLEGE!! DB-Query für Kundenanzahl und Containeranzahl Abgleich. (Aufträge haben TourID hinterlegt. So sollte alles vergleichbar sein.) [Tour.cs]
|
- 🔄 !!ÜBERLEGE!! DB-Query für Kundenanzahl und Containeranzahl Abgleich. (Aufträge haben TourID hinterlegt. So sollte alles vergleichbar sein.) [Tour.cs]
|
||||||
- 🔄 !!ÜBERLEGE!! Tour Start und Ende automatisch erfassen. [Tour.cs]
|
- 🔄 !!ÜBERLEGE!! Tour Start und Ende automatisch erfassen. [Tour.cs]
|
||||||
- 🔄 Alle Icons in einer Spalte anzeigen? I für Anmerkung und ! für Aufgabe?? [FormExpedit.cs]
|
- 🔄 Alle Icons in einer Spalte anzeigen? I für Anmerkung und ! für Aufgabe?? [FormExpedit.cs]
|
||||||
- 🔄 Alle Icons in einer Spalte anzeigen? I für Anmerkung und ! für Aufgabe?? [FormMain.cs]
|
- 🔄 Alle Icons in einer Spalte anzeigen? I für Anmerkung und ! für Aufgabe?? [FormMain.cs]
|
||||||
- 🔄 ArbeiterID muss gefunden werden. Eventuell suche Aufträge mit Kunden am selben Liefertag und Region. [FormNeuerAuftrag.cs]
|
- 🔄 Alle Icons in einer Spalte anzeigen? I für Anmerkung und ! für Aufgabe?? [UCAuftragListe.cs]
|
||||||
- 🔄 Auftrag Schnellerfassung erstellen. Kundenliste aus JSON in OLV einfügen wenn schmutzig > 0 dann Auftrag erstellen. Spalten: "Kunde, schmutzig, liefertag, zustellfahrer" evnetuell in AuftragVW? [FormMain.cs]
|
- 🔄 Auftrag Schnellerfassung erstellen. Kundenliste aus JSON in OLV einfügen wenn schmutzig > 0 dann Auftrag erstellen. Spalten: "Kunde, schmutzig, liefertag, zustellfahrer" evnetuell in AuftragVW? [FormMain.cs]
|
||||||
- 🔄 Auftragauswahl aufrufen statt NeuerAuftrag. (Wenn Fahrer Aufträge erstellen) [FormWSVerfolgung.cs]
|
- 🔄 Auftragauswahl aufrufen statt NeuerAuftrag. (Wenn Fahrer Aufträge erstellen) [FormWSVerfolgung.cs]
|
||||||
- 🔄 Aufträge zusammenführen wenn gleicher Kunde und Liefertag. [FormNeuerAuftrag.cs]
|
- 🔄 Aufträge zusammenführen wenn gleicher Kunde und Liefertag. [FormNeuerAuftrag.cs]
|
||||||
- 🔄 Auftragliste bei Fahrer anzeigen wenn Login. [FormMain.cs]
|
|
||||||
- 🔄 Ausprobieren ob die Ausrichtung jetzt richtig ist. Sowohl beim ersten wie auch zweiten Mal. [Funktionen.cs]
|
- 🔄 Ausprobieren ob die Ausrichtung jetzt richtig ist. Sowohl beim ersten wie auch zweiten Mal. [Funktionen.cs]
|
||||||
- 🔄 Dateinamen aus Tikos anschauen. Eventuell Datum von letztem Import über Dateiname wählen? [FormMain.cs]
|
- 🔄 Dateinamen aus Tikos anschauen. Eventuell Datum von letztem Import über Dateiname wählen? [FormMain.cs]
|
||||||
- 🔄 Deaktivieren wenn SPS funktioniert. Transport wird simuliert. [FormWSVerfolgung.cs]
|
- 🔄 Deaktivieren wenn SPS funktioniert. Transport wird simuliert. [FormWSVerfolgung.cs]
|
||||||
- 🔄 Design des Controls anpassen. Eventuell im Designer erstellen. [UCKunde.cs]
|
- 🔄 Design des Controls anpassen. Eventuell im Designer erstellen. [UCKunde.cs]
|
||||||
- 🔄 Eingabemöglichkeit von Tour Start und Ende muss erledigt werden. [Tour.cs]
|
- 🔄 Eingabemöglichkeit von Tour Start und Ende muss erledigt werden. [Tour.cs]
|
||||||
|
- 🔄 Erstellen von SonderAuftrag und Drucken von Etikett testen. [FormAuftragDetail.cs]
|
||||||
- 🔄 Eventuell auch andere ListViews einbinden? [Funktionen.cs]
|
- 🔄 Eventuell auch andere ListViews einbinden? [Funktionen.cs]
|
||||||
- 🔄 Form AuftragDetail muss überarbeitet werden. [FormNeuerAuftrag.cs]
|
- 🔄 Form AuftragDetail muss überarbeitet werden. [FormNeuerAuftrag.cs]
|
||||||
- 🔄 Funktioniert mehrere KundenControls auf einmal DragDrop? [FormTourenplanung.cs]
|
- 🔄 Funktioniert mehrere KundenControls auf einmal DragDrop? [FormTourenplanung.cs]
|
||||||
@ -73,15 +74,21 @@ Build-Info:
|
|||||||
- 🔄 Grund immer abfragen oder nur wenn Fahrer die Zuteilung ändert? [FormNeuerAuftrag.cs]
|
- 🔄 Grund immer abfragen oder nur wenn Fahrer die Zuteilung ändert? [FormNeuerAuftrag.cs]
|
||||||
- 🔄 Hier Settings speichern mit UserSettingsManager Klasse. [FormEinstellung.cs]
|
- 🔄 Hier Settings speichern mit UserSettingsManager Klasse. [FormEinstellung.cs]
|
||||||
- 🔄 JSON nach angemeldeten Fahrer durchsuchen und Kundenliste des aktuellen Wochentag anzeigen. [FormMain.cs]
|
- 🔄 JSON nach angemeldeten Fahrer durchsuchen und Kundenliste des aktuellen Wochentag anzeigen. [FormMain.cs]
|
||||||
|
- 🔄 Korrigiere Bestand: Wenn -Zahl dann Stand - Zahl. [FormAuftragDetail.cs]
|
||||||
- 🔄 Kundenanzahl bei Tourenliste erstellen vergleichen und anpassen. [Tour.cs]
|
- 🔄 Kundenanzahl bei Tourenliste erstellen vergleichen und anpassen. [Tour.cs]
|
||||||
|
- 🔄 Liste vorher/nachher durchdenken [FormAuftragDetail.cs]
|
||||||
- 🔄 Mit AddFehler in Obsidian eine Fehlerliste betreiben. (Wichtige Infos feststellen und bereitstellen) [Program.cs]
|
- 🔄 Mit AddFehler in Obsidian eine Fehlerliste betreiben. (Wichtige Infos feststellen und bereitstellen) [Program.cs]
|
||||||
- 🔄 Nach Test und Rücksprache eventuell wieder umbauen. Benutzer.Rolle etc. [FormFehlmengeCount.cs]
|
- 🔄 Nach Test und Rücksprache eventuell wieder umbauen. Benutzer.Rolle etc. [FormFehlmengeCount.cs]
|
||||||
- 🔄 nicht ganze Aufträge holen sondern nur die Zahlen? [FormMain.cs]
|
- 🔄 nicht ganze Aufträge holen sondern nur die Zahlen? [FormMain.cs]
|
||||||
|
- 🔄 Non-Hard-Coded-Lösung für Priority finden. [Auftrag.cs]
|
||||||
- 🔄 OLV State speichern. [FormExpedit.cs]
|
- 🔄 OLV State speichern. [FormExpedit.cs]
|
||||||
- 🔄 Reg.Aufträge einbauen. Besonderheit: Die Artikel sollen ebenfalls erscheinen. [Funktionen.cs]
|
- 🔄 Reg.Aufträge einbauen. Besonderheit: Die Artikel sollen ebenfalls erscheinen. [Funktionen.cs]
|
||||||
- 🔄 Reihenfolge Spalten richtig stellen. [FormExpedit.cs]
|
- 🔄 Reihenfolge Spalten richtig stellen. [FormExpedit.cs]
|
||||||
- 🔄 Settings hier ändern auf UserSettingsManager Klasse. [FormEinstellung.cs]
|
- 🔄 Settings hier ändern auf UserSettingsManager Klasse. [FormEinstellung.cs]
|
||||||
- 🔄 Soll hier ebenfalls der nächste Liefertag laut Rhythmus vorgeschlagen werden? [FormExpedit.cs]
|
- 🔄 Soll hier ebenfalls der nächste Liefertag laut Rhythmus vorgeschlagen werden? [FormExpedit.cs]
|
||||||
|
- 🔄 Speichern etc. durchgehen und adaptieren [FormAuftragDetail.cs]
|
||||||
|
- 🔄 Standerhöhung funktioniert soweit Standverringerung soll nur auf Stand gehen [FormAuftragDetail.cs]
|
||||||
|
- 🔄 Standverminderung und Standerhöhung mit einem Aufruf (Standveränderung?) Bei Verminderung -Zahlen sonst Plus. [FormAuftragDetail.cs]
|
||||||
- 🔄 TourenListe Entwurf muss überarbeitet werden. [FormNeuerAuftrag.cs]
|
- 🔄 TourenListe Entwurf muss überarbeitet werden. [FormNeuerAuftrag.cs]
|
||||||
- 🔄 Umbau in Switch. [FormAufleger.cs]
|
- 🔄 Umbau in Switch. [FormAufleger.cs]
|
||||||
- 🔄 Umbau in Switch. [FormWSVerfolgung.cs]
|
- 🔄 Umbau in Switch. [FormWSVerfolgung.cs]
|
||||||
@ -91,8 +98,7 @@ Build-Info:
|
|||||||
- 🔄 Wenn Auftrag abgeschlossen wird muss die Containerzahl sauber addiert werden. Kundenanzahl und Containeranzahl schmutzig darf nicht erhöht werden. [Tour.cs]
|
- 🔄 Wenn Auftrag abgeschlossen wird muss die Containerzahl sauber addiert werden. Kundenanzahl und Containeranzahl schmutzig darf nicht erhöht werden. [Tour.cs]
|
||||||
- 🔄 Wenn Frottee-Expedit auch Relamation bearbeitet, muss BenutzerRolle abgefragt werden. siehe CHANGES. [FormFehlmengeCount.cs]
|
- 🔄 Wenn Frottee-Expedit auch Relamation bearbeitet, muss BenutzerRolle abgefragt werden. siehe CHANGES. [FormFehlmengeCount.cs]
|
||||||
- 🔄 Wenn Nachwäsche oder Müllwäsche alle Artikel anzeigen. [FormFehlmengeCount.cs]
|
- 🔄 Wenn Nachwäsche oder Müllwäsche alle Artikel anzeigen. [FormFehlmengeCount.cs]
|
||||||
- 🔄 Wenn RegAuftrag wird als augeliefert markiert, wird dieser automatisch neu erstellt laut hinterlegtem Rhythmus. [FormMain.cs]
|
|
||||||
- 🔄 Zuweisung zu Fahrer muss geklärt werden. [Funktionen.cs]
|
- 🔄 Zuweisung zu Fahrer muss geklärt werden. [Funktionen.cs]
|
||||||
|
|
||||||
Installation: 06.03.2026 16:39
|
Installation: 24.03.2026 18:31
|
||||||
=====================================
|
=====================================
|
||||||
|
|||||||
2689
db_schema.sql
Normal file
2689
db_schema.sql
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user