Георгий Лебедько 2 lat temu
rodzic
commit
298de5cf00
25 zmienionych plików z 2285 dodań i 411 usunięć
  1. 45 32
      Швейная фабрика/Form1.Designer.cs
  2. 22 9
      Швейная фабрика/Form2.Designer.cs
  3. 585 0
      Швейная фабрика/FormAddZak.Designer.cs
  4. 498 0
      Швейная фабрика/FormAddZak.cs
  5. 239 0
      Швейная фабрика/FormAddZak.resx
  6. 36 23
      Швейная фабрика/FormMain.Designer.cs
  7. 2 1
      Швейная фабрика/FormMain.cs
  8. 3 3
      Швейная фабрика/FormMain.resx
  9. 326 0
      Швейная фабрика/FormProfilZak.Designer.cs
  10. 61 0
      Швейная фабрика/FormProfilZak.cs
  11. 227 0
      Швейная фабрика/FormProfilZak.resx
  12. 150 92
      Швейная фабрика/FormZakazchik.Designer.cs
  13. 40 245
      Швейная фабрика/FormZakazchik.cs
  14. 19 1
      Швейная фабрика/FormZakazchik.resx
  15. BIN
      Швейная фабрика/bin/Debug/furnitur/picture.jpg
  16. BIN
      Швейная фабрика/bin/Debug/furnitur/picture.png
  17. BIN
      Швейная фабрика/bin/Debug/tkani/picture.jpg
  18. BIN
      Швейная фабрика/bin/Debug/tkani/picture.png
  19. BIN
      Швейная фабрика/bin/Debug/Швейная фабрика.exe
  20. 2 0
      Швейная фабрика/obj/Debug/Швейная фабрика.csproj.FileListAbsolute.txt
  21. BIN
      Швейная фабрика/obj/Debug/Швейная фабрика.exe
  22. BIN
      Швейная фабрика/obj/Debug/Швейная_фабрика.FormAddZak.resources
  23. BIN
      Швейная фабрика/obj/Debug/Швейная_фабрика.FormProfilZak.resources
  24. 7 0
      Швейная фабрика/СlothesFactoryLGDataSet.xsc
  25. 23 5
      Швейная фабрика/Швейная фабрика.csproj

+ 45 - 32
Швейная фабрика/Form1.Designer.cs

@@ -29,12 +29,13 @@
         private void InitializeComponent()
         {
             this.panel1 = new System.Windows.Forms.Panel();
-            this.LblTitle = new System.Windows.Forms.Label();
-            this.LblColor = new System.Windows.Forms.Label();
-            this.LblWith = new System.Windows.Forms.Label();
-            this.LblLength = new System.Windows.Forms.Label();
             this.LblComment = new System.Windows.Forms.Label();
+            this.LblLength = new System.Windows.Forms.Label();
+            this.LblWith = new System.Windows.Forms.Label();
+            this.LblColor = new System.Windows.Forms.Label();
+            this.LblTitle = new System.Windows.Forms.Label();
             this.pictureBox1 = new System.Windows.Forms.PictureBox();
+            this.lblID = new System.Windows.Forms.Label();
             this.panel1.SuspendLayout();
             ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
             this.SuspendLayout();
@@ -42,6 +43,7 @@
             // panel1
             // 
             this.panel1.BackColor = System.Drawing.Color.White;
+            this.panel1.Controls.Add(this.lblID);
             this.panel1.Controls.Add(this.LblComment);
             this.panel1.Controls.Add(this.LblLength);
             this.panel1.Controls.Add(this.LblWith);
@@ -53,25 +55,25 @@
             this.panel1.Size = new System.Drawing.Size(390, 161);
             this.panel1.TabIndex = 0;
             // 
-            // LblTitle
+            // LblComment
             // 
-            this.LblTitle.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
+            this.LblComment.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
             | System.Windows.Forms.AnchorStyles.Right)));
-            this.LblTitle.Location = new System.Drawing.Point(225, 13);
-            this.LblTitle.Name = "LblTitle";
-            this.LblTitle.Size = new System.Drawing.Size(147, 23);
-            this.LblTitle.TabIndex = 1;
-            this.LblTitle.Text = "label1";
+            this.LblComment.Location = new System.Drawing.Point(225, 126);
+            this.LblComment.Name = "LblComment";
+            this.LblComment.Size = new System.Drawing.Size(147, 29);
+            this.LblComment.TabIndex = 5;
+            this.LblComment.Text = "label5";
             // 
-            // LblColor
+            // LblLength
             // 
-            this.LblColor.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
+            this.LblLength.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
             | System.Windows.Forms.AnchorStyles.Right)));
-            this.LblColor.Location = new System.Drawing.Point(225, 41);
-            this.LblColor.Name = "LblColor";
-            this.LblColor.Size = new System.Drawing.Size(147, 23);
-            this.LblColor.TabIndex = 2;
-            this.LblColor.Text = "label2";
+            this.LblLength.Location = new System.Drawing.Point(225, 100);
+            this.LblLength.Name = "LblLength";
+            this.LblLength.Size = new System.Drawing.Size(147, 23);
+            this.LblLength.TabIndex = 4;
+            this.LblLength.Text = "label4";
             // 
             // LblWith
             // 
@@ -83,25 +85,25 @@
             this.LblWith.TabIndex = 3;
             this.LblWith.Text = "label3";
             // 
-            // LblLength
+            // LblColor
             // 
-            this.LblLength.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
+            this.LblColor.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
             | System.Windows.Forms.AnchorStyles.Right)));
-            this.LblLength.Location = new System.Drawing.Point(225, 100);
-            this.LblLength.Name = "LblLength";
-            this.LblLength.Size = new System.Drawing.Size(147, 23);
-            this.LblLength.TabIndex = 4;
-            this.LblLength.Text = "label4";
+            this.LblColor.Location = new System.Drawing.Point(225, 41);
+            this.LblColor.Name = "LblColor";
+            this.LblColor.Size = new System.Drawing.Size(147, 23);
+            this.LblColor.TabIndex = 2;
+            this.LblColor.Text = "label2";
             // 
-            // LblComment
+            // LblTitle
             // 
-            this.LblComment.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
+            this.LblTitle.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
             | System.Windows.Forms.AnchorStyles.Right)));
-            this.LblComment.Location = new System.Drawing.Point(225, 126);
-            this.LblComment.Name = "LblComment";
-            this.LblComment.Size = new System.Drawing.Size(147, 29);
-            this.LblComment.TabIndex = 5;
-            this.LblComment.Text = "label5";
+            this.LblTitle.Location = new System.Drawing.Point(225, 13);
+            this.LblTitle.Name = "LblTitle";
+            this.LblTitle.Size = new System.Drawing.Size(147, 23);
+            this.LblTitle.TabIndex = 1;
+            this.LblTitle.Text = "label1";
             // 
             // pictureBox1
             // 
@@ -112,6 +114,15 @@
             this.pictureBox1.TabIndex = 0;
             this.pictureBox1.TabStop = false;
             // 
+            // lblID
+            // 
+            this.lblID.AutoSize = true;
+            this.lblID.Location = new System.Drawing.Point(321, 13);
+            this.lblID.Name = "lblID";
+            this.lblID.Size = new System.Drawing.Size(34, 16);
+            this.lblID.TabIndex = 6;
+            this.lblID.Text = "lblID";
+            // 
             // Form1
             // 
             this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
@@ -121,6 +132,7 @@
             this.Name = "Form1";
             this.Text = "Form1";
             this.panel1.ResumeLayout(false);
+            this.panel1.PerformLayout();
             ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
             this.ResumeLayout(false);
 
@@ -135,5 +147,6 @@
         private System.Windows.Forms.Label LblColor;
         private System.Windows.Forms.Label LblTitle;
         private System.Windows.Forms.PictureBox pictureBox1;
+        private System.Windows.Forms.Label lblID;
     }
 }

+ 22 - 9
Швейная фабрика/Form2.Designer.cs

@@ -29,9 +29,10 @@
         private void InitializeComponent()
         {
             this.panel1 = new System.Windows.Forms.Panel();
-            this.label1 = new System.Windows.Forms.Label();
             this.label2 = new System.Windows.Forms.Label();
+            this.label1 = new System.Windows.Forms.Label();
             this.PbxImage = new System.Windows.Forms.PictureBox();
+            this.lblID = new System.Windows.Forms.Label();
             this.panel1.SuspendLayout();
             ((System.ComponentModel.ISupportInitialize)(this.PbxImage)).BeginInit();
             this.SuspendLayout();
@@ -39,6 +40,7 @@
             // panel1
             // 
             this.panel1.BackColor = System.Drawing.Color.White;
+            this.panel1.Controls.Add(this.lblID);
             this.panel1.Controls.Add(this.label2);
             this.panel1.Controls.Add(this.label1);
             this.panel1.Controls.Add(this.PbxImage);
@@ -47,14 +49,6 @@
             this.panel1.Size = new System.Drawing.Size(265, 225);
             this.panel1.TabIndex = 0;
             // 
-            // label1
-            // 
-            this.label1.Location = new System.Drawing.Point(34, 163);
-            this.label1.Name = "label1";
-            this.label1.Size = new System.Drawing.Size(190, 23);
-            this.label1.TabIndex = 1;
-            this.label1.Text = "label1";
-            // 
             // label2
             // 
             this.label2.Location = new System.Drawing.Point(34, 190);
@@ -63,6 +57,14 @@
             this.label2.TabIndex = 2;
             this.label2.Text = "label2";
             // 
+            // label1
+            // 
+            this.label1.Location = new System.Drawing.Point(34, 163);
+            this.label1.Name = "label1";
+            this.label1.Size = new System.Drawing.Size(190, 23);
+            this.label1.TabIndex = 1;
+            this.label1.Text = "label1";
+            // 
             // PbxImage
             // 
             this.PbxImage.Location = new System.Drawing.Point(37, 18);
@@ -72,6 +74,15 @@
             this.PbxImage.TabIndex = 0;
             this.PbxImage.TabStop = false;
             // 
+            // lblID
+            // 
+            this.lblID.AutoSize = true;
+            this.lblID.Location = new System.Drawing.Point(191, 190);
+            this.lblID.Name = "lblID";
+            this.lblID.Size = new System.Drawing.Size(44, 16);
+            this.lblID.TabIndex = 3;
+            this.lblID.Text = "label3";
+            // 
             // Form2
             // 
             this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
@@ -81,6 +92,7 @@
             this.Name = "Form2";
             this.Text = "Form2";
             this.panel1.ResumeLayout(false);
+            this.panel1.PerformLayout();
             ((System.ComponentModel.ISupportInitialize)(this.PbxImage)).EndInit();
             this.ResumeLayout(false);
 
@@ -92,5 +104,6 @@
         public System.Windows.Forms.Label label2;
         public System.Windows.Forms.Label label1;
         public System.Windows.Forms.PictureBox PbxImage;
+        private System.Windows.Forms.Label lblID;
     }
 }

+ 585 - 0
Швейная фабрика/FormAddZak.Designer.cs

