Danya_Ls Danya_Ls 2 år sedan
förälder
incheckning
82cea71142

+ 256 - 344
FactoryLVS/FormAddZakaz.Designer.cs

@@ -28,58 +28,50 @@
         /// </summary>
         private void InitializeComponent()
         {
-            System.Windows.Forms.Label descriptionLabel;
-            System.Windows.Forms.Label lengthLabel;
-            System.Windows.Forms.Label widthLabel;
-            System.Windows.Forms.Label colorLabel;
-            System.Windows.Forms.Label nametkanLabel;
-            System.Windows.Forms.Label label2;
-            System.Windows.Forms.Label label3;
-            System.Windows.Forms.Label label4;
+            this.components = new System.ComponentModel.Container();
             System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormAddZakaz));
             this.BtnCancel = new System.Windows.Forms.Button();
             this.BtnOK = new System.Windows.Forms.Button();
-            this.tabControl1 = new System.Windows.Forms.TabControl();
-            this.tabPage1 = new System.Windows.Forms.TabPage();
-            this.label5 = new System.Windows.Forms.Label();
-            this.TbxCountIzd = new System.Windows.Forms.TextBox();
-            this.DgvIzd = new System.Windows.Forms.DataGridView();
-            this.tabPage2 = new System.Windows.Forms.TabPage();
-            this.DescriptionTextBox = new System.Windows.Forms.TextBox();
-            this.LengthTextBox = new System.Windows.Forms.TextBox();
-            this.WidthTextBox = new System.Windows.Forms.TextBox();
-            this.ColorTextBox = new System.Windows.Forms.TextBox();
-            this.NametkanTextBox = new System.Windows.Forms.TextBox();
-            this.LVTkani = new System.Windows.Forms.ListView();
-            this.tabPage3 = new System.Windows.Forms.TabPage();
-            this.TbxCountFur = new System.Windows.Forms.TextBox();
-            this.TbxCountFurSklad = new System.Windows.Forms.TextBox();
-            this.TbxNameFur = new System.Windows.Forms.TextBox();
-            this.LVFurnitura = new System.Windows.Forms.ListView();
             this.panel1 = new System.Windows.Forms.Panel();
             this.label1 = new System.Windows.Forms.Label();
             this.pictureBox1 = new System.Windows.Forms.PictureBox();
-            descriptionLabel = new System.Windows.Forms.Label();
-            lengthLabel = new System.Windows.Forms.Label();
-            widthLabel = new System.Windows.Forms.Label();
-            colorLabel = new System.Windows.Forms.Label();
-            nametkanLabel = new System.Windows.Forms.Label();
-            label2 = new System.Windows.Forms.Label();
-            label3 = new System.Windows.Forms.Label();
-            label4 = new System.Windows.Forms.Label();
-            this.tabControl1.SuspendLayout();
-            this.tabPage1.SuspendLayout();
-            ((System.ComponentModel.ISupportInitialize)(this.DgvIzd)).BeginInit();
-            this.tabPage2.SuspendLayout();
-            this.tabPage3.SuspendLayout();
+            this.LblIdIzd = new System.Windows.Forms.Label();
+            this.LblIdZak = new System.Windows.Forms.Label();
+            this.LblCountIzd = new System.Windows.Forms.Label();
+            this.label6 = new System.Windows.Forms.Label();
+            this.label5 = new System.Windows.Forms.Label();
+            this.label4 = new System.Windows.Forms.Label();
+            this.label3 = new System.Windows.Forms.Label();
+            this.label2 = new System.Windows.Forms.Label();
+            this.TbxCountIzd = new System.Windows.Forms.TextBox();
+            this.TbxCountFur = new System.Windows.Forms.TextBox();
+            this.CbxFurn = new System.Windows.Forms.ComboBox();
+            this.CbxCloth = new System.Windows.Forms.ComboBox();
+            this.CbxIzd = new System.Windows.Forms.ComboBox();
+            this.LblCountFur = new System.Windows.Forms.Label();
+            this.LblIdMen = new System.Windows.Forms.Label();
+            this.BsZak = new System.Windows.Forms.BindingSource(this.components);
+            this.factoryLVSDataSet = new FactoryLVS.FactoryLVSDataSet();
+            this.ordersTableAdapter1 = new FactoryLVS.FactoryLVSDataSetTableAdapters.OrdersTableAdapter();
+            this.furnituraTableAdapter1 = new FactoryLVS.FactoryLVSDataSetTableAdapters.FurnituraTableAdapter();
+            this.izdelieTableAdapter1 = new FactoryLVS.FactoryLVSDataSetTableAdapters.IzdelieTableAdapter();
+            this.tkanTableAdapter1 = new FactoryLVS.FactoryLVSDataSetTableAdapters.TkanTableAdapter();
+            this.BsIzd = new System.Windows.Forms.BindingSource(this.components);
+            this.BsFurn = new System.Windows.Forms.BindingSource(this.components);
+            this.BsTkan = new System.Windows.Forms.BindingSource(this.components);
             this.panel1.SuspendLayout();
             ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
+            ((System.ComponentModel.ISupportInitialize)(this.BsZak)).BeginInit();
+            ((System.ComponentModel.ISupportInitialize)(this.factoryLVSDataSet)).BeginInit();
+            ((System.ComponentModel.ISupportInitialize)(this.BsIzd)).BeginInit();
+            ((System.ComponentModel.ISupportInitialize)(this.BsFurn)).BeginInit();
+            ((System.ComponentModel.ISupportInitialize)(this.BsTkan)).BeginInit();
             this.SuspendLayout();
             // 
             // BtnCancel
             // 
             this.BtnCancel.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(156)))), ((int)(((byte)(26)))));
-            this.BtnCancel.Location = new System.Drawing.Point(358, 419);
+            this.BtnCancel.Location = new System.Drawing.Point(277, 402);
             this.BtnCancel.Margin = new System.Windows.Forms.Padding(2);
             this.BtnCancel.Name = "BtnCancel";
             this.BtnCancel.Size = new System.Drawing.Size(133, 23);
@@ -91,287 +83,14 @@
             // BtnOK
             // 
             this.BtnOK.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(156)))), ((int)(((byte)(26)))));
