Compare commits

...

6 Commits

17 changed files with 1316 additions and 1470 deletions

View File

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

View File

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

View File

@ -114,11 +114,15 @@ namespace Deckungsbeitrag
this.Invoke(new Action(() =>
{
// OLVs füllen
if (auftraglist.Count > 0) OLV_Load(this.objectListViewAuftrag, auftraglist);
if (sonderlist.Count > 0) OLV_Load(this.objectListViewSonder, sonderlist);
if (geschaeftlist.Count > 0) OLV_Load(this.objectListViewGeschaeft, geschaeftlist);
if (rampenlist.Count > 0) OLV_Load(this.objectListViewRampe, rampenlist);
if (vorbereitetliste.Count > 0) OLV_Load(this.objectListViewVorbereitet, vorbereitetliste);
if (auftraglist != null & auftraglist.Count > 0) OLV_Load(this.objectListViewAuftrag, auftraglist);
if (sonderlist != null & sonderlist.Count > 0) OLV_Load(this.objectListViewSonder, sonderlist);
if (geschaeftlist != null & geschaeftlist.Count > 0) OLV_Load(this.objectListViewGeschaeft, geschaeftlist);
if (this.benutzer.Rolle != BenutzerRolle.Frottee)
{
if (rampenlist != null & rampenlist.Count > 0) OLV_Load(this.objectListViewRampe, rampenlist);
if (vorbereitetliste != null & vorbereitetliste.Count > 0) OLV_Load(this.objectListViewVorbereitet, vorbereitetliste);
}
// Controls aktivieren und deaktivieren nach BenutzerRolle
Enable_Controls();
@ -855,7 +859,7 @@ namespace Deckungsbeitrag
if (olv.Name.Contains("Rampe")) { await GetAuftraege(ListenArt.Rampenliste); OLV_SetObjects(olv, rampenlist); }
if (olv.Name.Contains("Vorbereitet")) { await GetAuftraege(ListenArt.Vorbereitetliste); OLV_SetObjects(olv, vorbereitetliste); }
}
GetUnvisibleColumns(olv);
olv.ResumeLayout(false);
this.UseWaitCursor = false;
}
@ -870,8 +874,8 @@ namespace Deckungsbeitrag
switch (tabControlAuftragList.SelectedTab.Text)
{
case var t when t == "Vorbereitet": //Wenn Tab ist Vorbereitet wird Abschließen eingeblendet.
if (col.Text == "Abschließen" & col.IsButton) col.IsVisible = true;
if (col.Text == "Etikett" & col.IsButton) col.IsVisible = false;
if (col.Text == "Abschließen") col.IsVisible = true;
if (col.Text == "Etikett") col.IsVisible = false;
if (col.Text == "Kunde")
{
col.HeaderCheckBox = true;
@ -882,6 +886,16 @@ namespace Deckungsbeitrag
if (col.IsButton) col.IsVisible = false;
if (col.Text == "FR" || col.Text == "GT" || col.Text == "KT") col.IsVisible = false;
break;
case var t when t == "Geschäft":
if (col.Text == "Abschließen") col.IsVisible = true;
if (col.Text == "Etikett") col.IsVisible = false;
break;
case var t when t == "Aufträge heute":
if (this.benutzer.Rolle == BenutzerRolle.Frottee)
{
if (col.Text == "Abschließen") col.IsVisible = true;
}
break;
default:
//Für alle BenutzerRollen Abschließen ausblenden.
if (col.IsButton & col.Text == "Abschließen") col.IsVisible = false;

View File

@ -48,7 +48,15 @@ namespace Deckungsbeitrag
this.tSBTourenplanung = new System.Windows.Forms.ToolStripButton();
this.toolStripBeenden = new System.Windows.Forms.ToolStripButton();
this.panelMain = new System.Windows.Forms.Panel();
this.buttonTestInventur = new System.Windows.Forms.Button();
this.groupBoxAuftrag = new System.Windows.Forms.GroupBox();
this.objectListViewAuftrag = new BrightIdeasSoftware.ObjectListView();
this.rBAufAbruf = new System.Windows.Forms.RadioButton();
this.rBAusgeliefert = new System.Windows.Forms.RadioButton();
this.rBFertig = new System.Windows.Forms.RadioButton();
this.rBVorbereitet = new System.Windows.Forms.RadioButton();
this.rBAlle = new System.Windows.Forms.RadioButton();
this.buttonAufAbruf = new System.Windows.Forms.Button();
this.buttonAusgeliefert = new System.Windows.Forms.Button();
this.buttonNeuerRegAuft = new System.Windows.Forms.Button();
this.panelProgress = new System.Windows.Forms.Panel();
this.buttonKundeArtikelUpdate = new System.Windows.Forms.Button();
@ -83,15 +91,6 @@ namespace Deckungsbeitrag
this.labelContZahl1 = new System.Windows.Forms.Label();
this.label10 = new System.Windows.Forms.Label();
this.label12 = new System.Windows.Forms.Label();
this.groupBoxAuftrag = new System.Windows.Forms.GroupBox();
this.objectListViewAuftrag = new BrightIdeasSoftware.ObjectListView();
this.rBAufAbruf = new System.Windows.Forms.RadioButton();
this.rBAusgeliefert = new System.Windows.Forms.RadioButton();
this.rBFertig = new System.Windows.Forms.RadioButton();
this.rBVorbereitet = new System.Windows.Forms.RadioButton();
this.rBAlle = new System.Windows.Forms.RadioButton();
this.buttonAufAbruf = new System.Windows.Forms.Button();
this.buttonAusgeliefert = new System.Windows.Forms.Button();
this.groupBoxSaison = new System.Windows.Forms.GroupBox();
this.comboBoxSaison = new System.Windows.Forms.ComboBox();
this.buttonNeuerStand = new System.Windows.Forms.Button();
@ -114,11 +113,11 @@ namespace Deckungsbeitrag
this.labelScannTest = new System.Windows.Forms.Label();
this.toolStripMenu.SuspendLayout();
this.panelMain.SuspendLayout();
this.groupBoxAuftrag.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.objectListViewAuftrag)).BeginInit();
this.panelProgress.SuspendLayout();
this.groupBoxContAnz.SuspendLayout();
this.tLPContAnz.SuspendLayout();
this.groupBoxAuftrag.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.objectListViewAuftrag)).BeginInit();
this.groupBoxSaison.SuspendLayout();
this.groupBoxUpdate.SuspendLayout();
this.tableLayoutPanelUpdate.SuspendLayout();
@ -475,7 +474,6 @@ namespace Deckungsbeitrag
//
this.panelMain.AllowDrop = true;
this.panelMain.BackColor = System.Drawing.Color.White;
this.panelMain.Controls.Add(this.buttonTestInventur);
this.panelMain.Controls.Add(this.groupBoxAuftrag);
this.panelMain.Controls.Add(this.buttonNeuerRegAuft);
this.panelMain.Controls.Add(this.panelProgress);
@ -498,26 +496,167 @@ namespace Deckungsbeitrag
this.panelMain.Paint += new System.Windows.Forms.PaintEventHandler(this.panelMain_Paint);
this.panelMain.Resize += new System.EventHandler(this.panelMain_Resize);
//
// buttonTestInventur
// groupBoxAuftrag
//
this.buttonTestInventur.BackColor = System.Drawing.Color.Turquoise;
this.buttonTestInventur.Enabled = false;
this.buttonTestInventur.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(192)))), ((int)(((byte)(0)))));
this.buttonTestInventur.FlatAppearance.BorderSize = 0;
this.buttonTestInventur.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.buttonTestInventur.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.buttonTestInventur.ForeColor = System.Drawing.Color.Black;
this.buttonTestInventur.ImageAlign = System.Drawing.ContentAlignment.MiddleRight;
this.buttonTestInventur.Location = new System.Drawing.Point(357, 80);
this.buttonTestInventur.Margin = new System.Windows.Forms.Padding(7, 6, 7, 6);
this.buttonTestInventur.Name = "buttonTestInventur";
this.buttonTestInventur.Size = new System.Drawing.Size(333, 50);
this.buttonTestInventur.TabIndex = 72;
this.buttonTestInventur.Text = "Test Inventur";
this.buttonTestInventur.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;
this.buttonTestInventur.UseVisualStyleBackColor = false;
this.buttonTestInventur.Visible = false;
this.buttonTestInventur.Click += new System.EventHandler(this.buttonTestInventur_Click);
this.groupBoxAuftrag.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.groupBoxAuftrag.Controls.Add(this.objectListViewAuftrag);
this.groupBoxAuftrag.Controls.Add(this.rBAufAbruf);
this.groupBoxAuftrag.Controls.Add(this.rBAusgeliefert);
this.groupBoxAuftrag.Controls.Add(this.rBFertig);
this.groupBoxAuftrag.Controls.Add(this.rBVorbereitet);
this.groupBoxAuftrag.Controls.Add(this.rBAlle);
this.groupBoxAuftrag.Controls.Add(this.buttonAufAbruf);
this.groupBoxAuftrag.Controls.Add(this.buttonAusgeliefert);
this.groupBoxAuftrag.Enabled = false;
this.groupBoxAuftrag.Location = new System.Drawing.Point(1119, 80);
this.groupBoxAuftrag.Margin = new System.Windows.Forms.Padding(4);
this.groupBoxAuftrag.Name = "groupBoxAuftrag";
this.groupBoxAuftrag.Padding = new System.Windows.Forms.Padding(4);
this.groupBoxAuftrag.Size = new System.Drawing.Size(1632, 607);
this.groupBoxAuftrag.TabIndex = 51;
this.groupBoxAuftrag.TabStop = false;
this.groupBoxAuftrag.Visible = false;
//
// objectListViewAuftrag
//
this.objectListViewAuftrag.AlternateRowBackColor = System.Drawing.Color.LightSteelBlue;
this.objectListViewAuftrag.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.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.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(220, 17);
this.objectListViewAuftrag.Margin = new System.Windows.Forms.Padding(4);
this.objectListViewAuftrag.Name = "objectListViewAuftrag";
this.objectListViewAuftrag.Size = new System.Drawing.Size(1404, 582);
this.objectListViewAuftrag.TabIndex = 58;
this.objectListViewAuftrag.UseAlternatingBackColors = true;
this.objectListViewAuftrag.UseCompatibleStateImageBehavior = false;
this.objectListViewAuftrag.View = System.Windows.Forms.View.Details;
this.objectListViewAuftrag.ItemChecked += new System.Windows.Forms.ItemCheckedEventHandler(this.objectListViewAuftrag_ItemChecked);
//
// rBAufAbruf
//
this.rBAufAbruf.AutoSize = true;
this.rBAufAbruf.CheckAlign = System.Drawing.ContentAlignment.MiddleRight;
this.rBAufAbruf.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.rBAufAbruf.Location = new System.Drawing.Point(59, 167);
this.rBAufAbruf.Margin = new System.Windows.Forms.Padding(4);
this.rBAufAbruf.Name = "rBAufAbruf";
this.rBAufAbruf.Size = new System.Drawing.Size(115, 29);
this.rBAufAbruf.TabIndex = 57;
this.rBAufAbruf.TabStop = true;
this.rBAufAbruf.Text = "Auf Abruf";
this.rBAufAbruf.UseVisualStyleBackColor = true;
this.rBAufAbruf.CheckedChanged += new System.EventHandler(this.RadioButton_CheckedChanged);
//
// rBAusgeliefert
//
this.rBAusgeliefert.AutoSize = true;
this.rBAusgeliefert.CheckAlign = System.Drawing.ContentAlignment.MiddleRight;
this.rBAusgeliefert.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.rBAusgeliefert.Location = new System.Drawing.Point(36, 130);
this.rBAusgeliefert.Margin = new System.Windows.Forms.Padding(4);
this.rBAusgeliefert.Name = "rBAusgeliefert";
this.rBAusgeliefert.Size = new System.Drawing.Size(136, 29);
this.rBAusgeliefert.TabIndex = 54;
this.rBAusgeliefert.TabStop = true;
this.rBAusgeliefert.Text = "Ausgeliefert";
this.rBAusgeliefert.UseVisualStyleBackColor = true;
this.rBAusgeliefert.CheckedChanged += new System.EventHandler(this.RadioButton_CheckedChanged);
//
// rBFertig
//
this.rBFertig.AutoSize = true;
this.rBFertig.CheckAlign = System.Drawing.ContentAlignment.MiddleRight;
this.rBFertig.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.rBFertig.Location = new System.Drawing.Point(95, 94);
this.rBFertig.Margin = new System.Windows.Forms.Padding(4);
this.rBFertig.Name = "rBFertig";
this.rBFertig.Size = new System.Drawing.Size(82, 29);
this.rBFertig.TabIndex = 53;
this.rBFertig.TabStop = true;
this.rBFertig.Text = "Fertig";
this.rBFertig.UseVisualStyleBackColor = true;
this.rBFertig.CheckedChanged += new System.EventHandler(this.RadioButton_CheckedChanged);
//
// rBVorbereitet
//
this.rBVorbereitet.AutoSize = true;
this.rBVorbereitet.CheckAlign = System.Drawing.ContentAlignment.MiddleRight;
this.rBVorbereitet.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.rBVorbereitet.Location = new System.Drawing.Point(44, 57);
this.rBVorbereitet.Margin = new System.Windows.Forms.Padding(4);
this.rBVorbereitet.Name = "rBVorbereitet";
this.rBVorbereitet.Size = new System.Drawing.Size(128, 29);
this.rBVorbereitet.TabIndex = 52;
this.rBVorbereitet.TabStop = true;
this.rBVorbereitet.Text = "Vorbereitet";
this.rBVorbereitet.UseVisualStyleBackColor = true;
this.rBVorbereitet.CheckedChanged += new System.EventHandler(this.RadioButton_CheckedChanged);
//
// rBAlle
//
this.rBAlle.AutoSize = true;
this.rBAlle.CheckAlign = System.Drawing.ContentAlignment.MiddleRight;
this.rBAlle.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.rBAlle.Location = new System.Drawing.Point(115, 20);
this.rBAlle.Margin = new System.Windows.Forms.Padding(4);
this.rBAlle.Name = "rBAlle";
this.rBAlle.Size = new System.Drawing.Size(66, 29);
this.rBAlle.TabIndex = 51;
this.rBAlle.TabStop = true;
this.rBAlle.Text = "Alle";
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(13, 265);
this.buttonAufAbruf.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.buttonAufAbruf.Name = "buttonAufAbruf";
this.buttonAufAbruf.Size = new System.Drawing.Size(200, 50);
this.buttonAufAbruf.TabIndex = 56;
this.buttonAufAbruf.Text = "AufAbruf";
this.buttonAufAbruf.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;
this.buttonAufAbruf.UseVisualStyleBackColor = false;
this.buttonAufAbruf.Visible = false;
this.buttonAufAbruf.Click += new System.EventHandler(this.buttonAufAbruf_Click);
//
// 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(13, 209);
this.buttonAusgeliefert.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.buttonAusgeliefert.Name = "buttonAusgeliefert";
this.buttonAusgeliefert.Size = new System.Drawing.Size(200, 50);
this.buttonAusgeliefert.TabIndex = 55;
this.buttonAusgeliefert.Text = "Ausgeliefert";
this.buttonAusgeliefert.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;
this.buttonAusgeliefert.UseVisualStyleBackColor = false;
this.buttonAusgeliefert.Visible = false;
this.buttonAusgeliefert.Click += new System.EventHandler(this.buttonAusgeliefert_Click);
//
// buttonNeuerRegAuft
//
@ -607,14 +746,15 @@ namespace Deckungsbeitrag
// groupBoxContAnz
//
this.groupBoxContAnz.AutoSize = true;
this.groupBoxContAnz.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
this.groupBoxContAnz.Controls.Add(this.tLPContAnz);
this.groupBoxContAnz.Enabled = false;
this.groupBoxContAnz.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(1)))), ((int)(((byte)(53)))), ((int)(((byte)(101)))));
this.groupBoxContAnz.Location = new System.Drawing.Point(772, 92);
this.groupBoxContAnz.Location = new System.Drawing.Point(375, 224);
this.groupBoxContAnz.Margin = new System.Windows.Forms.Padding(4);
this.groupBoxContAnz.Name = "groupBoxContAnz";
this.groupBoxContAnz.Padding = new System.Windows.Forms.Padding(4);
this.groupBoxContAnz.Size = new System.Drawing.Size(988, 322);
this.groupBoxContAnz.Size = new System.Drawing.Size(376, 305);
this.groupBoxContAnz.TabIndex = 62;
this.groupBoxContAnz.TabStop = false;
this.groupBoxContAnz.Text = "CONT. ANZAHL / WASCHZEIT";
@ -625,6 +765,7 @@ namespace Deckungsbeitrag
// tLPContAnz
//
this.tLPContAnz.AutoSize = true;
this.tLPContAnz.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
this.tLPContAnz.ColumnCount = 4;
this.tLPContAnz.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
this.tLPContAnz.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
@ -668,7 +809,7 @@ namespace Deckungsbeitrag
this.tLPContAnz.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 37F));
this.tLPContAnz.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 37F));
this.tLPContAnz.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 37F));
this.tLPContAnz.Size = new System.Drawing.Size(475, 259);
this.tLPContAnz.Size = new System.Drawing.Size(364, 259);
this.tLPContAnz.TabIndex = 0;
//
// label14
@ -677,7 +818,7 @@ namespace Deckungsbeitrag
this.label14.Dock = System.Windows.Forms.DockStyle.Right;
this.label14.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label14.ForeColor = System.Drawing.SystemColors.ControlText;
this.label14.Location = new System.Drawing.Point(417, 222);
this.label14.Location = new System.Drawing.Point(306, 222);
this.label14.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.label14.Name = "label14";
this.label14.Size = new System.Drawing.Size(54, 37);
@ -733,7 +874,7 @@ namespace Deckungsbeitrag
this.label5.Dock = System.Windows.Forms.DockStyle.Right;
this.label5.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label5.ForeColor = System.Drawing.SystemColors.ControlText;
this.label5.Location = new System.Drawing.Point(421, 185);
this.label5.Location = new System.Drawing.Point(310, 185);
this.label5.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(50, 37);
@ -789,7 +930,7 @@ namespace Deckungsbeitrag
this.labelZeit52.Dock = System.Windows.Forms.DockStyle.Right;
this.labelZeit52.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.labelZeit52.ForeColor = System.Drawing.SystemColors.ControlText;
this.labelZeit52.Location = new System.Drawing.Point(421, 148);
this.labelZeit52.Location = new System.Drawing.Point(310, 148);
this.labelZeit52.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.labelZeit52.Name = "labelZeit52";
this.labelZeit52.Size = new System.Drawing.Size(50, 37);
@ -803,7 +944,7 @@ namespace Deckungsbeitrag
this.labelZeit42.Dock = System.Windows.Forms.DockStyle.Right;
this.labelZeit42.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.labelZeit42.ForeColor = System.Drawing.SystemColors.ControlText;
this.labelZeit42.Location = new System.Drawing.Point(421, 111);
this.labelZeit42.Location = new System.Drawing.Point(310, 111);
this.labelZeit42.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.labelZeit42.Name = "labelZeit42";
this.labelZeit42.Size = new System.Drawing.Size(50, 37);
@ -817,7 +958,7 @@ namespace Deckungsbeitrag
this.labelZeit32.Dock = System.Windows.Forms.DockStyle.Right;
this.labelZeit32.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.labelZeit32.ForeColor = System.Drawing.SystemColors.ControlText;
this.labelZeit32.Location = new System.Drawing.Point(421, 74);
this.labelZeit32.Location = new System.Drawing.Point(310, 74);
this.labelZeit32.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.labelZeit32.Name = "labelZeit32";
this.labelZeit32.Size = new System.Drawing.Size(50, 37);
@ -831,7 +972,7 @@ namespace Deckungsbeitrag
this.labelZeit22.Dock = System.Windows.Forms.DockStyle.Right;
this.labelZeit22.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.labelZeit22.ForeColor = System.Drawing.SystemColors.ControlText;
this.labelZeit22.Location = new System.Drawing.Point(421, 37);
this.labelZeit22.Location = new System.Drawing.Point(310, 37);
this.labelZeit22.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.labelZeit22.Name = "labelZeit22";
this.labelZeit22.Size = new System.Drawing.Size(50, 37);
@ -848,7 +989,7 @@ namespace Deckungsbeitrag
this.labelZeit12.Location = new System.Drawing.Point(306, 0);
this.labelZeit12.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.labelZeit12.Name = "labelZeit12";
this.labelZeit12.Size = new System.Drawing.Size(165, 37);
this.labelZeit12.Size = new System.Drawing.Size(54, 37);
this.labelZeit12.TabIndex = 15;
this.labelZeit12.Text = "2";
this.labelZeit12.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
@ -1049,168 +1190,6 @@ namespace Deckungsbeitrag
this.label12.Text = "Waschstraßen";
this.label12.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// groupBoxAuftrag
//
this.groupBoxAuftrag.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.groupBoxAuftrag.Controls.Add(this.objectListViewAuftrag);
this.groupBoxAuftrag.Controls.Add(this.rBAufAbruf);
this.groupBoxAuftrag.Controls.Add(this.rBAusgeliefert);
this.groupBoxAuftrag.Controls.Add(this.rBFertig);
this.groupBoxAuftrag.Controls.Add(this.rBVorbereitet);
this.groupBoxAuftrag.Controls.Add(this.rBAlle);
this.groupBoxAuftrag.Controls.Add(this.buttonAufAbruf);
this.groupBoxAuftrag.Controls.Add(this.buttonAusgeliefert);
this.groupBoxAuftrag.Enabled = false;
this.groupBoxAuftrag.Location = new System.Drawing.Point(1119, 80);
this.groupBoxAuftrag.Margin = new System.Windows.Forms.Padding(4);
this.groupBoxAuftrag.Name = "groupBoxAuftrag";
this.groupBoxAuftrag.Padding = new System.Windows.Forms.Padding(4);
this.groupBoxAuftrag.Size = new System.Drawing.Size(1632, 607);
this.groupBoxAuftrag.TabIndex = 51;
this.groupBoxAuftrag.TabStop = false;
this.groupBoxAuftrag.Visible = false;
//
// objectListViewAuftrag
//
this.objectListViewAuftrag.AlternateRowBackColor = System.Drawing.Color.LightSteelBlue;
this.objectListViewAuftrag.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.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.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(220, 17);
this.objectListViewAuftrag.Margin = new System.Windows.Forms.Padding(4);
this.objectListViewAuftrag.Name = "objectListViewAuftrag";
this.objectListViewAuftrag.Size = new System.Drawing.Size(1404, 582);
this.objectListViewAuftrag.TabIndex = 58;
this.objectListViewAuftrag.UseAlternatingBackColors = true;
this.objectListViewAuftrag.UseCompatibleStateImageBehavior = false;
this.objectListViewAuftrag.View = System.Windows.Forms.View.Details;
this.objectListViewAuftrag.ItemChecked += new System.Windows.Forms.ItemCheckedEventHandler(this.objectListViewAuftrag_ItemChecked);
//
// rBAufAbruf
//
this.rBAufAbruf.AutoSize = true;
this.rBAufAbruf.CheckAlign = System.Drawing.ContentAlignment.MiddleRight;
this.rBAufAbruf.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.rBAufAbruf.Location = new System.Drawing.Point(59, 167);
this.rBAufAbruf.Margin = new System.Windows.Forms.Padding(4);
this.rBAufAbruf.Name = "rBAufAbruf";
this.rBAufAbruf.Size = new System.Drawing.Size(115, 29);
this.rBAufAbruf.TabIndex = 57;
this.rBAufAbruf.TabStop = true;
this.rBAufAbruf.Text = "Auf Abruf";
this.rBAufAbruf.UseVisualStyleBackColor = true;
this.rBAufAbruf.CheckedChanged += new System.EventHandler(this.RadioButton_CheckedChanged);
//
// rBAusgeliefert
//
this.rBAusgeliefert.AutoSize = true;
this.rBAusgeliefert.CheckAlign = System.Drawing.ContentAlignment.MiddleRight;
this.rBAusgeliefert.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.rBAusgeliefert.Location = new System.Drawing.Point(36, 130);
this.rBAusgeliefert.Margin = new System.Windows.Forms.Padding(4);
this.rBAusgeliefert.Name = "rBAusgeliefert";
this.rBAusgeliefert.Size = new System.Drawing.Size(136, 29);
this.rBAusgeliefert.TabIndex = 54;
this.rBAusgeliefert.TabStop = true;
this.rBAusgeliefert.Text = "Ausgeliefert";
this.rBAusgeliefert.UseVisualStyleBackColor = true;
this.rBAusgeliefert.CheckedChanged += new System.EventHandler(this.RadioButton_CheckedChanged);
//
// rBFertig
//
this.rBFertig.AutoSize = true;
this.rBFertig.CheckAlign = System.Drawing.ContentAlignment.MiddleRight;
this.rBFertig.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.rBFertig.Location = new System.Drawing.Point(95, 94);
this.rBFertig.Margin = new System.Windows.Forms.Padding(4);
this.rBFertig.Name = "rBFertig";
this.rBFertig.Size = new System.Drawing.Size(82, 29);
this.rBFertig.TabIndex = 53;
this.rBFertig.TabStop = true;
this.rBFertig.Text = "Fertig";
this.rBFertig.UseVisualStyleBackColor = true;
this.rBFertig.CheckedChanged += new System.EventHandler(this.RadioButton_CheckedChanged);
//
// rBVorbereitet
//
this.rBVorbereitet.AutoSize = true;
this.rBVorbereitet.CheckAlign = System.Drawing.ContentAlignment.MiddleRight;
this.rBVorbereitet.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.rBVorbereitet.Location = new System.Drawing.Point(44, 57);
this.rBVorbereitet.Margin = new System.Windows.Forms.Padding(4);
this.rBVorbereitet.Name = "rBVorbereitet";
this.rBVorbereitet.Size = new System.Drawing.Size(128, 29);
this.rBVorbereitet.TabIndex = 52;
this.rBVorbereitet.TabStop = true;
this.rBVorbereitet.Text = "Vorbereitet";
this.rBVorbereitet.UseVisualStyleBackColor = true;
this.rBVorbereitet.CheckedChanged += new System.EventHandler(this.RadioButton_CheckedChanged);
//
// rBAlle
//
this.rBAlle.AutoSize = true;
this.rBAlle.CheckAlign = System.Drawing.ContentAlignment.MiddleRight;
this.rBAlle.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.rBAlle.Location = new System.Drawing.Point(115, 20);
this.rBAlle.Margin = new System.Windows.Forms.Padding(4);
this.rBAlle.Name = "rBAlle";
this.rBAlle.Size = new System.Drawing.Size(66, 29);
this.rBAlle.TabIndex = 51;
this.rBAlle.TabStop = true;
this.rBAlle.Text = "Alle";
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(13, 265);
this.buttonAufAbruf.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.buttonAufAbruf.Name = "buttonAufAbruf";
this.buttonAufAbruf.Size = new System.Drawing.Size(200, 50);
this.buttonAufAbruf.TabIndex = 56;
this.buttonAufAbruf.Text = "AufAbruf";
this.buttonAufAbruf.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;
this.buttonAufAbruf.UseVisualStyleBackColor = false;
this.buttonAufAbruf.Visible = false;
this.buttonAufAbruf.Click += new System.EventHandler(this.buttonAufAbruf_Click);
//
// 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(13, 209);
this.buttonAusgeliefert.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.buttonAusgeliefert.Name = "buttonAusgeliefert";
this.buttonAusgeliefert.Size = new System.Drawing.Size(200, 50);
this.buttonAusgeliefert.TabIndex = 55;
this.buttonAusgeliefert.Text = "Ausgeliefert";
this.buttonAusgeliefert.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;
this.buttonAusgeliefert.UseVisualStyleBackColor = false;
this.buttonAusgeliefert.Visible = false;
this.buttonAusgeliefert.Click += new System.EventHandler(this.buttonAusgeliefert_Click);
//
// groupBoxSaison
//
this.groupBoxSaison.Controls.Add(this.comboBoxSaison);
@ -1533,7 +1512,6 @@ namespace Deckungsbeitrag
this.HelpButton = true;
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.MinimizeBox = false;
this.MinimumSize = new System.Drawing.Size(200, 200);
this.Name = "FormMain";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
@ -1549,14 +1527,14 @@ namespace Deckungsbeitrag
this.toolStripMenu.PerformLayout();
this.panelMain.ResumeLayout(false);
this.panelMain.PerformLayout();
this.groupBoxAuftrag.ResumeLayout(false);
this.groupBoxAuftrag.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.objectListViewAuftrag)).EndInit();
this.panelProgress.ResumeLayout(false);
this.groupBoxContAnz.ResumeLayout(false);
this.groupBoxContAnz.PerformLayout();
this.tLPContAnz.ResumeLayout(false);
this.tLPContAnz.PerformLayout();
this.groupBoxAuftrag.ResumeLayout(false);
this.groupBoxAuftrag.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.objectListViewAuftrag)).EndInit();
this.groupBoxSaison.ResumeLayout(false);
this.groupBoxUpdate.ResumeLayout(false);
this.tableLayoutPanelUpdate.ResumeLayout(false);
@ -1651,7 +1629,6 @@ namespace Deckungsbeitrag
private System.Windows.Forms.ProgressBar progressBarKundeArtikelUpdate;
private System.Windows.Forms.Panel panelProgress;
private System.Windows.Forms.Button buttonNeuerRegAuft;
private System.Windows.Forms.Button buttonTestInventur;
}
}

