diff --git a/.vs/Mip_v1/v16/.suo b/.vs/Mip_v1/v16/.suo
index 2930527..4814d3f 100644
Binary files a/.vs/Mip_v1/v16/.suo and b/.vs/Mip_v1/v16/.suo differ
diff --git a/Mip/Mip.csproj b/Mip/Mip.csproj
index 4c20151..76de3f0 100644
--- a/Mip/Mip.csproj
+++ b/Mip/Mip.csproj
@@ -327,6 +327,7 @@
frmZiadankaDoplnujuceInfo.cs
+
diff --git a/Mip/Models/ZiadankyInfo.cs b/Mip/Models/ZiadankyInfo.cs
new file mode 100644
index 0000000..feee5b4
--- /dev/null
+++ b/Mip/Models/ZiadankyInfo.cs
@@ -0,0 +1,14 @@
+namespace Mip.Models
+{
+ public class ZiadankyInfo
+ {
+ public string Meno { get; set; }
+ public string Nazov { get; internal set; }
+ public string Typ { get; internal set; }
+ public decimal Mnozstvo { get; internal set; }
+ public int PocetKs { get; internal set; }
+ public int IDZiadanka { get; internal set; }
+ public decimal Cena { get; internal set; }
+ public string Jednotka { get; internal set; }
+ }
+}
diff --git a/Mip/frmMain.Designer.cs b/Mip/frmMain.Designer.cs
index 6ab1267..9b101dd 100644
--- a/Mip/frmMain.Designer.cs
+++ b/Mip/frmMain.Designer.cs
@@ -904,6 +904,7 @@
this.pictureBox4 = new System.Windows.Forms.PictureBox();
this.label175 = new System.Windows.Forms.Label();
this.label182 = new System.Windows.Forms.Label();
+ this.label228 = new System.Windows.Forms.Label();
this.tabControl1.SuspendLayout();
this.tabPage1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).BeginInit();
@@ -9516,22 +9517,25 @@
// panel62
//
this.panel62.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel62.Controls.Add(this.label228);
this.panel62.Controls.Add(this.button167);
this.panel62.Controls.Add(this.button166);
this.panel62.Controls.Add(this.button165);
this.panel62.Controls.Add(this.button164);
this.panel62.Controls.Add(this.label113);
this.panel62.Controls.Add(this.button163);
- this.panel62.Location = new System.Drawing.Point(538, 115);
+ this.panel62.Location = new System.Drawing.Point(524, 113);
this.panel62.Name = "panel62";
- this.panel62.Size = new System.Drawing.Size(157, 145);
+ this.panel62.Size = new System.Drawing.Size(157, 170);
this.panel62.TabIndex = 10;
this.panel62.Visible = false;
this.panel62.Leave += new System.EventHandler(this.panel62_Leave);
//
// button167
//
- this.button167.Location = new System.Drawing.Point(1, 119);
+ this.button167.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.button167.Location = new System.Drawing.Point(1, 144);
this.button167.Name = "button167";
this.button167.Size = new System.Drawing.Size(153, 23);
this.button167.TabIndex = 5;
@@ -9541,6 +9545,8 @@
//
// button166
//
+ this.button166.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
this.button166.Location = new System.Drawing.Point(1, 93);
this.button166.Name = "button166";
this.button166.Size = new System.Drawing.Size(153, 23);
@@ -9548,10 +9554,13 @@
this.button166.Tag = "zObjENG";
this.button166.Text = "Objednávka ENG";
this.button166.UseVisualStyleBackColor = true;
+ this.button166.Visible = false;
this.button166.Click += new System.EventHandler(this.button166_Click);
//
// button165
//
+ this.button165.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
this.button165.Location = new System.Drawing.Point(1, 70);
this.button165.Name = "button165";
this.button165.Size = new System.Drawing.Size(153, 23);
@@ -9559,10 +9568,13 @@
this.button165.Tag = "zObjSK";
this.button165.Text = "Objednávka SK";
this.button165.UseVisualStyleBackColor = true;
+ this.button165.Visible = false;
this.button165.Click += new System.EventHandler(this.button165_Click);
//
// button164
//
+ this.button164.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
this.button164.Location = new System.Drawing.Point(1, 47);
this.button164.Name = "button164";
this.button164.Size = new System.Drawing.Size(153, 23);
@@ -9574,6 +9586,8 @@
//
// label113
//
+ this.label113.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
this.label113.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.label113.Location = new System.Drawing.Point(1, 1);
this.label113.Name = "label113";
@@ -9584,6 +9598,8 @@
//
// button163
//
+ this.button163.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
this.button163.Location = new System.Drawing.Point(1, 24);
this.button163.Name = "button163";
this.button163.Size = new System.Drawing.Size(153, 23);
@@ -9969,7 +9985,7 @@
this.button130.Name = "button130";
this.button130.Size = new System.Drawing.Size(139, 30);
this.button130.TabIndex = 2;
- this.button130.Text = "Exportovať PDF";
+ this.button130.Text = "Export XLSX";
this.button130.UseVisualStyleBackColor = false;
this.button130.Click += new System.EventHandler(this.button130_Click);
//
@@ -12160,6 +12176,18 @@
this.label182.Text = "↗";
this.label182.Click += new System.EventHandler(this.label182_Click);
//
+ // label228
+ //
+ this.label228.AutoSize = true;
+ this.label228.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
+ this.label228.ForeColor = System.Drawing.Color.Red;
+ this.label228.Location = new System.Drawing.Point(5, 123);
+ this.label228.Name = "label228";
+ this.label228.Size = new System.Drawing.Size(145, 15);
+ this.label228.TabIndex = 6;
+ this.label228.Text = "Vybraných viac firiem!";
+ this.label228.Visible = false;
+ //
// frmMain
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
@@ -12401,6 +12429,7 @@
this.panel59.PerformLayout();
this.panel66.ResumeLayout(false);
this.panel62.ResumeLayout(false);
+ this.panel62.PerformLayout();
this.panel61.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.numericUpDown30)).EndInit();
this.panel60.ResumeLayout(false);
@@ -13319,6 +13348,7 @@
private System.Windows.Forms.TextBox textBox52;
private System.Windows.Forms.Button button202;
private System.Windows.Forms.Button button203;
+ private System.Windows.Forms.Label label228;
}
}
diff --git a/Mip/frmMain.cs b/Mip/frmMain.cs
index c82e9c5..4f754b4 100644
--- a/Mip/frmMain.cs
+++ b/Mip/frmMain.cs
@@ -1,6 +1,7 @@
using GMap.NET;
using GMap.NET.MapProviders;
using GMap.NET.WindowsForms;
+using Mip.Models;
using MonthCalendar;
using System;
using System.Collections.Generic;
@@ -8111,7 +8112,6 @@ namespace Mip
dataGridView7.Columns["Názov výrobku"].Width = 130;
dataGridView7.Columns["Zákazník"].Width = 120;
dataGridView7.Columns["Iný názov"].Width = 70;
-
dataGridView7.Columns["Status"].AutoSizeMode = DataGridViewAutoSizeColumnMode.AllCellsExceptHeader;
dataGridView7.Columns["Dátum prijatia"].Width = 120;
dataGridView7.Columns["Materiál č.1"].Width = 70;
@@ -8151,9 +8151,35 @@ namespace Mip
private void button130_Click(object sender, EventArgs e)
{
- label113.Text = "Exportovať PDF";
- if (panel62.Visible == false) panel62.Visible = true;
- else panel62.Visible = false;
+ var goodSelection = dataGridView16.SelectedRows.Cast().Select(x => x.Cells["IDFirma"].Value.ToString()).ToList().Distinct().Count() == 1;
+
+ label113.Text = "Exportovať XLSX";
+ if (panel62.Visible == false)
+ {
+ panel62.Visible = true;
+ panel62.Location = new Point(524, 62);
+ if (goodSelection)
+ {
+ button163.Visible = true;// slovensky dopyt
+ button164.Visible = false;// anglicky dopyt
+ button165.Visible = false;// slovenska objednavka
+ button166.Visible = false;// anglicka objednavka
+ label228.Visible = false;
+ }
+ else
+ {
+ button163.Visible = false;// slovensky dopyt
+ button164.Visible = false;// anglicky dopyt
+ button165.Visible = false;// slovenska objednavka
+ button166.Visible = false;// anglicka objednavka
+ label228.Visible = true;
+ }
+ }
+ else
+ {
+ panel62.Visible = false;
+ panel62.Location = new Point(524, 113);
+ }
}
private void button100_Click(object sender, EventArgs e)
@@ -8186,8 +8212,16 @@ namespace Mip
private void button155_Click(object sender, EventArgs e)
{
label113.Text = "Tlačiť";
- if (panel62.Visible == false) panel62.Visible = true;
- else panel62.Visible = false;
+ if (panel62.Visible == false)
+ {
+ panel62.Visible = true;
+ panel62.Location = new Point(524, 62);
+ }
+ else
+ {
+ panel62.Visible = false;
+ panel62.Location = new Point(524, 113);
+ }
}
private void textBox35_TextChanged(object sender, EventArgs e)
@@ -8242,15 +8276,68 @@ namespace Mip
void TlacitFormular(object _sender)
{
- panel62.Visible = false;
- Button btn = _sender as Button;
+ if (dataGridView16.SelectedRows.Count > 0)
+ {
+ if (dataGridView16.SelectedRows.Count < 11)
+ {
- DataGridViewSelectedRowCollection dgvr;
- dgvr = dataGridView16.SelectedRows;
+ panel62.Visible = false;
+ Button btn = _sender as Button;
+ var selecteRows = dataGridView16.SelectedRows.Cast().ToList();
- Form frmDopInf = new frmZiadankaDoplnujuceInfo(dgvr, btn.Tag.ToString(), label113.Text);
- //frmDopInf.Tag = label113.Text;
- frmDopInf.ShowDialog();
+ var ziadankySelected = selecteRows.Select(x =>
+ new ZiadankyInfo()
+ {
+ Nazov = x.Cells["Názov"].Value.ToString(),
+ Typ = x.Cells["Typ"].Value.ToString(),
+ Mnozstvo = Convert.ToDecimal(x.Cells["Množstvo"].Value),
+ PocetKs = Convert.ToInt32(x.Cells["Počet kusov"].Value),
+ IDZiadanka = Convert.ToInt32(x.Cells["IDZiadanka"].Value),
+ Cena = Convert.ToDecimal(x.Cells["Cena"].Value),
+ Jednotka = x.Cells["Jednotka"].Value.ToString()
+ }
+ ).ToList();
+
+ var selectedIdList = selecteRows.Select(x => x.Cells["IDZiadanka"].Value.ToString()).ToList();
+ var selectedFirmaIdList = selecteRows.Select(x => x.Cells["IDFirma"].Value.ToString()).Distinct().ToList();
+ var doplnujuceinfoId = 0;
+
+ //if (selectedFirmaIdList.Count == 1)
+ //{
+ var hasAllEmpty = selecteRows.All(x => x.Cells["Číslo dokumentu"].Value.ToString() == string.Empty);
+ var areAllSame = !selecteRows.Any(x => x.Cells["Číslo dokumentu"].Value.ToString() != selecteRows[0].Cells["Číslo dokumentu"].Value.ToString());
+
+ if (hasAllEmpty)
+ {
+ Form frmDopInf = new frmZiadankaDoplnujuceInfo(ziadankySelected, btn.Tag.ToString(), label113.Text, doplnujuceinfoId);
+ frmDopInf.ShowDialog();
+ }
+ else
+ {
+ if (areAllSame)
+ {
+ DataTable doplnujuceInfoTabulka = new DataTable();
+ string cmd = $"SELECT `IdDoplnujuceInfo` FROM `mip`.`tabziadankadokument` WHERE `IdZiadanka` = {selecteRows[0].Cells["IDZiadanka"].Value.ToString()};";
+ classSQL.SQL(cmd, out doplnujuceInfoTabulka);
+ doplnujuceinfoId = Convert.ToInt32(doplnujuceInfoTabulka.Rows[0].ItemArray[0]);
+
+ Form frmDopInf = new frmZiadankaDoplnujuceInfo(ziadankySelected, btn.Tag.ToString(), label113.Text, doplnujuceinfoId);
+ frmDopInf.ShowDialog();
+ }
+ else
+ {
+ MessageBox.Show($"Dokument nie je možné vytvoriť, lebo niektoré žiadanky už záznam o dokumente majú v databáze!");
+ }
+
+ }
+
+ refreshZiadanky();
+ }
+ else
+ {
+ MessageBox.Show($"Dokument je možné vytvoriť pre 10 alebo menej záznamov!");
+ }
+ }
}
private void button169_Click(object sender, EventArgs e)
@@ -8358,6 +8445,8 @@ namespace Mip
dataGridView16.Columns["Cena"].DisplayIndex = 9;
dataGridView16.Columns["Číslo objednávky"].DisplayIndex = 10;
dataGridView16.Columns["IDUser"].Visible = false;
+ dataGridView16.Columns["Číslo dokumentu"].MinimumWidth = 95;
+ dataGridView16.Columns["Číslo dokumentu"].AutoSizeMode = DataGridViewAutoSizeColumnMode.DisplayedCellsExceptHeader;
dataGridView16.Columns["Meno"].MinimumWidth = 85;
dataGridView16.Columns["Meno"].DisplayIndex = 1;
dataGridView16.Columns["Meno"].AutoSizeMode = DataGridViewAutoSizeColumnMode.DisplayedCellsExceptHeader;
@@ -10376,6 +10465,16 @@ namespace Mip
var grigIds = dataGridView16.SelectedRows.Cast().Select(y => y.Index.ToString()).ToList();
SelectedIds = String.Join(", ", ids);
SelectedZiadankaGridIds = String.Join(", ", grigIds);
+ if (ids?.Count > 0)
+ {
+ button130.Enabled = true;
+ button155.Enabled = true;
+ }
+ else
+ {
+ button130.Enabled = false;
+ button155.Enabled = false;
+ }
}
}
diff --git a/Mip/frmZiadankaDoplnujuceInfo.Designer.cs b/Mip/frmZiadankaDoplnujuceInfo.Designer.cs
index e7fa2da..f974ae1 100644
--- a/Mip/frmZiadankaDoplnujuceInfo.Designer.cs
+++ b/Mip/frmZiadankaDoplnujuceInfo.Designer.cs
@@ -80,15 +80,46 @@
this.label37 = new System.Windows.Forms.Label();
this.label38 = new System.Windows.Forms.Label();
this.textBox9 = new System.Windows.Forms.TextBox();
+ this.label40 = new System.Windows.Forms.Label();
+ this.textBox10 = new System.Windows.Forms.TextBox();
+ this.label41 = new System.Windows.Forms.Label();
+ this.label42 = new System.Windows.Forms.Label();
+ this.textBox11 = new System.Windows.Forms.TextBox();
+ this.label43 = new System.Windows.Forms.Label();
+ this.label44 = new System.Windows.Forms.Label();
+ this.textBox12 = new System.Windows.Forms.TextBox();
+ this.label45 = new System.Windows.Forms.Label();
+ this.label46 = new System.Windows.Forms.Label();
+ this.textBox13 = new System.Windows.Forms.TextBox();
+ this.label47 = new System.Windows.Forms.Label();
+ this.label48 = new System.Windows.Forms.Label();
+ this.textBox14 = new System.Windows.Forms.TextBox();
+ this.label49 = new System.Windows.Forms.Label();
+ this.label50 = new System.Windows.Forms.Label();
+ this.textBox15 = new System.Windows.Forms.TextBox();
+ this.label53 = new System.Windows.Forms.Label();
+ this.label54 = new System.Windows.Forms.Label();
+ this.textBox17 = new System.Windows.Forms.TextBox();
+ this.label55 = new System.Windows.Forms.Label();
+ this.label56 = new System.Windows.Forms.Label();
+ this.textBox18 = new System.Windows.Forms.TextBox();
+ this.label57 = new System.Windows.Forms.Label();
+ this.label58 = new System.Windows.Forms.Label();
+ this.textBox19 = new System.Windows.Forms.TextBox();
+ this.label59 = new System.Windows.Forms.Label();
+ this.label60 = new System.Windows.Forms.Label();
+ this.textBox20 = new System.Windows.Forms.TextBox();
this.SuspendLayout();
//
// label1
//
+ this.label1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
this.label1.BackColor = System.Drawing.Color.PaleGreen;
this.label1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
- this.label1.Location = new System.Drawing.Point(2, 2);
+ this.label1.Location = new System.Drawing.Point(2, 212);
this.label1.Name = "label1";
- this.label1.Size = new System.Drawing.Size(136, 20);
+ this.label1.Size = new System.Drawing.Size(190, 20);
this.label1.TabIndex = 0;
this.label1.Text = "Dátum vyhotovenia";
this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
@@ -96,10 +127,12 @@
//
// label2
//
+ this.label2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
this.label2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
- this.label2.Location = new System.Drawing.Point(2, 23);
+ this.label2.Location = new System.Drawing.Point(2, 233);
this.label2.Name = "label2";
- this.label2.Size = new System.Drawing.Size(136, 20);
+ this.label2.Size = new System.Drawing.Size(190, 20);
this.label2.TabIndex = 1;
this.label2.Text = "Dátum prepokl. dodania";
this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
@@ -107,10 +140,12 @@
//
// label3
//
+ this.label3.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
this.label3.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
- this.label3.Location = new System.Drawing.Point(2, 44);
+ this.label3.Location = new System.Drawing.Point(2, 254);
this.label3.Name = "label3";
- this.label3.Size = new System.Drawing.Size(136, 20);
+ this.label3.Size = new System.Drawing.Size(190, 20);
this.label3.TabIndex = 2;
this.label3.Text = "Dátum dodania";
this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
@@ -118,10 +153,12 @@
//
// label4
//
+ this.label4.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
this.label4.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
- this.label4.Location = new System.Drawing.Point(2, 65);
+ this.label4.Location = new System.Drawing.Point(2, 275);
this.label4.Name = "label4";
- this.label4.Size = new System.Drawing.Size(136, 20);
+ this.label4.Size = new System.Drawing.Size(190, 20);
this.label4.TabIndex = 3;
this.label4.Text = "Forma úhrady";
this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
@@ -130,10 +167,12 @@
//
// label5
//
+ this.label5.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
this.label5.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
- this.label5.Location = new System.Drawing.Point(2, 86);
+ this.label5.Location = new System.Drawing.Point(2, 296);
this.label5.Name = "label5";
- this.label5.Size = new System.Drawing.Size(136, 20);
+ this.label5.Size = new System.Drawing.Size(190, 20);
this.label5.TabIndex = 4;
this.label5.Text = "Spôsob dopravy";
this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
@@ -142,15 +181,17 @@
//
// dateTimePicker1
//
- this.dateTimePicker1.Location = new System.Drawing.Point(139, 2);
+ this.dateTimePicker1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+ this.dateTimePicker1.Location = new System.Drawing.Point(193, 212);
this.dateTimePicker1.Name = "dateTimePicker1";
this.dateTimePicker1.Size = new System.Drawing.Size(207, 20);
this.dateTimePicker1.TabIndex = 5;
//
// dateTimePicker2
//
+ this.dateTimePicker2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.dateTimePicker2.Enabled = false;
- this.dateTimePicker2.Location = new System.Drawing.Point(139, 23);
+ this.dateTimePicker2.Location = new System.Drawing.Point(193, 233);
this.dateTimePicker2.Name = "dateTimePicker2";
this.dateTimePicker2.Size = new System.Drawing.Size(207, 20);
this.dateTimePicker2.TabIndex = 6;
@@ -158,18 +199,18 @@
// button1
//
this.button1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
- this.button1.Location = new System.Drawing.Point(1, 359);
+ this.button1.Location = new System.Drawing.Point(1, 579);
this.button1.Name = "button1";
- this.button1.Size = new System.Drawing.Size(95, 23);
+ this.button1.Size = new System.Drawing.Size(137, 23);
this.button1.TabIndex = 7;
- this.button1.Text = "Použiť a uložiť";
+ this.button1.Text = "Použiť a vytlačiť";
this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// button2
//
this.button2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
- this.button2.Location = new System.Drawing.Point(293, 359);
+ this.button2.Location = new System.Drawing.Point(347, 579);
this.button2.Name = "button2";
this.button2.Size = new System.Drawing.Size(75, 23);
this.button2.TabIndex = 8;
@@ -179,31 +220,37 @@
//
// textBox1
//
+ this.textBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.textBox1.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.Suggest;
this.textBox1.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.CustomSource;
this.textBox1.Enabled = false;
- this.textBox1.Location = new System.Drawing.Point(139, 128);
+ this.textBox1.Location = new System.Drawing.Point(193, 338);
this.textBox1.Name = "textBox1";
this.textBox1.Size = new System.Drawing.Size(207, 20);
this.textBox1.TabIndex = 9;
//
// textBox2
//
+ this.textBox2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
this.textBox2.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.Suggest;
this.textBox2.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.CustomSource;
this.textBox2.Enabled = false;
- this.textBox2.Location = new System.Drawing.Point(2, 191);
+ this.textBox2.Location = new System.Drawing.Point(2, 401);
this.textBox2.MaxLength = 50;
this.textBox2.Name = "textBox2";
- this.textBox2.Size = new System.Drawing.Size(344, 20);
+ this.textBox2.Size = new System.Drawing.Size(398, 20);
this.textBox2.TabIndex = 10;
+ this.textBox2.TextChanged += new System.EventHandler(this.textBox2_TextChanged);
//
// label6
//
+ this.label6.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
this.label6.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
- this.label6.Location = new System.Drawing.Point(2, 128);
+ this.label6.Location = new System.Drawing.Point(2, 338);
this.label6.Name = "label6";
- this.label6.Size = new System.Drawing.Size(136, 20);
+ this.label6.Size = new System.Drawing.Size(190, 20);
this.label6.TabIndex = 12;
this.label6.Text = "Dodacie a plat. podmienky";
this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
@@ -211,17 +258,19 @@
//
// dateTimePicker3
//
+ this.dateTimePicker3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.dateTimePicker3.Enabled = false;
- this.dateTimePicker3.Location = new System.Drawing.Point(139, 44);
+ this.dateTimePicker3.Location = new System.Drawing.Point(193, 254);
this.dateTimePicker3.Name = "dateTimePicker3";
this.dateTimePicker3.Size = new System.Drawing.Size(207, 20);
this.dateTimePicker3.TabIndex = 13;
//
// label7
//
+ this.label7.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.label7.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.label7.Enabled = false;
- this.label7.Location = new System.Drawing.Point(139, 65);
+ this.label7.Location = new System.Drawing.Point(193, 275);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(92, 20);
this.label7.TabIndex = 14;
@@ -231,9 +280,10 @@
//
// label8
//
+ this.label8.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.label8.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.label8.Enabled = false;
- this.label8.Location = new System.Drawing.Point(232, 65);
+ this.label8.Location = new System.Drawing.Point(286, 275);
this.label8.Name = "label8";
this.label8.Size = new System.Drawing.Size(54, 20);
this.label8.TabIndex = 15;
@@ -243,9 +293,10 @@
//
// label9
//
+ this.label9.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.label9.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.label9.Enabled = false;
- this.label9.Location = new System.Drawing.Point(287, 65);
+ this.label9.Location = new System.Drawing.Point(341, 275);
this.label9.Name = "label9";
this.label9.Size = new System.Drawing.Size(59, 20);
this.label9.TabIndex = 16;
@@ -255,9 +306,10 @@
//
// label10
//
+ this.label10.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.label10.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.label10.Enabled = false;
- this.label10.Location = new System.Drawing.Point(139, 86);
+ this.label10.Location = new System.Drawing.Point(193, 296);
this.label10.Name = "label10";
this.label10.Size = new System.Drawing.Size(52, 20);
this.label10.TabIndex = 17;
@@ -267,9 +319,10 @@
//
// label11
//
+ this.label11.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.label11.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.label11.Enabled = false;
- this.label11.Location = new System.Drawing.Point(192, 86);
+ this.label11.Location = new System.Drawing.Point(246, 296);
this.label11.Name = "label11";
this.label11.Size = new System.Drawing.Size(32, 20);
this.label11.TabIndex = 18;
@@ -279,9 +332,10 @@
//
// label12
//
+ this.label12.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.label12.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.label12.Enabled = false;
- this.label12.Location = new System.Drawing.Point(225, 86);
+ this.label12.Location = new System.Drawing.Point(279, 296);
this.label12.Name = "label12";
this.label12.Size = new System.Drawing.Size(75, 20);
this.label12.TabIndex = 19;
@@ -291,9 +345,10 @@
//
// label13
//
+ this.label13.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.label13.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.label13.Enabled = false;
- this.label13.Location = new System.Drawing.Point(301, 86);
+ this.label13.Location = new System.Drawing.Point(355, 296);
this.label13.Name = "label13";
this.label13.Size = new System.Drawing.Size(45, 20);
this.label13.TabIndex = 20;
@@ -303,9 +358,10 @@
//
// label14
//
+ this.label14.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.label14.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.label14.Enabled = false;
- this.label14.Location = new System.Drawing.Point(203, 107);
+ this.label14.Location = new System.Drawing.Point(257, 317);
this.label14.Name = "label14";
this.label14.Size = new System.Drawing.Size(31, 20);
this.label14.TabIndex = 21;
@@ -315,9 +371,10 @@
//
// label15
//
+ this.label15.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.label15.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.label15.Enabled = false;
- this.label15.Location = new System.Drawing.Point(235, 107);
+ this.label15.Location = new System.Drawing.Point(289, 317);
this.label15.Name = "label15";
this.label15.Size = new System.Drawing.Size(111, 20);
this.label15.TabIndex = 22;
@@ -327,9 +384,10 @@
//
// label16
//
+ this.label16.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.label16.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.label16.Enabled = false;
- this.label16.Location = new System.Drawing.Point(171, 107);
+ this.label16.Location = new System.Drawing.Point(225, 317);
this.label16.Name = "label16";
this.label16.Size = new System.Drawing.Size(31, 20);
this.label16.TabIndex = 23;
@@ -339,9 +397,10 @@
//
// label17
//
+ this.label17.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.label17.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.label17.Enabled = false;
- this.label17.Location = new System.Drawing.Point(139, 107);
+ this.label17.Location = new System.Drawing.Point(193, 317);
this.label17.Name = "label17";
this.label17.Size = new System.Drawing.Size(31, 20);
this.label17.TabIndex = 24;
@@ -351,11 +410,13 @@
//
// label18
//
+ this.label18.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
this.label18.BackColor = System.Drawing.Color.PaleGreen;
this.label18.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
- this.label18.Location = new System.Drawing.Point(2, 149);
+ this.label18.Location = new System.Drawing.Point(2, 359);
this.label18.Name = "label18";
- this.label18.Size = new System.Drawing.Size(136, 20);
+ this.label18.Size = new System.Drawing.Size(190, 20);
this.label18.TabIndex = 25;
this.label18.Tag = "€ (EURO)";
this.label18.Text = "Mena";
@@ -365,9 +426,10 @@
//
// label19
//
+ this.label19.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.label19.BackColor = System.Drawing.Color.PaleGreen;
this.label19.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
- this.label19.Location = new System.Drawing.Point(139, 149);
+ this.label19.Location = new System.Drawing.Point(193, 359);
this.label19.Name = "label19";
this.label19.Size = new System.Drawing.Size(68, 20);
this.label19.TabIndex = 26;
@@ -377,8 +439,9 @@
//
// label20
//
+ this.label20.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.label20.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
- this.label20.Location = new System.Drawing.Point(208, 149);
+ this.label20.Location = new System.Drawing.Point(262, 359);
this.label20.Name = "label20";
this.label20.Size = new System.Drawing.Size(68, 20);
this.label20.TabIndex = 27;
@@ -388,8 +451,9 @@
//
// label21
//
+ this.label21.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.label21.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
- this.label21.Location = new System.Drawing.Point(277, 149);
+ this.label21.Location = new System.Drawing.Point(331, 359);
this.label21.Name = "label21";
this.label21.Size = new System.Drawing.Size(69, 20);
this.label21.TabIndex = 28;
@@ -399,10 +463,12 @@
//
// label22
//
+ this.label22.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
this.label22.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
- this.label22.Location = new System.Drawing.Point(2, 170);
+ this.label22.Location = new System.Drawing.Point(2, 380);
this.label22.Name = "label22";
- this.label22.Size = new System.Drawing.Size(136, 20);
+ this.label22.Size = new System.Drawing.Size(190, 20);
this.label22.TabIndex = 29;
this.label22.Text = "Poznámky";
this.label22.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
@@ -410,9 +476,10 @@
//
// label23
//
+ this.label23.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.label23.BackColor = System.Drawing.Color.Coral;
this.label23.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
- this.label23.Location = new System.Drawing.Point(347, 2);
+ this.label23.Location = new System.Drawing.Point(401, 212);
this.label23.Name = "label23";
this.label23.Size = new System.Drawing.Size(20, 20);
this.label23.TabIndex = 30;
@@ -422,9 +489,10 @@
//
// label24
//
- this.label24.BackColor = System.Drawing.Color.Coral;
+ this.label24.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+ this.label24.BackColor = System.Drawing.Color.LightGray;
this.label24.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
- this.label24.Location = new System.Drawing.Point(347, 23);
+ this.label24.Location = new System.Drawing.Point(401, 233);
this.label24.Name = "label24";
this.label24.Size = new System.Drawing.Size(20, 20);
this.label24.TabIndex = 31;
@@ -434,9 +502,10 @@
//
// label25
//
- this.label25.BackColor = System.Drawing.Color.Coral;
+ this.label25.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+ this.label25.BackColor = System.Drawing.Color.LightGray;
this.label25.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
- this.label25.Location = new System.Drawing.Point(347, 44);
+ this.label25.Location = new System.Drawing.Point(401, 254);
this.label25.Name = "label25";
this.label25.Size = new System.Drawing.Size(20, 20);
this.label25.TabIndex = 32;
@@ -446,9 +515,10 @@
//
// label26
//
- this.label26.BackColor = System.Drawing.Color.Coral;
+ this.label26.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+ this.label26.BackColor = System.Drawing.Color.LightGray;
this.label26.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
- this.label26.Location = new System.Drawing.Point(347, 65);
+ this.label26.Location = new System.Drawing.Point(401, 275);
this.label26.Name = "label26";
this.label26.Size = new System.Drawing.Size(20, 20);
this.label26.TabIndex = 33;
@@ -458,9 +528,10 @@
//
// label27
//
- this.label27.BackColor = System.Drawing.Color.Coral;
+ this.label27.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+ this.label27.BackColor = System.Drawing.Color.LightGray;
this.label27.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
- this.label27.Location = new System.Drawing.Point(347, 86);
+ this.label27.Location = new System.Drawing.Point(401, 296);
this.label27.Name = "label27";
this.label27.Size = new System.Drawing.Size(20, 20);
this.label27.TabIndex = 34;
@@ -470,9 +541,10 @@
//
// label28
//
- this.label28.BackColor = System.Drawing.Color.Coral;
+ this.label28.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+ this.label28.BackColor = System.Drawing.Color.LightGray;
this.label28.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
- this.label28.Location = new System.Drawing.Point(347, 128);
+ this.label28.Location = new System.Drawing.Point(401, 338);
this.label28.Name = "label28";
this.label28.Size = new System.Drawing.Size(20, 20);
this.label28.TabIndex = 35;
@@ -482,9 +554,10 @@
//
// label29
//
+ this.label29.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.label29.BackColor = System.Drawing.Color.Coral;
this.label29.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
- this.label29.Location = new System.Drawing.Point(347, 149);
+ this.label29.Location = new System.Drawing.Point(401, 359);
this.label29.Name = "label29";
this.label29.Size = new System.Drawing.Size(20, 20);
this.label29.TabIndex = 36;
@@ -494,9 +567,10 @@
//
// label30
//
- this.label30.BackColor = System.Drawing.Color.Coral;
+ this.label30.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+ this.label30.BackColor = System.Drawing.Color.LightGray;
this.label30.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
- this.label30.Location = new System.Drawing.Point(347, 170);
+ this.label30.Location = new System.Drawing.Point(401, 380);
this.label30.Name = "label30";
this.label30.Size = new System.Drawing.Size(20, 20);
this.label30.TabIndex = 37;
@@ -506,75 +580,92 @@
//
// textBox3
//
+ this.textBox3.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
this.textBox3.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.Suggest;
this.textBox3.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.CustomSource;
this.textBox3.Enabled = false;
- this.textBox3.Location = new System.Drawing.Point(2, 212);
+ this.textBox3.Location = new System.Drawing.Point(2, 422);
this.textBox3.MaxLength = 50;
this.textBox3.Name = "textBox3";
- this.textBox3.Size = new System.Drawing.Size(344, 20);
+ this.textBox3.Size = new System.Drawing.Size(398, 20);
this.textBox3.TabIndex = 38;
+ this.textBox3.TextChanged += new System.EventHandler(this.textBox3_TextChanged);
//
// textBox4
//
+ this.textBox4.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
this.textBox4.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.Suggest;
this.textBox4.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.CustomSource;
this.textBox4.Enabled = false;
- this.textBox4.Location = new System.Drawing.Point(2, 233);
+ this.textBox4.Location = new System.Drawing.Point(2, 443);
this.textBox4.MaxLength = 50;
this.textBox4.Name = "textBox4";
- this.textBox4.Size = new System.Drawing.Size(344, 20);
+ this.textBox4.Size = new System.Drawing.Size(398, 20);
this.textBox4.TabIndex = 39;
+ this.textBox4.TextChanged += new System.EventHandler(this.textBox4_TextChanged);
//
// textBox5
//
+ this.textBox5.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
this.textBox5.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.Suggest;
this.textBox5.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.CustomSource;
this.textBox5.Enabled = false;
- this.textBox5.Location = new System.Drawing.Point(2, 254);
+ this.textBox5.Location = new System.Drawing.Point(2, 464);
this.textBox5.MaxLength = 50;
this.textBox5.Name = "textBox5";
- this.textBox5.Size = new System.Drawing.Size(344, 20);
+ this.textBox5.Size = new System.Drawing.Size(398, 20);
this.textBox5.TabIndex = 40;
+ this.textBox5.TextChanged += new System.EventHandler(this.textBox5_TextChanged);
//
// textBox6
//
+ this.textBox6.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
this.textBox6.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.Suggest;
this.textBox6.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.CustomSource;
this.textBox6.Enabled = false;
- this.textBox6.Location = new System.Drawing.Point(2, 275);
+ this.textBox6.Location = new System.Drawing.Point(2, 485);
this.textBox6.MaxLength = 50;
this.textBox6.Name = "textBox6";
- this.textBox6.Size = new System.Drawing.Size(344, 20);
+ this.textBox6.Size = new System.Drawing.Size(398, 20);
this.textBox6.TabIndex = 41;
+ this.textBox6.TextChanged += new System.EventHandler(this.textBox6_TextChanged);
//
// textBox7
//
+ this.textBox7.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
this.textBox7.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.Suggest;
this.textBox7.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.CustomSource;
this.textBox7.Enabled = false;
- this.textBox7.Location = new System.Drawing.Point(2, 296);
+ this.textBox7.Location = new System.Drawing.Point(2, 506);
this.textBox7.MaxLength = 50;
this.textBox7.Name = "textBox7";
- this.textBox7.Size = new System.Drawing.Size(344, 20);
+ this.textBox7.Size = new System.Drawing.Size(398, 20);
this.textBox7.TabIndex = 42;
//
// textBox8
//
+ this.textBox8.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
this.textBox8.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.Suggest;
this.textBox8.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.CustomSource;
this.textBox8.Enabled = false;
- this.textBox8.Location = new System.Drawing.Point(2, 317);
+ this.textBox8.Location = new System.Drawing.Point(2, 527);
this.textBox8.MaxLength = 50;
this.textBox8.Name = "textBox8";
- this.textBox8.Size = new System.Drawing.Size(344, 20);
+ this.textBox8.Size = new System.Drawing.Size(398, 20);
this.textBox8.TabIndex = 43;
//
// label31
//
- this.label31.BackColor = System.Drawing.Color.Coral;
+ this.label31.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+ this.label31.BackColor = System.Drawing.Color.LightGray;
this.label31.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
- this.label31.Location = new System.Drawing.Point(347, 191);
+ this.label31.Location = new System.Drawing.Point(401, 401);
this.label31.Name = "label31";
this.label31.Size = new System.Drawing.Size(20, 20);
this.label31.TabIndex = 44;
@@ -584,9 +675,10 @@
//
// label32
//
- this.label32.BackColor = System.Drawing.Color.Coral;
+ this.label32.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+ this.label32.BackColor = System.Drawing.Color.LightGray;
this.label32.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
- this.label32.Location = new System.Drawing.Point(347, 212);
+ this.label32.Location = new System.Drawing.Point(401, 422);
this.label32.Name = "label32";
this.label32.Size = new System.Drawing.Size(20, 20);
this.label32.TabIndex = 45;
@@ -596,9 +688,10 @@
//
// label33
//
- this.label33.BackColor = System.Drawing.Color.Coral;
+ this.label33.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+ this.label33.BackColor = System.Drawing.Color.LightGray;
this.label33.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
- this.label33.Location = new System.Drawing.Point(347, 233);
+ this.label33.Location = new System.Drawing.Point(401, 443);
this.label33.Name = "label33";
this.label33.Size = new System.Drawing.Size(20, 20);
this.label33.TabIndex = 46;
@@ -608,9 +701,10 @@
//
// label34
//
- this.label34.BackColor = System.Drawing.Color.Coral;
+ this.label34.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+ this.label34.BackColor = System.Drawing.Color.LightGray;
this.label34.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
- this.label34.Location = new System.Drawing.Point(347, 254);
+ this.label34.Location = new System.Drawing.Point(401, 464);
this.label34.Name = "label34";
this.label34.Size = new System.Drawing.Size(20, 20);
this.label34.TabIndex = 47;
@@ -620,9 +714,10 @@
//
// label35
//
- this.label35.BackColor = System.Drawing.Color.Coral;
+ this.label35.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+ this.label35.BackColor = System.Drawing.Color.LightGray;
this.label35.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
- this.label35.Location = new System.Drawing.Point(347, 275);
+ this.label35.Location = new System.Drawing.Point(401, 485);
this.label35.Name = "label35";
this.label35.Size = new System.Drawing.Size(20, 20);
this.label35.TabIndex = 48;
@@ -632,9 +727,10 @@
//
// label36
//
- this.label36.BackColor = System.Drawing.Color.Coral;
+ this.label36.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+ this.label36.BackColor = System.Drawing.Color.LightGray;
this.label36.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
- this.label36.Location = new System.Drawing.Point(347, 296);
+ this.label36.Location = new System.Drawing.Point(401, 506);
this.label36.Name = "label36";
this.label36.Size = new System.Drawing.Size(20, 20);
this.label36.TabIndex = 49;
@@ -644,9 +740,10 @@
//
// label37
//
- this.label37.BackColor = System.Drawing.Color.Coral;
+ this.label37.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+ this.label37.BackColor = System.Drawing.Color.LightGray;
this.label37.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
- this.label37.Location = new System.Drawing.Point(347, 317);
+ this.label37.Location = new System.Drawing.Point(401, 527);
this.label37.Name = "label37";
this.label37.Size = new System.Drawing.Size(20, 20);
this.label37.TabIndex = 50;
@@ -656,9 +753,10 @@
//
// label38
//
- this.label38.BackColor = System.Drawing.Color.Coral;
+ this.label38.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+ this.label38.BackColor = System.Drawing.Color.LightGray;
this.label38.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
- this.label38.Location = new System.Drawing.Point(347, 338);
+ this.label38.Location = new System.Drawing.Point(401, 548);
this.label38.Name = "label38";
this.label38.Size = new System.Drawing.Size(20, 20);
this.label38.TabIndex = 52;
@@ -668,20 +766,407 @@
//
// textBox9
//
+ this.textBox9.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
this.textBox9.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.Suggest;
this.textBox9.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.CustomSource;
this.textBox9.Enabled = false;
- this.textBox9.Location = new System.Drawing.Point(2, 338);
+ this.textBox9.Location = new System.Drawing.Point(2, 548);
this.textBox9.MaxLength = 50;
this.textBox9.Name = "textBox9";
- this.textBox9.Size = new System.Drawing.Size(344, 20);
+ this.textBox9.Size = new System.Drawing.Size(398, 20);
this.textBox9.TabIndex = 51;
//
+ // label40
+ //
+ this.label40.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.label40.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.label40.Location = new System.Drawing.Point(2, 2);
+ this.label40.Name = "label40";
+ this.label40.Size = new System.Drawing.Size(190, 20);
+ this.label40.TabIndex = 54;
+ this.label40.Text = "Číslo exportovaného dopytu";
+ this.label40.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+ //
+ // textBox10
+ //
+ this.textBox10.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+ this.textBox10.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.Suggest;
+ this.textBox10.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.CustomSource;
+ this.textBox10.Enabled = false;
+ this.textBox10.Location = new System.Drawing.Point(193, 2);
+ this.textBox10.Name = "textBox10";
+ this.textBox10.Size = new System.Drawing.Size(207, 20);
+ this.textBox10.TabIndex = 53;
+ //
+ // label41
+ //
+ this.label41.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+ this.label41.BackColor = System.Drawing.Color.LightGray;
+ this.label41.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.label41.Location = new System.Drawing.Point(401, 23);
+ this.label41.Name = "label41";
+ this.label41.Size = new System.Drawing.Size(20, 20);
+ this.label41.TabIndex = 58;
+ this.label41.Text = "X";
+ this.label41.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+ this.label41.Click += new System.EventHandler(this.label41_Click);
+ //
+ // label42
+ //
+ this.label42.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.label42.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.label42.Location = new System.Drawing.Point(2, 23);
+ this.label42.Name = "label42";
+ this.label42.Size = new System.Drawing.Size(190, 20);
+ this.label42.TabIndex = 57;
+ this.label42.Text = "Adresa riadok 1";
+ this.label42.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+ this.label42.Click += new System.EventHandler(this.label42_Click);
+ //
+ // textBox11
+ //
+ this.textBox11.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+ this.textBox11.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.Suggest;
+ this.textBox11.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.CustomSource;
+ this.textBox11.Enabled = false;
+ this.textBox11.Location = new System.Drawing.Point(193, 23);
+ this.textBox11.Name = "textBox11";
+ this.textBox11.Size = new System.Drawing.Size(207, 20);
+ this.textBox11.TabIndex = 56;
+ //
+ // label43
+ //
+ this.label43.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+ this.label43.BackColor = System.Drawing.Color.LightGray;
+ this.label43.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.label43.Location = new System.Drawing.Point(401, 44);
+ this.label43.Name = "label43";
+ this.label43.Size = new System.Drawing.Size(20, 20);
+ this.label43.TabIndex = 61;
+ this.label43.Text = "X";
+ this.label43.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+ this.label43.Click += new System.EventHandler(this.label43_Click);
+ //
+ // label44
+ //
+ this.label44.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.label44.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.label44.Location = new System.Drawing.Point(2, 44);
+ this.label44.Name = "label44";
+ this.label44.Size = new System.Drawing.Size(190, 20);
+ this.label44.TabIndex = 60;
+ this.label44.Text = "Adresa riadok 2";
+ this.label44.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+ this.label44.Click += new System.EventHandler(this.label44_Click);
+ //
+ // textBox12
+ //
+ this.textBox12.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+ this.textBox12.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.Suggest;
+ this.textBox12.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.CustomSource;
+ this.textBox12.Enabled = false;
+ this.textBox12.Location = new System.Drawing.Point(193, 44);
+ this.textBox12.Name = "textBox12";
+ this.textBox12.Size = new System.Drawing.Size(207, 20);
+ this.textBox12.TabIndex = 59;
+ //
+ // label45
+ //
+ this.label45.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+ this.label45.BackColor = System.Drawing.Color.LightGray;
+ this.label45.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.label45.Location = new System.Drawing.Point(401, 65);
+ this.label45.Name = "label45";
+ this.label45.Size = new System.Drawing.Size(20, 20);
+ this.label45.TabIndex = 64;
+ this.label45.Text = "X";
+ this.label45.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+ this.label45.Click += new System.EventHandler(this.label45_Click);
+ //
+ // label46
+ //
+ this.label46.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.label46.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.label46.Location = new System.Drawing.Point(2, 65);
+ this.label46.Name = "label46";
+ this.label46.Size = new System.Drawing.Size(190, 20);
+ this.label46.TabIndex = 63;
+ this.label46.Text = "Adresa riadok 3";
+ this.label46.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+ this.label46.Click += new System.EventHandler(this.label46_Click);
+ //
+ // textBox13
+ //
+ this.textBox13.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+ this.textBox13.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.Suggest;
+ this.textBox13.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.CustomSource;
+ this.textBox13.Enabled = false;
+ this.textBox13.Location = new System.Drawing.Point(193, 65);
+ this.textBox13.Name = "textBox13";
+ this.textBox13.Size = new System.Drawing.Size(207, 20);
+ this.textBox13.TabIndex = 62;
+ //
+ // label47
+ //
+ this.label47.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+ this.label47.BackColor = System.Drawing.Color.LightGray;
+ this.label47.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.label47.Location = new System.Drawing.Point(401, 86);
+ this.label47.Name = "label47";
+ this.label47.Size = new System.Drawing.Size(20, 20);
+ this.label47.TabIndex = 67;
+ this.label47.Text = "X";
+ this.label47.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+ this.label47.Click += new System.EventHandler(this.label47_Click);
+ //
+ // label48
+ //
+ this.label48.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.label48.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.label48.Location = new System.Drawing.Point(2, 86);
+ this.label48.Name = "label48";
+ this.label48.Size = new System.Drawing.Size(190, 20);
+ this.label48.TabIndex = 66;
+ this.label48.Text = "Adresa riadok 4";
+ this.label48.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+ this.label48.Click += new System.EventHandler(this.label48_Click);
+ //
+ // textBox14
+ //
+ this.textBox14.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+ this.textBox14.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.Suggest;
+ this.textBox14.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.CustomSource;
+ this.textBox14.Enabled = false;
+ this.textBox14.Location = new System.Drawing.Point(193, 86);
+ this.textBox14.Name = "textBox14";
+ this.textBox14.Size = new System.Drawing.Size(207, 20);
+ this.textBox14.TabIndex = 65;
+ //
+ // label49
+ //
+ this.label49.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+ this.label49.BackColor = System.Drawing.Color.LightGray;
+ this.label49.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.label49.Location = new System.Drawing.Point(401, 107);
+ this.label49.Name = "label49";
+ this.label49.Size = new System.Drawing.Size(20, 20);
+ this.label49.TabIndex = 70;
+ this.label49.Text = "X";
+ this.label49.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+ this.label49.Click += new System.EventHandler(this.label49_Click);
+ //
+ // label50
+ //
+ this.label50.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.label50.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.label50.Location = new System.Drawing.Point(2, 107);
+ this.label50.Name = "label50";
+ this.label50.Size = new System.Drawing.Size(190, 20);
+ this.label50.TabIndex = 69;
+ this.label50.Text = "Adresa riadok 5";
+ this.label50.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+ this.label50.Click += new System.EventHandler(this.label50_Click);
+ //
+ // textBox15
+ //
+ this.textBox15.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+ this.textBox15.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.Suggest;
+ this.textBox15.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.CustomSource;
+ this.textBox15.Enabled = false;
+ this.textBox15.Location = new System.Drawing.Point(193, 107);
+ this.textBox15.Name = "textBox15";
+ this.textBox15.Size = new System.Drawing.Size(207, 20);
+ this.textBox15.TabIndex = 68;
+ //
+ // label53
+ //
+ this.label53.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+ this.label53.BackColor = System.Drawing.Color.LightGray;
+ this.label53.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.label53.Location = new System.Drawing.Point(401, 191);
+ this.label53.Name = "label53";
+ this.label53.Size = new System.Drawing.Size(20, 20);
+ this.label53.TabIndex = 82;
+ this.label53.Text = "X";
+ this.label53.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+ this.label53.Click += new System.EventHandler(this.label53_Click);
+ //
+ // label54
+ //
+ this.label54.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.label54.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.label54.Location = new System.Drawing.Point(2, 191);
+ this.label54.Name = "label54";
+ this.label54.Size = new System.Drawing.Size(190, 20);
+ this.label54.TabIndex = 81;
+ this.label54.Text = "Špecifický symbol";
+ this.label54.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+ this.label54.Click += new System.EventHandler(this.label54_Click);
+ //
+ // textBox17
+ //
+ this.textBox17.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+ this.textBox17.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.Suggest;
+ this.textBox17.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.CustomSource;
+ this.textBox17.Enabled = false;
+ this.textBox17.Location = new System.Drawing.Point(193, 191);
+ this.textBox17.Name = "textBox17";
+ this.textBox17.Size = new System.Drawing.Size(207, 20);
+ this.textBox17.TabIndex = 80;
+ //
+ // label55
+ //
+ this.label55.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+ this.label55.BackColor = System.Drawing.Color.LightGray;
+ this.label55.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.label55.Location = new System.Drawing.Point(401, 170);
+ this.label55.Name = "label55";
+ this.label55.Size = new System.Drawing.Size(20, 20);
+ this.label55.TabIndex = 79;
+ this.label55.Text = "X";
+ this.label55.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+ this.label55.Click += new System.EventHandler(this.label55_Click);
+ //
+ // label56
+ //
+ this.label56.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.label56.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.label56.Location = new System.Drawing.Point(2, 170);
+ this.label56.Name = "label56";
+ this.label56.Size = new System.Drawing.Size(190, 20);
+ this.label56.TabIndex = 78;
+ this.label56.Text = "Konštantný symbol";
+ this.label56.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+ this.label56.Click += new System.EventHandler(this.label56_Click);
+ //
+ // textBox18
+ //
+ this.textBox18.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+ this.textBox18.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.Suggest;
+ this.textBox18.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.CustomSource;
+ this.textBox18.Enabled = false;
+ this.textBox18.Location = new System.Drawing.Point(193, 170);
+ this.textBox18.Name = "textBox18";
+ this.textBox18.Size = new System.Drawing.Size(207, 20);
+ this.textBox18.TabIndex = 77;
+ //
+ // label57
+ //
+ this.label57.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+ this.label57.BackColor = System.Drawing.Color.LightGray;
+ this.label57.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.label57.Location = new System.Drawing.Point(401, 149);
+ this.label57.Name = "label57";
+ this.label57.Size = new System.Drawing.Size(20, 20);
+ this.label57.TabIndex = 76;
+ this.label57.Text = "X";
+ this.label57.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+ this.label57.Click += new System.EventHandler(this.label57_Click);
+ //
+ // label58
+ //
+ this.label58.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.label58.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.label58.Location = new System.Drawing.Point(2, 149);
+ this.label58.Name = "label58";
+ this.label58.Size = new System.Drawing.Size(190, 20);
+ this.label58.TabIndex = 75;
+ this.label58.Text = "Variabilný symbol";
+ this.label58.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+ this.label58.Click += new System.EventHandler(this.label58_Click);
+ //
+ // textBox19
+ //
+ this.textBox19.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+ this.textBox19.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.Suggest;
+ this.textBox19.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.CustomSource;
+ this.textBox19.Enabled = false;
+ this.textBox19.Location = new System.Drawing.Point(193, 149);
+ this.textBox19.Name = "textBox19";
+ this.textBox19.Size = new System.Drawing.Size(207, 20);
+ this.textBox19.TabIndex = 74;
+ //
+ // label59
+ //
+ this.label59.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+ this.label59.BackColor = System.Drawing.Color.LightGray;
+ this.label59.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.label59.Location = new System.Drawing.Point(401, 128);
+ this.label59.Name = "label59";
+ this.label59.Size = new System.Drawing.Size(20, 20);
+ this.label59.TabIndex = 73;
+ this.label59.Text = "X";
+ this.label59.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+ this.label59.Click += new System.EventHandler(this.label59_Click);
+ //
+ // label60
+ //
+ this.label60.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.label60.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.label60.Location = new System.Drawing.Point(2, 128);
+ this.label60.Name = "label60";
+ this.label60.Size = new System.Drawing.Size(190, 20);
+ this.label60.TabIndex = 72;
+ this.label60.Text = "Vytvoril";
+ this.label60.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+ this.label60.Click += new System.EventHandler(this.label60_Click);
+ //
+ // textBox20
+ //
+ this.textBox20.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+ this.textBox20.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.Suggest;
+ this.textBox20.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.CustomSource;
+ this.textBox20.Enabled = false;
+ this.textBox20.Location = new System.Drawing.Point(193, 128);
+ this.textBox20.Name = "textBox20";
+ this.textBox20.Size = new System.Drawing.Size(207, 20);
+ this.textBox20.TabIndex = 71;
+ //
// frmZiadankaDoplnujuceInfo
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.ClientSize = new System.Drawing.Size(369, 383);
+ this.ClientSize = new System.Drawing.Size(423, 603);
+ this.Controls.Add(this.label53);
+ this.Controls.Add(this.label54);
+ this.Controls.Add(this.textBox17);
+ this.Controls.Add(this.label55);
+ this.Controls.Add(this.label56);
+ this.Controls.Add(this.textBox18);
+ this.Controls.Add(this.label57);
+ this.Controls.Add(this.label58);
+ this.Controls.Add(this.textBox19);
+ this.Controls.Add(this.label59);
+ this.Controls.Add(this.label60);
+ this.Controls.Add(this.textBox20);
+ this.Controls.Add(this.label49);
+ this.Controls.Add(this.label50);
+ this.Controls.Add(this.textBox15);
+ this.Controls.Add(this.label47);
+ this.Controls.Add(this.label48);
+ this.Controls.Add(this.textBox14);
+ this.Controls.Add(this.label45);
+ this.Controls.Add(this.label46);
+ this.Controls.Add(this.textBox13);
+ this.Controls.Add(this.label43);
+ this.Controls.Add(this.label44);
+ this.Controls.Add(this.textBox12);
+ this.Controls.Add(this.label41);
+ this.Controls.Add(this.label42);
+ this.Controls.Add(this.textBox11);
+ this.Controls.Add(this.label40);
+ this.Controls.Add(this.textBox10);
this.Controls.Add(this.label38);
this.Controls.Add(this.textBox9);
this.Controls.Add(this.label37);
@@ -798,5 +1283,34 @@
private System.Windows.Forms.Label label37;
private System.Windows.Forms.Label label38;
private System.Windows.Forms.TextBox textBox9;
+ private System.Windows.Forms.Label label40;
+ private System.Windows.Forms.TextBox textBox10;
+ private System.Windows.Forms.Label label41;
+ private System.Windows.Forms.Label label42;
+ private System.Windows.Forms.TextBox textBox11;
+ private System.Windows.Forms.Label label43;
+ private System.Windows.Forms.Label label44;
+ private System.Windows.Forms.TextBox textBox12;
+ private System.Windows.Forms.Label label45;
+ private System.Windows.Forms.Label label46;
+ private System.Windows.Forms.TextBox textBox13;
+ private System.Windows.Forms.Label label47;
+ private System.Windows.Forms.Label label48;
+ private System.Windows.Forms.TextBox textBox14;
+ private System.Windows.Forms.Label label49;
+ private System.Windows.Forms.Label label50;
+ private System.Windows.Forms.TextBox textBox15;
+ private System.Windows.Forms.Label label53;
+ private System.Windows.Forms.Label label54;
+ private System.Windows.Forms.TextBox textBox17;
+ private System.Windows.Forms.Label label55;
+ private System.Windows.Forms.Label label56;
+ private System.Windows.Forms.TextBox textBox18;
+ private System.Windows.Forms.Label label57;
+ private System.Windows.Forms.Label label58;
+ private System.Windows.Forms.TextBox textBox19;
+ private System.Windows.Forms.Label label59;
+ private System.Windows.Forms.Label label60;
+ private System.Windows.Forms.TextBox textBox20;
}
}
\ No newline at end of file
diff --git a/Mip/frmZiadankaDoplnujuceInfo.cs b/Mip/frmZiadankaDoplnujuceInfo.cs
index ffc2b5d..085fccf 100644
--- a/Mip/frmZiadankaDoplnujuceInfo.cs
+++ b/Mip/frmZiadankaDoplnujuceInfo.cs
@@ -1,11 +1,8 @@
-using System;
+using Mip.Models;
+using System;
using System.Collections.Generic;
-using System.ComponentModel;
using System.Data;
using System.Drawing;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
using System.Windows.Forms;
using Excel = Microsoft.Office.Interop.Excel;
@@ -13,7 +10,7 @@ namespace Mip
{
public partial class frmZiadankaDoplnujuceInfo : Form
{
- int IDZiadankaDI = 0;
+ private int IDZiadankaDI = 0;
string TypFormulara = "";
//string NazovFirmy = "";
/*string = "";
@@ -23,30 +20,64 @@ namespace Mip
*/
DataTable tabZiadanka;
- DataGridViewSelectedRowCollection dgvsrc;
+ List ZoznamZiadaniek;
private AutoCompleteStringCollection acscPodmienky = new AutoCompleteStringCollection();
private AutoCompleteStringCollection acscPoznamky = new AutoCompleteStringCollection();
-
- public frmZiadankaDoplnujuceInfo(DataGridViewSelectedRowCollection _dgvsrc, string _TypFormulara, string _Operacia)
+
+ public frmZiadankaDoplnujuceInfo(List zoznamZiadaniek, string typFormulara, string operacia, int doplnujuceinfoId = 0)
{
InitializeComponent();
- dgvsrc = _dgvsrc;
-
- TypFormulara = _TypFormulara;
+ ZoznamZiadaniek = zoznamZiadaniek;
+
+ TypFormulara = typFormulara;
this.Text = "Doplňujúce informácie pre žiadanku (Typ: " + TypFormulara + ")";
string cmd = "";
- cmd = "select * from `tabziadankadoplnujuceinfo` where `IDZiadankaDoplnujuceInfo` = " + IDZiadankaDI.ToString() + ";";
+ IDZiadankaDI = doplnujuceinfoId;
+ if (IDZiadankaDI > 0)
+ {
+ cmd = "select * from `tabziadankadoplnujuceinfo` where `IDZiadankaDoplnujuceInfo` = " + IDZiadankaDI.ToString() + ";";
+ classSQL.SQL(cmd, out tabZiadanka);
+ }
+ else
+ {
+ tabZiadanka = new DataTable();
+ }
- //cmd = "select * from `tabziadankadoplnujuceinfo` where `IDZiadankaDoplnujuceInfo` = " + IDZiadankaDI.ToString() + ";";
- classSQL.SQL(cmd, out tabZiadanka);
+ if (tabZiadanka?.Rows?.Count > 0)
+ {
+ tabZiadanka.TableName = "Update";
- if (tabZiadanka.Rows.Count > 0) tabZiadanka.TableName = "Update";
- else tabZiadanka.TableName = "Insert";
+ var cmdCislo = $"SELECT Distinct `Cislo` from `pohladziadankadokument` where `IdDoplnujuceInfo` = {IDZiadankaDI.ToString()};";
+ string cisloDokumentu = string.Empty;
+ classSQL.SQL(cmdCislo, out cisloDokumentu);
- this.Tag = _Operacia;
- //tabZiadanka.TableName = _Operacia;
+ textBox10.Text = cisloDokumentu;
+ textBox11.Text = tabZiadanka.Rows[0]["Adresa1"].ToString();
+ textBox12.Text = tabZiadanka.Rows[0]["Adresa2"].ToString();
+ textBox13.Text = tabZiadanka.Rows[0]["Adresa3"].ToString();
+ textBox14.Text = tabZiadanka.Rows[0]["Adresa4"].ToString();
+ textBox15.Text = tabZiadanka.Rows[0]["Adresa5"].ToString();
+ textBox20.Text = tabZiadanka.Rows[0]["Vyhotovil"].ToString();
+ textBox19.Text = tabZiadanka.Rows[0]["Variabilný symbol"].ToString();
+ textBox18.Text = tabZiadanka.Rows[0]["Konštantný symbol"].ToString();
+ textBox17.Text = tabZiadanka.Rows[0]["Špecifický symbol"].ToString();
+ textBox2.Text = tabZiadanka.Rows[0]["Poznámky1"].ToString();
+ textBox3.Text = tabZiadanka.Rows[0]["Poznámky2"].ToString();
+ textBox4.Text = tabZiadanka.Rows[0]["Poznámky3"].ToString();
+ textBox5.Text = tabZiadanka.Rows[0]["Poznámky4"].ToString();
+ textBox6.Text = tabZiadanka.Rows[0]["Poznámky5"].ToString();
+ textBox7.Text = tabZiadanka.Rows[0]["Poznámky6"].ToString();
+ textBox8.Text = tabZiadanka.Rows[0]["Poznámky7"].ToString();
+ textBox9.Text = tabZiadanka.Rows[0]["Poznámky8"].ToString();
+ }
+ else
+ {
+ tabZiadanka.TableName = "Insert";
+ }
+
+ this.Tag = operacia;
DataTable tabPoznamky;
cmd = @"select distinct `Poznámky1` as Poznámky from tabziadankadoplnujuceinfo
@@ -76,8 +107,12 @@ namespace Mip
textBox8.AutoCompleteCustomSource = acscPoznamky;
textBox9.AutoCompleteCustomSource = acscPoznamky;
+ if (operacia == "Tlačiť") button1.Text = "Použiť a vytlačiť";
+ if (operacia == "Exportovať XLSX") button1.Text = "Použiť a uložiť Excel";
+
+ textBox20.Text = $"{classUser.Titul} {classUser.Meno} {classUser.Priezvisko}";
}
-
+
private void button2_Click(object sender, EventArgs e)
@@ -89,7 +124,7 @@ namespace Mip
{
//tabziadankadoplnujuceinfo
- if(tabZiadanka.Rows.Count > 0)
+ if (tabZiadanka.Rows.Count > 0)
{
dateTimePicker1.Value = Convert.ToDateTime(tabZiadanka.Rows[0]["Dátum vyhotovenia"].ToString());
dateTimePicker2.Value = Convert.ToDateTime(tabZiadanka.Rows[0]["Dátum vyhotovenia"].ToString());
@@ -167,64 +202,53 @@ namespace Mip
label5.BackColor = Color.LightGreen;
label5.Tag = label15.Text;
break;
-
-
- /*default:
-
- return;
- */
-
}
-
-
}
- /*
- else
- {
-
- }
- */
-
-
}
private void label23_Click(object sender, EventArgs e)
{
dateTimePicker1.Enabled = false;
label1.BackColor = Color.Empty;
+ label23.BackColor = Color.LightGray;
}
private void label1_Click(object sender, EventArgs e)
{
dateTimePicker1.Enabled = true;
label1.BackColor = Color.LightGreen;
+ label23.BackColor = Color.Coral;
}
private void label2_Click(object sender, EventArgs e)
{
dateTimePicker2.Enabled = true;
label2.BackColor = Color.LightGreen;
+ label24.BackColor = Color.Coral;
}
private void label24_Click(object sender, EventArgs e)
{
dateTimePicker2.Enabled = false;
label2.BackColor = Color.Empty;
+ label24.BackColor = Color.LightGray;
}
private void label3_Click(object sender, EventArgs e)
{
dateTimePicker3.Enabled = true;
label3.BackColor = Color.LightGreen;
+ label25.BackColor = Color.Coral;
}
private void label25_Click(object sender, EventArgs e)
{
dateTimePicker3.Enabled = false;
label3.BackColor = Color.Empty;
+ label25.BackColor = Color.LightGray;
}
- private void label4_Click(object sender, EventArgs e) { label4.BackColor = Color.LightGreen; }
+ private void label4_Click(object sender, EventArgs e) { label4.BackColor = Color.LightGreen; label26.BackColor = Color.Coral; }
private void label4_BackColorChanged(object sender, EventArgs e)
{
if (label4.BackColor == Color.LightGreen)
@@ -248,6 +272,7 @@ namespace Mip
label9.BackColor = Color.Empty;
label4.BackColor = Color.Empty;
label4.Tag = null;
+ label26.BackColor = Color.LightGray;
}
private void label7_Click(object sender, EventArgs e)
@@ -274,10 +299,10 @@ namespace Mip
label4.Tag = label9.Text;
}
- private void label5_Click(object sender, EventArgs e) { label5.BackColor = Color.LightGreen; }
+ private void label5_Click(object sender, EventArgs e) { label5.BackColor = Color.LightGreen; label27.BackColor = Color.Coral; }
private void label5_BackColorChanged(object sender, EventArgs e)
{
- if(label5.BackColor == Color.LightGreen)
+ if (label5.BackColor == Color.LightGreen)
{
label10.Enabled = true;
label11.Enabled = true;
@@ -300,7 +325,7 @@ namespace Mip
label17.Enabled = false;
}
-
+
}
private void label27_Click(object sender, EventArgs e)
@@ -316,6 +341,7 @@ namespace Mip
label5.BackColor = Color.Empty;
label5.Tag = null;
+ label27.BackColor = Color.LightGray;
}
private void label10_Click(object sender, EventArgs e)
@@ -426,6 +452,7 @@ namespace Mip
{
textBox1.Enabled = true;
label6.BackColor = Color.LightGreen;
+ label28.BackColor = Color.Coral;
}
private void label28_Click(object sender, EventArgs e)
@@ -433,9 +460,10 @@ namespace Mip
textBox1.Enabled = false;
textBox1.Text = "";
label6.BackColor = Color.Empty;
+ label28.BackColor = Color.LightGray;
}
- private void label18_Click(object sender, EventArgs e) { label18.BackColor = Color.LightGreen; }
+ private void label18_Click(object sender, EventArgs e) { label18.BackColor = Color.LightGreen; label29.BackColor = Color.Coral; }
private void label18_BackColorChanged(object sender, EventArgs e)
{
if (label18.BackColor == Color.LightGreen)
@@ -460,6 +488,7 @@ namespace Mip
label18.BackColor = Color.Empty;
label18.Tag = null;
+ label29.BackColor = Color.LightGray;
}
private void label19_Click(object sender, EventArgs e)
@@ -500,7 +529,7 @@ namespace Mip
textBox6.Enabled = true;
textBox7.Enabled = true;
label22.BackColor = Color.LightGreen;
-
+ label30.BackColor = Color.Coral;
}
private void label30_Click(object sender, EventArgs e)
@@ -525,76 +554,104 @@ namespace Mip
textBox8.Enabled = false;
textBox9.Enabled = false;
label22.BackColor = Color.Empty;
+ label30.BackColor = Color.LightGray;
}
}
- private void label31_Click(object sender, EventArgs e) { textBox2.Text = ""; }
- private void label32_Click(object sender, EventArgs e) { textBox3.Text = ""; }
- private void label33_Click(object sender, EventArgs e) { textBox4.Text = ""; }
- private void label34_Click(object sender, EventArgs e) { textBox5.Text = ""; }
- private void label35_Click(object sender, EventArgs e) { textBox6.Text = ""; }
- private void label36_Click(object sender, EventArgs e) { textBox7.Text = ""; }
- private void label37_Click(object sender, EventArgs e) { textBox8.Text = ""; }
- private void label38_Click(object sender, EventArgs e) { textBox9.Text = ""; }
+ private void label31_Click(object sender, EventArgs e) { textBox2.Text = ""; label31.BackColor = Color.LightGray; }
+ private void label32_Click(object sender, EventArgs e) { textBox3.Text = ""; label32.BackColor = Color.LightGray; }
+ private void label33_Click(object sender, EventArgs e) { textBox4.Text = ""; label33.BackColor = Color.LightGray; }
+ private void label34_Click(object sender, EventArgs e) { textBox5.Text = ""; label34.BackColor = Color.LightGray; }
+ private void label35_Click(object sender, EventArgs e) { textBox6.Text = ""; label35.BackColor = Color.LightGray; }
+ private void label36_Click(object sender, EventArgs e) { textBox7.Text = ""; label36.BackColor = Color.LightGray; }
+ private void label37_Click(object sender, EventArgs e) { textBox8.Text = ""; label37.BackColor = Color.LightGray; }
+ private void label38_Click(object sender, EventArgs e) { textBox9.Text = ""; label38.BackColor = Color.LightGray; }
private void button1_Click(object sender, EventArgs e)
{
string strFormaUh = "";
string strSposobDop = "";
string strMena = "";
-
+ //Int32 doplnujuceInfoId;
+
if (label4.Tag != null) strFormaUh = label4.Tag.ToString();
if (label5.Tag != null) strSposobDop = label5.Tag.ToString();
if (label18.Tag != null) strMena = label18.Tag.ToString();
string cmd = "";
- if(tabZiadanka.TableName == "Insert")
+ if (tabZiadanka.TableName == "Insert")
{
- cmd = @"insert into `tabziadankadoplnujuceinfo` (`Dátum záznamu`, `Dátum vyhotovenia`, `Dátum predpokl. dodania`, `Dátum dodania`, `Forma úhrady`, `Spôsob dopravy`, `Dodacie a platob. podmienky`,
- `Mena`, `Poznámky1`, `Poznámky2`, `Poznámky3`, `Poznámky4`, `Poznámky5`, `Poznámky6`, `Poznámky7`, `Poznámky8`) VALUES("
- /* + IDZiadanka.ToString() + @", "*/
- + "'" + DateTime.Now.Year.ToString() + "-" + DateTime.Now.Month.ToString() + "-" + DateTime.Now.Day.ToString() + "', "
- + "'" + dateTimePicker1.Value.Year.ToString() + "-" + dateTimePicker1.Value.Month.ToString() + "-" + dateTimePicker1.Value.Day.ToString() + "', "
- + "'" + dateTimePicker2.Value.Year.ToString() + "-" + dateTimePicker2.Value.Month.ToString() + "-" + dateTimePicker2.Value.Day.ToString() + "', "
- + "'" + dateTimePicker3.Value.Year.ToString() + "-" + dateTimePicker3.Value.Month.ToString() + "-" + dateTimePicker3.Value.Day.ToString() + "', "
- + "'" + strFormaUh + "', "
- + "'" + strSposobDop + "', "
- + "'" + textBox1.Text + "', "
- + "'" + strMena + "', "
- + "'" + textBox2.Text + "', "
- + "'" + textBox3.Text + "', "
- + "'" + textBox4.Text + "', "
- + "'" + textBox5.Text + "', "
- + "'" + textBox6.Text + "', "
- + "'" + textBox7.Text + "', "
- + "'" + textBox8.Text + "', "
- + "'" + textBox9.Text + "'"
- + ");";
+ cmd = $@"insert into `tabziadankadoplnujuceinfo` (`Dátum záznamu`, `Dátum vyhotovenia`, `Dátum predpokl. dodania`, `Dátum dodania`, `Forma úhrady`, `Spôsob dopravy`, `Dodacie a platob. podmienky`,
+ `Mena`, `Poznámky1`, `Poznámky2`, `Poznámky3`, `Poznámky4`, `Poznámky5`, `Poznámky6`, `Poznámky7`, `Poznámky8`,
+ `Adresa1`, `Adresa2`, `Adresa3`, `Adresa4`, `Adresa5`, `Vyhotovil`, `Variabilný symbol`, `Konštantný symbol`, `Špecifický symbol`) VALUES(
+ '{DateTime.Now.Year.ToString()}-{DateTime.Now.Month.ToString()}-{DateTime.Now.Day.ToString()}',
+ '{dateTimePicker1.Value.Year.ToString()}-{dateTimePicker1.Value.Month.ToString()}-{dateTimePicker1.Value.Day.ToString()}',
+ '{dateTimePicker2.Value.Year.ToString()}-{dateTimePicker2.Value.Month.ToString()}-{dateTimePicker2.Value.Day.ToString()}',
+ '{dateTimePicker3.Value.Year.ToString()}-{dateTimePicker3.Value.Month.ToString()}-{dateTimePicker3.Value.Day.ToString()}',
+ '{strFormaUh}',
+ '{strSposobDop}',
+ '{textBox1.Text}',
+ '{strMena}',
+ '{textBox2.Text}',
+ '{textBox3.Text}',
+ '{textBox4.Text}',
+ '{textBox5.Text}',
+ '{textBox6.Text}',
+ '{textBox7.Text}',
+ '{textBox8.Text}',
+ '{textBox9.Text}',
+ '{textBox11.Text}',
+ '{textBox12.Text}',
+ '{textBox13.Text}',
+ '{textBox14.Text}',
+ '{textBox15.Text}',
+ '{textBox20.Text}',
+ '{textBox19.Text}',
+ '{textBox18.Text}',
+ '{textBox17.Text}');";
+ classSQL.SQL(cmd, out IDZiadankaDI);
+
+ var lastNumberCmd = $"SELECT MAX(`CisloDokumentu`) from `tabziadankadokument`;";
+ string lastNumber = string.Empty;
+ classSQL.SQL(lastNumberCmd, out lastNumber);
+ Int32 nextNumber = Convert.ToInt32(lastNumber) + 1;
+ textBox10.Text = $"CDZ-{nextNumber.ToString().PadLeft(7, '0')}-{DateTime.Now.Year.ToString()}";
+
+ foreach (var item in ZoznamZiadaniek)
+ {
+ var cmdInsertDocumentInfo = $"INSERT INTO `mip`.`tabziadankadokument` (`DatumVytvorenia`, `IdZiadanka`, `IdDoplnujuceInfo`, `CisloDokumentu`) VALUES (NOW(), '{item.IDZiadanka}', {IDZiadankaDI}, {nextNumber});";
+ classSQL.SQL(cmdInsertDocumentInfo);
+ }
}
else
{
- cmd = @"update `mip`.`tabziadankadoplnujuceinfo` SET
- `Dátum vyhotovenia` = '" + dateTimePicker1.Value.Year.ToString() + "-" + dateTimePicker1.Value.Month.ToString() + "-" + dateTimePicker1.Value.Day.ToString() + "', "
- + "`Dátum predpokl. dodania` = '" + dateTimePicker2.Value.Year.ToString() + "-" + dateTimePicker2.Value.Month.ToString() + "-" + dateTimePicker2.Value.Day.ToString() + "', "
- + "`Dátum dodania` = '" + dateTimePicker3.Value.Year.ToString() + "-" + dateTimePicker3.Value.Month.ToString() + "-" + dateTimePicker3.Value.Day.ToString() + "', "
- + "`Forma úhrady` = '" + strFormaUh + "', "
- + "`Spôsob dopravy` ='" + strSposobDop + "', "
- + "`Dodacie a platob. podmienky` ='" + textBox1.Text + "', "
- + "`Mena` ='" + strMena + "', "
- + "`Poznámky1` = '" + textBox2.Text + "', "
- + "`Poznámky2` = '" + textBox3.Text + "', "
- + "`Poznámky3` = '" + textBox4.Text + "', "
- + "`Poznámky4` = '" + textBox5.Text + "', "
- + "`Poznámky5` = '" + textBox6.Text + "', "
- + "`Poznámky6` = '" + textBox7.Text + "', "
- + "`Poznámky7` = '" + textBox8.Text + "', "
- + "`Poznámky8` = '" + textBox9.Text + "'"
- + " WHERE `tabziadankadoplnujuceinfo`= " + IDZiadankaDI.ToString() + "; ";
+ cmd = $@"update `mip`.`tabziadankadoplnujuceinfo` SET
+ `Dátum vyhotovenia` = '{dateTimePicker1.Value.Year.ToString()}-{dateTimePicker1.Value.Month.ToString()}-{dateTimePicker1.Value.Day.ToString()}',
+ `Dátum predpokl. dodania` = '{dateTimePicker2.Value.Year.ToString()}-{dateTimePicker2.Value.Month.ToString()}-{dateTimePicker2.Value.Day.ToString()}',
+ `Dátum dodania` = '{dateTimePicker3.Value.Year.ToString()}-{dateTimePicker3.Value.Month.ToString()}-{dateTimePicker3.Value.Day.ToString()}',
+ `Forma úhrady` = '{strFormaUh}',
+ `Spôsob dopravy` = '{strSposobDop}',
+ `Dodacie a platob. podmienky` = '{textBox1.Text}',
+ `Mena` = '{strMena}',
+ `Poznámky1` = '{textBox2.Text}',
+ `Poznámky2` = '{textBox3.Text}',
+ `Poznámky3` = '{textBox4.Text}',
+ `Poznámky4` = '{textBox5.Text}',
+ `Poznámky5` = '{textBox6.Text}',
+ `Poznámky6` = '{textBox7.Text}',
+ `Poznámky7` = '{textBox8.Text}',
+ `Poznámky8` = '{textBox9.Text}',
+ `Adresa1` = '{textBox11.Text}',
+ `Adresa2` = '{textBox12.Text}',
+ `Adresa3` = '{textBox13.Text}',
+ `Adresa4` = '{textBox14.Text}',
+ `Adresa5` = '{textBox15.Text}',
+ `Vyhotovil` = '{textBox20.Text}',
+ `Variabilný symbol` = '{textBox19.Text}',
+ `Konštantný symbol` = '{textBox18.Text}',
+ `Špecifický symbol` = '{textBox17.Text}'
+ WHERE `tabziadankadoplnujuceinfo`= {IDZiadankaDI.ToString()};";
}
-
- classSQL.SQL(cmd);
-
-
string strNazovFormulara = TypFormulara;
classGlobal.DeleteRamDisk(); classGlobal.CreateRamDisk();
@@ -611,52 +668,131 @@ namespace Mip
xlWorkSheet = (Excel.Worksheet)xlWorkBook.Worksheets.get_Item(1);
range = xlWorkSheet.UsedRange;
+ xlWorkSheet.Range["AE2"].Value = textBox10.Text; //dopyt cislo
+ xlWorkSheet.Range["T7"].Value = textBox11.Text; //adresa riadok 1
+ xlWorkSheet.Range["T9"].Value = textBox12.Text; //adresa riadok 2
+ xlWorkSheet.Range["T11"].Value = textBox13.Text; //adresa riadok 3
+ xlWorkSheet.Range["T13"].Value = textBox14.Text; //adresa riadok 4
+ xlWorkSheet.Range["T15"].Value = textBox15.Text; //adresa riadok 5
+ xlWorkSheet.Range["G16"].Value = textBox20.Text; //vyhotovil
+ xlWorkSheet.Range["V22"].Value = textBox19.Text; //variabilny symbol
+ xlWorkSheet.Range["AA22"].Value = textBox18.Text; //konstantny symbol
+ xlWorkSheet.Range["AF22"].Value = textBox17.Text; //specificky symbol
+ xlWorkSheet.Range["J18"].Value = dateTimePicker1.Value; //datum vyhotovenia
+ xlWorkSheet.Range["J19"].Value = dateTimePicker2.Value; //Dátum predpoklad. dodania:
+ xlWorkSheet.Range["J20"].Value = dateTimePicker3.Value; //Dátum dodania:
+ xlWorkSheet.Range["J21"].Value = strFormaUh; //forma uhrady
+ xlWorkSheet.Range["J22"].Value = strSposobDop; //sposob dopravy
+ xlWorkSheet.Range["J23"].Value = textBox1.Text; //dodacie podmienky
+ xlWorkSheet.Range["B28"].Value = "1"; //poradove cislo 1
+ xlWorkSheet.Range["B29"].Value = "2"; //poradove cislo 2
+ xlWorkSheet.Range["B30"].Value = "3"; //poradove cislo 3
+ xlWorkSheet.Range["B31"].Value = "4"; //poradove cislo 4
+ xlWorkSheet.Range["B32"].Value = "5"; //poradove cislo 5
+ xlWorkSheet.Range["B33"].Value = "6"; //poradove cislo 6
+ xlWorkSheet.Range["B34"].Value = "7"; //poradove cislo 7
+ xlWorkSheet.Range["B35"].Value = "8"; //poradove cislo 8
+ xlWorkSheet.Range["B36"].Value = "9"; //poradove cislo 9
+ xlWorkSheet.Range["B37"].Value = "10"; //poradove cislo 10
-
- xlWorkSheet.Range["AE2"].Value = "1";
- xlWorkSheet.Range["T7"].Value = "8";
- xlWorkSheet.Range["T9"].Value = "8";
- xlWorkSheet.Range["T11"].Value = "8";
- xlWorkSheet.Range["T13"].Value = "8";
- xlWorkSheet.Range["T15"].Value = "8";
- xlWorkSheet.Range["J18"].Value = dateTimePicker1.Value;
- xlWorkSheet.Range["J19"].Value = dateTimePicker2.Value;
- xlWorkSheet.Range["J20"].Value = dateTimePicker3.Value;
- xlWorkSheet.Range["J21"].Value = strFormaUh;
- xlWorkSheet.Range["J22"].Value = strSposobDop;
- xlWorkSheet.Range["J23"].Value = textBox1.Text;
- xlWorkSheet.Range["C43"].Value = textBox2.Text;
- xlWorkSheet.Range["C44"].Value = textBox3.Text;
- xlWorkSheet.Range["C45"].Value = textBox4.Text;
- xlWorkSheet.Range["C46"].Value = textBox5.Text;
- xlWorkSheet.Range["C47"].Value = textBox6.Text;
- xlWorkSheet.Range["C48"].Value = textBox7.Text;
- xlWorkSheet.Range["C49"].Value = textBox8.Text;
- xlWorkSheet.Range["C50"].Value = textBox9.Text;
-
- //string cmd2 = "";
- //cmd2 = "";
-
-
-
- if (tabZiadanka.TableName == "")
- switch (tabZiadanka.TableName.ToString())
+ for (int i = 0; i < ZoznamZiadaniek.Count; i++)
+ {
+ switch (i)
{
- case "":
-
+ case 0:
+ xlWorkSheet.Range["D28"].Value = ZoznamZiadaniek[i]?.Typ; //kod polozky 1
+ xlWorkSheet.Range["H28"].Value = ZoznamZiadaniek[i]?.Nazov; //popis 1
+ xlWorkSheet.Range["AF28"].Value = ZoznamZiadaniek[i]?.PocetKs; //mnozstvo 1
+ xlWorkSheet.Range["AI28"].Value = ZoznamZiadaniek[i]?.Jednotka; //merna jednotka 1
break;
+ case 1:
+ xlWorkSheet.Range["D29"].Value = ZoznamZiadaniek[i]?.Typ; //kod polozky 2
+ xlWorkSheet.Range["H29"].Value = ZoznamZiadaniek[i]?.Nazov; //popis 2
+ xlWorkSheet.Range["AF29"].Value = ZoznamZiadaniek[i]?.PocetKs; //mnozstvo 2
+ xlWorkSheet.Range["AI29"].Value = ZoznamZiadaniek[i]?.Jednotka; //merna jednotka 2
+ break;
+ case 2:
+ xlWorkSheet.Range["AF30"].Value = ZoznamZiadaniek[i]?.PocetKs; //mnozstvo 3
+ xlWorkSheet.Range["D30"].Value = ZoznamZiadaniek[i]?.Typ; //kod polozky 3
+ xlWorkSheet.Range["H30"].Value = ZoznamZiadaniek[i]?.Nazov; //popis 3
+ xlWorkSheet.Range["AI30"].Value = ZoznamZiadaniek[i]?.Jednotka; //merna jednotka 3
+ break;
+
+ case 3:
+ xlWorkSheet.Range["D31"].Value = ZoznamZiadaniek[i]?.Typ; //kod polozky 4
+ xlWorkSheet.Range["H31"].Value = ZoznamZiadaniek[i]?.Nazov; //popis 4
+ xlWorkSheet.Range["AF31"].Value = ZoznamZiadaniek[i]?.PocetKs; //mnozstvo 4
+ xlWorkSheet.Range["AI31"].Value = ZoznamZiadaniek[i]?.Jednotka; //merna jednotka 4
+
+ break;
+
+ case 4:
+ xlWorkSheet.Range["D32"].Value = ZoznamZiadaniek[i]?.Typ; //kod polozky 5
+ xlWorkSheet.Range["H32"].Value = ZoznamZiadaniek[i]?.Nazov; //popis 5
+ xlWorkSheet.Range["AF32"].Value = ZoznamZiadaniek[i]?.PocetKs; //mnozstvo 5
+ xlWorkSheet.Range["AI32"].Value = ZoznamZiadaniek[i]?.Jednotka; //merna jednotka 5
+
+ break;
+
+ case 5:
+ xlWorkSheet.Range["D33"].Value = ZoznamZiadaniek[i]?.Typ; //kod polozky 6
+ xlWorkSheet.Range["H33"].Value = ZoznamZiadaniek[i]?.Nazov; //popis 6
+ xlWorkSheet.Range["AF33"].Value = ZoznamZiadaniek[i]?.PocetKs; //mnozstvo 6
+ xlWorkSheet.Range["AI33"].Value = ZoznamZiadaniek[i]?.Jednotka; //merna jednotka 6
+
+ break;
+
+ case 6:
+ xlWorkSheet.Range["D34"].Value = ZoznamZiadaniek[i]?.Typ; //kod polozky 7
+ xlWorkSheet.Range["H34"].Value = ZoznamZiadaniek[i]?.Nazov; //popis 7
+ xlWorkSheet.Range["AF34"].Value = ZoznamZiadaniek[i]?.PocetKs; //mnozstvo 7
+ xlWorkSheet.Range["AI34"].Value = ZoznamZiadaniek[i]?.Jednotka; //merna jednotka 7
+
+ break;
+
+ case 7:
+ xlWorkSheet.Range["D35"].Value = ZoznamZiadaniek[i]?.Typ; //kod polozky 8
+ xlWorkSheet.Range["H35"].Value = ZoznamZiadaniek[i]?.Nazov; //popis 8
+ xlWorkSheet.Range["AF35"].Value = ZoznamZiadaniek[i]?.PocetKs; //mnozstvo 8
+ xlWorkSheet.Range["AI35"].Value = ZoznamZiadaniek[i]?.Jednotka; //merna jednotka 8
+
+ break;
+
+ case 8:
+ xlWorkSheet.Range["D36"].Value = ZoznamZiadaniek[i]?.Typ; //kod polozky 9
+ xlWorkSheet.Range["H36"].Value = ZoznamZiadaniek[i]?.Nazov; //popis 9
+ xlWorkSheet.Range["AF36"].Value = ZoznamZiadaniek[i]?.PocetKs; //mnozstvo 9
+ xlWorkSheet.Range["AI36"].Value = ZoznamZiadaniek[i]?.Jednotka; //merna jednotka 9
+
+ break;
+
+ case 9:
+ xlWorkSheet.Range["D37"].Value = ZoznamZiadaniek[i]?.Typ; //kod polozky 10
+ xlWorkSheet.Range["H37"].Value = ZoznamZiadaniek[i]?.Nazov; //popis 10
+ xlWorkSheet.Range["AF37"].Value = ZoznamZiadaniek[i]?.PocetKs; //mnozstvo 10
+ xlWorkSheet.Range["AI37"].Value = ZoznamZiadaniek[i]?.Jednotka; //merna jednotka 10
+
+ break;
+ default:
+ break;
}
+ }
+ xlWorkSheet.Range["C40"].Value = textBox2.Text; //poznamka riadok 1
+ xlWorkSheet.Range["C41"].Value = textBox3.Text; //poznamka riadok 2
+ xlWorkSheet.Range["C42"].Value = textBox4.Text; //poznamka riadok 3
+ xlWorkSheet.Range["C43"].Value = textBox5.Text; //poznamka riadok 4
+ xlWorkSheet.Range["C44"].Value = textBox6.Text; //poznamka riadok 5
+ xlWorkSheet.Range["C45"].Value = textBox7.Text; //poznamka riadok 6
+ xlWorkSheet.Range["C46"].Value = textBox8.Text; //poznamka riadok 7
+
if (this.Tag.ToString() == "Tlačiť")
{
-
-
-
xlApp.Visible = true;
xlApp.ActiveWindow.Activate();
xlWorkSheet.PrintPreview();
@@ -669,14 +805,219 @@ namespace Mip
}
else
{
-
+ var saveExcel = new SaveFileDialog();
+ if (saveExcel.ShowDialog() == DialogResult.OK)
+ {
+ xlApp.ActiveWindow.Activate();
+ xlApp.Visible = false;
+ xlWorkBook.Save();
+ xlWorkBook.SaveCopyAs(saveExcel.FileName);
+ xlWorkBook.Close(false, null, null);
+ xlApp.Quit();
+ }
}
this.Close();
-
-
}
+ private void label42_Click(object sender, EventArgs e)
+ {
+ textBox11.Enabled = true;
+ label42.BackColor = Color.LightGreen;
+ label41.BackColor = Color.Coral;
+ }
+ private void label41_Click(object sender, EventArgs e)
+ {
+ textBox11.Enabled = false;
+ textBox11.Text = "";
+ label42.BackColor = Color.Empty;
+ label41.BackColor = Color.LightGray;
+ }
+
+ private void label44_Click(object sender, EventArgs e)
+ {
+ textBox12.Enabled = true;
+ label44.BackColor = Color.LightGreen;
+ label43.BackColor = Color.Coral;
+ }
+
+ private void label43_Click(object sender, EventArgs e)
+ {
+ textBox12.Enabled = false;
+ textBox12.Text = "";
+ label44.BackColor = Color.Empty;
+ label43.BackColor = Color.LightGray;
+ }
+
+ private void label46_Click(object sender, EventArgs e)
+ {
+ textBox13.Enabled = true;
+ label46.BackColor = Color.LightGreen;
+ label45.BackColor = Color.Coral;
+ }
+
+ private void label45_Click(object sender, EventArgs e)
+ {
+ textBox13.Enabled = false;
+ textBox13.Text = "";
+ label46.BackColor = Color.Empty;
+ label45.BackColor = Color.LightGray;
+ }
+
+ private void label48_Click(object sender, EventArgs e)
+ {
+ textBox14.Enabled = true;
+ label48.BackColor = Color.LightGreen;
+ label47.BackColor = Color.Coral;
+ }
+
+ private void label47_Click(object sender, EventArgs e)
+ {
+ textBox14.Enabled = false;
+ textBox14.Text = "";
+ label48.BackColor = Color.Empty;
+ label47.BackColor = Color.LightGray;
+ }
+
+ private void label50_Click(object sender, EventArgs e)
+ {
+ textBox15.Enabled = true;
+ label50.BackColor = Color.LightGreen;
+ label49.BackColor = Color.Coral;
+ }
+
+ private void label49_Click(object sender, EventArgs e)
+ {
+ textBox15.Enabled = false;
+ textBox15.Text = "";
+ label50.BackColor = Color.Empty;
+ label49.BackColor = Color.LightGray;
+ }
+
+ private void label60_Click(object sender, EventArgs e)
+ {
+ //textBox20.Enabled = true;
+ label60.BackColor = Color.LightGreen;
+ label59.BackColor = Color.Coral;
+ }
+
+ private void label59_Click(object sender, EventArgs e)
+ {
+ //textBox20.Enabled = false;
+ //textBox20.Text = "";
+ label60.BackColor = Color.Empty;
+ label59.BackColor = Color.LightGray;
+ }
+
+ private void label58_Click(object sender, EventArgs e)
+ {
+ textBox19.Enabled = true;
+ label58.BackColor = Color.LightGreen;
+ label57.BackColor = Color.Coral;
+ }
+
+ private void label57_Click(object sender, EventArgs e)
+ {
+ textBox19.Enabled = false;
+ textBox19.Text = "";
+ label58.BackColor = Color.Empty;
+ label57.BackColor = Color.LightGray;
+ }
+
+ private void label56_Click(object sender, EventArgs e)
+ {
+ textBox18.Enabled = true;
+ label56.BackColor = Color.LightGreen;
+ label55.BackColor = Color.Coral;
+ }
+
+ private void label55_Click(object sender, EventArgs e)
+ {
+ textBox18.Enabled = false;
+ textBox18.Text = "";
+ label56.BackColor = Color.Empty;
+ label55.BackColor = Color.LightGray;
+ }
+
+ private void label54_Click(object sender, EventArgs e)
+ {
+ textBox17.Enabled = true;
+ label54.BackColor = Color.LightGreen;
+ label53.BackColor = Color.Coral;
+ }
+
+ private void label53_Click(object sender, EventArgs e)
+ {
+ textBox17.Enabled = false;
+ textBox17.Text = "";
+ label54.BackColor = Color.Empty;
+ label53.BackColor = Color.LightGray;
+ }
+
+ private void textBox2_TextChanged(object sender, EventArgs e)
+ {
+ if (textBox2.Text == string.Empty)
+ {
+ label31.BackColor = Color.LightGray;
+ }
+ else
+ {
+ label31.BackColor = Color.Coral;
+ }
+ }
+
+ private void textBox3_TextChanged(object sender, EventArgs e)
+ {
+ if (textBox3.Text == string.Empty)
+ {
+ label32.BackColor = Color.LightGray;
+ }
+ else
+ {
+ label32.BackColor = Color.Coral;
+ }
+ }
+
+ private void textBox4_TextChanged(object sender, EventArgs e)
+ {
+ if (textBox4.Text == string.Empty)
+ {
+ label33.BackColor = Color.LightGray;
+ }
+ else
+ {
+ label33.BackColor = Color.Coral;
+ }
+ }
+
+ private void textBox5_TextChanged(object sender, EventArgs e)
+ {
+ if (textBox5.Text == string.Empty)
+ {
+ label34.BackColor = Color.LightGray;
+ }
+ else
+ {
+ label34.BackColor = Color.Coral;
+ }
+ }
+
+ private void textBox6_TextChanged(object sender, EventArgs e)
+ {
+ if (textBox6.Text == string.Empty)
+ {
+ label35.BackColor = Color.LightGray;
+ }
+ else
+ {
+ label35.BackColor = Color.Coral;
+ }
+ }
+
+ private void textBox7_TextChanged(object sender, EventArgs e)
+ {
+
+ }
}
}
diff --git a/Mip/obj/Debug/Mip.csproj.ResolveComReference.cache b/Mip/obj/Debug/Mip.csproj.ResolveComReference.cache
index 9d6ad22..a6950f7 100644
Binary files a/Mip/obj/Debug/Mip.csproj.ResolveComReference.cache and b/Mip/obj/Debug/Mip.csproj.ResolveComReference.cache differ