@@ -0,0 +1,585 @@
+namespace Швейная_фабрика
+{
+    partial class FormAddZak
+    {
+        /// <summary>
+        /// Required designer variable.
+        /// </summary>
+        private System.ComponentModel.IContainer components = null;
+
+        /// <summary>
+        /// Clean up any resources being used.
+        /// </summary>
+        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
+        protected override void Dispose(bool disposing)
+        {
+            if (disposing && (components != null))
+            {
+                components.Dispose();
+            }
+            base.Dispose(disposing);
+        }
+
+        #region Windows Form Designer generated code
+
+        /// <summary>
+        /// Required method for Designer support - do not modify
+        /// the contents of this method with the code editor.
+        /// </summary>
+        private void InitializeComponent()
+        {
+            this.components = new System.ComponentModel.Container();
+            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;
+            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormAddZak));
+            this.panel1 = new System.Windows.Forms.Panel();
+            this.label1 = new System.Windows.Forms.Label();
+            this.pictureBox1 = new System.Windows.Forms.PictureBox();
+            this.BsUsers = new System.Windows.Forms.BindingSource(this.components);
+            this.сlothesFactoryLGDataSet = new Швейная_фабрика.СlothesFactoryLGDataSet();
+            this.usersTableAdapter = new Швейная_фабрика.СlothesFactoryLGDataSetTableAdapters.UsersTableAdapter();
+            this.colorTableAdapter1 = new Швейная_фабрика.СlothesFactoryLGDataSetTableAdapters.ColorTableAdapter();
+            this.izdelieBindingSource = new System.Windows.Forms.BindingSource(this.components);
+            this.izdelieTableAdapter = new Швейная_фабрика.СlothesFactoryLGDataSetTableAdapters.IzdelieTableAdapter();
+            this.tabPage3 = 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.dataGridViewTextBoxColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.dataGridViewTextBoxColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.dataGridViewTextBoxColumn3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.dataGridViewTextBoxColumn4 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.tabPage2 = new System.Windows.Forms.TabPage();
+            this.TbxID = new System.Windows.Forms.TextBox();
+            this.TbxCountFur = new System.Windows.Forms.TextBox();
+            this.TbxCountFurSklad = new System.Windows.Forms.TextBox();
+            this.TbxNameFur = new System.Windows.Forms.TextBox();
+            this.TlpFurnitura = new System.Windows.Forms.TableLayoutPanel();
+            this.tabPage1 = new System.Windows.Forms.TabPage();
+            this.TbxDescription = new System.Windows.Forms.TextBox();
+            this.TbxLength = new System.Windows.Forms.TextBox();
+            this.TbxWith = new System.Windows.Forms.TextBox();
+            this.TbxColor = new System.Windows.Forms.TextBox();
+            this.TbxTitle = new System.Windows.Forms.TextBox();
+            this.TlpTkani = new System.Windows.Forms.TableLayoutPanel();
+            this.tabControl1 = new System.Windows.Forms.TabControl();
+            this.BtnCancel = new System.Windows.Forms.Button();
+            this.BtnOK = new System.Windows.Forms.Button();
+            this.TbxIdTkan = new System.Windows.Forms.TextBox();
+            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.panel1.SuspendLayout();
+            ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
+            ((System.ComponentModel.ISupportInitialize)(this.BsUsers)).BeginInit();
+            ((System.ComponentModel.ISupportInitialize)(this.сlothesFactoryLGDataSet)).BeginInit();
+            ((System.ComponentModel.ISupportInitialize)(this.izdelieBindingSource)).BeginInit();
+            this.tabPage3.SuspendLayout();
+            ((System.ComponentModel.ISupportInitialize)(this.DgvIzd)).BeginInit();
+            this.tabPage2.SuspendLayout();
+            this.tabPage1.SuspendLayout();
+            this.tabControl1.SuspendLayout();
+            this.SuspendLayout();
+            // 
+            // descriptionLabel
+            // 
+            descriptionLabel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+            descriptionLabel.AutoSize = true;
+            descriptionLabel.Location = new System.Drawing.Point(485, 170);
+            descriptionLabel.Name = "descriptionLabel";
+            descriptionLabel.Size = new System.Drawing.Size(75, 16);
+            descriptionLabel.TabIndex = 19;
+            descriptionLabel.Text = "Описание:";
+            // 
+            // lengthLabel
+            // 
+            lengthLabel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+            lengthLabel.AutoSize = true;
+            lengthLabel.Location = new System.Drawing.Point(508, 133);
+            lengthLabel.Name = "lengthLabel";
+            lengthLabel.Size = new System.Drawing.Size(51, 16);
+            lengthLabel.TabIndex = 17;
+            lengthLabel.Text = "Длина:";
+            // 
+            // widthLabel
+            // 
+            widthLabel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+            widthLabel.AutoSize = true;
+            widthLabel.Location = new System.Drawing.Point(500, 97);
+            widthLabel.Name = "widthLabel";
+            widthLabel.Size = new System.Drawing.Size(61, 16);
+            widthLabel.TabIndex = 15;
+            widthLabel.Text = "Ширина:";
+            // 
+            // colorLabel
+            // 
+            colorLabel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+            colorLabel.AutoSize = true;
+            colorLabel.Location = new System.Drawing.Point(518, 58);
+            colorLabel.Name = "colorLabel";
+            colorLabel.Size = new System.Drawing.Size(42, 16);
+            colorLabel.TabIndex = 13;
+            colorLabel.Text = "Цвет:";
+            // 
+            // nametkanLabel
+            // 
+            nametkanLabel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+            nametkanLabel.AutoSize = true;
+            nametkanLabel.Location = new System.Drawing.Point(487, 19);
+            nametkanLabel.Name = "nametkanLabel";
+            nametkanLabel.Size = new System.Drawing.Size(76, 16);
+            nametkanLabel.TabIndex = 11;
+            nametkanLabel.Text = "Название:";
+            // 
+            // label2
+            // 
+            label2.AutoSize = true;
+            label2.Location = new System.Drawing.Point(448, 90);
+            label2.Name = "label2";
+            label2.Size = new System.Drawing.Size(265, 16);
+            label2.TabIndex = 17;
+            label2.Text = "Укажите кол-во фурнитур для изделия:";
+            // 
+            // label3
+            // 
+            label3.AutoSize = true;
+            label3.Location = new System.Drawing.Point(436, 55);
+            label3.Name = "label3";
+            label3.Size = new System.Drawing.Size(122, 16);
+            label3.TabIndex = 15;
+            label3.Text = "Кол-во на складе:";
+            // 
+            // label4
+            // 
+            label4.AutoSize = true;
+            label4.Location = new System.Drawing.Point(487, 19);
+            label4.Name = "label4";
+            label4.Size = new System.Drawing.Size(76, 16);
+            label4.TabIndex = 13;
+            label4.Text = "Название:";
+            // 
+            // panel1
+            // 
+            this.panel1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(225)))));
+            this.panel1.Controls.Add(this.label1);
+            this.panel1.Controls.Add(this.pictureBox1);
+            this.panel1.Dock = System.Windows.Forms.DockStyle.Top;
+            this.panel1.Location = new System.Drawing.Point(0, 0);
+            this.panel1.Name = "panel1";
+            this.panel1.Size = new System.Drawing.Size(752, 130);
+            this.panel1.TabIndex = 2;
+            // 
+            // label1
+            // 
+            this.label1.AutoSize = true;
+            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(150, 51);
+            this.label1.Name = "label1";
+            this.label1.Size = new System.Drawing.Size(249, 29);
+            this.label1.TabIndex = 1;
+            this.label1.Text = "Добавлнение заказа";
+            // 
+            // pictureBox1
+            // 
+            this.pictureBox1.Dock = System.Windows.Forms.DockStyle.Left;
+            this.pictureBox1.Image = global::Швейная_фабрика.Properties.Resources.fabric_logo;
+            this.pictureBox1.Location = new System.Drawing.Point(0, 0);
+            this.pictureBox1.Name = "pictureBox1";
+            this.pictureBox1.Size = new System.Drawing.Size(133, 130);
+            this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
+            this.pictureBox1.TabIndex = 0;
+            this.pictureBox1.TabStop = false;
+            // 
+            // BsUsers
+            // 
+            this.BsUsers.DataMember = "Users";
+            this.BsUsers.DataSource = this.сlothesFactoryLGDataSet;
+            // 
+            // сlothesFactoryLGDataSet
+            // 
+            this.сlothesFactoryLGDataSet.DataSetName = "СlothesFactoryLGDataSet";
+            this.сlothesFactoryLGDataSet.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
+            // 
+            // usersTableAdapter
+            // 
+            this.usersTableAdapter.ClearBeforeFill = true;
+            // 
+            // colorTableAdapter1
+            // 
+            this.colorTableAdapter1.ClearBeforeFill = true;
+            // 
+            // izdelieBindingSource
+            // 
+            this.izdelieBindingSource.DataMember = "Izdelie";
+            this.izdelieBindingSource.DataSource = this.сlothesFactoryLGDataSet;
+            // 
+            // izdelieTableAdapter
+            // 
+            this.izdelieTableAdapter.ClearBeforeFill = true;
+            // 
+            // tabPage3
+            // 
+            this.tabPage3.AutoScroll = true;
+            this.tabPage3.Controls.Add(this.label5);
+            this.tabPage3.Controls.Add(this.TbxCountIzd);
+            this.tabPage3.Controls.Add(this.DgvIzd);
+            this.tabPage3.Location = new System.Drawing.Point(4, 25);
+            this.tabPage3.Name = "tabPage3";
+            this.tabPage3.Size = new System.Drawing.Size(719, 335);
+            this.tabPage3.TabIndex = 2;
+            this.tabPage3.Text = "Изделия";
+            this.tabPage3.UseVisualStyleBackColor = true;
+            // 
+            // label5
+            // 
+            this.label5.AutoSize = true;
+            this.label5.Location = new System.Drawing.Point(15, 271);
+            this.label5.Name = "label5";
+            this.label5.Size = new System.Drawing.Size(244, 16);
+            this.label5.TabIndex = 4;
+            this.label5.Text = "Введите кол-во изделий для заказа";
+            // 
+            // TbxCountIzd
+            // 
+            this.TbxCountIzd.Location = new System.Drawing.Point(15, 294);
+            this.TbxCountIzd.Name = "TbxCountIzd";
+            this.TbxCountIzd.Size = new System.Drawing.Size(100, 22);
+            this.TbxCountIzd.TabIndex = 3;
+            // 
+            // DgvIzd
+            // 
+            this.DgvIzd.AllowUserToAddRows = false;
+            this.DgvIzd.AllowUserToDeleteRows = false;
+            this.DgvIzd.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.DgvIzd.AutoGenerateColumns = false;
+            this.DgvIzd.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
+            this.DgvIzd.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
+            this.dataGridViewTextBoxColumn1,
+            this.dataGridViewTextBoxColumn2,
+            this.dataGridViewTextBoxColumn3,
+            this.dataGridViewTextBoxColumn4});
+            this.DgvIzd.DataSource = this.izdelieBindingSource;
+            this.DgvIzd.Location = new System.Drawing.Point(3, 3);
+            this.DgvIzd.Name = "DgvIzd";
+            this.DgvIzd.ReadOnly = true;
+            this.DgvIzd.RowHeadersVisible = false;
+            this.DgvIzd.RowHeadersWidth = 51;
+            this.DgvIzd.RowTemplate.Height = 24;
+            this.DgvIzd.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
+            this.DgvIzd.Size = new System.Drawing.Size(713, 265);
+            this.DgvIzd.TabIndex = 0;
+            this.DgvIzd.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.DgvIzd_CellClick);
+            // 
+            // dataGridViewTextBoxColumn1
+            // 
+            this.dataGridViewTextBoxColumn1.DataPropertyName = "id_izd";
+            this.dataGridViewTextBoxColumn1.HeaderText = "id_izd";
+            this.dataGridViewTextBoxColumn1.MinimumWidth = 6;
+            this.dataGridViewTextBoxColumn1.Name = "dataGridViewTextBoxColumn1";
+            this.dataGridViewTextBoxColumn1.ReadOnly = true;
+            this.dataGridViewTextBoxColumn1.Visible = false;
+            this.dataGridViewTextBoxColumn1.Width = 125;
+            // 
+            // dataGridViewTextBoxColumn2
+            // 
+            this.dataGridViewTextBoxColumn2.DataPropertyName = "name_izd";
+            this.dataGridViewTextBoxColumn2.HeaderText = "Название изделия";
+            this.dataGridViewTextBoxColumn2.MinimumWidth = 6;
+            this.dataGridViewTextBoxColumn2.Name = "dataGridViewTextBoxColumn2";
+            this.dataGridViewTextBoxColumn2.ReadOnly = true;
+            this.dataGridViewTextBoxColumn2.Width = 125;
+            // 
+            // dataGridViewTextBoxColumn3
+            // 
+            this.dataGridViewTextBoxColumn3.DataPropertyName = "length";
+            this.dataGridViewTextBoxColumn3.HeaderText = "Длинна";
+            this.dataGridViewTextBoxColumn3.MinimumWidth = 6;
+            this.dataGridViewTextBoxColumn3.Name = "dataGridViewTextBoxColumn3";
+            this.dataGridViewTextBoxColumn3.ReadOnly = true;
+            this.dataGridViewTextBoxColumn3.Width = 125;
+            // 
+            // dataGridViewTextBoxColumn4
+            // 
+            this.dataGridViewTextBoxColumn4.DataPropertyName = "width";
+            this.dataGridViewTextBoxColumn4.HeaderText = "Ширина";
+            this.dataGridViewTextBoxColumn4.MinimumWidth = 6;
+            this.dataGridViewTextBoxColumn4.Name = "dataGridViewTextBoxColumn4";
+            this.dataGridViewTextBoxColumn4.ReadOnly = true;
+            this.dataGridViewTextBoxColumn4.Width = 125;
+            // 
+            // tabPage2
+            // 
+            this.tabPage2.Controls.Add(this.TbxID);
+            this.tabPage2.Controls.Add(label2);
+            this.tabPage2.Controls.Add(this.TbxCountFur);
+            this.tabPage2.Controls.Add(label3);
+            this.tabPage2.Controls.Add(this.TbxCountFurSklad);
+            this.tabPage2.Controls.Add(label4);
+            this.tabPage2.Controls.Add(this.TbxNameFur);
+            this.tabPage2.Controls.Add(this.TlpFurnitura);
+            this.tabPage2.Location = new System.Drawing.Point(4, 25);
+            this.tabPage2.Name = "tabPage2";
+            this.tabPage2.Padding = new System.Windows.Forms.Padding(3);
+            this.tabPage2.Size = new System.Drawing.Size(719, 335);
+            this.tabPage2.TabIndex = 1;
+            this.tabPage2.Text = "Фурнитура";
+            this.tabPage2.UseVisualStyleBackColor = true;
+            // 
+            // TbxID
+            // 
+            this.TbxID.Location = new System.Drawing.Point(569, 138);
+            this.TbxID.Name = "TbxID";
+            this.TbxID.ReadOnly = true;
+            this.TbxID.Size = new System.Drawing.Size(100, 22);
+            this.TbxID.TabIndex = 19;
+            // 
+            // TbxCountFur
+            // 
+            this.TbxCountFur.Location = new System.Drawing.Point(569, 109);
+            this.TbxCountFur.Name = "TbxCountFur";
+            this.TbxCountFur.Size = new System.Drawing.Size(144, 22);
+            this.TbxCountFur.TabIndex = 18;
+            // 
+            // TbxCountFurSklad
+            // 
+            this.TbxCountFurSklad.Location = new System.Drawing.Point(569, 55);
+            this.TbxCountFurSklad.Name = "TbxCountFurSklad";
+            this.TbxCountFurSklad.ReadOnly = true;
+            this.TbxCountFurSklad.Size = new System.Drawing.Size(144, 22);
+            this.TbxCountFurSklad.TabIndex = 16;
+            // 
+            // TbxNameFur
+            // 
+            this.TbxNameFur.Location = new System.Drawing.Point(569, 16);
+            this.TbxNameFur.Name = "TbxNameFur";
+            this.TbxNameFur.ReadOnly = true;
+            this.TbxNameFur.Size = new System.Drawing.Size(144, 22);
+            this.TbxNameFur.TabIndex = 14;
+            // 
+            // TlpFurnitura
+            // 
+            this.TlpFurnitura.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.TlpFurnitura.AutoScroll = true;
+            this.TlpFurnitura.ColumnCount = 1;
+            this.TlpFurnitura.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
+            this.TlpFurnitura.Location = new System.Drawing.Point(6, 6);
+            this.TlpFurnitura.Name = "TlpFurnitura";
+            this.TlpFurnitura.RowCount = 1;
+            this.TlpFurnitura.RowStyles.Add(new System.Windows.Forms.RowStyle());
+            this.TlpFurnitura.Size = new System.Drawing.Size(392, 323);
+            this.TlpFurnitura.TabIndex = 0;
+            // 
+            // tabPage1
+            // 
+            this.tabPage1.Controls.Add(this.TbxIdTkan);
+            this.tabPage1.Controls.Add(descriptionLabel);
+            this.tabPage1.Controls.Add(this.TbxDescription);
+            this.tabPage1.Controls.Add(lengthLabel);
+            this.tabPage1.Controls.Add(this.TbxLength);
+            this.tabPage1.Controls.Add(widthLabel);
+            this.tabPage1.Controls.Add(this.TbxWith);
+            this.tabPage1.Controls.Add(colorLabel);
+            this.tabPage1.Controls.Add(this.TbxColor);
+            this.tabPage1.Controls.Add(nametkanLabel);
+            this.tabPage1.Controls.Add(this.TbxTitle);
+            this.tabPage1.Controls.Add(this.TlpTkani);
+            this.tabPage1.Location = new System.Drawing.Point(4, 25);
+            this.tabPage1.Name = "tabPage1";
+            this.tabPage1.Padding = new System.Windows.Forms.Padding(3);
+            this.tabPage1.Size = new System.Drawing.Size(719, 335);
+            this.tabPage1.TabIndex = 0;
+            this.tabPage1.Text = "Ткани";
+            this.tabPage1.UseVisualStyleBackColor = true;
+            // 
+            // TbxDescription
+            // 
+            this.TbxDescription.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+            this.TbxDescription.Location = new System.Drawing.Point(569, 167);
+            this.TbxDescription.Name = "TbxDescription";
+            this.TbxDescription.ReadOnly = true;
+            this.TbxDescription.Size = new System.Drawing.Size(144, 22);
+            this.TbxDescription.TabIndex = 20;
+            // 
+            // TbxLength
+            // 
+            this.TbxLength.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+            this.TbxLength.Location = new System.Drawing.Point(569, 130);
+            this.TbxLength.Name = "TbxLength";
+            this.TbxLength.ReadOnly = true;
+            this.TbxLength.Size = new System.Drawing.Size(144, 22);
+            this.TbxLength.TabIndex = 18;
+            // 
+            // TbxWith
+            // 
+            this.TbxWith.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+            this.TbxWith.Location = new System.Drawing.Point(569, 94);
+            this.TbxWith.Name = "TbxWith";
+            this.TbxWith.ReadOnly = true;
+            this.TbxWith.Size = new System.Drawing.Size(144, 22);
+            this.TbxWith.TabIndex = 16;
+            // 
+            // TbxColor
+            // 
+            this.TbxColor.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+            this.TbxColor.Location = new System.Drawing.Point(569, 55);
+            this.TbxColor.Name = "TbxColor";
+            this.TbxColor.ReadOnly = true;
+            this.TbxColor.Size = new System.Drawing.Size(144, 22);
+            this.TbxColor.TabIndex = 14;
+            // 
+            // TbxTitle
+            // 
+            this.TbxTitle.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+            this.TbxTitle.Location = new System.Drawing.Point(569, 16);
+            this.TbxTitle.Name = "TbxTitle";
+            this.TbxTitle.ReadOnly = true;
+            this.TbxTitle.Size = new System.Drawing.Size(144, 22);
+            this.TbxTitle.TabIndex = 12;
+            // 
+            // TlpTkani
+            // 
+            this.TlpTkani.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.TlpTkani.AutoScroll = true;
+            this.TlpTkani.ColumnCount = 1;
+            this.TlpTkani.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
+            this.TlpTkani.Location = new System.Drawing.Point(7, 7);
+            this.TlpTkani.Name = "TlpTkani";
+            this.TlpTkani.RowCount = 1;
+            this.TlpTkani.RowStyles.Add(new System.Windows.Forms.RowStyle());
+            this.TlpTkani.Size = new System.Drawing.Size(464, 322);
+            this.TlpTkani.TabIndex = 0;
+            // 
+            // 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.tabPage3);
+            this.tabControl1.Controls.Add(this.tabPage1);
+            this.tabControl1.Controls.Add(this.tabPage2);
+            this.tabControl1.Location = new System.Drawing.Point(13, 137);
+            this.tabControl1.Name = "tabControl1";
+            this.tabControl1.SelectedIndex = 0;
+            this.tabControl1.Size = new System.Drawing.Size(727, 364);
+            this.tabControl1.TabIndex = 3;
+            // 
+            // BtnCancel
+            // 
+            this.BtnCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
+            this.BtnCancel.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(156)))), ((int)(((byte)(26)))));
+            this.BtnCancel.Location = new System.Drawing.Point(431, 516);
+            this.BtnCancel.Name = "BtnCancel";
+            this.BtnCancel.Size = new System.Drawing.Size(196, 39);
+            this.BtnCancel.TabIndex = 17;
+            this.BtnCancel.Text = "Отменить";
+            this.BtnCancel.UseVisualStyleBackColor = false;
+            // 
+            // BtnOK
+            // 
+            this.BtnOK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
+            this.BtnOK.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(156)))), ((int)(((byte)(26)))));
+            this.BtnOK.Location = new System.Drawing.Point(104, 516);
+            this.BtnOK.Name = "BtnOK";
+            this.BtnOK.Size = new System.Drawing.Size(199, 39);
+            this.BtnOK.TabIndex = 16;
+            this.BtnOK.Text = "Сформировать заказ";
+            this.BtnOK.UseVisualStyleBackColor = false;
+            this.BtnOK.Click += new System.EventHandler(this.BtnOK_Click);
+            // 
+            // TbxIdTkan
+            // 
+            this.TbxIdTkan.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
+            | System.Windows.Forms.AnchorStyles.Right)));
+            this.TbxIdTkan.Location = new System.Drawing.Point(569, 196);
+            this.TbxIdTkan.Name = "TbxIdTkan";
+            this.TbxIdTkan.ReadOnly = true;
+            this.TbxIdTkan.Size = new System.Drawing.Size(144, 22);
+            this.TbxIdTkan.TabIndex = 21;
+            // 
+            // FormAddZak
+            // 
+            this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
+            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+            this.ClientSize = new System.Drawing.Size(752, 567);
+            this.Controls.Add(this.BtnCancel);
+            this.Controls.Add(this.BtnOK);
+            this.Controls.Add(this.tabControl1);
+            this.Controls.Add(this.panel1);
+            this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
+            this.Name = "FormAddZak";
+            this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
+            this.Text = "СУБД \"Швейная фабрика\"";
+            this.Load += new System.EventHandler(this.FormZakazchik_Load);
+            this.panel1.ResumeLayout(false);
+            this.panel1.PerformLayout();
+            ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
+            ((System.ComponentModel.ISupportInitialize)(this.BsUsers)).EndInit();
+            ((System.ComponentModel.ISupportInitialize)(this.сlothesFactoryLGDataSet)).EndInit();
+            ((System.ComponentModel.ISupportInitialize)(this.izdelieBindingSource)).EndInit();
+            this.tabPage3.ResumeLayout(false);
+            this.tabPage3.PerformLayout();
+            ((System.ComponentModel.ISupportInitialize)(this.DgvIzd)).EndInit();
+            this.tabPage2.ResumeLayout(false);
+            this.tabPage2.PerformLayout();
+            this.tabPage1.ResumeLayout(false);
+            this.tabPage1.PerformLayout();
+            this.tabControl1.ResumeLayout(false);
+            this.ResumeLayout(false);
+
+        }
+
+        #endregion
+
+        private System.Windows.Forms.Panel panel1;
+        private System.Windows.Forms.Label label1;
+        private System.Windows.Forms.PictureBox pictureBox1;
+        private СlothesFactoryLGDataSet сlothesFactoryLGDataSet;
+        private СlothesFactoryLGDataSetTableAdapters.UsersTableAdapter usersTableAdapter;
+        public System.Windows.Forms.BindingSource BsUsers;
+        private СlothesFactoryLGDataSetTableAdapters.ColorTableAdapter colorTableAdapter1;
+        private System.Windows.Forms.BindingSource izdelieBindingSource;
+        private СlothesFactoryLGDataSetTableAdapters.IzdelieTableAdapter izdelieTableAdapter;
+        private System.Windows.Forms.TabPage tabPage3;
+        private System.Windows.Forms.DataGridView DgvIzd;
+        private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn1;
+        private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn2;
+        private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn3;
+        private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn4;
+        private System.Windows.Forms.TabPage tabPage2;
+        private System.Windows.Forms.TableLayoutPanel TlpFurnitura;
+        private System.Windows.Forms.TabPage tabPage1;
+        private System.Windows.Forms.TableLayoutPanel TlpTkani;
+        private System.Windows.Forms.TabControl tabControl1;
+        private System.Windows.Forms.Label label5;
+        private System.Windows.Forms.TextBox TbxCountIzd;
+        private System.Windows.Forms.TextBox TbxCountFur;
+        private System.Windows.Forms.TextBox TbxCountFurSklad;
+        private System.Windows.Forms.TextBox TbxNameFur;
+        private System.Windows.Forms.TextBox TbxDescription;
+        private System.Windows.Forms.TextBox TbxLength;
+        private System.Windows.Forms.TextBox TbxWith;
+        private System.Windows.Forms.TextBox TbxColor;
+        private System.Windows.Forms.TextBox TbxTitle;
+        private System.Windows.Forms.Button BtnCancel;
+        private System.Windows.Forms.Button BtnOK;
+        private System.Windows.Forms.TextBox TbxID;
+        private System.Windows.Forms.TextBox TbxIdTkan;
+    }
+}