View File

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

View File

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

View File

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

View File

@ -57,7 +57,8 @@ namespace DatenDB
Standerhöhung = 3,
Standverminderung = 4,
Regelmäßig = 5,
AufAbruf = 6
AufAbruf = 6,
Einmalig = 7
}
[Flags]
@ -104,16 +105,23 @@ namespace DatenDB
{
command.Connection = conn;
// Listen für FROTTEE EXPEDIT
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";
if (abtstatus != null)
{
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 status < {(int)status} AND status > {(int)AuftragStatus.Aufgelegt} AND (a.abteilungen_status & 2) = 0 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)AuftragStatus.Vorbereitet} AND (a.abteilungen_status & 2) <> 0 ORDER BY liefertag ASC";
}
else
{
// Listen für EXPEDIT
// Aufträge mit: alle Typen, mit Status "Gewaschen" und "Herrichten" fällig HEUTE + 2 Tage
// Liste für EXPEDIT AUFTRÄGE HEUTE
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} 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";
// Liste für EXPEDIT GESCHÄFT
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.Fertig} ORDER BY liefertag ASC";
else
{ // Liste für EXPEDIT VORBEREITET
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";
}
}
}
@ -450,7 +458,7 @@ namespace DatenDB
command.Connection = DatenbankConnection.GetConnection();
if (this.Typ != AuftragTyp.Regelmäßig)
{
if (exakt) command.CommandText = $"select auftrag_id from {TABLE} where kunde_id = {this.KundeID} and erstellt::date = '{this.Erstellt.Value.Date}' and liefertag = '{this.Liefertag}'";
if (exakt) command.CommandText = $"select auftrag_id from {TABLE} where kunde_id = {this.KundeID} and typ = {(int)this.Typ} and liefertag = '{this.Liefertag}'";
else command.CommandText = $"select auftrag_id from {TABLE} where kunde_id = {this.KundeID} and liefertag = '{this.Liefertag}' and status = {(int)this.Status}";
}
else command.CommandText = $"select auftrag_id from {TABLE} where kunde_id = {this.KundeID} and typ = {(int)this.Typ}";