-            this.BtnOK.Location = new System.Drawing.Point(98, 419);
+            this.BtnOK.Location = new System.Drawing.Point(17, 402);
             this.BtnOK.Margin = new System.Windows.Forms.Padding(2);
             this.BtnOK.Name = "BtnOK";
             this.BtnOK.Size = new System.Drawing.Size(149, 23);
             this.BtnOK.TabIndex = 18;
             this.BtnOK.Text = "Сформировать заказ";
             this.BtnOK.UseVisualStyleBackColor = false;
-            // 
-            // tabControl1
-            // 
-            this.tabControl1.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.tabControl1.Controls.Add(this.tabPage1);
-            this.tabControl1.Controls.Add(this.tabPage2);
-            this.tabControl1.Controls.Add(this.tabPage3);
-            this.tabControl1.Location = new System.Drawing.Point(10, 128);
-            this.tabControl1.Margin = new System.Windows.Forms.Padding(2);
-            this.tabControl1.Name = "tabControl1";
-            this.tabControl1.SelectedIndex = 0;
-            this.tabControl1.Size = new System.Drawing.Size(572, 280);
-            this.tabControl1.TabIndex = 17;
-            // 
-            // tabPage1
-            // 
-            this.tabPage1.Controls.Add(this.label5);
-            this.tabPage1.Controls.Add(this.TbxCountIzd);
-            this.tabPage1.Controls.Add(this.DgvIzd);
-            this.tabPage1.Location = new System.Drawing.Point(4, 22);
-            this.tabPage1.Margin = new System.Windows.Forms.Padding(2);
-            this.tabPage1.Name = "tabPage1";
-            this.tabPage1.Padding = new System.Windows.Forms.Padding(2);
-            this.tabPage1.Size = new System.Drawing.Size(564, 254);
-            this.tabPage1.TabIndex = 0;
-            this.tabPage1.Text = "Изделие";
-            this.tabPage1.UseVisualStyleBackColor = true;
-            // 
-            // label5
-            // 
-            this.label5.AutoSize = true;
-            this.label5.Location = new System.Drawing.Point(5, 188);
-            this.label5.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
-            this.label5.Name = "label5";
-            this.label5.Size = new System.Drawing.Size(190, 13);
-            this.label5.TabIndex = 2;
-            this.label5.Text = "Введите кол-во изделий для заказа";
-            // 
-            // TbxCountIzd
-            // 
-            this.TbxCountIzd.Location = new System.Drawing.Point(5, 207);
-            this.TbxCountIzd.Margin = new System.Windows.Forms.Padding(2);
-            this.TbxCountIzd.Name = "TbxCountIzd";
-            this.TbxCountIzd.Size = new System.Drawing.Size(76, 20);
-            this.TbxCountIzd.TabIndex = 1;
-            // 
-            // DgvIzd
-            // 
-            this.DgvIzd.AllowUserToAddRows = false;
-            this.DgvIzd.AllowUserToDeleteRows = false;
-            this.DgvIzd.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
-            this.DgvIzd.Location = new System.Drawing.Point(4, 5);
-            this.DgvIzd.Margin = new System.Windows.Forms.Padding(2);
-            this.DgvIzd.Name = "DgvIzd";
-            this.DgvIzd.ReadOnly = true;
-            this.DgvIzd.RowTemplate.Height = 24;
-            this.DgvIzd.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
-            this.DgvIzd.Size = new System.Drawing.Size(482, 174);
-            this.DgvIzd.TabIndex = 0;
-            // 
-            // tabPage2
-            // 
-            this.tabPage2.Controls.Add(descriptionLabel);
-            this.tabPage2.Controls.Add(this.DescriptionTextBox);
-            this.tabPage2.Controls.Add(lengthLabel);
-            this.tabPage2.Controls.Add(this.LengthTextBox);
-            this.tabPage2.Controls.Add(widthLabel);
-            this.tabPage2.Controls.Add(this.WidthTextBox);
-            this.tabPage2.Controls.Add(colorLabel);
-            this.tabPage2.Controls.Add(this.ColorTextBox);
-            this.tabPage2.Controls.Add(nametkanLabel);
-            this.tabPage2.Controls.Add(this.NametkanTextBox);
-            this.tabPage2.Controls.Add(this.LVTkani);
-            this.tabPage2.Location = new System.Drawing.Point(4, 22);
-            this.tabPage2.Margin = new System.Windows.Forms.Padding(2);
-            this.tabPage2.Name = "tabPage2";
-            this.tabPage2.Padding = new System.Windows.Forms.Padding(2);
-            this.tabPage2.Size = new System.Drawing.Size(564, 254);
-            this.tabPage2.TabIndex = 1;
-            this.tabPage2.Text = "Ткань";
-            this.tabPage2.UseVisualStyleBackColor = true;
-            // 
-            // descriptionLabel
-            // 
-            descriptionLabel.AutoSize = true;
-            descriptionLabel.Location = new System.Drawing.Point(378, 143);
-            descriptionLabel.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
-            descriptionLabel.Name = "descriptionLabel";
-            descriptionLabel.Size = new System.Drawing.Size(60, 13);
-            descriptionLabel.TabIndex = 9;
-            descriptionLabel.Text = "Описание:";
-            // 
-            // DescriptionTextBox
-            // 
-            this.DescriptionTextBox.Location = new System.Drawing.Point(441, 141);
-            this.DescriptionTextBox.Margin = new System.Windows.Forms.Padding(2);
-            this.DescriptionTextBox.Name = "DescriptionTextBox";
-            this.DescriptionTextBox.ReadOnly = true;
-            this.DescriptionTextBox.Size = new System.Drawing.Size(109, 20);
-            this.DescriptionTextBox.TabIndex = 10;
-            // 
-            // lengthLabel
-            // 
-            lengthLabel.AutoSize = true;
-            lengthLabel.Location = new System.Drawing.Point(395, 113);
-            lengthLabel.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
-            lengthLabel.Name = "lengthLabel";
-            lengthLabel.Size = new System.Drawing.Size(43, 13);
-            lengthLabel.TabIndex = 7;
-            lengthLabel.Text = "Длина:";
-            // 
-            // LengthTextBox
-            // 
-            this.LengthTextBox.Location = new System.Drawing.Point(441, 110);
-            this.LengthTextBox.Margin = new System.Windows.Forms.Padding(2);
-            this.LengthTextBox.Name = "LengthTextBox";
-            this.LengthTextBox.ReadOnly = true;
-            this.LengthTextBox.Size = new System.Drawing.Size(109, 20);
-            this.LengthTextBox.TabIndex = 8;
-            // 
-            // widthLabel
-            // 
-            widthLabel.AutoSize = true;
-            widthLabel.Location = new System.Drawing.Point(389, 84);
-            widthLabel.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
-            widthLabel.Name = "widthLabel";
-            widthLabel.Size = new System.Drawing.Size(49, 13);
-            widthLabel.TabIndex = 5;
-            widthLabel.Text = "Ширина:";
-            // 
-            // WidthTextBox
-            // 
-            this.WidthTextBox.Location = new System.Drawing.Point(441, 81);
-            this.WidthTextBox.Margin = new System.Windows.Forms.Padding(2);
-            this.WidthTextBox.Name = "WidthTextBox";
-            this.WidthTextBox.ReadOnly = true;
-            this.WidthTextBox.Size = new System.Drawing.Size(109, 20);
-            this.WidthTextBox.TabIndex = 6;
-            // 
-            // colorLabel
-            // 
-            colorLabel.AutoSize = true;
-            colorLabel.Location = new System.Drawing.Point(403, 52);
-            colorLabel.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
-            colorLabel.Name = "colorLabel";
-            colorLabel.Size = new System.Drawing.Size(35, 13);
-            colorLabel.TabIndex = 3;
-            colorLabel.Text = "Цвет:";
-            // 
-            // ColorTextBox
-            // 
-            this.ColorTextBox.Location = new System.Drawing.Point(441, 50);
-            this.ColorTextBox.Margin = new System.Windows.Forms.Padding(2);
-            this.ColorTextBox.Name = "ColorTextBox";
-            this.ColorTextBox.ReadOnly = true;
-            this.ColorTextBox.Size = new System.Drawing.Size(109, 20);
-            this.ColorTextBox.TabIndex = 4;
-            // 
-            // nametkanLabel
-            // 
-            nametkanLabel.AutoSize = true;
-            nametkanLabel.Location = new System.Drawing.Point(380, 20);
-            nametkanLabel.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
-            nametkanLabel.Name = "nametkanLabel";
-            nametkanLabel.Size = new System.Drawing.Size(60, 13);
-            nametkanLabel.TabIndex = 1;
-            nametkanLabel.Text = "Название:";
-            // 
-            // NametkanTextBox
-            // 
-            this.NametkanTextBox.Location = new System.Drawing.Point(441, 18);
-            this.NametkanTextBox.Margin = new System.Windows.Forms.Padding(2);
-            this.NametkanTextBox.Name = "NametkanTextBox";
-            this.NametkanTextBox.ReadOnly = true;
-            this.NametkanTextBox.Size = new System.Drawing.Size(109, 20);
-            this.NametkanTextBox.TabIndex = 2;
-            // 
-            // LVTkani
-            // 
-            this.LVTkani.Dock = System.Windows.Forms.DockStyle.Left;
-            this.LVTkani.HideSelection = false;
-            this.LVTkani.Location = new System.Drawing.Point(2, 2);
-            this.LVTkani.Margin = new System.Windows.Forms.Padding(2);
-            this.LVTkani.Name = "LVTkani";
-            this.LVTkani.Size = new System.Drawing.Size(340, 250);
-            this.LVTkani.TabIndex = 0;
-            this.LVTkani.UseCompatibleStateImageBehavior = false;
-            // 
-            // tabPage3
-            // 
-            this.tabPage3.Controls.Add(label2);
-            this.tabPage3.Controls.Add(this.TbxCountFur);
-            this.tabPage3.Controls.Add(label3);
-            this.tabPage3.Controls.Add(this.TbxCountFurSklad);
-            this.tabPage3.Controls.Add(label4);
-            this.tabPage3.Controls.Add(this.TbxNameFur);
-            this.tabPage3.Controls.Add(this.LVFurnitura);
-            this.tabPage3.Location = new System.Drawing.Point(4, 22);
-            this.tabPage3.Margin = new System.Windows.Forms.Padding(2);
-            this.tabPage3.Name = "tabPage3";
-            this.tabPage3.Padding = new System.Windows.Forms.Padding(2);
-            this.tabPage3.Size = new System.Drawing.Size(564, 254);
-            this.tabPage3.TabIndex = 2;
-            this.tabPage3.Text = "Фурнитура";
-            this.tabPage3.UseVisualStyleBackColor = true;
-            // 
-            // label2
-            // 
-            label2.AutoSize = true;
-            label2.Location = new System.Drawing.Point(348, 110);
-            label2.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
-            label2.Name = "label2";
-            label2.Size = new System.Drawing.Size(207, 13);
-            label2.TabIndex = 11;
-            label2.Text = "Укажите кол-во фурнитур для изделия:";
-            // 
-            // TbxCountFur
-            // 
-            this.TbxCountFur.Location = new System.Drawing.Point(442, 126);
-            this.TbxCountFur.Margin = new System.Windows.Forms.Padding(2);
-            this.TbxCountFur.Name = "TbxCountFur";
-            this.TbxCountFur.Size = new System.Drawing.Size(109, 20);
-            this.TbxCountFur.TabIndex = 12;
-            // 
-            // label3
-            // 
-            label3.AutoSize = true;
-            label3.Location = new System.Drawing.Point(343, 47);
-            label3.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
-            label3.Name = "label3";
-            label3.Size = new System.Drawing.Size(98, 13);
-            label3.TabIndex = 9;
-            label3.Text = "Кол-во на складе:";
-            // 
-            // TbxCountFurSklad
-            // 
-            this.TbxCountFurSklad.Location = new System.Drawing.Point(442, 47);
-            this.TbxCountFurSklad.Margin = new System.Windows.Forms.Padding(2);
-            this.TbxCountFurSklad.Name = "TbxCountFurSklad";
-            this.TbxCountFurSklad.ReadOnly = true;
-            this.TbxCountFurSklad.Size = new System.Drawing.Size(109, 20);
-            this.TbxCountFurSklad.TabIndex = 10;
-            // 
-            // label4
-            // 
-            label4.AutoSize = true;
-            label4.Location = new System.Drawing.Point(381, 18);
-            label4.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
-            label4.Name = "label4";
-            label4.Size = new System.Drawing.Size(60, 13);
-            label4.TabIndex = 7;
-            label4.Text = "Название:";
-            // 
-            // TbxNameFur
-            // 
-            this.TbxNameFur.Location = new System.Drawing.Point(442, 15);
-            this.TbxNameFur.Margin = new System.Windows.Forms.Padding(2);
-            this.TbxNameFur.Name = "TbxNameFur";
-            this.TbxNameFur.ReadOnly = true;
-            this.TbxNameFur.Size = new System.Drawing.Size(109, 20);
-            this.TbxNameFur.TabIndex = 8;
-            // 
-            // LVFurnitura
-            // 
-            this.LVFurnitura.Dock = System.Windows.Forms.DockStyle.Left;
-            this.LVFurnitura.HideSelection = false;
-            this.LVFurnitura.Location = new System.Drawing.Point(2, 2);
-            this.LVFurnitura.Margin = new System.Windows.Forms.Padding(2);
-            this.LVFurnitura.Name = "LVFurnitura";
-            this.LVFurnitura.Size = new System.Drawing.Size(327, 250);
-            this.LVFurnitura.TabIndex = 0;
-            this.LVFurnitura.UseCompatibleStateImageBehavior = false;
+            this.BtnOK.Click += new System.EventHandler(this.BtnOK_Click);
             // 
             // panel1
             // 