+ 498 - 0
Швейная фабрика/FormAddZak.cs

@@ -0,0 +1,498 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Data.SqlClient;
+using System.Drawing;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows.Forms;
+
+namespace Швейная_фабрика
+{
+    public partial class FormAddZak : Form
+    {
+        public FormAddZak()
+        {
+            InitializeComponent();
+        }
+        public string IdZakazchik = FormMain.IDUser;  // код авторизовавшегося заказчика
+        string IdTkan = "", IdFur = "", IdIzd = "";  // код выбранной ткани и фурнитуры
+
+        string TxtCon = @"Data Source=213.155.192.79,3002;Initial Catalog=СlothesFactoryLG;Persist Security Info=True;User ID=u21lebed;Password=hgm8";
+        class ItemTkani : Panel
+        {
+            public System.Windows.Forms.Label LblComment;
+            public System.Windows.Forms.Label LblLength;
+            public System.Windows.Forms.Label LblWith;
+            public System.Windows.Forms.Label LblColor;
+            public System.Windows.Forms.Label LblTitle;
+            public System.Windows.Forms.Label lblID;
+            public System.Windows.Forms.PictureBox PbxPhoto;
+
+            public ItemTkani()
+            {
+                this.LblTitle = new System.Windows.Forms.Label();
+                this.LblColor = new System.Windows.Forms.Label();
+                this.LblWith = new System.Windows.Forms.Label();
+                this.LblLength = new System.Windows.Forms.Label();
+                this.LblComment = new System.Windows.Forms.Label();
+                this.lblID = new System.Windows.Forms.Label();
+                this.PbxPhoto = new System.Windows.Forms.PictureBox();
+                // 
+                // panel1
+                // 
+                this.BackColor = System.Drawing.Color.White;
+                this.Controls.Add(this.LblComment);
+                this.Controls.Add(this.LblLength);
+                this.Controls.Add(this.LblWith);
+                this.Controls.Add(this.LblColor);
+                this.Controls.Add(this.LblTitle);
+                this.Controls.Add(this.PbxPhoto);
+                this.Location = new System.Drawing.Point(13, 13);
+                this.Name = "panel1";
+                this.Size = new System.Drawing.Size(390, 161);
+                this.TabIndex = 0;
+                // 
+                // LblTitle
+                // 
+                this.LblTitle.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
+                | System.Windows.Forms.AnchorStyles.Right)));
+                this.LblTitle.Location = new System.Drawing.Point(225, 13);
+                this.LblTitle.Name = "LblTitle";
+                this.LblTitle.Size = new System.Drawing.Size(147, 23);
+                this.LblTitle.TabIndex = 1;
+                this.LblTitle.Text = "label1";
+                // 
+                // LblColor
+                // 
+                this.LblColor.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
+                | System.Windows.Forms.AnchorStyles.Right)));
+                this.LblColor.Location = new System.Drawing.Point(225, 41);
+                this.LblColor.Name = "LblColor";
+                this.LblColor.Size = new System.Drawing.Size(147, 23);
+                this.LblColor.TabIndex = 2;
+                this.LblColor.Text = "label2";
+                // 
+                // LblWith
+                // 
+                this.LblWith.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
+                | System.Windows.Forms.AnchorStyles.Right)));
+                this.LblWith.Location = new System.Drawing.Point(225, 73);
+                this.LblWith.Name = "LblWith";
+                this.LblWith.Size = new System.Drawing.Size(147, 23);
+                this.LblWith.TabIndex = 3;
+                this.LblWith.Text = "label3";
+                // 
+                // LblLength
+                // 
+                this.LblLength.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
+                | System.Windows.Forms.AnchorStyles.Right)));
+                this.LblLength.Location = new System.Drawing.Point(225, 100);
+                this.LblLength.Name = "LblLength";
+                this.LblLength.Size = new System.Drawing.Size(147, 23);
+                this.LblLength.TabIndex = 4;
+                this.LblLength.Text = "label4";
+                // 
+                // LblComment
+                // 
+                this.LblComment.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
+                | System.Windows.Forms.AnchorStyles.Right)));
+                this.LblComment.Location = new System.Drawing.Point(225, 126);
+                this.LblComment.Name = "LblComment";
+                this.LblComment.Size = new System.Drawing.Size(147, 29);
+                this.LblComment.TabIndex = 5;
+                this.LblComment.Text = "label5";
+                // 
+                // lblID
+                // 
+                this.lblID.AutoSize = true;
+                this.lblID.Location = new System.Drawing.Point(321, 13);
+                this.lblID.Name = "lblID";
+                this.lblID.Size = new System.Drawing.Size(34, 16);
+                this.lblID.TabIndex = 6;
+                this.lblID.Text = "lblID";
+                // 
+                // pictureBox1
+                // 
+                this.PbxPhoto.Location = new System.Drawing.Point(16, 13);
+                this.PbxPhoto.Name = "pictureBox1";
+                this.PbxPhoto.Size = new System.Drawing.Size(175, 129);
+                this.PbxPhoto.TabIndex = 0;
+                this.PbxPhoto.TabStop = false;
+                this.PbxPhoto.SizeMode = PictureBoxSizeMode.Zoom;
+            }
+        }
+        class ItemFurnitura : Panel
+        {
+            public System.Windows.Forms.Label label2;
+            public System.Windows.Forms.Label label1;
+            public System.Windows.Forms.Label lblID;
+            public System.Windows.Forms.PictureBox PbxImage;
+            public ItemFurnitura()
+            {
+                this.label1 = new System.Windows.Forms.Label();
+                this.label2 = new System.Windows.Forms.Label();
+                this.lblID = new System.Windows.Forms.Label();
+                this.PbxImage = new System.Windows.Forms.PictureBox();
+                // 
+                // panel1
+                // 
+                this.BackColor = System.Drawing.Color.White;
+                this.Controls.Add(this.label2);
+                this.Controls.Add(this.label1);
+                this.Controls.Add(this.PbxImage);
+                this.Location = new System.Drawing.Point(13, 13);
+                this.Name = "panel1";
+                this.Size = new System.Drawing.Size(265, 225);
+                this.TabIndex = 0;
+                // 
+                // label1
+                // 
+                this.label1.Location = new System.Drawing.Point(34, 163);
+                this.label1.Name = "label1";
+                this.label1.Size = new System.Drawing.Size(190, 23);
+                this.label1.TabIndex = 1;
+                this.label1.Text = "label1";
+                // 
+                // label2
+                // 
+                this.label2.Location = new System.Drawing.Point(34, 190);
+                this.label2.Name = "label2";
+                this.label2.Size = new System.Drawing.Size(190, 23);
+                this.label2.TabIndex = 2;
+                this.label2.Text = "label2";
+                // 
+                // lblID
+                // 
+                this.lblID.AutoSize = true;
+                this.lblID.Location = new System.Drawing.Point(191, 190);
+                this.lblID.Name = "lblID";
+                this.lblID.Size = new System.Drawing.Size(44, 16);
+                this.lblID.TabIndex = 3;
+                this.lblID.Text = "label3";
+                // 
+                // PbxImage
+                // 
+                this.PbxImage.Location = new System.Drawing.Point(37, 18);
+                this.PbxImage.Name = "PbxImage";
+                this.PbxImage.Size = new System.Drawing.Size(187, 133);
+                this.PbxImage.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
+                this.PbxImage.TabIndex = 0;
+                this.PbxImage.TabStop = false;
+            }
+        }
+
+        struct Tkani
+        {
+            public string Title, Color, With, Length, Comment, Photo, ID;
+        }
+        struct Furnitura
+        {
+            public string Title, CountFur, Image, ID;
+        }
+        List<Tkani> LstTkani = new List<Tkani>();
+        ItemTkani CurrentTkan;
+        List<Furnitura> LstFurnitura = new List<Furnitura>();
+        ItemFurnitura CurrentFurnitura;
+
+        void GetDateFromDBForTkani()
+        {
+            SqlConnection Con = new SqlConnection(TxtCon);
+            Con.Open();
+            string TxtQuery =
+@"select  Tkan.id_Tkan, Tkan.Title as TitleTkan, Color.Title as TitleColor, Length, Width, Comment, NamePhoto
+from Tkan join Color on Tkan.id_color = Color.id_colors";
+            SqlCommand Query = new SqlCommand(TxtQuery, Con);
+            SqlDataReader Res = Query.ExecuteReader();
+
+            LstTkani.Clear();
+            while (Res.Read())
+            {
+                Tkani tkan = new Tkani();
+                tkan.Title = Res["TitleTkan"].ToString();  
+                tkan.Color = Res["TitleColor"].ToString();  
+                tkan.With = Res["Width"].ToString();  
+                tkan.Length = Res["Length"].ToString();  
+                tkan.Comment = Res["Comment"].ToString();
+                tkan.ID = Res["id_Tkan"].ToString();
+                tkan.Photo = Res["NamePhoto"].ToString();
+                LstTkani.Add(tkan);
+            }
+            Con.Close();
+        }
+        void GetDateFromDBForFurnitura()
+        {
+            SqlConnection Con = new SqlConnection(TxtCon);
+            Con.Open();
+
+            SqlCommand Query = new SqlCommand("select * from Furnitura ", Con);
+            SqlDataReader Res = Query.ExecuteReader();
+
+            LstFurnitura.Clear();
+            while (Res.Read())
+            {
+                Furnitura fur = new Furnitura();
+                fur.Title = Res["namefur"].ToString();
+                fur.CountFur = Res["countfur"].ToString();
+                fur.Image = Res["photo"].ToString();
+                fur.ID = Res["id_fur"].ToString();
+                LstFurnitura.Add(fur);
+            }
+            Con.Close();
+        }
+        void FillPanelForFurnitura()
+        {
+            //очистить панель от старых данных
+            TlpFurnitura.Controls.Clear();
+            //перебор записей о товарах
+            for (int i = 0; i <= LstFurnitura.Count - 1; i++)
+            {
+                ItemFurnitura Item = new ItemFurnitura();
+                Item.label1.Text = "Название: "+LstFurnitura[i].Title;
+                Item.label2.Text = "Кол-во на складе: "+LstFurnitura[i].CountFur;
+                Item.lblID.Text = LstFurnitura[i].ID;
+                try
+                {
+                    Item.PbxImage.Image = Image.FromFile(Application.StartupPath + "\\furnitur\\" + LstFurnitura[i].Image);
+                }
+                catch
+                {
+                    Item.PbxImage.Image = Image.FromFile(Application.StartupPath + "\\furnitur\\picture.png");
+                }
+                Item.Click += Item_Click;
+                Item.label1.Click += Label1_Click;
+                Item.label2.Click += Label1_Click;
+                Item.PbxImage.Click += Label1_Click;
+
+                if (i == 0)
+                {
+                    CurrentFurnitura = Item;
+                    CurrentFurnitura.BackColor = Color.LightGreen;
+                    IdFur = CurrentFurnitura.lblID.Text;
+                    TbxNameFur.Text = CurrentFurnitura.label1.Text.Substring(CurrentFurnitura.label1.Text.LastIndexOf(": ") + 2);
+                    TbxCountFurSklad.Text = CurrentFurnitura.label2.Text.Substring(CurrentFurnitura.label2.Text.LastIndexOf(": ")+2);
+                }
+                //добавить плитку в контейнер
+                TlpFurnitura.Controls.Add(Item);
+            }
+        }
+
+        private void Label1_Click(object sender, EventArgs e)
+        {
+            CurrentFurnitura.BackColor = Color.White;
+            CurrentFurnitura = (sender as Control).Parent as ItemFurnitura;
+            IdFur = CurrentFurnitura.lblID.Text;
+            TbxNameFur.Text = CurrentFurnitura.label1.Text.Substring(CurrentFurnitura.label1.Text.LastIndexOf(": ") + 2);
+            TbxCountFurSklad.Text = CurrentFurnitura.label2.Text.Substring(CurrentFurnitura.label2.Text.LastIndexOf(": ") + 2);
+            CurrentFurnitura.BackColor = Color.LightGreen;
+        }
+
+        private void Item_Click(object sender, EventArgs e)
+        {
+            CurrentFurnitura.BackColor = Color.White;
+            CurrentFurnitura = sender as ItemFurnitura;
+            IdFur = CurrentFurnitura.lblID.Text;
+            TbxNameFur.Text = CurrentFurnitura.label1.Text.Substring(CurrentFurnitura.label1.Text.LastIndexOf(": ") + 2);
+            TbxCountFurSklad.Text = CurrentFurnitura.label2.Text.Substring(CurrentFurnitura.label2.Text.LastIndexOf(": ") + 2);
+            CurrentFurnitura.BackColor = Color.LightGreen;
+        }
+
+        void FillPanelForTkani()
+        {
+            //очистить панель от старых данных
+            TlpTkani.Controls.Clear();
+            //перебор записей о товарах
+            for (int i = 0; i <= LstTkani.Count - 1; i++)
+            {
+                ItemTkani Item = new ItemTkani();
+                Item.LblTitle.Text = "Название: " + LstTkani[i].Title;
+                Item.LblColor.Text = "Цвет: "+LstTkani[i].Color;
+                Item.LblWith.Text = "Ширина: "+LstTkani[i].With;
+                Item.LblLength.Text = "Длинна: "+LstTkani[i].Length;
+                Item.LblComment.Text = "Описание: "+LstTkani[i].Comment;
+                Item.lblID.Text = LstTkani[i].ID;
+                try
+                {
+                    Item.PbxPhoto.Image = Image.FromFile(Application.StartupPath + "\\tkani\\" + LstTkani[i].Photo);
+                }
+                catch
+                {
+                    Item.PbxPhoto.Image = Image.FromFile(Application.StartupPath + "\\tkani\\picture.png");
+                }
+                Item.Click += Item_Click1;
+                Item.lblID.Click += LblID_Click;
+                Item.LblColor.Click += LblID_Click;
+                Item.LblComment.Click += LblID_Click;
+                Item.LblLength.Click += LblID_Click;
+                Item.LblTitle.Click += LblID_Click;
+                Item.LblWith.Click += LblID_Click;
+                Item.PbxPhoto.Click += LblID_Click;
+                if (i == 0)
+                {
+                    CurrentTkan = Item;
+                    CurrentTkan.BackColor = Color.LightBlue;
+                    IdTkan = CurrentTkan.lblID.Text;
+                    TbxTitle.Text = CurrentTkan.LblTitle.Text.Substring(CurrentTkan.LblTitle.Text.LastIndexOf(": ") + 2);
+                    TbxColor.Text = CurrentTkan.LblColor.Text.Substring(CurrentTkan.LblColor.Text.LastIndexOf(": ") + 2);
+                    TbxWith.Text = CurrentTkan.LblWith.Text.Substring(CurrentTkan.LblWith.Text.LastIndexOf(": ") + 2);
+                    TbxLength.Text = CurrentTkan.LblLength.Text.Substring(CurrentTkan.LblLength.Text.LastIndexOf(": ") + 2);
+                    TbxDescription.Text = CurrentTkan.LblComment.Text.Substring(CurrentTkan.LblComment.Text.LastIndexOf(": ") + 2);
+                }
+                //добавить плитку в контейнер
+                TlpTkani.Controls.Add(Item);
+            }
+        }
+
+        private void LblID_Click(object sender, EventArgs e)
+        {
+            CurrentTkan.BackColor = Color.White;
+            CurrentTkan = (sender as Control).Parent as ItemTkani;
+            IdTkan = CurrentTkan.lblID.Text;
+            TbxTitle.Text = CurrentTkan.LblTitle.Text.Substring(CurrentTkan.LblTitle.Text.LastIndexOf(": ") + 2);
+            TbxColor.Text = CurrentTkan.LblColor.Text.Substring(CurrentTkan.LblColor.Text.LastIndexOf(": ") + 2);
+            TbxWith.Text = CurrentTkan.LblWith.Text.Substring(CurrentTkan.LblWith.Text.LastIndexOf(": ") + 2);
+            TbxLength.Text = CurrentTkan.LblLength.Text.Substring(CurrentTkan.LblLength.Text.LastIndexOf(": ") + 2);
+            TbxDescription.Text = CurrentTkan.LblComment.Text.Substring(CurrentTkan.LblComment.Text.LastIndexOf(": ") + 2);
+            CurrentTkan.BackColor = Color.LightBlue;
+        }
+
+        private void Item_Click1(object sender, EventArgs e)
+        {
+            CurrentTkan.BackColor = Color.White;
+            CurrentTkan = sender as ItemTkani;
+            IdTkan = CurrentTkan.lblID.Text;
+            TbxTitle.Text = CurrentTkan.LblTitle.Text.Substring(CurrentTkan.LblTitle.Text.LastIndexOf(": ") + 2);
+            TbxColor.Text = CurrentTkan.LblColor.Text.Substring(CurrentTkan.LblColor.Text.LastIndexOf(": ") + 2);
+            TbxWith.Text = CurrentTkan.LblWith.Text.Substring(CurrentTkan.LblWith.Text.LastIndexOf(": ") + 2);
+            TbxLength.Text = CurrentTkan.LblLength.Text.Substring(CurrentTkan.LblLength.Text.LastIndexOf(": ") + 2);
+            TbxDescription.Text = CurrentTkan.LblComment.Text.Substring(CurrentTkan.LblComment.Text.LastIndexOf(": ") + 2);
+            CurrentTkan.BackColor = Color.LightBlue;
+        }
+
+        /// <summary>
+        /// Определение длины ткани, которую нужно отрезать от рулона
+        /// для изготовления нужного кол-ва изделий заданного размера
+        /// </summary>
+        /// <param name="WidthTkan">ширина рулона ткани</param>
+        /// <param name="WidthIzd">ширина изделия</param>
+        /// <param name="LengthIzd">длина изделия</param>
+        /// <param name="CountIzd">кол-во изделий</param>
+        /// <returns>длина ткани, которую нужно отрезать от рулона</returns>
+        int CutTkan(int WidthTkan, int WidthIzd, int LengthIzd, int CountIzd)
+        {
+            // ЕСЛИ УКЛАДЫВАТЬ ИЗДЕЛИЯ НА ТКАНЬ В РУЛОНЕ ПО ШИРИНЕ ИЗДЕЛИЯ
+            // кол-во изделий, умещающихся в один ряд на рулоне ткани
+            int IzdInRow1 = WidthTkan / WidthIzd;
+            // кол-во рядов, в каждом из которых IzdInRow1 изделий
+            int Row1 = CountIzd / IzdInRow1;
+            // если кол-во изделий в 1 ряду умноженное на кол-во рядов меньше
+            // кол-ва всех изделий, добавить кол-во рядов
+            if (IzdInRow1 * Row1 < CountIzd)
+                Row1++;
+            // длина ткани, которую нужно отрезать от рулона, если укладывать изделия
+            // по ширине
+            int CutTkan1 = LengthIzd * Row1;
+
+            // ЕСЛИ УКЛАДЫВАТЬ ИЗДЕЛИЯ НА ТКАНЬ В РУЛОНЕ ПО ДЛИНЕ ИЗДЕЛИЯ
+            // кол-во изделий, умещающихся в один ряд на рулоне ткани
+            int IzdInRow2 = WidthTkan / LengthIzd;
+            // кол-во рядов, в каждом из которых IzdInRow2 изделий
+            int Row2 = CountIzd / IzdInRow2;
+            // если перемножить кол-во изделий в 1 ряду на кол-во рядов и полученное
+            // значение меньше кол-ва необходимых изделий, значит нужно использовать
+            // еще один ряд
+            if (IzdInRow2 * Row2 < CountIzd)
+                Row2++;
+            // длина ткани, которую нужно отрезать от рулона, если укладывать изделия
+            // по длине
+            int CutTkan2 = WidthIzd * Row2;
+
+            // вернуть наименьшую длину
+            return Math.Min(CutTkan1, CutTkan2);
+        }
+
+        private void BtnOK_Click(object sender, EventArgs e)
+        {
+            // int a = CutTkan(430, 150, 200, 4);
+            //this.Text = a.ToString();
+            //return;
+
+            // кол-во фурнитур, которое нужно сохранить в БД
+            int NewCountFur = int.Parse(TbxCountFurSklad.Text) -
+                int.Parse(TbxCountFur.Text) * int.Parse(TbxCountIzd.Text);
+            SqlConnection con = new SqlConnection(TxtCon);
+            con.Open();
+            string t1 = string.Format(@"update Furnitura set countfur = {0} where id_fur = {1}", NewCountFur, IdFur);
+            SqlCommand query = new SqlCommand(t1, con);
+            // выполнить запрос
+            query.ExecuteNonQuery();
+            con.Close();
+
+            int WidthTkan = int.Parse(TbxWith.Text); // ширина ткани
+            // ширина изделия
+            int WidthIzd = int.Parse(DgvIzd.CurrentRow.Cells[3].Value.ToString());
+            // длина изделия
+            int LengthIzd = int.Parse(DgvIzd.CurrentRow.Cells[2].Value.ToString());
+            int CountIzd = int.Parse(TbxCountIzd.Text); // кол-во изделий
+            // отрезать от рулона ткани кусок нужной длины
+            int NewLengthTkan = int.Parse(TbxLength.Text) -
+                CutTkan(WidthTkan, WidthIzd, LengthIzd, CountIzd);
+
+            // обновить таблицу Ткани (для выделенной ткани сохранить новую длину NewLengthTkan)
+            con.Open();
+            string t2 = string.Format(@"update Tkan set Length = {0} where id_Tkan = {1}", NewLengthTkan, IdTkan);
+            SqlCommand query1 = new SqlCommand(t2, con);
+            // выполнить запрос
+            query1.ExecuteNonQuery();
+            con.Close();
+
+            // код менеджера для обработки нового заказа нужно заменить на код наименее загруженного менеджера
+            int IdManager = 2;
+
+            //try
+            //{
+                con.Open();
+                // SQL-запрос для добавления нового заказа
+                string t = String.Format(@"insert into Orders (id_izd, id_zak, id_men, id_tkan, id_fur, countfur, countizd) values ({0}, {1}, {2}, {3}, {4}, {5}, {6})",
+                    IdIzd, IdZakazchik, IdManager, IdTkan, IdFur, TbxCountFur.Text, TbxCountIzd.Text);
+                SqlCommand query2 = new SqlCommand(t, con);
+                // выполнить запрос
+                query2.ExecuteNonQuery();
+                con.Close();
+                MessageBox.Show("Заказ сформирован.", "Внимание!",
+                    MessageBoxButtons.OK, MessageBoxIcon.Information);
+                this.Close();  // закрыть форму
+            //}
+            //catch
+            //{
+            //    MessageBox.Show("Ошибка добавления нового заказа.", "Внимание!",
+            //        MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
+            //}
+
+        }
+
+        private void DgvIzd_CellClick(object sender, DataGridViewCellEventArgs e)
+        {
+            IdIzd = DgvIzd.CurrentRow.Cells[0].Value.ToString();
+        }
+
+        private void FormZakazchik_Load(object sender, EventArgs e)
+        {
+            // TODO: данная строка кода позволяет загрузить данные в таблицу "сlothesFactoryLGDataSet.Izdelie". При необходимости она может быть перемещена или удалена.
+            this.izdelieTableAdapter.Fill(this.сlothesFactoryLGDataSet.Izdelie);
+            // TODO: данная строка кода позволяет загрузить данные в таблицу "сlothesFactoryLGDataSet.Users". При необходимости она может быть перемещена или удалена.
+            this.usersTableAdapter.Fill(this.сlothesFactoryLGDataSet.Users);
+            IdIzd = DgvIzd.CurrentRow.Cells[0].Value.ToString();
+            GetDateFromDBForTkani();
+            FillPanelForTkani();
+
+            GetDateFromDBForFurnitura();
+            FillPanelForFurnitura();
+        }
+
+        
+
+    }
+}