View File

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

View File

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

View File

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

View File

@ -31,5 +31,5 @@ using System.Runtime.InteropServices;
//
// Sie können alle Werte angeben oder Standardwerte für die Build- und Revisionsnummern verwenden,
// indem Sie "*" wie unten gezeigt eingeben:
[assembly: AssemblyVersion("1.0.8.5")]
[assembly: AssemblyFileVersion("1.0.8.5")]
[assembly: AssemblyVersion("1.0.9.1")]
[assembly: AssemblyFileVersion("1.0.9.1")]

File diff suppressed because it is too large Load Diff

View File

@ -28,138 +28,155 @@
/// </summary>
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(UCInventur));
this.groupBoxInventur = new System.Windows.Forms.GroupBox();
this.labelLieferDat = new System.Windows.Forms.Label();
this.dTPLieferDat = new System.Windows.Forms.DateTimePicker();
this.labelInvDat = new System.Windows.Forms.Label();
this.label1 = new System.Windows.Forms.Label();
this.pictureBoxClose = new System.Windows.Forms.PictureBox();
this.dTPInvDatum = new System.Windows.Forms.DateTimePicker();
this.pictureBoxPlus = new System.Windows.Forms.PictureBox();
this.dGArtikel = new System.Windows.Forms.DataGridView();
this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column4 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column5 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column6 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column7 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.buttonFreigeben = new System.Windows.Forms.Button();
this.panelButtons = new System.Windows.Forms.Panel();
this.buttonSpeichern = new System.Windows.Forms.Button();
this.labelInvText = new System.Windows.Forms.Label();
this.buttonAbbrechen = new System.Windows.Forms.Button();
this.groupBoxInventur.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.pictureBoxClose)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBoxPlus)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.dGArtikel)).BeginInit();
this.panelButtons.SuspendLayout();
this.SuspendLayout();
//
// groupBoxInventur
//
this.groupBoxInventur.Controls.Add(this.labelLieferDat);
this.groupBoxInventur.Controls.Add(this.dTPLieferDat);
this.groupBoxInventur.Controls.Add(this.labelInvDat);
this.groupBoxInventur.Controls.Add(this.label1);
this.groupBoxInventur.Controls.Add(this.pictureBoxClose);
this.groupBoxInventur.Controls.Add(this.dTPInvDatum);
this.groupBoxInventur.Controls.Add(this.pictureBoxPlus);
this.groupBoxInventur.Controls.Add(this.dGArtikel);
this.groupBoxInventur.Dock = System.Windows.Forms.DockStyle.Top;
this.groupBoxInventur.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.groupBoxInventur.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(1)))), ((int)(((byte)(53)))), ((int)(((byte)(101)))));
this.groupBoxInventur.Location = new System.Drawing.Point(3, 3);
this.groupBoxInventur.Name = "groupBoxInventur";
this.groupBoxInventur.Padding = new System.Windows.Forms.Padding(5);
this.groupBoxInventur.Size = new System.Drawing.Size(983, 485);
this.groupBoxInventur.TabIndex = 0;
this.groupBoxInventur.TabStop = false;
this.groupBoxInventur.Text = "Inventur 000000 Kundename";
this.groupBoxInventur.Paint += new System.Windows.Forms.PaintEventHandler(this.groupBoxInventur_Paint);
//
// labelLieferDat
//
this.labelLieferDat.AutoSize = true;
this.labelLieferDat.Font = new System.Drawing.Font("Microsoft Sans Serif", 10.2F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.labelLieferDat.Location = new System.Drawing.Point(319, 46);
this.labelLieferDat.Name = "labelLieferDat";
this.labelLieferDat.Size = new System.Drawing.Size(115, 20);
this.labelLieferDat.TabIndex = 46;
this.labelLieferDat.Text = "Lieferdatum:";
this.labelLieferDat.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// dTPLieferDat
//
this.dTPLieferDat.CalendarForeColor = System.Drawing.SystemColors.ActiveCaptionText;
this.dTPLieferDat.Format = System.Windows.Forms.DateTimePickerFormat.Short;
this.dTPLieferDat.Location = new System.Drawing.Point(440, 37);
this.dTPLieferDat.Name = "dTPLieferDat";
this.dTPLieferDat.Size = new System.Drawing.Size(161, 30);
this.dTPLieferDat.TabIndex = 45;
//
// labelInvDat
//
this.labelInvDat.AutoSize = true;
this.labelInvDat.Font = new System.Drawing.Font("Microsoft Sans Serif", 10.2F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.labelInvDat.Location = new System.Drawing.Point(3, 46);
this.labelInvDat.Name = "labelInvDat";
this.labelInvDat.Size = new System.Drawing.Size(133, 20);
this.labelInvDat.TabIndex = 44;
this.labelInvDat.Text = "Inventurdatum:";
this.labelInvDat.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// label1
//
this.label1.AutoSize = true;
this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 10.2F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label1.Location = new System.Drawing.Point(697, 46);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(245, 20);
this.label1.TabIndex = 43;
this.label1.Text = "Lager/Lieferung hinzufügen:";
this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// pictureBoxClose
//
this.pictureBoxClose.ErrorImage = ((System.Drawing.Image)(resources.GetObject("pictureBoxClose.ErrorImage")));
this.pictureBoxClose.Image = ((System.Drawing.Image)(resources.GetObject("pictureBoxClose.Image")));
this.pictureBoxClose.InitialImage = ((System.Drawing.Image)(resources.GetObject("pictureBoxClose.InitialImage")));
this.pictureBoxClose.Location = new System.Drawing.Point(948, 7);
this.pictureBoxClose.Name = "pictureBoxClose";
this.pictureBoxClose.Size = new System.Drawing.Size(25, 25);
this.pictureBoxClose.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
this.pictureBoxClose.TabIndex = 42;
this.pictureBoxClose.TabStop = false;
this.pictureBoxClose.Click += new System.EventHandler(this.pictureBoxClose_Click);
//
// dTPInvDatum
//
this.dTPInvDatum.CalendarForeColor = System.Drawing.SystemColors.ActiveCaptionText;
this.dTPInvDatum.Format = System.Windows.Forms.DateTimePickerFormat.Short;
this.dTPInvDatum.Location = new System.Drawing.Point(142, 37);
this.dTPInvDatum.Name = "dTPInvDatum";
this.dTPInvDatum.Size = new System.Drawing.Size(161, 30);
this.dTPInvDatum.TabIndex = 41;
//
// pictureBoxPlus
//
this.pictureBoxPlus.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(192)))), ((int)(((byte)(0)))));
this.pictureBoxPlus.Image = ((System.Drawing.Image)(resources.GetObject("pictureBoxPlus.Image")));
this.pictureBoxPlus.Location = new System.Drawing.Point(948, 37);
this.pictureBoxPlus.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.pictureBoxPlus.Name = "pictureBoxPlus";
this.pictureBoxPlus.Size = new System.Drawing.Size(30, 30);
this.pictureBoxPlus.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
this.pictureBoxPlus.TabIndex = 40;
this.pictureBoxPlus.TabStop = false;
this.pictureBoxPlus.Click += new System.EventHandler(this.pictureBoxPlus_Click);
//
// dGArtikel
//
this.dGArtikel.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dGArtikel.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(UCInventur));
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
this.groupBoxInventur = new System.Windows.Forms.GroupBox();
this.labelLieferDat = new System.Windows.Forms.Label();
this.dTPLieferDat = new System.Windows.Forms.DateTimePicker();
this.labelInvDat = new System.Windows.Forms.Label();
this.label1 = new System.Windows.Forms.Label();
this.pictureBoxClose = new System.Windows.Forms.PictureBox();
this.dTPInvDatum = new System.Windows.Forms.DateTimePicker();
this.pictureBoxPlus = new System.Windows.Forms.PictureBox();
this.dGArtikel = new System.Windows.Forms.DataGridView();
this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column4 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column5 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column6 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column7 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.buttonFreigeben = new System.Windows.Forms.Button();
this.panelButtons = new System.Windows.Forms.Panel();
this.buttonAbbrechen = new System.Windows.Forms.Button();
this.buttonSpeichern = new System.Windows.Forms.Button();
this.labelInvText = new System.Windows.Forms.Label();
this.groupBoxInventur.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.pictureBoxClose)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBoxPlus)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.dGArtikel)).BeginInit();
this.panelButtons.SuspendLayout();
this.SuspendLayout();
//
// groupBoxInventur
//
this.groupBoxInventur.Controls.Add(this.labelLieferDat);
this.groupBoxInventur.Controls.Add(this.dTPLieferDat);
this.groupBoxInventur.Controls.Add(this.labelInvDat);
this.groupBoxInventur.Controls.Add(this.label1);
this.groupBoxInventur.Controls.Add(this.pictureBoxClose);
this.groupBoxInventur.Controls.Add(this.dTPInvDatum);
this.groupBoxInventur.Controls.Add(this.pictureBoxPlus);
this.groupBoxInventur.Controls.Add(this.dGArtikel);
this.groupBoxInventur.Dock = System.Windows.Forms.DockStyle.Top;
this.groupBoxInventur.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.groupBoxInventur.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(1)))), ((int)(((byte)(53)))), ((int)(((byte)(101)))));
this.groupBoxInventur.Location = new System.Drawing.Point(3, 4);
this.groupBoxInventur.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
this.groupBoxInventur.Name = "groupBoxInventur";
this.groupBoxInventur.Padding = new System.Windows.Forms.Padding(6);
this.groupBoxInventur.Size = new System.Drawing.Size(1106, 563);
this.groupBoxInventur.TabIndex = 0;
this.groupBoxInventur.TabStop = false;
this.groupBoxInventur.Text = "Inventur 000000 Kundename";
this.groupBoxInventur.Paint += new System.Windows.Forms.PaintEventHandler(this.groupBoxInventur_Paint);
//
// labelLieferDat
//
this.labelLieferDat.AutoSize = true;
this.labelLieferDat.Font = new System.Drawing.Font("Microsoft Sans Serif", 10.2F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.labelLieferDat.Location = new System.Drawing.Point(359, 58);
this.labelLieferDat.Name = "labelLieferDat";
this.labelLieferDat.Size = new System.Drawing.Size(99, 17);
this.labelLieferDat.TabIndex = 46;
this.labelLieferDat.Text = "Lieferdatum:";
this.labelLieferDat.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// dTPLieferDat
//
this.dTPLieferDat.CalendarForeColor = System.Drawing.SystemColors.ActiveCaptionText;
this.dTPLieferDat.Format = System.Windows.Forms.DateTimePickerFormat.Short;
this.dTPLieferDat.Location = new System.Drawing.Point(495, 46);
this.dTPLieferDat.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
this.dTPLieferDat.Name = "dTPLieferDat";
this.dTPLieferDat.Size = new System.Drawing.Size(181, 26);
this.dTPLieferDat.TabIndex = 45;
//
// labelInvDat
//
this.labelInvDat.AutoSize = true;
this.labelInvDat.Font = new System.Drawing.Font("Microsoft Sans Serif", 10.2F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.labelInvDat.Location = new System.Drawing.Point(3, 58);
this.labelInvDat.Name = "labelInvDat";
this.labelInvDat.Size = new System.Drawing.Size(116, 17);
this.labelInvDat.TabIndex = 44;
this.labelInvDat.Text = "Inventurdatum:";
this.labelInvDat.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// label1
//
this.label1.AutoSize = true;
this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 10.2F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label1.Location = new System.Drawing.Point(784, 58);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(214, 17);
this.label1.TabIndex = 43;
this.label1.Text = "Lager/Lieferung hinzufügen:";
this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// pictureBoxClose
//
this.pictureBoxClose.ErrorImage = ((System.Drawing.Image)(resources.GetObject("pictureBoxClose.ErrorImage")));
this.pictureBoxClose.Image = ((System.Drawing.Image)(resources.GetObject("pictureBoxClose.Image")));
this.pictureBoxClose.InitialImage = ((System.Drawing.Image)(resources.GetObject("pictureBoxClose.InitialImage")));
this.pictureBoxClose.Location = new System.Drawing.Point(1066, 9);
this.pictureBoxClose.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
this.pictureBoxClose.Name = "pictureBoxClose";
this.pictureBoxClose.Size = new System.Drawing.Size(28, 31);
this.pictureBoxClose.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
this.pictureBoxClose.TabIndex = 42;
this.pictureBoxClose.TabStop = false;
this.pictureBoxClose.Click += new System.EventHandler(this.pictureBoxClose_Click);
//
// dTPInvDatum
//
this.dTPInvDatum.CalendarForeColor = System.Drawing.SystemColors.ActiveCaptionText;
this.dTPInvDatum.Format = System.Windows.Forms.DateTimePickerFormat.Short;
this.dTPInvDatum.Location = new System.Drawing.Point(160, 46);
this.dTPInvDatum.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
this.dTPInvDatum.Name = "dTPInvDatum";
this.dTPInvDatum.Size = new System.Drawing.Size(181, 26);
this.dTPInvDatum.TabIndex = 41;
//
// pictureBoxPlus
//
this.pictureBoxPlus.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(192)))), ((int)(((byte)(0)))));
this.pictureBoxPlus.Image = ((System.Drawing.Image)(resources.GetObject("pictureBoxPlus.Image")));
this.pictureBoxPlus.Location = new System.Drawing.Point(1066, 46);
this.pictureBoxPlus.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.pictureBoxPlus.Name = "pictureBoxPlus";
this.pictureBoxPlus.Size = new System.Drawing.Size(34, 38);
this.pictureBoxPlus.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
this.pictureBoxPlus.TabIndex = 40;
this.pictureBoxPlus.TabStop = false;
this.pictureBoxPlus.Click += new System.EventHandler(this.pictureBoxPlus_Click);
//
// dGArtikel
//
this.dGArtikel.AllowUserToAddRows = false;
this.dGArtikel.AllowUserToResizeRows = false;
this.dGArtikel.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.DisplayedCells;
dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle1.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle1.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
dataGridViewCellStyle1.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle1.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle1.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.dGArtikel.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle1;
this.dGArtikel.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dGArtikel.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.Column1,
this.Column2,
this.Column3,
@ -167,192 +184,195 @@
this.Column5,
this.Column6,
this.Column7});
this.dGArtikel.Dock = System.Windows.Forms.DockStyle.Bottom;
this.dGArtikel.Location = new System.Drawing.Point(5, 96);
this.dGArtikel.Margin = new System.Windows.Forms.Padding(4);
this.dGArtikel.MinimumSize = new System.Drawing.Size(0, 350);
this.dGArtikel.Name = "dGArtikel";
this.dGArtikel.RowHeadersVisible = false;
this.dGArtikel.RowHeadersWidth = 51;
this.dGArtikel.Size = new System.Drawing.Size(973, 384);
this.dGArtikel.TabIndex = 34;
this.dGArtikel.CellEndEdit += new System.Windows.Forms.DataGridViewCellEventHandler(this.dGArtikel_CellEndEdit);
this.dGArtikel.CellLeave += new System.Windows.Forms.DataGridViewCellEventHandler(this.dGArtikel_CellLeave);
this.dGArtikel.CellMouseDoubleClick += new System.Windows.Forms.DataGridViewCellMouseEventHandler(this.dGArtikel_CellMouseDoubleClick);
this.dGArtikel.CellValueChanged += new System.Windows.Forms.DataGridViewCellEventHandler(this.dGArtikel_CellValueChanged);
this.dGArtikel.DataBindingComplete += new System.Windows.Forms.DataGridViewBindingCompleteEventHandler(this.dGArtikel_DataBindingComplete);
this.dGArtikel.Leave += new System.EventHandler(this.dGArtikel_Leave);
//
// Column1
//
this.Column1.DataPropertyName = "ArtikelNR";
this.Column1.HeaderText = "Art.Nr.";
this.Column1.MinimumWidth = 6;
this.Column1.Name = "Column1";
this.Column1.ReadOnly = true;
this.Column1.Width = 103;
//
// Column2
//
this.Column2.DataPropertyName = "ArtikelName";
this.Column2.HeaderText = "Art.Name";
this.Column2.MinimumWidth = 6;
this.Column2.Name = "Column2";
this.Column2.ReadOnly = true;
this.Column2.Width = 131;
//
// Column3
//
this.Column3.DataPropertyName = "Stand";
this.Column3.HeaderText = "Ist-Stand";
this.Column3.MinimumWidth = 6;
this.Column3.Name = "Column3";
this.Column3.ReadOnly = true;
this.Column3.Width = 129;
//
// Column4
//
this.Column4.DataPropertyName = "Reklamation";
this.Column4.HeaderText = "Rekl.";
this.Column4.MinimumWidth = 6;
this.Column4.Name = "Column4";
this.Column4.ReadOnly = true;
this.Column4.Width = 89;
//
// Column5
//
this.Column5.DataPropertyName = "Fehlmenge";
this.Column5.HeaderText = "NW";
this.Column5.MinimumWidth = 6;
this.Column5.Name = "Column5";
this.Column5.ReadOnly = true;
this.Column5.Width = 77;
//
// Column6
//
this.Column6.HeaderText = "Schwund";
this.Column6.MinimumWidth = 6;
this.Column6.Name = "Column6";
this.Column6.ReadOnly = true;
this.Column6.Width = 130;
//
// Column7
//
this.Column7.DataPropertyName = "Korrektur";
this.Column7.HeaderText = "Inv.Ausgleich";
this.Column7.MinimumWidth = 6;
this.Column7.Name = "Column7";
this.Column7.ReadOnly = true;
this.Column7.Width = 125;
//
// buttonFreigeben
//
this.buttonFreigeben.AutoSize = true;
this.buttonFreigeben.BackColor = System.Drawing.Color.Gray;
this.buttonFreigeben.CausesValidation = false;
this.buttonFreigeben.Dock = System.Windows.Forms.DockStyle.Right;
this.buttonFreigeben.Enabled = false;
this.buttonFreigeben.FlatAppearance.BorderSize = 0;
this.buttonFreigeben.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.buttonFreigeben.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.buttonFreigeben.ForeColor = System.Drawing.Color.Black;
this.buttonFreigeben.Location = new System.Drawing.Point(776, 0);
this.buttonFreigeben.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.buttonFreigeben.Name = "buttonFreigeben";
this.buttonFreigeben.Size = new System.Drawing.Size(200, 48);
this.buttonFreigeben.TabIndex = 38;
this.buttonFreigeben.Text = "Inventur freigeben";
this.buttonFreigeben.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText;
this.buttonFreigeben.UseVisualStyleBackColor = false;
this.buttonFreigeben.Click += new System.EventHandler(this.buttonFreigeben_Click);
//
// panelButtons
//
this.panelButtons.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.panelButtons.Controls.Add(this.buttonAbbrechen);
this.panelButtons.Controls.Add(this.buttonSpeichern);
this.panelButtons.Controls.Add(this.labelInvText);
this.panelButtons.Controls.Add(this.buttonFreigeben);
this.panelButtons.Dock = System.Windows.Forms.DockStyle.Bottom;
this.panelButtons.Location = new System.Drawing.Point(3, 488);
this.panelButtons.Name = "panelButtons";
this.panelButtons.Padding = new System.Windows.Forms.Padding(5, 0, 5, 0);
this.panelButtons.Size = new System.Drawing.Size(983, 50);
this.panelButtons.TabIndex = 43;
//
// buttonSpeichern
//
this.buttonSpeichern.Anchor = System.Windows.Forms.AnchorStyles.Right;
this.buttonSpeichern.BackColor = System.Drawing.Color.Gray;
this.buttonSpeichern.CausesValidation = false;
this.buttonSpeichern.Enabled = false;
this.buttonSpeichern.FlatAppearance.BorderSize = 0;
this.buttonSpeichern.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.buttonSpeichern.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.buttonSpeichern.ForeColor = System.Drawing.Color.Black;
this.buttonSpeichern.Location = new System.Drawing.Point(569, 0);
this.buttonSpeichern.Margin = new System.Windows.Forms.Padding(5, 2, 5, 2);
this.buttonSpeichern.MinimumSize = new System.Drawing.Size(150, 50);
this.buttonSpeichern.Name = "buttonSpeichern";
this.buttonSpeichern.Size = new System.Drawing.Size(200, 50);
this.buttonSpeichern.TabIndex = 40;
this.buttonSpeichern.Text = "Speichern";
this.buttonSpeichern.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText;
this.buttonSpeichern.UseVisualStyleBackColor = false;
this.buttonSpeichern.Click += new System.EventHandler(this.buttonSpeichern_Click);
//
// labelInvText
//
this.labelInvText.AutoSize = true;
this.labelInvText.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.labelInvText.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(1)))), ((int)(((byte)(53)))), ((int)(((byte)(101)))));
this.labelInvText.Location = new System.Drawing.Point(8, 12);
this.labelInvText.Name = "labelInvText";
this.labelInvText.Size = new System.Drawing.Size(70, 25);
this.labelInvText.TabIndex = 39;
this.labelInvText.Text = "label1";
this.labelInvText.Visible = false;
this.labelInvText.Click += new System.EventHandler(this.labelInvText_Click);
//
// buttonAbbrechen
//
this.buttonAbbrechen.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.buttonAbbrechen.BackColor = System.Drawing.Color.Red;
this.buttonAbbrechen.FlatAppearance.BorderSize = 0;
this.buttonAbbrechen.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.buttonAbbrechen.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.buttonAbbrechen.ForeColor = System.Drawing.Color.Black;
this.buttonAbbrechen.Location = new System.Drawing.Point(361, -1);
this.buttonAbbrechen.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.buttonAbbrechen.Name = "buttonAbbrechen";
this.buttonAbbrechen.Size = new System.Drawing.Size(200, 50);
this.buttonAbbrechen.TabIndex = 41;
this.buttonAbbrechen.Text = "Abbrechen";
this.buttonAbbrechen.UseVisualStyleBackColor = false;
this.buttonAbbrechen.Click += new System.EventHandler(this.buttonAbbrechen_Click);
//
// UCInventur
//
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.AutoSize = true;
this.BackColor = System.Drawing.SystemColors.Control;
this.Controls.Add(this.panelButtons);
this.Controls.Add(this.groupBoxInventur);
this.Margin = new System.Windows.Forms.Padding(5);
this.Name = "UCInventur";
this.Padding = new System.Windows.Forms.Padding(3);
this.Size = new System.Drawing.Size(989, 541);
this.Load += new System.EventHandler(this.UCInventur_Load);
this.SizeChanged += new System.EventHandler(this.UCInventur_SizeChanged);
this.groupBoxInventur.ResumeLayout(false);
this.groupBoxInventur.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.pictureBoxClose)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBoxPlus)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.dGArtikel)).EndInit();
this.panelButtons.ResumeLayout(false);
this.panelButtons.PerformLayout();
this.ResumeLayout(false);
dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle2.BackColor = System.Drawing.SystemColors.Window;
dataGridViewCellStyle2.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
dataGridViewCellStyle2.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(1)))), ((int)(((byte)(53)))), ((int)(((byte)(101)))));
dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
this.dGArtikel.DefaultCellStyle = dataGridViewCellStyle2;
this.dGArtikel.Location = new System.Drawing.Point(6, 100);
this.dGArtikel.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.dGArtikel.MinimumSize = new System.Drawing.Size(0, 438);
this.dGArtikel.Name = "dGArtikel";
this.dGArtikel.RowHeadersVisible = false;
this.dGArtikel.RowHeadersWidth = 51;
this.dGArtikel.Size = new System.Drawing.Size(1094, 457);
this.dGArtikel.TabIndex = 34;
this.dGArtikel.CellEndEdit += new System.Windows.Forms.DataGridViewCellEventHandler(this.dGArtikel_CellEndEdit);
this.dGArtikel.CellLeave += new System.Windows.Forms.DataGridViewCellEventHandler(this.dGArtikel_CellLeave);
this.dGArtikel.CellMouseDoubleClick += new System.Windows.Forms.DataGridViewCellMouseEventHandler(this.dGArtikel_CellMouseDoubleClick);
this.dGArtikel.CellValueChanged += new System.Windows.Forms.DataGridViewCellEventHandler(this.dGArtikel_CellValueChanged);
this.dGArtikel.DataBindingComplete += new System.Windows.Forms.DataGridViewBindingCompleteEventHandler(this.dGArtikel_DataBindingComplete);
this.dGArtikel.Leave += new System.EventHandler(this.dGArtikel_Leave);
//
// Column1
//
this.Column1.DataPropertyName = "ArtikelNR";
this.Column1.HeaderText = "Art.Nr.";
this.Column1.MinimumWidth = 6;
this.Column1.Name = "Column1";
this.Column1.ReadOnly = true;
this.Column1.Width = 75;
//
// Column2
//
this.Column2.DataPropertyName = "ArtikelName";
this.Column2.HeaderText = "Art.Name";
this.Column2.MinimumWidth = 6;
this.Column2.Name = "Column2";
this.Column2.ReadOnly = true;
this.Column2.Width = 96;
//
// Column3
//
this.Column3.DataPropertyName = "Stand";
this.Column3.HeaderText = "Ist-Stand";
this.Column3.MinimumWidth = 6;
this.Column3.Name = "Column3";
this.Column3.ReadOnly = true;
this.Column3.Width = 93;
//
// Column4
//
this.Column4.DataPropertyName = "Reklamation";
this.Column4.HeaderText = "Rekl.";
this.Column4.MinimumWidth = 6;
this.Column4.Name = "Column4";
this.Column4.ReadOnly = true;
this.Column4.Width = 68;
//
// Column5
//
this.Column5.DataPropertyName = "Fehlmenge";
this.Column5.HeaderText = "NW";
this.Column5.MinimumWidth = 6;
this.Column5.Name = "Column5";
this.Column5.ReadOnly = true;
this.Column5.Width = 57;
//
// Column6
//
this.Column6.HeaderText = "Schwund";
this.Column6.MinimumWidth = 6;
this.Column6.Name = "Column6";
this.Column6.ReadOnly = true;
this.Column6.Width = 93;
//
// Column7
//
this.Column7.DataPropertyName = "Korrektur";
this.Column7.HeaderText = "Inv.Ausgleich";
this.Column7.MinimumWidth = 6;
this.Column7.Name = "Column7";
this.Column7.ReadOnly = true;
this.Column7.Width = 124;
//
// buttonFreigeben
//
this.buttonFreigeben.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.buttonFreigeben.BackColor = System.Drawing.Color.Gray;
this.buttonFreigeben.CausesValidation = false;
this.buttonFreigeben.Enabled = false;
this.buttonFreigeben.FlatAppearance.BorderSize = 0;
this.buttonFreigeben.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.buttonFreigeben.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.buttonFreigeben.ForeColor = System.Drawing.Color.Black;
this.buttonFreigeben.Location = new System.Drawing.Point(899, 5);
this.buttonFreigeben.Margin = new System.Windows.Forms.Padding(0);
this.buttonFreigeben.Name = "buttonFreigeben";
this.buttonFreigeben.Size = new System.Drawing.Size(200, 40);
this.buttonFreigeben.TabIndex = 38;
this.buttonFreigeben.Text = "Inventur freigeben";
this.buttonFreigeben.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText;
this.buttonFreigeben.UseVisualStyleBackColor = false;
this.buttonFreigeben.Click += new System.EventHandler(this.buttonFreigeben_Click);
//
// panelButtons
//
this.panelButtons.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.panelButtons.Controls.Add(this.buttonAbbrechen);
this.panelButtons.Controls.Add(this.buttonSpeichern);
this.panelButtons.Controls.Add(this.labelInvText);
this.panelButtons.Controls.Add(this.buttonFreigeben);
this.panelButtons.Dock = System.Windows.Forms.DockStyle.Bottom;
this.panelButtons.Location = new System.Drawing.Point(3, 570);
this.panelButtons.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
this.panelButtons.Name = "panelButtons";
this.panelButtons.Size = new System.Drawing.Size(1106, 52);
this.panelButtons.TabIndex = 43;
//
// buttonAbbrechen
//
this.buttonAbbrechen.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.buttonAbbrechen.BackColor = System.Drawing.Color.Red;
this.buttonAbbrechen.FlatAppearance.BorderSize = 0;
this.buttonAbbrechen.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.buttonAbbrechen.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.buttonAbbrechen.ForeColor = System.Drawing.Color.Black;
this.buttonAbbrechen.Location = new System.Drawing.Point(489, 5);
this.buttonAbbrechen.Margin = new System.Windows.Forms.Padding(0);
this.buttonAbbrechen.Name = "buttonAbbrechen";
this.buttonAbbrechen.Size = new System.Drawing.Size(200, 40);
this.buttonAbbrechen.TabIndex = 41;
this.buttonAbbrechen.Text = "Abbrechen";
this.buttonAbbrechen.UseVisualStyleBackColor = false;
this.buttonAbbrechen.Click += new System.EventHandler(this.buttonAbbrechen_Click);
//
// buttonSpeichern
//
this.buttonSpeichern.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.buttonSpeichern.BackColor = System.Drawing.Color.Gray;
this.buttonSpeichern.CausesValidation = false;
this.buttonSpeichern.Enabled = false;
this.buttonSpeichern.FlatAppearance.BorderSize = 0;
this.buttonSpeichern.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.buttonSpeichern.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.buttonSpeichern.ForeColor = System.Drawing.Color.Black;
this.buttonSpeichern.Location = new System.Drawing.Point(694, 5);
this.buttonSpeichern.Margin = new System.Windows.Forms.Padding(5);
this.buttonSpeichern.Name = "buttonSpeichern";
this.buttonSpeichern.Size = new System.Drawing.Size(200, 40);
this.buttonSpeichern.TabIndex = 40;
this.buttonSpeichern.Text = "Speichern";
this.buttonSpeichern.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText;
this.buttonSpeichern.UseVisualStyleBackColor = false;
this.buttonSpeichern.Click += new System.EventHandler(this.buttonSpeichern_Click);
//
// labelInvText
//
this.labelInvText.AutoSize = true;
this.labelInvText.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.labelInvText.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(1)))), ((int)(((byte)(53)))), ((int)(((byte)(101)))));
this.labelInvText.Location = new System.Drawing.Point(3, 15);
this.labelInvText.Name = "labelInvText";
this.labelInvText.Size = new System.Drawing.Size(57, 20);
this.labelInvText.TabIndex = 39;
this.labelInvText.Text = "label1";
this.labelInvText.Visible = false;
this.labelInvText.Click += new System.EventHandler(this.labelInvText_Click);
//
// UCInventur
//
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
this.BackColor = System.Drawing.SystemColors.Control;
this.Controls.Add(this.panelButtons);
this.Controls.Add(this.groupBoxInventur);
this.Margin = new System.Windows.Forms.Padding(6);
this.Name = "UCInventur";
this.Padding = new System.Windows.Forms.Padding(3, 4, 3, 4);
this.Size = new System.Drawing.Size(1112, 626);
this.Load += new System.EventHandler(this.UCInventur_Load);
this.SizeChanged += new System.EventHandler(this.UCInventur_SizeChanged);
this.groupBoxInventur.ResumeLayout(false);
this.groupBoxInventur.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.pictureBoxClose)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBoxPlus)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.dGArtikel)).EndInit();
this.panelButtons.ResumeLayout(false);
this.panelButtons.PerformLayout();
this.ResumeLayout(false);
}