@@ -382,13 +101,13 @@
             this.panel1.Location = new System.Drawing.Point(0, 0);
             this.panel1.Margin = new System.Windows.Forms.Padding(2);
             this.panel1.Name = "panel1";
-            this.panel1.Size = new System.Drawing.Size(589, 106);
+            this.panel1.Size = new System.Drawing.Size(424, 106);
             this.panel1.TabIndex = 16;
             // 
             // label1
             // 
             this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 13.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
-            this.label1.Location = new System.Drawing.Point(166, 35);
+            this.label1.Location = new System.Drawing.Point(137, 41);
             this.label1.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
             this.label1.Name = "label1";
             this.label1.Size = new System.Drawing.Size(369, 44);
@@ -409,32 +128,218 @@
             this.pictureBox1.TabIndex = 0;
             this.pictureBox1.TabStop = false;
             // 
+            // LblIdIzd
+            // 
+            this.LblIdIzd.AutoSize = true;
+            this.LblIdIzd.Location = new System.Drawing.Point(17, 197);
+            this.LblIdIzd.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
+            this.LblIdIzd.Name = "LblIdIzd";
+            this.LblIdIzd.Size = new System.Drawing.Size(30, 13);
+            this.LblIdIzd.TabIndex = 29;
+            this.LblIdIzd.Text = "IdIzd";
+            // 
+            // LblIdZak
+            // 
+            this.LblIdZak.AutoSize = true;
+            this.LblIdZak.Location = new System.Drawing.Point(17, 173);
+            this.LblIdZak.Name = "LblIdZak";
+            this.LblIdZak.Size = new System.Drawing.Size(49, 13);
+            this.LblIdZak.TabIndex = 42;
+            this.LblIdZak.Text = "LblIdZak";
+            // 
+            // LblCountIzd
+            // 
+            this.LblCountIzd.AutoSize = true;
+            this.LblCountIzd.Location = new System.Drawing.Point(17, 148);
+            this.LblCountIzd.Name = "LblCountIzd";
+            this.LblCountIzd.Size = new System.Drawing.Size(63, 13);
+            this.LblCountIzd.TabIndex = 41;
+            this.LblCountIzd.Text = "LblCountIzd";
+            // 
+            // label6
+            // 
+            this.label6.AutoSize = true;
+            this.label6.Location = new System.Drawing.Point(129, 327);
+            this.label6.Name = "label6";
+            this.label6.Size = new System.Drawing.Size(86, 13);
+            this.label6.TabIndex = 40;
+            this.label6.Text = "Кол-во изделий";
+            // 
+            // label5
+            // 
+            this.label5.AutoSize = true;
+            this.label5.Location = new System.Drawing.Point(129, 279);
+            this.label5.Name = "label5";
+            this.label5.Size = new System.Drawing.Size(102, 13);
+            this.label5.TabIndex = 39;
+            this.label5.Text = "Кол-во фурнитуры:";
+            // 
+            // label4
+            // 
+            this.label4.AutoSize = true;
+            this.label4.Location = new System.Drawing.Point(129, 226);
+            this.label4.Name = "label4";
+            this.label4.Size = new System.Drawing.Size(66, 13);
+            this.label4.TabIndex = 38;
+            this.label4.Text = "Фурнитура:";
+            // 
+            // label3
+            // 
+            this.label3.AutoSize = true;
+            this.label3.Location = new System.Drawing.Point(129, 173);
+            this.label3.Name = "label3";
+            this.label3.Size = new System.Drawing.Size(41, 13);
+            this.label3.TabIndex = 37;
+            this.label3.Text = "Ткань:";
+            // 
+            // label2
+            // 
+            this.label2.AutoSize = true;
+            this.label2.Location = new System.Drawing.Point(129, 121);
+            this.label2.Name = "label2";
+            this.label2.Size = new System.Drawing.Size(54, 13);
+            this.label2.TabIndex = 36;
+            this.label2.Text = "Изделие:";
+            // 
+            // TbxCountIzd
+            // 
+            this.TbxCountIzd.Location = new System.Drawing.Point(129, 343);
+            this.TbxCountIzd.Name = "TbxCountIzd";
+            this.TbxCountIzd.Size = new System.Drawing.Size(201, 20);
+            this.TbxCountIzd.TabIndex = 35;
+            // 
+            // TbxCountFur
+            // 
+            this.TbxCountFur.Location = new System.Drawing.Point(129, 295);
+            this.TbxCountFur.Name = "TbxCountFur";
+            this.TbxCountFur.Size = new System.Drawing.Size(201, 20);
+            this.TbxCountFur.TabIndex = 34;
+            // 
+            // CbxFurn
+            // 
+            this.CbxFurn.DataSource = this.BsFurn;
+            this.CbxFurn.DisplayMember = "namefur";
+            this.CbxFurn.FormattingEnabled = true;
+            this.CbxFurn.Location = new System.Drawing.Point(129, 242);
+            this.CbxFurn.Name = "CbxFurn";
+            this.CbxFurn.Size = new System.Drawing.Size(201, 21);
+            this.CbxFurn.TabIndex = 33;
+            // 
+            // CbxCloth
+            // 
+            this.CbxCloth.DataSource = this.BsTkan;
+            this.CbxCloth.DisplayMember = "Title";
+            this.CbxCloth.FormattingEnabled = true;
+            this.CbxCloth.Location = new System.Drawing.Point(129, 189);
+            this.CbxCloth.Name = "CbxCloth";
+            this.CbxCloth.Size = new System.Drawing.Size(201, 21);
+            this.CbxCloth.TabIndex = 32;
+            // 
+            // CbxIzd
+            // 
+            this.CbxIzd.DataSource = this.BsIzd;
+            this.CbxIzd.DisplayMember = "name_izd";
+            this.CbxIzd.FormattingEnabled = true;
+            this.CbxIzd.Location = new System.Drawing.Point(129, 140);
+            this.CbxIzd.Name = "CbxIzd";
+            this.CbxIzd.Size = new System.Drawing.Size(201, 21);
+            this.CbxIzd.TabIndex = 31;
+            this.CbxIzd.ValueMember = "name_izd";
+            // 
+            // LblCountFur
+            // 
+            this.LblCountFur.AutoSize = true;
+            this.LblCountFur.Location = new System.Drawing.Point(17, 126);
+            this.LblCountFur.Name = "LblCountFur";
+            this.LblCountFur.Size = new System.Drawing.Size(64, 13);
+            this.LblCountFur.TabIndex = 30;
+            this.LblCountFur.Text = "LblCountFur";
+            // 
+            // LblIdMen
+            // 
+            this.LblIdMen.AutoSize = true;
+            this.LblIdMen.Location = new System.Drawing.Point(17, 226);
+            this.LblIdMen.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
+            this.LblIdMen.Name = "LblIdMen";
+            this.LblIdMen.Size = new System.Drawing.Size(30, 13);
+            this.LblIdMen.TabIndex = 43;
+            this.LblIdMen.Text = "IdIzd";
+            // 
+            // factoryLVSDataSet
+            // 
+            this.factoryLVSDataSet.DataSetName = "FactoryLVSDataSet";
+            this.factoryLVSDataSet.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
+            // 
+            // ordersTableAdapter1
+            // 
+            this.ordersTableAdapter1.ClearBeforeFill = true;
+            // 
+            // furnituraTableAdapter1
+            // 
+            this.furnituraTableAdapter1.ClearBeforeFill = true;
+            // 
+            // izdelieTableAdapter1
+            // 
+            this.izdelieTableAdapter1.ClearBeforeFill = true;
+            // 
+            // tkanTableAdapter1
+            // 
+            this.tkanTableAdapter1.ClearBeforeFill = true;
+            // 
+            // BsIzd
+            // 
+            this.BsIzd.DataMember = "Izdelie";
+            this.BsIzd.DataSource = this.factoryLVSDataSet;
+            // 
+            // BsFurn
+            // 
+            this.BsFurn.DataMember = "Furnitura";
+            this.BsFurn.DataSource = this.factoryLVSDataSet;
+            // 
+            // BsTkan
+            // 
+            this.BsTkan.DataMember = "Tkan";
+            this.BsTkan.DataSource = this.factoryLVSDataSet;
+            // 
             // FormAddZakaz
             // 
             this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
             this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
