nova poloazka do nacenovania

This commit is contained in:
Culak-HP\Culak
2020-11-22 22:59:11 +01:00
parent 71e25c30b0
commit 756b498b05
6 changed files with 1760 additions and 100 deletions

Binary file not shown.

View File

@@ -0,0 +1,16 @@
ALTER TABLE `tab-nacenovanie-nacenovanie`
ADD COLUMN `myNuD124` FLOAT NULL DEFAULT '0' AFTER `myNuD71`,
ADD COLUMN `myNuD125` FLOAT NULL DEFAULT '0' AFTER `myNuD124`,
ADD COLUMN `nazovNovejPolozky` VARCHAR(100) NULL DEFAULT '' AFTER `myNuD125`;
UPDATE mip.`tab-nacenovanie-nacenovanie` SET mip.`tab-nacenovanie-nacenovanie`.myNuD124 = 0, mip.`tab-nacenovanie-nacenovanie`.myNuD125 = 0, mip.`tab-nacenovanie-nacenovanie`.nazovNovejPolozky = '';
--oprava sadzieb s novou polozkou
ALTER TABLE `tab-nacenovanie-sadzby`
ADD COLUMN `myNuD126` FLOAT NULL DEFAULT '20' AFTER `myNuD70`;
--ALTER TABLE `tab-nacenovanie-nacenovanie`
-- CHANGE COLUMN `myNuD124` `myNuD124` FLOAT NULL DEFAULT '0' AFTER `myNuD71`,
-- CHANGE COLUMN `myNuD125` `myNuD125` FLOAT NULL DEFAULT '0' AFTER `myNuD124`,
-- CHANGE COLUMN `nazovNovejPolozky` `nazovNovejPolozky` VARCHAR(100) NULL DEFAULT '' COLLATE 'utf8_general_ci' AFTER `myNuD125`;

View File