+ 239 - 0
Швейная фабрика/FormAddZak.resx

@@ -0,0 +1,239 @@
+<?xml version="1.0" encoding="utf-8"?>
+<root>
+  <!-- 
+    Microsoft ResX Schema 
+    
+    Version 2.0
+    
+    The primary goals of this format is to allow a simple XML format 
+    that is mostly human readable. The generation and parsing of the 
+    various data types are done through the TypeConverter classes 
+    associated with the data types.
+    
+    Example:
+    
+    ... ado.net/XML headers & schema ...
+    <resheader name="resmimetype">text/microsoft-resx</resheader>
+    <resheader name="version">2.0</resheader>
+    <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
+    <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
+    <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
+    <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
+    <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
+        <value>[base64 mime encoded serialized .NET Framework object]</value>
+    </data>
+    <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+        <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
+        <comment>This is a comment</comment>
+    </data>
+                
+    There are any number of "resheader" rows that contain simple 
+    name/value pairs.
+    
+    Each data row contains a name, and value. The row also contains a 
+    type or mimetype. Type corresponds to a .NET class that support 
+    text/value conversion through the TypeConverter architecture. 
+    Classes that don't support this are serialized and stored with the 
+    mimetype set.
+    
+    The mimetype is used for serialized objects, and tells the 
+    ResXResourceReader how to depersist the object. This is currently not 
+    extensible. For a given mimetype the value must be set accordingly:
+    
+    Note - application/x-microsoft.net.object.binary.base64 is the format 
+    that the ResXResourceWriter will generate, however the reader can 
+    read any of the formats listed below.
+    
+    mimetype: application/x-microsoft.net.object.binary.base64
+    value   : The object must be serialized with 
+            : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
+            : and then encoded with base64 encoding.
+    
+    mimetype: application/x-microsoft.net.object.soap.base64
+    value   : The object must be serialized with 
+            : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
+            : and then encoded with base64 encoding.
+
+    mimetype: application/x-microsoft.net.object.bytearray.base64
+    value   : The object must be serialized into a byte array 
+            : using a System.ComponentModel.TypeConverter
+            : and then encoded with base64 encoding.
+    -->
+  <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
+    <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
+    <xsd:element name="root" msdata:IsDataSet="true">
+      <xsd:complexType>
+        <xsd:choice maxOccurs="unbounded">
+          <xsd:element name="metadata">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" />
+              </xsd:sequence>
+              <xsd:attribute name="name" use="required" type="xsd:string" />
+              <xsd:attribute name="type" type="xsd:string" />
+              <xsd:attribute name="mimetype" type="xsd:string" />
+              <xsd:attribute ref="xml:space" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="assembly">
+            <xsd:complexType>
+              <xsd:attribute name="alias" type="xsd:string" />
+              <xsd:attribute name="name" type="xsd:string" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="data">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+                <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
+              </xsd:sequence>
+              <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
+              <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
+              <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
+              <xsd:attribute ref="xml:space" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="resheader">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+              </xsd:sequence>
+              <xsd:attribute name="name" type="xsd:string" use="required" />
+            </xsd:complexType>
+          </xsd:element>
+        </xsd:choice>
+      </xsd:complexType>
+    </xsd:element>
+  </xsd:schema>
+  <resheader name="resmimetype">
+    <value>text/microsoft-resx</value>
+  </resheader>
+  <resheader name="version">
+    <value>2.0</value>
+  </resheader>
+  <resheader name="reader">
+    <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+  </resheader>
+  <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>
+  <metadata name="lengthLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>False</value>
+  </metadata>
+  <metadata name="widthLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>False</value>
+  </metadata>
+  <metadata name="colorLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>False</value>
+  </metadata>
+  <metadata name="nametkanLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>False</value>
+  </metadata>
+  <metadata name="label2.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>False</value>
+  </metadata>
+  <metadata name="label3.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>False</value>
+  </metadata>
+  <metadata name="label4.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>False</value>
+  </metadata>
+  <metadata name="BsUsers.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+    <value>243, 17</value>
+  </metadata>
+  <metadata name="сlothesFactoryLGDataSet.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+    <value>17, 17</value>
+  </metadata>
+  <metadata name="usersTableAdapter.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+    <value>346, 19</value>
+  </metadata>
+  <metadata name="colorTableAdapter1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+    <value>529, 19</value>
+  </metadata>
+  <metadata name="izdelieBindingSource.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+    <value>720, 19</value>
+  </metadata>
+  <metadata name="izdelieTableAdapter.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+    <value>919, 19</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">
+    <value>
+        AAABAAEAICAAAAEAIACoEAAAFgAAACgAAAAgAAAAQAAAAAEAIAAAAAAAABAAAMMOAADDDgAAAAAAAAAA
+        AAD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
+        /wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
+        /wD///8A////AAAAAAB6ZasA////////////////////////////////////////////////////////
+        /////////////f////r////4////+P////b////2////9v////j////6/////f//////////////////
+        ///////////////////t+P4xAAAAAH1ts//p////uMj//6q2/f+cqfH/kZvm/4eN3P99hNL/dXrK/3By
+        wv9qbL3/Zma5/2Rjtf9iYbH/YF2t/15dq/9eW6f/XFml/1xXof9aVZ3/WlOa/1hRlv9WTZL/VEmM/1JF
+        hv9QP4D/Tjx4/z8nZ/9MM2j/6vP+//////8hAAD//B8A//9RAP//MAD//gYA/+wAAP//CAD/6wAA/8kA
+        AP/qAAD/4gAA/9wAAP/YAAD/1gAA/9QAAP/SAAD/0gAA/9AAAP/QAAD/zgAA/8wAAP/MAAD/ygAA/8gA
+        AP/EAAD/wgAA/8AAAP+9AAD/3gAA/zsAAP9UNmb//////y4AAP/9QgD//2QA//8uAP//bgD//3IA/84A
+        AP//KQD//2AA/80AAP/QAAD/zwAA/8sAAP/JAAD/xwAA/8UAAP/FAAD/wwAA/8MAAP/BAAD/wQAA/78A
+        AP+9AAD/uQAA/7cAAP+0AAD/sAAA/64AAP/KAAD/NgAA/1IzWP//////MgAD//LCW////3P/9MNY////
+        U////0n/wo45//7ANP//+jD/w4gi/8aLH//Fhhn/wYIV/79+Ef+9fA3/vXoJ/7t6Bv+7eAL/uXYA/7d0
+        AP+3cAD/tWwA/7NoAP+wZAD/rF8A/6hXAP+kTwD/oEcA/6hdAP8uAAD/XTpW//////9rDxv///+I////
+        qP///4X///97////cf///2r///9g////WP///1P///9N////R////0P///8/////PP///zj///80////
+        MP///yr///8m////IP///xr///8V////Df///wX///8A////AP///wD///8A//+IAP9nRXP/////QgAA
+        AErQjzT///+U////ff///23///9p////U////wX///9B////Sv///z7///84////Nf///zH///8r////
+        J////yP///80////AP///AD///8A///8AP//9wD///EA///mAP//9gD//70A//+kAP///wD/AAAA/0g6
+        agD///8AAAAAAAAAAAA9AADiPQAA8igAAOMTAADOJwAAqI1qbf8AAAC7AAAAsAAAAKkAAAChAAAAmwAA
+        AJUAAACNAAAAhwAAAH8AAACeEQAd/z0AgP8tAHL/LABq/ygAZP8kAFz/IwBa/wAAGf89AAD/TxoA/wAA
+        AKgAAAAASjxqAP///wAAAAAAAAAAAEMAAABAAAAALAAAABkAAAAAAAAA////AAAAAAAAAAAAAwAAAAAA
+        AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAP//h1f//18n//9bI///Vx3//1MV//9cH///AAD//4J5
+        pf////9OAAAAAAAAAABMPmoA////AAAAAAAAAAAARwAAAEQAAAAyAAAAfo+lAEIbPfT////c////AP//
+        /wAJAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACcA1P+QX///bTX//2kv//9lKf//YCH//2Ym
+        //8HAP//b1Fg/////4f///8AAAAAAE5AaAD///8AAAAAAAAAAABLAAAAVwAAAE0AAACBlKMAVjJH////
+        ////////////AP///wD///8AAwAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAKgDG/55u//+JVv//gkz//35E
+        //97Q///eDz//wgA//92W2P/////h////wD///8A////AP///wB6AAAAcAAAAGcAAABbAAAAUQAAAFNr
+        hf9RJBb/UjhZ//////////9t////AP///wD///8ABQAAAAAAAAAAAAAAAAAAAAAAAAA6AOz/gk7//y4A
+        zv82AOb/MgDe/yQAvP9BAP//EwD//3hdY/////99////AP///wD///8A////AAkJFQAAAAwAAAACAAAA
+        AAAXAAD//+4A////AP+jLQD/p6dt//////////8A////AP///wD///8AAAAAAAAAAAAAAAAAAAAAAEcE
+        /f91Pv//AwA3/xEAYf8LAF7/AAAt/yMAtv8YAP//g2ln/////4L///8A////AP///wD///8ACwsRAAEB
+        CgAAAAAAAAAAXVwSjP+8grT/rHOk/4xDhf8OADz//////////9f///8A////AP///wD///8AAAAAAAAA
+        AAAAAAAAQADf/45V//9AAOX/RQD3/z8A9P8wANT/SwL//x0A//9XPVv///////////////8A////AP3/
+        /wBdB00AVQBEAEsAOgBBADD/38H//66G//+edP//sYv//0cA//+UgIz/////d////wD///8A////AP//
+        /wD///8AAAAAAAAAAABQEfP/hE7//x4Aev8pAJf/IwCU/xIAaf82AOD/NwD//xYAAP+BSgD/////////
+        /wD///8A////AFAVVABIC0sAPgFBADYAN//Pqf//0Kj//8ie///Dmv//TgL//8TCvP/////d////AP//
+        /wD///8A////AP///wD///8AAAAAABcAhP+jbv//Zyf//14Z//9ZD///Uwb//2gi//8IAP//4XMA/8ZF
+        AP+Jiqj/////AP///wD///8ATw9JAEcHQAA/ADYANQAs/+fE//+KWf//UACq/4lX//+BO///inZi////
+        /////////////f////v////0////7v///+f//5f4GACx/4tQ//84AKj/OgCu/zcArP8kAIH/SAD//xIA
+        ///NZQD/7H4A/5ORpP////8A////AP///wBlJoEAXh54AFYUbgBOCmT/iFz//9yZAP///wD/rmcN/4dU
+        //9zNv//Z0Vr/2xl3/9iVtv/YEC3/1sznP9XKYb/Zzxs/1Qehv+NTf//NAC0////GP///8T///+e////
+        f/9gJDD/AAD//85mAP/ldgD/lpWo/////wD///8A////AGowkwBiKYsAWx+CAFMXeP9pN////8wA////
+        Af/VigD/XC3//8Ca//+LQ///tDna/7VC4P+0ZP//tnv//7eM//+HTf//gj3//6pv//8lAHD///+L////
+        /////////////4FRRf8AAP//zmQA/+V0AP+Ukaj/////Cv///wD///8AWBtUAFITSwBKC0MAQgE5/+XC
+        //+IU///i0QP/39F///HoP//nX7//9iN////sAD//8oA////FP///9T///////////9pH///nWb//18c
+        //9fKS7/ek5t/3JAYv9fJSv/PQCm/wQA///JYgD/94gA/6Gkt/////8A////AP///wBRDkoASwZDAEUA
+        OwA9ADH/vYj//7SA//99RP//p27//5Vc//+MUf//iEz//4JI//9+Qv//fT7//3k4//91Mf//cSv//20p
+        //9nIP//cCr//zsA//8hAP//HQD//xIA//9DAP//AAD//8dSAP+OAAD/QC9W1////wD///8A////AFoZ
+        KABVEyAATwsYAEcDEf/Pr///waH9/7iW+P+yjur/qYXh/6eD2v+getr/k3Tr/49t5/+LYdn/h1rK/4NS
+        vf+BVbf/hViv/31Nqf96RqT/cjyi/2ozmP9iJ4//WRyF/1gXe/8RADf/IgAA/zQAAP8/K1YA////AP//
+        /wD///8AsXh9AKtydgClam4An2Vm////////////////////////////////////////////////////
+        //////////////////////////////////////////////////////////////////+TiZL/////Gv//
+        /wD///8A////AP///wAkCQAAHgMAABkAAAATAAD/////////////////////////////////////////
+        //////////////////////////////////////////////////////////////3u/P//////kGF7/wsA
+        AHT///8A////AP///wD///8A////ACgLAAAiBwAAHAEAABkAAAAzAABoIgAAx/bijv///9j/iGxF/2Q2
+        HWsAAABVEAAATgwAAEYIAABABAAAPAAAADgAAAA2AAAANAAAADQAAABRahYA//TgAP9cBwD/oKCb/wAA
+        AIUAAAAVCwAAAP///wD///8A////AP///wD///8ALA8EACYLAAAiBQAAHAEAADkAAAAnAAAAPy0N5aVz
+        S/9BBQAAaT0pAAAAAAAYAAAAFAAAABAAAAAMAAAABgAAAAAAAAAAAAAAAAAAAAAAAADmjQD///8s/9F7
+        AP//////AAAAAAAAAAALAAAA////AP///wD///8A////AP///wAwEwwALA8GACYLAAAiBQAAPQAAAC0A
+        AABHMhYAq3tWAEkNBwBxRzUABgAAACAAAAAcAAAAGAAAABQAAAAOAAAABgAAAAAAAAAAAAAAAAAAAN6K
+        AP///zT/x3IA/+X///////8A////AP///wD///8A////AP///wD///8A////ADQXEgAwEw4ALA8IACYL
+        BABDAAAAMwAAAE06IgCzg2AAURUSAHlPQQAOAAAAJwAAACQAAAAgAAAAGgAAABQAAAAOAAAAAAAAAAAA
+        AAAAAAAA04EA////Kv+6ZwD//////////wD///8A////AP///wD///8A////AP///wD///8AOBsYADQX
+        FAAwExAALBEMAEkAAAA5AAAAU0IsALmLbABXHR4Af1lMABYAAAAvAAAAKwAAACcAAAAiAAAAHAAAAAAA
+        AAAAAAAAAAAAAAAAAAACAAD/FwAA/y0AAP////8A////AP///wD///8A////AP///wD///8A////AP//
+        /wA6HR4AOBsaADQZGAAwFRQATQAAAD0AAABYSDUAv5N1AFwlKACHYVgAHAAAADcAAAAzAAAALQAAACkA
+        AAAiAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD/AAAAAAAAAAD///8A////AP///wD///8A////AP//
+        /wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
+        /wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
+        /wD///8A////AP///wD///8A/////8AAAACAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAPAAAAH///AD/z/
+        wA/8f8AP+D/AD/A/wA/gH8AH4B/AB+AfwAfgAAAH4AAAB+AAAAPgAAAH4AAAB+AAAA/gAAAP4AAAH/AA
+        AD/8//D////w////8P////H////7//////8=
+</value>
+  </data>
+</root>