-            this.ClientSize = new System.Drawing.Size(589, 450);
+            this.ClientSize = new System.Drawing.Size(424, 450);
+            this.Controls.Add(this.LblIdMen);
+            this.Controls.Add(this.LblIdIzd);
+            this.Controls.Add(this.LblIdZak);
+            this.Controls.Add(this.LblCountIzd);
+            this.Controls.Add(this.label6);
+            this.Controls.Add(this.label5);
+            this.Controls.Add(this.label4);
+            this.Controls.Add(this.label3);
+            this.Controls.Add(this.label2);
+            this.Controls.Add(this.TbxCountIzd);
+            this.Controls.Add(this.TbxCountFur);
+            this.Controls.Add(this.CbxFurn);
+            this.Controls.Add(this.CbxCloth);
+            this.Controls.Add(this.CbxIzd);
+            this.Controls.Add(this.LblCountFur);
             this.Controls.Add(this.BtnCancel);
             this.Controls.Add(this.BtnOK);
-            this.Controls.Add(this.tabControl1);
             this.Controls.Add(this.panel1);
             this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
             this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
             this.MaximizeBox = false;
-            this.MinimumSize = new System.Drawing.Size(605, 489);
+            this.MinimumSize = new System.Drawing.Size(440, 489);
             this.Name = "FormAddZakaz";
             this.Text = "СУБД \"Швейная фабрика\"";