@@ -413,6 +413,14 @@
this.myNumericUpDown72 = new MyTools.MyNumericUpDown();
this.label160 = new System.Windows.Forms.Label();
this.panel89 = new System.Windows.Forms.Panel();
this.textBox1 = new System.Windows.Forms.TextBox();
this.label555 = new System.Windows.Forms.Label();
this.label556 = new System.Windows.Forms.Label();
this.myNumericUpDown124 = new MyTools.MyNumericUpDown();
this.myNumericUpDown125 = new MyTools.MyNumericUpDown();
this.label558 = new System.Windows.Forms.Label();
this.label559 = new System.Windows.Forms.Label();
this.label560 = new System.Windows.Forms.Label();
this.label240 = new System.Windows.Forms.Label();
this.label241 = new System.Windows.Forms.Label();
this.label242 = new System.Windows.Forms.Label();
@@ -691,6 +699,8 @@
this.panel73 = new System.Windows.Forms.Panel();
this.button8 = new System.Windows.Forms.Button();
this.panel76 = new System.Windows.Forms.Panel();
this.label557 = new System.Windows.Forms.Label();
this.myNumericUpDown126 = new MyTools.MyNumericUpDown();
this.button9 = new System.Windows.Forms.Button();
this.label134 = new System.Windows.Forms.Label();
this.myNumericUpDown70 = new MyTools.MyNumericUpDown();
@@ -723,6 +733,8 @@
this.checkBox35 = new System.Windows.Forms.CheckBox();
this.panel71 = new System.Windows.Forms.Panel();
this.panel75 = new System.Windows.Forms.Panel();
this.label561 = new System.Windows.Forms.Label();
this.myNumericUpDown127 = new MyTools.MyNumericUpDown();
this.button7 = new System.Windows.Forms.Button();
this.label133 = new System.Windows.Forms.Label();
this.myNumericUpDown69 = new MyTools.MyNumericUpDown();
@@ -1046,6 +1058,8 @@
this.panel90.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.myNumericUpDown72)).BeginInit();
this.panel89.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.myNumericUpDown124)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.myNumericUpDown125)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.myNumericUpDown85)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.myNumericUpDown88)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.myNumericUpDown89)).BeginInit();
@@ -1122,6 +1136,7 @@
this.panel70.SuspendLayout();
this.panel73.SuspendLayout();
this.panel76.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.myNumericUpDown126)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.myNumericUpDown70)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.myNumericUpDown57)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.myNumericUpDown58)).BeginInit();
@@ -1138,6 +1153,7 @@
this.panel74.SuspendLayout();
this.panel71.SuspendLayout();
this.panel75.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.myNumericUpDown127)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.myNumericUpDown69)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.myNumericUpDown56)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.myNumericUpDown55)).BeginInit();
@@ -1653,7 +1669,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(28, 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 +2856,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(51, 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 +5238,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(74, 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
@@ -5285,7 +5301,7 @@
this.panel88.Dock = System.Windows.Forms.DockStyle.Top;
this.panel88.Location = new System.Drawing.Point(0, 71);
this.panel88.Name = "panel88";
this.panel88.Size = new System.Drawing.Size(381, 335);
this.panel88.Size = new System.Drawing.Size(381, 367);
this.panel88.TabIndex = 3;
//
// panel92
@@ -5306,7 +5322,7 @@
this.panel92.Controls.Add(this.label162);
this.panel92.Controls.Add(this.label156);
this.panel92.Controls.Add(this.label163);
this.panel92.Location = new System.Drawing.Point(1, 279);
this.panel92.Location = new System.Drawing.Point(1, 310);
this.panel92.Name = "panel92";
this.panel92.Size = new System.Drawing.Size(377, 54);
this.panel92.TabIndex = 33;
@@ -5468,7 +5484,7 @@
this.panel91.Controls.Add(this.label194);
this.panel91.Controls.Add(this.label196);
this.panel91.Controls.Add(this.label198);
this.panel91.Location = new System.Drawing.Point(1, 255);
this.panel91.Location = new System.Drawing.Point(1, 285);
this.panel91.Name = "panel91";
this.panel91.Size = new System.Drawing.Size(377, 24);
this.panel91.TabIndex = 32;
@@ -5563,9 +5579,9 @@
this.panel90.Controls.Add(this.label252);
this.panel90.Controls.Add(this.myNumericUpDown72);
this.panel90.Controls.Add(this.label160);
this.panel90.Location = new System.Drawing.Point(1, 231);
this.panel90.Location = new System.Drawing.Point(1, 257);
this.panel90.Name = "panel90";
this.panel90.Size = new System.Drawing.Size(377, 24);
this.panel90.Size = new System.Drawing.Size(377, 27);
this.panel90.TabIndex = 31;
//
// label255
@@ -5574,7 +5590,7 @@
this.label255.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
this.label255.Location = new System.Drawing.Point(175, 1);
this.label255.Name = "label255";
this.label255.Size = new System.Drawing.Size(58, 20);
this.label255.Size = new System.Drawing.Size(58, 23);
this.label255.TabIndex = 87;
this.label255.Text = "0";
this.label255.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
@@ -5586,7 +5602,7 @@
this.label256.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
this.label256.Location = new System.Drawing.Point(234, 1);
this.label256.Name = "label256";
this.label256.Size = new System.Drawing.Size(43, 20);
this.label256.Size = new System.Drawing.Size(43, 23);
this.label256.TabIndex = 86;
this.label256.Text = "[€/ks]";
this.label256.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
@@ -5597,7 +5613,7 @@
this.label254.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
this.label254.Location = new System.Drawing.Point(278, 1);
this.label254.Name = "label254";
this.label254.Size = new System.Drawing.Size(58, 20);
this.label254.Size = new System.Drawing.Size(58, 23);
this.label254.TabIndex = 85;
this.label254.Text = "0";
this.label254.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
@@ -5609,7 +5625,7 @@
this.label253.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
this.label253.Location = new System.Drawing.Point(337, 1);
this.label253.Name = "label253";
this.label253.Size = new System.Drawing.Size(37, 20);
this.label253.Size = new System.Drawing.Size(37, 23);
this.label253.TabIndex = 84;
this.label253.Text = "[€/ks]";
this.label253.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
@@ -5619,14 +5635,14 @@
this.label252.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.label252.Location = new System.Drawing.Point(73, 1);
this.label252.Name = "label252";
this.label252.Size = new System.Drawing.Size(101, 20);
this.label252.Size = new System.Drawing.Size(101, 23);
this.label252.TabIndex = 31;
this.label252.Text = "Náklady s réžiou";
this.label252.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// myNumericUpDown72
//
this.myNumericUpDown72.Location = new System.Drawing.Point(34, 1);
this.myNumericUpDown72.Location = new System.Drawing.Point(34, 2);
this.myNumericUpDown72.Maximum = new decimal(new int[] {
200,
0,
@@ -5653,7 +5669,7 @@
this.label160.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.label160.Location = new System.Drawing.Point(1, 1);
this.label160.Name = "label160";
this.label160.Size = new System.Drawing.Size(71, 20);
this.label160.Size = new System.Drawing.Size(71, 23);
this.label160.TabIndex = 29;
this.label160.Text = "Réžia";
this.label160.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
@@ -5662,6 +5678,14 @@
//
this.panel89.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.panel89.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.panel89.Controls.Add(this.textBox1);
this.panel89.Controls.Add(this.label555);
this.panel89.Controls.Add(this.label556);
this.panel89.Controls.Add(this.myNumericUpDown124);
this.panel89.Controls.Add(this.myNumericUpDown125);
this.panel89.Controls.Add(this.label558);
this.panel89.Controls.Add(this.label559);
this.panel89.Controls.Add(this.label560);
this.panel89.Controls.Add(this.label240);
this.panel89.Controls.Add(this.label241);
this.panel89.Controls.Add(this.label242);
@@ -5744,9 +5768,95 @@
this.panel89.Controls.Add(this.label270);
this.panel89.Location = new System.Drawing.Point(1, 19);
this.panel89.Name = "panel89";
this.panel89.Size = new System.Drawing.Size(377, 213);
this.panel89.Size = new System.Drawing.Size(377, 237);
this.panel89.TabIndex = 18;
//
// textBox1
//
this.textBox1.Location = new System.Drawing.Point(1, 211);
this.textBox1.Name = "textBox1";
this.textBox1.Size = new System.Drawing.Size(121, 20);
this.textBox1.TabIndex = 102;
this.textBox1.TextChanged += new System.EventHandler(this.textBox1_TextChanged);
//
// label555
//
this.label555.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.label555.Location = new System.Drawing.Point(337, 211);
this.label555.Name = "label555";
this.label555.Size = new System.Drawing.Size(37, 20);
this.label555.TabIndex = 100;
this.label555.Text = "[€/ks]";
this.label555.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// label556
//
this.label556.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.label556.Location = new System.Drawing.Point(278, 211);
this.label556.Name = "label556";
this.label556.Size = new System.Drawing.Size(58, 20);
this.label556.TabIndex = 99;
this.label556.Text = "0";
this.label556.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// myNumericUpDown124
//
this.myNumericUpDown124.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.myNumericUpDown124.Location = new System.Drawing.Point(225, 211);
this.myNumericUpDown124.Maximum = new decimal(new int[] {
99999,
0,
0,
0});
this.myNumericUpDown124.Name = "myNumericUpDown124";
this.myNumericUpDown124.Size = new System.Drawing.Size(52, 20);
this.myNumericUpDown124.TabIndex = 96;
this.myNumericUpDown124.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
this.myNumericUpDown124.ValueChanged += new System.EventHandler(this.myNumericUpDown124_ValueChanged);
//
// myNumericUpDown125
//
this.myNumericUpDown125.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.myNumericUpDown125.Location = new System.Drawing.Point(167, 211);
this.myNumericUpDown125.Maximum = new decimal(new int[] {
99999,
0,
0,
0});
this.myNumericUpDown125.Name = "myNumericUpDown125";
this.myNumericUpDown125.Size = new System.Drawing.Size(52, 20);
this.myNumericUpDown125.TabIndex = 95;
this.myNumericUpDown125.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
this.myNumericUpDown125.UpDownAlign = System.Windows.Forms.LeftRightAlignment.Left;
this.myNumericUpDown125.ValueChanged += new System.EventHandler(this.myNumericUpDown125_ValueChanged);
//
// label558
//
this.label558.AutoSize = true;
this.label558.Location = new System.Drawing.Point(216, 214);
this.label558.Name = "label558";
this.label558.Size = new System.Drawing.Size(13, 13);
this.label558.TabIndex = 97;
this.label558.Text = "+";
//
// label559
//
this.label559.Location = new System.Drawing.Point(140, 210);
this.label559.Name = "label559";
this.label559.Size = new System.Drawing.Size(30, 20);
this.label559.TabIndex = 98;
this.label559.Text = "[€/h]";
this.label559.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// label560
//
this.label560.Location = new System.Drawing.Point(125, 210);
this.label560.Name = "label560";
this.label560.Size = new System.Drawing.Size(19, 20);
this.label560.TabIndex = 101;
this.label560.Text = "0";
this.label560.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// label240
//
this.label240.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
@@ -8831,10 +8941,10 @@
this.panel73.Controls.Add(this.panel74);
this.panel73.Dock = System.Windows.Forms.DockStyle.Top;
this.panel73.Location = new System.Drawing.Point(0, 0);
this.panel73.MaximumSize = new System.Drawing.Size(326, 197);
this.panel73.MaximumSize = new System.Drawing.Size(326, 220);
this.panel73.MinimumSize = new System.Drawing.Size(326, 23);
this.panel73.Name = "panel73";
this.panel73.Size = new System.Drawing.Size(326, 197);
this.panel73.Size = new System.Drawing.Size(326, 220);
this.panel73.TabIndex = 1;
//
// button8
@@ -8851,6 +8961,8 @@
//
this.panel76.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.panel76.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.panel76.Controls.Add(this.label557);
this.panel76.Controls.Add(this.myNumericUpDown126);
this.panel76.Controls.Add(this.button9);
this.panel76.Controls.Add(this.label134);
this.panel76.Controls.Add(this.myNumericUpDown70);
@@ -8880,14 +8992,32 @@
this.panel76.Controls.Add(this.myNumericUpDown68);
this.panel76.Location = new System.Drawing.Point(1, 44);
this.panel76.Name = "panel76";
this.panel76.Size = new System.Drawing.Size(322, 150);
this.panel76.Size = new System.Drawing.Size(322, 173);
this.panel76.TabIndex = 7;
//
// label557
//
this.label557.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.label557.AutoSize = true;
this.label557.Location = new System.Drawing.Point(148, 130);
this.label557.Name = "label557";
this.label557.Size = new System.Drawing.Size(73, 13);
this.label557.TabIndex = 32;
this.label557.Text = "Nová položka";
//
// myNumericUpDown126
//
this.myNumericUpDown126.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.myNumericUpDown126.Location = new System.Drawing.Point(277, 127);
this.myNumericUpDown126.Name = "myNumericUpDown126";
this.myNumericUpDown126.Size = new System.Drawing.Size(42, 20);
this.myNumericUpDown126.TabIndex = 33;
//
// button9
//
this.button9.Location = new System.Drawing.Point(151, 125);
this.button9.Location = new System.Drawing.Point(7, 148);
this.button9.Name = "button9";
this.button9.Size = new System.Drawing.Size(169, 23);
this.button9.Size = new System.Drawing.Size(307, 23);
this.button9.TabIndex = 31;
this.button9.Text = "Zmeniť sadzby";
this.button9.UseVisualStyleBackColor = true;
@@ -9152,7 +9282,7 @@
this.panel71.Controls.Add(this.panel72);
this.panel71.Dock = System.Windows.Forms.DockStyle.Bottom;
this.panel71.Location = new System.Drawing.Point(0, 680);
this.panel71.MaximumSize = new System.Drawing.Size(326, 190);
this.panel71.MaximumSize = new System.Drawing.Size(326, 213);
this.panel71.MinimumSize = new System.Drawing.Size(326, 23);
this.panel71.Name = "panel71";
this.panel71.Size = new System.Drawing.Size(326, 23);
@@ -9162,6 +9292,8 @@
//
this.panel75.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.panel75.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.panel75.Controls.Add(this.label561);
this.panel75.Controls.Add(this.myNumericUpDown127);
this.panel75.Controls.Add(this.button7);
this.panel75.Controls.Add(this.label133);
this.panel75.Controls.Add(this.myNumericUpDown69);
@@ -9192,17 +9324,37 @@
this.panel75.Enabled = false;
this.panel75.Location = new System.Drawing.Point(1, 36);
this.panel75.Name = "panel75";
this.panel75.Size = new System.Drawing.Size(322, 151);
this.panel75.Size = new System.Drawing.Size(322, 174);
this.panel75.TabIndex = 5;
//
// label561
//
this.label561.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.label561.AutoSize = true;
this.label561.Location = new System.Drawing.Point(148, 130);
this.label561.Name = "label561";
this.label561.Size = new System.Drawing.Size(73, 13);
this.label561.TabIndex = 29;
this.label561.Text = "Nová položka";
//
// myNumericUpDown127
//
this.myNumericUpDown127.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.myNumericUpDown127.Location = new System.Drawing.Point(277, 127);
this.myNumericUpDown127.Name = "myNumericUpDown127";
this.myNumericUpDown127.Size = new System.Drawing.Size(42, 20);
this.myNumericUpDown127.TabIndex = 30;
//
// button7
//
this.button7.Location = new System.Drawing.Point(151, 126);
this.button7.Enabled = false;
this.button7.Location = new System.Drawing.Point(7, 149);
this.button7.Name = "button7";
this.button7.Size = new System.Drawing.Size(169, 23);
this.button7.Size = new System.Drawing.Size(307, 23);
this.button7.TabIndex = 28;
this.button7.Text = "Zmeniť predvolené sadzby";
this.button7.UseVisualStyleBackColor = true;
this.button7.Click += new System.EventHandler(this.button7_Click);
//
// label133
//
@@ -11479,6 +11631,8 @@
((System.ComponentModel.ISupportInitialize)(this.myNumericUpDown72)).EndInit();
this.panel89.ResumeLayout(false);
this.panel89.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.myNumericUpDown124)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.myNumericUpDown125)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.myNumericUpDown85)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.myNumericUpDown88)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.myNumericUpDown89)).EndInit();
@@ -11570,6 +11724,7 @@
this.panel73.ResumeLayout(false);
this.panel76.ResumeLayout(false);
this.panel76.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.myNumericUpDown126)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.myNumericUpDown70)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.myNumericUpDown57)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.myNumericUpDown58)).EndInit();
@@ -11589,6 +11744,7 @@
this.panel71.PerformLayout();
this.panel75.ResumeLayout(false);
this.panel75.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.myNumericUpDown127)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.myNumericUpDown69)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.myNumericUpDown56)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.myNumericUpDown55)).EndInit();
@@ -12499,5 +12655,17 @@
private System.Windows.Forms.Label label553;
private System.Windows.Forms.Panel panel127;
private System.Windows.Forms.Label label554;
private System.Windows.Forms.TextBox textBox1;
private System.Windows.Forms.Label label555;
private System.Windows.Forms.Label label556;
private MyTools.MyNumericUpDown myNumericUpDown124;
private MyTools.MyNumericUpDown myNumericUpDown125;
private System.Windows.Forms.Label label558;
private System.Windows.Forms.Label label559;
private System.Windows.Forms.Label label560;
private System.Windows.Forms.Label label557;
private MyTools.MyNumericUpDown myNumericUpDown126;
private System.Windows.Forms.Label label561;
private MyTools.MyNumericUpDown myNumericUpDown127;
}
}

