udrzby a opravy strojov
This commit is contained in:
Binary file not shown.
232
Mip/frmMain.Designer.cs
generated
232
Mip/frmMain.Designer.cs
generated
@@ -29,19 +29,19 @@
|
||||
private void InitializeComponent()
|
||||
{
|
||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmMain));
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataVisualization.Charting.ChartArea chartArea5 = new System.Windows.Forms.DataVisualization.Charting.ChartArea();
|
||||
System.Windows.Forms.DataVisualization.Charting.Legend legend5 = new System.Windows.Forms.DataVisualization.Charting.Legend();
|
||||
System.Windows.Forms.DataVisualization.Charting.Series series7 = new System.Windows.Forms.DataVisualization.Charting.Series();
|
||||
System.Windows.Forms.DataVisualization.Charting.Series series8 = new System.Windows.Forms.DataVisualization.Charting.Series();
|
||||
System.Windows.Forms.DataVisualization.Charting.ChartArea chartArea6 = new System.Windows.Forms.DataVisualization.Charting.ChartArea();
|
||||
System.Windows.Forms.DataVisualization.Charting.Legend legend6 = new System.Windows.Forms.DataVisualization.Charting.Legend();
|
||||
System.Windows.Forms.DataVisualization.Charting.Series series9 = new System.Windows.Forms.DataVisualization.Charting.Series();
|
||||
System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint9 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(1D, 9.5D);
|
||||
System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint10 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(2D, 9.25D);
|
||||
System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint11 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(3D, 8.84D);
|
||||
System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint12 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(4D, 8.67D);
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataVisualization.Charting.ChartArea chartArea7 = new System.Windows.Forms.DataVisualization.Charting.ChartArea();
|
||||
System.Windows.Forms.DataVisualization.Charting.Legend legend7 = new System.Windows.Forms.DataVisualization.Charting.Legend();
|
||||
System.Windows.Forms.DataVisualization.Charting.Series series10 = new System.Windows.Forms.DataVisualization.Charting.Series();
|
||||
System.Windows.Forms.DataVisualization.Charting.Series series11 = new System.Windows.Forms.DataVisualization.Charting.Series();
|
||||
System.Windows.Forms.DataVisualization.Charting.ChartArea chartArea8 = new System.Windows.Forms.DataVisualization.Charting.ChartArea();
|
||||
System.Windows.Forms.DataVisualization.Charting.Legend legend8 = new System.Windows.Forms.DataVisualization.Charting.Legend();
|
||||
System.Windows.Forms.DataVisualization.Charting.Series series12 = new System.Windows.Forms.DataVisualization.Charting.Series();
|
||||
System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint13 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(1D, 9.5D);
|
||||
System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint14 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(2D, 9.25D);
|
||||
System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint15 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(3D, 8.84D);
|
||||
System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint16 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(4D, 8.67D);
|
||||
this.checkBox65 = new System.Windows.Forms.CheckBox();
|
||||
this.checkBox66 = new System.Windows.Forms.CheckBox();
|
||||
this.checkBox67 = new System.Windows.Forms.CheckBox();
|
||||
@@ -447,6 +447,7 @@
|
||||
this.button71 = new System.Windows.Forms.Button();
|
||||
this.dGVPU = new System.Windows.Forms.DataGridView();
|
||||
this.tabPage11 = new System.Windows.Forms.TabPage();
|
||||
this.button203 = new System.Windows.Forms.Button();
|
||||
this.button150 = new System.Windows.Forms.Button();
|
||||
this.panel56 = new System.Windows.Forms.Panel();
|
||||
this.comboBox13 = new System.Windows.Forms.ComboBox();
|
||||
@@ -744,6 +745,7 @@
|
||||
this.textBox38 = new System.Windows.Forms.TextBox();
|
||||
this.label227 = new System.Windows.Forms.Label();
|
||||
this.textBox52 = new System.Windows.Forms.TextBox();
|
||||
this.button202 = new System.Windows.Forms.Button();
|
||||
this.tabPage20 = new System.Windows.Forms.TabPage();
|
||||
this.panel69 = new System.Windows.Forms.Panel();
|
||||
this.button198 = new System.Windows.Forms.Button();
|
||||
@@ -902,7 +904,6 @@
|
||||
this.pictureBox4 = new System.Windows.Forms.PictureBox();
|
||||
this.label175 = new System.Windows.Forms.Label();
|
||||
this.label182 = new System.Windows.Forms.Label();
|
||||
this.button202 = new System.Windows.Forms.Button();
|
||||
this.tabControl1.SuspendLayout();
|
||||
this.tabPage1.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).BeginInit();
|
||||
@@ -1270,7 +1271,7 @@
|
||||
this.tabPage1.Margin = new System.Windows.Forms.Padding(1);
|
||||
this.tabPage1.Name = "tabPage1";
|
||||
this.tabPage1.Padding = new System.Windows.Forms.Padding(2);
|
||||
this.tabPage1.Size = new System.Drawing.Size(1706, 519);
|
||||
this.tabPage1.Size = new System.Drawing.Size(1306, 519);
|
||||
this.tabPage1.TabIndex = 0;
|
||||
this.tabPage1.Text = "Dopyty";
|
||||
this.tabPage1.ToolTipText = "Práca so všetkými cenovými ponukami, objednávkami a kontraktmi";
|
||||
@@ -1885,12 +1886,12 @@
|
||||
this.dataGridView1.ReadOnly = true;
|
||||
this.dataGridView1.RowHeadersVisible = false;
|
||||
this.dataGridView1.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.DisableResizing;
|
||||
dataGridViewCellStyle5.BackColor = System.Drawing.Color.AliceBlue;
|
||||
dataGridViewCellStyle5.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
||||
dataGridViewCellStyle5.ForeColor = System.Drawing.Color.Black;
|
||||
dataGridViewCellStyle5.SelectionBackColor = System.Drawing.Color.Green;
|
||||
dataGridViewCellStyle5.SelectionForeColor = System.Drawing.Color.Yellow;
|
||||
this.dataGridView1.RowsDefaultCellStyle = dataGridViewCellStyle5;
|
||||
dataGridViewCellStyle7.BackColor = System.Drawing.Color.AliceBlue;
|
||||
dataGridViewCellStyle7.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
||||
dataGridViewCellStyle7.ForeColor = System.Drawing.Color.Black;
|
||||
dataGridViewCellStyle7.SelectionBackColor = System.Drawing.Color.Green;
|
||||
dataGridViewCellStyle7.SelectionForeColor = System.Drawing.Color.Yellow;
|
||||
this.dataGridView1.RowsDefaultCellStyle = dataGridViewCellStyle7;
|
||||
this.dataGridView1.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
|
||||
this.dataGridView1.Size = new System.Drawing.Size(1698, 215);
|
||||
this.dataGridView1.TabIndex = 0;
|
||||
@@ -2009,7 +2010,7 @@
|
||||
this.tabPage2.Controls.Add(this.panel10);
|
||||
this.tabPage2.Location = new System.Drawing.Point(4, 22);
|
||||
this.tabPage2.Name = "tabPage2";
|
||||
this.tabPage2.Size = new System.Drawing.Size(1506, 519);
|
||||
this.tabPage2.Size = new System.Drawing.Size(1306, 519);
|
||||
this.tabPage2.TabIndex = 13;
|
||||
this.tabPage2.Text = "Zoznam výrobkov";
|
||||
this.tabPage2.UseVisualStyleBackColor = true;
|
||||
@@ -2206,7 +2207,7 @@
|
||||
this.tabPage3.Controls.Add(this.dGVVydajMat);
|
||||
this.tabPage3.Location = new System.Drawing.Point(4, 22);
|
||||
this.tabPage3.Name = "tabPage3";
|
||||
this.tabPage3.Size = new System.Drawing.Size(1506, 519);
|
||||
this.tabPage3.Size = new System.Drawing.Size(1306, 519);
|
||||
this.tabPage3.TabIndex = 3;
|
||||
this.tabPage3.Text = "Výdaj materiálu";
|
||||
this.tabPage3.UseVisualStyleBackColor = true;
|
||||
@@ -2467,14 +2468,14 @@
|
||||
this.dGVVydajMat.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
||||
| System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
|
||||
dataGridViewCellStyle6.BackColor = System.Drawing.SystemColors.Control;
|
||||
dataGridViewCellStyle6.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
||||
dataGridViewCellStyle6.ForeColor = System.Drawing.SystemColors.WindowText;
|
||||
dataGridViewCellStyle6.SelectionBackColor = System.Drawing.SystemColors.Highlight;
|
||||
dataGridViewCellStyle6.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
|
||||
dataGridViewCellStyle6.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.dGVVydajMat.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle6;
|
||||
dataGridViewCellStyle8.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
|
||||
dataGridViewCellStyle8.BackColor = System.Drawing.SystemColors.Control;
|
||||
dataGridViewCellStyle8.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
||||
dataGridViewCellStyle8.ForeColor = System.Drawing.SystemColors.WindowText;
|
||||
dataGridViewCellStyle8.SelectionBackColor = System.Drawing.SystemColors.Highlight;
|
||||
dataGridViewCellStyle8.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
|
||||
dataGridViewCellStyle8.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.dGVVydajMat.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle8;
|
||||
this.dGVVydajMat.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
|
||||
this.dGVVydajMat.Location = new System.Drawing.Point(1, 43);
|
||||
this.dGVVydajMat.MultiSelect = false;
|
||||
@@ -2512,7 +2513,7 @@
|
||||
this.tabPage4.Controls.Add(this.dGVRV);
|
||||
this.tabPage4.Location = new System.Drawing.Point(4, 22);
|
||||
this.tabPage4.Name = "tabPage4";
|
||||
this.tabPage4.Size = new System.Drawing.Size(1506, 519);
|
||||
this.tabPage4.Size = new System.Drawing.Size(1306, 519);
|
||||
this.tabPage4.TabIndex = 4;
|
||||
this.tabPage4.Text = "Riadenie výroby";
|
||||
this.tabPage4.UseVisualStyleBackColor = true;
|
||||
@@ -2864,7 +2865,7 @@
|
||||
this.tabPage5.Controls.Add(this.splitContainer1);
|
||||
this.tabPage5.Location = new System.Drawing.Point(4, 22);
|
||||
this.tabPage5.Name = "tabPage5";
|
||||
this.tabPage5.Size = new System.Drawing.Size(1506, 519);
|
||||
this.tabPage5.Size = new System.Drawing.Size(1306, 519);
|
||||
this.tabPage5.TabIndex = 2;
|
||||
this.tabPage5.Text = "Skladové operácie";
|
||||
this.tabPage5.UseVisualStyleBackColor = true;
|
||||
@@ -2896,7 +2897,7 @@
|
||||
this.splitContainer1.Panel2.Controls.Add(this.button59);
|
||||
this.splitContainer1.Panel2.Controls.Add(this.btnPridajInvVydaj);
|
||||
this.splitContainer1.Panel2.Controls.Add(this.dGVSkladVydaj);
|
||||
this.splitContainer1.Size = new System.Drawing.Size(1506, 519);
|
||||
this.splitContainer1.Size = new System.Drawing.Size(1306, 519);
|
||||
this.splitContainer1.SplitterDistance = 254;
|
||||
this.splitContainer1.TabIndex = 0;
|
||||
//
|
||||
@@ -2920,7 +2921,7 @@
|
||||
this.panel11.Controls.Add(this.groupBox8);
|
||||
this.panel11.Controls.Add(this.groupBox9);
|
||||
this.panel11.Controls.Add(this.groupBox10);
|
||||
this.panel11.Location = new System.Drawing.Point(1318, 23);
|
||||
this.panel11.Location = new System.Drawing.Point(1118, 23);
|
||||
this.panel11.Name = "panel11";
|
||||
this.panel11.Size = new System.Drawing.Size(185, 227);
|
||||
this.panel11.TabIndex = 24;
|
||||
@@ -3088,7 +3089,7 @@
|
||||
// button58
|
||||
//
|
||||
this.button58.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.button58.Location = new System.Drawing.Point(1407, 0);
|
||||
this.button58.Location = new System.Drawing.Point(1207, 0);
|
||||
this.button58.Name = "button58";
|
||||
this.button58.Size = new System.Drawing.Size(97, 23);
|
||||
this.button58.TabIndex = 23;
|
||||
@@ -3121,7 +3122,7 @@
|
||||
this.dGVSkladPrijem.ReadOnly = true;
|
||||
this.dGVSkladPrijem.RowHeadersVisible = false;
|
||||
this.dGVSkladPrijem.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
|
||||
this.dGVSkladPrijem.Size = new System.Drawing.Size(1502, 228);
|
||||
this.dGVSkladPrijem.Size = new System.Drawing.Size(1302, 228);
|
||||
this.dGVSkladPrijem.TabIndex = 0;
|
||||
this.dGVSkladPrijem.Visible = false;
|
||||
this.dGVSkladPrijem.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dGVSkladPrijem_CellDoubleClick);
|
||||
@@ -3157,7 +3158,7 @@
|
||||
this.panel13.Controls.Add(this.panel14);
|
||||
this.panel13.Controls.Add(this.groupBox11);
|
||||
this.panel13.Controls.Add(this.groupBox13);
|
||||
this.panel13.Location = new System.Drawing.Point(1318, 23);
|
||||
this.panel13.Location = new System.Drawing.Point(1118, 23);
|
||||
this.panel13.Name = "panel13";
|
||||
this.panel13.Size = new System.Drawing.Size(185, 227);
|
||||
this.panel13.TabIndex = 24;
|
||||
@@ -3325,7 +3326,7 @@
|
||||
// button59
|
||||
//
|
||||
this.button59.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.button59.Location = new System.Drawing.Point(1407, 0);
|
||||
this.button59.Location = new System.Drawing.Point(1207, 0);
|
||||
this.button59.Name = "button59";
|
||||
this.button59.Size = new System.Drawing.Size(97, 23);
|
||||
this.button59.TabIndex = 23;
|
||||
@@ -3358,7 +3359,7 @@
|
||||
this.dGVSkladVydaj.ReadOnly = true;
|
||||
this.dGVSkladVydaj.RowHeadersVisible = false;
|
||||
this.dGVSkladVydaj.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
|
||||
this.dGVSkladVydaj.Size = new System.Drawing.Size(1502, 235);
|
||||
this.dGVSkladVydaj.Size = new System.Drawing.Size(1302, 235);
|
||||
this.dGVSkladVydaj.TabIndex = 0;
|
||||
this.dGVSkladVydaj.Visible = false;
|
||||
this.dGVSkladVydaj.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dGVSkladVydaj_CellDoubleClick);
|
||||
@@ -3380,7 +3381,7 @@
|
||||
this.tabPage6.Controls.Add(this.dGVExpedicia);
|
||||
this.tabPage6.Location = new System.Drawing.Point(4, 22);
|
||||
this.tabPage6.Name = "tabPage6";
|
||||
this.tabPage6.Size = new System.Drawing.Size(1506, 519);
|
||||
this.tabPage6.Size = new System.Drawing.Size(1306, 519);
|
||||
this.tabPage6.TabIndex = 5;
|
||||
this.tabPage6.Text = "Expedícia";
|
||||
this.tabPage6.UseVisualStyleBackColor = true;
|
||||
@@ -3718,7 +3719,7 @@
|
||||
this.tabPage7.Controls.Add(this.panel24);
|
||||
this.tabPage7.Location = new System.Drawing.Point(4, 22);
|
||||
this.tabPage7.Name = "tabPage7";
|
||||
this.tabPage7.Size = new System.Drawing.Size(1506, 519);
|
||||
this.tabPage7.Size = new System.Drawing.Size(1306, 519);
|
||||
this.tabPage7.TabIndex = 6;
|
||||
this.tabPage7.Text = "Kategorizácia zmätkovitosti";
|
||||
this.tabPage7.UseVisualStyleBackColor = true;
|
||||
@@ -3866,7 +3867,7 @@
|
||||
this.tabPage8.Controls.Add(this.chart1);
|
||||
this.tabPage8.Location = new System.Drawing.Point(4, 22);
|
||||
this.tabPage8.Name = "tabPage8";
|
||||
this.tabPage8.Size = new System.Drawing.Size(1506, 519);
|
||||
this.tabPage8.Size = new System.Drawing.Size(1306, 519);
|
||||
this.tabPage8.TabIndex = 14;
|
||||
this.tabPage8.Text = "Zmätkovitosť";
|
||||
this.tabPage8.UseVisualStyleBackColor = true;
|
||||
@@ -4959,27 +4960,27 @@
|
||||
this.chart1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
||||
| System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
chartArea5.Area3DStyle.IsRightAngleAxes = false;
|
||||
chartArea5.Area3DStyle.Perspective = 25;
|
||||
chartArea5.Name = "ChartArea1";
|
||||
this.chart1.ChartAreas.Add(chartArea5);
|
||||
legend5.DockedToChartArea = "ChartArea1";
|
||||
legend5.Name = "Legend1";
|
||||
this.chart1.Legends.Add(legend5);
|
||||
chartArea7.Area3DStyle.IsRightAngleAxes = false;
|
||||
chartArea7.Area3DStyle.Perspective = 25;
|
||||
chartArea7.Name = "ChartArea1";
|
||||
this.chart1.ChartAreas.Add(chartArea7);
|
||||
legend7.DockedToChartArea = "ChartArea1";
|
||||
legend7.Name = "Legend1";
|
||||
this.chart1.Legends.Add(legend7);
|
||||
this.chart1.Location = new System.Drawing.Point(4, 4);
|
||||
this.chart1.Name = "chart1";
|
||||
series7.ChartArea = "ChartArea1";
|
||||
series7.Enabled = false;
|
||||
series7.IsValueShownAsLabel = true;
|
||||
series7.Legend = "Legend1";
|
||||
series7.Name = "Priemerná zmätkovitosť";
|
||||
series8.ChartArea = "ChartArea1";
|
||||
series8.Enabled = false;
|
||||
series8.IsValueShownAsLabel = true;
|
||||
series8.Legend = "Legend1";
|
||||
series8.Name = "Priemer zmätkovitostí";
|
||||
this.chart1.Series.Add(series7);
|
||||
this.chart1.Series.Add(series8);
|
||||
series10.ChartArea = "ChartArea1";
|
||||
series10.Enabled = false;
|
||||
series10.IsValueShownAsLabel = true;
|
||||
series10.Legend = "Legend1";
|
||||
series10.Name = "Priemerná zmätkovitosť";
|
||||
series11.ChartArea = "ChartArea1";
|
||||
series11.Enabled = false;
|
||||
series11.IsValueShownAsLabel = true;
|
||||
series11.Legend = "Legend1";
|
||||
series11.Name = "Priemer zmätkovitostí";
|
||||
this.chart1.Series.Add(series10);
|
||||
this.chart1.Series.Add(series11);
|
||||
this.chart1.Size = new System.Drawing.Size(838, 491);
|
||||
this.chart1.TabIndex = 0;
|
||||
this.chart1.Text = "chart1";
|
||||
@@ -4997,7 +4998,7 @@
|
||||
this.tabPage9.Controls.Add(this.grboxFormulare);
|
||||
this.tabPage9.Location = new System.Drawing.Point(4, 22);
|
||||
this.tabPage9.Name = "tabPage9";
|
||||
this.tabPage9.Size = new System.Drawing.Size(1506, 519);
|
||||
this.tabPage9.Size = new System.Drawing.Size(1306, 519);
|
||||
this.tabPage9.TabIndex = 12;
|
||||
this.tabPage9.Text = "Nastavenia";
|
||||
this.tabPage9.UseVisualStyleBackColor = true;
|
||||
@@ -5717,7 +5718,7 @@
|
||||
this.tabPage10.Controls.Add(this.splitContainer2);
|
||||
this.tabPage10.Location = new System.Drawing.Point(4, 22);
|
||||
this.tabPage10.Name = "tabPage10";
|
||||
this.tabPage10.Size = new System.Drawing.Size(1506, 519);
|
||||
this.tabPage10.Size = new System.Drawing.Size(1306, 519);
|
||||
this.tabPage10.TabIndex = 15;
|
||||
this.tabPage10.Text = "Zoznam Strojov";
|
||||
this.tabPage10.UseVisualStyleBackColor = true;
|
||||
@@ -5752,7 +5753,7 @@
|
||||
this.splitContainer2.Panel2.Controls.Add(this.button69);
|
||||
this.splitContainer2.Panel2.Controls.Add(this.button71);
|
||||
this.splitContainer2.Panel2.Controls.Add(this.dGVPU);
|
||||
this.splitContainer2.Size = new System.Drawing.Size(1506, 519);
|
||||
this.splitContainer2.Size = new System.Drawing.Size(1306, 519);
|
||||
this.splitContainer2.SplitterDistance = 336;
|
||||
this.splitContainer2.TabIndex = 1;
|
||||
//
|
||||
@@ -5986,7 +5987,7 @@
|
||||
this.panel21.Controls.Add(this.panel22);
|
||||
this.panel21.Controls.Add(this.groupBox27);
|
||||
this.panel21.Controls.Add(this.groupBox29);
|
||||
this.panel21.Location = new System.Drawing.Point(1316, 25);
|
||||
this.panel21.Location = new System.Drawing.Point(1116, 25);
|
||||
this.panel21.Name = "panel21";
|
||||
this.panel21.Size = new System.Drawing.Size(185, 190);
|
||||
this.panel21.TabIndex = 24;
|
||||
@@ -6078,7 +6079,7 @@
|
||||
// button67
|
||||
//
|
||||
this.button67.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.button67.Location = new System.Drawing.Point(1407, 0);
|
||||
this.button67.Location = new System.Drawing.Point(1207, 0);
|
||||
this.button67.Name = "button67";
|
||||
this.button67.Size = new System.Drawing.Size(97, 23);
|
||||
this.button67.TabIndex = 23;
|
||||
@@ -6111,7 +6112,7 @@
|
||||
this.dGVStroje.ReadOnly = true;
|
||||
this.dGVStroje.RowHeadersVisible = false;
|
||||
this.dGVStroje.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
|
||||
this.dGVStroje.Size = new System.Drawing.Size(1502, 310);
|
||||
this.dGVStroje.Size = new System.Drawing.Size(1302, 310);
|
||||
this.dGVStroje.TabIndex = 0;
|
||||
this.dGVStroje.RowEnter += new System.Windows.Forms.DataGridViewCellEventHandler(this.dGVStroje_RowEnter);
|
||||
//
|
||||
@@ -6307,12 +6308,13 @@
|
||||
this.dGVPU.ReadOnly = true;
|
||||
this.dGVPU.RowHeadersVisible = false;
|
||||
this.dGVPU.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
|
||||
this.dGVPU.Size = new System.Drawing.Size(1502, 153);
|
||||
this.dGVPU.Size = new System.Drawing.Size(1302, 153);
|
||||
this.dGVPU.TabIndex = 0;
|
||||
//
|
||||
// tabPage11
|
||||
//
|
||||
this.tabPage11.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
this.tabPage11.Controls.Add(this.button203);
|
||||
this.tabPage11.Controls.Add(this.button150);
|
||||
this.tabPage11.Controls.Add(this.panel56);
|
||||
this.tabPage11.Controls.Add(this.button145);
|
||||
@@ -6324,20 +6326,31 @@
|
||||
this.tabPage11.Controls.Add(this.dataGridView8);
|
||||
this.tabPage11.Location = new System.Drawing.Point(4, 22);
|
||||
this.tabPage11.Name = "tabPage11";
|
||||
this.tabPage11.Size = new System.Drawing.Size(1506, 519);
|
||||
this.tabPage11.Size = new System.Drawing.Size(1306, 519);
|
||||
this.tabPage11.TabIndex = 16;
|
||||
this.tabPage11.Text = "Údržby a opravy";
|
||||
this.tabPage11.UseVisualStyleBackColor = true;
|
||||
this.tabPage11.Enter += new System.EventHandler(this.tabPage11_Enter_1);
|
||||
//
|
||||
// button203
|
||||
//
|
||||
this.button203.Location = new System.Drawing.Point(392, 0);
|
||||
this.button203.Name = "button203";
|
||||
this.button203.Size = new System.Drawing.Size(99, 34);
|
||||
this.button203.TabIndex = 35;
|
||||
this.button203.Text = "Zmazať údržbu/opravu";
|
||||
this.button203.UseVisualStyleBackColor = true;
|
||||
this.button203.Click += new System.EventHandler(this.button203_Click);
|
||||
//
|
||||
// button150
|
||||
//
|
||||
this.button150.Location = new System.Drawing.Point(294, 0);
|
||||
this.button150.Name = "button150";
|
||||
this.button150.Size = new System.Drawing.Size(99, 34);
|
||||
this.button150.TabIndex = 34;
|
||||
this.button150.Text = "Doplniť fakturačné údaje";
|
||||
this.button150.Text = "Editovať údržbu/opravu";
|
||||
this.button150.UseVisualStyleBackColor = true;
|
||||
this.button150.Click += new System.EventHandler(this.button150_Click);
|
||||
//
|
||||
// panel56
|
||||
//
|
||||
@@ -6910,6 +6923,7 @@
|
||||
this.textBox21.Name = "textBox21";
|
||||
this.textBox21.Size = new System.Drawing.Size(166, 20);
|
||||
this.textBox21.TabIndex = 14;
|
||||
this.textBox21.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.textBox21_KeyPress);
|
||||
//
|
||||
// label26
|
||||
//
|
||||
@@ -7031,7 +7045,7 @@
|
||||
this.panel25.Controls.Add(this.panel26);
|
||||
this.panel25.Controls.Add(this.groupBox28);
|
||||
this.panel25.Controls.Add(this.groupBox31);
|
||||
this.panel25.Location = new System.Drawing.Point(988, 25);
|
||||
this.panel25.Location = new System.Drawing.Point(1117, 27);
|
||||
this.panel25.Name = "panel25";
|
||||
this.panel25.Size = new System.Drawing.Size(184, 190);
|
||||
this.panel25.TabIndex = 28;
|
||||
@@ -7118,7 +7132,7 @@
|
||||
// button73
|
||||
//
|
||||
this.button73.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.button73.Location = new System.Drawing.Point(1078, 0);
|
||||
this.button73.Location = new System.Drawing.Point(1204, 3);
|
||||
this.button73.Name = "button73";
|
||||
this.button73.Size = new System.Drawing.Size(97, 23);
|
||||
this.button73.TabIndex = 27;
|
||||
@@ -7139,8 +7153,9 @@
|
||||
this.dataGridView8.ReadOnly = true;
|
||||
this.dataGridView8.RowHeadersVisible = false;
|
||||
this.dataGridView8.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
|
||||
this.dataGridView8.Size = new System.Drawing.Size(1173, 457);
|
||||
this.dataGridView8.Size = new System.Drawing.Size(1301, 482);
|
||||
this.dataGridView8.TabIndex = 26;
|
||||
this.dataGridView8.SelectionChanged += new System.EventHandler(this.dataGridView8_SelectionChanged);
|
||||
//
|
||||
// tabPage12
|
||||
//
|
||||
@@ -7164,7 +7179,7 @@
|
||||
this.tabPage12.Controls.Add(this.dataGridView7);
|
||||
this.tabPage12.Location = new System.Drawing.Point(4, 22);
|
||||
this.tabPage12.Name = "tabPage12";
|
||||
this.tabPage12.Size = new System.Drawing.Size(1506, 519);
|
||||
this.tabPage12.Size = new System.Drawing.Size(1306, 519);
|
||||
this.tabPage12.TabIndex = 17;
|
||||
this.tabPage12.Text = "Naceňovanie";
|
||||
this.tabPage12.UseVisualStyleBackColor = true;
|
||||
@@ -7511,7 +7526,7 @@
|
||||
this.tabPage13.Controls.Add(this.dataGridView10);
|
||||
this.tabPage13.Location = new System.Drawing.Point(4, 22);
|
||||
this.tabPage13.Name = "tabPage13";
|
||||
this.tabPage13.Size = new System.Drawing.Size(1506, 519);
|
||||
this.tabPage13.Size = new System.Drawing.Size(1306, 519);
|
||||
this.tabPage13.TabIndex = 18;
|
||||
this.tabPage13.Text = "Vyhodnocovanie";
|
||||
this.tabPage13.UseVisualStyleBackColor = true;
|
||||
@@ -7553,7 +7568,7 @@
|
||||
this.tabPage14.Controls.Add(this.trackBar1);
|
||||
this.tabPage14.Location = new System.Drawing.Point(4, 22);
|
||||
this.tabPage14.Name = "tabPage14";
|
||||
this.tabPage14.Size = new System.Drawing.Size(1506, 519);
|
||||
this.tabPage14.Size = new System.Drawing.Size(1306, 519);
|
||||
this.tabPage14.TabIndex = 19;
|
||||
this.tabPage14.Text = "Zoznam firiem";
|
||||
this.tabPage14.UseVisualStyleBackColor = true;
|
||||
@@ -7976,7 +7991,7 @@
|
||||
this.tabPage15.Controls.Add(this.panel53);
|
||||
this.tabPage15.Location = new System.Drawing.Point(4, 22);
|
||||
this.tabPage15.Name = "tabPage15";
|
||||
this.tabPage15.Size = new System.Drawing.Size(1506, 519);
|
||||
this.tabPage15.Size = new System.Drawing.Size(1306, 519);
|
||||
this.tabPage15.TabIndex = 20;
|
||||
this.tabPage15.Text = "Nástroje";
|
||||
this.tabPage15.UseVisualStyleBackColor = true;
|
||||
@@ -8715,22 +8730,22 @@
|
||||
this.chart2.BackColor = System.Drawing.Color.DarkGray;
|
||||
this.chart2.BorderlineColor = System.Drawing.Color.Black;
|
||||
this.chart2.BorderlineDashStyle = System.Windows.Forms.DataVisualization.Charting.ChartDashStyle.Solid;
|
||||
chartArea6.Name = "ChartArea1";
|
||||
this.chart2.ChartAreas.Add(chartArea6);
|
||||
chartArea8.Name = "ChartArea1";
|
||||
this.chart2.ChartAreas.Add(chartArea8);
|
||||
this.chart2.Dock = System.Windows.Forms.DockStyle.Bottom;
|
||||
legend6.Name = "Legend1";
|
||||
this.chart2.Legends.Add(legend6);
|
||||
legend8.Name = "Legend1";
|
||||
this.chart2.Legends.Add(legend8);
|
||||
this.chart2.Location = new System.Drawing.Point(0, 287);
|
||||
this.chart2.Name = "chart2";
|
||||
series9.ChartArea = "ChartArea1";
|
||||
series9.IsValueShownAsLabel = true;
|
||||
series9.Legend = "Legend1";
|
||||
series9.Name = "Rozmer";
|
||||
series9.Points.Add(dataPoint9);
|
||||
series9.Points.Add(dataPoint10);
|
||||
series9.Points.Add(dataPoint11);
|
||||
series9.Points.Add(dataPoint12);
|
||||
this.chart2.Series.Add(series9);
|
||||
series12.ChartArea = "ChartArea1";
|
||||
series12.IsValueShownAsLabel = true;
|
||||
series12.Legend = "Legend1";
|
||||
series12.Name = "Rozmer";
|
||||
series12.Points.Add(dataPoint13);
|
||||
series12.Points.Add(dataPoint14);
|
||||
series12.Points.Add(dataPoint15);
|
||||
series12.Points.Add(dataPoint16);
|
||||
this.chart2.Series.Add(series12);
|
||||
this.chart2.Size = new System.Drawing.Size(407, 203);
|
||||
this.chart2.TabIndex = 2;
|
||||
this.chart2.Text = "chart2";
|
||||
@@ -8769,7 +8784,7 @@
|
||||
this.tabPage16.Controls.Add(this.textBox5);
|
||||
this.tabPage16.Location = new System.Drawing.Point(4, 22);
|
||||
this.tabPage16.Name = "tabPage16";
|
||||
this.tabPage16.Size = new System.Drawing.Size(1506, 519);
|
||||
this.tabPage16.Size = new System.Drawing.Size(1306, 519);
|
||||
this.tabPage16.TabIndex = 21;
|
||||
this.tabPage16.Text = "Výkresy";
|
||||
this.tabPage16.UseVisualStyleBackColor = true;
|
||||
@@ -8909,7 +8924,7 @@
|
||||
this.tabPage17.Controls.Add(this.textBox34);
|
||||
this.tabPage17.Location = new System.Drawing.Point(4, 22);
|
||||
this.tabPage17.Name = "tabPage17";
|
||||
this.tabPage17.Size = new System.Drawing.Size(1506, 519);
|
||||
this.tabPage17.Size = new System.Drawing.Size(1306, 519);
|
||||
this.tabPage17.TabIndex = 22;
|
||||
this.tabPage17.Text = "Sklad";
|
||||
this.tabPage17.UseVisualStyleBackColor = true;
|
||||
@@ -9128,7 +9143,7 @@
|
||||
this.tabPage18.Controls.Add(this.dataGridView14);
|
||||
this.tabPage18.Location = new System.Drawing.Point(4, 22);
|
||||
this.tabPage18.Name = "tabPage18";
|
||||
this.tabPage18.Size = new System.Drawing.Size(1506, 519);
|
||||
this.tabPage18.Size = new System.Drawing.Size(1306, 519);
|
||||
this.tabPage18.TabIndex = 23;
|
||||
this.tabPage18.Text = "Požiadavky/Pripomienky";
|
||||
this.tabPage18.UseVisualStyleBackColor = true;
|
||||
@@ -10078,12 +10093,25 @@
|
||||
this.textBox52.TabIndex = 30;
|
||||
this.textBox52.TextChanged += new System.EventHandler(this.textBox52_TextChanged);
|
||||
//
|
||||
// button202
|
||||
//
|
||||
this.button202.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.button202.BackColor = System.Drawing.Color.Coral;
|
||||
this.button202.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
||||
this.button202.Location = new System.Drawing.Point(742, 1);
|
||||
this.button202.Name = "button202";
|
||||
this.button202.Size = new System.Drawing.Size(75, 59);
|
||||
this.button202.TabIndex = 32;
|
||||
this.button202.Text = "Zrušiť filtre";
|
||||
this.button202.UseVisualStyleBackColor = false;
|
||||
this.button202.Click += new System.EventHandler(this.button202_Click);
|
||||
//
|
||||
// tabPage20
|
||||
//
|
||||
this.tabPage20.Controls.Add(this.panel69);
|
||||
this.tabPage20.Location = new System.Drawing.Point(4, 22);
|
||||
this.tabPage20.Name = "tabPage20";
|
||||
this.tabPage20.Size = new System.Drawing.Size(1506, 519);
|
||||
this.tabPage20.Size = new System.Drawing.Size(1306, 519);
|
||||
this.tabPage20.TabIndex = 25;
|
||||
this.tabPage20.Text = "Evidencia brúsených nástrojov";
|
||||
this.tabPage20.UseVisualStyleBackColor = true;
|
||||
@@ -12132,19 +12160,6 @@
|
||||
this.label182.Text = "↗";
|
||||
this.label182.Click += new System.EventHandler(this.label182_Click);
|
||||
//
|
||||
// button202
|
||||
//
|
||||
this.button202.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.button202.BackColor = System.Drawing.Color.Coral;
|
||||
this.button202.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
|
||||
this.button202.Location = new System.Drawing.Point(742, 1);
|
||||
this.button202.Name = "button202";
|
||||
this.button202.Size = new System.Drawing.Size(75, 59);
|
||||
this.button202.TabIndex = 32;
|
||||
this.button202.Text = "Zrušiť filtre";
|
||||
this.button202.UseVisualStyleBackColor = false;
|
||||
this.button202.Click += new System.EventHandler(this.button202_Click);
|
||||
//
|
||||
// frmMain
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
@@ -13303,6 +13318,7 @@
|
||||
private System.Windows.Forms.Label label227;
|
||||
private System.Windows.Forms.TextBox textBox52;
|
||||
private System.Windows.Forms.Button button202;
|
||||
private System.Windows.Forms.Button button203;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
170
Mip/frmMain.cs
170
Mip/frmMain.cs
@@ -5065,14 +5065,13 @@ namespace Mip
|
||||
{
|
||||
if (panelPridatUdrzbu.Visible == false) panelPridatUdrzbu.Visible = true;
|
||||
else panelPridatUdrzbu.Visible = false;
|
||||
|
||||
|
||||
}
|
||||
|
||||
private void panelPridatUdrzbu_Leave(object sender, EventArgs e)
|
||||
{
|
||||
comboBox6.DataSource = null;
|
||||
comboBox6.Enabled = false;
|
||||
comboBox15.Enabled = false;
|
||||
label45.Enabled = false;
|
||||
panelPridatUdrzbu.Visible = false;
|
||||
comboBox5.Enabled = false; button79.Enabled = false; label44.Enabled = false;
|
||||
@@ -5089,6 +5088,7 @@ namespace Mip
|
||||
|
||||
private void comboBox8_SelectedValueChanged(object sender, EventArgs e)
|
||||
{
|
||||
comboBox6.DataSource = null;
|
||||
comboBox6.Items.Clear();
|
||||
string cmd = "SELECT CONCAT (`Vyrobca`, ' - ', `ModelStroja`) AS `Stroj`, `IDStroj` FROM `mip`.tabstroje WHERE `Dielna` = '" + comboBox8.Text + "';";
|
||||
DataTable tblStroje = new DataTable();
|
||||
@@ -5159,6 +5159,7 @@ namespace Mip
|
||||
label43.Enabled = true;
|
||||
if (comboBox5.Text == "Plánovaná údržba")
|
||||
{
|
||||
comboBox15.DataSource = null;
|
||||
comboBox15.Items.Clear();
|
||||
string cmd = "select `popisPU`, `IDUdrzba` from `tabudrzba` where IDstroja =" + comboBox6.SelectedValue.ToString() + ";";
|
||||
DataTable tblPU = new DataTable();
|
||||
@@ -7414,7 +7415,7 @@ namespace Mip
|
||||
|
||||
if (comboBox15.Text != "" & comboBox15.Enabled == true)
|
||||
{
|
||||
strUdrzbaValue = comboBox15.SelectedValue.ToString() + ", ";
|
||||
strUdrzbaValue = comboBox15.SelectedValue.ToString();
|
||||
strUdrzbaTXT = " `IDUdrzba`,";
|
||||
}
|
||||
else
|
||||
@@ -7423,40 +7424,48 @@ namespace Mip
|
||||
strUdrzbaTXT = "";
|
||||
}
|
||||
|
||||
var strCenaValue = textBox21.Text == string.Empty ? "null" : $"'{textBox21.Text.Replace(",", ".")}'";
|
||||
|
||||
string cmd;
|
||||
string format = "yyyy-MM-dd";
|
||||
|
||||
cmd = @"INSERT INTO `mip`.`tabudrzbyaopravy` (`Datum`, `Operacia`," + strUdrzbaTXT + @" `IDStroja`, `NazovFirmy`, `CasZacatia`, `CasUkoncenia`, `Cena`, `Poznamka`, `CisloDokladu`)
|
||||
VALUES ( DATE(NOW()), '"
|
||||
+ comboBox5.Text + "', "
|
||||
+ strUdrzbaValue
|
||||
+ comboBox6.SelectedValue.ToString() + ", '"
|
||||
+ comboBox7.Text + "', '"
|
||||
+ dateTimePicker5.Value.ToString(format) + " " + numericUpDown22.Value.ToString() + ":" + numericUpDown21.Value.ToString() + ":00', '"
|
||||
+ dateTimePicker2.Value.ToString(format) + " " + numericUpDown17.Value.ToString() + ":" + numericUpDown18.Value.ToString() + ":00', "
|
||||
+ textBox21.Text + ", '"
|
||||
+ textBox20.Text + "', '"
|
||||
+ textBox3.Text + "');";
|
||||
if (button70.Text == "Pridať opravu")
|
||||
{
|
||||
cmd = $@"INSERT INTO `mip`.`tabudrzbyaopravy` (`Datum`, `Operacia`,{strUdrzbaTXT} `IDStroja`, `NazovFirmy`, `CasZacatia`, `CasUkoncenia`, `Cena`, `Poznamka`, `CisloDokladu`)
|
||||
VALUES ( DATE(NOW()),
|
||||
'{comboBox5.Text}',
|
||||
'{strUdrzbaValue}',
|
||||
{comboBox6.SelectedValue.ToString()},
|
||||
'{comboBox7.Text}',
|
||||
'{dateTimePicker5.Value.ToString(format)} {numericUpDown22.Value.ToString()}:{numericUpDown21.Value.ToString()}:00',
|
||||
'{dateTimePicker2.Value.ToString(format)} {numericUpDown17.Value.ToString()}:{numericUpDown18.Value.ToString()}:00',
|
||||
{strCenaValue},
|
||||
'{textBox20.Text}',
|
||||
'{textBox3.Text}');";
|
||||
|
||||
classSQL.SQL(cmd);
|
||||
panelPridatUdrzbu.Visible = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
strUdrzbaTXT = strUdrzbaTXT == string.Empty ? string.Empty : strUdrzbaTXT.Replace(",", "");
|
||||
|
||||
/*
|
||||
cmd = $@"UPDATE `mip`.`tabudrzbyaopravy` SET
|
||||
`Operacia` = '{comboBox5.Text}',
|
||||
{strUdrzbaTXT} = '{strUdrzbaValue}',
|
||||
`IDStroja` = {comboBox6.SelectedValue.ToString()},
|
||||
`NazovFirmy` = '{comboBox7.Text}',
|
||||
`CasZacatia` = '{dateTimePicker5.Value.ToString(format)} {numericUpDown22.Value.ToString()}:{numericUpDown21.Value.ToString()}:00',
|
||||
`CasUkoncenia` = '{dateTimePicker2.Value.ToString(format)} {numericUpDown17.Value.ToString()}:{numericUpDown18.Value.ToString()}:00',
|
||||
`Cena` = {strCenaValue},
|
||||
`Poznamka` = '{textBox20.Text}',
|
||||
`CisloDokladu` = '{textBox3.Text}'
|
||||
WHERE `IDPUOPR` = {button70.Tag.ToString()};";
|
||||
|
||||
INSERT INTO `mip`.`tabudrzbyaopravy` (`Datum`, `Operacia`, `IDStroja`, `NazovFirmy`, `CasZacatia`, `CasUkoncenia`, `Cena`, `Poznamka`, `CisloDokladu`)
|
||||
VALUES ( DATE(NOW()), 'Plánovaná údržba', 4, 'Kompozitum', '2015-10-22 10:27:45', '2015-10-22 10:27:45', 100, 'aa', '1258f');
|
||||
|
||||
DateTime dt;
|
||||
dt = DateTime.Now;
|
||||
string format = "yyyy-MM-dd";
|
||||
|
||||
|
||||
string TypDopytu = "", StatusDopytu = "", PotvrdDatum = "";
|
||||
PotvrdDatum = dateTimePicker1.Value.ToString(format);
|
||||
|
||||
|
||||
|
||||
*/
|
||||
classSQL.SQL(cmd);
|
||||
panelPridatUdrzbu.Visible = false;
|
||||
}
|
||||
refreshUdrzby();
|
||||
}
|
||||
|
||||
private void panelPridatUdrzbu_VisibleChanged(object sender, EventArgs e)
|
||||
@@ -7472,6 +7481,8 @@ namespace Mip
|
||||
comboBox6.Items.Clear();
|
||||
comboBox5.Items.Clear();
|
||||
comboBox7.Items.Clear();
|
||||
comboBox15.DataSource = null;
|
||||
comboBox15.Items.Clear();
|
||||
textBox21.Text = "";
|
||||
textBox20.Text = "";
|
||||
textBox3.Text = "";
|
||||
@@ -7538,7 +7549,6 @@ namespace Mip
|
||||
button147.Text = "Zahájiť odstávku";
|
||||
}
|
||||
else panel56.Visible = false;
|
||||
|
||||
}
|
||||
|
||||
private void panel56_Leave(object sender, EventArgs e)
|
||||
@@ -7547,13 +7557,28 @@ namespace Mip
|
||||
}
|
||||
|
||||
private void tabPage11_Enter_1(object sender, EventArgs e)
|
||||
{
|
||||
refreshUdrzby();
|
||||
}
|
||||
|
||||
private void refreshUdrzby()
|
||||
{
|
||||
string cmd;
|
||||
DataTable tabUdrzby = new DataTable();
|
||||
cmd = "select * from `pohladudrzby`;";
|
||||
cmd = "select * from `pohladudrzby` ORDER BY `Datum` desc;";
|
||||
classSQL.SQL(cmd, out tabUdrzby);
|
||||
dataGridView8.DataSource = tabUdrzby;
|
||||
|
||||
formatDGVUdrzby();
|
||||
}
|
||||
|
||||
private void formatDGVUdrzby()
|
||||
{
|
||||
dataGridView8.DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleLeft;
|
||||
dataGridView8.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.DisplayedCells;
|
||||
dataGridView8.Columns["IDStroj"].Visible = false;
|
||||
dataGridView8.Columns["IDUdrzba"].Visible = false;
|
||||
dataGridView8.Columns["IDPUOPR"].Visible = false;
|
||||
}
|
||||
|
||||
private void button148_Click(object sender, EventArgs e)
|
||||
@@ -7684,7 +7709,6 @@ namespace Mip
|
||||
panel56.Visible = false;
|
||||
MessageBox.Show("Odstávka je už ukončená!");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private void button147_Click(object sender, EventArgs e)
|
||||
@@ -7731,7 +7755,7 @@ namespace Mip
|
||||
break;
|
||||
}
|
||||
panel56.Visible = false;
|
||||
|
||||
refreshUdrzby();
|
||||
}
|
||||
|
||||
private void toolStripStatusLabel6_Click(object sender, EventArgs e)
|
||||
@@ -10385,5 +10409,85 @@ namespace Mip
|
||||
textBox52.Enabled = false;
|
||||
FilterQueue.Clear();
|
||||
}
|
||||
|
||||
private void button150_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (dataGridView8.SelectedRows.Count == 1)
|
||||
{
|
||||
DateTime dtZacatie = Convert.ToDateTime(dataGridView8.SelectedRows[0].Cells["CasZacatia"].Value);
|
||||
DateTime dtUkoncenie = Convert.ToDateTime(dataGridView8.SelectedRows[0].Cells["CasUkoncenia"].Value);
|
||||
|
||||
var IdUdrzbaSelected = Convert.ToInt32(dataGridView8.Rows[dataGridView8.SelectedRows[0].Index].Cells["IDUdrzba"].Value).ToString();
|
||||
|
||||
|
||||
panelPridatUdrzbu.Visible = true;
|
||||
|
||||
comboBox8.Text = dataGridView8.Rows[dataGridView8.SelectedRows[0].Index].Cells["Dielna"].Value.ToString();
|
||||
comboBox6.Text = dataGridView8.Rows[dataGridView8.SelectedRows[0].Index].Cells["Stroj"].Value.ToString();
|
||||
comboBox5.Text = dataGridView8.Rows[dataGridView8.SelectedRows[0].Index].Cells["Operacia"].Value.ToString();
|
||||
|
||||
comboBox15.SelectedValue = IdUdrzbaSelected;
|
||||
comboBox7.Text = dataGridView8.Rows[dataGridView8.SelectedRows[0].Index].Cells["NazovFirmy"].Value.ToString();
|
||||
dateTimePicker5.Value = dtZacatie.Date;
|
||||
numericUpDown22.Value = dtZacatie.Hour;
|
||||
numericUpDown21.Value = dtZacatie.Minute;
|
||||
dateTimePicker2.Value = dtUkoncenie.Date;
|
||||
numericUpDown17.Value = dtUkoncenie.Hour;
|
||||
numericUpDown18.Value = dtUkoncenie.Minute;
|
||||
textBox21.Text = dataGridView8.Rows[dataGridView8.SelectedRows[0].Index].Cells["Cena"].Value.ToString();
|
||||
textBox20.Text = dataGridView8.Rows[dataGridView8.SelectedRows[0].Index].Cells["Poznamka"].Value.ToString();
|
||||
textBox3.Text = dataGridView8.Rows[dataGridView8.SelectedRows[0].Index].Cells["CisloDokladu"].Value.ToString();
|
||||
button70.Tag = dataGridView8.Rows[dataGridView8.SelectedRows[0].Index].Cells["IDPUOPR"].Value.ToString();
|
||||
button70.Text = "Uložiť záznam";
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
panel56.Visible = false;
|
||||
MessageBox.Show("Musí byť vybraný presne jeden záznam na editáciu!");
|
||||
}
|
||||
|
||||
refreshUdrzby();
|
||||
}
|
||||
|
||||
private void button203_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (dataGridView8.SelectedRows.Count == 1)
|
||||
{
|
||||
if (MessageBox.Show("Naozaj vymazať vybraný záznam údržby/opravy?", $"Vymazanie záznamu pre stroj : {dataGridView8.Rows[dataGridView8.SelectedRows[0].Index].Cells["Stroj"].Value.ToString()}", MessageBoxButtons.YesNo) == DialogResult.Yes)
|
||||
{
|
||||
string cmdDelete = $"DELETE FROM `mip`.`tabudrzbyaopravy` WHERE `IDPUOPR` = {dataGridView8.SelectedRows[0].Cells["IDPUOPR"].Value.ToString()};";
|
||||
classSQL.SQL(cmdDelete);
|
||||
}
|
||||
refreshUdrzby();
|
||||
}
|
||||
else
|
||||
{
|
||||
panel56.Visible = false;
|
||||
MessageBox.Show("Musí byť vybraný presne jeden záznam na editáciu!");
|
||||
}
|
||||
}
|
||||
|
||||
private void dataGridView8_SelectionChanged(object sender, EventArgs e)
|
||||
{
|
||||
if (dataGridView8.SelectedRows.Count == 1)
|
||||
{
|
||||
if (dataGridView8.SelectedRows[0].Cells["CasUkoncenia"].Value.ToString() == string.Empty)
|
||||
{
|
||||
button150.Enabled = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
button150.Enabled = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void textBox21_KeyPress(object sender, KeyPressEventArgs e)
|
||||
{
|
||||
float floatResult;
|
||||
if (e.KeyChar == '.') e.KeyChar = ',';
|
||||
if (!(float.TryParse(textBox21.Text + e.KeyChar, out floatResult)) && (int)e.KeyChar != 8) e.KeyChar = '\0';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user