-            this.tabControl1.ResumeLayout(false);
-            this.tabPage1.ResumeLayout(false);
-            this.tabPage1.PerformLayout();
-            ((System.ComponentModel.ISupportInitialize)(this.DgvIzd)).EndInit();
-            this.tabPage2.ResumeLayout(false);
-            this.tabPage2.PerformLayout();
-            this.tabPage3.ResumeLayout(false);
-            this.tabPage3.PerformLayout();
+            this.Load += new System.EventHandler(this.FormAddZakaz_Load);
             this.panel1.ResumeLayout(false);
             ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
+            ((System.ComponentModel.ISupportInitialize)(this.BsZak)).EndInit();
+            ((System.ComponentModel.ISupportInitialize)(this.factoryLVSDataSet)).EndInit();
+            ((System.ComponentModel.ISupportInitialize)(this.BsIzd)).EndInit();
+            ((System.ComponentModel.ISupportInitialize)(this.BsFurn)).EndInit();
+            ((System.ComponentModel.ISupportInitialize)(this.BsTkan)).EndInit();
             this.ResumeLayout(false);
+            this.PerformLayout();
 
         }
 
@@ -442,25 +347,32 @@
 
         private System.Windows.Forms.Button BtnCancel;
         private System.Windows.Forms.Button BtnOK;