+ 36 - 23
Швейная фабрика/FormMain.Designer.cs

@@ -31,8 +31,9 @@
             this.components = new System.ComponentModel.Container();
             System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormMain));
             this.panel1 = new System.Windows.Forms.Panel();
-            this.label6 = new System.Windows.Forms.Label();
             this.label1 = new System.Windows.Forms.Label();
+            this.pictureBox1 = new System.Windows.Forms.PictureBox();
+            this.label6 = new System.Windows.Forms.Label();
             this.CbxShowPass = new System.Windows.Forms.CheckBox();
             this.TbxPass = new System.Windows.Forms.TextBox();
             this.TbxLogin = new System.Windows.Forms.TextBox();
@@ -48,32 +49,25 @@
             this.сlothesFactoryLGDataSet = new Швейная_фабрика.СlothesFactoryLGDataSet();
             this.BsUsers = new System.Windows.Forms.BindingSource(this.components);
             this.usersTableAdapter = new Швейная_фабрика.СlothesFactoryLGDataSetTableAdapters.UsersTableAdapter();
-            this.pictureBox1 = new System.Windows.Forms.PictureBox();
+            this.LblIdUser = new System.Windows.Forms.Label();
             this.panel1.SuspendLayout();
+            ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
             ((System.ComponentModel.ISupportInitialize)(this.сlothesFactoryLGDataSet)).BeginInit();
             ((System.ComponentModel.ISupportInitialize)(this.BsUsers)).BeginInit();
-            ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
             this.SuspendLayout();
             // 
             // panel1
             // 
             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.Dock = System.Windows.Forms.DockStyle.Top;
             this.panel1.Location = new System.Drawing.Point(0, 0);
             this.panel1.Name = "panel1";
-            this.panel1.Size = new System.Drawing.Size(432, 130);
+            this.panel1.Size = new System.Drawing.Size(400, 130);
             this.panel1.TabIndex = 1;
             // 
-            // label6
-            // 
-            this.label6.Location = new System.Drawing.Point(262, 149);
-            this.label6.Name = "label6";
-            this.label6.Size = new System.Drawing.Size(145, 53);
-            this.label6.TabIndex = 14;
-            this.label6.Text = "z z - заказчик\r\nk k - кладовщик\r\nm m - менеджер";
-            // 
             // label1
             // 
             this.label1.AutoSize = true;
@@ -84,6 +78,25 @@
             this.label1.TabIndex = 1;
             this.label1.Text = "Авторизация";
             // 
+            // pictureBox1
+            // 
+            this.pictureBox1.Dock = System.Windows.Forms.DockStyle.Left;
+            this.pictureBox1.Image = global::Швейная_фабрика.Properties.Resources.fabric_logo;
+            this.pictureBox1.Location = new System.Drawing.Point(0, 0);
+            this.pictureBox1.Name = "pictureBox1";
+            this.pictureBox1.Size = new System.Drawing.Size(133, 130);
+            this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
+            this.pictureBox1.TabIndex = 0;
+            this.pictureBox1.TabStop = false;
+            // 
+            // label6
+            // 
+            this.label6.Location = new System.Drawing.Point(262, 149);
+            this.label6.Name = "label6";
+            this.label6.Size = new System.Drawing.Size(145, 53);
+            this.label6.TabIndex = 14;
+            this.label6.Text = "z z - заказчик\r\nk k - кладовщик\r\nm m - менеджер";
+            // 
             // CbxShowPass
             // 
             this.CbxShowPass.AutoSize = true;
@@ -214,22 +227,21 @@
             // 
             this.usersTableAdapter.ClearBeforeFill = true;
             // 
-            // pictureBox1
+            // LblIdUser
             // 
-            this.pictureBox1.Dock = System.Windows.Forms.DockStyle.Left;
-            this.pictureBox1.Image = global::Швейная_фабрика.Properties.Resources.fabric_logo;
-            this.pictureBox1.Location = new System.Drawing.Point(0, 0);
-            this.pictureBox1.Name = "pictureBox1";
-            this.pictureBox1.Size = new System.Drawing.Size(133, 130);
-            this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
-            this.pictureBox1.TabIndex = 0;
-            this.pictureBox1.TabStop = false;
+            this.LblIdUser.AutoSize = true;
+            this.LblIdUser.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.BsUsers, "id_User", true));
+            this.LblIdUser.Location = new System.Drawing.Point(139, 104);
+            this.LblIdUser.Name = "LblIdUser";
+            this.LblIdUser.Size = new System.Drawing.Size(47, 16);
+            this.LblIdUser.TabIndex = 20;
+            this.LblIdUser.Text = "IdUser";
             // 
             // FormMain
             // 
             this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
             this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
-            this.ClientSize = new System.Drawing.Size(432, 557);
+            this.ClientSize = new System.Drawing.Size(400, 557);
             this.Controls.Add(this.label6);
             this.Controls.Add(this.TbxCapcha);
             this.Controls.Add(this.label5);
@@ -251,9 +263,9 @@
             this.Load += new System.EventHandler(this.FormMain_Load);
             this.panel1.ResumeLayout(false);
             this.panel1.PerformLayout();
+            ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
             ((System.ComponentModel.ISupportInitialize)(this.сlothesFactoryLGDataSet)).EndInit();
             ((System.ComponentModel.ISupportInitialize)(this.BsUsers)).EndInit();
-            ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
             this.ResumeLayout(false);
             this.PerformLayout();
 
@@ -280,6 +292,7 @@
         private СlothesFactoryLGDataSet сlothesFactoryLGDataSet;
         private СlothesFactoryLGDataSetTableAdapters.UsersTableAdapter usersTableAdapter;
         public System.Windows.Forms.BindingSource BsUsers;
+        private System.Windows.Forms.Label LblIdUser;
     }
 }
 

+ 2 - 1
Швейная фабрика/FormMain.cs

@@ -16,6 +16,7 @@ namespace Швейная_фабрика
         {
             InitializeComponent();
         }
+        public static string IDUser = "0";
         string GetCapcha()
         {
             string TxtLetter = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
@@ -68,7 +69,7 @@ namespace Швейная_фабрика
 
             TbxLogin.Clear(); TbxPass.Clear(); // очистить поля
             this.Visible = false;  // скрыть форму для авторизации
-
+            IDUser = LblIdUser.Text;
             if (role == "заказчик")
             {
                 // создать форму для заказчика

+ 3 - 3
Швейная фабрика/FormMain.resx

@@ -117,12 +117,12 @@
   <resheader name="writer">
     <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
   </resheader>
-  <metadata name="сlothesFactoryLGDataSet.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
-    <value>17, 17</value>
-  </metadata>
   <metadata name="BsUsers.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
     <value>243, 17</value>
   </metadata>
+  <metadata name="сlothesFactoryLGDataSet.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+    <value>17, 17</value>
+  </metadata>
   <metadata name="usersTableAdapter.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
     <value>350, 20</value>
   </metadata>

+ 326 - 0
Швейная фабрика/FormProfilZak.Designer.cs

@@ -0,0 +1,326 @@
+namespace Швейная_фабрика
+{
+    partial class FormProfilZak
+    {
+        /// <summary>
+        /// Required designer variable.
+        /// </summary>
+        private System.ComponentModel.IContainer components = null;
+
+        /// <summary>
+        /// Clean up any resources being used.
+        /// </summary>
+        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
+        protected override void Dispose(bool disposing)
+        {
+            if (disposing && (components != null))
+            {
+                components.Dispose();
+            }
+            base.Dispose(disposing);
+        }
+
+        #region Windows Form Designer generated code
+
+        /// <summary>
+        /// Required method for Designer support - do not modify
+        /// the contents of this method with the code editor.
+        /// </summary>
+        private void InitializeComponent()
+        {
+            this.components = new System.ComponentModel.Container();
+            System.Windows.Forms.Label label2;
+            System.Windows.Forms.Label phoneLabel1;
+            System.Windows.Forms.Label otchLabel;
+            System.Windows.Forms.Label nameLabel;
+            System.Windows.Forms.Label surnameLabel;
+            System.Windows.Forms.Label passLabel;
+            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormProfilZak));
+            this.panel1 = new System.Windows.Forms.Panel();
+            this.label1 = new System.Windows.Forms.Label();
+            this.pictureBox1 = new System.Windows.Forms.PictureBox();
+            this.oldPassTextBox = new System.Windows.Forms.TextBox();
+            this.CbxShowPass = new System.Windows.Forms.CheckBox();
+            this.phoneMaskedTextBox = new System.Windows.Forms.MaskedTextBox();
+            this.BsUsers = new System.Windows.Forms.BindingSource(this.components);
+            this.сlothesFactoryLGDataSet = new Швейная_фабрика.СlothesFactoryLGDataSet();
+            this.otchTextBox = new System.Windows.Forms.TextBox();
+            this.nameTextBox = new System.Windows.Forms.TextBox();
+            this.surnameTextBox = new System.Windows.Forms.TextBox();
+            this.passTextBox = new System.Windows.Forms.TextBox();
+            this.BtnCancel = new System.Windows.Forms.Button();
+            this.BtnLev = new System.Windows.Forms.Button();
+            this.usersTableAdapter = new Швейная_фабрика.СlothesFactoryLGDataSetTableAdapters.UsersTableAdapter();
+            this.tableAdapterManager = new Швейная_фабрика.СlothesFactoryLGDataSetTableAdapters.TableAdapterManager();
+            this.Lblpass = new System.Windows.Forms.Label();
+            label2 = new System.Windows.Forms.Label();
+            phoneLabel1 = new System.Windows.Forms.Label();
+            otchLabel = new System.Windows.Forms.Label();
+            nameLabel = new System.Windows.Forms.Label();
+            surnameLabel = new System.Windows.Forms.Label();
+            passLabel = new System.Windows.Forms.Label();
+            this.panel1.SuspendLayout();
+            ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
+            ((System.ComponentModel.ISupportInitialize)(this.BsUsers)).BeginInit();
+            ((System.ComponentModel.ISupportInitialize)(this.сlothesFactoryLGDataSet)).BeginInit();
+            this.SuspendLayout();
+            // 
+            // label2
+            // 
+            label2.AutoSize = true;
+            label2.Location = new System.Drawing.Point(26, 335);
+            label2.Name = "label2";
+            label2.Size = new System.Drawing.Size(109, 16);
+            label2.TabIndex = 36;
+            label2.Text = "Старый пароль:";
+            // 
+            // phoneLabel1
+            // 
+            phoneLabel1.AutoSize = true;
+            phoneLabel1.Location = new System.Drawing.Point(72, 297);
+            phoneLabel1.Name = "phoneLabel1";
+            phoneLabel1.Size = new System.Drawing.Size(70, 16);
+            phoneLabel1.TabIndex = 33;
+            phoneLabel1.Text = "Телефон:";
+            // 
+            // otchLabel
+            // 
+            otchLabel.AutoSize = true;
+            otchLabel.Location = new System.Drawing.Point(69, 261);
+            otchLabel.Name = "otchLabel";
+            otchLabel.Size = new System.Drawing.Size(73, 16);
+            otchLabel.TabIndex = 31;
+            otchLabel.Text = "Отчество:";
+            // 
+            // nameLabel
+            // 
+            nameLabel.AutoSize = true;
+            nameLabel.Location = new System.Drawing.Point(106, 224);
+            nameLabel.Name = "nameLabel";
+            nameLabel.Size = new System.Drawing.Size(36, 16);
+            nameLabel.TabIndex = 29;
+            nameLabel.Text = "Имя:";
+            // 
+            // surnameLabel
+            // 
+            surnameLabel.AutoSize = true;
+            surnameLabel.Location = new System.Drawing.Point(73, 187);
+            surnameLabel.Name = "surnameLabel";
+            surnameLabel.Size = new System.Drawing.Size(69, 16);
+            surnameLabel.TabIndex = 26;
+            surnameLabel.Text = "Фамилия:";
+            // 
+            // passLabel
+            // 
+            passLabel.AutoSize = true;
+            passLabel.Location = new System.Drawing.Point(83, 372);
+            passLabel.Name = "passLabel";
+            passLabel.Size = new System.Drawing.Size(59, 16);
+            passLabel.TabIndex = 24;
+            passLabel.Text = "Пароль:";
+            // 
+            // panel1
+            // 
+            this.panel1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(225)))));
+            this.panel1.Controls.Add(this.label1);
+            this.panel1.Controls.Add(this.pictureBox1);
+            this.panel1.Dock = System.Windows.Forms.DockStyle.Top;
+            this.panel1.Location = new System.Drawing.Point(0, 0);
+            this.panel1.Name = "panel1";
+            this.panel1.Size = new System.Drawing.Size(450, 130);
+            this.panel1.TabIndex = 3;
+            // 
+            // label1
+            // 
+            this.label1.AutoSize = true;
+            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(186, 51);
+            this.label1.Name = "label1";
+            this.label1.Size = new System.Drawing.Size(239, 29);
+            this.label1.TabIndex = 1;
+            this.label1.Text = "Профиль заказчика";
+            // 
+            // pictureBox1
+            // 
+            this.pictureBox1.Dock = System.Windows.Forms.DockStyle.Left;
+            this.pictureBox1.Image = global::Швейная_фабрика.Properties.Resources.fabric_logo;
+            this.pictureBox1.Location = new System.Drawing.Point(0, 0);
+            this.pictureBox1.Name = "pictureBox1";
+            this.pictureBox1.Size = new System.Drawing.Size(133, 130);
+            this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
+            this.pictureBox1.TabIndex = 0;
+            this.pictureBox1.TabStop = false;
+            // 
+            // oldPassTextBox
+            // 
+            this.oldPassTextBox.Location = new System.Drawing.Point(160, 332);
+            this.oldPassTextBox.Name = "oldPassTextBox";
+            this.oldPassTextBox.Size = new System.Drawing.Size(193, 22);
+            this.oldPassTextBox.TabIndex = 37;
+            // 
+            // CbxShowPass
+            // 
+            this.CbxShowPass.AutoSize = true;
+            this.CbxShowPass.Location = new System.Drawing.Point(134, 397);
+            this.CbxShowPass.Name = "CbxShowPass";
+            this.CbxShowPass.Size = new System.Drawing.Size(219, 20);
+            this.CbxShowPass.TabIndex = 35;
+            this.CbxShowPass.Text = "Показывать символы пароля";
+            this.CbxShowPass.UseVisualStyleBackColor = true;
+            this.CbxShowPass.CheckedChanged += new System.EventHandler(this.CbxShowPass_CheckedChanged);
+            // 
+            // phoneMaskedTextBox
+            // 
+            this.phoneMaskedTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.BsUsers, "Phone", true));
+            this.phoneMaskedTextBox.Location = new System.Drawing.Point(160, 294);
+            this.phoneMaskedTextBox.Mask = "+7(999) 000-0000";
+            this.phoneMaskedTextBox.Name = "phoneMaskedTextBox";
+            this.phoneMaskedTextBox.Size = new System.Drawing.Size(193, 22);
+            this.phoneMaskedTextBox.TabIndex = 34;
+            // 
+            // BsUsers
+            // 
+            this.BsUsers.DataMember = "Users";
+            this.BsUsers.DataSource = this.сlothesFactoryLGDataSet;
+            // 
+            // сlothesFactoryLGDataSet
+            // 
+            this.сlothesFactoryLGDataSet.DataSetName = "СlothesFactoryLGDataSet";
+            this.сlothesFactoryLGDataSet.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
+            // 
+            // otchTextBox
+            // 
+            this.otchTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.BsUsers, "Otch", true));
+            this.otchTextBox.Location = new System.Drawing.Point(160, 258);
+            this.otchTextBox.Name = "otchTextBox";
+            this.otchTextBox.Size = new System.Drawing.Size(193, 22);
+            this.otchTextBox.TabIndex = 32;
+            // 
+            // nameTextBox
+            // 
+            this.nameTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.BsUsers, "Name", true));
+            this.nameTextBox.Location = new System.Drawing.Point(160, 221);
+            this.nameTextBox.Name = "nameTextBox";
+            this.nameTextBox.Size = new System.Drawing.Size(193, 22);
+            this.nameTextBox.TabIndex = 30;
+            // 
+            // surnameTextBox
+            // 
+            this.surnameTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.BsUsers, "Surname", true));
+            this.surnameTextBox.Location = new System.Drawing.Point(160, 184);
+            this.surnameTextBox.Name = "surnameTextBox";
+            this.surnameTextBox.Size = new System.Drawing.Size(193, 22);
+            this.surnameTextBox.TabIndex = 28;
+            // 
+            // passTextBox
+            // 
+            this.passTextBox.Location = new System.Drawing.Point(160, 369);
+            this.passTextBox.Name = "passTextBox";
+            this.passTextBox.Size = new System.Drawing.Size(193, 22);
+            this.passTextBox.TabIndex = 27;
+            // 
+            // BtnCancel
+            // 
+            this.BtnCancel.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(156)))), ((int)(((byte)(26)))));
+            this.BtnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
+            this.BtnCancel.Location = new System.Drawing.Point(147, 483);
+            this.BtnCancel.Name = "BtnCancel";
+            this.BtnCancel.Size = new System.Drawing.Size(206, 28);
+            this.BtnCancel.TabIndex = 39;
+            this.BtnCancel.Text = "Отмена";
+            this.BtnCancel.UseVisualStyleBackColor = false;
+            // 
+            // BtnLev
+            // 
+            this.BtnLev.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(156)))), ((int)(((byte)(26)))));
+            this.BtnLev.Location = new System.Drawing.Point(147, 449);
+            this.BtnLev.Name = "BtnLev";
+            this.BtnLev.Size = new System.Drawing.Size(206, 28);
+            this.BtnLev.TabIndex = 38;
+            this.BtnLev.Text = "Сохранить";
+            this.BtnLev.UseVisualStyleBackColor = false;
+            this.BtnLev.Click += new System.EventHandler(this.BtnLev_Click);
+            // 
+            // usersTableAdapter
+            // 
+            this.usersTableAdapter.ClearBeforeFill = true;
+            // 
+            // tableAdapterManager
+            // 
+            this.tableAdapterManager.BackupDataSetBeforeUpdate = false;
+            this.tableAdapterManager.ColorTableAdapter = null;
+            this.tableAdapterManager.FurnituraTableAdapter = null;
+            this.tableAdapterManager.IzdelieTableAdapter = null;
+            this.tableAdapterManager.OrdersTableAdapter = null;
+            this.tableAdapterManager.RolesTableAdapter = null;
+            this.tableAdapterManager.TkanTableAdapter = null;
+            this.tableAdapterManager.UpdateOrder = Швейная_фабрика.СlothesFactoryLGDataSetTableAdapters.TableAdapterManager.UpdateOrderOption.InsertUpdateDelete;
+            this.tableAdapterManager.UsersTableAdapter = this.usersTableAdapter;
+            // 
+            // Lblpass
+            // 
+            this.Lblpass.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.BsUsers, "pass", true));
+            this.Lblpass.Location = new System.Drawing.Point(641, 157);
+            this.Lblpass.Name = "Lblpass";
+            this.Lblpass.Size = new System.Drawing.Size(100, 23);
+            this.Lblpass.TabIndex = 40;
+            this.Lblpass.Text = "label3";
+            // 
+            // FormProfilZak
+            // 
+            this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
+            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+            this.ClientSize = new System.Drawing.Size(450, 541);
+            this.Controls.Add(this.Lblpass);
+            this.Controls.Add(this.BtnCancel);
+            this.Controls.Add(this.BtnLev);
+            this.Controls.Add(label2);
+            this.Controls.Add(this.oldPassTextBox);
+            this.Controls.Add(this.CbxShowPass);
+            this.Controls.Add(phoneLabel1);
+            this.Controls.Add(this.phoneMaskedTextBox);
+            this.Controls.Add(otchLabel);
+            this.Controls.Add(this.otchTextBox);
+            this.Controls.Add(nameLabel);
+            this.Controls.Add(this.nameTextBox);
+            this.Controls.Add(surnameLabel);
+            this.Controls.Add(this.surnameTextBox);
+            this.Controls.Add(passLabel);
+            this.Controls.Add(this.passTextBox);
+            this.Controls.Add(this.panel1);
+            this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
+            this.Name = "FormProfilZak";
+            this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
+            this.Text = "СУБД \"Швейная фабрика\"";
+            this.Load += new System.EventHandler(this.FormProfilZak_Load);
+            this.panel1.ResumeLayout(false);
+            this.panel1.PerformLayout();
+            ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
+            ((System.ComponentModel.ISupportInitialize)(this.BsUsers)).EndInit();
+            ((System.ComponentModel.ISupportInitialize)(this.сlothesFactoryLGDataSet)).EndInit();
+            this.ResumeLayout(false);
+            this.PerformLayout();
+
+        }
+
+        #endregion
+
+        private System.Windows.Forms.Panel panel1;
+        private System.Windows.Forms.Label label1;
+        private System.Windows.Forms.PictureBox pictureBox1;
+        private System.Windows.Forms.TextBox oldPassTextBox;
+        private System.Windows.Forms.CheckBox CbxShowPass;
+        private System.Windows.Forms.MaskedTextBox phoneMaskedTextBox;
+        private System.Windows.Forms.TextBox otchTextBox;
+        private System.Windows.Forms.TextBox nameTextBox;
+        private System.Windows.Forms.TextBox surnameTextBox;
+        private System.Windows.Forms.TextBox passTextBox;
+        private System.Windows.Forms.Button BtnCancel;
+        private System.Windows.Forms.Button BtnLev;
+        private СlothesFactoryLGDataSet сlothesFactoryLGDataSet;
+        private СlothesFactoryLGDataSetTableAdapters.UsersTableAdapter usersTableAdapter;
+        public System.Windows.Forms.BindingSource BsUsers;
+        private СlothesFactoryLGDataSetTableAdapters.TableAdapterManager tableAdapterManager;
+        private System.Windows.Forms.Label Lblpass;
+    }
+}