View File

@ -73,8 +73,10 @@ namespace Deckungsbeitrag.UserControls
this.lines = lines;
this.user = benutzer;
this.Sender = sender;
this.kunde = Kunde.GetKunde(lines[1].Split(':')[1].Trim(), null, null);
this.auftrag = Auftrag.GetAuftrag(int.Parse(lines[3].Split(':')[1].Trim()));
string kndnr = lines[1].Split(':')[1].Trim();
int auftragnr = int.Parse(lines[3].Split(':')[1].Trim());
this.kunde = Kunde.GetKunde(kndnr, null, null);
this.auftrag = Auftrag.GetAuftrag(auftragnr);
}
private void UCInventur_Load(object sender, EventArgs e)
@ -89,11 +91,11 @@ namespace Deckungsbeitrag.UserControls
Load_DGV();
if (lines != null & Sender is FormMain) pictureBoxClose_Click(sender, e);
if (Sender is FormAuftragDetail)
if (Sender is FormAuftragDetail formAuftragDetail)
{
formAuftragDetail = sender as FormAuftragDetail;
pictureBoxClose.Visible = pictureBoxClose.Enabled = false;
pictureBoxPlus.Visible = pictureBoxPlus.Enabled = false;
//pictureBoxPlus.Visible = pictureBoxPlus.Enabled = false;
buttonAbbrechen.Visible = buttonAbbrechen.Enabled = false;
}
formLoading = false;
}
@ -105,6 +107,7 @@ namespace Deckungsbeitrag.UserControls
artikelListe = KundeArtikel.GetInventurList(this.kunde.KundeID);
//this.dGArtikel.DataSource = artikelListe;
this.dGArtikel.AllowUserToAddRows = false;
this.dGArtikel.AllowUserToResizeColumns = true;
this.dGArtikel.Rows.Clear();
if (lines != null)
{
@ -189,6 +192,9 @@ namespace Deckungsbeitrag.UserControls
{
string text = Interaction.InputBox($"Bitte gib hier den Spaltentitel ein.\n\nTitel:", "Spaltentitel", "");
int cols = this.dGArtikel.Columns.Count;
// Wenn Inputbox gibt string.empty zurück dann keine Column anlegen.
if (string.IsNullOrWhiteSpace(text)) return;
DataGridViewTextBoxColumn column = new DataGridViewTextBoxColumn()
{
HeaderText = text,
@ -256,6 +262,8 @@ namespace Deckungsbeitrag.UserControls
List<KundeArtikel> _artikelliste = this.artikelListe;
string status = string.Empty;
string savePath = Path.Combine(ConfigurationManager.AppSettings["DateiSavePfad"], "Listen\\Inventuren") ?? "Inventuren";
if (ConfigurationManager.AppSettings["ConnectionString"].Split(';')[4].Split('=')[1] == "Test_Wirl") savePath = Path.Combine(ConfigurationManager.AppSettings["DateiSavePfad"], "Test\\Inventuren") ?? "Inventuren";
// Inventur Status Warten wenn noch Zahlen fehlen und Herrichten wenn alle vorhanden.
if (btn.Text.ToString() == "Speichern") status = "Warten";
@ -299,7 +307,7 @@ namespace Deckungsbeitrag.UserControls
csv.AppendLine();
csv.AppendLine(new string('=', 30));
csv.AppendLine($"Status;{cols}");
//File.WriteAllText(csvPath, csv.ToString(), Encoding.UTF8);
File.WriteAllText(csvPath, csv.ToString(), Encoding.UTF8);
}
// NEUE Artikel ANHÄNGEN (ohne Header)
var appendCsv = new StringBuilder();
@ -371,7 +379,7 @@ namespace Deckungsbeitrag.UserControls
totalHeight += dgv.ColumnHeadersHeight;
dgv.ClientSize = new Size(totalWidth, totalHeight);
this.groupBoxInventur.ClientSize = new Size(dgv.ClientSize.Width, dgv.Height + pictureBoxPlus.Bottom + 10);
this.groupBoxInventur.ClientSize = new Size(dgv.Width + 10, dgv.Height + dgv.Top + 10);
this.ClientSize = new Size(this.groupBoxInventur.ClientSize.Width + 10, this.groupBoxInventur.Height + panelButtons.Height + 10);
}
@ -434,8 +442,8 @@ namespace Deckungsbeitrag.UserControls
{
int label_y = this.pictureBoxPlus.Location.Y + ((this.pictureBoxPlus.Height - this.label1.Height) / 2);
int x = 0;
this.pictureBoxClose.Location = new Point(this.Width - pictureBoxClose.Width + this.Margin.All, 0);
this.pictureBoxPlus.Location = new Point(this.groupBoxInventur.Width - pictureBoxPlus.Width - this.groupBoxInventur.Margin.Right - this.Margin.Right, this.pictureBoxPlus.Location.Y);
this.pictureBoxClose.Location = new Point(this.groupBoxInventur.Right - pictureBoxClose.Width - 2, 0);
this.pictureBoxPlus.Location = new Point(this.dGArtikel.Right - pictureBoxPlus.Width, this.pictureBoxPlus.Location.Y);
this.label1.Location = new Point(this.pictureBoxPlus.Left - this.label1.Width - 10, this.pictureBoxPlus.Location.Y + ((this.pictureBoxPlus.Height - this.label1.Height) / 2));
this.labelInvDat.Location = new Point(x = this.dGArtikel.Left, label_y);
this.dTPInvDatum.Location = new Point(x = x + labelInvDat.Width, this.pictureBoxPlus.Location.Y);
@ -556,6 +564,6 @@ namespace Deckungsbeitrag.UserControls
}
}
}
//TODO: CLick auf Inventur freigeben Dateiname von "Warten" auf "Herrichten" ändern.
//DONE: CLick auf Inventur freigeben Dateiname von "Warten" auf "Herrichten" ändern.
//DONE: Inventur freigeben nur für Admin oder Verwaltung.
//DONE: Inventur für Expedit zugänglich machen.