-        private System.Windows.Forms.TabControl tabControl1;
-        private System.Windows.Forms.TabPage tabPage1;
-        private System.Windows.Forms.Label label5;
-        private System.Windows.Forms.TextBox TbxCountIzd;
-        private System.Windows.Forms.DataGridView DgvIzd;
-        private System.Windows.Forms.TabPage tabPage2;
-        private System.Windows.Forms.TextBox DescriptionTextBox;
-        private System.Windows.Forms.TextBox LengthTextBox;
-        private System.Windows.Forms.TextBox WidthTextBox;
-        private System.Windows.Forms.TextBox ColorTextBox;
-        private System.Windows.Forms.TextBox NametkanTextBox;
-        private System.Windows.Forms.ListView LVTkani;
-        private System.Windows.Forms.TabPage tabPage3;
-        private System.Windows.Forms.TextBox TbxCountFur;
-        private System.Windows.Forms.TextBox TbxCountFurSklad;
-        private System.Windows.Forms.TextBox TbxNameFur;
-        private System.Windows.Forms.ListView LVFurnitura;
         private System.Windows.Forms.Panel panel1;
         private System.Windows.Forms.Label label1;
         private System.Windows.Forms.PictureBox pictureBox1;
+        private System.Windows.Forms.Label LblIdIzd;
+        private System.Windows.Forms.Label LblIdZak;
+        private System.Windows.Forms.Label LblCountIzd;
+        private System.Windows.Forms.Label label6;
+        private System.Windows.Forms.Label label5;
+        private System.Windows.Forms.Label label4;
+        private System.Windows.Forms.Label label3;
+        private System.Windows.Forms.Label label2;
+        private System.Windows.Forms.TextBox TbxCountIzd;
+        private System.Windows.Forms.TextBox TbxCountFur;
+        private System.Windows.Forms.ComboBox CbxFurn;
+        private System.Windows.Forms.ComboBox CbxCloth;
+        private System.Windows.Forms.ComboBox CbxIzd;
+        private System.Windows.Forms.Label LblCountFur;
+        private System.Windows.Forms.Label LblIdMen;
+        private System.Windows.Forms.BindingSource BsZak;
+        private FactoryLVSDataSet factoryLVSDataSet;
+        private FactoryLVSDataSetTableAdapters.OrdersTableAdapter ordersTableAdapter1;
+        private FactoryLVSDataSetTableAdapters.FurnituraTableAdapter furnituraTableAdapter1;
+        private FactoryLVSDataSetTableAdapters.IzdelieTableAdapter izdelieTableAdapter1;
+        private FactoryLVSDataSetTableAdapters.TkanTableAdapter tkanTableAdapter1;
+        private System.Windows.Forms.BindingSource BsFurn;
+        private System.Windows.Forms.BindingSource BsTkan;
+        private System.Windows.Forms.BindingSource BsIzd;
     }
 }

+ 74 - 0
FactoryLVS/FormAddZakaz.cs

@@ -2,6 +2,7 @@
 using System.Collections.Generic;
 using System.ComponentModel;
 using System.Data;
+using System.Data.SqlClient;
 using System.Drawing;
 using System.Linq;
 using System.Text;
@@ -16,9 +17,82 @@ namespace FactoryLVS
         {
             InitializeComponent();
         }
+        SqlConnection Con = new SqlConnection(Form1.TxtCon);
+
         private void BtnCancel_Click(object sender, EventArgs e)
         {
             DialogResult = DialogResult.Cancel;
         }
+
+        private void FormAddZakaz_Load(object sender, EventArgs e)
+        {
+            // TODO: This line of code loads data into the 'sewingFactoryMURDataSet1.Furnitura' table. You can move, or remove it, as needed.
+            this.furnituraTableAdapter1.Fill(this.factoryLVSDataSet.Furnitura);
+            // TODO: This line of code loads data into the 'sewingFactoryMURDataSet1.Cloth' table. You can move, or remove it, as needed.
+            this.tkanTableAdapter1.Fill(this.factoryLVSDataSet.Tkan);
+            // TODO: This line of code loads data into the 'sewingFactoryMURDataSet1.Izdelia' table. You can move, or remove it, as needed.
+            this.izdelieTableAdapter1.Fill(this.factoryLVSDataSet.Izdelie);
+            // TODO: This line of code loads data into the 'sewingFactoryMURDataSet1.Orders' table. You can move, or remove it, as needed.
+            this.ordersTableAdapter1.Fill(this.factoryLVSDataSet.Orders);
+
+            BsZak.AddNew();
+            BsZak.Position = BsZak.Count - 1;
+            CbxIzd.SelectedIndex = 0;
+            CbxFurn.SelectedIndex = 0;
+            CbxIzd.SelectedIndex = 0;
+            LblCountFur.Hide();
+            LblCountIzd.Hide();
+            LblIdMen.Hide();
+            LblIdZak.Hide();
+        }
+
+        private void BtnOK_Click(object sender, EventArgs e)
+        {
+            int f, i;
+            if (TbxCountFur.Text == "" || TbxCountIzd.Text == "")
+            {
+                MessageBox.Show("Не все данные заполнены", "Внимание", MessageBoxButtons.OK, MessageBoxIcon.Information);
+                return;
+            }
+
+            try
+            {
+                f = int.Parse(TbxCountFur.Text);
+                i = int.Parse(TbxCountIzd.Text);
+            }
+            catch
+            {
+                MessageBox.Show("Данные по количеству введены неверно", "Внимание", MessageBoxButtons.OK, MessageBoxIcon.Information);
+                return;
+            }
+            LblCountFur.Text = TbxCountFur.Text;
+            LblCountIzd.Text = TbxCountIzd.Text;
+            LblIdZak.Text = FormZakazchik.IdUser;
+            string txtQuery = $@"select id_User from Users where Role = 2 and id_User not in (select id_men from Orders)";
+            Con.Open();
+
+            SqlCommand query = new SqlCommand(txtQuery, Con);
+            SqlDataReader res = query.ExecuteReader();
+            if (res.Read())
+            {
+                LblIdMen.Text = res["User"].ToString();
+                Con.Close();
+            }
+            else
+            {
+                Con.Close();
+                txtQuery = $@"select id_men, (select COUNT(*) from Orders where id_men = o.id_men) as co from Orders o group by id_men order by co";
+                Con.Open();
+                query = new SqlCommand(txtQuery, Con);
+                res = query.ExecuteReader();
+                res.Read();
+                LblIdMen.Text = res["id_men"].ToString();
+                Con.Close();
+            }
+            BsZak.EndEdit();
+            this.ordersTableAdapter1.Update(this.factoryLVSDataSet.Orders);
+            this.ordersTableAdapter1.Fill(this.factoryLVSDataSet.Orders);
+            Close();
+        }
     }
 }