+ 61 - 0
Швейная фабрика/FormProfilZak.cs

@@ -0,0 +1,61 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows.Forms;
+using DLLCheck;
+
+namespace Швейная_фабрика
+{
+    public partial class FormProfilZak : Form
+    {
+        public FormProfilZak()
+        {
+            InitializeComponent();
+        }
+
+        private void FormProfilZak_Load(object sender, EventArgs e)
+        {
+            // TODO: данная строка кода позволяет загрузить данные в таблицу "сlothesFactoryLGDataSet.Users". При необходимости она может быть перемещена или удалена.
+            this.usersTableAdapter.Fill(this.сlothesFactoryLGDataSet.Users);
+            passTextBox.UseSystemPasswordChar = true;
+        }
+
+        private void BtnLev_Click(object sender, EventArgs e)
+        {
+            if (oldPassTextBox.Text != Lblpass.Text)
+            {
+                MessageBox.Show("Вы ввели неверный текущий пароль!", "Внимание",
+                    MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
+                return;
+            }
+            if (passTextBox.Text != "")  // изменяется пароль
+            {
+                CheckPass ps = new CheckPass();
+                if (!ps.ClassCheckPass(passTextBox.Text))
+                {
+                    MessageBox.Show("Новый пароль не соответствует требованиям!",
+                        "Внимание", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
+                    return;
+                }
+                // поместить в БД новый пароль
+                Lblpass.Text = passTextBox.Text;
+            }
+            else
+                return;
+            
+            BsUsers.EndEdit();
+            this.usersTableAdapter.Update(this.сlothesFactoryLGDataSet.Users);
+            Close();
+        }
+
+        private void CbxShowPass_CheckedChanged(object sender, EventArgs e)
+        {
+            passTextBox.UseSystemPasswordChar = !passTextBox.UseSystemPasswordChar;
+        }
+    }
+}

+ 227 - 0
Швейная фабрика/FormProfilZak.resx

@@ -0,0 +1,227 @@
+<?xml version="1.0" encoding="utf-8"?>
+<root>
+  <!-- 
+    Microsoft ResX Schema 
+    
+    Version 2.0
+    
+    The primary goals of this format is to allow a simple XML format 
+    that is mostly human readable. The generation and parsing of the 
+    various data types are done through the TypeConverter classes 
+    associated with the data types.
+    
+    Example:
+    
+    ... ado.net/XML headers & schema ...
+    <resheader name="resmimetype">text/microsoft-resx</resheader>
+    <resheader name="version">2.0</resheader>
+    <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
+    <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
+    <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
+    <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
+    <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
+        <value>[base64 mime encoded serialized .NET Framework object]</value>
+    </data>
+    <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+        <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
+        <comment>This is a comment</comment>
+    </data>
+                
+    There are any number of "resheader" rows that contain simple 
+    name/value pairs.
+    
+    Each data row contains a name, and value. The row also contains a 
+    type or mimetype. Type corresponds to a .NET class that support 
+    text/value conversion through the TypeConverter architecture. 
+    Classes that don't support this are serialized and stored with the 
+    mimetype set.
+    
+    The mimetype is used for serialized objects, and tells the 
+    ResXResourceReader how to depersist the object. This is currently not 
+    extensible. For a given mimetype the value must be set accordingly:
+    
+    Note - application/x-microsoft.net.object.binary.base64 is the format 
+    that the ResXResourceWriter will generate, however the reader can 
+    read any of the formats listed below.
+    
+    mimetype: application/x-microsoft.net.object.binary.base64
+    value   : The object must be serialized with 
+            : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
+            : and then encoded with base64 encoding.
+    
+    mimetype: application/x-microsoft.net.object.soap.base64
+    value   : The object must be serialized with 
+            : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
+            : and then encoded with base64 encoding.
+
+    mimetype: application/x-microsoft.net.object.bytearray.base64
+    value   : The object must be serialized into a byte array 
+            : using a System.ComponentModel.TypeConverter
+            : and then encoded with base64 encoding.
+    -->
+  <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
+    <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
+    <xsd:element name="root" msdata:IsDataSet="true">
+      <xsd:complexType>
+        <xsd:choice maxOccurs="unbounded">
+          <xsd:element name="metadata">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" />
+              </xsd:sequence>
+              <xsd:attribute name="name" use="required" type="xsd:string" />
+              <xsd:attribute name="type" type="xsd:string" />
+              <xsd:attribute name="mimetype" type="xsd:string" />
+              <xsd:attribute ref="xml:space" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="assembly">
+            <xsd:complexType>
+              <xsd:attribute name="alias" type="xsd:string" />
+              <xsd:attribute name="name" type="xsd:string" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="data">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+                <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
+              </xsd:sequence>
+              <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
+              <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
+              <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
+              <xsd:attribute ref="xml:space" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="resheader">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+              </xsd:sequence>
+              <xsd:attribute name="name" type="xsd:string" use="required" />
+            </xsd:complexType>
+          </xsd:element>
+        </xsd:choice>
+      </xsd:complexType>
+    </xsd:element>
+  </xsd:schema>
+  <resheader name="resmimetype">
+    <value>text/microsoft-resx</value>
+  </resheader>
+  <resheader name="version">
+    <value>2.0</value>
+  </resheader>
+  <resheader name="reader">
+    <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+  </resheader>
+  <resheader name="writer">
+    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+  </resheader>
+  <metadata name="label2.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>False</value>
+  </metadata>
+  <metadata name="phoneLabel1.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>False</value>
+  </metadata>
+  <metadata name="otchLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>False</value>
+  </metadata>
+  <metadata name="nameLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>False</value>
+  </metadata>
+  <metadata name="surnameLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>False</value>
+  </metadata>
+  <metadata name="passLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>False</value>
+  </metadata>
+  <metadata name="BsUsers.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+    <value>243, 17</value>
+  </metadata>
+  <metadata name="сlothesFactoryLGDataSet.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+    <value>17, 17</value>
+  </metadata>
+  <metadata name="usersTableAdapter.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+    <value>360, 21</value>
+  </metadata>
+  <metadata name="tableAdapterManager.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+    <value>543, 21</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">
+    <value>
+        AAABAAEAICAAAAEAIACoEAAAFgAAACgAAAAgAAAAQAAAAAEAIAAAAAAAABAAAMMOAADDDgAAAAAAAAAA
+        AAD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
+        /wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
+        /wD///8A////AAAAAAB6ZasA////////////////////////////////////////////////////////
+        /////////////f////r////4////+P////b////2////9v////j////6/////f//////////////////
+        ///////////////////t+P4xAAAAAH1ts//p////uMj//6q2/f+cqfH/kZvm/4eN3P99hNL/dXrK/3By
+        wv9qbL3/Zma5/2Rjtf9iYbH/YF2t/15dq/9eW6f/XFml/1xXof9aVZ3/WlOa/1hRlv9WTZL/VEmM/1JF
+        hv9QP4D/Tjx4/z8nZ/9MM2j/6vP+//////8hAAD//B8A//9RAP//MAD//gYA/+wAAP//CAD/6wAA/8kA
+        AP/qAAD/4gAA/9wAAP/YAAD/1gAA/9QAAP/SAAD/0gAA/9AAAP/QAAD/zgAA/8wAAP/MAAD/ygAA/8gA
+        AP/EAAD/wgAA/8AAAP+9AAD/3gAA/zsAAP9UNmb//////y4AAP/9QgD//2QA//8uAP//bgD//3IA/84A
+        AP//KQD//2AA/80AAP/QAAD/zwAA/8sAAP/JAAD/xwAA/8UAAP/FAAD/wwAA/8MAAP/BAAD/wQAA/78A
+        AP+9AAD/uQAA/7cAAP+0AAD/sAAA/64AAP/KAAD/NgAA/1IzWP//////MgAD//LCW////3P/9MNY////
+        U////0n/wo45//7ANP//+jD/w4gi/8aLH//Fhhn/wYIV/79+Ef+9fA3/vXoJ/7t6Bv+7eAL/uXYA/7d0
+        AP+3cAD/tWwA/7NoAP+wZAD/rF8A/6hXAP+kTwD/oEcA/6hdAP8uAAD/XTpW//////9rDxv///+I////
+        qP///4X///97////cf///2r///9g////WP///1P///9N////R////0P///8/////PP///zj///80////
+        MP///yr///8m////IP///xr///8V////Df///wX///8A////AP///wD///8A//+IAP9nRXP/////QgAA
+        AErQjzT///+U////ff///23///9p////U////wX///9B////Sv///z7///84////Nf///zH///8r////
+        J////yP///80////AP///AD///8A///8AP//9wD///EA///mAP//9gD//70A//+kAP///wD/AAAA/0g6
+        agD///8AAAAAAAAAAAA9AADiPQAA8igAAOMTAADOJwAAqI1qbf8AAAC7AAAAsAAAAKkAAAChAAAAmwAA
+        AJUAAACNAAAAhwAAAH8AAACeEQAd/z0AgP8tAHL/LABq/ygAZP8kAFz/IwBa/wAAGf89AAD/TxoA/wAA
+        AKgAAAAASjxqAP///wAAAAAAAAAAAEMAAABAAAAALAAAABkAAAAAAAAA////AAAAAAAAAAAAAwAAAAAA
+        AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAP//h1f//18n//9bI///Vx3//1MV//9cH///AAD//4J5
+        pf////9OAAAAAAAAAABMPmoA////AAAAAAAAAAAARwAAAEQAAAAyAAAAfo+lAEIbPfT////c////AP//
+        /wAJAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACcA1P+QX///bTX//2kv//9lKf//YCH//2Ym
+        //8HAP//b1Fg/////4f///8AAAAAAE5AaAD///8AAAAAAAAAAABLAAAAVwAAAE0AAACBlKMAVjJH////
+        ////////////AP///wD///8AAwAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAKgDG/55u//+JVv//gkz//35E
+        //97Q///eDz//wgA//92W2P/////h////wD///8A////AP///wB6AAAAcAAAAGcAAABbAAAAUQAAAFNr
+        hf9RJBb/UjhZ//////////9t////AP///wD///8ABQAAAAAAAAAAAAAAAAAAAAAAAAA6AOz/gk7//y4A
+        zv82AOb/MgDe/yQAvP9BAP//EwD//3hdY/////99////AP///wD///8A////AAkJFQAAAAwAAAACAAAA
+        AAAXAAD//+4A////AP+jLQD/p6dt//////////8A////AP///wD///8AAAAAAAAAAAAAAAAAAAAAAEcE
+        /f91Pv//AwA3/xEAYf8LAF7/AAAt/yMAtv8YAP//g2ln/////4L///8A////AP///wD///8ACwsRAAEB
+        CgAAAAAAAAAAXVwSjP+8grT/rHOk/4xDhf8OADz//////////9f///8A////AP///wD///8AAAAAAAAA
+        AAAAAAAAQADf/45V//9AAOX/RQD3/z8A9P8wANT/SwL//x0A//9XPVv///////////////8A////AP3/
+        /wBdB00AVQBEAEsAOgBBADD/38H//66G//+edP//sYv//0cA//+UgIz/////d////wD///8A////AP//
+        /wD///8AAAAAAAAAAABQEfP/hE7//x4Aev8pAJf/IwCU/xIAaf82AOD/NwD//xYAAP+BSgD/////////
+        /wD///8A////AFAVVABIC0sAPgFBADYAN//Pqf//0Kj//8ie///Dmv//TgL//8TCvP/////d////AP//
+        /wD///8A////AP///wD///8AAAAAABcAhP+jbv//Zyf//14Z//9ZD///Uwb//2gi//8IAP//4XMA/8ZF
+        AP+Jiqj/////AP///wD///8ATw9JAEcHQAA/ADYANQAs/+fE//+KWf//UACq/4lX//+BO///inZi////
+        /////////////f////v////0////7v///+f//5f4GACx/4tQ//84AKj/OgCu/zcArP8kAIH/SAD//xIA
+        ///NZQD/7H4A/5ORpP////8A////AP///wBlJoEAXh54AFYUbgBOCmT/iFz//9yZAP///wD/rmcN/4dU
+        //9zNv//Z0Vr/2xl3/9iVtv/YEC3/1sznP9XKYb/Zzxs/1Qehv+NTf//NAC0////GP///8T///+e////
+        f/9gJDD/AAD//85mAP/ldgD/lpWo/////wD///8A////AGowkwBiKYsAWx+CAFMXeP9pN////8wA////
+        Af/VigD/XC3//8Ca//+LQ///tDna/7VC4P+0ZP//tnv//7eM//+HTf//gj3//6pv//8lAHD///+L////
+        /////////////4FRRf8AAP//zmQA/+V0AP+Ukaj/////Cv///wD///8AWBtUAFITSwBKC0MAQgE5/+XC
+        //+IU///i0QP/39F///HoP//nX7//9iN////sAD//8oA////FP///9T///////////9pH///nWb//18c
+        //9fKS7/ek5t/3JAYv9fJSv/PQCm/wQA///JYgD/94gA/6Gkt/////8A////AP///wBRDkoASwZDAEUA
+        OwA9ADH/vYj//7SA//99RP//p27//5Vc//+MUf//iEz//4JI//9+Qv//fT7//3k4//91Mf//cSv//20p
+        //9nIP//cCr//zsA//8hAP//HQD//xIA//9DAP//AAD//8dSAP+OAAD/QC9W1////wD///8A////AFoZ
+        KABVEyAATwsYAEcDEf/Pr///waH9/7iW+P+yjur/qYXh/6eD2v+getr/k3Tr/49t5/+LYdn/h1rK/4NS
+        vf+BVbf/hViv/31Nqf96RqT/cjyi/2ozmP9iJ4//WRyF/1gXe/8RADf/IgAA/zQAAP8/K1YA////AP//
+        /wD///8AsXh9AKtydgClam4An2Vm////////////////////////////////////////////////////
+        //////////////////////////////////////////////////////////////////+TiZL/////Gv//
+        /wD///8A////AP///wAkCQAAHgMAABkAAAATAAD/////////////////////////////////////////
+        //////////////////////////////////////////////////////////////3u/P//////kGF7/wsA
+        AHT///8A////AP///wD///8A////ACgLAAAiBwAAHAEAABkAAAAzAABoIgAAx/bijv///9j/iGxF/2Q2
+        HWsAAABVEAAATgwAAEYIAABABAAAPAAAADgAAAA2AAAANAAAADQAAABRahYA//TgAP9cBwD/oKCb/wAA
+        AIUAAAAVCwAAAP///wD///8A////AP///wD///8ALA8EACYLAAAiBQAAHAEAADkAAAAnAAAAPy0N5aVz
+        S/9BBQAAaT0pAAAAAAAYAAAAFAAAABAAAAAMAAAABgAAAAAAAAAAAAAAAAAAAAAAAADmjQD///8s/9F7
+        AP//////AAAAAAAAAAALAAAA////AP///wD///8A////AP///wAwEwwALA8GACYLAAAiBQAAPQAAAC0A
+        AABHMhYAq3tWAEkNBwBxRzUABgAAACAAAAAcAAAAGAAAABQAAAAOAAAABgAAAAAAAAAAAAAAAAAAAN6K
+        AP///zT/x3IA/+X///////8A////AP///wD///8A////AP///wD///8A////ADQXEgAwEw4ALA8IACYL
+        BABDAAAAMwAAAE06IgCzg2AAURUSAHlPQQAOAAAAJwAAACQAAAAgAAAAGgAAABQAAAAOAAAAAAAAAAAA
+        AAAAAAAA04EA////Kv+6ZwD//////////wD///8A////AP///wD///8A////AP///wD///8AOBsYADQX
+        FAAwExAALBEMAEkAAAA5AAAAU0IsALmLbABXHR4Af1lMABYAAAAvAAAAKwAAACcAAAAiAAAAHAAAAAAA
+        AAAAAAAAAAAAAAAAAAACAAD/FwAA/y0AAP////8A////AP///wD///8A////AP///wD///8A////AP//
+        /wA6HR4AOBsaADQZGAAwFRQATQAAAD0AAABYSDUAv5N1AFwlKACHYVgAHAAAADcAAAAzAAAALQAAACkA
+        AAAiAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD/AAAAAAAAAAD///8A////AP///wD///8A////AP//
+        /wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
+        /wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
+        /wD///8A////AP///wD///8A/////8AAAACAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAPAAAAH///AD/z/
+        wA/8f8AP+D/AD/A/wA/gH8AH4B/AB+AfwAfgAAAH4AAAB+AAAAPgAAAH4AAAB+AAAA/gAAAP4AAAH/AA
+        AD/8//D////w////8P////H////7//////8=
+</value>
+  </data>
+</root>

+ 150 - 92
Швейная фабрика/FormZakazchik.Designer.cs

@@ -39,18 +39,21 @@
             this.pictureBox1 = new System.Windows.Forms.PictureBox();
             this.surnameLabel1 = new System.Windows.Forms.Label();
             this.usersTableAdapter = new Швейная_фабрика.СlothesFactoryLGDataSetTableAdapters.UsersTableAdapter();
-            this.tabControl1 = new System.Windows.Forms.TabControl();
-            this.tabPage1 = new System.Windows.Forms.TabPage();
-            this.TlpTkani = new System.Windows.Forms.TableLayoutPanel();
-            this.tabPage2 = new System.Windows.Forms.TabPage();
-            this.TlpFurnitura = new System.Windows.Forms.TableLayoutPanel();
+            this.BtnAddZakaz = new System.Windows.Forms.Button();
+            this.BtnLev = new System.Windows.Forms.Button();
+            this.BtnProfile = new System.Windows.Forms.Button();
+            this.DgvOrders = new System.Windows.Forms.DataGridView();
+            this.Izdelie = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.Meneger = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.Tkan = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.Furnitura = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.CountFur = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.CountIzd = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.panel1.SuspendLayout();
             ((System.ComponentModel.ISupportInitialize)(this.BsUsers)).BeginInit();
             ((System.ComponentModel.ISupportInitialize)(this.сlothesFactoryLGDataSet)).BeginInit();
             ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
-            this.tabControl1.SuspendLayout();
-            this.tabPage1.SuspendLayout();
-            this.tabPage2.SuspendLayout();
+            ((System.ComponentModel.ISupportInitialize)(this.DgvOrders)).BeginInit();
             this.SuspendLayout();
             // 
             // panel1
@@ -64,18 +67,18 @@
             this.panel1.Dock = System.Windows.Forms.DockStyle.Top;
             this.panel1.Location = new System.Drawing.Point(0, 0);
             this.panel1.Name = "panel1";
-            this.panel1.Size = new System.Drawing.Size(873, 130);
-            this.panel1.TabIndex = 2;
+            this.panel1.Size = new System.Drawing.Size(887, 130);
+            this.panel1.TabIndex = 4;
             // 
             // otchLabel1
             // 
             this.otchLabel1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
             | System.Windows.Forms.AnchorStyles.Right)));
             this.otchLabel1.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.BsUsers, "Otch", true));