View File

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

View File

@ -1,11 +1,11 @@
=====================================
NEUIGKEITEN - Version 1.0.8.5
NEUIGKEITEN - Version 1.0.9.1
=====================================
Build-Info:
- Build-Typ: Release Build
- Erledigte TODOs: 18
- Offene TODOs: 39
- Erledigte TODOs: 19
- Offene TODOs: 38
- Install-Reminders: 4
- Changes: 15
@ -34,10 +34,11 @@ Build-Info:
- ✨ Winter und Sommer wird getrennt geändert und gespeichert. [UCTabPageLKW.cs]
=== ✅ ERLEDIGTE TODOs (18) ===
=== ✅ ERLEDIGTE TODOs (19) ===
- ✅ : 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]
- ✅ : CLick auf Inventur freigeben Dateiname von "Warten" auf "Herrichten" ändern. [UCInventur.cs]
- ✅ : ComboBox Fahrer und Priorität implementieren [FormAuftragDetail.cs]
- ✅ : Container schmutzig bearbeitbar machen [FormAuftragDetail.cs]
- ✅ : Feedback Button hinzufügen [FormAuftragDetail.cs]
@ -55,7 +56,7 @@ Build-Info:
- ✅ : Wenn RegAuftrag wird als augeliefert markiert, wird dieser automatisch neu erstellt laut hinterlegtem Rhythmus. [FormMain.cs]
=== 🔄 OFFENE TODOs (39) ===
=== 🔄 OFFENE TODOs (38) ===
- 🔄 !!ÜBERLEGE!! DB-Query für Kundenanzahl und Containeranzahl Abgleich. (Aufträge haben TourID hinterlegt. So sollte alles vergleichbar sein.) [Tour.cs]
- 🔄 !!ÜBERLEGE!! Tour Start und Ende automatisch erfassen. [Tour.cs]
- 🔄 Alle Icons in einer Spalte anzeigen? I für Anmerkung und ! für Aufgabe?? [FormMain.cs]
@ -65,7 +66,6 @@ Build-Info:
- 🔄 Aufträge zusammenführen wenn gleicher Kunde und Liefertag. [FormNeuerAuftrag.cs]
- 🔄 Ausprobieren ob die Ausrichtung jetzt richtig ist. Sowohl beim ersten wie auch zweiten Mal. [Funktionen.cs]
- 🔄 Bestand von allen Artikeln speichern und für Druck vorbereiten. [FormAuftragDetail.cs]
- 🔄 CLick auf Inventur freigeben Dateiname von "Warten" auf "Herrichten" ändern. [UCInventur.cs]
- 🔄 Dateinamen aus Tikos anschauen. Eventuell Datum von letztem Import über Dateiname wählen? [FormMain.cs]
- 🔄 Deaktivieren wenn SPS funktioniert. Transport wird simuliert. [FormWSVerfolgung.cs]
- 🔄 Design des Controls anpassen. Eventuell im Designer erstellen. [UCKunde.cs]
@ -96,5 +96,5 @@ Build-Info:
- 🔄 Wenn Frottee-Expedit auch Relamation bearbeitet, muss BenutzerRolle abgefragt werden. siehe CHANGES. [FormFehlmengeCount.cs]
- 🔄 Zuweisung zu Fahrer muss geklärt werden. [Funktionen.cs]
Installation: 08.04.2026 09:50
Installation: 10.04.2026 13:40
=====================================