+ 19 - 16
FactoryLVS/FormAddZakaz.resx

@@ -117,29 +117,32 @@
   <resheader name="writer">
     <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
   </resheader>
-  <metadata name="descriptionLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>False</value>
+  <metadata name="BsFurn.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+    <value>997, 17</value>
   </metadata>
-  <metadata name="lengthLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>False</value>
+  <metadata name="factoryLVSDataSet.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+    <value>100, 17</value>
   </metadata>
-  <metadata name="widthLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>False</value>
+  <metadata name="BsTkan.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+    <value>1085, 17</value>
   </metadata>
-  <metadata name="colorLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>False</value>
+  <metadata name="BsIzd.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+    <value>917, 17</value>
   </metadata>
-  <metadata name="nametkanLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>False</value>
+  <metadata name="BsZak.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+    <value>17, 17</value>
   </metadata>
-  <metadata name="label2.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>False</value>
+  <metadata name="ordersTableAdapter1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+    <value>252, 17</value>
   </metadata>
-  <metadata name="label3.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>False</value>
+  <metadata name="furnituraTableAdapter1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+    <value>418, 17</value>
   </metadata>
-  <metadata name="label4.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>False</value>
+  <metadata name="izdelieTableAdapter1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+    <value>596, 17</value>
+  </metadata>
+  <metadata name="tkanTableAdapter1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+    <value>762, 17</value>
   </metadata>
   <assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
   <data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">

+ 46 - 30
FactoryLVS/FormZakazchik.Designer.cs

@@ -41,19 +41,20 @@
             this.FamLabel = new System.Windows.Forms.Label();
             this.panel1 = new System.Windows.Forms.Panel();
             this.label1 = new System.Windows.Forms.Label();
+            this.pictureBox1 = new System.Windows.Forms.PictureBox();
             this.tabControl1 = new System.Windows.Forms.TabControl();
             this.tabPage1 = new System.Windows.Forms.TabPage();
-            this.tabPage2 = new System.Windows.Forms.TabPage();
             this.PanelTkan = new System.Windows.Forms.TableLayoutPanel();
+            this.tabPage2 = new System.Windows.Forms.TabPage();
             this.PanelFurn = new System.Windows.Forms.TableLayoutPanel();
-            this.pictureBox1 = new System.Windows.Forms.PictureBox();
+            this.LblIdUser = new System.Windows.Forms.Label();
             ((System.ComponentModel.ISupportInitialize)(this.BsUsers)).BeginInit();
             ((System.ComponentModel.ISupportInitialize)(this.factoryLVSDataSet)).BeginInit();
             this.panel1.SuspendLayout();
+            ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
             this.tabControl1.SuspendLayout();
             this.tabPage1.SuspendLayout();
             this.tabPage2.SuspendLayout();
-            ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
             this.SuspendLayout();
             // 
             // BsUsers
@@ -103,6 +104,7 @@
             this.BtnProfile.TabIndex = 18;
             this.BtnProfile.Text = "Профиль пользователя";
             this.BtnProfile.UseVisualStyleBackColor = false;
+            this.BtnProfile.Click += new System.EventHandler(this.BtnProfile_Click);
             // 
             // OtchLabel
             // 
@@ -139,6 +141,7 @@
             this.panel1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
             | System.Windows.Forms.AnchorStyles.Right)));
             this.panel1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(225)))));
+            this.panel1.Controls.Add(this.LblIdUser);
             this.panel1.Controls.Add(this.label1);
             this.panel1.Controls.Add(this.pictureBox1);
             this.panel1.Controls.Add(this.NameLabel);
@@ -147,7 +150,7 @@
             this.panel1.Location = new System.Drawing.Point(0, 0);
             this.panel1.Margin = new System.Windows.Forms.Padding(2);
             this.panel1.Name = "panel1";
-            this.panel1.Size = new System.Drawing.Size(684, 106);
+            this.panel1.Size = new System.Drawing.Size(638, 106);
             this.panel1.TabIndex = 14;
             // 
             // label1
@@ -161,6 +164,18 @@
             this.label1.TabIndex = 1;
             this.label1.Text = "Рабочее место заказчика";
             // 
+            // pictureBox1
+            // 
+            this.pictureBox1.Dock = System.Windows.Forms.DockStyle.Left;
+            this.pictureBox1.Image = global::FactoryLVS.Properties.Resources.fabric_logo;
+            this.pictureBox1.Location = new System.Drawing.Point(0, 0);
+            this.pictureBox1.Margin = new System.Windows.Forms.Padding(2);
+            this.pictureBox1.Name = "pictureBox1";
+            this.pictureBox1.Size = new System.Drawing.Size(100, 106);
+            this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
+            this.pictureBox1.TabIndex = 0;
+            this.pictureBox1.TabStop = false;
+            // 
             // tabControl1
             // 
             this.tabControl1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
@@ -171,7 +186,7 @@
             this.tabControl1.Location = new System.Drawing.Point(12, 147);
             this.tabControl1.Name = "tabControl1";
             this.tabControl1.SelectedIndex = 0;
-            this.tabControl1.Size = new System.Drawing.Size(660, 291);
+            this.tabControl1.Size = new System.Drawing.Size(614, 291);
             this.tabControl1.TabIndex = 22;
             // 
             // tabPage1