-            this.otchLabel1.Location = new System.Drawing.Point(341, 80);
+            this.otchLabel1.Location = new System.Drawing.Point(513, 81);
             this.otchLabel1.Name = "otchLabel1";
-            this.otchLabel1.Size = new System.Drawing.Size(461, 23);
-            this.otchLabel1.TabIndex = 6;
+            this.otchLabel1.Size = new System.Drawing.Size(362, 23);
+            this.otchLabel1.TabIndex = 9;
             this.otchLabel1.Text = "Отчество";
             // 
             // BsUsers
@@ -94,19 +97,19 @@
             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(186, 51);
             this.label1.Name = "label1";
-            this.label1.Size = new System.Drawing.Size(119, 29);
+            this.label1.Size = new System.Drawing.Size(309, 29);
             this.label1.TabIndex = 1;
-            this.label1.Text = "Заказчик";
+            this.label1.Text = "Рабочее место заказчика";
             // 
             // nameLabel1
             // 
             this.nameLabel1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
             | System.Windows.Forms.AnchorStyles.Right)));
             this.nameLabel1.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.BsUsers, "Name", true));
-            this.nameLabel1.Location = new System.Drawing.Point(341, 57);
+            this.nameLabel1.Location = new System.Drawing.Point(513, 58);
             this.nameLabel1.Name = "nameLabel1";
-            this.nameLabel1.Size = new System.Drawing.Size(461, 23);
-            this.nameLabel1.TabIndex = 4;
+            this.nameLabel1.Size = new System.Drawing.Size(362, 23);
+            this.nameLabel1.TabIndex = 8;
             this.nameLabel1.Text = "Имя";
             // 
             // pictureBox1
@@ -125,84 +128,136 @@
             this.surnameLabel1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
             | System.Windows.Forms.AnchorStyles.Right)));
             this.surnameLabel1.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.BsUsers, "Surname", true));
-            this.surnameLabel1.Location = new System.Drawing.Point(341, 35);
+            this.surnameLabel1.Location = new System.Drawing.Point(513, 36);
             this.surnameLabel1.Name = "surnameLabel1";
-            this.surnameLabel1.Size = new System.Drawing.Size(461, 23);
-            this.surnameLabel1.TabIndex = 3;
+            this.surnameLabel1.Size = new System.Drawing.Size(362, 23);
+            this.surnameLabel1.TabIndex = 7;
             this.surnameLabel1.Text = "Фамилия";
             // 
             // usersTableAdapter
             // 
             this.usersTableAdapter.ClearBeforeFill = true;
             // 
-            // tabControl1
-            // 
-            this.tabControl1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
-            | System.Windows.Forms.AnchorStyles.Left)));
-            this.tabControl1.Controls.Add(this.tabPage1);
-            this.tabControl1.Controls.Add(this.tabPage2);
-            this.tabControl1.Location = new System.Drawing.Point(13, 137);
-            this.tabControl1.Name = "tabControl1";
-            this.tabControl1.SelectedIndex = 0;
-            this.tabControl1.Size = new System.Drawing.Size(596, 418);
-            this.tabControl1.TabIndex = 3;
-            // 
-            // tabPage1
-            // 
-            this.tabPage1.Controls.Add(this.TlpTkani);
-            this.tabPage1.Location = new System.Drawing.Point(4, 25);
-            this.tabPage1.Name = "tabPage1";
-            this.tabPage1.Padding = new System.Windows.Forms.Padding(3);
-            this.tabPage1.Size = new System.Drawing.Size(588, 389);
-            this.tabPage1.TabIndex = 0;
-            this.tabPage1.Text = "Ткани";
-            this.tabPage1.UseVisualStyleBackColor = true;
-            // 
-            // TlpTkani
-            // 
-            this.TlpTkani.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
-            | System.Windows.Forms.AnchorStyles.Left)));
-            this.TlpTkani.AutoScroll = true;
-            this.TlpTkani.ColumnCount = 1;
-            this.TlpTkani.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
-            this.TlpTkani.Location = new System.Drawing.Point(7, 7);
-            this.TlpTkani.Name = "TlpTkani";
-            this.TlpTkani.RowCount = 1;
-            this.TlpTkani.RowStyles.Add(new System.Windows.Forms.RowStyle());
-            this.TlpTkani.Size = new System.Drawing.Size(575, 376);
-            this.TlpTkani.TabIndex = 0;
-            // 
-            // tabPage2
-            // 
-            this.tabPage2.Controls.Add(this.TlpFurnitura);
-            this.tabPage2.Location = new System.Drawing.Point(4, 25);
-            this.tabPage2.Name = "tabPage2";
-            this.tabPage2.Padding = new System.Windows.Forms.Padding(3);
-            this.tabPage2.Size = new System.Drawing.Size(588, 389);
-            this.tabPage2.TabIndex = 1;
-            this.tabPage2.Text = "Фурнитура";
-            this.tabPage2.UseVisualStyleBackColor = true;
-            // 
-            // TlpFurnitura
-            // 
-            this.TlpFurnitura.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
-            | System.Windows.Forms.AnchorStyles.Left)));
-            this.TlpFurnitura.AutoScroll = true;
-            this.TlpFurnitura.ColumnCount = 1;
-            this.TlpFurnitura.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
-            this.TlpFurnitura.Location = new System.Drawing.Point(6, 6);
-            this.TlpFurnitura.Name = "TlpFurnitura";
-            this.TlpFurnitura.RowCount = 1;
-            this.TlpFurnitura.RowStyles.Add(new System.Windows.Forms.RowStyle());
-            this.TlpFurnitura.Size = new System.Drawing.Size(576, 377);
-            this.TlpFurnitura.TabIndex = 0;
+            // BtnAddZakaz
+            // 
+            this.BtnAddZakaz.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
+            this.BtnAddZakaz.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(156)))), ((int)(((byte)(26)))));
+            this.BtnAddZakaz.Location = new System.Drawing.Point(666, 514);
+            this.BtnAddZakaz.Name = "BtnAddZakaz";
+            this.BtnAddZakaz.Size = new System.Drawing.Size(206, 46);
+            this.BtnAddZakaz.TabIndex = 19;
+            this.BtnAddZakaz.Text = "Добавить заказ";
+            this.BtnAddZakaz.UseVisualStyleBackColor = false;
+            this.BtnAddZakaz.Click += new System.EventHandler(this.BtnAddZakaz_Click);
+            // 
+            // BtnLev
+            // 
+            this.BtnLev.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
+            this.BtnLev.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(156)))), ((int)(((byte)(26)))));
+            this.BtnLev.Location = new System.Drawing.Point(426, 514);
+            this.BtnLev.Name = "BtnLev";
+            this.BtnLev.Size = new System.Drawing.Size(206, 46);
+            this.BtnLev.TabIndex = 18;
+            this.BtnLev.Text = "Нечеткий поиск";
+            this.BtnLev.UseVisualStyleBackColor = false;
+            this.BtnLev.Click += new System.EventHandler(this.BtnLev_Click);
+            // 
+            // BtnProfile
+            // 
+            this.BtnProfile.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
+            this.BtnProfile.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(156)))), ((int)(((byte)(26)))));
+            this.BtnProfile.Location = new System.Drawing.Point(191, 514);
+            this.BtnProfile.Name = "BtnProfile";
+            this.BtnProfile.Size = new System.Drawing.Size(206, 46);
+            this.BtnProfile.TabIndex = 17;
+            this.BtnProfile.Text = "Профиль пользователя";
+            this.BtnProfile.UseVisualStyleBackColor = false;
+            this.BtnProfile.Click += new System.EventHandler(this.BtnProfile_Click);
+            // 
+            // DgvOrders
+            // 
+            this.DgvOrders.AllowUserToAddRows = false;
+            this.DgvOrders.AllowUserToDeleteRows = false;
+            this.DgvOrders.AllowUserToResizeColumns = false;
+            this.DgvOrders.AllowUserToResizeRows = false;
+            this.DgvOrders.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.DgvOrders.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
+            this.DgvOrders.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
+            this.Izdelie,
+            this.Meneger,
+            this.Tkan,
+            this.Furnitura,
+            this.CountFur,
+            this.CountIzd});
+            this.DgvOrders.Location = new System.Drawing.Point(13, 136);
+            this.DgvOrders.Name = "DgvOrders";
+            this.DgvOrders.ReadOnly = true;
+            this.DgvOrders.RowHeadersVisible = false;
+            this.DgvOrders.RowHeadersWidth = 51;
+            this.DgvOrders.RowTemplate.Height = 24;
+            this.DgvOrders.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
+            this.DgvOrders.Size = new System.Drawing.Size(862, 372);
+            this.DgvOrders.TabIndex = 20;
+            // 
+            // Izdelie
+            // 
+            this.Izdelie.HeaderText = "Изделие";
+            this.Izdelie.MinimumWidth = 6;
+            this.Izdelie.Name = "Izdelie";
+            this.Izdelie.ReadOnly = true;
+            this.Izdelie.Width = 125;
+            // 
+            // Meneger
+            // 
+            this.Meneger.HeaderText = "Менеджер";
+            this.Meneger.MinimumWidth = 6;
+            this.Meneger.Name = "Meneger";
+            this.Meneger.ReadOnly = true;
+            this.Meneger.Width = 125;
+            // 
+            // Tkan
+            // 
+            this.Tkan.HeaderText = "Ткань";
+            this.Tkan.MinimumWidth = 6;
+            this.Tkan.Name = "Tkan";
+            this.Tkan.ReadOnly = true;
+            this.Tkan.Width = 125;
+            // 
+            // Furnitura
+            // 
+            this.Furnitura.HeaderText = "Фурнитура";
+            this.Furnitura.MinimumWidth = 6;
+            this.Furnitura.Name = "Furnitura";
+            this.Furnitura.ReadOnly = true;
+            this.Furnitura.Width = 125;
+            // 
+            // CountFur
+            // 
+            this.CountFur.HeaderText = "Кол-во фурнитуры";
+            this.CountFur.MinimumWidth = 6;
+            this.CountFur.Name = "CountFur";
+            this.CountFur.ReadOnly = true;
+            this.CountFur.Width = 125;
+            // 
+            // CountIzd
+            // 
+            this.CountIzd.HeaderText = "Кол-во изделий";
+            this.CountIzd.MinimumWidth = 6;
+            this.CountIzd.Name = "CountIzd";
+            this.CountIzd.ReadOnly = true;
+            this.CountIzd.Width = 125;
             // 
             // FormZakazchik
             // 
             this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
             this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
-            this.ClientSize = new System.Drawing.Size(873, 567);
-            this.Controls.Add(this.tabControl1);
+            this.ClientSize = new System.Drawing.Size(887, 572);
+            this.Controls.Add(this.DgvOrders);
+            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.Name = "FormZakazchik";
@@ -214,9 +269,7 @@
             ((System.ComponentModel.ISupportInitialize)(this.BsUsers)).EndInit();
             ((System.ComponentModel.ISupportInitialize)(this.сlothesFactoryLGDataSet)).EndInit();
             ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
-            this.tabControl1.ResumeLayout(false);
-            this.tabPage1.ResumeLayout(false);
-            this.tabPage2.ResumeLayout(false);
+            ((System.ComponentModel.ISupportInitialize)(this.DgvOrders)).EndInit();
             this.ResumeLayout(false);
 
         }
@@ -232,10 +285,15 @@
         private System.Windows.Forms.Label otchLabel1;
         private System.Windows.Forms.Label nameLabel1;
         private System.Windows.Forms.Label surnameLabel1;
-        private System.Windows.Forms.TabControl tabControl1;
-        private System.Windows.Forms.TabPage tabPage1;
-        private System.Windows.Forms.TabPage tabPage2;
-        private System.Windows.Forms.TableLayoutPanel TlpTkani;
-        private System.Windows.Forms.TableLayoutPanel TlpFurnitura;
+        private System.Windows.Forms.Button BtnAddZakaz;
+        private System.Windows.Forms.Button BtnLev;
+        private System.Windows.Forms.Button BtnProfile;
+        private System.Windows.Forms.DataGridView DgvOrders;
+        private System.Windows.Forms.DataGridViewTextBoxColumn Izdelie;
+        private System.Windows.Forms.DataGridViewTextBoxColumn Meneger;
+        private System.Windows.Forms.DataGridViewTextBoxColumn Tkan;
+        private System.Windows.Forms.DataGridViewTextBoxColumn Furnitura;
+        private System.Windows.Forms.DataGridViewTextBoxColumn CountFur;
+        private System.Windows.Forms.DataGridViewTextBoxColumn CountIzd;
     }
 }

+ 40 - 245
Швейная фабрика/FormZakazchik.cs

@@ -17,266 +17,61 @@ namespace Швейная_фабрика
         {
             InitializeComponent();
         }