View File

@@ -126,12 +126,12 @@ namespace Mip
objObjectPocty = new ObjectPocty(IDN);
objObjectVyhodnocovanie = new ObjectVyhodnocovanie();
objObjectVyrobok.SetDataToForm();
objObjectSadzby.SetDataToForm();
objObjectPolotovar.SetDataToForm();
objObjectMaterial.SetDataToForm();
objObjectNacenovanie.SetDataToForm();
objObjectPocty.SetDataToForm();
objObjectVyrobok.SetDataToForm(this);
objObjectSadzby.SetDataToForm(this);
objObjectPolotovar.SetDataToForm(this);
objObjectMaterial.SetDataToForm(this);
objObjectNacenovanie.SetDataToForm(this);
objObjectPocty.SetDataToForm(this);
string strIDVykres = "";
classSQL.SQL("SELECT `IDVykres` FROM `mip`.`tabvykres` WHERE IDVyrobok = " + IDV.ToString() + " AND IndexVykresu = 1", out strIDVykres);
@@ -160,6 +160,11 @@ namespace Mip
button8_Click(null, null);
button9_Click(null, null);
//if (Form.ActiveForm != null)
//{
//}
RefreshAll();
this.ResumeLayout();
@@ -242,11 +247,11 @@ namespace Mip
private void RefreshAll()
{
objObjectSadzby.RefreshForm();
objObjectPolotovar.RefreshForm();
objObjectMaterial.RefreshForm();
objObjectNacenovanie.RefreshForm();
objObjectPocty.RefreshForm();
objObjectSadzby.RefreshForm(this);
objObjectPolotovar.RefreshForm(this);
objObjectMaterial.RefreshForm(this);
objObjectNacenovanie.RefreshForm(this);
objObjectPocty.RefreshForm(this);
}
@@ -415,9 +420,9 @@ namespace Mip
#endregion Konštruktor
#region Nastav údaje do formulára
public void SetDataToForm()
public void SetDataToForm(Form inputForm)
{
dynamic form = Form.ActiveForm as frmNacenovanie;
dynamic form = inputForm as frmNacenovanie;
if (form != null)
{
form.SuspendLayout();
@@ -546,9 +551,6 @@ namespace Mip
if (bEnableRefresh == true)
{
GetDataFromForm();
if (chB9 == true)
{
if (chB10 == true)
@@ -577,9 +579,6 @@ namespace Mip
if (bEnableRefresh == true)
{
GetDataFromForm();
if (Convert.ToInt16(l6) > 1) decDlzka = Math.Ceiling(Convert.ToDecimal(myNuD7 / (Convert.ToInt16(l6) - 1))) * (myNuD20 + myNuD3 + myNuD5/* + myNuD13*/);
else decDlzka = (myNuD7 * (myNuD20 + myNuD3 + myNuD5/* + myNuD13*/)) + myNuD9 + ((myNuD7 - 1) * myNuD8);
@@ -609,8 +608,6 @@ namespace Mip
if (bEnableRefresh == true)
{
GetDataFromForm();
if (l27 == "Ø")
{
double Objem = ((Math.PI * Math.Pow(Convert.ToDouble(psdRozmer1) / 2, 2)) - (Math.PI * Math.Pow(Convert.ToDouble(psdRozmer2) / 2, 2)))
@@ -638,9 +635,6 @@ namespace Mip
if (bEnableRefresh == true)
{
GetDataFromForm();
if (chB9 == true)
{
if (chB10 == true) dObjemVypichu = Convert.ToDouble(myNuD17 * myNuD16 * myNuD15 / 1000000 * myNuD10 / 100);
@@ -664,11 +658,11 @@ namespace Mip
#endregion Objem použitého materiálu
#region Získaj údaje z formulára
private void GetDataFromForm()
private void GetDataFromForm(Form inputForm)
{
if (bEnableRefresh == true)
{
dynamic form = Form.ActiveForm as frmNacenovanie;
dynamic form = inputForm as frmNacenovanie;
if (form != null)
{
@@ -713,10 +707,9 @@ namespace Mip
#endregion Získaj údaje z formulára
#region Nastav údaje do formulára
public void SetDataToForm()
public void SetDataToForm(Form inputForm)
{
dynamic form = Form.ActiveForm as frmNacenovanie;
dynamic form = inputForm as frmNacenovanie;
if (form != null)
{
form.checkBox5.Checked = chB5;
@@ -755,10 +748,10 @@ namespace Mip
#endregion Nastav údaje do formulára
#region Refresh
public void RefreshForm()
public void RefreshForm(Form inputForm)
{
GetDataFromForm();
dynamic form = Form.ActiveForm as frmNacenovanie;
GetDataFromForm(inputForm);
dynamic form = inputForm as frmNacenovanie;
if (form != null)
{
@@ -1075,11 +1068,11 @@ namespace Mip
#endregion Konštruktor
#region Získaj údaje z formulára
private void GetDataFromForm()
private void GetDataFromForm(Form inputForm)
{
if (bEnableRefresh == true)
{
dynamic form = Form.ActiveForm as frmNacenovanie;
dynamic form = inputForm as frmNacenovanie;
if (form != null)
{
@@ -1155,10 +1148,10 @@ namespace Mip
#endregion Získaj údaje z formulára
#region Nastav údaje do formulára
public void SetDataToForm()
public void SetDataToForm(Form inputForm)
{
dynamic form = Form.ActiveForm as frmNacenovanie;
dynamic form = inputForm as frmNacenovanie;
//form.SuspendLayout();
if (form != null)
{
@@ -1294,10 +1287,10 @@ namespace Mip
#endregion Nastav údaje do formulára
#region Refresh
public void RefreshForm()
public void RefreshForm(Form inputForm)
{
GetDataFromForm();
dynamic form = Form.ActiveForm as frmNacenovanie;
GetDataFromForm(inputForm);
dynamic form = inputForm as frmNacenovanie;
if (form != null)
{
@@ -1665,6 +1658,9 @@ namespace Mip
public decimal CasVyrobaCNCSustruhSPU40 { get; private set; }
public decimal CasNastavProgramovanie { get; private set; }
public decimal CasVyrobaProgramovanie { get; private set; }
public decimal CasNastavNovaPolozka { get; private set; }
public decimal CasVyrobaNovaPolozka { get; private set; }
public string textBoxNazovNovejPolozky { get; private set; } = "";
public decimal CenaOstatne { get; private set; }
public decimal Rezia;
@@ -1687,7 +1683,9 @@ namespace Mip
private decimal CenaCNCSustruhSPU40;
private decimal CenaProgramovanie;
private decimal CenaPrace;
private decimal CenaNovejPolozky;
private decimal CenaPraceSReziou;
private string nazovNovejPolozky;
//casy nastaveni
private decimal myNuD84;
@@ -1700,6 +1698,7 @@ namespace Mip
private decimal myNuD77;
private decimal myNuD76;
private decimal myNuD73;
private decimal myNuD125;
//vyrobne casy
private decimal myNuD96;
@@ -1712,6 +1711,7 @@ namespace Mip
private decimal myNuD89;
private decimal myNuD88;
private decimal myNuD85;
private decimal myNuD124;
private decimal myNuD72=1;
private decimal myNuD99;
@@ -1760,6 +1760,9 @@ namespace Mip
myNuD99 = Convert.ToDecimal(tblObjectNacenovanie.Rows[intCisloRiadka]["myNuD99"].ToString());
myNuD97 = Convert.ToDecimal(tblObjectNacenovanie.Rows[intCisloRiadka]["myNuD97"].ToString());
myNuD71 = Convert.ToDecimal(tblObjectNacenovanie.Rows[intCisloRiadka]["myNuD71"].ToString());
myNuD124 = Convert.ToDecimal(tblObjectNacenovanie.Rows[intCisloRiadka]["myNuD124"].ToString());
myNuD125 = Convert.ToDecimal(tblObjectNacenovanie.Rows[intCisloRiadka]["myNuD125"].ToString());
nazovNovejPolozky = tblObjectNacenovanie.Rows[intCisloRiadka]["nazovNovejPolozky"].ToString();
IDNacenovanieNacenovanie = Convert.ToInt32(tblObjectNacenovanie.Rows[intCisloRiadka]["IDNacenovanieNacenovanie"].ToString());
//else nastavi hodnotu rezie na predvolenu (80)
if (intCisloRiadka > 0) bEnableSQLUpdate = true;
@@ -1768,11 +1771,11 @@ namespace Mip
#endregion Konštruktor
#region Získaj údaje z formulára
private void GetDataFromForm()
private void GetDataFromForm(Form inputForm)
{
if (bEnableRefresh == true)
{
dynamic form = Form.ActiveForm as frmNacenovanie;
dynamic form = inputForm as frmNacenovanie;
if (form != null)
{
@@ -1786,6 +1789,7 @@ namespace Mip
CasNastavCNCFreza = myNuD77 = form.myNumericUpDown77.Value;
CasNastavCNCSustruhSPU40 = myNuD76 = form.myNumericUpDown76.Value;
CasNastavProgramovanie = myNuD73 = form.myNumericUpDown73.Value;
CasNastavNovaPolozka = myNuD125 = form.myNumericUpDown125.Value;
CasVyrobaRezanie = myNuD96 = form.myNumericUpDown96.Value;
CasVyrobaKlasika = myNuD95 = form.myNumericUpDown95.Value;
CasVyrobaBrusenie = myNuD94 = form.myNumericUpDown94.Value;
@@ -1796,22 +1800,24 @@ namespace Mip
CasVyrobaCNCFreza = myNuD89 = form.myNumericUpDown89.Value;
CasVyrobaCNCSustruhSPU40 = myNuD88 = form.myNumericUpDown88.Value;
CasVyrobaProgramovanie = myNuD85 = form.myNumericUpDown85.Value;
CasVyrobaNovaPolozka = myNuD124 = form.myNumericUpDown124.Value;
Rezia = myNuD72 = form.myNumericUpDown72.Value;
myNuD99 = form.myNumericUpDown99.Value;
myNuD97 = form.myNumericUpDown97.Value;
myNuD71 = form.myNumericUpDown71.Value;
CenaOstatne = myNuD99 * myNuD97 / objObjectVyrobok.ObjednanyPocetKusov;
l206 = form.label206.Text;
textBoxNazovNovejPolozky = nazovNovejPolozky = form.textBox1.Text;
}
}
}
#endregion Získaj údaje z formulára
#region Nastav údaje do formulára
public void SetDataToForm()
public void SetDataToForm(Form inputForm)
{
dynamic form = Form.ActiveForm as frmNacenovanie;
dynamic form = inputForm as frmNacenovanie;
if (form != null)
{
form.myNumericUpDown84.Value = myNuD84;
@@ -1838,6 +1844,9 @@ namespace Mip
form.myNumericUpDown99.Value = myNuD99;
form.myNumericUpDown97.Value = myNuD97;
form.myNumericUpDown71.Value = myNuD71;
form.myNumericUpDown125.Value = myNuD125;
form.myNumericUpDown124.Value = myNuD124;
form.textBox1.Text = nazovNovejPolozky;
form.label270.Text = objObjectSadzby.Rezanie.ToString();
form.label269.Text = objObjectSadzby.Klasika.ToString();
@@ -1849,6 +1858,7 @@ namespace Mip
form.label263.Text = objObjectSadzby.CNCFreza.ToString();
form.label262.Text = objObjectSadzby.CNCSustruhSPU40.ToString();
form.label261.Text = objObjectSadzby.Programovanie.ToString();
form.label560.Text = objObjectSadzby.NovaPolozka.ToString();
form.label137.Text = objObjectVyrobok.ObjednanyPocetKusov.ToString();
bEnableRefresh = true;
@@ -1857,10 +1867,10 @@ namespace Mip
#endregion Nastav údaje do formulára
#region Refresh
public void RefreshForm()
public void RefreshForm(Form inputForm)
{
GetDataFromForm();
dynamic form = Form.ActiveForm as frmNacenovanie;
GetDataFromForm(inputForm);
dynamic form = inputForm as frmNacenovanie;
if (form != null)
{
@@ -1885,7 +1895,9 @@ namespace Mip
form.label183.Text = string.Format("{0:F3}", CenaCNCSustruhSPU40);
CenaProgramovanie = vypocetCeny(objObjectSadzby.Programovanie, myNuD73, myNuD85);
form.label180.Text = string.Format("{0:F3}", CenaProgramovanie);
CenaPrace = CenaRezanie + CenaKlasika + CenaBrusenie + CenaLapovanie + CenaKontrola + CenaBalenie + CenaCNCSustruh + CenaCNCFreza + CenaCNCSustruhSPU40 + CenaProgramovanie;
CenaNovejPolozky = vypocetCeny(objObjectSadzby.NovaPolozka, myNuD124, myNuD125);
form.label556.Text = string.Format("{0:F3}", CenaNovejPolozky);
CenaPrace = CenaRezanie + CenaKlasika + CenaBrusenie + CenaLapovanie + CenaKontrola + CenaBalenie + CenaCNCSustruh + CenaCNCFreza + CenaCNCSustruhSPU40 + CenaProgramovanie + CenaNovejPolozky;
form.label254.Text = string.Format("{0:F3}", CenaPrace);
CenaPraceSReziou = CenaPrace * (1+(myNuD72/100));
form.label255.Text = string.Format("{0:F3}", CenaPraceSReziou);
@@ -1933,6 +1945,7 @@ namespace Mip
form.label263.Text = objObjectSadzby.CNCFreza.ToString();
form.label262.Text = objObjectSadzby.CNCSustruhSPU40.ToString();
form.label261.Text = objObjectSadzby.Programovanie.ToString();
form.label560.Text = objObjectSadzby.NovaPolozka.ToString();
form.label137.Text = objObjectVyrobok.ObjednanyPocetKusov.ToString();
if (objObjectSadzby.Rezia>0) form.myNumericUpDown72.Value = objObjectSadzby.Rezia;
@@ -1980,6 +1993,9 @@ namespace Mip
"`myNuD72` = " + myNuD72.ToString().Replace(",", ".") + ", " +
"`myNuD99` = " + myNuD99.ToString().Replace(",", ".") + ", " +
"`myNuD97` = " + myNuD97.ToString().Replace(",", ".") + ", " +
"`myNuD124` = " + myNuD124.ToString().Replace(",", ".") + ", " +
"`myNuD125` = " + myNuD125.ToString().Replace(",", ".") + ", " +
"`nazovNovejPolozky` = '" + nazovNovejPolozky + "', " +
"`myNuD71` = " + myNuD71.ToString().Replace(",", ".") + " ";
cmd = @"UPDATE `tab-nacenovanie-nacenovanie` SET " + strMat + "WHERE `IDNacenovanieNacenovanie`= " + IDNacenovanieNacenovanie.ToString() + ";";
@@ -1992,7 +2008,7 @@ namespace Mip
cmd = @"INSERT INTO `mip`.`tab-nacenovanie-nacenovanie` (
`IDNacenovanie`, `myNuD84`, `myNuD83`, `myNuD82`, `myNuD81`, `myNuD80`, `myNuD79`, `myNuD78`, `myNuD77`, `myNuD76`, `myNuD73`,
`myNuD96`, `myNuD95`, `myNuD94`, `myNuD93`, `myNuD92`, `myNuD91`, `myNuD90`, `myNuD89`, `myNuD88`, `myNuD85`,
`myNuD72`, `myNuD99`, `myNuD97`, `myNuD71`)
`myNuD72`, `myNuD99`, `myNuD97`, `myNuD71`, `myNuD124`, `myNuD125`, `nazovNovejPolozky`)
VALUES ("
+ IDN.ToString() + ", "
+ myNuD84.ToString().Replace(",", ".") + ", "
@@ -2018,7 +2034,10 @@ namespace Mip
+ myNuD72.ToString().Replace(",", ".") + ", "
+ myNuD99.ToString().Replace(",", ".") + ", "
+ myNuD97.ToString().Replace(",", ".") + ", "
+ myNuD71.ToString().Replace(",",".") + ");";
+ myNuD71.ToString().Replace(",",".") + ", "
+ myNuD124.ToString().Replace(",", ".") + ", "
+ myNuD125.ToString().Replace(",", ".") + ", "
+ "'" + nazovNovejPolozky + "');";
}
}
@@ -2052,6 +2071,7 @@ namespace Mip
public decimal ImpregnaciaPraca { get; private set; }
public decimal ImpregnaciaMaterial { get; private set; }
public decimal Programovanie { get; private set; }
public decimal NovaPolozka { get; private set; }
public decimal Rezia { get; private set; }
public bool bEnableSQLUpdate = false;
@@ -2074,6 +2094,7 @@ namespace Mip
private decimal myNuD58;
private decimal myNuD57;
private decimal myNuD70;
private decimal myNuD126;
//Predvolene sadzby
private decimal myNuD45;
@@ -2089,6 +2110,7 @@ namespace Mip
private decimal myNuD55;
private decimal myNuD56;
private decimal myNuD69;
private decimal myNuD127;
private Int32 IDNacenovanie;
@@ -2117,6 +2139,7 @@ namespace Mip
myNuD55 = Convert.ToDecimal(tblObjectSadzby.Rows[0]["myNuD58"].ToString());
myNuD56 = Convert.ToDecimal(tblObjectSadzby.Rows[0]["myNuD57"].ToString());
myNuD69 = Convert.ToDecimal(tblObjectSadzby.Rows[0]["myNuD70"].ToString());
myNuD127 = Convert.ToDecimal(tblObjectSadzby.Rows[0]["myNuD126"].ToString());
int intCisloRiadka = tblObjectSadzby.Rows.Count - 1;
@@ -2136,6 +2159,7 @@ namespace Mip
myNuD58 = Convert.ToDecimal(tblObjectSadzby.Rows[intCisloRiadka]["myNuD58"].ToString());
myNuD57 = Convert.ToDecimal(tblObjectSadzby.Rows[intCisloRiadka]["myNuD57"].ToString());
myNuD70 = Convert.ToDecimal(tblObjectSadzby.Rows[intCisloRiadka]["myNuD70"].ToString());
myNuD126 = Convert.ToDecimal(tblObjectSadzby.Rows[intCisloRiadka]["myNuD126"].ToString());
Rezanie = myNuD68;
Klasika = myNuD67;
@@ -2150,6 +2174,7 @@ namespace Mip
ImpregnaciaMaterial = myNuD58;
Programovanie = myNuD57;
Rezia = myNuD70;
NovaPolozka = myNuD126;
bEnableSQLUpdate = true;
}
@@ -2157,11 +2182,11 @@ namespace Mip
#endregion Konštruktor
#region Získaj údaje z formulára
private void GetDataFromForm()
private void GetDataFromForm(Form inputForm)
{
if (bEnableRefresh == true)
{
dynamic form = Form.ActiveForm as frmNacenovanie;
dynamic form = inputForm as frmNacenovanie;
if (form != null)
{
@@ -2180,6 +2205,7 @@ namespace Mip
myNuD58 = form.myNumericUpDown58.Value;
myNuD57 = form.myNumericUpDown57.Value;
myNuD70 = form.myNumericUpDown70.Value;
myNuD126 = form.myNumericUpDown126.Value;
myNuD45 = form.myNumericUpDown45.Value;
myNuD46 = form.myNumericUpDown46.Value;
@@ -2194,6 +2220,7 @@ namespace Mip
myNuD55 = form.myNumericUpDown55.Value;
myNuD56 = form.myNumericUpDown56.Value;
myNuD69 = form.myNumericUpDown69.Value;
myNuD127 = form.myNumericUpDown127.Value;
Rezanie = myNuD68;
Klasika = myNuD67;
@@ -2208,16 +2235,16 @@ namespace Mip
ImpregnaciaMaterial = myNuD58;
Programovanie = myNuD57;
Rezia = myNuD70;
NovaPolozka = myNuD126;
}
}
}
#endregion Získaj údaje z formulára
#region Nastav údaje do formulára
public void SetDataToForm()
public void SetDataToForm(Form inputForm)
{
dynamic form = Form.ActiveForm as frmNacenovanie;
dynamic form = inputForm as frmNacenovanie;
if (form != null)
{
form.checkBox35.Checked = chB35;
@@ -2234,6 +2261,7 @@ namespace Mip
form.myNumericUpDown58.Value=myNuD58;
form.myNumericUpDown57.Value=myNuD57;
form.myNumericUpDown70.Value=myNuD70;
form.myNumericUpDown126.Value = myNuD126;
form.myNumericUpDown45.Value=myNuD45;
form.myNumericUpDown46.Value=myNuD46;
@@ -2248,6 +2276,7 @@ namespace Mip
form.myNumericUpDown55.Value=myNuD55;
form.myNumericUpDown56.Value=myNuD56;
form.myNumericUpDown69.Value=myNuD69;
form.myNumericUpDown127.Value = myNuD127;
bEnableRefresh = true;
}
@@ -2255,9 +2284,9 @@ namespace Mip
#endregion Nastav údaje do formulára
#region Refresh
public void RefreshForm()
public void RefreshForm(Form inputForm)
{
GetDataFromForm();
GetDataFromForm(inputForm);
}
#endregion Refresh
@@ -2301,11 +2330,11 @@ namespace Mip
#endregion Konštruktor
#region Získaj údaje z formulára
private void GetDataFromForm()
private void GetDataFromForm(Form inputForm)
{
if (bEnableRefresh == true)
{
dynamic form = Form.ActiveForm as frmNacenovanie;
dynamic form = inputForm as frmNacenovanie;
if (form != null)
{
@@ -2317,10 +2346,10 @@ namespace Mip
#endregion Získaj údaje z formulára
#region Nastav údaje do formulára
public void SetDataToForm()
public void SetDataToForm(Form inputForm)
{
dynamic form = Form.ActiveForm as frmNacenovanie;
dynamic form = inputForm as frmNacenovanie;
if (form != null)
{
form.myNumericUpDown74.Value=myNuD74;
@@ -2331,10 +2360,10 @@ namespace Mip
#endregion Nastav údaje do formulára
#region Refresh
public void RefreshForm()
public void RefreshForm(Form inputForm)
{
GetDataFromForm();
dynamic form = Form.ActiveForm as frmNacenovanie;
GetDataFromForm(inputForm);
dynamic form = inputForm as frmNacenovanie;
if (form != null)
{
@@ -2463,8 +2492,30 @@ namespace Mip
private void checkBox34_CheckedChanged(object sender, EventArgs e)
{
if (checkBox34.Checked == false) panel75.Enabled = false;
else panel75.Enabled = true;
if (checkBox34.Checked == false)
{
panel75.Enabled = false;
if(classUser.ID == 4 || classUser.ID == 1)
{
button7.Enabled = true;
}
else
{
button7.Enabled = false;
}
}
else
{
panel75.Enabled = true;
if (classUser.ID == 4 || classUser.ID == 1)
{
button7.Enabled = true;
}
else
{
button7.Enabled = false;
}
}
}
#region Panel Polotovar
@@ -3479,13 +3530,14 @@ namespace Mip
"`myNuD59` = " + myNumericUpDown59.Value.ToString().Replace(",", ".") + "," +
"`myNuD58` = " + myNumericUpDown58.Value.ToString().Replace(",", ".") + "," +
"`myNuD57` = " + myNumericUpDown57.Value.ToString().Replace(",", ".") + "," +
"`myNuD70` = " + myNumericUpDown70.Value.ToString().Replace(",", ".") +
"`myNuD70` = " + myNumericUpDown70.Value.ToString().Replace(",", ".") + "," +
"`myNuD126` = " + myNumericUpDown126.Value.ToString().Replace(",", ".") +
" WHERE `IDNacenovanie`= " + IDN.ToString() + ";";
classSQL.SQL(cmd);
}
else
{
cmd = @"INSERT INTO `mip`.`tab-nacenovanie-sadzby` (`IDNacenovanie`, `chB35`, `myNuD68`, `myNuD67`, `myNuD66`, `myNuD65`, `myNuD64`, `myNuD63`, `myNuD62`, `myNuD61`, `myNuD60`, `myNuD59`, `myNuD58`, `myNuD57`, `myNuD70`)
cmd = @"INSERT INTO `mip`.`tab-nacenovanie-sadzby` (`IDNacenovanie`, `chB35`, `myNuD68`, `myNuD67`, `myNuD66`, `myNuD65`, `myNuD64`, `myNuD63`, `myNuD62`, `myNuD61`, `myNuD60`, `myNuD59`, `myNuD58`, `myNuD57`, `myNuD70`, `myNuD126`)
VALUES ("
+ IDN.ToString() + ", "
+ checkBox35.Checked + ", "
@@ -3501,7 +3553,8 @@ namespace Mip
+ myNumericUpDown59.Value.ToString().Replace(",", ".") + ", "
+ myNumericUpDown58.Value.ToString().Replace(",", ".") + ", "
+ myNumericUpDown57.Value.ToString().Replace(",", ".") + ", "
+ myNumericUpDown70.Value.ToString().Replace(",", ".") + ");";
+ myNumericUpDown70.Value.ToString().Replace(",", ".") + ", "
+ myNumericUpDown126.Value.ToString().Replace(",", ".") + ");";
classSQL.SQL(cmd);
objObjectSadzby.bEnableSQLUpdate = true;
}
@@ -3524,8 +3577,7 @@ namespace Mip
myNumericUpDown58.Value = myNumericUpDown55.Value;
myNumericUpDown57.Value = myNumericUpDown56.Value;
myNumericUpDown70.Value = myNumericUpDown69.Value;
myNumericUpDown126.Value = myNumericUpDown127.Value;
}
private void button10_Click(object sender, EventArgs e)
@@ -4458,5 +4510,45 @@ namespace Mip
label445.Text = trackBar1.Value.ToString();
*/
}
private void textBox1_TextChanged(object sender, EventArgs e)
{
RefreshAll();
}
private void myNumericUpDown125_ValueChanged(object sender, EventArgs e)
{
RefreshAll();
}
private void myNumericUpDown124_ValueChanged(object sender, EventArgs e)
{
RefreshAll();
}
private void button7_Click(object sender, EventArgs e)
{
string cmd;
cmd = @"UPDATE `tab-nacenovanie-sadzby`
SET
`chB35` = " + checkBox35.Checked + "," +
"`myNuD68` = " + myNumericUpDown45.Value.ToString().Replace(",", ".") + "," +
"`myNuD67` = " + myNumericUpDown46.Value.ToString().Replace(",", ".") + "," +
"`myNuD66` = " + myNumericUpDown47.Value.ToString().Replace(",", ".") + "," +
"`myNuD65` = " + myNumericUpDown48.Value.ToString().Replace(",", ".") + "," +
"`myNuD64` = " + myNumericUpDown49.Value.ToString().Replace(",", ".") + "," +
"`myNuD63` = " + myNumericUpDown50.Value.ToString().Replace(",", ".") + "," +
"`myNuD62` = " + myNumericUpDown51.Value.ToString().Replace(",", ".") + "," +
"`myNuD61` = " + myNumericUpDown52.Value.ToString().Replace(",", ".") + "," +
"`myNuD60` = " + myNumericUpDown53.Value.ToString().Replace(",", ".") + "," +
"`myNuD59` = " + myNumericUpDown54.Value.ToString().Replace(",", ".") + "," +
"`myNuD58` = " + myNumericUpDown55.Value.ToString().Replace(",", ".") + "," +
"`myNuD57` = " + myNumericUpDown56.Value.ToString().Replace(",", ".") + "," +
"`myNuD70` = " + myNumericUpDown69.Value.ToString().Replace(",", ".") + "," +
"`myNuD126` = " + myNumericUpDown127.Value.ToString().Replace(",", ".") +
" WHERE `IDNacenovanie`= 0;";
classSQL.SQL(cmd);
}
}
}

File diff suppressed because it is too large Load Diff

View File

@@ -1,8 +1,12 @@
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Express 2012 for Windows Desktop
# Visual Studio Version 16
VisualStudioVersion = 16.0.30503.244
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Mip", "Mip\Mip.csproj", "{3532D844-466D-429B-A2C8-206F023FF653}"
EndProject
Project("{54435603-DBB4-11D2-8724-00A0C9A8B90C}") = "MipInstaller", "MipInstaller\MipInstaller.vdproj", "{64B76A14-CDE2-4F87-8DFB-13EB215E4272}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
@@ -13,8 +17,13 @@ Global
{3532D844-466D-429B-A2C8-206F023FF653}.Debug|Any CPU.Build.0 = Debug|Any CPU
{3532D844-466D-429B-A2C8-206F023FF653}.Release|Any CPU.ActiveCfg = Release|Any CPU
{3532D844-466D-429B-A2C8-206F023FF653}.Release|Any CPU.Build.0 = Release|Any CPU
{64B76A14-CDE2-4F87-8DFB-13EB215E4272}.Debug|Any CPU.ActiveCfg = Debug
{64B76A14-CDE2-4F87-8DFB-13EB215E4272}.Release|Any CPU.ActiveCfg = Release
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {0F3DF6D4-B174-4B61-B08C-09A0A3EE01AF}
EndGlobalSection
EndGlobal