@@ -180,22 +195,11 @@
             this.tabPage1.Location = new System.Drawing.Point(4, 22);
             this.tabPage1.Name = "tabPage1";
             this.tabPage1.Padding = new System.Windows.Forms.Padding(3);
-            this.tabPage1.Size = new System.Drawing.Size(652, 265);
+            this.tabPage1.Size = new System.Drawing.Size(606, 265);
             this.tabPage1.TabIndex = 0;
             this.tabPage1.Text = "Ткань";
             this.tabPage1.UseVisualStyleBackColor = true;
             // 
-            // tabPage2
-            // 
-            this.tabPage2.Controls.Add(this.PanelFurn);
-            this.tabPage2.Location = new System.Drawing.Point(4, 22);
-            this.tabPage2.Name = "tabPage2";
-            this.tabPage2.Padding = new System.Windows.Forms.Padding(3);
-            this.tabPage2.Size = new System.Drawing.Size(652, 265);
-            this.tabPage2.TabIndex = 1;
-            this.tabPage2.Text = "Фурнитура";
-            this.tabPage2.UseVisualStyleBackColor = true;
-            // 
             // PanelTkan
             // 
             this.PanelTkan.AutoScroll = true;
@@ -206,9 +210,20 @@
             this.PanelTkan.Name = "PanelTkan";
             this.PanelTkan.RowCount = 1;
             this.PanelTkan.RowStyles.Add(new System.Windows.Forms.RowStyle());
-            this.PanelTkan.Size = new System.Drawing.Size(646, 259);
+            this.PanelTkan.Size = new System.Drawing.Size(600, 259);
             this.PanelTkan.TabIndex = 0;
             // 
+            // tabPage2
+            // 
+            this.tabPage2.Controls.Add(this.PanelFurn);
+            this.tabPage2.Location = new System.Drawing.Point(4, 22);
+            this.tabPage2.Name = "tabPage2";
+            this.tabPage2.Padding = new System.Windows.Forms.Padding(3);
+            this.tabPage2.Size = new System.Drawing.Size(652, 265);
+            this.tabPage2.TabIndex = 1;
+            this.tabPage2.Text = "Фурнитура";
+            this.tabPage2.UseVisualStyleBackColor = true;
+            // 
             // PanelFurn
             // 
             this.PanelFurn.AutoScroll = true;
@@ -222,29 +237,29 @@
             this.PanelFurn.Size = new System.Drawing.Size(646, 259);
             this.PanelFurn.TabIndex = 0;
             // 
-            // pictureBox1
+            // LblIdUser
             // 
-            this.pictureBox1.Dock = System.Windows.Forms.DockStyle.Left;
-            this.pictureBox1.Image = global::FactoryLVS.Properties.Resources.fabric_logo;
-            this.pictureBox1.Location = new System.Drawing.Point(0, 0);
-            this.pictureBox1.Margin = new System.Windows.Forms.Padding(2);
-            this.pictureBox1.Name = "pictureBox1";
-            this.pictureBox1.Size = new System.Drawing.Size(100, 106);
-            this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
-            this.pictureBox1.TabIndex = 0;
-            this.pictureBox1.TabStop = false;
+            this.LblIdUser.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.BsUsers, "id_User", true));
+            this.LblIdUser.Location = new System.Drawing.Point(485, 76);
+            this.LblIdUser.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
+            this.LblIdUser.Name = "LblIdUser";
+            this.LblIdUser.Size = new System.Drawing.Size(75, 19);
+            this.LblIdUser.TabIndex = 18;
+            this.LblIdUser.Text = "label2";
+            this.LblIdUser.Visible = false;
             // 
             // FormZakazchik
             // 
             this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
             this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
-            this.ClientSize = new System.Drawing.Size(684, 450);
+            this.ClientSize = new System.Drawing.Size(638, 450);
             this.Controls.Add(this.tabControl1);
             this.Controls.Add(this.BtnAddZakaz);
             this.Controls.Add(this.BtnLev);
             this.Controls.Add(this.BtnProfile);
             this.Controls.Add(this.panel1);
             this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
+            this.MinimumSize = new System.Drawing.Size(654, 489);
             this.Name = "FormZakazchik";
             this.Text = "СУБД \"Швейная фабрика\"";
             this.Load += new System.EventHandler(this.FormZakazchik_Load);
@@ -252,10 +267,10 @@
             ((System.ComponentModel.ISupportInitialize)(this.factoryLVSDataSet)).EndInit();
             this.panel1.ResumeLayout(false);
             this.panel1.PerformLayout();
+            ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
             this.tabControl1.ResumeLayout(false);
             this.tabPage1.ResumeLayout(false);
             this.tabPage2.ResumeLayout(false);
-            ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
             this.ResumeLayout(false);
 
         }
@@ -278,5 +293,6 @@
         private System.Windows.Forms.TabPage tabPage2;
         private System.Windows.Forms.TableLayoutPanel PanelFurn;
         public System.Windows.Forms.TabControl tabControl1;
+        public System.Windows.Forms.Label LblIdUser;
     }
 }

+ 9 - 0
FactoryLVS/FormZakazchik.cs

@@ -10,6 +10,8 @@ using System.Text;
 using System.Threading.Tasks;
 using System.Windows.Forms;
 using System.IO;
+using System.Security.Cryptography;
+using System.Runtime.CompilerServices;
 
 namespace FactoryLVS
 {
@@ -300,6 +302,7 @@ namespace FactoryLVS
                
         }
 
+        public static string IdUser;
 
         void FillPanelTkan()
         {
@@ -337,6 +340,7 @@ namespace FactoryLVS
             this.usersTableAdapter.Fill(this.factoryLVSDataSet.Users);
             FillPanelTkan();
             FillPanelFurn();
+            IdUser = LblIdUser.Text;
         }
 
         private void BtnAddZakaz_Click(object sender, EventArgs e)
@@ -344,5 +348,10 @@ namespace FactoryLVS
             FormAddZakaz formAddZakaz = new FormAddZakaz();
             formAddZakaz.ShowDialog();
         }
+
+        private void BtnProfile_Click(object sender, EventArgs e)
+        {
+
+        }
     }
 }