-
-        string TxtCon = @"Data Source=213.155.192.79,3002;Initial Catalog=СlothesFactoryLG;Persist Security Info=True;User ID=u21lebed;Password=hgm8";
-        class ItemTkani : Panel
-        {
-            public System.Windows.Forms.Label LblComment;
-            public System.Windows.Forms.Label LblLength;
-            public System.Windows.Forms.Label LblWith;
-            public System.Windows.Forms.Label LblColor;
-            public System.Windows.Forms.Label LblTitle;
-            public System.Windows.Forms.PictureBox PbxPhoto;
-
-            public ItemTkani()
-            {
-                this.LblTitle = new System.Windows.Forms.Label();
-                this.LblColor = new System.Windows.Forms.Label();
-                this.LblWith = new System.Windows.Forms.Label();
-                this.LblLength = new System.Windows.Forms.Label();
-                this.LblComment = new System.Windows.Forms.Label();
-                this.PbxPhoto = new System.Windows.Forms.PictureBox();
-                // 
-                // panel1
-                // 
-                this.BackColor = System.Drawing.Color.White;
-                this.Controls.Add(this.LblComment);
-                this.Controls.Add(this.LblLength);
-                this.Controls.Add(this.LblWith);
-                this.Controls.Add(this.LblColor);
-                this.Controls.Add(this.LblTitle);
-                this.Controls.Add(this.PbxPhoto);
-                this.Location = new System.Drawing.Point(13, 13);
-                this.Name = "panel1";
-                this.Size = new System.Drawing.Size(390, 161);
-                this.TabIndex = 0;
-                // 
-                // LblTitle
-                // 
-                this.LblTitle.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
-                | System.Windows.Forms.AnchorStyles.Right)));
-                this.LblTitle.Location = new System.Drawing.Point(225, 13);
-                this.LblTitle.Name = "LblTitle";
-                this.LblTitle.Size = new System.Drawing.Size(147, 23);
-                this.LblTitle.TabIndex = 1;
-                this.LblTitle.Text = "label1";
-                // 
-                // LblColor
-                // 
-                this.LblColor.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
-                | System.Windows.Forms.AnchorStyles.Right)));
-                this.LblColor.Location = new System.Drawing.Point(225, 41);
-                this.LblColor.Name = "LblColor";
-                this.LblColor.Size = new System.Drawing.Size(147, 23);
-                this.LblColor.TabIndex = 2;
-                this.LblColor.Text = "label2";
-                // 
-                // LblWith
-                // 
-                this.LblWith.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
-                | System.Windows.Forms.AnchorStyles.Right)));
-                this.LblWith.Location = new System.Drawing.Point(225, 73);
-                this.LblWith.Name = "LblWith";
-                this.LblWith.Size = new System.Drawing.Size(147, 23);
-                this.LblWith.TabIndex = 3;
-                this.LblWith.Text = "label3";
-                // 
-                // LblLength
-                // 
-                this.LblLength.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
-                | System.Windows.Forms.AnchorStyles.Right)));
-                this.LblLength.Location = new System.Drawing.Point(225, 100);
-                this.LblLength.Name = "LblLength";
-                this.LblLength.Size = new System.Drawing.Size(147, 23);
-                this.LblLength.TabIndex = 4;
-                this.LblLength.Text = "label4";
-                // 
-                // LblComment
-                // 
-                this.LblComment.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
-                | System.Windows.Forms.AnchorStyles.Right)));
-                this.LblComment.Location = new System.Drawing.Point(225, 126);
-                this.LblComment.Name = "LblComment";
-                this.LblComment.Size = new System.Drawing.Size(147, 29);
-                this.LblComment.TabIndex = 5;
-                this.LblComment.Text = "label5";
-                // 
-                // pictureBox1
-                // 
-                this.PbxPhoto.Location = new System.Drawing.Point(16, 13);
-                this.PbxPhoto.Name = "pictureBox1";
-                this.PbxPhoto.Size = new System.Drawing.Size(175, 129);
-                this.PbxPhoto.TabIndex = 0;
-                this.PbxPhoto.TabStop = false;
-                this.PbxPhoto.SizeMode = PictureBoxSizeMode.Zoom;
-            }
-        }
-        class ItemFurnitura : Panel
-        {
-            public System.Windows.Forms.Label label2;
-            public System.Windows.Forms.Label label1;
-            public System.Windows.Forms.PictureBox PbxImage;
-            public ItemFurnitura()
-            {
-                this.label1 = new System.Windows.Forms.Label();
-                this.label2 = new System.Windows.Forms.Label();
-                this.PbxImage = new System.Windows.Forms.PictureBox();
-                // 
-                // panel1
-                // 
-                this.BackColor = System.Drawing.Color.White;
-                this.Controls.Add(this.label2);
-                this.Controls.Add(this.label1);
-                this.Controls.Add(this.PbxImage);
-                this.Location = new System.Drawing.Point(13, 13);
-                this.Name = "panel1";
-                this.Size = new System.Drawing.Size(265, 225);
-                this.TabIndex = 0;
-                // 
-                // label1
-                // 
-                this.label1.Location = new System.Drawing.Point(34, 163);
-                this.label1.Name = "label1";
-                this.label1.Size = new System.Drawing.Size(190, 23);
-                this.label1.TabIndex = 1;
-                this.label1.Text = "label1";
-                // 
-                // label2
-                // 
-                this.label2.Location = new System.Drawing.Point(34, 190);
-                this.label2.Name = "label2";
-                this.label2.Size = new System.Drawing.Size(190, 23);
-                this.label2.TabIndex = 2;
-                this.label2.Text = "label2";
-                // 
-                // PbxImage
-                // 
-                this.PbxImage.Location = new System.Drawing.Point(37, 18);
-                this.PbxImage.Name = "PbxImage";
-                this.PbxImage.Size = new System.Drawing.Size(187, 133);
-                this.PbxImage.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
-                this.PbxImage.TabIndex = 0;
-                this.PbxImage.TabStop = false;
-            }
-        }
-
-        struct Tkani
-        {
-            public string Title, Color, With, Length, Comment, Photo;
-        }
-        struct Furnitura
-        {
-            public string Title, CountFur, Image;
-        }
-        List<Tkani> LstTkani = new List<Tkani>();
-        List<Furnitura> LstFurnitura = new List<Furnitura>();
-        void GetDateFromDBForTkani()
+        SqlConnection Con = new SqlConnection("Data Source=213.155.192.79,3002;Initial Catalog=СlothesFactoryLG;Persist Security Info=True;User ID=u21lebed;Password=hgm8");
+        void FillOrders()
         {
-            SqlConnection Con = new SqlConnection(TxtCon);
+            DgvOrders.Rows.Clear();
+            string txtQuery = $@"SELECT        Izdelie.name_izd as Izd, Users.Surname, Tkan.Title AS Cloth, Furnitura.namefur, Orders.CountFur, Orders.CountIzd
+FROM            Tkan INNER JOIN
+                         Orders ON Tkan.id_Tkan = Orders.id_tkan INNER JOIN
+                         Furnitura ON Orders.id_fur = Furnitura.id_fur INNER JOIN
+                         Izdelie ON Orders.id_izd = Izdelie.id_izd INNER JOIN
+                         Users ON Orders.id_men = Users.id_User
+where Users.Role = 2 and Orders.id_zak = {FormMain.IDUser}";
             Con.Open();
-            string TxtQuery =
-@"select  Tkan.Title as TitleTkan, Color.Title as TitleColor, Length, Width, Comment, NamePhoto
-from Tkan join Color on Tkan.id_color = Color.id_colors";
-            SqlCommand Query = new SqlCommand(TxtQuery, Con);
-            SqlDataReader Res = Query.ExecuteReader();
-
-            LstTkani.Clear();
-            while (Res.Read())
+            SqlCommand query = new SqlCommand(txtQuery, Con);
+            SqlDataReader res = query.ExecuteReader();
+            int i = 0;
+            while (res.Read())
             {
-                Tkani tkan = new Tkani();
-                tkan.Title = Res["TitleTkan"].ToString();  
-                tkan.Color = Res["TitleColor"].ToString();  
-                tkan.With = Res["Width"].ToString();  
-                tkan.Length = Res["Length"].ToString();  
-                tkan.Comment = Res["Comment"].ToString();
-                tkan.Photo = Res["NamePhoto"].ToString();
-                LstTkani.Add(tkan);
+                DgvOrders.Rows.Add();
+                DgvOrders.Rows[i].Cells[0].Value = res["Izd"].ToString();
+                DgvOrders.Rows[i].Cells[1].Value = (res["Surname"].ToString());
+                DgvOrders.Rows[i].Cells[2].Value = (res["Cloth"].ToString());
+                DgvOrders.Rows[i].Cells[3].Value = (res["namefur"].ToString());
+                DgvOrders.Rows[i].Cells[4].Value = (res["CountFur"].ToString());
+                DgvOrders.Rows[i].Cells[5].Value = (res["CountIzd"].ToString());
+                i++;
             }
             Con.Close();
         }
-        void GetDateFromDBForFurnitura()
-        {
-            SqlConnection Con = new SqlConnection(TxtCon);
-            Con.Open();
 
-            SqlCommand Query = new SqlCommand("select * from Furnitura ", Con);
-            SqlDataReader Res = Query.ExecuteReader();
-
-            LstFurnitura.Clear();
-            while (Res.Read())
-            {
-                Furnitura fur = new Furnitura();
-                fur.Title = Res["namefur"].ToString();
-                fur.CountFur = Res["countfur"].ToString();
-                fur.Image = Res["photo"].ToString();
-                LstFurnitura.Add(fur);
-            }
-            Con.Close();
-        }
-        void FillPanelForFurnitura()
-        {
-            //очистить панель от старых данных
-            TlpFurnitura.Controls.Clear();
-            //перебор записей о товарах
-            for (int i = 0; i <= LstFurnitura.Count - 1; i++)
-            {
-                ItemFurnitura Item = new ItemFurnitura();
-                Item.label1.Text = "Название: "+LstFurnitura[i].Title;
-                Item.label2.Text = "Кол-во на складе: "+LstFurnitura[i].CountFur;
-                try
-                {
-                    Item.PbxImage.Image = Image.FromFile(Application.StartupPath + "\\furnitur\\" + LstFurnitura[i].Image);
-                }
-                catch
-                {
-                    Item.PbxImage.Image = Image.FromFile(Application.StartupPath + "\\furnitur\\picture.jpg");
-                }
-                Item.Click += Item_Click;
-                //добавить плитку в контейнер
-                TlpFurnitura.Controls.Add(Item);
-            }
-        }
-        void FillPanelForTkani()
+        private void FormZakazchik_Load(object sender, EventArgs e)
         {
-            //очистить панель от старых данных
-            TlpTkani.Controls.Clear();
-            //перебор записей о товарах
-            for (int i = 0; i <= LstTkani.Count - 1; i++)
-            {
-                ItemTkani Item = new ItemTkani();
-                Item.LblTitle.Text = "Название: " + LstTkani[i].Title;
-                Item.LblColor.Text = "Цвет: "+LstTkani[i].Color;
-                Item.LblWith.Text = "Ширина: "+LstTkani[i].With;
-                Item.LblLength.Text = "Длинна: "+LstTkani[i].Length;
-                Item.LblComment.Text = "Описание: "+LstTkani[i].Comment;
-                try
-                {
-                    Item.PbxPhoto.Image = Image.FromFile(Application.StartupPath + "\\tkani\\" + LstTkani[i].Photo);
-                }
-                catch
-                {
-                    Item.PbxPhoto.Image = Image.FromFile(Application.StartupPath + "\\tkani\\picture.jpg");
-                }
-                Item.Click += Item_Click;
-                //добавить плитку в контейнер
-                TlpTkani.Controls.Add(Item);
-            }
+            // TODO: данная строка кода позволяет загрузить данные в таблицу "сlothesFactoryLGDataSet.Users". При необходимости она может быть перемещена или удалена.
+            this.usersTableAdapter.Fill(this.сlothesFactoryLGDataSet.Users);
+            FillOrders();
+
         }
-        private void Item_Click(object sender, EventArgs e)
+
+        private void BtnProfile_Click(object sender, EventArgs e)
         {
-            
+            FormProfilZak frm = new FormProfilZak();
+            frm.BsUsers.Filter = BsUsers.Filter;
+            frm.ShowDialog();
         }
 
-        private void FormZakazchik_Load(object sender, EventArgs e)
+        private void BtnLev_Click(object sender, EventArgs e)
         {
-            // TODO: данная строка кода позволяет загрузить данные в таблицу "сlothesFactoryLGDataSet.Users". При необходимости она может быть перемещена или удалена.
-            this.usersTableAdapter.Fill(this.сlothesFactoryLGDataSet.Users);
 
-            GetDateFromDBForTkani();
-            FillPanelForTkani();
+        }
 
-            GetDateFromDBForFurnitura();
-            FillPanelForFurnitura();
+        private void BtnAddZakaz_Click(object sender, EventArgs e)
+        {
+            FormAddZak frm = new FormAddZak();
+            frm.BsUsers.Filter = BsUsers.Filter;
+            frm.ShowDialog();
+            FillOrders();
         }
     }
 }

+ 19 - 1
Швейная фабрика/FormZakazchik.resx

@@ -124,7 +124,25 @@
     <value>17, 17</value>
   </metadata>
   <metadata name="usersTableAdapter.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
-    <value>346, 19</value>
+    <value>363, 14</value>
+  </metadata>
+  <metadata name="Izdelie.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
+  <metadata name="Meneger.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
+  <metadata name="Tkan.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
+  <metadata name="Furnitura.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
+  <metadata name="CountFur.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
+  <metadata name="CountIzd.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</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">

BIN
Швейная фабрика/bin/Debug/furnitur/picture.jpg


BIN
Швейная фабрика/bin/Debug/furnitur/picture.png


BIN
Швейная фабрика/bin/Debug/tkani/picture.jpg


BIN
Швейная фабрика/bin/Debug/tkani/picture.png


BIN
Швейная фабрика/bin/Debug/Швейная фабрика.exe


+ 2 - 0
Швейная фабрика/obj/Debug/Швейная фабрика.csproj.FileListAbsolute.txt

@@ -18,3 +18,5 @@ D:\37g\2 семестр\практика 24.03-15.05\Швейная фабрик
 D:\37g\2 семестр\практика 24.03-15.05\Швейная фабрика\Швейная фабрика\obj\Debug\Швейная фабрика.csproj.CopyComplete
 D:\37g\2 семестр\практика 24.03-15.05\Швейная фабрика\Швейная фабрика\obj\Debug\Швейная_фабрика.Form1.resources
 D:\37g\2 семестр\практика 24.03-15.05\Швейная фабрика\Швейная фабрика\obj\Debug\Швейная_фабрика.Form2.resources
+D:\37g\2 семестр\практика 24.03-15.05\Швейная фабрика\Швейная фабрика\obj\Debug\Швейная_фабрика.FormProfilZak.resources
+D:\37g\2 семестр\практика 24.03-15.05\Швейная фабрика\Швейная фабрика\obj\Debug\Швейная_фабрика.FormAddZak.resources

BIN
Швейная фабрика/obj/Debug/Швейная фабрика.exe


BIN
Швейная фабрика/obj/Debug/Швейная_фабрика.FormAddZak.resources


BIN
Швейная фабрика/obj/Debug/Швейная_фабрика.FormProfilZak.resources


+ 7 - 0
Швейная фабрика/СlothesFactoryLGDataSet.xsc

@@ -8,6 +8,13 @@
   <TableUISettings>
     <TableUISetting Name="Users">
       <ColumnUISettings>
+        <ColumnUISetting Name="pass">
+          <ControlSettings>
+            <ControlSetting ArtifactName="Microsoft:System.Windows.Forms:Form">
+              <BindableControlInfo Name="Label" Type="System.Windows.Forms.Label" AssemblyName="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
+            </ControlSetting>
+          </ControlSettings>
+        </ColumnUISetting>
         <ColumnUISetting Name="Surname">
           <ControlSettings>
             <ControlSetting ArtifactName="Microsoft:System.Windows.Forms:Form">

+ 23 - 5
Швейная фабрика/Швейная фабрика.csproj

@@ -64,6 +64,12 @@
     <Compile Include="Form2.Designer.cs">
       <DependentUpon>Form2.cs</DependentUpon>
     </Compile>
+    <Compile Include="FormZakazchik.cs">
+      <SubType>Form</SubType>
+    </Compile>
+    <Compile Include="FormZakazchik.Designer.cs">
+      <DependentUpon>FormZakazchik.cs</DependentUpon>
+    </Compile>
     <Compile Include="FormKladovschik.cs">
       <SubType>Form</SubType>
     </Compile>
@@ -82,17 +88,23 @@
     <Compile Include="FormManager.Designer.cs">
       <DependentUpon>FormManager.cs</DependentUpon>
     </Compile>
+    <Compile Include="FormProfilZak.cs">
+      <SubType>Form</SubType>
+    </Compile>
+    <Compile Include="FormProfilZak.Designer.cs">
+      <DependentUpon>FormProfilZak.cs</DependentUpon>
+    </Compile>
     <Compile Include="FormReg.cs">
       <SubType>Form</SubType>
     </Compile>
     <Compile Include="FormReg.Designer.cs">
       <DependentUpon>FormReg.cs</DependentUpon>
     </Compile>
-    <Compile Include="FormZakazchik.cs">
+    <Compile Include="FormAddZak.cs">
       <SubType>Form</SubType>
     </Compile>
-    <Compile Include="FormZakazchik.Designer.cs">
-      <DependentUpon>FormZakazchik.cs</DependentUpon>
+    <Compile Include="FormAddZak.Designer.cs">
+      <DependentUpon>FormAddZak.cs</DependentUpon>
     </Compile>
     <Compile Include="Program.cs" />
     <Compile Include="Properties\AssemblyInfo.cs" />
@@ -107,6 +119,9 @@
     <EmbeddedResource Include="Form2.resx">
       <DependentUpon>Form2.cs</DependentUpon>
     </EmbeddedResource>
+    <EmbeddedResource Include="FormZakazchik.resx">
+      <DependentUpon>FormZakazchik.cs</DependentUpon>
+    </EmbeddedResource>
     <EmbeddedResource Include="FormKladovschik.resx">
       <DependentUpon>FormKladovschik.cs</DependentUpon>
     </EmbeddedResource>
@@ -116,11 +131,14 @@
     <EmbeddedResource Include="FormManager.resx">
       <DependentUpon>FormManager.cs</DependentUpon>
     </EmbeddedResource>
+    <EmbeddedResource Include="FormProfilZak.resx">
+      <DependentUpon>FormProfilZak.cs</DependentUpon>
+    </EmbeddedResource>
     <EmbeddedResource Include="FormReg.resx">
       <DependentUpon>FormReg.cs</DependentUpon>
     </EmbeddedResource>
-    <EmbeddedResource Include="FormZakazchik.resx">
-      <DependentUpon>FormZakazchik.cs</DependentUpon>
+    <EmbeddedResource Include="FormAddZak.resx">
+      <DependentUpon>FormAddZak.cs</DependentUpon>
     </EmbeddedResource>
     <EmbeddedResource Include="Properties\Resources.resx">
       <Generator>ResXFileCodeGenerator</Generator>