diff --git a/.vs/Mip_v1/v16/.suo b/.vs/Mip_v1/v16/.suo index e033b92..337f2cd 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 389e10b..7a9bc47 100644 --- a/Mip/Mip.csproj +++ b/Mip/Mip.csproj @@ -294,6 +294,12 @@ frmTlacitStatistiku.cs + + Form + + + frmVybratTypVyhodnotenia.cs + Form @@ -372,9 +378,6 @@ frmPridatEditovatNastroj.cs - - frmPridatNastrojeDoSkladu.cs - frmPrijemDoSkladu.cs @@ -404,6 +407,9 @@ frmTlacitStatistiku.cs + + frmVybratTypVyhodnotenia.cs + frmVydajZoSkladu.cs diff --git a/Mip/bin/Debug/Mip.exe b/Mip/bin/Debug/Mip.exe index 7458e4d..91f6ba2 100644 Binary files a/Mip/bin/Debug/Mip.exe and b/Mip/bin/Debug/Mip.exe differ diff --git a/Mip/bin/Debug/Mip.pdb b/Mip/bin/Debug/Mip.pdb index 7c391f4..0dbfe24 100644 Binary files a/Mip/bin/Debug/Mip.pdb and b/Mip/bin/Debug/Mip.pdb differ diff --git a/Mip/classDiskOperations.cs b/Mip/classDiskOperations.cs index 25e10d0..bdd5530 100644 --- a/Mip/classDiskOperations.cs +++ b/Mip/classDiskOperations.cs @@ -26,14 +26,14 @@ namespace Mip foreach (System.IO.FileInfo file in adresar.GetFiles()) file.Delete(); foreach (System.IO.DirectoryInfo subDirectory in adresar.GetDirectories()) subDirectory.Delete(true); - //AddPathProtection(TempPath); + AddPathProtection(TempPath); } // adresar neexistuje - vytvorenie else { Directory.CreateDirectory(TempPath); - //AddPathProtection(TempPath); + AddPathProtection(TempPath); } } diff --git a/Mip/classGlobal.cs b/Mip/classGlobal.cs index bb3dca9..f98c877 100644 --- a/Mip/classGlobal.cs +++ b/Mip/classGlobal.cs @@ -25,7 +25,7 @@ namespace Mip public static void CreateRamDisk() { classDiskOperations.CreatePath(); - //classDiskOperations.RemoveCurrentUserProtecion(classDiskOperations.TempPath); + classDiskOperations.RemoveCurrentUserProtecion(classDiskOperations.TempPath); classDiskOperations.MapDrive(Disk, classDiskOperations.TempPath); } @@ -37,11 +37,9 @@ namespace Mip public static void DeleteRamDisk() { - string TempPath = Application.StartupPath + @"\MipTemp"; classDiskOperations.CreatePath(); classDiskOperations.UnmapDrive(Disk); - classDiskOperations.RemovePath(TempPath); - //classDiskOperations.AddCurrentUserProtecion(classDiskOperations.TempPath); + classDiskOperations.AddCurrentUserProtecion(classDiskOperations.TempPath); } @@ -495,9 +493,10 @@ namespace Mip PingReply pingReply; IPaddress = "192.168.1.12"; //IP Adresa MariaDB pre VLAN1 - + //ked sa programuje mino firmu aby to hned naslo staticku ip - IPaddress = "87.197.164.107"; + //IPaddress = "87.197.164.107"; + pingReply = pingIP.Send(IPaddress); if (pingReply.Status.ToString() == "Success") { @@ -653,15 +652,16 @@ namespace Mip break; case "Ziadanka-zobrazit vsetky": - switch (_IDUSER) + switch(_IDUSER) { - case 1: - case 4: - case 6: - case 9: + case 1: + case 4: + case 9: case 13: + case 26: case 28: case 29: + case 30: bReturnValue = true; break; @@ -677,7 +677,6 @@ namespace Mip { case 1: case 4: - case 6: case 9: case 13: case 24: @@ -711,12 +710,12 @@ namespace Mip } break; - default: + default : bReturnValue = false; break; } - + return bReturnValue; } diff --git a/Mip/classSQL.cs b/Mip/classSQL.cs index bab0c0e..e7a0a4d 100644 --- a/Mip/classSQL.cs +++ b/Mip/classSQL.cs @@ -38,7 +38,7 @@ namespace Mip string CmdString = ("SELECT `DataSuboru`,(LENGTH (`DataSuboru`)) AS `size` FROM `tabformular` WHERE `NazovSuboru` LIKE '%"+_nazov+"%';"); MyCommand = new MySqlCommand(CmdString, MyConnection); - + MyConnection.Open(); myData = MyCommand.ExecuteReader(); @@ -316,7 +316,7 @@ namespace Mip if (MariaDBConnection != null) MariaDBConnection.Close(); - string connStr = String.Format("server={0}; database={1}; user id={2}; password={3}; pooling=false", classUser.MariaDBServerIPAddress, "mip", "mip", "mip@2013"); + string connStr = String.Format("server={0}; database={1}; user id={2}; password={3}; pooling={4}; default command timeout={5};", classUser.MariaDBServerIPAddress, "mip", "mip", "mip@2013", "false", "3000"); MariaDBConnection = new MySqlConnection(connStr); try { @@ -335,7 +335,7 @@ namespace Mip if (dr == DialogResult.Yes) { classGlobal.SetServerIP(); - connStr = String.Format("server={0}; database={1}; user id={2}; password={3}; pooling=false", classUser.MariaDBServerIPAddress, "mip", "mip", "mip@2013"); + connStr = String.Format("server={0}; database={1}; user id={2}; password={3}; pooling={4}; default command timeout={5};", classUser.MariaDBServerIPAddress, "mip", "mip", "mip@2013", "false", "3000"); MariaDBConnection = new MySqlConnection(connStr); try { @@ -370,6 +370,15 @@ namespace Mip private static void MariaDBCommand(string Command, bool Zistipocet) { + //koli zrychleniu je nastavene limit 500 + string cmd = Command.ToString(); + if (cmd.Substring(0, 6).ToUpper() == "SELECT") + { + if (cmd.EndsWith(";")) cmd = cmd.Remove(cmd.Length - 1, 1) + " LIMIT " + classUser.LimitSqlPrikazu.ToString() + ";"; + else cmd = cmd + " LIMIT " + classUser.LimitSqlPrikazu.ToString() + ";"; + } + Command = cmd; + try { DataTable celkovypocet = new DataTable(); diff --git a/Mip/classUser.cs b/Mip/classUser.cs index f56ed4f..5cfb449 100644 --- a/Mip/classUser.cs +++ b/Mip/classUser.cs @@ -27,6 +27,7 @@ namespace Mip public static Int32 IndexChat; public static Int32 IndexNacenovanie; public static Int32 IndexPoziadavka; + public static Int32 LimitSqlPrikazu; //public static Int32 IndexEXP; public static Int32 IndexZoznamVyrobkov; public static string strLastSelect; diff --git a/Mip/frmLogin.cs b/Mip/frmLogin.cs index 9309f37..84806ce 100644 --- a/Mip/frmLogin.cs +++ b/Mip/frmLogin.cs @@ -52,8 +52,7 @@ namespace Mip classUser.ID = Convert.ToInt32(myDrow["IDUsers"]); classUser.Tab = Convert.ToInt32( myDrow[5]); classUser.Zaradenie = myDrow[7].ToString(); - - + this.Hide(); //Kontrola hesla } else diff --git a/Mip/frmMain.Designer.cs b/Mip/frmMain.Designer.cs index dd64750..845c2b0 100644 --- a/Mip/frmMain.Designer.cs +++ b/Mip/frmMain.Designer.cs @@ -28,20 +28,20 @@ /// private void InitializeComponent() { - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataVisualization.Charting.ChartArea chartArea3 = new System.Windows.Forms.DataVisualization.Charting.ChartArea(); - System.Windows.Forms.DataVisualization.Charting.Legend legend3 = new System.Windows.Forms.DataVisualization.Charting.Legend(); - System.Windows.Forms.DataVisualization.Charting.Series series4 = new System.Windows.Forms.DataVisualization.Charting.Series(); - System.Windows.Forms.DataVisualization.Charting.Series series5 = new System.Windows.Forms.DataVisualization.Charting.Series(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataVisualization.Charting.ChartArea chartArea1 = new System.Windows.Forms.DataVisualization.Charting.ChartArea(); + System.Windows.Forms.DataVisualization.Charting.Legend legend1 = new System.Windows.Forms.DataVisualization.Charting.Legend(); + System.Windows.Forms.DataVisualization.Charting.Series series1 = new System.Windows.Forms.DataVisualization.Charting.Series(); + System.Windows.Forms.DataVisualization.Charting.Series series2 = new System.Windows.Forms.DataVisualization.Charting.Series(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmMain)); - System.Windows.Forms.DataVisualization.Charting.ChartArea chartArea4 = new System.Windows.Forms.DataVisualization.Charting.ChartArea(); - System.Windows.Forms.DataVisualization.Charting.Legend legend4 = new System.Windows.Forms.DataVisualization.Charting.Legend(); - System.Windows.Forms.DataVisualization.Charting.Series series6 = new System.Windows.Forms.DataVisualization.Charting.Series(); - System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint5 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(1D, 9.5D); - System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint6 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(2D, 9.25D); - System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint7 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(3D, 8.84D); - System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint8 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(4D, 8.67D); + System.Windows.Forms.DataVisualization.Charting.ChartArea chartArea2 = new System.Windows.Forms.DataVisualization.Charting.ChartArea(); + System.Windows.Forms.DataVisualization.Charting.Legend legend2 = new System.Windows.Forms.DataVisualization.Charting.Legend(); + System.Windows.Forms.DataVisualization.Charting.Series series3 = new System.Windows.Forms.DataVisualization.Charting.Series(); + System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint1 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(1D, 9.5D); + System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint2 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(2D, 9.25D); + System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint3 = new System.Windows.Forms.DataVisualization.Charting.DataPoint(3D, 8.84D); + System.Windows.Forms.DataVisualization.Charting.DataPoint dataPoint4 = 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(); @@ -333,6 +333,18 @@ this.label120 = new System.Windows.Forms.Label(); this.chart1 = new System.Windows.Forms.DataVisualization.Charting.Chart(); this.tabPage9 = new System.Windows.Forms.TabPage(); + this.panel74 = new System.Windows.Forms.Panel(); + this.textBox50 = new System.Windows.Forms.TextBox(); + this.button196 = new System.Windows.Forms.Button(); + this.panel72 = new System.Windows.Forms.Panel(); + this.textBox45 = new System.Windows.Forms.TextBox(); + this.button194 = new System.Windows.Forms.Button(); + this.button131 = new System.Windows.Forms.Button(); + this.button55 = new System.Windows.Forms.Button(); + this.button54 = new System.Windows.Forms.Button(); + this.button53 = new System.Windows.Forms.Button(); + this.button52 = new System.Windows.Forms.Button(); + this.groupBox1 = new System.Windows.Forms.GroupBox(); this.panel73 = new System.Windows.Forms.Panel(); this.button195 = new System.Windows.Forms.Button(); this.checkBox89 = new System.Windows.Forms.CheckBox(); @@ -372,24 +384,14 @@ this.label216 = new System.Windows.Forms.Label(); this.label215 = new System.Windows.Forms.Label(); this.label214 = new System.Windows.Forms.Label(); - this.panel72 = new System.Windows.Forms.Panel(); - this.textBox45 = new System.Windows.Forms.TextBox(); - this.button194 = new System.Windows.Forms.Button(); - this.groupBox1 = new System.Windows.Forms.GroupBox(); - this.comboBox1 = new System.Windows.Forms.ComboBox(); this.btnPridatUzivatela = new System.Windows.Forms.Button(); this.dataGridView2 = new System.Windows.Forms.DataGridView(); this.btnObnovit = new System.Windows.Forms.Button(); this.grboxFormulare = new System.Windows.Forms.GroupBox(); - this.button131 = new System.Windows.Forms.Button(); this.btnTlacitForm = new System.Windows.Forms.Button(); - this.button55 = new System.Windows.Forms.Button(); this.btnExportFrm = new System.Windows.Forms.Button(); - this.button54 = new System.Windows.Forms.Button(); this.btnZmazatFrm = new System.Windows.Forms.Button(); - this.button53 = new System.Windows.Forms.Button(); this.btnPridatFrm = new System.Windows.Forms.Button(); - this.button52 = new System.Windows.Forms.Button(); this.dataGridView9 = new System.Windows.Forms.DataGridView(); this.tabPage10 = new System.Windows.Forms.TabPage(); this.splitContainer2 = new System.Windows.Forms.SplitContainer(); @@ -736,6 +738,8 @@ this.textBox38 = new System.Windows.Forms.TextBox(); this.tabPage20 = new System.Windows.Forms.TabPage(); this.panel69 = new System.Windows.Forms.Panel(); + this.button198 = new System.Windows.Forms.Button(); + this.button197 = new System.Windows.Forms.Button(); this.button193 = new System.Windows.Forms.Button(); this.panel71 = new System.Windows.Forms.Panel(); this.label213 = new System.Windows.Forms.Label(); @@ -773,7 +777,7 @@ this.label193 = new System.Windows.Forms.Label(); this.label194 = new System.Windows.Forms.Label(); this.label192 = new System.Windows.Forms.Label(); - this.label191 = new System.Windows.Forms.Label(); + this.label226 = new System.Windows.Forms.Label(); this.button186 = new System.Windows.Forms.Button(); this.button185 = new System.Windows.Forms.Button(); this.button184 = new System.Windows.Forms.Button(); @@ -872,6 +876,8 @@ this.label50 = new System.Windows.Forms.Label(); this.checkBox60 = new System.Windows.Forms.CheckBox(); this.panel46 = new System.Windows.Forms.Panel(); + this.label191 = new System.Windows.Forms.Label(); + this.numericUpDown40 = new System.Windows.Forms.NumericUpDown(); this.flowLayoutPanel4 = new System.Windows.Forms.FlowLayoutPanel(); this.panel68 = new System.Windows.Forms.Panel(); this.label190 = new System.Windows.Forms.Label(); @@ -966,9 +972,10 @@ ((System.ComponentModel.ISupportInitialize)(this.dataGridView18)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.chart1)).BeginInit(); this.tabPage9.SuspendLayout(); - this.panel73.SuspendLayout(); + this.panel74.SuspendLayout(); this.panel72.SuspendLayout(); this.groupBox1.SuspendLayout(); + this.panel73.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.dataGridView2)).BeginInit(); this.grboxFormulare.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.dataGridView9)).BeginInit(); @@ -1079,6 +1086,7 @@ this.panel5.SuspendLayout(); this.statusStrip1.SuspendLayout(); this.panel46.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.numericUpDown40)).BeginInit(); this.panel68.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.numericUpDown39)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.numericUpDown38)).BeginInit(); @@ -1222,7 +1230,7 @@ this.tabControl1.Controls.Add(this.tabPage18); this.tabControl1.Controls.Add(this.tabPage19); this.tabControl1.Controls.Add(this.tabPage20); - this.tabControl1.Location = new System.Drawing.Point(0, 10); + this.tabControl1.Location = new System.Drawing.Point(1, 10); this.tabControl1.Margin = new System.Windows.Forms.Padding(1); this.tabControl1.Name = "tabControl1"; this.tabControl1.SelectedIndex = 0; @@ -1230,6 +1238,7 @@ this.tabControl1.TabIndex = 2; this.tabControl1.Visible = false; this.tabControl1.SelectedIndexChanged += new System.EventHandler(this.tabControl1_SelectedIndexChanged); + this.tabControl1.Enter += new System.EventHandler(this.tabPage20_Enter); // // tabPage1 // @@ -1867,12 +1876,12 @@ this.dataGridView1.ReadOnly = true; this.dataGridView1.RowHeadersVisible = false; this.dataGridView1.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.DisableResizing; - dataGridViewCellStyle3.BackColor = System.Drawing.Color.AliceBlue; - dataGridViewCellStyle3.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238))); - dataGridViewCellStyle3.ForeColor = System.Drawing.Color.Black; - dataGridViewCellStyle3.SelectionBackColor = System.Drawing.Color.Green; - dataGridViewCellStyle3.SelectionForeColor = System.Drawing.Color.Yellow; - this.dataGridView1.RowsDefaultCellStyle = dataGridViewCellStyle3; + dataGridViewCellStyle1.BackColor = System.Drawing.Color.AliceBlue; + dataGridViewCellStyle1.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238))); + dataGridViewCellStyle1.ForeColor = System.Drawing.Color.Black; + dataGridViewCellStyle1.SelectionBackColor = System.Drawing.Color.Green; + dataGridViewCellStyle1.SelectionForeColor = System.Drawing.Color.Yellow; + this.dataGridView1.RowsDefaultCellStyle = dataGridViewCellStyle1; this.dataGridView1.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; this.dataGridView1.Size = new System.Drawing.Size(1298, 215); this.dataGridView1.TabIndex = 0; @@ -2022,7 +2031,7 @@ this.textBox6.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.textBox6.Enabled = false; this.textBox6.Font = new System.Drawing.Font("Microsoft Sans Serif", 22F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238))); - this.textBox6.Location = new System.Drawing.Point(1019, 1); + this.textBox6.Location = new System.Drawing.Point(891, 1); this.textBox6.Name = "textBox6"; this.textBox6.Size = new System.Drawing.Size(178, 41); this.textBox6.TabIndex = 2; @@ -2041,7 +2050,7 @@ // label12 // this.label12.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.label12.Location = new System.Drawing.Point(1198, 24); + this.label12.Location = new System.Drawing.Point(1070, 24); this.label12.Name = "label12"; this.label12.Size = new System.Drawing.Size(58, 14); this.label12.TabIndex = 1; @@ -2051,7 +2060,7 @@ // numericUpDown4 // this.numericUpDown4.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.numericUpDown4.Location = new System.Drawing.Point(1198, 1); + this.numericUpDown4.Location = new System.Drawing.Point(1070, 1); this.numericUpDown4.Minimum = new decimal(new int[] { 1, 0, @@ -2157,7 +2166,7 @@ this.dGVZoznamVyrobkov.ReadOnly = true; this.dGVZoznamVyrobkov.RowHeadersVisible = false; this.dGVZoznamVyrobkov.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; - this.dGVZoznamVyrobkov.Size = new System.Drawing.Size(1302, 473); + this.dGVZoznamVyrobkov.Size = new System.Drawing.Size(1174, 473); this.dGVZoznamVyrobkov.TabIndex = 3; this.dGVZoznamVyrobkov.Visible = false; this.dGVZoznamVyrobkov.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dGVZoznamVyrobkov_CellClick); @@ -2168,7 +2177,7 @@ // this.panel10.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.panel10.BackgroundImage = global::Mip.Properties.Resources.Restart; - this.panel10.Location = new System.Drawing.Point(1248, -11); + this.panel10.Location = new System.Drawing.Point(1120, -11); this.panel10.Name = "panel10"; this.panel10.Size = new System.Drawing.Size(64, 64); this.panel10.TabIndex = 23; @@ -2221,7 +2230,7 @@ this.textBox17.BackColor = System.Drawing.Color.BlanchedAlmond; this.textBox17.Enabled = false; this.textBox17.Font = new System.Drawing.Font("Microsoft Sans Serif", 21F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238))); - this.textBox17.Location = new System.Drawing.Point(919, 2); + this.textBox17.Location = new System.Drawing.Point(792, 2); this.textBox17.Name = "textBox17"; this.textBox17.Size = new System.Drawing.Size(240, 39); this.textBox17.TabIndex = 2; @@ -2240,7 +2249,7 @@ // label22 // this.label22.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.label22.Location = new System.Drawing.Point(1209, 1); + this.label22.Location = new System.Drawing.Point(1082, 1); this.label22.Name = "label22"; this.label22.Size = new System.Drawing.Size(90, 19); this.label22.TabIndex = 1; @@ -2250,7 +2259,7 @@ // numericUpDown14 // this.numericUpDown14.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.numericUpDown14.Location = new System.Drawing.Point(1160, 1); + this.numericUpDown14.Location = new System.Drawing.Point(1033, 1); this.numericUpDown14.Minimum = new decimal(new int[] { 1, 0, @@ -2273,7 +2282,7 @@ this.panel19.Controls.Add(this.groupBox21); this.panel19.Controls.Add(this.panel20); this.panel19.Controls.Add(this.groupBox22); - this.panel19.Location = new System.Drawing.Point(1122, 43); + this.panel19.Location = new System.Drawing.Point(995, 43); this.panel19.Name = "panel19"; this.panel19.Size = new System.Drawing.Size(179, 186); this.panel19.TabIndex = 24; @@ -2433,7 +2442,7 @@ // button62 // this.button62.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.button62.Location = new System.Drawing.Point(1159, 21); + this.button62.Location = new System.Drawing.Point(1032, 21); this.button62.Name = "button62"; this.button62.Size = new System.Drawing.Size(143, 22); this.button62.TabIndex = 23; @@ -2449,14 +2458,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))); - dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; - dataGridViewCellStyle4.BackColor = System.Drawing.SystemColors.Control; - dataGridViewCellStyle4.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238))); - dataGridViewCellStyle4.ForeColor = System.Drawing.SystemColors.WindowText; - dataGridViewCellStyle4.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle4.SelectionForeColor = System.Drawing.SystemColors.HighlightText; - dataGridViewCellStyle4.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.dGVVydajMat.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle4; + dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; + dataGridViewCellStyle2.BackColor = System.Drawing.SystemColors.Control; + dataGridViewCellStyle2.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238))); + dataGridViewCellStyle2.ForeColor = System.Drawing.SystemColors.WindowText; + dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText; + dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.dGVVydajMat.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2; this.dGVVydajMat.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.dGVVydajMat.Location = new System.Drawing.Point(1, 43); this.dGVVydajMat.MultiSelect = false; @@ -2464,7 +2473,7 @@ this.dGVVydajMat.ReadOnly = true; this.dGVVydajMat.RowHeadersVisible = false; this.dGVVydajMat.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; - this.dGVVydajMat.Size = new System.Drawing.Size(1302, 473); + this.dGVVydajMat.Size = new System.Drawing.Size(1173, 452); this.dGVVydajMat.TabIndex = 0; this.dGVVydajMat.Visible = false; this.dGVVydajMat.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dGVVydajMat_CellClick); @@ -2548,7 +2557,7 @@ this.panel17.Controls.Add(this.panel47); this.panel17.Controls.Add(this.groupBox26); this.panel17.Controls.Add(this.panel18); - this.panel17.Location = new System.Drawing.Point(1116, 43); + this.panel17.Location = new System.Drawing.Point(989, 43); this.panel17.Name = "panel17"; this.panel17.Size = new System.Drawing.Size(185, 186); this.panel17.TabIndex = 24; @@ -2738,7 +2747,7 @@ // label20 // this.label20.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.label20.Location = new System.Drawing.Point(1209, 1); + this.label20.Location = new System.Drawing.Point(1082, 1); this.label20.Name = "label20"; this.label20.Size = new System.Drawing.Size(90, 19); this.label20.TabIndex = 1; @@ -2748,7 +2757,7 @@ // numericUpDown12 // this.numericUpDown12.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.numericUpDown12.Location = new System.Drawing.Point(1160, 1); + this.numericUpDown12.Location = new System.Drawing.Point(1033, 1); this.numericUpDown12.Maximum = new decimal(new int[] { 9999, 0, @@ -2775,7 +2784,7 @@ this.textBox15.BackColor = System.Drawing.Color.BlanchedAlmond; this.textBox15.Enabled = false; this.textBox15.Font = new System.Drawing.Font("Microsoft Sans Serif", 21F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238))); - this.textBox15.Location = new System.Drawing.Point(919, 2); + this.textBox15.Location = new System.Drawing.Point(792, 2); this.textBox15.Name = "textBox15"; this.textBox15.Size = new System.Drawing.Size(240, 39); this.textBox15.TabIndex = 2; @@ -2804,7 +2813,7 @@ // button61 // this.button61.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.button61.Location = new System.Drawing.Point(1159, 21); + this.button61.Location = new System.Drawing.Point(1032, 21); this.button61.Name = "button61"; this.button61.Size = new System.Drawing.Size(143, 22); this.button61.TabIndex = 23; @@ -2828,7 +2837,7 @@ this.dGVRV.Name = "dGVRV"; this.dGVRV.RowHeadersVisible = false; this.dGVRV.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; - this.dGVRV.Size = new System.Drawing.Size(1302, 473); + this.dGVRV.Size = new System.Drawing.Size(1173, 452); this.dGVRV.TabIndex = 3; this.dGVRV.Visible = false; this.dGVRV.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dGVRV_CellClick); @@ -3676,7 +3685,7 @@ this.dGVExpedicia.ReadOnly = true; this.dGVExpedicia.RowHeadersVisible = false; this.dGVExpedicia.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; - this.dGVExpedicia.Size = new System.Drawing.Size(1302, 473); + this.dGVExpedicia.Size = new System.Drawing.Size(1301, 452); this.dGVExpedicia.TabIndex = 8; this.dGVExpedicia.Visible = false; this.dGVExpedicia.CellFormatting += new System.Windows.Forms.DataGridViewCellFormattingEventHandler(this.dGVExpedicia_CellFormatting); @@ -3731,7 +3740,7 @@ this.dataGridView3.ReadOnly = true; this.dataGridView3.RowHeadersVisible = false; this.dataGridView3.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; - this.dataGridView3.Size = new System.Drawing.Size(1302, 473); + this.dataGridView3.Size = new System.Drawing.Size(1173, 452); this.dataGridView3.TabIndex = 4; this.dataGridView3.Visible = false; this.dataGridView3.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView3_CellClick); @@ -3746,7 +3755,7 @@ this.textBox30.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.textBox30.BackColor = System.Drawing.Color.BlanchedAlmond; this.textBox30.Enabled = false; - this.textBox30.Location = new System.Drawing.Point(1134, 1); + this.textBox30.Location = new System.Drawing.Point(1005, 1); this.textBox30.Name = "textBox30"; this.textBox30.Size = new System.Drawing.Size(121, 20); this.textBox30.TabIndex = 2; @@ -3755,7 +3764,7 @@ // label48 // this.label48.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.label48.Location = new System.Drawing.Point(1195, 25); + this.label48.Location = new System.Drawing.Point(1066, 25); this.label48.Name = "label48"; this.label48.Size = new System.Drawing.Size(60, 15); this.label48.TabIndex = 1; @@ -3765,7 +3774,7 @@ // numericUpDown24 // this.numericUpDown24.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.numericUpDown24.Location = new System.Drawing.Point(1134, 22); + this.numericUpDown24.Location = new System.Drawing.Point(1005, 22); this.numericUpDown24.Minimum = new decimal(new int[] { 1, 0, @@ -3785,7 +3794,7 @@ // this.radioButton3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.radioButton3.AutoSize = true; - this.radioButton3.Location = new System.Drawing.Point(1023, 28); + this.radioButton3.Location = new System.Drawing.Point(894, 28); this.radioButton3.Name = "radioButton3"; this.radioButton3.Size = new System.Drawing.Size(105, 17); this.radioButton3.TabIndex = 10; @@ -3798,7 +3807,7 @@ // this.radioButton1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.radioButton1.AutoSize = true; - this.radioButton1.Location = new System.Drawing.Point(1023, 13); + this.radioButton1.Location = new System.Drawing.Point(894, 13); this.radioButton1.Name = "radioButton1"; this.radioButton1.Size = new System.Drawing.Size(88, 17); this.radioButton1.TabIndex = 9; @@ -3812,7 +3821,7 @@ this.radioButton2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.radioButton2.AutoSize = true; this.radioButton2.Checked = true; - this.radioButton2.Location = new System.Drawing.Point(1023, -2); + this.radioButton2.Location = new System.Drawing.Point(894, -2); this.radioButton2.Name = "radioButton2"; this.radioButton2.Size = new System.Drawing.Size(57, 17); this.radioButton2.TabIndex = 8; @@ -3835,7 +3844,7 @@ // this.panel24.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.panel24.BackgroundImage = global::Mip.Properties.Resources.Restart; - this.panel24.Location = new System.Drawing.Point(1248, -11); + this.panel24.Location = new System.Drawing.Point(1119, -11); this.panel24.Name = "panel24"; this.panel24.Size = new System.Drawing.Size(64, 64); this.panel24.TabIndex = 23; @@ -3858,9 +3867,9 @@ // this.panel67.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.panel67.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; - this.panel67.Location = new System.Drawing.Point(957, 4); + this.panel67.Location = new System.Drawing.Point(828, 4); this.panel67.Name = "panel67"; - this.panel67.Size = new System.Drawing.Size(17, 208); + this.panel67.Size = new System.Drawing.Size(17, 190); this.panel67.TabIndex = 2; this.panel67.Tag = "true"; this.panel67.Click += new System.EventHandler(this.panel67_Click); @@ -3904,9 +3913,9 @@ this.panel58.Controls.Add(this.comboBox17); this.panel58.Controls.Add(this.label121); this.panel58.Controls.Add(this.label120); - this.panel58.Location = new System.Drawing.Point(975, 0); + this.panel58.Location = new System.Drawing.Point(846, 0); this.panel58.Name = "panel58"; - this.panel58.Size = new System.Drawing.Size(331, 519); + this.panel58.Size = new System.Drawing.Size(331, 498); this.panel58.TabIndex = 1; // // label180 @@ -4882,7 +4891,7 @@ this.dataGridView18.RowHeadersVisible = false; this.dataGridView18.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.DisableResizing; this.dataGridView18.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; - this.dataGridView18.Size = new System.Drawing.Size(327, 59); + this.dataGridView18.Size = new System.Drawing.Size(327, 38); this.dataGridView18.TabIndex = 6; this.dataGridView18.Tag = "Percento >=0"; this.dataGridView18.DataSourceChanged += new System.EventHandler(this.dataGridView18_DataSourceChanged); @@ -4941,35 +4950,40 @@ 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))); - chartArea3.Area3DStyle.IsRightAngleAxes = false; - chartArea3.Area3DStyle.Perspective = 25; - chartArea3.Name = "ChartArea1"; - this.chart1.ChartAreas.Add(chartArea3); - legend3.DockedToChartArea = "ChartArea1"; - legend3.Name = "Legend1"; - this.chart1.Legends.Add(legend3); + chartArea1.Area3DStyle.IsRightAngleAxes = false; + chartArea1.Area3DStyle.Perspective = 25; + chartArea1.Name = "ChartArea1"; + this.chart1.ChartAreas.Add(chartArea1); + legend1.DockedToChartArea = "ChartArea1"; + legend1.Name = "Legend1"; + this.chart1.Legends.Add(legend1); this.chart1.Location = new System.Drawing.Point(4, 4); this.chart1.Name = "chart1"; - series4.ChartArea = "ChartArea1"; - series4.Enabled = false; - series4.IsValueShownAsLabel = true; - series4.Legend = "Legend1"; - series4.Name = "Priemerná zmätkovitosť"; - series5.ChartArea = "ChartArea1"; - series5.Enabled = false; - series5.IsValueShownAsLabel = true; - series5.Legend = "Legend1"; - series5.Name = "Priemer zmätkovitostí"; - this.chart1.Series.Add(series4); - this.chart1.Series.Add(series5); - this.chart1.Size = new System.Drawing.Size(967, 514); + series1.ChartArea = "ChartArea1"; + series1.Enabled = false; + series1.IsValueShownAsLabel = true; + series1.Legend = "Legend1"; + series1.Name = "Priemerná zmätkovitosť"; + series2.ChartArea = "ChartArea1"; + series2.Enabled = false; + series2.IsValueShownAsLabel = true; + series2.Legend = "Legend1"; + series2.Name = "Priemer zmätkovitostí"; + this.chart1.Series.Add(series1); + this.chart1.Series.Add(series2); + this.chart1.Size = new System.Drawing.Size(838, 491); this.chart1.TabIndex = 0; this.chart1.Text = "chart1"; // // tabPage9 // - this.tabPage9.Controls.Add(this.panel73); + this.tabPage9.Controls.Add(this.panel74); this.tabPage9.Controls.Add(this.panel72); + this.tabPage9.Controls.Add(this.button131); + this.tabPage9.Controls.Add(this.button55); + this.tabPage9.Controls.Add(this.button54); + this.tabPage9.Controls.Add(this.button53); + this.tabPage9.Controls.Add(this.button52); this.tabPage9.Controls.Add(this.groupBox1); this.tabPage9.Controls.Add(this.grboxFormulare); this.tabPage9.Location = new System.Drawing.Point(4, 22); @@ -4981,6 +4995,146 @@ this.tabPage9.Click += new System.EventHandler(this.tabPage11_Click); this.tabPage9.Enter += new System.EventHandler(this.tabPage11_Enter); // + // panel74 + // + this.panel74.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.panel74.Controls.Add(this.textBox50); + this.panel74.Controls.Add(this.button196); + this.panel74.Location = new System.Drawing.Point(626, 2); + this.panel74.Name = "panel74"; + this.panel74.Size = new System.Drawing.Size(249, 27); + this.panel74.TabIndex = 12; + // + // textBox50 + // + this.textBox50.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.textBox50.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238))); + this.textBox50.Location = new System.Drawing.Point(119, 2); + this.textBox50.Name = "textBox50"; + this.textBox50.PasswordChar = '*'; + this.textBox50.Size = new System.Drawing.Size(126, 21); + this.textBox50.TabIndex = 5; + this.textBox50.TextChanged += new System.EventHandler(this.textBox50_TextChanged); + // + // button196 + // + this.button196.Enabled = false; + this.button196.Location = new System.Drawing.Point(1, 1); + this.button196.Name = "button196"; + this.button196.Size = new System.Drawing.Size(116, 23); + this.button196.TabIndex = 4; + this.button196.Text = "Otvoriť heslá"; + this.button196.UseVisualStyleBackColor = true; + this.button196.Click += new System.EventHandler(this.button196_Click); + // + // panel72 + // + this.panel72.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.panel72.Controls.Add(this.textBox45); + this.panel72.Controls.Add(this.button194); + this.panel72.Location = new System.Drawing.Point(2, 2); + this.panel72.Name = "panel72"; + this.panel72.Size = new System.Drawing.Size(249, 27); + this.panel72.TabIndex = 11; + // + // textBox45 + // + this.textBox45.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.textBox45.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238))); + this.textBox45.Location = new System.Drawing.Point(119, 2); + this.textBox45.Name = "textBox45"; + this.textBox45.PasswordChar = '*'; + this.textBox45.Size = new System.Drawing.Size(126, 21); + this.textBox45.TabIndex = 5; + this.textBox45.TextChanged += new System.EventHandler(this.textBox45_TextChanged); + // + // button194 + // + this.button194.Enabled = false; + this.button194.Location = new System.Drawing.Point(1, 1); + this.button194.Name = "button194"; + this.button194.Size = new System.Drawing.Size(116, 23); + this.button194.TabIndex = 4; + this.button194.Text = "Otvoriť formuláre"; + this.button194.UseVisualStyleBackColor = true; + this.button194.Click += new System.EventHandler(this.button194_Click); + // + // button131 + // + this.button131.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); + this.button131.Location = new System.Drawing.Point(950, 472); + this.button131.Name = "button131"; + this.button131.Size = new System.Drawing.Size(75, 23); + this.button131.TabIndex = 10; + this.button131.Text = "192.168.1.12"; + this.button131.UseVisualStyleBackColor = true; + this.button131.Click += new System.EventHandler(this.button131_Click); + // + // button55 + // + this.button55.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); + this.button55.Location = new System.Drawing.Point(869, 472); + this.button55.Name = "button55"; + this.button55.Size = new System.Drawing.Size(75, 23); + this.button55.TabIndex = 9; + this.button55.Text = "IP4 localIP"; + this.button55.UseVisualStyleBackColor = true; + this.button55.Click += new System.EventHandler(this.button55_Click); + // + // button54 + // + this.button54.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); + this.button54.Location = new System.Drawing.Point(788, 472); + this.button54.Name = "button54"; + this.button54.Size = new System.Drawing.Size(75, 23); + this.button54.TabIndex = 8; + this.button54.Text = "IP3 mysql"; + this.button54.UseVisualStyleBackColor = true; + this.button54.Click += new System.EventHandler(this.button54_Click); + // + // button53 + // + this.button53.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); + this.button53.Location = new System.Drawing.Point(707, 472); + this.button53.Name = "button53"; + this.button53.Size = new System.Drawing.Size(75, 23); + this.button53.TabIndex = 7; + this.button53.Text = "IP2 mysql"; + this.button53.UseVisualStyleBackColor = true; + this.button53.Click += new System.EventHandler(this.button53_Click); + // + // button52 + // + this.button52.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); + this.button52.Location = new System.Drawing.Point(626, 472); + this.button52.Name = "button52"; + this.button52.Size = new System.Drawing.Size(75, 23); + this.button52.TabIndex = 6; + this.button52.Text = "Public IP"; + this.button52.UseVisualStyleBackColor = true; + this.button52.Click += new System.EventHandler(this.button52_Click); + // + // groupBox1 + // + this.groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.groupBox1.Controls.Add(this.panel73); + this.groupBox1.Controls.Add(this.btnPridatUzivatela); + this.groupBox1.Controls.Add(this.dataGridView2); + this.groupBox1.Controls.Add(this.btnObnovit); + this.groupBox1.Enabled = false; + this.groupBox1.Location = new System.Drawing.Point(626, 32); + this.groupBox1.Name = "groupBox1"; + this.groupBox1.Size = new System.Drawing.Size(548, 434); + this.groupBox1.TabIndex = 4; + this.groupBox1.TabStop = false; + this.groupBox1.Text = "Heslá"; + // // panel73 // this.panel73.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; @@ -5022,10 +5176,11 @@ this.panel73.Controls.Add(this.label216); this.panel73.Controls.Add(this.label215); this.panel73.Controls.Add(this.label214); - this.panel73.Location = new System.Drawing.Point(301, 6); + this.panel73.Enabled = false; + this.panel73.Location = new System.Drawing.Point(6, 12); this.panel73.Name = "panel73"; this.panel73.Size = new System.Drawing.Size(1047, 45); - this.panel73.TabIndex = 6; + this.panel73.TabIndex = 12; // // button195 // @@ -5035,239 +5190,240 @@ this.button195.TabIndex = 39; this.button195.Text = "Uložiť užívateľa"; this.button195.UseVisualStyleBackColor = true; - this.button195.Click += new System.EventHandler(this.button195_Click); + this.button195.Click += new System.EventHandler(this.button195_Click_1); // // checkBox89 // - this.checkBox89.AutoSize = true; this.checkBox89.Enabled = false; this.checkBox89.Location = new System.Drawing.Point(895, 28); this.checkBox89.Name = "checkBox89"; - this.checkBox89.Size = new System.Drawing.Size(38, 17); + this.checkBox89.Size = new System.Drawing.Size(45, 16); this.checkBox89.TabIndex = 38; this.checkBox89.Text = "21"; this.checkBox89.UseVisualStyleBackColor = true; + this.checkBox89.Click += new System.EventHandler(this.checkBox89_Click); // // checkBox90 // - this.checkBox90.AutoSize = true; this.checkBox90.Location = new System.Drawing.Point(895, 14); this.checkBox90.Name = "checkBox90"; - this.checkBox90.Size = new System.Drawing.Size(38, 17); + this.checkBox90.Size = new System.Drawing.Size(45, 16); this.checkBox90.TabIndex = 37; this.checkBox90.Tag = "Evidencia brúsených nástrojov"; this.checkBox90.Text = "20"; this.checkBox90.UseVisualStyleBackColor = true; + this.checkBox90.Click += new System.EventHandler(this.checkBox90_Click); // // checkBox91 // - this.checkBox91.AutoSize = true; this.checkBox91.Location = new System.Drawing.Point(895, 0); this.checkBox91.Name = "checkBox91"; - this.checkBox91.Size = new System.Drawing.Size(38, 17); + this.checkBox91.Size = new System.Drawing.Size(45, 16); this.checkBox91.TabIndex = 36; this.checkBox91.Tag = "Žiadankový systém"; this.checkBox91.Text = "19"; this.checkBox91.UseVisualStyleBackColor = true; + this.checkBox91.Click += new System.EventHandler(this.checkBox91_Click); // // checkBox92 // - this.checkBox92.AutoSize = true; this.checkBox92.Location = new System.Drawing.Point(839, 28); this.checkBox92.Name = "checkBox92"; - this.checkBox92.Size = new System.Drawing.Size(38, 17); + this.checkBox92.Size = new System.Drawing.Size(45, 16); this.checkBox92.TabIndex = 35; this.checkBox92.Tag = "Požiadavky - pripomienky"; this.checkBox92.Text = "18"; this.checkBox92.UseVisualStyleBackColor = true; + this.checkBox92.Click += new System.EventHandler(this.checkBox92_Click); // // checkBox93 // - this.checkBox93.AutoSize = true; this.checkBox93.Location = new System.Drawing.Point(839, 14); this.checkBox93.Name = "checkBox93"; - this.checkBox93.Size = new System.Drawing.Size(38, 17); + this.checkBox93.Size = new System.Drawing.Size(45, 16); this.checkBox93.TabIndex = 34; this.checkBox93.Tag = "Sklad"; this.checkBox93.Text = "17"; this.checkBox93.UseVisualStyleBackColor = true; + this.checkBox93.Click += new System.EventHandler(this.checkBox93_Click); // // checkBox94 // - this.checkBox94.AutoSize = true; this.checkBox94.Location = new System.Drawing.Point(839, 0); this.checkBox94.Name = "checkBox94"; - this.checkBox94.Size = new System.Drawing.Size(38, 17); + this.checkBox94.Size = new System.Drawing.Size(45, 16); this.checkBox94.TabIndex = 33; this.checkBox94.Tag = "Výkresy"; this.checkBox94.Text = "16"; this.checkBox94.UseVisualStyleBackColor = true; + this.checkBox94.Click += new System.EventHandler(this.checkBox94_Click); // // checkBox86 // - this.checkBox86.AutoSize = true; + this.checkBox86.Enabled = false; this.checkBox86.Location = new System.Drawing.Point(789, 28); this.checkBox86.Name = "checkBox86"; - this.checkBox86.Size = new System.Drawing.Size(38, 17); + this.checkBox86.Size = new System.Drawing.Size(45, 16); this.checkBox86.TabIndex = 32; this.checkBox86.Tag = "Nástroje"; this.checkBox86.Text = "15"; this.checkBox86.UseVisualStyleBackColor = true; + this.checkBox86.Click += new System.EventHandler(this.checkBox86_Click); // // checkBox87 // - this.checkBox87.AutoSize = true; this.checkBox87.Location = new System.Drawing.Point(789, 14); this.checkBox87.Name = "checkBox87"; - this.checkBox87.Size = new System.Drawing.Size(38, 17); + this.checkBox87.Size = new System.Drawing.Size(45, 16); this.checkBox87.TabIndex = 31; this.checkBox87.Tag = "Zoznam firiem"; this.checkBox87.Text = "14"; this.checkBox87.UseVisualStyleBackColor = true; + this.checkBox87.Click += new System.EventHandler(this.checkBox87_Click); // // checkBox88 // - this.checkBox88.AutoSize = true; this.checkBox88.Location = new System.Drawing.Point(789, 0); this.checkBox88.Name = "checkBox88"; - this.checkBox88.Size = new System.Drawing.Size(38, 17); + this.checkBox88.Size = new System.Drawing.Size(45, 16); this.checkBox88.TabIndex = 30; this.checkBox88.Tag = "Vyhodnocovanie"; this.checkBox88.Text = "13"; this.checkBox88.UseVisualStyleBackColor = true; + this.checkBox88.Click += new System.EventHandler(this.checkBox88_Click); // // checkBox83 // - this.checkBox83.AutoSize = true; this.checkBox83.Location = new System.Drawing.Point(739, 28); this.checkBox83.Name = "checkBox83"; - this.checkBox83.Size = new System.Drawing.Size(38, 17); + this.checkBox83.Size = new System.Drawing.Size(45, 16); this.checkBox83.TabIndex = 29; this.checkBox83.Tag = "Naceňovanie"; this.checkBox83.Text = "12"; this.checkBox83.UseVisualStyleBackColor = true; + this.checkBox83.Click += new System.EventHandler(this.checkBox83_Click); // // checkBox84 // - this.checkBox84.AutoSize = true; this.checkBox84.Location = new System.Drawing.Point(739, 14); this.checkBox84.Name = "checkBox84"; - this.checkBox84.Size = new System.Drawing.Size(38, 17); + this.checkBox84.Size = new System.Drawing.Size(45, 16); this.checkBox84.TabIndex = 28; this.checkBox84.Tag = "Údržby a opravy"; this.checkBox84.Text = "11"; this.checkBox84.UseVisualStyleBackColor = true; + this.checkBox84.Click += new System.EventHandler(this.checkBox84_Click); // // checkBox85 // - this.checkBox85.AutoSize = true; this.checkBox85.Location = new System.Drawing.Point(739, 0); this.checkBox85.Name = "checkBox85"; - this.checkBox85.Size = new System.Drawing.Size(38, 17); + this.checkBox85.Size = new System.Drawing.Size(45, 16); this.checkBox85.TabIndex = 27; this.checkBox85.Tag = "Zoznam strojov"; this.checkBox85.Text = "10"; this.checkBox85.UseVisualStyleBackColor = true; + this.checkBox85.Click += new System.EventHandler(this.checkBox85_Click); // // checkBox80 // - this.checkBox80.AutoSize = true; this.checkBox80.Enabled = false; this.checkBox80.Location = new System.Drawing.Point(689, 28); this.checkBox80.Name = "checkBox80"; - this.checkBox80.Size = new System.Drawing.Size(32, 17); + this.checkBox80.Size = new System.Drawing.Size(45, 16); this.checkBox80.TabIndex = 26; this.checkBox80.Tag = "Nastavenia"; this.checkBox80.Text = "9"; this.checkBox80.UseVisualStyleBackColor = true; + this.checkBox80.Click += new System.EventHandler(this.checkBox80_Click); // // checkBox81 // - this.checkBox81.AutoSize = true; this.checkBox81.Location = new System.Drawing.Point(689, 14); this.checkBox81.Name = "checkBox81"; - this.checkBox81.Size = new System.Drawing.Size(32, 17); + this.checkBox81.Size = new System.Drawing.Size(45, 16); this.checkBox81.TabIndex = 25; this.checkBox81.Tag = "Zmätkovitosť"; this.checkBox81.Text = "8"; this.checkBox81.UseVisualStyleBackColor = true; + this.checkBox81.Click += new System.EventHandler(this.checkBox81_Click); // // checkBox82 // - this.checkBox82.AutoSize = true; this.checkBox82.Location = new System.Drawing.Point(689, 0); this.checkBox82.Name = "checkBox82"; - this.checkBox82.Size = new System.Drawing.Size(32, 17); + this.checkBox82.Size = new System.Drawing.Size(45, 16); this.checkBox82.TabIndex = 24; this.checkBox82.Tag = "Kategorizácia zmätkovitosti"; this.checkBox82.Text = "7"; this.checkBox82.UseVisualStyleBackColor = true; + this.checkBox82.Click += new System.EventHandler(this.checkBox82_Click); // // checkBox77 // - this.checkBox77.AutoSize = true; this.checkBox77.Location = new System.Drawing.Point(639, 28); this.checkBox77.Name = "checkBox77"; - this.checkBox77.Size = new System.Drawing.Size(32, 17); + this.checkBox77.Size = new System.Drawing.Size(45, 16); this.checkBox77.TabIndex = 23; this.checkBox77.Tag = "Expedícia"; this.checkBox77.Text = "6"; this.checkBox77.UseVisualStyleBackColor = true; + this.checkBox77.Click += new System.EventHandler(this.checkBox77_Click); // // checkBox78 // - this.checkBox78.AutoSize = true; this.checkBox78.Location = new System.Drawing.Point(639, 14); this.checkBox78.Name = "checkBox78"; - this.checkBox78.Size = new System.Drawing.Size(32, 17); + this.checkBox78.Size = new System.Drawing.Size(45, 16); this.checkBox78.TabIndex = 22; this.checkBox78.Tag = "Skladové operácie"; this.checkBox78.Text = "5"; this.checkBox78.UseVisualStyleBackColor = true; + this.checkBox78.Click += new System.EventHandler(this.checkBox78_Click); // // checkBox79 // - this.checkBox79.AutoSize = true; this.checkBox79.Location = new System.Drawing.Point(639, 0); this.checkBox79.Name = "checkBox79"; - this.checkBox79.Size = new System.Drawing.Size(32, 17); + this.checkBox79.Size = new System.Drawing.Size(45, 16); this.checkBox79.TabIndex = 21; this.checkBox79.Tag = "Riadenie výroby"; this.checkBox79.Text = "4"; this.checkBox79.UseVisualStyleBackColor = true; + this.checkBox79.Click += new System.EventHandler(this.checkBox79_Click); // // checkBox76 // - this.checkBox76.AutoSize = true; this.checkBox76.Location = new System.Drawing.Point(589, 28); this.checkBox76.Name = "checkBox76"; - this.checkBox76.Size = new System.Drawing.Size(32, 17); + this.checkBox76.Size = new System.Drawing.Size(45, 16); this.checkBox76.TabIndex = 20; this.checkBox76.Tag = "Výdaj materiálu"; this.checkBox76.Text = "3"; this.checkBox76.UseVisualStyleBackColor = true; + this.checkBox76.Click += new System.EventHandler(this.checkBox76_Click); // // checkBox75 // - this.checkBox75.AutoSize = true; this.checkBox75.Location = new System.Drawing.Point(589, 14); this.checkBox75.Name = "checkBox75"; - this.checkBox75.Size = new System.Drawing.Size(32, 17); + this.checkBox75.Size = new System.Drawing.Size(45, 16); this.checkBox75.TabIndex = 19; this.checkBox75.Tag = "Zoznam výrobkov"; this.checkBox75.Text = "2"; this.checkBox75.UseVisualStyleBackColor = true; + this.checkBox75.Click += new System.EventHandler(this.checkBox75_Click); // // checkBox74 // - this.checkBox74.AutoSize = true; this.checkBox74.Location = new System.Drawing.Point(589, 0); this.checkBox74.Name = "checkBox74"; - this.checkBox74.Size = new System.Drawing.Size(32, 17); + this.checkBox74.Size = new System.Drawing.Size(45, 16); this.checkBox74.TabIndex = 18; this.checkBox74.Tag = "Dopyty"; this.checkBox74.Text = "1"; this.checkBox74.UseVisualStyleBackColor = true; + this.checkBox74.Click += new System.EventHandler(this.checkBox74_Click); // // textBox49 // @@ -5276,6 +5432,7 @@ this.textBox49.Name = "textBox49"; this.textBox49.Size = new System.Drawing.Size(70, 20); this.textBox49.TabIndex = 17; + this.textBox49.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; // // textBox48 // @@ -5284,6 +5441,7 @@ this.textBox48.Name = "textBox48"; this.textBox48.Size = new System.Drawing.Size(40, 20); this.textBox48.TabIndex = 16; + this.textBox48.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; // // textBox47 // @@ -5292,6 +5450,7 @@ this.textBox47.Name = "textBox47"; this.textBox47.Size = new System.Drawing.Size(92, 20); this.textBox47.TabIndex = 15; + this.textBox47.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; // // textBox46 // @@ -5300,6 +5459,7 @@ this.textBox46.Name = "textBox46"; this.textBox46.Size = new System.Drawing.Size(58, 20); this.textBox46.TabIndex = 14; + this.textBox46.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; // // label225 // @@ -5331,6 +5491,7 @@ this.label223.TabIndex = 9; this.label223.Text = "Administratíva"; this.label223.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + this.label223.Click += new System.EventHandler(this.label223_Click); // // label222 // @@ -5342,6 +5503,7 @@ this.label222.TabIndex = 8; this.label222.Text = "Neaktívny"; this.label222.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + this.label222.Click += new System.EventHandler(this.label222_Click); // // label221 // @@ -5424,68 +5586,9 @@ this.label214.Text = "Meno"; this.label214.TextAlign = System.Drawing.ContentAlignment.TopCenter; // - // panel72 - // - this.panel72.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.panel72.Controls.Add(this.textBox45); - this.panel72.Controls.Add(this.button194); - this.panel72.Location = new System.Drawing.Point(9, 6); - this.panel72.Name = "panel72"; - this.panel72.Size = new System.Drawing.Size(286, 27); - this.panel72.TabIndex = 5; - // - // textBox45 - // - this.textBox45.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) - | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.textBox45.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238))); - this.textBox45.Location = new System.Drawing.Point(119, 2); - this.textBox45.Name = "textBox45"; - this.textBox45.PasswordChar = '?'; - this.textBox45.Size = new System.Drawing.Size(163, 21); - this.textBox45.TabIndex = 5; - this.textBox45.TextChanged += new System.EventHandler(this.textBox45_TextChanged); - // - // button194 - // - this.button194.Enabled = false; - this.button194.Location = new System.Drawing.Point(1, 1); - this.button194.Name = "button194"; - this.button194.Size = new System.Drawing.Size(116, 23); - this.button194.TabIndex = 4; - this.button194.Text = "Otvoriť formuláre"; - this.button194.UseVisualStyleBackColor = true; - this.button194.Click += new System.EventHandler(this.button194_Click); - // - // groupBox1 - // - this.groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) - | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.groupBox1.Controls.Add(this.comboBox1); - this.groupBox1.Controls.Add(this.btnPridatUzivatela); - this.groupBox1.Controls.Add(this.dataGridView2); - this.groupBox1.Controls.Add(this.btnObnovit); - this.groupBox1.Enabled = false; - this.groupBox1.Location = new System.Drawing.Point(623, 35); - this.groupBox1.Name = "groupBox1"; - this.groupBox1.Size = new System.Drawing.Size(680, 481); - this.groupBox1.TabIndex = 4; - this.groupBox1.TabStop = false; - this.groupBox1.Text = "Heslá"; - // - // comboBox1 - // - this.comboBox1.FormattingEnabled = true; - this.comboBox1.Location = new System.Drawing.Point(184, 14); - this.comboBox1.Name = "comboBox1"; - this.comboBox1.Size = new System.Drawing.Size(121, 21); - this.comboBox1.TabIndex = 3; - // // btnPridatUzivatela // - this.btnPridatUzivatela.Location = new System.Drawing.Point(84, 14); + this.btnPridatUzivatela.Location = new System.Drawing.Point(81, 79); this.btnPridatUzivatela.Name = "btnPridatUzivatela"; this.btnPridatUzivatela.Size = new System.Drawing.Size(94, 23); this.btnPridatUzivatela.TabIndex = 2; @@ -5497,7 +5600,6 @@ // this.dataGridView2.AllowUserToAddRows = false; this.dataGridView2.AllowUserToDeleteRows = false; - this.dataGridView2.AllowUserToOrderColumns = true; this.dataGridView2.AllowUserToResizeColumns = false; this.dataGridView2.AllowUserToResizeRows = false; this.dataGridView2.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) @@ -5505,17 +5607,17 @@ | System.Windows.Forms.AnchorStyles.Right))); this.dataGridView2.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.dataGridView2.EditMode = System.Windows.Forms.DataGridViewEditMode.EditProgrammatically; - this.dataGridView2.Location = new System.Drawing.Point(3, 83); + this.dataGridView2.Location = new System.Drawing.Point(3, 105); this.dataGridView2.Name = "dataGridView2"; this.dataGridView2.RowHeadersVisible = false; this.dataGridView2.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; - this.dataGridView2.Size = new System.Drawing.Size(674, 392); + this.dataGridView2.Size = new System.Drawing.Size(542, 323); this.dataGridView2.TabIndex = 0; - this.dataGridView2.CellValueChanged += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView2_CellValueChanged); + this.dataGridView2.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView2_CellClick); // // btnObnovit // - this.btnObnovit.Location = new System.Drawing.Point(3, 14); + this.btnObnovit.Location = new System.Drawing.Point(6, 79); this.btnObnovit.Name = "btnObnovit"; this.btnObnovit.Size = new System.Drawing.Size(75, 23); this.btnObnovit.TabIndex = 1; @@ -5527,38 +5629,23 @@ // this.grboxFormulare.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left))); - this.grboxFormulare.Controls.Add(this.button131); this.grboxFormulare.Controls.Add(this.btnTlacitForm); - this.grboxFormulare.Controls.Add(this.button55); this.grboxFormulare.Controls.Add(this.btnExportFrm); - this.grboxFormulare.Controls.Add(this.button54); this.grboxFormulare.Controls.Add(this.btnZmazatFrm); - this.grboxFormulare.Controls.Add(this.button53); this.grboxFormulare.Controls.Add(this.btnPridatFrm); - this.grboxFormulare.Controls.Add(this.button52); this.grboxFormulare.Controls.Add(this.dataGridView9); this.grboxFormulare.Enabled = false; - this.grboxFormulare.Location = new System.Drawing.Point(3, 35); + this.grboxFormulare.Location = new System.Drawing.Point(3, 32); this.grboxFormulare.Name = "grboxFormulare"; - this.grboxFormulare.Size = new System.Drawing.Size(614, 481); + this.grboxFormulare.Size = new System.Drawing.Size(617, 463); this.grboxFormulare.TabIndex = 5; this.grboxFormulare.TabStop = false; this.grboxFormulare.Text = "Formuláre"; // - // button131 - // - this.button131.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); - this.button131.Location = new System.Drawing.Point(408, 436); - this.button131.Name = "button131"; - this.button131.Size = new System.Drawing.Size(75, 23); - this.button131.TabIndex = 10; - this.button131.Text = "192.168.1.12"; - this.button131.UseVisualStyleBackColor = true; - this.button131.Click += new System.EventHandler(this.button131_Click); - // // btnTlacitForm // - this.btnTlacitForm.Location = new System.Drawing.Point(408, 105); + this.btnTlacitForm.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.btnTlacitForm.Location = new System.Drawing.Point(411, 105); this.btnTlacitForm.Name = "btnTlacitForm"; this.btnTlacitForm.Size = new System.Drawing.Size(199, 23); this.btnTlacitForm.TabIndex = 4; @@ -5566,20 +5653,10 @@ this.btnTlacitForm.UseVisualStyleBackColor = true; this.btnTlacitForm.Click += new System.EventHandler(this.btnTlacitForm_Click); // - // button55 - // - this.button55.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); - this.button55.Location = new System.Drawing.Point(489, 407); - this.button55.Name = "button55"; - this.button55.Size = new System.Drawing.Size(75, 23); - this.button55.TabIndex = 9; - this.button55.Text = "IP4 localIP"; - this.button55.UseVisualStyleBackColor = true; - this.button55.Click += new System.EventHandler(this.button55_Click); - // // btnExportFrm // - this.btnExportFrm.Location = new System.Drawing.Point(408, 76); + this.btnExportFrm.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.btnExportFrm.Location = new System.Drawing.Point(411, 76); this.btnExportFrm.Name = "btnExportFrm"; this.btnExportFrm.Size = new System.Drawing.Size(199, 23); this.btnExportFrm.TabIndex = 3; @@ -5587,20 +5664,10 @@ this.btnExportFrm.UseVisualStyleBackColor = true; this.btnExportFrm.Click += new System.EventHandler(this.btnExportFrm_Click); // - // button54 - // - this.button54.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); - this.button54.Location = new System.Drawing.Point(408, 407); - this.button54.Name = "button54"; - this.button54.Size = new System.Drawing.Size(75, 23); - this.button54.TabIndex = 8; - this.button54.Text = "IP3 mysql"; - this.button54.UseVisualStyleBackColor = true; - this.button54.Click += new System.EventHandler(this.button54_Click); - // // btnZmazatFrm // - this.btnZmazatFrm.Location = new System.Drawing.Point(408, 47); + this.btnZmazatFrm.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.btnZmazatFrm.Location = new System.Drawing.Point(411, 47); this.btnZmazatFrm.Name = "btnZmazatFrm"; this.btnZmazatFrm.Size = new System.Drawing.Size(199, 23); this.btnZmazatFrm.TabIndex = 2; @@ -5608,20 +5675,10 @@ this.btnZmazatFrm.UseVisualStyleBackColor = true; this.btnZmazatFrm.Click += new System.EventHandler(this.btnZmazatFrm_Click); // - // button53 - // - this.button53.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); - this.button53.Location = new System.Drawing.Point(488, 378); - this.button53.Name = "button53"; - this.button53.Size = new System.Drawing.Size(75, 23); - this.button53.TabIndex = 7; - this.button53.Text = "IP2 mysql"; - this.button53.UseVisualStyleBackColor = true; - this.button53.Click += new System.EventHandler(this.button53_Click); - // // btnPridatFrm // - this.btnPridatFrm.Location = new System.Drawing.Point(407, 19); + this.btnPridatFrm.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.btnPridatFrm.Location = new System.Drawing.Point(410, 19); this.btnPridatFrm.Name = "btnPridatFrm"; this.btnPridatFrm.Size = new System.Drawing.Size(200, 23); this.btnPridatFrm.TabIndex = 1; @@ -5629,17 +5686,6 @@ this.btnPridatFrm.UseVisualStyleBackColor = true; this.btnPridatFrm.Click += new System.EventHandler(this.btnPridatFrm_Click); // - // button52 - // - this.button52.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); - this.button52.Location = new System.Drawing.Point(407, 378); - this.button52.Name = "button52"; - this.button52.Size = new System.Drawing.Size(75, 23); - this.button52.TabIndex = 6; - this.button52.Text = "Public IP"; - this.button52.UseVisualStyleBackColor = true; - this.button52.Click += new System.EventHandler(this.button52_Click); - // // dataGridView9 // this.dataGridView9.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) @@ -5654,7 +5700,7 @@ this.dataGridView9.ShowCellToolTips = false; this.dataGridView9.ShowEditingIcon = false; this.dataGridView9.ShowRowErrors = false; - this.dataGridView9.Size = new System.Drawing.Size(395, 456); + this.dataGridView9.Size = new System.Drawing.Size(398, 438); this.dataGridView9.TabIndex = 0; // // tabPage10 @@ -6308,7 +6354,7 @@ this.panel56.Controls.Add(this.label114); this.panel56.Controls.Add(this.label117); this.panel56.Controls.Add(this.comboBox14); - this.panel56.Location = new System.Drawing.Point(3, 323); + this.panel56.Location = new System.Drawing.Point(3, 298); this.panel56.Name = "panel56"; this.panel56.Size = new System.Drawing.Size(284, 191); this.panel56.TabIndex = 33; @@ -6614,7 +6660,7 @@ this.panelPridatUdrzbu.Controls.Add(this.label45); this.panelPridatUdrzbu.Controls.Add(this.comboBox5); this.panelPridatUdrzbu.Controls.Add(this.comboBox6); - this.panelPridatUdrzbu.Location = new System.Drawing.Point(300, 253); + this.panelPridatUdrzbu.Location = new System.Drawing.Point(300, 228); this.panelPridatUdrzbu.Name = "panelPridatUdrzbu"; this.panelPridatUdrzbu.Size = new System.Drawing.Size(284, 261); this.panelPridatUdrzbu.TabIndex = 30; @@ -6976,7 +7022,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(1119, 25); + this.panel25.Location = new System.Drawing.Point(988, 25); this.panel25.Name = "panel25"; this.panel25.Size = new System.Drawing.Size(184, 190); this.panel25.TabIndex = 28; @@ -7063,7 +7109,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(1207, 0); + this.button73.Location = new System.Drawing.Point(1078, 0); this.button73.Name = "button73"; this.button73.Size = new System.Drawing.Size(97, 23); this.button73.TabIndex = 27; @@ -7084,7 +7130,7 @@ this.dataGridView8.ReadOnly = true; this.dataGridView8.RowHeadersVisible = false; this.dataGridView8.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; - this.dataGridView8.Size = new System.Drawing.Size(1302, 482); + this.dataGridView8.Size = new System.Drawing.Size(1173, 457); this.dataGridView8.TabIndex = 26; // // tabPage12 @@ -7380,7 +7426,7 @@ this.dataGridView7.ReadOnly = true; this.dataGridView7.RowHeadersVisible = false; this.dataGridView7.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; - this.dataGridView7.Size = new System.Drawing.Size(1301, 473); + this.dataGridView7.Size = new System.Drawing.Size(1301, 452); this.dataGridView7.TabIndex = 34; this.dataGridView7.DataSourceChanged += new System.EventHandler(this.dataGridView7_DataSourceChanged); this.dataGridView7.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView7_CellDoubleClick); @@ -7403,11 +7449,11 @@ // // button181 // - this.button181.Location = new System.Drawing.Point(6, 6); + this.button181.Location = new System.Drawing.Point(0, 0); this.button181.Name = "button181"; - this.button181.Size = new System.Drawing.Size(75, 25); + this.button181.Size = new System.Drawing.Size(89, 43); this.button181.TabIndex = 7; - this.button181.Text = "button181"; + this.button181.Text = "Vyhodnotiť zákazku"; this.button181.UseVisualStyleBackColor = true; this.button181.Click += new System.EventHandler(this.button181_Click); // @@ -7420,13 +7466,13 @@ | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.dataGridView10.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; - this.dataGridView10.Location = new System.Drawing.Point(1, 37); + this.dataGridView10.Location = new System.Drawing.Point(1, 43); this.dataGridView10.MultiSelect = false; this.dataGridView10.Name = "dataGridView10"; this.dataGridView10.ReadOnly = true; this.dataGridView10.RowHeadersVisible = false; this.dataGridView10.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; - this.dataGridView10.Size = new System.Drawing.Size(1301, 479); + this.dataGridView10.Size = new System.Drawing.Size(1301, 448); this.dataGridView10.TabIndex = 6; // // tabPage14 @@ -7456,7 +7502,7 @@ this.flowLayoutPanel1.Controls.Add(this.panel33); this.flowLayoutPanel1.Location = new System.Drawing.Point(-1, -1); this.flowLayoutPanel1.Name = "flowLayoutPanel1"; - this.flowLayoutPanel1.Size = new System.Drawing.Size(271, 517); + this.flowLayoutPanel1.Size = new System.Drawing.Size(271, 494); this.flowLayoutPanel1.TabIndex = 10; // // panel28 @@ -7802,7 +7848,7 @@ // this.panel34.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.panel34.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.panel34.Location = new System.Drawing.Point(271, 489); + this.panel34.Location = new System.Drawing.Point(271, 466); this.panel34.Name = "panel34"; this.panel34.Size = new System.Drawing.Size(27, 27); this.panel34.TabIndex = 5; @@ -7832,7 +7878,7 @@ this.gMapControl1.ScaleMode = GMap.NET.WindowsForms.ScaleModes.Integer; this.gMapControl1.SelectedAreaFillColor = System.Drawing.Color.FromArgb(((int)(((byte)(33)))), ((int)(((byte)(65)))), ((int)(((byte)(105)))), ((int)(((byte)(225))))); this.gMapControl1.ShowTileGridLines = false; - this.gMapControl1.Size = new System.Drawing.Size(1005, 517); + this.gMapControl1.Size = new System.Drawing.Size(1005, 494); this.gMapControl1.TabIndex = 4; this.gMapControl1.Zoom = 8D; this.gMapControl1.Paint += new System.Windows.Forms.PaintEventHandler(this.gMapControl1_Paint); @@ -7847,7 +7893,7 @@ this.trackBar1.Minimum = 3; this.trackBar1.Name = "trackBar1"; this.trackBar1.Orientation = System.Windows.Forms.Orientation.Vertical; - this.trackBar1.Size = new System.Drawing.Size(45, 489); + this.trackBar1.Size = new System.Drawing.Size(45, 469); this.trackBar1.TabIndex = 6; this.trackBar1.Value = 14; this.trackBar1.ValueChanged += new System.EventHandler(this.trackBar1_ValueChanged); @@ -7884,14 +7930,14 @@ this.panel55.Controls.Add(this.label77); this.panel55.Location = new System.Drawing.Point(784, 2); this.panel55.Name = "panel55"; - this.panel55.Size = new System.Drawing.Size(106, 514); + this.panel55.Size = new System.Drawing.Size(106, 492); this.panel55.TabIndex = 3; // // button142 // this.button142.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.button142.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238))); - this.button142.Location = new System.Drawing.Point(2, 311); + this.button142.Location = new System.Drawing.Point(2, 289); this.button142.Name = "button142"; this.button142.Size = new System.Drawing.Size(100, 49); this.button142.TabIndex = 23; @@ -7902,7 +7948,7 @@ // this.button143.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.button143.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238))); - this.button143.Location = new System.Drawing.Point(2, 361); + this.button143.Location = new System.Drawing.Point(2, 339); this.button143.Name = "button143"; this.button143.Size = new System.Drawing.Size(100, 49); this.button143.TabIndex = 22; @@ -7913,7 +7959,7 @@ // this.button141.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.button141.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238))); - this.button141.Location = new System.Drawing.Point(2, 411); + this.button141.Location = new System.Drawing.Point(2, 389); this.button141.Name = "button141"; this.button141.Size = new System.Drawing.Size(100, 49); this.button141.TabIndex = 21; @@ -7924,7 +7970,7 @@ // this.button139.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.button139.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238))); - this.button139.Location = new System.Drawing.Point(2, 211); + this.button139.Location = new System.Drawing.Point(2, 189); this.button139.Name = "button139"; this.button139.Size = new System.Drawing.Size(100, 49); this.button139.TabIndex = 20; @@ -7935,7 +7981,7 @@ // this.button140.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.button140.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238))); - this.button140.Location = new System.Drawing.Point(2, 261); + this.button140.Location = new System.Drawing.Point(2, 239); this.button140.Name = "button140"; this.button140.Size = new System.Drawing.Size(100, 49); this.button140.TabIndex = 19; @@ -7946,7 +7992,7 @@ // this.button138.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.button138.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238))); - this.button138.Location = new System.Drawing.Point(2, 111); + this.button138.Location = new System.Drawing.Point(2, 89); this.button138.Name = "button138"; this.button138.Size = new System.Drawing.Size(100, 49); this.button138.TabIndex = 18; @@ -7958,7 +8004,7 @@ // this.button137.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.button137.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238))); - this.button137.Location = new System.Drawing.Point(2, 161); + this.button137.Location = new System.Drawing.Point(2, 139); this.button137.Name = "button137"; this.button137.Size = new System.Drawing.Size(100, 49); this.button137.TabIndex = 17; @@ -7970,7 +8016,7 @@ // this.button136.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.button136.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238))); - this.button136.Location = new System.Drawing.Point(2, 461); + this.button136.Location = new System.Drawing.Point(2, 439); this.button136.Name = "button136"; this.button136.Size = new System.Drawing.Size(100, 49); this.button136.TabIndex = 16; @@ -8268,7 +8314,7 @@ this.dataGridView17.Name = "dataGridView17"; this.dataGridView17.RowHeadersVisible = false; this.dataGridView17.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; - this.dataGridView17.Size = new System.Drawing.Size(780, 413); + this.dataGridView17.Size = new System.Drawing.Size(780, 391); this.dataGridView17.TabIndex = 1; this.dataGridView17.RowEnter += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView17_RowEnter); // @@ -8310,7 +8356,7 @@ this.panel53.Controls.Add(this.label49); this.panel53.Location = new System.Drawing.Point(892, 2); this.panel53.Name = "panel53"; - this.panel53.Size = new System.Drawing.Size(409, 514); + this.panel53.Size = new System.Drawing.Size(409, 492); this.panel53.TabIndex = 0; // // label106 @@ -8318,7 +8364,7 @@ this.label106.BackColor = System.Drawing.Color.Wheat; this.label106.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.label106.Dock = System.Windows.Forms.DockStyle.Bottom; - this.label106.Location = new System.Drawing.Point(0, 285); + this.label106.Location = new System.Drawing.Point(0, 263); this.label106.Name = "label106"; this.label106.Size = new System.Drawing.Size(407, 22); this.label106.TabIndex = 30; @@ -8330,7 +8376,7 @@ this.flowLayoutPanel3.AutoSize = true; this.flowLayoutPanel3.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.flowLayoutPanel3.Dock = System.Windows.Forms.DockStyle.Bottom; - this.flowLayoutPanel3.Location = new System.Drawing.Point(0, 307); + this.flowLayoutPanel3.Location = new System.Drawing.Point(0, 285); this.flowLayoutPanel3.Name = "flowLayoutPanel3"; this.flowLayoutPanel3.Size = new System.Drawing.Size(407, 2); this.flowLayoutPanel3.TabIndex = 29; @@ -8600,22 +8646,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; - chartArea4.Name = "ChartArea1"; - this.chart2.ChartAreas.Add(chartArea4); + chartArea2.Name = "ChartArea1"; + this.chart2.ChartAreas.Add(chartArea2); this.chart2.Dock = System.Windows.Forms.DockStyle.Bottom; - legend4.Name = "Legend1"; - this.chart2.Legends.Add(legend4); - this.chart2.Location = new System.Drawing.Point(0, 309); + legend2.Name = "Legend1"; + this.chart2.Legends.Add(legend2); + this.chart2.Location = new System.Drawing.Point(0, 287); this.chart2.Name = "chart2"; - series6.ChartArea = "ChartArea1"; - series6.IsValueShownAsLabel = true; - series6.Legend = "Legend1"; - series6.Name = "Rozmer"; - series6.Points.Add(dataPoint5); - series6.Points.Add(dataPoint6); - series6.Points.Add(dataPoint7); - series6.Points.Add(dataPoint8); - this.chart2.Series.Add(series6); + series3.ChartArea = "ChartArea1"; + series3.IsValueShownAsLabel = true; + series3.Legend = "Legend1"; + series3.Name = "Rozmer"; + series3.Points.Add(dataPoint1); + series3.Points.Add(dataPoint2); + series3.Points.Add(dataPoint3); + series3.Points.Add(dataPoint4); + this.chart2.Series.Add(series3); this.chart2.Size = new System.Drawing.Size(407, 203); this.chart2.TabIndex = 2; this.chart2.Text = "chart2"; @@ -8758,7 +8804,7 @@ this.dataGridView12.ReadOnly = true; this.dataGridView12.RowHeadersVisible = false; this.dataGridView12.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; - this.dataGridView12.Size = new System.Drawing.Size(1302, 450); + this.dataGridView12.Size = new System.Drawing.Size(1301, 429); this.dataGridView12.TabIndex = 1; this.dataGridView12.Visible = false; this.dataGridView12.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView12_CellDoubleClick); @@ -8827,7 +8873,7 @@ this.dataGridView15.ReadOnly = true; this.dataGridView15.RowHeadersVisible = false; this.dataGridView15.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; - this.dataGridView15.Size = new System.Drawing.Size(199, 418); + this.dataGridView15.Size = new System.Drawing.Size(199, 397); this.dataGridView15.TabIndex = 23; this.dataGridView15.Visible = false; this.dataGridView15.Paint += new System.Windows.Forms.PaintEventHandler(this.dataGridView15_Paint); @@ -8983,7 +9029,7 @@ this.dataGridView13.ReadOnly = true; this.dataGridView13.RowHeadersVisible = false; this.dataGridView13.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; - this.dataGridView13.Size = new System.Drawing.Size(1101, 450); + this.dataGridView13.Size = new System.Drawing.Size(1101, 429); this.dataGridView13.TabIndex = 10; this.dataGridView13.Visible = false; this.dataGridView13.SelectionChanged += new System.EventHandler(this.dataGridView13_SelectionChanged); @@ -9114,7 +9160,7 @@ // label65 // this.label65.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.label65.Location = new System.Drawing.Point(1211, 1); + this.label65.Location = new System.Drawing.Point(1082, 1); this.label65.Name = "label65"; this.label65.Size = new System.Drawing.Size(90, 19); this.label65.TabIndex = 37; @@ -9124,7 +9170,7 @@ // numericUpDown23 // this.numericUpDown23.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.numericUpDown23.Location = new System.Drawing.Point(1162, 1); + this.numericUpDown23.Location = new System.Drawing.Point(1033, 1); this.numericUpDown23.Minimum = new decimal(new int[] { 1, 0, @@ -9146,7 +9192,7 @@ this.panel43.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.panel43.Controls.Add(this.groupBox4); this.panel43.Controls.Add(this.panel44); - this.panel43.Location = new System.Drawing.Point(1124, 43); + this.panel43.Location = new System.Drawing.Point(995, 43); this.panel43.Name = "panel43"; this.panel43.Size = new System.Drawing.Size(179, 82); this.panel43.TabIndex = 40; @@ -9229,7 +9275,7 @@ // button105 // this.button105.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.button105.Location = new System.Drawing.Point(1161, 21); + this.button105.Location = new System.Drawing.Point(1032, 21); this.button105.Name = "button105"; this.button105.Size = new System.Drawing.Size(143, 22); this.button105.TabIndex = 39; @@ -9252,7 +9298,7 @@ this.dataGridView14.ReadOnly = true; this.dataGridView14.RowHeadersVisible = false; this.dataGridView14.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; - this.dataGridView14.Size = new System.Drawing.Size(1302, 473); + this.dataGridView14.Size = new System.Drawing.Size(1173, 452); this.dataGridView14.TabIndex = 35; this.dataGridView14.Visible = false; this.dataGridView14.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView14_CellClick); @@ -9927,7 +9973,6 @@ this.tabPage20.TabIndex = 25; this.tabPage20.Text = "Evidencia brúsených nástrojov"; this.tabPage20.UseVisualStyleBackColor = true; - this.tabPage20.Enter += new System.EventHandler(this.tabPage20_Enter); // // panel69 // @@ -9935,6 +9980,8 @@ | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.panel69.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.panel69.Controls.Add(this.button198); + this.panel69.Controls.Add(this.button197); this.panel69.Controls.Add(this.button193); this.panel69.Controls.Add(this.panel71); this.panel69.Controls.Add(this.button190); @@ -9964,7 +10011,7 @@ this.panel69.Controls.Add(this.label193); this.panel69.Controls.Add(this.label194); this.panel69.Controls.Add(this.label192); - this.panel69.Controls.Add(this.label191); + this.panel69.Controls.Add(this.label226); this.panel69.Controls.Add(this.button186); this.panel69.Controls.Add(this.button185); this.panel69.Controls.Add(this.button184); @@ -9974,10 +10021,30 @@ this.panel69.Controls.Add(this.dataGridView21); this.panel69.Controls.Add(this.dataGridView20); this.panel69.Controls.Add(this.dataGridView19); - this.panel69.Location = new System.Drawing.Point(0, 0); + this.panel69.Location = new System.Drawing.Point(2, 2); this.panel69.Name = "panel69"; this.panel69.Size = new System.Drawing.Size(1306, 519); - this.panel69.TabIndex = 0; + this.panel69.TabIndex = 1; + // + // button198 + // + this.button198.Location = new System.Drawing.Point(1284, 433); + this.button198.Name = "button198"; + this.button198.Size = new System.Drawing.Size(140, 23); + this.button198.TabIndex = 42; + this.button198.Text = "Vrátiť do výroby"; + this.button198.UseVisualStyleBackColor = true; + this.button198.Click += new System.EventHandler(this.button198_Click); + // + // button197 + // + this.button197.Location = new System.Drawing.Point(1425, 433); + this.button197.Name = "button197"; + this.button197.Size = new System.Drawing.Size(140, 23); + this.button197.TabIndex = 41; + this.button197.Text = "Vrátiť na sklad"; + this.button197.UseVisualStyleBackColor = true; + this.button197.Click += new System.EventHandler(this.button197_Click); // // button193 // @@ -10367,16 +10434,16 @@ this.label192.Text = "Na sklade"; this.label192.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // - // label191 + // label226 // - this.label191.BackColor = System.Drawing.Color.PapayaWhip; - this.label191.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.label191.Location = new System.Drawing.Point(1, 64); - this.label191.Name = "label191"; - this.label191.Size = new System.Drawing.Size(421, 25); - this.label191.TabIndex = 11; - this.label191.Text = "Na brúsení"; - this.label191.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; + this.label226.BackColor = System.Drawing.Color.PapayaWhip; + this.label226.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.label226.Location = new System.Drawing.Point(1, 64); + this.label226.Name = "label226"; + this.label226.Size = new System.Drawing.Size(421, 25); + this.label226.TabIndex = 11; + this.label226.Text = "Na brúsení"; + this.label226.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // button186 // @@ -11553,8 +11620,10 @@ // // lblZobrazenyPocet // + this.lblZobrazenyPocet.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); this.lblZobrazenyPocet.Font = new System.Drawing.Font("Calibri", 18F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238))); - this.lblZobrazenyPocet.Location = new System.Drawing.Point(1, 28); + this.lblZobrazenyPocet.Location = new System.Drawing.Point(1, 101); this.lblZobrazenyPocet.Name = "lblZobrazenyPocet"; this.lblZobrazenyPocet.Size = new System.Drawing.Size(82, 33); this.lblZobrazenyPocet.TabIndex = 1; @@ -11563,8 +11632,10 @@ // // label23 // + this.label23.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); this.label23.Font = new System.Drawing.Font("Calibri", 7.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238))); - this.label23.Location = new System.Drawing.Point(1, 1); + this.label23.Location = new System.Drawing.Point(1, 81); this.label23.Name = "label23"; this.label23.Size = new System.Drawing.Size(82, 26); this.label23.TabIndex = 0; @@ -11639,7 +11710,7 @@ this.lblVerzia.Name = "lblVerzia"; this.lblVerzia.Size = new System.Drawing.Size(34, 13); this.lblVerzia.TabIndex = 13; - this.lblVerzia.Text = "0,999"; + this.lblVerzia.Text = "1,005"; this.lblVerzia.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; // // label50 @@ -11654,8 +11725,10 @@ // // checkBox60 // + this.checkBox60.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); this.checkBox60.AutoSize = true; - this.checkBox60.Location = new System.Drawing.Point(1, 61); + this.checkBox60.Location = new System.Drawing.Point(1, 131); this.checkBox60.Name = "checkBox60"; this.checkBox60.Size = new System.Drawing.Size(77, 17); this.checkBox60.TabIndex = 15; @@ -11667,14 +11740,56 @@ // this.panel46.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.panel46.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.panel46.Controls.Add(this.label191); + this.panel46.Controls.Add(this.numericUpDown40); this.panel46.Controls.Add(this.checkBox60); this.panel46.Controls.Add(this.label23); this.panel46.Controls.Add(this.lblZobrazenyPocet); this.panel46.Location = new System.Drawing.Point(1315, 175); this.panel46.Name = "panel46"; - this.panel46.Size = new System.Drawing.Size(86, 78); + this.panel46.Size = new System.Drawing.Size(86, 148); this.panel46.TabIndex = 15; // + // label191 + // + this.label191.Font = new System.Drawing.Font("Calibri", 7.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238))); + this.label191.Location = new System.Drawing.Point(1, 1); + this.label191.Name = "label191"; + this.label191.Size = new System.Drawing.Size(82, 41); + this.label191.TabIndex = 17; + this.label191.Text = "MAX počet položiek na zobrazenie:"; + this.label191.TextAlign = System.Drawing.ContentAlignment.TopCenter; + // + // numericUpDown40 + // + this.numericUpDown40.Font = new System.Drawing.Font("Microsoft Sans Serif", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238))); + this.numericUpDown40.Increment = new decimal(new int[] { + 100, + 0, + 0, + 0}); + this.numericUpDown40.Location = new System.Drawing.Point(1, 42); + this.numericUpDown40.Maximum = new decimal(new int[] { + 99900, + 0, + 0, + 0}); + this.numericUpDown40.Minimum = new decimal(new int[] { + 100, + 0, + 0, + 0}); + this.numericUpDown40.Name = "numericUpDown40"; + this.numericUpDown40.Size = new System.Drawing.Size(82, 32); + this.numericUpDown40.TabIndex = 16; + this.numericUpDown40.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; + this.numericUpDown40.Value = new decimal(new int[] { + 99900, + 0, + 0, + 0}); + this.numericUpDown40.ValueChanged += new System.EventHandler(this.numericUpDown40_ValueChanged); + // // flowLayoutPanel4 // this.flowLayoutPanel4.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); @@ -12035,11 +12150,13 @@ ((System.ComponentModel.ISupportInitialize)(this.dataGridView18)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.chart1)).EndInit(); this.tabPage9.ResumeLayout(false); - this.panel73.ResumeLayout(false); - this.panel73.PerformLayout(); + this.panel74.ResumeLayout(false); + this.panel74.PerformLayout(); this.panel72.ResumeLayout(false); this.panel72.PerformLayout(); this.groupBox1.ResumeLayout(false); + this.panel73.ResumeLayout(false); + this.panel73.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.dataGridView2)).EndInit(); this.grboxFormulare.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.dataGridView9)).EndInit(); @@ -12179,6 +12296,7 @@ this.statusStrip1.PerformLayout(); this.panel46.ResumeLayout(false); this.panel46.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this.numericUpDown40)).EndInit(); this.panel68.ResumeLayout(false); this.panel68.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.numericUpDown39)).EndInit(); @@ -12948,76 +13066,10 @@ private System.Windows.Forms.Label label185; private System.Windows.Forms.Label label184; private System.Windows.Forms.Label label183; - private System.Windows.Forms.TabPage tabPage20; - private System.Windows.Forms.Panel panel69; - private System.Windows.Forms.Label label192; + private System.Windows.Forms.NumericUpDown numericUpDown40; private System.Windows.Forms.Label label191; - private System.Windows.Forms.Button button186; - private System.Windows.Forms.Button button185; - private System.Windows.Forms.Button button184; - private System.Windows.Forms.Button button183; - private System.Windows.Forms.Button button182; - private System.Windows.Forms.DataGridView dataGridView22; - private System.Windows.Forms.DataGridView dataGridView21; - private System.Windows.Forms.DataGridView dataGridView20; - private System.Windows.Forms.DataGridView dataGridView19; - private System.Windows.Forms.Label label193; - private System.Windows.Forms.Label label194; - private System.Windows.Forms.TextBox textBox39; - private System.Windows.Forms.Label label209; - private System.Windows.Forms.Label label208; - private System.Windows.Forms.Label label207; - private System.Windows.Forms.Label label206; - private System.Windows.Forms.Label label205; - private System.Windows.Forms.Label label204; - private System.Windows.Forms.Label label203; - private System.Windows.Forms.Label label202; - private System.Windows.Forms.Label label201; - private System.Windows.Forms.Label label200; - private System.Windows.Forms.Label label199; - private System.Windows.Forms.Label label198; - private System.Windows.Forms.Label label197; - private System.Windows.Forms.Label label196; - private System.Windows.Forms.Label label195; - private System.Windows.Forms.Panel panel70; - private System.Windows.Forms.Button button188; - private System.Windows.Forms.Button button187; - private System.Windows.Forms.TextBox textBox40; - private System.Windows.Forms.Label label210; - private System.Windows.Forms.TextBox textBox42; - private System.Windows.Forms.TextBox textBox41; - private System.Windows.Forms.TextBox textBox43; - private System.Windows.Forms.Label label211; - private System.Windows.Forms.Label label212; - private System.Windows.Forms.Button button189; - private System.Windows.Forms.Button button190; - private System.Windows.Forms.Button button193; - private System.Windows.Forms.Panel panel71; - private System.Windows.Forms.Label label213; - private System.Windows.Forms.Button button191; - private System.Windows.Forms.Button button192; - private System.Windows.Forms.TextBox textBox44; - private System.Windows.Forms.Panel panel72; - private System.Windows.Forms.TextBox textBox45; - private System.Windows.Forms.Button button194; - private System.Windows.Forms.ComboBox comboBox1; private System.Windows.Forms.Panel panel73; - private System.Windows.Forms.TextBox textBox49; - private System.Windows.Forms.TextBox textBox48; - private System.Windows.Forms.TextBox textBox47; - private System.Windows.Forms.TextBox textBox46; - private System.Windows.Forms.Label label225; - private System.Windows.Forms.Label label224; - private System.Windows.Forms.Label label223; - private System.Windows.Forms.Label label222; - private System.Windows.Forms.Label label221; - private System.Windows.Forms.Label label220; - private System.Windows.Forms.Label label219; - private System.Windows.Forms.Label label218; - private System.Windows.Forms.Label label217; - private System.Windows.Forms.Label label216; - private System.Windows.Forms.Label label215; - private System.Windows.Forms.Label label214; + private System.Windows.Forms.Button button195; private System.Windows.Forms.CheckBox checkBox89; private System.Windows.Forms.CheckBox checkBox90; private System.Windows.Forms.CheckBox checkBox91; @@ -13039,7 +13091,79 @@ private System.Windows.Forms.CheckBox checkBox76; private System.Windows.Forms.CheckBox checkBox75; private System.Windows.Forms.CheckBox checkBox74; - private System.Windows.Forms.Button button195; + private System.Windows.Forms.TextBox textBox49; + private System.Windows.Forms.TextBox textBox48; + private System.Windows.Forms.TextBox textBox47; + private System.Windows.Forms.TextBox textBox46; + private System.Windows.Forms.Label label225; + private System.Windows.Forms.Label label224; + private System.Windows.Forms.Label label223; + private System.Windows.Forms.Label label222; + private System.Windows.Forms.Label label221; + private System.Windows.Forms.Label label220; + private System.Windows.Forms.Label label219; + private System.Windows.Forms.Label label218; + private System.Windows.Forms.Label label217; + private System.Windows.Forms.Label label216; + private System.Windows.Forms.Label label215; + private System.Windows.Forms.Label label214; + private System.Windows.Forms.Panel panel72; + private System.Windows.Forms.TextBox textBox45; + private System.Windows.Forms.Button button194; + private System.Windows.Forms.TabPage tabPage20; + private System.Windows.Forms.Panel panel69; + private System.Windows.Forms.Button button193; + private System.Windows.Forms.Panel panel71; + private System.Windows.Forms.Label label213; + private System.Windows.Forms.Button button191; + private System.Windows.Forms.Button button192; + private System.Windows.Forms.TextBox textBox44; + private System.Windows.Forms.Button button190; + private System.Windows.Forms.Button button189; + private System.Windows.Forms.Label label212; + private System.Windows.Forms.Label label211; + private System.Windows.Forms.TextBox textBox43; + private System.Windows.Forms.TextBox textBox42; + private System.Windows.Forms.TextBox textBox41; + private System.Windows.Forms.Panel panel70; + private System.Windows.Forms.Label label210; + private System.Windows.Forms.Button button188; + private System.Windows.Forms.Button button187; + private System.Windows.Forms.TextBox textBox40; + private System.Windows.Forms.Label label209; + private System.Windows.Forms.Label label208; + private System.Windows.Forms.Label label207; + private System.Windows.Forms.Label label206; + private System.Windows.Forms.Label label205; + private System.Windows.Forms.Label label204; + private System.Windows.Forms.Label label203; + private System.Windows.Forms.Label label202; + private System.Windows.Forms.Label label201; + private System.Windows.Forms.Label label200; + private System.Windows.Forms.Label label199; + private System.Windows.Forms.Label label198; + private System.Windows.Forms.Label label197; + private System.Windows.Forms.Label label196; + private System.Windows.Forms.Label label195; + private System.Windows.Forms.TextBox textBox39; + private System.Windows.Forms.Label label193; + private System.Windows.Forms.Label label194; + private System.Windows.Forms.Label label192; + private System.Windows.Forms.Label label226; + private System.Windows.Forms.Button button186; + private System.Windows.Forms.Button button185; + private System.Windows.Forms.Button button184; + private System.Windows.Forms.Button button183; + private System.Windows.Forms.Button button182; + private System.Windows.Forms.DataGridView dataGridView22; + private System.Windows.Forms.DataGridView dataGridView21; + private System.Windows.Forms.DataGridView dataGridView20; + private System.Windows.Forms.DataGridView dataGridView19; + private System.Windows.Forms.Panel panel74; + private System.Windows.Forms.TextBox textBox50; + private System.Windows.Forms.Button button196; + private System.Windows.Forms.Button button198; + private System.Windows.Forms.Button button197; } } diff --git a/Mip/frmMain.cs b/Mip/frmMain.cs index e6d6626..f138401 100644 --- a/Mip/frmMain.cs +++ b/Mip/frmMain.cs @@ -31,7 +31,8 @@ namespace Mip public partial class frmMain : Form { - bool odblokuj=false; + //bool odblokuj=false; + int rowIndex = -1; public frmMain() { @@ -42,11 +43,8 @@ namespace Mip tabSpecifikaciaMain.Columns.Add("Dáta špecifikácie", typeof(System.String)); tabSpecifikaciaMain.Columns.Add("Brúsiteľný", typeof(System.Boolean)); tabSpecifikaciaMain.Columns.Add("Vymazaný", typeof(System.Boolean)); - } - - #region kalkulacka private void button5_Click(object sender, EventArgs e) @@ -1936,34 +1934,35 @@ namespace Mip { DataTable tblUsers = new DataTable(); - classSQL.SQL("SELECT * from tabusers ORDER BY priezvisko", out tblUsers); + classSQL.SQL("SELECT * from tabusers where `IDUsers` > 2 ORDER BY priezvisko", out tblUsers); //classSQL.dTable = tblUsers; dataGridView2.DataSource = tblUsers; - - dataGridView2.Columns["IDUsers"].HeaderText = "Id užívateľa"; - dataGridView2.Columns["IDUsers"].ReadOnly = true; - odblokuj = true; + + dataGridView2.Columns["IDUsers"].Visible = false; + dataGridView2.ClearSelection(); + if(rowIndex > 0)dataGridView2.Rows[rowIndex].Selected = true; + //odblokuj = true; } - private void dataGridView2_CellValueChanged(object sender, DataGridViewCellEventArgs e) - { + //private void dataGridView2_CellValueChanged(object sender, DataGridViewCellEventArgs e) + //{ - string c; - if (odblokuj) - { + // string c; + // if (odblokuj) + // { - c = "UPDATE `mip`.`tabusers` SET `" - + dataGridView2.Columns[e.ColumnIndex].Name.ToString() - + "` = " - + dataGridView2.CurrentCell.Value.ToString() - + " WHERE `IDUsers`=" - + dataGridView2.Rows[e.RowIndex].Cells["IDUsers"].Value.ToString() - + ";"; + // c = "UPDATE `mip`.`tabusers` SET `" + // + dataGridView2.Columns[e.ColumnIndex].Name.ToString() + // + "` = " + // + dataGridView2.CurrentCell.Value.ToString() + // + " WHERE `IDUsers`=" + // + dataGridView2.Rows[e.RowIndex].Cells["IDUsers"].Value.ToString() + // + ";"; - classSQL.SQL(c); + // classSQL.SQL(c); - } - } + // } + //} private void button1_Click(object sender, EventArgs e) { @@ -1973,15 +1972,27 @@ namespace Mip private void btnPridatUzivatela_Click(object sender, EventArgs e) { + string cmd = ""; + Int32 lastUserInsert; + cmd = @"INSERT INTO `mip`.`tabusers` (`Meno`, `Priezvisko`, `OnlineStatus`, `PristupovePrava`, `Status`, `Zaradenie`) VALUES ('NoveMeno', '', 'Offline', 0, 'Neaktívny', 'Administratíva');"; + classSQL.SQL(cmd,out lastUserInsert); + btnObnovit_Click(null, null); + dataGridView2.ClearSelection(); + dataGridView2.Rows[0].Selected = true; - /* - DataTable table = System.Data.Sql.SqlDataSourceEnumerator.Instance.GetDataSources(); - foreach (DataRow server in table.Rows) - { - comboBox1.Items.Add(server[table.Columns["ServerName"]]); - } - */ + textBox46.Text = dataGridView2.SelectedRows[0].Cells["Meno"].Value.ToString(); + textBox47.Text = dataGridView2.SelectedRows[0].Cells["Priezvisko"].Value.ToString(); + textBox48.Text = dataGridView2.SelectedRows[0].Cells["Titul"].Value.ToString(); + textBox49.Text = dataGridView2.SelectedRows[0].Cells["Heslo"].Value.ToString(); + label221.Text = dataGridView2.SelectedRows[0].Cells["OnlineStatus"].Value.ToString(); + label222.Text = dataGridView2.SelectedRows[0].Cells["Status"].Value.ToString(); + label223.Text = dataGridView2.SelectedRows[0].Cells["Zaradenie"].Value.ToString(); + label225.Text = dataGridView2.SelectedRows[0].Cells["PristupovePrava"].Value.ToString(); + if (dataGridView2.SelectedRows[0].Cells["Status"].Value.ToString() == "Aktívny") panel73.BackColor = Color.MintCream; + if (dataGridView2.SelectedRows[0].Cells["Status"].Value.ToString() == "Neaktívny") panel73.BackColor = Color.MistyRose; + converToBoolArray(label225.Text); + rowIndex = dataGridView2.SelectedRows[0].Index; } private void btnExportFrm_Click(object sender, EventArgs e) @@ -2003,6 +2014,34 @@ namespace Mip classSQL.SQL("SELECT `NazovSuboru`,`PoznamkaFormulara`,`IDFormulara` FROM `tabformular`", out globNastaveniadtbl); dataGridView9.DataSource = globNastaveniadtbl; + ToolTip toolTip1 = new ToolTip(); + + toolTip1.AutoPopDelay = 7000; + toolTip1.InitialDelay = 150; + toolTip1.ReshowDelay = 100; + toolTip1.ShowAlways = true; + + toolTip1.SetToolTip(this.checkBox74, "Dopyty"); + toolTip1.SetToolTip(this.checkBox75, "Zoznam výrobkov"); + toolTip1.SetToolTip(this.checkBox76, "Výdaj materiálu"); + toolTip1.SetToolTip(this.checkBox79, "Riadenie výroby"); + toolTip1.SetToolTip(this.checkBox78, "Skladové operácie"); + toolTip1.SetToolTip(this.checkBox77, "Expedícia"); + toolTip1.SetToolTip(this.checkBox82, "Kategorizácia zmätkovitosti"); + toolTip1.SetToolTip(this.checkBox81, "Zmätkovitosť"); + toolTip1.SetToolTip(this.checkBox80, "Nastavenia"); + toolTip1.SetToolTip(this.checkBox85, "Zoznam Strojov"); + toolTip1.SetToolTip(this.checkBox84, "Údržby a opravy"); + toolTip1.SetToolTip(this.checkBox83, "Naceňovanie"); + toolTip1.SetToolTip(this.checkBox88, "Vyhodnocovanie"); + toolTip1.SetToolTip(this.checkBox87, "Zoznam firiem"); + toolTip1.SetToolTip(this.checkBox86, "Nástroje"); + toolTip1.SetToolTip(this.checkBox94, "Výkresy"); + toolTip1.SetToolTip(this.checkBox93, "Sklad"); + toolTip1.SetToolTip(this.checkBox92, "Požiadavky/Pripomienky"); + toolTip1.SetToolTip(this.checkBox91, "Žiadankový systém"); + toolTip1.SetToolTip(this.checkBox90, "Evidencia brúsených nástrojov"); + toolTip1.SetToolTip(this.checkBox89, "Zatiaľ nepridelené"); } @@ -2093,11 +2132,6 @@ namespace Mip private void frmMain_FormClosed(object sender, FormClosedEventArgs e) { - /* - string TempPath = Application.StartupPath + @"\MipTemp"; - classDiskOperations.UnmapDrive('W'); - classDiskOperations.RemovePath(TempPath); - */ classSQL.SQL("UPDATE `mip`.`tabusers` SET `OnlineStatus`='Offline' WHERE `IDUsers`=" + classUser.ID + ";"); //classSQL.commandSQL("UPDATE `mip`.`tabusers` SET `OnlineStatus`='Offline' WHERE `IDUsers`=" + classUser.ID + ";"); eventWatcher.Stop(); @@ -2112,6 +2146,7 @@ namespace Mip this.Location = new Point(5, 5); classGlobal.SetServerIP(); + classUser.LimitSqlPrikazu = Convert.ToInt32(numericUpDown40.Value); if(classUser.MariaDBServerIPAddress != "0.0.0.0") { @@ -2140,7 +2175,7 @@ namespace Mip Timer refreshZistiNovuSpravu = new Timer(); private void ZistiNovuSpravu(object sender, EventArgs e) { - if (refreshZistiNovuSpravu.Interval == 10000) + if (refreshZistiNovuSpravu.Interval == 20000) { panel4.Visible = false; @@ -2180,6 +2215,7 @@ namespace Mip private void frmMain_Shown(object sender, EventArgs e) { + if (classUser.ID == 1 || classUser.ID == 2) numericUpDown40.Value = 100; /////////////////////////// zobrazenie povolenych zaloziek usera v tabcontroll //////////////////////////////////////////// int p1,p2,p3; // p1 pocitadlo cyklu, p2 - pocet zaloziek, p3 - ukazovatel na aktualnu zalozku Int32 intMaska; @@ -2460,9 +2496,9 @@ namespace Mip TextBox lTextBox = new TextBox(); lTextBox.Size = new Size(lPocetKusov.Size.Width + 47, 20); lTextBox.Location = new Point(1, lPocetKusov.Size.Height - 7); - lTextBox.TextChanged += new EventHandler(ltext); if (dGVVydajMat.Rows[eRI].Cells["PocetVydKusov"].Value.ToString() == "") lTextBox.Text = dGVVydajMat.Rows[eRI].Cells["PocetDoVyroby"].Value.ToString(); else lTextBox.Text = dGVVydajMat.Rows[eRI].Cells["PocetVydKusov"].Value.ToString(); + lTextBox.TextChanged += new EventHandler(ltext); lTextBox.KeyPress += new KeyPressEventHandler(ltextkeypress); lButton = new Button(); @@ -2486,7 +2522,7 @@ namespace Mip pPocetKusov.Controls.Add(lTextBox); pPocetKusov.Controls.Add(lButton); this.Controls.Add(pPocetKusov); - lButton.Focus(); + lTextBox.Focus(); lButton.Click += new EventHandler(SaveClosePanel); @@ -5342,79 +5378,77 @@ namespace Mip private void dataGridView3_Paint(object sender, PaintEventArgs e) { - if(dataGridView3.DataSource != null) + dataGridView3.DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter; + dataGridView3.ColumnHeadersDefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter; + dataGridView3.Columns["StatusDopytu"].HeaderText = "Status dopytu"; + dataGridView3.Columns["StatusDopytu"].Visible = false; + dataGridView3.Columns["PocetZmatkov"].HeaderText = "Počet zmätkov"; + dataGridView3.Columns["DatumZaznamu"].HeaderText = "Dátum záznamu"; + dataGridView3.Columns["StatusZaznamu"].HeaderText = "Status záznamu"; + dataGridView3.Columns["Impregnacia"].HeaderText = "Impregnácia"; + dataGridView3.Columns["KontrolaLapovanie"].HeaderText = "Kontrola a lapovanie"; + dataGridView3.Columns["ChybyMaterialu"].HeaderText = "Chyby materiálu"; + + dataGridView3.Columns["IDZmatky"].Visible = false; + dataGridView3.Columns["IDCPOBJ"].Visible = false; + dataGridView3.Columns["IDVyrobok"].Visible = false; + + + //nastavenie velkosti stlpcov + dataGridView3.Columns["Zákazkové číslo"].Width = 62; + dataGridView3.Columns["Názov výrobku"].AutoSizeMode = DataGridViewAutoSizeColumnMode.DisplayedCellsExceptHeader; + dataGridView3.Columns["Spojené rozmery"].AutoSizeMode = DataGridViewAutoSizeColumnMode.DisplayedCellsExceptHeader; + dataGridView3.Columns["Materiál"].MinimumWidth = 60; + dataGridView3.Columns["Materiál"].AutoSizeMode = DataGridViewAutoSizeColumnMode.DisplayedCellsExceptHeader; + dataGridView3.Columns["Úprava materiálu"].MinimumWidth = 60; + dataGridView3.Columns["Úprava materiálu"].AutoSizeMode = DataGridViewAutoSizeColumnMode.DisplayedCellsExceptHeader; + dataGridView3.Columns["Zákazník"].AutoSizeMode = DataGridViewAutoSizeColumnMode.DisplayedCellsExceptHeader; + dataGridView3.Columns["Objednaný počet kusov"].Width = 60; + dataGridView3.Columns["Počet kusov do výroby"].Width = 60; + dataGridView3.Columns["Počet vydaných kusov"].Width = 60; + dataGridView3.Columns["Počet vyrobených dobrých kusov"].Width = 64; + dataGridView3.Columns["PocetZmatkov"].Width = 60; + dataGridView3.Columns["Počet odoslaných kusov"].Width = 64; + dataGridView3.Columns["Počet kusov na sklad"].Width = 60; + dataGridView3.Columns["DatumZaznamu"].Width = 70; + dataGridView3.Columns["StatusZaznamu"].AutoSizeMode = DataGridViewAutoSizeColumnMode.DisplayedCellsExceptHeader; + dataGridView3.Columns["Rezanie"].Width = 70; + dataGridView3.Columns["Klasika"].Width = 70; + dataGridView3.Columns["Impregnacia"].Width = 70; + dataGridView3.Columns["CNC"].Width = 70; + dataGridView3.Columns["KontrolaLapovanie"].Width = 70; + dataGridView3.Columns["ChybyMaterialu"].Width = 70; + + if (button80.Text == "Zobrazenie (min)") { - dataGridView3.DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter; - dataGridView3.ColumnHeadersDefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter; - dataGridView3.Columns["StatusDopytu"].HeaderText = "Status dopytu"; - dataGridView3.Columns["StatusDopytu"].Visible = false; - dataGridView3.Columns["PocetZmatkov"].HeaderText = "Počet zmätkov"; - dataGridView3.Columns["DatumZaznamu"].HeaderText = "Dátum záznamu"; - dataGridView3.Columns["StatusZaznamu"].HeaderText = "Status záznamu"; - dataGridView3.Columns["Impregnacia"].HeaderText = "Impregnácia"; - dataGridView3.Columns["KontrolaLapovanie"].HeaderText = "Kontrola a lapovanie"; - dataGridView3.Columns["ChybyMaterialu"].HeaderText = "Chyby materiálu"; - - dataGridView3.Columns["IDZmatky"].Visible = false; - dataGridView3.Columns["IDCPOBJ"].Visible = false; - dataGridView3.Columns["IDVyrobok"].Visible = false; - - - //nastavenie velkosti stlpcov - dataGridView3.Columns["Zákazkové číslo"].Width = 62; - dataGridView3.Columns["Názov výrobku"].AutoSizeMode = DataGridViewAutoSizeColumnMode.DisplayedCellsExceptHeader; - dataGridView3.Columns["Spojené rozmery"].AutoSizeMode = DataGridViewAutoSizeColumnMode.DisplayedCellsExceptHeader; - dataGridView3.Columns["Materiál"].MinimumWidth = 60; - dataGridView3.Columns["Materiál"].AutoSizeMode = DataGridViewAutoSizeColumnMode.DisplayedCellsExceptHeader; - dataGridView3.Columns["Úprava materiálu"].MinimumWidth = 60; - dataGridView3.Columns["Úprava materiálu"].AutoSizeMode = DataGridViewAutoSizeColumnMode.DisplayedCellsExceptHeader; - dataGridView3.Columns["Zákazník"].AutoSizeMode = DataGridViewAutoSizeColumnMode.DisplayedCellsExceptHeader; - dataGridView3.Columns["Objednaný počet kusov"].Width = 60; - dataGridView3.Columns["Počet kusov do výroby"].Width = 60; - dataGridView3.Columns["Počet vydaných kusov"].Width = 60; - dataGridView3.Columns["Počet vyrobených dobrých kusov"].Width = 64; - dataGridView3.Columns["PocetZmatkov"].Width = 60; - dataGridView3.Columns["Počet odoslaných kusov"].Width = 64; - dataGridView3.Columns["Počet kusov na sklad"].Width = 60; - dataGridView3.Columns["DatumZaznamu"].Width = 70; - dataGridView3.Columns["StatusZaznamu"].AutoSizeMode = DataGridViewAutoSizeColumnMode.DisplayedCellsExceptHeader; - dataGridView3.Columns["Rezanie"].Width = 70; - dataGridView3.Columns["Klasika"].Width = 70; - dataGridView3.Columns["Impregnacia"].Width = 70; - dataGridView3.Columns["CNC"].Width = 70; - dataGridView3.Columns["KontrolaLapovanie"].Width = 70; - dataGridView3.Columns["ChybyMaterialu"].Width = 70; - - if (button80.Text == "Zobrazenie (min)") - { - dataGridView3.Columns["Názov výrobku"].Visible = true; - dataGridView3.Columns["Spojené rozmery"].Visible = true; - dataGridView3.Columns["Zákazník"].Visible = true; - dataGridView3.Columns["Objednaný počet kusov"].Visible = true; - dataGridView3.Columns["Počet kusov do výroby"].Visible = true; - dataGridView3.Columns["Počet vydaných kusov"].Visible = true; - dataGridView3.Columns["Počet vyrobených dobrých kusov"].Visible = true; - dataGridView3.Columns["Počet odoslaných kusov"].Visible = true; - dataGridView3.Columns["Počet kusov na sklad"].Visible = true; - dataGridView3.Columns["DatumZaznamu"].Visible = true; - dataGridView3.Columns["StatusZaznamu"].Visible = true; - } - else - { - dataGridView3.Columns["Názov výrobku"].Visible = false; - dataGridView3.Columns["Spojené rozmery"].Visible = false; - dataGridView3.Columns["Zákazník"].Visible = false; - dataGridView3.Columns["Objednaný počet kusov"].Visible = false; - dataGridView3.Columns["Počet kusov do výroby"].Visible = false; - dataGridView3.Columns["Počet vydaných kusov"].Visible = false; - dataGridView3.Columns["Počet vyrobených dobrých kusov"].Visible = false; - dataGridView3.Columns["Počet odoslaných kusov"].Visible = false; - dataGridView3.Columns["Počet kusov na sklad"].Visible = false; - dataGridView3.Columns["DatumZaznamu"].Visible = false; - dataGridView3.Columns["StatusZaznamu"].Visible = false; - } + dataGridView3.Columns["Názov výrobku"].Visible = true; + dataGridView3.Columns["Spojené rozmery"].Visible = true; + dataGridView3.Columns["Zákazník"].Visible = true; + dataGridView3.Columns["Objednaný počet kusov"].Visible = true; + dataGridView3.Columns["Počet kusov do výroby"].Visible = true; + dataGridView3.Columns["Počet vydaných kusov"].Visible = true; + dataGridView3.Columns["Počet vyrobených dobrých kusov"].Visible = true; + dataGridView3.Columns["Počet odoslaných kusov"].Visible = true; + dataGridView3.Columns["Počet kusov na sklad"].Visible = true; + dataGridView3.Columns["DatumZaznamu"].Visible = true; + dataGridView3.Columns["StatusZaznamu"].Visible = true; } - + else + { + dataGridView3.Columns["Názov výrobku"].Visible = false; + dataGridView3.Columns["Spojené rozmery"].Visible = false; + dataGridView3.Columns["Zákazník"].Visible = false; + dataGridView3.Columns["Objednaný počet kusov"].Visible = false; + dataGridView3.Columns["Počet kusov do výroby"].Visible = false; + dataGridView3.Columns["Počet vydaných kusov"].Visible = false; + dataGridView3.Columns["Počet vyrobených dobrých kusov"].Visible = false; + dataGridView3.Columns["Počet odoslaných kusov"].Visible = false; + dataGridView3.Columns["Počet kusov na sklad"].Visible = false; + dataGridView3.Columns["DatumZaznamu"].Visible = false; + dataGridView3.Columns["StatusZaznamu"].Visible = false; + } + + } private void button80_Click(object sender, EventArgs e) @@ -6531,7 +6565,7 @@ namespace Mip { if (dataGridView7.SelectedRows.Count > 0) { - if(classUser.ID == 1 || classUser.ID == 4 || classUser.ID == 6) + if(classUser.ID == 1 || classUser.ID == 4) { Form frmNacenovanie2 = new frmNacenovanie(Convert.ToInt32(dataGridView7.SelectedRows[0].Cells["IDNacenovanie"].Value), Convert.ToInt32(dataGridView7.SelectedRows[0].Cells["IDVyrobokNac"].Value), true, false, true, true, true, true); frmNacenovanie2.Text = "Naceňovanie - vyhodnocovanie"; @@ -6550,7 +6584,7 @@ namespace Mip private void dataGridView7_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { - if (classUser.ID == 1 || classUser.ID == 4 || classUser.ID == 6) + if (classUser.ID == 1 || classUser.ID == 4) { Form frmNacenovanie2 = new frmNacenovanie(Convert.ToInt32(dataGridView7.SelectedRows[0].Cells["IDNacenovanie"].Value), Convert.ToInt32(dataGridView7.SelectedRows[0].Cells["IDVyrobokNac"].Value), true, false, true, true, true, true); frmNacenovanie2.Text = "Naceňovanie - vyhodnocovanie"; @@ -9223,26 +9257,30 @@ string editDateRV; private void button181_Click(object sender, EventArgs e) { - if (dataGridView10.SelectedRows.Count >= 0) - { - if (classUser.ID == 1 || classUser.ID == 4 || classUser.ID == 6) - { - Form frmNacenovanie2 = new frmNacenovanie(10, 10, true, true, true, true, true, true); - frmNacenovanie2.Text = "Naceňovanie - vyhodnocovanie"; - frmNacenovanie2.ShowDialog(); - } - else - { - Form frmNacenovanie2 = new frmNacenovanie(Convert.ToInt32(dataGridView7.SelectedRows[0].Cells["IDNacenovanie"].Value), Convert.ToInt32(dataGridView7.SelectedRows[0].Cells["IDVyrobokNac"].Value), false, false, false, false, true, false); - frmNacenovanie2.Text = "Naceňovanie - vyhodnocovanie"; - frmNacenovanie2.ShowDialog(); - } + Form frmNacenovanie2 = new frmVybratTypVyhodnotenia(); + frmNacenovanie2.Text = "Naceňovanie - vyhodnocovanie"; + frmNacenovanie2.ShowDialog(); - } - refreshNacenovanie(); - } + //if (dataGridView10.SelectedRows.Count >= 0) + //{ + // if (classUser.ID == 1 || classUser.ID == 4) + // { + // Form frmNacenovanie2 = new frmNacenovanie(10, 10, true, true, true, true, true, true); + // frmNacenovanie2.Text = "Naceňovanie - vyhodnocovanie"; + // frmNacenovanie2.ShowDialog(); + // } + // else + // { + // Form frmNacenovanie2 = new frmNacenovanie(Convert.ToInt32(dataGridView7.SelectedRows[0].Cells["IDNacenovanie"].Value), Convert.ToInt32(dataGridView7.SelectedRows[0].Cells["IDVyrobokNac"].Value), false, false, false, false, true, false); + // frmNacenovanie2.Text = "Naceňovanie - vyhodnocovanie"; + // frmNacenovanie2.ShowDialog(); + // } - private void label182_Click(object sender, EventArgs e) + //} + //refreshNacenovanie(); + } + + private void label182_Click(object sender, EventArgs e) { panel68.Size = new Size(36, 35); panel68.Location = new Point(this.Size.Width - 45, panel68.Location.Y); @@ -9276,6 +9314,95 @@ string editDateRV; refreshSegment(numericUpDown37.Value, numericUpDown38.Value, numericUpDown39.Value); } + private void numericUpDown40_ValueChanged(object sender, EventArgs e) + { + classUser.LimitSqlPrikazu = Convert.ToInt32(numericUpDown40.Value); + } + + private void button194_Click(object sender, EventArgs e) + { + if (grboxFormulare.Enabled == false) grboxFormulare.Enabled = true; + else grboxFormulare.Enabled = false; + } + + private void textBox45_TextChanged(object sender, EventArgs e) + { + string password = "3"; + if (textBox45.Text == password) button194.Enabled = true; + else + { + button194.Enabled = false; + grboxFormulare.Enabled = false; + } + + } + + private void dataGridView2_CellClick(object sender, DataGridViewCellEventArgs e) + { + textBox46.Text = dataGridView2.SelectedRows[0].Cells["Meno"].Value.ToString(); + textBox47.Text = dataGridView2.SelectedRows[0].Cells["Priezvisko"].Value.ToString(); + textBox48.Text = dataGridView2.SelectedRows[0].Cells["Titul"].Value.ToString(); + textBox49.Text = dataGridView2.SelectedRows[0].Cells["Heslo"].Value.ToString(); + label221.Text = dataGridView2.SelectedRows[0].Cells["OnlineStatus"].Value.ToString(); + label222.Text = dataGridView2.SelectedRows[0].Cells["Status"].Value.ToString(); + label223.Text = dataGridView2.SelectedRows[0].Cells["Zaradenie"].Value.ToString(); + label225.Text = dataGridView2.SelectedRows[0].Cells["PristupovePrava"].Value.ToString(); + if (dataGridView2.SelectedRows[0].Cells["Status"].Value.ToString() == "Aktívny") panel73.BackColor = Color.MintCream; + if (dataGridView2.SelectedRows[0].Cells["Status"].Value.ToString() == "Neaktívny") panel73.BackColor = Color.MistyRose; + converToBoolArray(label225.Text); + rowIndex = dataGridView2.SelectedRows[0].Index; + + } + + private void converToBoolArray(string text) + { + string heslo = ToBin(Convert.ToInt32(text), 20); + bool[] hesloArray = heslo.Select(c => c == '1').ToArray(); + + checkBox74.Checked = hesloArray[19]; + checkBox75.Checked = hesloArray[18]; + checkBox76.Checked = hesloArray[17]; + checkBox79.Checked = hesloArray[16]; + checkBox78.Checked = hesloArray[15]; + checkBox77.Checked = hesloArray[14]; + checkBox82.Checked = hesloArray[13]; + checkBox81.Checked = hesloArray[12]; + checkBox80.Checked = hesloArray[11]; + checkBox85.Checked = hesloArray[10]; + checkBox84.Checked = hesloArray[9]; + checkBox83.Checked = hesloArray[8]; + checkBox88.Checked = hesloArray[7]; + checkBox87.Checked = hesloArray[6]; + checkBox86.Checked = hesloArray[5]; + checkBox94.Checked = hesloArray[4]; + checkBox93.Checked = hesloArray[3]; + checkBox92.Checked = hesloArray[2]; + checkBox91.Checked = hesloArray[1]; + checkBox90.Checked = hesloArray[0]; + checkBox89.Checked = false; + } + + private string convertToBinary(bool[] array) + { + byte[] bitArray = (from x in array select x ? (byte)0x1 : (byte)0x0).ToArray(); + string returnString = ""; + for (int i = bitArray.Length - 1; i > -1; i--) + { + returnString += bitArray[i].ToString(); + } + return returnString; + } + + private string convertToInt(string binaryString) + { + return Convert.ToInt32(binaryString, 2).ToString(); + } + + public static string ToBin(int value, int len) + { + return (len > 1 ? ToBin(value >> 1, len - 1) : null) + "01"[value & 1]; + } + private void button186_Click(object sender, EventArgs e) { Form frmPridatNastrojeDoSkladu2 = new frmPridatNastrojeDoSkladu(); @@ -9317,7 +9444,7 @@ string editDateRV; dataGridView21.DataSource = dvVoVyrobe; dataGridView22.DataSource = dvVyradene; - if(dataGridView21.Rows.Count == 0) + if (dataGridView21.Rows.Count == 0) { button182.Enabled = false; button185.Enabled = false; @@ -9348,7 +9475,7 @@ string editDateRV; private void dataGridView19_Paint(object sender, PaintEventArgs e) { - if(dataGridView19.DataSource != null) formatDGV(dataGridView19); + if (dataGridView19.DataSource != null) formatDGV(dataGridView19); } private void formatDGV(DataGridView dgv) @@ -9395,7 +9522,7 @@ string editDateRV; private void dataGridView19_RowEnter(object sender, DataGridViewCellEventArgs e) { - if(dataGridView19.SelectedRows.Count >0) infoNastroja(dataGridView19.SelectedRows[0]); + if (dataGridView19.SelectedRows.Count > 0) infoNastroja(dataGridView19.SelectedRows[0]); } private void infoNastroja(DataGridViewRow dgvr) @@ -9445,8 +9572,19 @@ string editDateRV; private void button184_Click(object sender, EventArgs e) { - if (panel70.Visible == false) panel70.Visible = true; - else panel70.Visible = false; + if(dataGridView20.SelectedRows[0].Cells["Číslo nástroja"].Value.ToString() != "") + { + Int32 index = Convert.ToInt32(dataGridView20.SelectedRows[0].Cells["Index brusenie"].Value.ToString()); + string cmd = "update `mip`.`tab-evidenciabruseni` SET `Status` = 'Vo výrobe', `Dátum zaradenia do výroby` = DATE(NOW()), `Číslo nástroja` = " + + dataGridView20.SelectedRows[0].Cells["Číslo nástroja"].Value.ToString() + " where `Index brusenie` = " + index.ToString() + ";"; + classSQL.SQL(cmd); + refreshEvidenciuBruseni(); + } + else + { + if (panel70.Visible == false) panel70.Visible = true; + else panel70.Visible = false; + } } private void button188_Click(object sender, EventArgs e) @@ -9466,7 +9604,7 @@ string editDateRV; private void panel70_VisibleChanged(object sender, EventArgs e) { - if(panel70.Visible == true) + if (panel70.Visible == true) { string cmd = ""; string typ = dataGridView20.SelectedRows[0].Cells["Typ"].Value.ToString(); @@ -9483,7 +9621,7 @@ string editDateRV; { int intResult; if (!(int.TryParse(textBox40.Text + e.KeyChar, out intResult)) && (int)e.KeyChar != 8) e.KeyChar = '\0'; - + } private void textBox40_TextChanged(object sender, EventArgs e) @@ -9493,7 +9631,7 @@ string editDateRV; if (Convert.ToInt32(textBox40.Text) - Convert.ToInt32(label210.Text) == 1) button187.Enabled = true; else button187.Enabled = false; } - + } @@ -9519,21 +9657,24 @@ string editDateRV; private void button189_Click(object sender, EventArgs e) { - - Int32 index = Convert.ToInt32(dataGridView20.SelectedRows[0].Cells["Index brusenie"].Value.ToString()); - string cmd = "update `mip`.`tab-evidenciabruseni` SET `Status` = 'Vyradený', `Dátum` = DATE(NOW()) where `Index brusenie` = " + index.ToString() + ";"; - classSQL.SQL(cmd); - refreshEvidenciuBruseni(); - + if (MessageBox.Show("Naozaj vyradiť nástroj zo skladu?", "Vyradiť nástroj??", MessageBoxButtons.YesNo) == DialogResult.Yes) + { + Int32 index = Convert.ToInt32(dataGridView20.SelectedRows[0].Cells["Index brusenie"].Value.ToString()); + string cmd = "update `mip`.`tab-evidenciabruseni` SET `Status` = 'Vyradený', `Dátum` = DATE(NOW()) where `Index brusenie` = " + index.ToString() + ";"; + classSQL.SQL(cmd); + refreshEvidenciuBruseni(); + } } private void button185_Click(object sender, EventArgs e) { - Int32 index = Convert.ToInt32(dataGridView21.SelectedRows[0].Cells["Index brusenie"].Value.ToString()); - string cmd = "update `mip`.`tab-evidenciabruseni` SET `Status` = 'Vyradený', `Dátum` = DATE(NOW()) where `Index brusenie` = " + index.ToString() + ";"; - classSQL.SQL(cmd); - refreshEvidenciuBruseni(); - + if (MessageBox.Show("Naozaj vyradiť nástroj číslo " + dataGridView21.SelectedRows[0].Cells["Číslo nástroja"].Value.ToString() + " z výroby?", "Vyradiť nástroj??", MessageBoxButtons.YesNo) == DialogResult.Yes) + { + Int32 index = Convert.ToInt32(dataGridView21.SelectedRows[0].Cells["Index brusenie"].Value.ToString()); + string cmd = "update `mip`.`tab-evidenciabruseni` SET `Status` = 'Vyradený', `Dátum` = DATE(NOW()) where `Index brusenie` = " + index.ToString() + ";"; + classSQL.SQL(cmd); + refreshEvidenciuBruseni(); + } } private void button182_Click(object sender, EventArgs e) @@ -9566,7 +9707,7 @@ string editDateRV; private void button190_Click(object sender, EventArgs e) { - if(dataGridView21.SelectedRows.Count != 0) + if (dataGridView21.SelectedRows.Count != 0) { Int32 index = 0; Int32 pocet = 0; @@ -9588,12 +9729,12 @@ string editDateRV; private void dataGridView19_SelectionChanged(object sender, EventArgs e) { - + } private void dataGridView20_SelectionChanged(object sender, EventArgs e) { - + } private void dataGridView22_SelectionChanged(object sender, EventArgs e) @@ -9652,19 +9793,6 @@ string editDateRV; refreshEvidenciuBruseni(); } - private void button194_Click(object sender, EventArgs e) - { - if (grboxFormulare.Enabled == false) { grboxFormulare.Enabled = true; groupBox1.Enabled = true; } - else { grboxFormulare.Enabled = false; groupBox1.Enabled = false; } - } - - private void textBox45_TextChanged(object sender, EventArgs e) - { - string password = "kompozitum2015"; - if (textBox45.Text == password) button194.Enabled = true; - else button194.Enabled = false; - } - private void button195_Click(object sender, EventArgs e) { //uložiť uzívateľa @@ -9677,12 +9805,12 @@ string editDateRV; { if (e.RowIndex != -1) { - if(bool_ZobrazVstupBruseniePoznamka == false) + if (bool_ZobrazVstupBruseniePoznamka == false) { - intBrusenieIndex = Convert.ToInt32(dataGridView20.Rows[e.RowIndex].Cells["Index brusenie"].Value); - PoznamkaText = dataGridView20.Rows[e.RowIndex].Cells["Poznámka"].Value.ToString(); - bool_ZobrazVstupBruseniePoznamka = true; - ZobrazVstupBruseniePoznamka(/*e.RowIndex*/); + intBrusenieIndex = Convert.ToInt32(dataGridView20.Rows[e.RowIndex].Cells["Index brusenie"].Value); + PoznamkaText = dataGridView20.Rows[e.RowIndex].Cells["Poznámka"].Value.ToString(); + bool_ZobrazVstupBruseniePoznamka = true; + ZobrazVstupBruseniePoznamka(/*e.RowIndex*/); } } @@ -9746,7 +9874,7 @@ string editDateRV; { string cmd = ""; - cmd = "update `mip`.`tab-evidenciabruseni` SET `Poznámka` = '" + PoznamkaText + "' where `Index brusenie` = " + intBrusenieIndex.ToString() + ";"; + cmd = "update `mip`.`tab-evidenciabruseni` SET `Poznámka` = '" + PoznamkaText + "' where `Index brusenie` = " + intBrusenieIndex.ToString() + ";"; classSQL.SQL(cmd); PoznamkaText = ""; @@ -9818,5 +9946,226 @@ string editDateRV; } } } + + private void dataGridView19_CellMouseClick(object sender, DataGridViewCellEventArgs e) + { + + } + + private void refreshPristup() + { + bool[] checkBoxValues = + { + checkBox74.Checked, + checkBox75.Checked, + checkBox76.Checked, + checkBox79.Checked, + checkBox78.Checked, + checkBox77.Checked, + checkBox82.Checked, + checkBox81.Checked, + checkBox80.Checked, + checkBox85.Checked, + checkBox84.Checked, + checkBox83.Checked, + checkBox88.Checked, + checkBox87.Checked, + checkBox86.Checked, + checkBox94.Checked, + checkBox93.Checked, + checkBox92.Checked, + checkBox91.Checked, + checkBox90.Checked + //checkBox89.Checked + }; + label225.Text = convertToInt(convertToBinary(checkBoxValues)); + } + + private void checkBox75_Click(object sender, EventArgs e) + { + refreshPristup(); + } + + private void checkBox76_Click(object sender, EventArgs e) + { + refreshPristup(); + } + + private void checkBox79_Click(object sender, EventArgs e) + { + refreshPristup(); + } + + private void checkBox78_Click(object sender, EventArgs e) + { + refreshPristup(); + } + + private void checkBox77_Click(object sender, EventArgs e) + { + refreshPristup(); + } + + private void checkBox82_Click(object sender, EventArgs e) + { + refreshPristup(); + } + + private void checkBox81_Click(object sender, EventArgs e) + { + refreshPristup(); + } + + private void checkBox80_Click(object sender, EventArgs e) + { + refreshPristup(); + } + + private void checkBox85_Click(object sender, EventArgs e) + { + refreshPristup(); + } + + private void checkBox84_Click(object sender, EventArgs e) + { + refreshPristup(); + } + + private void checkBox83_Click(object sender, EventArgs e) + { + refreshPristup(); + } + + private void checkBox88_Click(object sender, EventArgs e) + { + refreshPristup(); + } + + private void checkBox87_Click(object sender, EventArgs e) + { + refreshPristup(); + } + + private void checkBox86_Click(object sender, EventArgs e) + { + refreshPristup(); + } + + private void checkBox94_Click(object sender, EventArgs e) + { + refreshPristup(); + } + + private void checkBox93_Click(object sender, EventArgs e) + { + refreshPristup(); + } + + private void checkBox92_Click(object sender, EventArgs e) + { + refreshPristup(); + } + + private void checkBox91_Click(object sender, EventArgs e) + { + refreshPristup(); + } + + private void checkBox90_Click(object sender, EventArgs e) + { + refreshPristup(); + } + + private void checkBox89_Click(object sender, EventArgs e) + { + refreshPristup(); + } + + private void checkBox74_Click(object sender, EventArgs e) + { + refreshPristup(); + } + + private void label222_Click(object sender, EventArgs e) + { + if (label222.Text == "Neaktívny") + { + label222.Text = "Aktívny"; + panel73.BackColor = Color.MintCream; + } + else + { + label222.Text = "Neaktívny"; + panel73.BackColor = Color.MistyRose; + } + } + + private void label223_Click(object sender, EventArgs e) + { + if (label223.Text == "Administratíva") label223.Text = "Výroba"; + else label223.Text = "Administratíva"; + } + + private void button195_Click_1(object sender, EventArgs e) + { + classSQL.SQL("UPDATE `mip`.`tabusers` SET `OnlineStatus`='Offline' WHERE `IDUsers`=" + classUser.ID + ";"); + string cmd = ""; + cmd = "UPDATE `mip`.`tabusers` SET " + + "`Meno` = '" + textBox46.Text + + "', `Priezvisko` = '" + textBox47.Text + + "', `Titul` = '" + textBox48.Text + + "', `Heslo` = '" + textBox49.Text + + "', `OnlineStatus` = '" + label221.Text + + "', `PristupovePrava` = " + label225.Text + + ", `Status` = '" + label222.Text + + "', `Zaradenie` = '" + label223.Text + + "' WHERE `IDUsers` = " + dataGridView2.SelectedRows[0].Cells["IDUsers"].Value.ToString() + ";"; + + classSQL.SQL(cmd); + btnObnovit_Click(null, null); + } + + private void textBox50_TextChanged(object sender, EventArgs e) + { + string password = "kompozitum2017"; + if (textBox50.Text == password) button196.Enabled = true; + else + { + button196.Enabled = false; + groupBox1.Enabled = false; + panel73.Enabled = false; + } + } + + private void button196_Click(object sender, EventArgs e) + { + if (groupBox1.Enabled == false) { groupBox1.Enabled = true; panel73.Enabled = true; if (dataGridView2.RowCount == 0) btnObnovit_Click(null, null); } + else { groupBox1.Enabled = false; panel73.Enabled = false; } + } + + private void button197_Click(object sender, EventArgs e) + { + //vratit na sklad + if (dataGridView22.SelectedRows.Count > 0) + { + Int32 index = Convert.ToInt32(dataGridView22.SelectedRows[0].Cells["Index brusenie"].Value.ToString()); + string cmd = "update `mip`.`tab-evidenciabruseni` SET `Status` = 'Na sklade', `Dátum` = DATE(NOW()) where `Index brusenie` = " + index.ToString() + ";"; + classSQL.SQL(cmd); + refreshEvidenciuBruseni(); + } + } + + private void button198_Click(object sender, EventArgs e) + { + //vratit do vyroby + if(dataGridView22.SelectedRows.Count > 0) + { + Int32 index = Convert.ToInt32(dataGridView22.SelectedRows[0].Cells["Index brusenie"].Value.ToString()); + string cmd = "update `mip`.`tab-evidenciabruseni` SET `Status` = 'Vo výrobe', `Dátum` = DATE(NOW()) where `Index brusenie` = " + index.ToString() + ";"; + classSQL.SQL(cmd); + refreshEvidenciuBruseni(); + } + + } } } diff --git a/Mip/frmNacenovanie.Designer.cs b/Mip/frmNacenovanie.Designer.cs index 5cc4e13..4e3c9ba 100644 --- a/Mip/frmNacenovanie.Designer.cs +++ b/Mip/frmNacenovanie.Designer.cs @@ -1182,7 +1182,7 @@ this.panel1.Location = new System.Drawing.Point(0, 0); this.panel1.Margin = new System.Windows.Forms.Padding(1); this.panel1.Name = "panel1"; - this.panel1.Size = new System.Drawing.Size(551, 130); + this.panel1.Size = new System.Drawing.Size(1551, 130); this.panel1.TabIndex = 20; // // panel19 @@ -1443,7 +1443,7 @@ this.Výkres.Controls.Add(this.panel15); this.Výkres.Controls.Add(this.panel105); this.Výkres.Dock = System.Windows.Forms.DockStyle.Right; - this.Výkres.Location = new System.Drawing.Point(551, 0); + this.Výkres.Location = new System.Drawing.Point(1551, 0); this.Výkres.MaximumSize = new System.Drawing.Size(1073, 916); this.Výkres.MinimumSize = new System.Drawing.Size(23, 916); this.Výkres.Name = "Výkres"; @@ -1533,7 +1533,7 @@ // button4 // this.button4.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.button4.Location = new System.Drawing.Point(474, 31); + this.button4.Location = new System.Drawing.Point(1474, 31); this.button4.Margin = new System.Windows.Forms.Padding(1); this.button4.Name = "button4"; this.button4.Size = new System.Drawing.Size(75, 23); @@ -1588,9 +1588,9 @@ this.panel17.Controls.Add(this.button4); this.panel17.Controls.Add(this.button3); this.panel17.Dock = System.Windows.Forms.DockStyle.Bottom; - this.panel17.Location = new System.Drawing.Point(0, 860); + this.panel17.Location = new System.Drawing.Point(0, 865); this.panel17.Name = "panel17"; - this.panel17.Size = new System.Drawing.Size(551, 56); + this.panel17.Size = new System.Drawing.Size(1551, 56); this.panel17.TabIndex = 22; // // panel24 @@ -1601,7 +1601,7 @@ this.panel24.Dock = System.Windows.Forms.DockStyle.Top; this.panel24.Location = new System.Drawing.Point(0, 0); this.panel24.Name = "panel24"; - this.panel24.Size = new System.Drawing.Size(549, 31); + this.panel24.Size = new System.Drawing.Size(1549, 31); this.panel24.TabIndex = 13; // // label14 @@ -1610,7 +1610,7 @@ | System.Windows.Forms.AnchorStyles.Right))); this.label14.Location = new System.Drawing.Point(94, 1); this.label14.Name = "label14"; - this.label14.Size = new System.Drawing.Size(0, 29); + this.label14.Size = new System.Drawing.Size(1000, 29); this.label14.TabIndex = 1; this.label14.Text = "----"; // @@ -1641,7 +1641,7 @@ this.panel16.Location = new System.Drawing.Point(0, 130); this.panel16.MinimumSize = new System.Drawing.Size(551, 730); this.panel16.Name = "panel16"; - this.panel16.Size = new System.Drawing.Size(551, 730); + this.panel16.Size = new System.Drawing.Size(1551, 735); this.panel16.TabIndex = 21; // // Polotovar @@ -1653,7 +1653,7 @@ this.Polotovar.Controls.Add(this.label17); this.Polotovar.Controls.Add(this.panel10); this.Polotovar.Dock = System.Windows.Forms.DockStyle.Right; - this.Polotovar.Location = new System.Drawing.Point(411, 0); + this.Polotovar.Location = new System.Drawing.Point(351, 0); this.Polotovar.Margin = new System.Windows.Forms.Padding(1); this.Polotovar.MaximumSize = new System.Drawing.Size(324, 728); this.Polotovar.MinimumSize = new System.Drawing.Size(23, 728); @@ -2840,7 +2840,7 @@ this.Materiál.Controls.Add(this.label15); this.Materiál.Controls.Add(this.panel11); this.Materiál.Dock = System.Windows.Forms.DockStyle.Right; - this.Materiál.Location = new System.Drawing.Point(434, 0); + this.Materiál.Location = new System.Drawing.Point(374, 0); this.Materiál.Margin = new System.Windows.Forms.Padding(1); this.Materiál.MaximumSize = new System.Drawing.Size(457, 728); this.Materiál.MinimumSize = new System.Drawing.Size(23, 728); @@ -5222,12 +5222,12 @@ this.Naceňovanie.Controls.Add(this.panel77); this.Naceňovanie.Controls.Add(this.panel14); this.Naceňovanie.Dock = System.Windows.Forms.DockStyle.Right; - this.Naceňovanie.Location = new System.Drawing.Point(457, 0); + this.Naceňovanie.Location = new System.Drawing.Point(397, 0); this.Naceňovanie.Margin = new System.Windows.Forms.Padding(1); this.Naceňovanie.MaximumSize = new System.Drawing.Size(406, 728); this.Naceňovanie.MinimumSize = new System.Drawing.Size(23, 728); this.Naceňovanie.Name = "Naceňovanie"; - this.Naceňovanie.Size = new System.Drawing.Size(23, 728); + this.Naceňovanie.Size = new System.Drawing.Size(406, 728); this.Naceňovanie.TabIndex = 6; // // panel110 @@ -7045,12 +7045,12 @@ this.Vyhodnocovanie.Controls.Add(this.panel112); this.Vyhodnocovanie.Controls.Add(this.panel12); this.Vyhodnocovanie.Dock = System.Windows.Forms.DockStyle.Right; - this.Vyhodnocovanie.Location = new System.Drawing.Point(480, 0); + this.Vyhodnocovanie.Location = new System.Drawing.Point(803, 0); this.Vyhodnocovanie.Margin = new System.Windows.Forms.Padding(1); this.Vyhodnocovanie.MaximumSize = new System.Drawing.Size(700, 728); this.Vyhodnocovanie.MinimumSize = new System.Drawing.Size(23, 728); this.Vyhodnocovanie.Name = "Vyhodnocovanie"; - this.Vyhodnocovanie.Size = new System.Drawing.Size(23, 728); + this.Vyhodnocovanie.Size = new System.Drawing.Size(700, 728); this.Vyhodnocovanie.TabIndex = 4; // // panel112 @@ -8804,7 +8804,7 @@ this.Sadzby.Controls.Add(this.panel70); this.Sadzby.Controls.Add(this.panel13); this.Sadzby.Dock = System.Windows.Forms.DockStyle.Right; - this.Sadzby.Location = new System.Drawing.Point(503, 0); + this.Sadzby.Location = new System.Drawing.Point(1503, 0); this.Sadzby.Margin = new System.Windows.Forms.Padding(1); this.Sadzby.MaximumSize = new System.Drawing.Size(350, 728); this.Sadzby.MinimumSize = new System.Drawing.Size(23, 728); @@ -9481,7 +9481,7 @@ this.Počty.Controls.Add(this.panel98); this.Počty.Controls.Add(this.panel9); this.Počty.Dock = System.Windows.Forms.DockStyle.Right; - this.Počty.Location = new System.Drawing.Point(526, 0); + this.Počty.Location = new System.Drawing.Point(1526, 0); this.Počty.Margin = new System.Windows.Forms.Padding(1); this.Počty.MaximumSize = new System.Drawing.Size(403, 728); this.Počty.MinimumSize = new System.Drawing.Size(23, 728); @@ -11277,7 +11277,7 @@ // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(574, 916); + this.ClientSize = new System.Drawing.Size(1574, 921); this.Controls.Add(this.panel16); this.Controls.Add(this.panel1); this.Controls.Add(this.panel17); diff --git a/Mip/frmVybratTypVyhodnotenia.Designer.cs b/Mip/frmVybratTypVyhodnotenia.Designer.cs new file mode 100644 index 0000000..19a4e0f --- /dev/null +++ b/Mip/frmVybratTypVyhodnotenia.Designer.cs @@ -0,0 +1,450 @@ +namespace Mip +{ + partial class frmVybratTypVyhodnotenia + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.button2 = new System.Windows.Forms.Button(); + this.panel1 = new System.Windows.Forms.Panel(); + this.panel3 = new System.Windows.Forms.Panel(); + this.numericUpDown1 = new System.Windows.Forms.NumericUpDown(); + this.label7 = new System.Windows.Forms.Label(); + this.label8 = new System.Windows.Forms.Label(); + this.panel2 = new System.Windows.Forms.Panel(); + this.textBox5 = new System.Windows.Forms.TextBox(); + this.label11 = new System.Windows.Forms.Label(); + this.numericUpDown2 = new System.Windows.Forms.NumericUpDown(); + this.textBox3 = new System.Windows.Forms.TextBox(); + this.label5 = new System.Windows.Forms.Label(); + this.label10 = new System.Windows.Forms.Label(); + this.label2 = new System.Windows.Forms.Label(); + this.label9 = new System.Windows.Forms.Label(); + this.checkBox3 = new System.Windows.Forms.CheckBox(); + this.checkBox2 = new System.Windows.Forms.CheckBox(); + this.checkBox1 = new System.Windows.Forms.CheckBox(); + this.label6 = new System.Windows.Forms.Label(); + this.textBox4 = new System.Windows.Forms.TextBox(); + this.dataGridView2 = new System.Windows.Forms.DataGridView(); + this.label4 = new System.Windows.Forms.Label(); + this.textBox2 = new System.Windows.Forms.TextBox(); + this.label3 = new System.Windows.Forms.Label(); + this.textBox1 = new System.Windows.Forms.TextBox(); + this.label1 = new System.Windows.Forms.Label(); + this.panel1.SuspendLayout(); + this.panel3.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).BeginInit(); + this.panel2.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.numericUpDown2)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.dataGridView2)).BeginInit(); + this.SuspendLayout(); + // + // button2 + // + this.button2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.button2.Enabled = false; + this.button2.Font = new System.Drawing.Font("Microsoft Sans Serif", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238))); + this.button2.Location = new System.Drawing.Point(685, 1); + this.button2.Name = "button2"; + this.button2.Size = new System.Drawing.Size(224, 54); + this.button2.TabIndex = 11; + this.button2.Text = "Vytvoriť vyhodnotenie"; + this.button2.UseVisualStyleBackColor = true; + // + // panel1 + // + this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.panel1.Controls.Add(this.panel3); + this.panel1.Controls.Add(this.panel2); + this.panel1.Controls.Add(this.label2); + this.panel1.Controls.Add(this.label9); + this.panel1.Controls.Add(this.checkBox3); + this.panel1.Controls.Add(this.checkBox2); + this.panel1.Controls.Add(this.checkBox1); + this.panel1.Controls.Add(this.label6); + this.panel1.Controls.Add(this.textBox4); + this.panel1.Controls.Add(this.dataGridView2); + this.panel1.Controls.Add(this.label4); + this.panel1.Controls.Add(this.textBox2); + this.panel1.Controls.Add(this.label3); + this.panel1.Controls.Add(this.textBox1); + this.panel1.Controls.Add(this.label1); + this.panel1.Location = new System.Drawing.Point(2, 2); + this.panel1.Name = "panel1"; + this.panel1.Size = new System.Drawing.Size(916, 785); + this.panel1.TabIndex = 3; + // + // panel3 + // + this.panel3.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.panel3.Controls.Add(this.numericUpDown1); + this.panel3.Controls.Add(this.button2); + this.panel3.Controls.Add(this.label7); + this.panel3.Controls.Add(this.label8); + this.panel3.Location = new System.Drawing.Point(1, 723); + this.panel3.Name = "panel3"; + this.panel3.Size = new System.Drawing.Size(912, 59); + this.panel3.TabIndex = 24; + // + // numericUpDown1 + // + this.numericUpDown1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.numericUpDown1.DecimalPlaces = 3; + this.numericUpDown1.Enabled = false; + this.numericUpDown1.Font = new System.Drawing.Font("Microsoft Sans Serif", 30F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238))); + this.numericUpDown1.Increment = new decimal(new int[] { + 1, + 0, + 0, + 196608}); + this.numericUpDown1.Location = new System.Drawing.Point(253, 2); + this.numericUpDown1.Maximum = new decimal(new int[] { + 99999999, + 0, + 0, + 196608}); + this.numericUpDown1.Name = "numericUpDown1"; + this.numericUpDown1.Size = new System.Drawing.Size(258, 53); + this.numericUpDown1.TabIndex = 10; + this.numericUpDown1.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; + this.numericUpDown1.ValueChanged += new System.EventHandler(this.numericUpDown1_ValueChanged); + // + // label7 + // + this.label7.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.label7.Enabled = false; + this.label7.Font = new System.Drawing.Font("Microsoft Sans Serif", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238))); + this.label7.Location = new System.Drawing.Point(2, 2); + this.label7.Name = "label7"; + this.label7.Size = new System.Drawing.Size(248, 53); + this.label7.TabIndex = 16; + this.label7.Text = "Cena na porovnanie"; + this.label7.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // label8 + // + this.label8.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.label8.Enabled = false; + this.label8.Font = new System.Drawing.Font("Microsoft Sans Serif", 30F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238))); + this.label8.Location = new System.Drawing.Point(514, 2); + this.label8.Name = "label8"; + this.label8.Size = new System.Drawing.Size(54, 53); + this.label8.TabIndex = 17; + this.label8.Text = "€"; + this.label8.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // panel2 + // + this.panel2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.panel2.Controls.Add(this.textBox5); + this.panel2.Controls.Add(this.label11); + this.panel2.Controls.Add(this.numericUpDown2); + this.panel2.Controls.Add(this.textBox3); + this.panel2.Controls.Add(this.label5); + this.panel2.Controls.Add(this.label10); + this.panel2.Location = new System.Drawing.Point(1, 685); + this.panel2.Name = "panel2"; + this.panel2.Size = new System.Drawing.Size(912, 37); + this.panel2.TabIndex = 23; + // + // textBox5 + // + this.textBox5.Enabled = false; + this.textBox5.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238))); + this.textBox5.Location = new System.Drawing.Point(91, 4); + this.textBox5.Name = "textBox5"; + this.textBox5.Size = new System.Drawing.Size(178, 26); + this.textBox5.TabIndex = 7; + this.textBox5.TextChanged += new System.EventHandler(this.textBox5_TextChanged); + // + // label11 + // + this.label11.AutoSize = true; + this.label11.Enabled = false; + this.label11.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238))); + this.label11.Location = new System.Drawing.Point(8, 8); + this.label11.Name = "label11"; + this.label11.Size = new System.Drawing.Size(77, 20); + this.label11.TabIndex = 23; + this.label11.Text = "Zákazník:"; + // + // numericUpDown2 + // + this.numericUpDown2.Enabled = false; + this.numericUpDown2.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238))); + this.numericUpDown2.Location = new System.Drawing.Point(729, 4); + this.numericUpDown2.Maximum = new decimal(new int[] { + 100000, + 0, + 0, + 0}); + this.numericUpDown2.Minimum = new decimal(new int[] { + 1, + 0, + 0, + 0}); + this.numericUpDown2.Name = "numericUpDown2"; + this.numericUpDown2.Size = new System.Drawing.Size(178, 26); + this.numericUpDown2.TabIndex = 9; + this.numericUpDown2.Value = new decimal(new int[] { + 1, + 0, + 0, + 0}); + // + // textBox3 + // + this.textBox3.Enabled = false; + this.textBox3.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238))); + this.textBox3.Location = new System.Drawing.Point(429, 4); + this.textBox3.Name = "textBox3"; + this.textBox3.Size = new System.Drawing.Size(178, 26); + this.textBox3.TabIndex = 8; + // + // label5 + // + this.label5.AutoSize = true; + this.label5.Enabled = false; + this.label5.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238))); + this.label5.Location = new System.Drawing.Point(308, 8); + this.label5.Name = "label5"; + this.label5.Size = new System.Drawing.Size(115, 20); + this.label5.TabIndex = 19; + this.label5.Text = "Názov výrobku:"; + // + // label10 + // + this.label10.AutoSize = true; + this.label10.Enabled = false; + this.label10.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238))); + this.label10.Location = new System.Drawing.Point(624, 8); + this.label10.Name = "label10"; + this.label10.Size = new System.Drawing.Size(99, 20); + this.label10.TabIndex = 20; + this.label10.Text = "Počet kusov:"; + // + // label2 + // + this.label2.AutoSize = true; + this.label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238))); + this.label2.Location = new System.Drawing.Point(505, 28); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(241, 24); + this.label2.TabIndex = 18; + this.label2.Text = "Počet nájdených záznamov"; + // + // label9 + // + this.label9.Font = new System.Drawing.Font("Microsoft Sans Serif", 20F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238))); + this.label9.Location = new System.Drawing.Point(571, 53); + this.label9.Name = "label9"; + this.label9.Size = new System.Drawing.Size(110, 30); + this.label9.TabIndex = 5; + this.label9.Text = "label9"; + this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // checkBox3 + // + this.checkBox3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.checkBox3.AutoSize = true; + this.checkBox3.Location = new System.Drawing.Point(749, 68); + this.checkBox3.Name = "checkBox3"; + this.checkBox3.Size = new System.Drawing.Size(138, 17); + this.checkBox3.TabIndex = 6; + this.checkBox3.Text = "Cena zadaná manuálne"; + this.checkBox3.UseVisualStyleBackColor = true; + this.checkBox3.CheckedChanged += new System.EventHandler(this.checkBox3_CheckedChanged); + // + // checkBox2 + // + this.checkBox2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.checkBox2.AutoSize = true; + this.checkBox2.Checked = true; + this.checkBox2.CheckState = System.Windows.Forms.CheckState.Checked; + this.checkBox2.Location = new System.Drawing.Point(749, 47); + this.checkBox2.Name = "checkBox2"; + this.checkBox2.Size = new System.Drawing.Size(118, 17); + this.checkBox2.TabIndex = 5; + this.checkBox2.Text = "Zobraziť nacenenia"; + this.checkBox2.UseVisualStyleBackColor = true; + this.checkBox2.CheckedChanged += new System.EventHandler(this.checkBox2_CheckedChanged); + // + // checkBox1 + // + this.checkBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.checkBox1.AutoSize = true; + this.checkBox1.Checked = true; + this.checkBox1.CheckState = System.Windows.Forms.CheckState.Checked; + this.checkBox1.Location = new System.Drawing.Point(749, 26); + this.checkBox1.Name = "checkBox1"; + this.checkBox1.Size = new System.Drawing.Size(123, 17); + this.checkBox1.TabIndex = 4; + this.checkBox1.Text = "Zobraziť objednávky"; + this.checkBox1.UseVisualStyleBackColor = true; + this.checkBox1.CheckedChanged += new System.EventHandler(this.checkBox1_CheckedChanged); + // + // label6 + // + this.label6.AutoSize = true; + this.label6.Font = new System.Drawing.Font("Microsoft Sans Serif", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238))); + this.label6.Location = new System.Drawing.Point(209, 28); + this.label6.Name = "label6"; + this.label6.Size = new System.Drawing.Size(84, 24); + this.label6.TabIndex = 11; + this.label6.Text = "Zákazník"; + // + // textBox4 + // + this.textBox4.Font = new System.Drawing.Font("Microsoft Sans Serif", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238))); + this.textBox4.Location = new System.Drawing.Point(169, 55); + this.textBox4.Name = "textBox4"; + this.textBox4.Size = new System.Drawing.Size(164, 29); + this.textBox4.TabIndex = 2; + this.textBox4.TextChanged += new System.EventHandler(this.textBox4_TextChanged); + // + // dataGridView2 + // + this.dataGridView2.AllowUserToAddRows = false; + this.dataGridView2.AllowUserToDeleteRows = false; + this.dataGridView2.AllowUserToResizeColumns = false; + this.dataGridView2.AllowUserToResizeRows = false; + this.dataGridView2.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.dataGridView2.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; + this.dataGridView2.Location = new System.Drawing.Point(1, 86); + this.dataGridView2.MultiSelect = false; + this.dataGridView2.Name = "dataGridView2"; + this.dataGridView2.ReadOnly = true; + this.dataGridView2.RowHeadersVisible = false; + this.dataGridView2.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.DisableResizing; + this.dataGridView2.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; + this.dataGridView2.Size = new System.Drawing.Size(912, 598); + this.dataGridView2.TabIndex = 8; + this.dataGridView2.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView2_CellClick); + // + // label4 + // + this.label4.AutoSize = true; + this.label4.Font = new System.Drawing.Font("Microsoft Sans Serif", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238))); + this.label4.Location = new System.Drawing.Point(17, 28); + this.label4.Name = "label4"; + this.label4.Size = new System.Drawing.Size(134, 24); + this.label4.TabIndex = 7; + this.label4.Text = "Názov výrobku"; + // + // textBox2 + // + this.textBox2.Font = new System.Drawing.Font("Microsoft Sans Serif", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238))); + this.textBox2.Location = new System.Drawing.Point(2, 55); + this.textBox2.Name = "textBox2"; + this.textBox2.Size = new System.Drawing.Size(164, 29); + this.textBox2.TabIndex = 1; + this.textBox2.TextChanged += new System.EventHandler(this.textBox2_TextChanged); + // + // label3 + // + this.label3.AutoSize = true; + this.label3.Font = new System.Drawing.Font("Microsoft Sans Serif", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238))); + this.label3.Location = new System.Drawing.Point(346, 28); + this.label3.Name = "label3"; + this.label3.Size = new System.Drawing.Size(143, 24); + this.label3.TabIndex = 5; + this.label3.Text = "Zákazkové číslo"; + // + // textBox1 + // + this.textBox1.Font = new System.Drawing.Font("Microsoft Sans Serif", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238))); + this.textBox1.Location = new System.Drawing.Point(336, 55); + this.textBox1.Name = "textBox1"; + this.textBox1.Size = new System.Drawing.Size(164, 29); + this.textBox1.TabIndex = 3; + this.textBox1.TextChanged += new System.EventHandler(this.textBox1_TextChanged); + // + // label1 + // + this.label1.BackColor = System.Drawing.SystemColors.Info; + this.label1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.label1.Dock = System.Windows.Forms.DockStyle.Top; + this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238))); + this.label1.Location = new System.Drawing.Point(0, 0); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(914, 23); + this.label1.TabIndex = 3; + this.label1.Text = "Vybrať zdroj porovnania ceny"; + this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // frmVybratTypVyhodnotenia + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(919, 789); + this.Controls.Add(this.panel1); + this.Name = "frmVybratTypVyhodnotenia"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; + this.Text = "Vybrať zdroj"; + this.Load += new System.EventHandler(this.frmVybratTypVyhodnotenia_Load); + this.panel1.ResumeLayout(false); + this.panel1.PerformLayout(); + this.panel3.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).EndInit(); + this.panel2.ResumeLayout(false); + this.panel2.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this.numericUpDown2)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.dataGridView2)).EndInit(); + this.ResumeLayout(false); + + } + + #endregion + private System.Windows.Forms.Button button2; + private System.Windows.Forms.Panel panel1; + private System.Windows.Forms.Label label1; + private System.Windows.Forms.DataGridView dataGridView2; + private System.Windows.Forms.Label label4; + private System.Windows.Forms.TextBox textBox2; + private System.Windows.Forms.Label label3; + private System.Windows.Forms.TextBox textBox1; + private System.Windows.Forms.Label label8; + private System.Windows.Forms.Label label7; + private System.Windows.Forms.CheckBox checkBox3; + private System.Windows.Forms.NumericUpDown numericUpDown1; + private System.Windows.Forms.CheckBox checkBox2; + private System.Windows.Forms.CheckBox checkBox1; + private System.Windows.Forms.Label label6; + private System.Windows.Forms.TextBox textBox4; + private System.Windows.Forms.Label label9; + private System.Windows.Forms.Label label2; + private System.Windows.Forms.Label label10; + private System.Windows.Forms.Label label5; + private System.Windows.Forms.NumericUpDown numericUpDown2; + private System.Windows.Forms.TextBox textBox3; + private System.Windows.Forms.Panel panel3; + private System.Windows.Forms.Panel panel2; + private System.Windows.Forms.TextBox textBox5; + private System.Windows.Forms.Label label11; + } +} \ No newline at end of file diff --git a/Mip/frmVybratTypVyhodnotenia.cs b/Mip/frmVybratTypVyhodnotenia.cs new file mode 100644 index 0000000..29e8abd --- /dev/null +++ b/Mip/frmVybratTypVyhodnotenia.cs @@ -0,0 +1,293 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace Mip +{ + public partial class frmVybratTypVyhodnotenia : Form + { + DataTable dopyty; + public frmVybratTypVyhodnotenia() + { + InitializeComponent(); + string cmd = ""; + + cmd = $@"select `Zakaznik` as 'Zákazník', + `IdVyrobok` as 'ID výrobok', + `NazovVyrobku` as 'Názov výrobku', + `Material` as 'Materiál', + `Pocetkusov` as 'Počet', + `CenaOBJ` as 'Cena', + `ZakCislo` as 'Zákazkové číslo', + '0' as 'ID naceňovanie' + from `pohladdopyty` + where ((`pohladdopyty`.TypDopytu = 'Objednávka' or `pohladdopyty`.TypDopytu = 'Objednávka do kontraktu') and `pohladdopyty`.`StatusDopytu` = 'Odoslaná') + union select `tabvyrobok`.Zakaznik as 'Zákazník', + `tab-nacenovanie`.IdVyrobokNac as 'ID výrobok', + `tabvyrobok`.NazovVyrobku as 'Názov výrobku', + `Material1` as 'Materiál', + `PocetNacenovanychKusov` as 'Počet', + `myNuD71` as 'Cena', + '0' as 'Zákazkové číslo', + `tab-nacenovanie`.IDNacenovanie as 'ID naceňovanie' + from `tab-nacenovanie` + left join `tabvyrobok` on `tab-nacenovanie`.IdVyrobokNac = `tabvyrobok`.IdVyrobok + left join `tab-nacenovanie-nacenovanie` on `tab-nacenovanie`.IDNacenovanie = `tab-nacenovanie-nacenovanie`.IDNacenovanie + where `tab-nacenovanie-nacenovanie`.myNuD71 > 0"; + classSQL.SQL(cmd, out dopyty); + refreshZoznamTypVyhodnotenia(); + } + + private void refreshZoznamTypVyhodnotenia() + { + DataTable dataTable = new DataTable(); + if (checkBox3.Checked) + { + dataTable = null; + } + else + if (checkBox1.Checked) + { + if (checkBox2.Checked) + { + try + { + dataTable = dopyty.AsEnumerable() + .Where(row => + row.Field("Zákazkové číslo").ToLower().Contains(textBox1.Text.ToLower()) + && row.Field("Zákazník").ToLower().Contains(textBox4.Text.ToLower()) + && row.Field("Názov výrobku").ToLower().Contains(textBox2.Text.ToLower()) + ).CopyToDataTable(); + } + catch + { + dataTable = null; + } + } + else + { + try + { + dataTable = dopyty.AsEnumerable() + .Where(row => + row.Field("Zákazkové číslo").ToLower().Contains(textBox1.Text.ToLower()) + && row.Field("Zákazník").ToLower().Contains(textBox4.Text.ToLower()) + && row.Field("Názov výrobku").ToLower().Contains(textBox2.Text.ToLower()) + && row.Field("Zákazkové číslo") != "0" + ).CopyToDataTable(); + } + catch + { + dataTable = null; + } + } + + } + else + { + if (checkBox2.Checked) + { + try + { + dataTable = dopyty.AsEnumerable() + .Where(row => + row.Field("Zákazkové číslo").ToLower().Contains(textBox1.Text.ToLower()) + && row.Field("Zákazník").ToLower().Contains(textBox4.Text.ToLower()) + && row.Field("Názov výrobku").ToLower().Contains(textBox2.Text.ToLower()) + && row.Field("ID naceňovanie") != "0" + ).CopyToDataTable(); + } + catch + { + dataTable = null; + } + } + else + { + try + { + dataTable = dopyty.AsEnumerable() + .Where(row => + row.Field("Zákazkové číslo").ToLower().Contains(textBox1.Text.ToLower()) + && row.Field("Zákazník").ToLower().Contains(textBox4.Text.ToLower()) + && row.Field("Názov výrobku").ToLower().Contains(textBox2.Text.ToLower()) + && row.Field("Zákazkové číslo") == "0" + && row.Field("ID naceňovanie") == "0" + ).CopyToDataTable(); + } + catch + { + dataTable = null; + } + } + } + + if(dataTable == null) label9.Text = "0"; + else label9.Text = dataTable.Rows.Count.ToString(); + dataGridView2.DataSource = dataTable; + dataGridView2.ClearSelection(); + + } + + private void textBox1_TextChanged(object sender, EventArgs e) + { + refreshZoznamTypVyhodnotenia(); + } + + private void textBox4_TextChanged(object sender, EventArgs e) + { + refreshZoznamTypVyhodnotenia(); + } + + private void textBox2_TextChanged(object sender, EventArgs e) + { + refreshZoznamTypVyhodnotenia(); + } + + private void checkBox1_CheckedChanged(object sender, EventArgs e) + { + refreshZoznamTypVyhodnotenia(); + } + + private void checkBox2_CheckedChanged(object sender, EventArgs e) + { + refreshZoznamTypVyhodnotenia(); + } + + private void checkBox3_CheckedChanged(object sender, EventArgs e) + { + if (checkBox1.Enabled == true) + { + checkBox1.Enabled = false; + checkBox2.Enabled = false; + label7.Enabled = true; + label8.Enabled = true; + label10.Enabled = true; + label11.Enabled = true; + numericUpDown1.Enabled = true; + numericUpDown1.Value = 0; + numericUpDown2.Enabled = true; + numericUpDown2.Value = 1; + textBox5.Enabled = true; + textBox5.Text = ""; + textBox3.Text = ""; + loadTextBox5(); + } + else + { + checkBox1.Enabled = true; + checkBox2.Enabled = true; + label7.Enabled = false; + label8.Enabled = false; + label10.Enabled = false; + label11.Enabled = false; + numericUpDown1.Enabled = false; + numericUpDown1.Value = 0; + numericUpDown2.Enabled = false; + numericUpDown2.Value = 1; + textBox5.Enabled = false; + textBox5.Text = ""; + textBox3.Text = ""; + } + refreshZoznamTypVyhodnotenia(); + } + + private void loadTextBox5() + { + if(textBox5.Enabled == true) + { + string[] postSourceZakaznik = dopyty + .AsEnumerable() + .GroupBy(x => x.Field("Zákazník")) + .Select(x => x.First()) + .CopyToDataTable() + .AsEnumerable() + .Select(x => x.Field("Zákazník")) + .ToArray(); + + var source2 = new AutoCompleteStringCollection(); + source2.AddRange(postSourceZakaznik); + + textBox5.AutoCompleteCustomSource = source2; + textBox5.AutoCompleteMode = AutoCompleteMode.SuggestAppend; + textBox5.AutoCompleteSource = AutoCompleteSource.CustomSource; + } + else + { + textBox5.AutoCompleteCustomSource = null; + textBox5.AutoCompleteMode = AutoCompleteMode.None; + textBox5.AutoCompleteSource = AutoCompleteSource.None; + } + loadTextBox3(); + } + + private void loadTextBox3() + { + if (textBox3.Enabled == true) + { + try + { + string[] postSourceVyrobok = dopyty + .AsEnumerable() + .GroupBy(x => x.Field("Názov výrobku")) + .Select(x => x.First()) + .Where(y => y.Field("Zákazník").ToLower().Contains(textBox5.Text.ToLower())) + .CopyToDataTable() + .AsEnumerable() + .Select(x => x.Field("Názov výrobku")) + .ToArray(); + + var source = new AutoCompleteStringCollection(); + source.AddRange(postSourceVyrobok); + + textBox3.AutoCompleteCustomSource = source; + textBox3.AutoCompleteMode = AutoCompleteMode.SuggestAppend; + textBox3.AutoCompleteSource = AutoCompleteSource.CustomSource; + } + catch + { + + } + } + else + { + textBox3.AutoCompleteCustomSource = null; + textBox3.AutoCompleteMode = AutoCompleteMode.None; + textBox3.AutoCompleteSource = AutoCompleteSource.None; + + } + } + + private void textBox5_TextChanged(object sender, EventArgs e) + { + if(textBox5.Text != "" && textBox5.Enabled == true) { label5.Enabled = true; textBox3.Enabled = true; } + else { label5.Enabled = false; textBox3.Enabled = false; } + loadTextBox3(); + } + + private void dataGridView2_CellClick(object sender, DataGridViewCellEventArgs e) + { + textBox5.Text = dataGridView2.SelectedRows[0].Cells["Zákazník"].Value.ToString(); + textBox3.Text = dataGridView2.SelectedRows[0].Cells["Názov výrobku"].Value.ToString(); + numericUpDown2.Value = Int32.Parse(dataGridView2.SelectedRows[0].Cells["Počet"].Value.ToString()); + numericUpDown1.Value = Decimal.Parse(dataGridView2.SelectedRows[0].Cells["Cena"].Value.ToString()); + } + + private void numericUpDown1_ValueChanged(object sender, EventArgs e) + { + if (numericUpDown1.Value > 0 && textBox3.Text != "") button2.Enabled = true; + else button2.Enabled = false; + } + + private void frmVybratTypVyhodnotenia_Load(object sender, EventArgs e) + { + dataGridView2.ClearSelection(); + } + } +} diff --git a/Mip/frmVybratTypVyhodnotenia.resx b/Mip/frmVybratTypVyhodnotenia.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/Mip/frmVybratTypVyhodnotenia.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/Mip/frmZiadankaDoplnujuceInfo.cs b/Mip/frmZiadankaDoplnujuceInfo.cs index d18e7b1..ffc2b5d 100644 --- a/Mip/frmZiadankaDoplnujuceInfo.cs +++ b/Mip/frmZiadankaDoplnujuceInfo.cs @@ -15,7 +15,7 @@ namespace Mip { int IDZiadankaDI = 0; string TypFormulara = ""; - string NazovFirmy = ""; + //string NazovFirmy = ""; /*string = ""; string NazovFirmy = ""; string NazovFirmy = ""; @@ -634,8 +634,8 @@ namespace Mip xlWorkSheet.Range["C49"].Value = textBox8.Text; xlWorkSheet.Range["C50"].Value = textBox9.Text; - string cmd2 = ""; - cmd2 = ""; + //string cmd2 = ""; + //cmd2 = ""; diff --git a/Mip/obj/Debug/DesignTimeResolveAssemblyReferences.cache b/Mip/obj/Debug/DesignTimeResolveAssemblyReferences.cache index dce0b6a..6bb8f63 100644 Binary files a/Mip/obj/Debug/DesignTimeResolveAssemblyReferences.cache and b/Mip/obj/Debug/DesignTimeResolveAssemblyReferences.cache differ diff --git a/Mip/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/Mip/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache index 1dba1cf..ed79e66 100644 Binary files a/Mip/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache and b/Mip/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/Mip/obj/Debug/Mip.csproj.CoreCompileInputs.cache b/Mip/obj/Debug/Mip.csproj.CoreCompileInputs.cache index 061fe24..1757a7f 100644 --- a/Mip/obj/Debug/Mip.csproj.CoreCompileInputs.cache +++ b/Mip/obj/Debug/Mip.csproj.CoreCompileInputs.cache @@ -1 +1 @@ -77ba3171a784c77b68e2383920e54e9041069408 +b088f87cb4e0456b78337eef13b11f6e44053324 diff --git a/Mip/obj/Debug/Mip.csproj.FileListAbsolute.txt b/Mip/obj/Debug/Mip.csproj.FileListAbsolute.txt index ff78860..ab050a6 100644 --- a/Mip/obj/Debug/Mip.csproj.FileListAbsolute.txt +++ b/Mip/obj/Debug/Mip.csproj.FileListAbsolute.txt @@ -19,7 +19,6 @@ D:\Mip\Mip_v1\Mip\obj\Debug\Mip.frmEditDopyt.resources D:\Mip\Mip_v1\Mip\obj\Debug\Mip.frmEditPoziadavka.resources D:\Mip\Mip_v1\Mip\obj\Debug\Mip.frmEditVyrobok.resources D:\Mip\Mip_v1\Mip\obj\Debug\Mip.frmInventar.resources -D:\Mip\Mip_v1\Mip\obj\Debug\Mip.frmInventarnaVymena.resources D:\Mip\Mip_v1\Mip\obj\Debug\Mip.frmLogo.resources D:\Mip\Mip_v1\Mip\obj\Debug\Mip.frmNacenovanie.resources D:\Mip\Mip_v1\Mip\obj\Debug\Mip.frmNovaPoziadavka.resources @@ -41,52 +40,97 @@ D:\Mip\Mip_v1\Mip\obj\Debug\Mip.frmUlozPolotovar.resources D:\Mip\Mip_v1\Mip\obj\Debug\Mip.csproj.GenerateResource.Cache D:\Mip\Mip_v1\Mip\obj\Debug\Mip.exe D:\Mip\Mip_v1\Mip\obj\Debug\Mip.pdb +D:\Mip\Mip_v1\Mip\obj\Debug\Mip.frmInventarnaVymena.resources D:\Mip\Mip_v1\Mip\obj\Debug\Mip.csprojResolveAssemblyReference.cache -D:\Mip\Mip_v1\Mip\obj\Debug\Mip.frmPridatNastrojeDoSkladu.resources -C:\Users\Culak\Desktop\Mip\Mip\Mip_v1\Mip\bin\Debug\Mip.exe.config -C:\Users\Culak\Desktop\Mip\Mip\Mip_v1\Mip\obj\Debug\Mip.csproj.ResolveComReference.cache -C:\Users\Culak\Desktop\Mip\Mip\Mip_v1\Mip\obj\Debug\Mip.exe -C:\Users\Culak\Desktop\Mip\Mip\Mip_v1\Mip\obj\Debug\Mip.pdb -C:\Users\Culak\Desktop\Mip\Mip\Mip_v1\Mip\bin\Debug\Mip.exe -C:\Users\Culak\Desktop\Mip\Mip\Mip_v1\Mip\bin\Debug\Mip.pdb -C:\Users\Culak\Desktop\Mip\Mip\Mip_v1\Mip\bin\Debug\GMap.NET.Core.dll -C:\Users\Culak\Desktop\Mip\Mip\Mip_v1\Mip\bin\Debug\GMap.NET.WindowsForms.dll -C:\Users\Culak\Desktop\Mip\Mip\Mip_v1\Mip\bin\Debug\MonthCalendar.dll -C:\Users\Culak\Desktop\Mip\Mip\Mip_v1\Mip\bin\Debug\MySql.Data.dll -C:\Users\Culak\Desktop\Mip\Mip\Mip_v1\Mip\bin\Debug\MyTools.dll -C:\Users\Culak\Desktop\Mip\Mip\Mip_v1\Mip\bin\Debug\Newtonsoft.Json.dll -C:\Users\Culak\Desktop\Mip\Mip\Mip_v1\Mip\obj\Debug\Mip.frmAddCenovuPonuku.resources -C:\Users\Culak\Desktop\Mip\Mip\Mip_v1\Mip\obj\Debug\Mip.frmAddFirma.resources -C:\Users\Culak\Desktop\Mip\Mip\Mip_v1\Mip\obj\Debug\Mip.frmAddMat.resources -C:\Users\Culak\Desktop\Mip\Mip\Mip_v1\Mip\obj\Debug\Mip.frmEditBrusenia.resources -C:\Users\Culak\Desktop\Mip\Mip\Mip_v1\Mip\obj\Debug\Mip.frmEditCenovuPonuku.resources -C:\Users\Culak\Desktop\Mip\Mip\Mip_v1\Mip\obj\Debug\Mip.frmEditExpedicia.resources -C:\Users\Culak\Desktop\Mip\Mip\Mip_v1\Mip\obj\Debug\Mip.frmChat.resources -C:\Users\Culak\Desktop\Mip\Mip\Mip_v1\Mip\obj\Debug\Mip.frmEditDopyt.resources -C:\Users\Culak\Desktop\Mip\Mip\Mip_v1\Mip\obj\Debug\Mip.frmEditPoziadavka.resources -C:\Users\Culak\Desktop\Mip\Mip\Mip_v1\Mip\obj\Debug\Mip.frmEditVyrobok.resources -C:\Users\Culak\Desktop\Mip\Mip\Mip_v1\Mip\obj\Debug\Mip.frmInventar.resources -C:\Users\Culak\Desktop\Mip\Mip\Mip_v1\Mip\obj\Debug\Mip.frmInventarnaVymena.resources -C:\Users\Culak\Desktop\Mip\Mip\Mip_v1\Mip\obj\Debug\Mip.frmLogo.resources -C:\Users\Culak\Desktop\Mip\Mip\Mip_v1\Mip\obj\Debug\Mip.frmNacenovanie.resources -C:\Users\Culak\Desktop\Mip\Mip\Mip_v1\Mip\obj\Debug\Mip.frmNovaPoziadavka.resources -C:\Users\Culak\Desktop\Mip\Mip\Mip_v1\Mip\obj\Debug\Mip.frmPridatEditovatNastroj.resources -C:\Users\Culak\Desktop\Mip\Mip\Mip_v1\Mip\obj\Debug\Mip.frmPridatNastrojeDoSkladu.resources -C:\Users\Culak\Desktop\Mip\Mip\Mip_v1\Mip\obj\Debug\Mip.frmPrijemDoSkladu.resources -C:\Users\Culak\Desktop\Mip\Mip\Mip_v1\Mip\obj\Debug\Mip.frmPriraditZamestnancaStroju.resources -C:\Users\Culak\Desktop\Mip\Mip\Mip_v1\Mip\obj\Debug\Mip.frmShowVykres.resources -C:\Users\Culak\Desktop\Mip\Mip\Mip_v1\Mip\obj\Debug\Mip.frmLogin.resources -C:\Users\Culak\Desktop\Mip\Mip\Mip_v1\Mip\obj\Debug\Mip.frmMain.resources -C:\Users\Culak\Desktop\Mip\Mip\Mip_v1\Mip\obj\Debug\Mip.frmPridatVyrobok.resources -C:\Users\Culak\Desktop\Mip\Mip\Mip_v1\Mip\obj\Debug\Mip.frmAddPomUdaje.resources -C:\Users\Culak\Desktop\Mip\Mip\Mip_v1\Mip\obj\Debug\Mip.frmNewDopyt.resources -C:\Users\Culak\Desktop\Mip\Mip\Mip_v1\Mip\obj\Debug\Mip.frmTlacitStatistiku.resources -C:\Users\Culak\Desktop\Mip\Mip\Mip_v1\Mip\obj\Debug\Mip.frmVydajZoSkladu.resources -C:\Users\Culak\Desktop\Mip\Mip\Mip_v1\Mip\obj\Debug\Mip.frmZadatZmatkovitost.resources -C:\Users\Culak\Desktop\Mip\Mip\Mip_v1\Mip\obj\Debug\Mip.frmZiadankaDoplnujuceInfo.resources -C:\Users\Culak\Desktop\Mip\Mip\Mip_v1\Mip\obj\Debug\Mip.Properties.Resources.resources -C:\Users\Culak\Desktop\Mip\Mip\Mip_v1\Mip\obj\Debug\Mip.frmUlozPolotovar.resources -C:\Users\Culak\Desktop\Mip\Mip\Mip_v1\Mip\obj\Debug\Mip.csproj.GenerateResource.Cache -C:\Users\Culak\Desktop\Mip\Mip\Mip_v1\Mip\obj\Debug\Mip.csprojAssemblyReference.cache -C:\Users\Culak\Desktop\Mip\Mip\Mip_v1\Mip\obj\Debug\Mip.csproj.CoreCompileInputs.cache -C:\Users\Culak\Desktop\Mip\Mip\Mip_v1\Mip\obj\Debug\Mip.csproj.CopyComplete +c:\MIP\Mip_v1\Mip\bin\Debug\Mip.exe.config +c:\MIP\Mip_v1\Mip\obj\Debug\Mip.csproj.ResolveComReference.cache +c:\MIP\Mip_v1\Mip\obj\Debug\Mip.exe +c:\MIP\Mip_v1\Mip\obj\Debug\Mip.pdb +c:\MIP\Mip_v1\Mip\obj\Debug\Mip.frmAddCenovuPonuku.resources +c:\MIP\Mip_v1\Mip\obj\Debug\Mip.frmAddFirma.resources +c:\MIP\Mip_v1\Mip\obj\Debug\Mip.frmAddMat.resources +c:\MIP\Mip_v1\Mip\obj\Debug\Mip.frmEditBrusenia.resources +c:\MIP\Mip_v1\Mip\obj\Debug\Mip.frmEditCenovuPonuku.resources +c:\MIP\Mip_v1\Mip\obj\Debug\Mip.frmEditExpedicia.resources +c:\MIP\Mip_v1\Mip\obj\Debug\Mip.frmChat.resources +c:\MIP\Mip_v1\Mip\obj\Debug\Mip.frmEditDopyt.resources +c:\MIP\Mip_v1\Mip\obj\Debug\Mip.frmEditPoziadavka.resources +c:\MIP\Mip_v1\Mip\obj\Debug\Mip.frmEditVyrobok.resources +c:\MIP\Mip_v1\Mip\obj\Debug\Mip.frmInventar.resources +c:\MIP\Mip_v1\Mip\obj\Debug\Mip.frmInventarnaVymena.resources +c:\MIP\Mip_v1\Mip\obj\Debug\Mip.frmLogo.resources +c:\MIP\Mip_v1\Mip\obj\Debug\Mip.frmNacenovanie.resources +c:\MIP\Mip_v1\Mip\obj\Debug\Mip.frmNovaPoziadavka.resources +c:\MIP\Mip_v1\Mip\obj\Debug\Mip.frmPridatEditovatNastroj.resources +c:\MIP\Mip_v1\Mip\obj\Debug\Mip.frmPrijemDoSkladu.resources +c:\MIP\Mip_v1\Mip\obj\Debug\Mip.frmPriraditZamestnancaStroju.resources +c:\MIP\Mip_v1\Mip\obj\Debug\Mip.frmShowVykres.resources +c:\MIP\Mip_v1\Mip\obj\Debug\Mip.frmLogin.resources +c:\MIP\Mip_v1\Mip\obj\Debug\Mip.frmMain.resources +c:\MIP\Mip_v1\Mip\obj\Debug\Mip.frmPridatVyrobok.resources +c:\MIP\Mip_v1\Mip\obj\Debug\Mip.frmAddPomUdaje.resources +c:\MIP\Mip_v1\Mip\obj\Debug\Mip.frmNewDopyt.resources +c:\MIP\Mip_v1\Mip\obj\Debug\Mip.frmTlacitStatistiku.resources +c:\MIP\Mip_v1\Mip\obj\Debug\Mip.frmVydajZoSkladu.resources +c:\MIP\Mip_v1\Mip\obj\Debug\Mip.frmZadatZmatkovitost.resources +c:\MIP\Mip_v1\Mip\obj\Debug\Mip.frmZiadankaDoplnujuceInfo.resources +c:\MIP\Mip_v1\Mip\obj\Debug\Mip.Properties.Resources.resources +c:\MIP\Mip_v1\Mip\obj\Debug\Mip.frmUlozPolotovar.resources +c:\MIP\Mip_v1\Mip\obj\Debug\Mip.csproj.GenerateResource.Cache +c:\MIP\Mip_v1\Mip\bin\Debug\Mip.exe +c:\MIP\Mip_v1\Mip\bin\Debug\Mip.pdb +c:\MIP\Mip_v1\Mip\bin\Debug\GMap.NET.Core.dll +c:\MIP\Mip_v1\Mip\bin\Debug\GMap.NET.WindowsForms.dll +c:\MIP\Mip_v1\Mip\bin\Debug\MonthCalendar.dll +c:\MIP\Mip_v1\Mip\bin\Debug\MySql.Data.dll +c:\MIP\Mip_v1\Mip\bin\Debug\MyTools.dll +c:\MIP\Mip_v1\Mip\bin\Debug\Newtonsoft.Json.dll +C:\MIP\Mip_v1\Mip\obj\Debug\Mip.csprojResolveAssemblyReference.cache +C:\MIP\Mip_v1\Mip\obj\Debug\Mip.frmVybratTypVyhodnotenia.resources +c:\Zdrojaky\Mip_v1\Mip\bin\Debug\Mip.exe.config +c:\Zdrojaky\Mip_v1\Mip\bin\Debug\Mip.exe +c:\Zdrojaky\Mip_v1\Mip\bin\Debug\Mip.pdb +c:\Zdrojaky\Mip_v1\Mip\bin\Debug\GMap.NET.Core.dll +c:\Zdrojaky\Mip_v1\Mip\bin\Debug\GMap.NET.WindowsForms.dll +c:\Zdrojaky\Mip_v1\Mip\bin\Debug\MonthCalendar.dll +c:\Zdrojaky\Mip_v1\Mip\bin\Debug\MySql.Data.dll +c:\Zdrojaky\Mip_v1\Mip\bin\Debug\MyTools.dll +c:\Zdrojaky\Mip_v1\Mip\bin\Debug\Newtonsoft.Json.dll +c:\Zdrojaky\Mip_v1\Mip\obj\Debug\Mip.csprojAssemblyReference.cache +c:\Zdrojaky\Mip_v1\Mip\obj\Debug\Mip.csproj.ResolveComReference.cache +c:\Zdrojaky\Mip_v1\Mip\obj\Debug\Mip.frmAddCenovuPonuku.resources +c:\Zdrojaky\Mip_v1\Mip\obj\Debug\Mip.frmAddFirma.resources +c:\Zdrojaky\Mip_v1\Mip\obj\Debug\Mip.frmAddMat.resources +c:\Zdrojaky\Mip_v1\Mip\obj\Debug\Mip.frmEditBrusenia.resources +c:\Zdrojaky\Mip_v1\Mip\obj\Debug\Mip.frmEditCenovuPonuku.resources +c:\Zdrojaky\Mip_v1\Mip\obj\Debug\Mip.frmEditExpedicia.resources +c:\Zdrojaky\Mip_v1\Mip\obj\Debug\Mip.frmChat.resources +c:\Zdrojaky\Mip_v1\Mip\obj\Debug\Mip.frmEditDopyt.resources +c:\Zdrojaky\Mip_v1\Mip\obj\Debug\Mip.frmEditPoziadavka.resources +c:\Zdrojaky\Mip_v1\Mip\obj\Debug\Mip.frmEditVyrobok.resources +c:\Zdrojaky\Mip_v1\Mip\obj\Debug\Mip.frmInventar.resources +c:\Zdrojaky\Mip_v1\Mip\obj\Debug\Mip.frmInventarnaVymena.resources +c:\Zdrojaky\Mip_v1\Mip\obj\Debug\Mip.frmLogo.resources +c:\Zdrojaky\Mip_v1\Mip\obj\Debug\Mip.frmNacenovanie.resources +c:\Zdrojaky\Mip_v1\Mip\obj\Debug\Mip.frmNovaPoziadavka.resources +c:\Zdrojaky\Mip_v1\Mip\obj\Debug\Mip.frmPridatEditovatNastroj.resources +c:\Zdrojaky\Mip_v1\Mip\obj\Debug\Mip.frmPrijemDoSkladu.resources +c:\Zdrojaky\Mip_v1\Mip\obj\Debug\Mip.frmPriraditZamestnancaStroju.resources +c:\Zdrojaky\Mip_v1\Mip\obj\Debug\Mip.frmShowVykres.resources +c:\Zdrojaky\Mip_v1\Mip\obj\Debug\Mip.frmLogin.resources +c:\Zdrojaky\Mip_v1\Mip\obj\Debug\Mip.frmMain.resources +c:\Zdrojaky\Mip_v1\Mip\obj\Debug\Mip.frmPridatVyrobok.resources +c:\Zdrojaky\Mip_v1\Mip\obj\Debug\Mip.frmAddPomUdaje.resources +c:\Zdrojaky\Mip_v1\Mip\obj\Debug\Mip.frmNewDopyt.resources +c:\Zdrojaky\Mip_v1\Mip\obj\Debug\Mip.frmTlacitStatistiku.resources +c:\Zdrojaky\Mip_v1\Mip\obj\Debug\Mip.frmVybratTypVyhodnotenia.resources +c:\Zdrojaky\Mip_v1\Mip\obj\Debug\Mip.frmVydajZoSkladu.resources +c:\Zdrojaky\Mip_v1\Mip\obj\Debug\Mip.frmZadatZmatkovitost.resources +c:\Zdrojaky\Mip_v1\Mip\obj\Debug\Mip.frmZiadankaDoplnujuceInfo.resources +c:\Zdrojaky\Mip_v1\Mip\obj\Debug\Mip.Properties.Resources.resources +c:\Zdrojaky\Mip_v1\Mip\obj\Debug\Mip.frmUlozPolotovar.resources +c:\Zdrojaky\Mip_v1\Mip\obj\Debug\Mip.csproj.GenerateResource.cache +c:\Zdrojaky\Mip_v1\Mip\obj\Debug\Mip.csproj.CoreCompileInputs.cache +c:\Zdrojaky\Mip_v1\Mip\obj\Debug\Mip.csproj.CopyComplete +c:\Zdrojaky\Mip_v1\Mip\obj\Debug\Mip.exe +c:\Zdrojaky\Mip_v1\Mip\obj\Debug\Mip.pdb diff --git a/Mip/obj/Debug/Mip.csproj.GenerateResource.cache b/Mip/obj/Debug/Mip.csproj.GenerateResource.cache index 3d06224..7c2950e 100644 Binary files a/Mip/obj/Debug/Mip.csproj.GenerateResource.cache and b/Mip/obj/Debug/Mip.csproj.GenerateResource.cache differ diff --git a/Mip/obj/Debug/Mip.csprojAssemblyReference.cache b/Mip/obj/Debug/Mip.csprojAssemblyReference.cache index 4d5c0f1..9b38661 100644 Binary files a/Mip/obj/Debug/Mip.csprojAssemblyReference.cache and b/Mip/obj/Debug/Mip.csprojAssemblyReference.cache differ diff --git a/Mip/obj/Debug/Mip.csprojResolveAssemblyReference.cache b/Mip/obj/Debug/Mip.csprojResolveAssemblyReference.cache new file mode 100644 index 0000000..e9b0844 Binary files /dev/null and b/Mip/obj/Debug/Mip.csprojResolveAssemblyReference.cache differ diff --git a/Mip/obj/Debug/Mip.exe b/Mip/obj/Debug/Mip.exe index 7458e4d..91f6ba2 100644 Binary files a/Mip/obj/Debug/Mip.exe and b/Mip/obj/Debug/Mip.exe differ diff --git a/Mip/obj/Debug/Mip.frmVybratTypVyhodnotenia.resources b/Mip/obj/Debug/Mip.frmVybratTypVyhodnotenia.resources new file mode 100644 index 0000000..6c05a97 Binary files /dev/null and b/Mip/obj/Debug/Mip.frmVybratTypVyhodnotenia.resources differ diff --git a/Mip/obj/Debug/Mip.pdb b/Mip/obj/Debug/Mip.pdb index 7c391f4..0dbfe24 100644 Binary files a/Mip/obj/Debug/Mip.pdb and b/Mip/obj/Debug/Mip.pdb differ