Browse Source

День 2

Your Name 2 years ago
parent
commit
06cc122d6b
16 changed files with 1364 additions and 21 deletions
  1. 287 4
      FormAddOrder.Designer.cs
  2. 72 0
      FormAddOrder.cs
  3. 27 0
      FormAddOrder.resx
  4. 138 2
      FormKlad.Designer.cs
  5. 16 0
      FormKlad.cs
  6. 86 0
      FormKlad.resx
  7. 183 0
      FormLevin.Designer.cs
  8. 69 0
      FormLevin.cs
  9. 200 0
      FormLevin.resx
  10. 2 0
      FormMain.cs
  11. 138 2
      FormMen.Designer.cs
  12. 16 0
      FormMen.cs
  13. 86 0
      FormMen.resx
  14. 27 13
      FormZak.Designer.cs
  15. 8 0
      FormZak.cs
  16. 9 0
      СУБД Фабрика.csproj

+ 287 - 4
FormAddOrder.Designer.cs

@@ -28,12 +28,43 @@
         /// </summary>
         private void InitializeComponent()
         {
+            this.components = new System.ComponentModel.Container();
             System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormAddOrder));
             this.panel1 = new System.Windows.Forms.Panel();
             this.label1 = new System.Windows.Forms.Label();
             this.pictureBox1 = new System.Windows.Forms.PictureBox();
+            this.CbxIzd = new System.Windows.Forms.ComboBox();
+            this.BsZak = new System.Windows.Forms.BindingSource(this.components);
+            this.sewingFactoryMURDataSet1 = new СУБД_Фабрика.SewingFactoryMURDataSet();
+            this.BsIzd = new System.Windows.Forms.BindingSource(this.components);
+            this.CbxFurn = new System.Windows.Forms.ComboBox();
+            this.BsFur = new System.Windows.Forms.BindingSource(this.components);
+            this.CbxCloth = new System.Windows.Forms.ComboBox();
+            this.BsCloth = new System.Windows.Forms.BindingSource(this.components);
+            this.TbxCountFur = new System.Windows.Forms.TextBox();
+            this.TbxCountIzd = new System.Windows.Forms.TextBox();
+            this.label2 = new System.Windows.Forms.Label();
+            this.label3 = new System.Windows.Forms.Label();
+            this.label4 = new System.Windows.Forms.Label();
+            this.label5 = new System.Windows.Forms.Label();
+            this.label6 = new System.Windows.Forms.Label();
+            this.BtnCreateOrder = new System.Windows.Forms.Button();
+            this.BtnCancel = new System.Windows.Forms.Button();
+            this.ordersTableAdapter = new СУБД_Фабрика.SewingFactoryMURDataSetTableAdapters.OrdersTableAdapter();
+            this.izdeliaTableAdapter = new СУБД_Фабрика.SewingFactoryMURDataSetTableAdapters.IzdeliaTableAdapter();
+            this.clothTableAdapter = new СУБД_Фабрика.SewingFactoryMURDataSetTableAdapters.ClothTableAdapter();
+            this.furnituraTableAdapter = new СУБД_Фабрика.SewingFactoryMURDataSetTableAdapters.FurnituraTableAdapter();
+            this.LblIDMen = new System.Windows.Forms.Label();
+            this.LblIDZak = new System.Windows.Forms.Label();
+            this.LblCountFur = new System.Windows.Forms.Label();
+            this.LblCountIzd = new System.Windows.Forms.Label();
             this.panel1.SuspendLayout();
             ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
+            ((System.ComponentModel.ISupportInitialize)(this.BsZak)).BeginInit();
+            ((System.ComponentModel.ISupportInitialize)(this.sewingFactoryMURDataSet1)).BeginInit();
+            ((System.ComponentModel.ISupportInitialize)(this.BsIzd)).BeginInit();
+            ((System.ComponentModel.ISupportInitialize)(this.BsFur)).BeginInit();
+            ((System.ComponentModel.ISupportInitialize)(this.BsCloth)).BeginInit();
             this.SuspendLayout();
             // 
             // panel1
@@ -45,14 +76,14 @@
             this.panel1.Location = new System.Drawing.Point(0, 0);
             this.panel1.Margin = new System.Windows.Forms.Padding(4);
             this.panel1.Name = "panel1";
-            this.panel1.Size = new System.Drawing.Size(627, 91);
+            this.panel1.Size = new System.Drawing.Size(370, 91);
             this.panel1.TabIndex = 1;
             // 
             // label1
             // 
             this.label1.AutoSize = true;
             this.label1.Font = new System.Drawing.Font("Arial Narrow", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
-            this.label1.Location = new System.Drawing.Point(176, 37);
+            this.label1.Location = new System.Drawing.Point(95, 37);
             this.label1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
             this.label1.Name = "label1";
             this.label1.Size = new System.Drawing.Size(134, 23);
@@ -63,7 +94,7 @@
             // 
             this.pictureBox1.Dock = System.Windows.Forms.DockStyle.Right;
             this.pictureBox1.Image = global::СУБД_Фабрика.Properties.Resources.fabric_logo;
-            this.pictureBox1.Location = new System.Drawing.Point(526, 0);
+            this.pictureBox1.Location = new System.Drawing.Point(269, 0);
             this.pictureBox1.Margin = new System.Windows.Forms.Padding(4);
             this.pictureBox1.Name = "pictureBox1";
             this.pictureBox1.Size = new System.Drawing.Size(101, 91);
@@ -71,22 +102,249 @@
             this.pictureBox1.TabIndex = 0;
             this.pictureBox1.TabStop = false;
             // 
+            // CbxIzd
+            // 
+            this.CbxIzd.DataBindings.Add(new System.Windows.Forms.Binding("SelectedValue", this.BsZak, "IDIzd", true));
+            this.CbxIzd.DataSource = this.BsIzd;
+            this.CbxIzd.DisplayMember = "Title";
+            this.CbxIzd.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
+            this.CbxIzd.FormattingEnabled = true;
+            this.CbxIzd.Location = new System.Drawing.Point(99, 124);
+            this.CbxIzd.Name = "CbxIzd";
+            this.CbxIzd.Size = new System.Drawing.Size(152, 28);
+            this.CbxIzd.TabIndex = 2;
+            this.CbxIzd.ValueMember = "IDIzd";
+            // 
+            // BsZak
+            // 
+            this.BsZak.DataMember = "Orders";
+            this.BsZak.DataSource = this.sewingFactoryMURDataSet1;
+            // 
+            // sewingFactoryMURDataSet1
+            // 
+            this.sewingFactoryMURDataSet1.DataSetName = "SewingFactoryMURDataSet";
+            this.sewingFactoryMURDataSet1.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
+            // 
+            // BsIzd
+            // 
+            this.BsIzd.DataMember = "Izdelia";
+            this.BsIzd.DataSource = this.sewingFactoryMURDataSet1;
+            // 
+            // CbxFurn
+            // 
+            this.CbxFurn.DataBindings.Add(new System.Windows.Forms.Binding("SelectedValue", this.BsZak, "IDFur", true));
+            this.CbxFurn.DataSource = this.BsFur;
+            this.CbxFurn.DisplayMember = "namefur";
+            this.CbxFurn.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
+            this.CbxFurn.FormattingEnabled = true;
+            this.CbxFurn.Location = new System.Drawing.Point(99, 232);
+            this.CbxFurn.Name = "CbxFurn";
+            this.CbxFurn.Size = new System.Drawing.Size(152, 28);
+            this.CbxFurn.TabIndex = 3;
+            this.CbxFurn.ValueMember = "idfur";
+            // 
+            // BsFur
+            // 
+            this.BsFur.DataMember = "Furnitura";
+            this.BsFur.DataSource = this.sewingFactoryMURDataSet1;
+            // 
+            // CbxCloth
+            // 
+            this.CbxCloth.DataBindings.Add(new System.Windows.Forms.Binding("SelectedValue", this.BsZak, "IDCloth", true));
+            this.CbxCloth.DataSource = this.BsCloth;
+            this.CbxCloth.DisplayMember = "Title";
+            this.CbxCloth.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
+            this.CbxCloth.FormattingEnabled = true;
+            this.CbxCloth.Location = new System.Drawing.Point(99, 178);
+            this.CbxCloth.Name = "CbxCloth";
+            this.CbxCloth.Size = new System.Drawing.Size(152, 28);
+            this.CbxCloth.TabIndex = 4;
+            this.CbxCloth.ValueMember = "IDCloth";
+            // 
+            // BsCloth
+            // 
+            this.BsCloth.DataMember = "Cloth";
+            this.BsCloth.DataSource = this.sewingFactoryMURDataSet1;
+            // 
+            // TbxCountFur
+            // 
+            this.TbxCountFur.Location = new System.Drawing.Point(99, 290);
+            this.TbxCountFur.Name = "TbxCountFur";
+            this.TbxCountFur.Size = new System.Drawing.Size(152, 26);
+            this.TbxCountFur.TabIndex = 5;
+            // 
+            // TbxCountIzd
+            // 
+            this.TbxCountIzd.Location = new System.Drawing.Point(99, 350);
+            this.TbxCountIzd.Name = "TbxCountIzd";
+            this.TbxCountIzd.Size = new System.Drawing.Size(152, 26);
+            this.TbxCountIzd.TabIndex = 6;
+            // 
+            // label2
+            // 
+            this.label2.AutoSize = true;
+            this.label2.Location = new System.Drawing.Point(122, 101);
+            this.label2.Name = "label2";
+            this.label2.Size = new System.Drawing.Size(67, 20);
+            this.label2.TabIndex = 7;
+            this.label2.Text = "Изделие:";
+            // 
+            // label3
+            // 
+            this.label3.AutoSize = true;
+            this.label3.Location = new System.Drawing.Point(133, 155);
+            this.label3.Name = "label3";
+            this.label3.Size = new System.Drawing.Size(47, 20);
+            this.label3.TabIndex = 8;
+            this.label3.Text = "Ткань:";
+            // 
+            // label4
+            // 
+            this.label4.AutoSize = true;
+            this.label4.Location = new System.Drawing.Point(122, 209);
+            this.label4.Name = "label4";
+            this.label4.Size = new System.Drawing.Size(79, 20);
+            this.label4.TabIndex = 9;
+            this.label4.Text = "Фурнитура:";
+            // 
+            // label5
+            // 
+            this.label5.AutoSize = true;
+            this.label5.Location = new System.Drawing.Point(95, 267);
+            this.label5.Name = "label5";
+            this.label5.Size = new System.Drawing.Size(130, 20);
+            this.label5.TabIndex = 10;
+            this.label5.Text = "Кол-во фурнитуры:";
+            // 
+            // label6
+            // 
+            this.label6.AutoSize = true;
+            this.label6.Location = new System.Drawing.Point(95, 327);
+            this.label6.Name = "label6";
+            this.label6.Size = new System.Drawing.Size(111, 20);
+            this.label6.TabIndex = 11;
+            this.label6.Text = "Кол-во изделий:";
+            // 
+            // BtnCreateOrder
+            // 
+            this.BtnCreateOrder.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(156)))), ((int)(((byte)(26)))));
+            this.BtnCreateOrder.Location = new System.Drawing.Point(23, 441);
+            this.BtnCreateOrder.Name = "BtnCreateOrder";
+            this.BtnCreateOrder.Size = new System.Drawing.Size(135, 31);
+            this.BtnCreateOrder.TabIndex = 19;
+            this.BtnCreateOrder.Text = "Создать заказ";
+            this.BtnCreateOrder.UseVisualStyleBackColor = false;
+            this.BtnCreateOrder.Click += new System.EventHandler(this.BtnCreateOrder_Click);
+            // 
+            // 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(223, 441);
+            this.BtnCancel.Name = "BtnCancel";
+            this.BtnCancel.Size = new System.Drawing.Size(135, 31);
+            this.BtnCancel.TabIndex = 20;
+            this.BtnCancel.Text = "Отмена";
+            this.BtnCancel.UseVisualStyleBackColor = false;
+            // 
+            // ordersTableAdapter
+            // 
+            this.ordersTableAdapter.ClearBeforeFill = true;
+            // 
+            // izdeliaTableAdapter
+            // 
+            this.izdeliaTableAdapter.ClearBeforeFill = true;
+            // 
+            // clothTableAdapter
+            // 
+            this.clothTableAdapter.ClearBeforeFill = true;
+            // 
+            // furnituraTableAdapter
+            // 
+            this.furnituraTableAdapter.ClearBeforeFill = true;
+            // 
+            // LblIDMen
+            // 
+            this.LblIDMen.AutoSize = true;
+            this.LblIDMen.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.BsZak, "IDMen", true));
+            this.LblIDMen.Location = new System.Drawing.Point(23, 107);
+            this.LblIDMen.Name = "LblIDMen";
+            this.LblIDMen.Size = new System.Drawing.Size(45, 20);
+            this.LblIDMen.TabIndex = 21;
+            this.LblIDMen.Text = "label7";
+            // 
+            // LblIDZak
+            // 
+            this.LblIDZak.AutoSize = true;
+            this.LblIDZak.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.BsZak, "IDZak", true));
+            this.LblIDZak.Location = new System.Drawing.Point(300, 113);
+            this.LblIDZak.Name = "LblIDZak";
+            this.LblIDZak.Size = new System.Drawing.Size(45, 20);
+            this.LblIDZak.TabIndex = 22;
+            this.LblIDZak.Text = "label7";
+            // 
+            // LblCountFur
+            // 
+            this.LblCountFur.AutoSize = true;
+            this.LblCountFur.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.BsZak, "CountFur", true));
+            this.LblCountFur.Location = new System.Drawing.Point(12, 181);
+            this.LblCountFur.Name = "LblCountFur";
+            this.LblCountFur.Size = new System.Drawing.Size(45, 20);
+            this.LblCountFur.TabIndex = 23;
+            this.LblCountFur.Text = "label7";
+            // 
+            // LblCountIzd
+            // 
+            this.LblCountIzd.AutoSize = true;
+            this.LblCountIzd.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.BsZak, "CountIzd", true));
+            this.LblCountIzd.Location = new System.Drawing.Point(285, 186);
+            this.LblCountIzd.Name = "LblCountIzd";
+            this.LblCountIzd.Size = new System.Drawing.Size(45, 20);
+            this.LblCountIzd.TabIndex = 24;
+            this.LblCountIzd.Text = "label7";
+            // 
             // FormAddOrder
             // 
             this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 20F);
             this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
             this.BackColor = System.Drawing.Color.White;
-            this.ClientSize = new System.Drawing.Size(627, 387);
+            this.ClientSize = new System.Drawing.Size(370, 495);
+            this.Controls.Add(this.LblCountIzd);
+            this.Controls.Add(this.LblCountFur);
+            this.Controls.Add(this.LblIDZak);
+            this.Controls.Add(this.LblIDMen);
+            this.Controls.Add(this.BtnCancel);
+            this.Controls.Add(this.BtnCreateOrder);
+            this.Controls.Add(this.label6);
+            this.Controls.Add(this.label5);
+            this.Controls.Add(this.label4);
+            this.Controls.Add(this.label3);
+            this.Controls.Add(this.label2);
+            this.Controls.Add(this.TbxCountIzd);
+            this.Controls.Add(this.TbxCountFur);
+            this.Controls.Add(this.CbxCloth);
+            this.Controls.Add(this.CbxFurn);
+            this.Controls.Add(this.CbxIzd);
             this.Controls.Add(this.panel1);
             this.Font = new System.Drawing.Font("Arial Narrow", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
             this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
             this.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
+            this.MinimizeBox = false;
+            this.MinimumSize = new System.Drawing.Size(386, 534);
             this.Name = "FormAddOrder";
+            this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
             this.Text = "СУБД \"Швейная фабрика\"";
+            this.Load += new System.EventHandler(this.FormAddOrder_Load);
             this.panel1.ResumeLayout(false);
             this.panel1.PerformLayout();
             ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
+            ((System.ComponentModel.ISupportInitialize)(this.BsZak)).EndInit();
+            ((System.ComponentModel.ISupportInitialize)(this.sewingFactoryMURDataSet1)).EndInit();
+            ((System.ComponentModel.ISupportInitialize)(this.BsIzd)).EndInit();
+            ((System.ComponentModel.ISupportInitialize)(this.BsFur)).EndInit();
+            ((System.ComponentModel.ISupportInitialize)(this.BsCloth)).EndInit();
             this.ResumeLayout(false);
+            this.PerformLayout();
 
         }
 
@@ -95,5 +353,30 @@
         private System.Windows.Forms.Panel panel1;
         private System.Windows.Forms.Label label1;
         private System.Windows.Forms.PictureBox pictureBox1;
+        private System.Windows.Forms.ComboBox CbxIzd;
+        private System.Windows.Forms.ComboBox CbxFurn;
+        private System.Windows.Forms.ComboBox CbxCloth;
+        private System.Windows.Forms.TextBox TbxCountFur;
+        private System.Windows.Forms.TextBox TbxCountIzd;
+        private System.Windows.Forms.Label label2;
+        private System.Windows.Forms.Label label3;
+        private System.Windows.Forms.Label label4;
+        private System.Windows.Forms.Label label5;
+        private System.Windows.Forms.Label label6;
+        private System.Windows.Forms.Button BtnCreateOrder;
+        private System.Windows.Forms.Button BtnCancel;
+        private SewingFactoryMURDataSet sewingFactoryMURDataSet1;
+        private System.Windows.Forms.BindingSource BsZak;
+        private System.Windows.Forms.BindingSource BsIzd;
+        private System.Windows.Forms.BindingSource BsCloth;
+        private System.Windows.Forms.BindingSource BsFur;
+        private SewingFactoryMURDataSetTableAdapters.OrdersTableAdapter ordersTableAdapter;
+        private SewingFactoryMURDataSetTableAdapters.IzdeliaTableAdapter izdeliaTableAdapter;
+        private SewingFactoryMURDataSetTableAdapters.ClothTableAdapter clothTableAdapter;
+        private SewingFactoryMURDataSetTableAdapters.FurnituraTableAdapter furnituraTableAdapter;
+        private System.Windows.Forms.Label LblIDMen;
+        private System.Windows.Forms.Label LblIDZak;
+        private System.Windows.Forms.Label LblCountFur;
+        private System.Windows.Forms.Label LblCountIzd;
     }
 }

+ 72 - 0
FormAddOrder.cs

@@ -2,6 +2,7 @@
 using System.Collections.Generic;
 using System.ComponentModel;
 using System.Data;
+using System.Data.SqlClient;
 using System.Drawing;
 using System.Linq;
 using System.Text;
@@ -16,5 +17,76 @@ namespace СУБД_Фабрика
         {
             InitializeComponent();
         }
+        SqlConnection Con = new SqlConnection(FormMain.txtCon);
+        private void FormAddOrder_Load(object sender, EventArgs e)
+        {
+            // TODO: This line of code loads data into the 'sewingFactoryMURDataSet1.Furnitura' table. You can move, or remove it, as needed.
+            this.furnituraTableAdapter.Fill(this.sewingFactoryMURDataSet1.Furnitura);
+            // TODO: This line of code loads data into the 'sewingFactoryMURDataSet1.Cloth' table. You can move, or remove it, as needed.
+            this.clothTableAdapter.Fill(this.sewingFactoryMURDataSet1.Cloth);
+            // TODO: This line of code loads data into the 'sewingFactoryMURDataSet1.Izdelia' table. You can move, or remove it, as needed.
+            this.izdeliaTableAdapter.Fill(this.sewingFactoryMURDataSet1.Izdelia);
+            // TODO: This line of code loads data into the 'sewingFactoryMURDataSet1.Orders' table. You can move, or remove it, as needed.
+            this.ordersTableAdapter.Fill(this.sewingFactoryMURDataSet1.Orders);
+
+            BsZak.AddNew();
+            BsZak.Position = BsZak.Count - 1;
+            CbxCloth.SelectedIndex = 0;
+            CbxFurn.SelectedIndex = 0;
+            CbxIzd.SelectedIndex = 0;
+            LblCountFur.Hide();
+            LblCountIzd.Hide();
+            LblIDMen.Hide();
+            LblIDZak.Hide();
+        }
+
+        private void BtnCreateOrder_Click(object sender, EventArgs e)
+        {
+            int f, i;
+            if(TbxCountFur.Text == "" || TbxCountIzd.Text == "")
+            {
+                MessageBox.Show("Не все данные заполнены", "Внимание", MessageBoxButtons.OK, MessageBoxIcon.Information);
+                return;
+            }
+
+            try
+            {
+                f = int.Parse(TbxCountFur.Text);
+                i = int.Parse(TbxCountIzd.Text);
+            }
+            catch
+            {
+                MessageBox.Show("Данные по количеству введены неверно", "Внимание", MessageBoxButtons.OK, MessageBoxIcon.Information);
+                return;
+            }
+            LblCountFur.Text = TbxCountFur.Text;
+            LblCountIzd.Text = TbxCountIzd.Text;
+            LblIDZak.Text = FormMain.IDUser;
+            string txtQuery = $@"select IDUser from Users where Role = 2 and IDUser not in (select IDMen from Orders)";
+            Con.Open();
+
+            SqlCommand query = new SqlCommand(txtQuery, Con);
+            SqlDataReader res = query.ExecuteReader();
+            if (res.Read())
+            {
+                LblIDMen.Text = res["User"].ToString();
+                Con.Close();
+            }
+            else
+            {
+                Con.Close();
+                txtQuery = $@"select IDMen, (select COUNT(*) from Orders where IDMen = o.IDMen) as co from Orders o group by IDMen order by co";
+                Con.Open();
+                query = new SqlCommand(txtQuery, Con);
+                res = query.ExecuteReader();
+                res.Read();
+                LblIDMen.Text = res["IDMen"].ToString();
+                Con.Close();
+            }
+            BsZak.EndEdit();
+            this.ordersTableAdapter.Update(this.sewingFactoryMURDataSet1.Orders);
+            this.ordersTableAdapter.Fill(this.sewingFactoryMURDataSet1.Orders);
+            Close();
+        }
     }
 }

+ 27 - 0
FormAddOrder.resx

@@ -117,6 +117,33 @@
   <resheader name="writer">
     <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
   </resheader>
+  <metadata name="BsZak.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+    <value>222, 17</value>
+  </metadata>
+  <metadata name="sewingFactoryMURDataSet1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+    <value>17, 17</value>
+  </metadata>
+  <metadata name="BsIzd.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+    <value>305, 17</value>
+  </metadata>
+  <metadata name="BsFur.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+    <value>474, 17</value>
+  </metadata>
+  <metadata name="BsCloth.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+    <value>385, 17</value>
+  </metadata>
+  <metadata name="ordersTableAdapter.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+    <value>555, 17</value>
+  </metadata>
+  <metadata name="izdeliaTableAdapter.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+    <value>715, 17</value>
+  </metadata>
+  <metadata name="clothTableAdapter.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+    <value>874, 17</value>
+  </metadata>
+  <metadata name="furnituraTableAdapter.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+    <value>1026, 17</value>
+  </metadata>
   <assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
   <data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
     <value>

+ 138 - 2
FormKlad.Designer.cs

@@ -28,19 +28,155 @@
         /// </summary>
         private void InitializeComponent()
         {
+            this.components = new System.ComponentModel.Container();
+            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormKlad));
+            this.panel1 = new System.Windows.Forms.Panel();
+            this.LblOtch = new System.Windows.Forms.Label();
+            this.LblName = new System.Windows.Forms.Label();
+            this.LblFam = new System.Windows.Forms.Label();
+            this.label1 = new System.Windows.Forms.Label();
+            this.pictureBox1 = new System.Windows.Forms.PictureBox();
+            this.sewingFactoryMURDataSet1 = new СУБД_Фабрика.SewingFactoryMURDataSet();
+            this.BsUsers = new System.Windows.Forms.BindingSource(this.components);
+            this.usersTableAdapter = new СУБД_Фабрика.SewingFactoryMURDataSetTableAdapters.UsersTableAdapter();
+            this.BtnProfile = new System.Windows.Forms.Button();
+            this.panel1.SuspendLayout();
+            ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
+            ((System.ComponentModel.ISupportInitialize)(this.sewingFactoryMURDataSet1)).BeginInit();
+            ((System.ComponentModel.ISupportInitialize)(this.BsUsers)).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.LblOtch);
+            this.panel1.Controls.Add(this.LblName);
+            this.panel1.Controls.Add(this.LblFam);
+            this.panel1.Controls.Add(this.label1);
+            this.panel1.Controls.Add(this.pictureBox1);
+            this.panel1.Dock = System.Windows.Forms.DockStyle.Top;
+            this.panel1.Font = new System.Drawing.Font("Arial Narrow", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
+            this.panel1.Location = new System.Drawing.Point(0, 0);
+            this.panel1.Margin = new System.Windows.Forms.Padding(5, 6, 5, 6);
+            this.panel1.Name = "panel1";
+            this.panel1.Size = new System.Drawing.Size(638, 102);
+            this.panel1.TabIndex = 3;
+            // 
+            // LblOtch
+            // 
+            this.LblOtch.AutoSize = true;
+            this.LblOtch.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.BsUsers, "Otch", true));
+            this.LblOtch.Font = new System.Drawing.Font("Arial Narrow", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
+            this.LblOtch.Location = new System.Drawing.Point(21, 65);
+            this.LblOtch.Name = "LblOtch";
+            this.LblOtch.Size = new System.Drawing.Size(36, 20);
+            this.LblOtch.TabIndex = 4;
+            this.LblOtch.Text = "Otch";
+            // 
+            // LblName
+            // 
+            this.LblName.AutoSize = true;
+            this.LblName.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.BsUsers, "Name", true));
+            this.LblName.Font = new System.Drawing.Font("Arial Narrow", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
+            this.LblName.Location = new System.Drawing.Point(22, 45);
+            this.LblName.Name = "LblName";
+            this.LblName.Size = new System.Drawing.Size(43, 20);
+            this.LblName.TabIndex = 3;
+            this.LblName.Text = "Name";
+            // 
+            // LblFam
+            // 
+            this.LblFam.AutoSize = true;
+            this.LblFam.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.BsUsers, "Fam", true));
+            this.LblFam.Font = new System.Drawing.Font("Arial Narrow", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
+            this.LblFam.Location = new System.Drawing.Point(22, 22);
+            this.LblFam.Name = "LblFam";
+            this.LblFam.Size = new System.Drawing.Size(35, 20);
+            this.LblFam.TabIndex = 2;
+            this.LblFam.Text = "Fam";
+            // 
+            // label1
+            // 
+            this.label1.AutoSize = true;
+            this.label1.Font = new System.Drawing.Font("Arial Narrow", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
+            this.label1.Location = new System.Drawing.Point(193, 42);
+            this.label1.Margin = new System.Windows.Forms.Padding(5, 0, 5, 0);
+            this.label1.Name = "label1";
+            this.label1.Size = new System.Drawing.Size(92, 23);
+            this.label1.TabIndex = 1;
+            this.label1.Text = "Кладовщик";
+            // 
+            // pictureBox1
+            // 
+            this.pictureBox1.Dock = System.Windows.Forms.DockStyle.Right;
+            this.pictureBox1.Image = global::СУБД_Фабрика.Properties.Resources.fabric_logo;
+            this.pictureBox1.Location = new System.Drawing.Point(532, 0);
+            this.pictureBox1.Margin = new System.Windows.Forms.Padding(5, 6, 5, 6);
+            this.pictureBox1.Name = "pictureBox1";
+            this.pictureBox1.Size = new System.Drawing.Size(106, 102);
+            this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
+            this.pictureBox1.TabIndex = 0;
+            this.pictureBox1.TabStop = false;
+            // 
+            // sewingFactoryMURDataSet1
+            // 
+            this.sewingFactoryMURDataSet1.DataSetName = "SewingFactoryMURDataSet";
+            this.sewingFactoryMURDataSet1.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
+            // 
+            // BsUsers
+            // 
+            this.BsUsers.DataMember = "Users";
+            this.BsUsers.DataSource = this.sewingFactoryMURDataSet1;
+            // 
+            // usersTableAdapter
+            // 
+            this.usersTableAdapter.ClearBeforeFill = true;
+            // 
+            // BtnProfile
+            // 
+            this.BtnProfile.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(156)))), ((int)(((byte)(26)))));
+            this.BtnProfile.Location = new System.Drawing.Point(25, 111);
+            this.BtnProfile.Name = "BtnProfile";
+            this.BtnProfile.Size = new System.Drawing.Size(135, 31);
+            this.BtnProfile.TabIndex = 19;
+            this.BtnProfile.Text = "Профиль";
+            this.BtnProfile.UseVisualStyleBackColor = false;
+            this.BtnProfile.Click += new System.EventHandler(this.BtnProfile_Click);
+            // 
             // FormKlad
             // 
-            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
+            this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 20F);
             this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
-            this.ClientSize = new System.Drawing.Size(800, 450);
+            this.BackColor = System.Drawing.Color.White;
+            this.ClientSize = new System.Drawing.Size(638, 440);
+            this.Controls.Add(this.BtnProfile);
+            this.Controls.Add(this.panel1);
+            this.Font = new System.Drawing.Font("Arial Narrow", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
+            this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
+            this.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
             this.Name = "FormKlad";
             this.Text = "СУБД \"Швейная фабрика\"";
+            this.Load += new System.EventHandler(this.FormKlad_Load);
+            this.panel1.ResumeLayout(false);
+            this.panel1.PerformLayout();
+            ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
+            ((System.ComponentModel.ISupportInitialize)(this.sewingFactoryMURDataSet1)).EndInit();
+            ((System.ComponentModel.ISupportInitialize)(this.BsUsers)).EndInit();
             this.ResumeLayout(false);
 
         }
 
         #endregion
+
+        private System.Windows.Forms.Panel panel1;
+        private System.Windows.Forms.Label LblOtch;
+        private System.Windows.Forms.Label LblName;
+        private System.Windows.Forms.Label LblFam;
+        private System.Windows.Forms.Label label1;
+        private System.Windows.Forms.PictureBox pictureBox1;
+        private SewingFactoryMURDataSet sewingFactoryMURDataSet1;
+        private System.Windows.Forms.BindingSource BsUsers;
+        private SewingFactoryMURDataSetTableAdapters.UsersTableAdapter usersTableAdapter;
+        private System.Windows.Forms.Button BtnProfile;
     }
 }

+ 16 - 0
FormKlad.cs

@@ -16,5 +16,21 @@ namespace СУБД_Фабрика
         {
             InitializeComponent();
         }
+
+        private void FormKlad_Load(object sender, EventArgs e)
+        {
+            // TODO: This line of code loads data into the 'sewingFactoryMURDataSet1.Users' table. You can move, or remove it, as needed.
+            this.usersTableAdapter.Fill(this.sewingFactoryMURDataSet1.Users);
+            BsUsers.Filter = $"IDUser = {FormMain.IDUser}";
+        }
+
+        private void BtnProfile_Click(object sender, EventArgs e)
+        {
+            FormProfile FrmProf = new FormProfile();
+            if (FrmProf.ShowDialog() == DialogResult.OK)
+            {
+                this.usersTableAdapter.Fill(this.sewingFactoryMURDataSet1.Users);
+            }
+        }
     }
 }

+ 86 - 0
FormKlad.resx

@@ -117,4 +117,90 @@
   <resheader name="writer">
     <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
   </resheader>
+  <metadata name="BsUsers.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+    <value>222, 17</value>
+  </metadata>
+  <metadata name="sewingFactoryMURDataSet1.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>316, 17</value>
+  </metadata>
+  <assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
+  <data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+    <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>

+ 183 - 0
FormLevin.Designer.cs

@@ -0,0 +1,183 @@
+namespace СУБД_Фабрика
+{
+    partial class FormLevin
+    {
+        /// <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()
+        {
+            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormLevin));
+            this.panel1 = new System.Windows.Forms.Panel();
+            this.label1 = new System.Windows.Forms.Label();
+            this.pictureBox1 = new System.Windows.Forms.PictureBox();
+            this.label2 = new System.Windows.Forms.Label();
+            this.TbxLeven = new System.Windows.Forms.TextBox();
+            this.BtnLeven = new System.Windows.Forms.Button();
+            this.BtnShowAll = new System.Windows.Forms.Button();
+            this.DgvClothes = new System.Windows.Forms.DataGridView();
+            this.TitleClith = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.panel1.SuspendLayout();
+            ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
+            ((System.ComponentModel.ISupportInitialize)(this.DgvClothes)).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.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.Margin = new System.Windows.Forms.Padding(4);
+            this.panel1.Name = "panel1";
+            this.panel1.Size = new System.Drawing.Size(392, 91);
+            this.panel1.TabIndex = 2;
+            // 
+            // label1
+            // 
+            this.label1.AutoSize = true;
+            this.label1.Font = new System.Drawing.Font("Arial Narrow", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
+            this.label1.Location = new System.Drawing.Point(64, 37);
+            this.label1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
+            this.label1.Name = "label1";
+            this.label1.Size = new System.Drawing.Size(169, 23);
+            this.label1.TabIndex = 1;
+            this.label1.Text = "Нечеткий поиск ткани";
+            // 
+            // pictureBox1
+            // 
+            this.pictureBox1.Dock = System.Windows.Forms.DockStyle.Right;
+            this.pictureBox1.Image = global::СУБД_Фабрика.Properties.Resources.fabric_logo;
+            this.pictureBox1.Location = new System.Drawing.Point(291, 0);
+            this.pictureBox1.Margin = new System.Windows.Forms.Padding(4);
+            this.pictureBox1.Name = "pictureBox1";
+            this.pictureBox1.Size = new System.Drawing.Size(101, 91);
+            this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
+            this.pictureBox1.TabIndex = 0;
+            this.pictureBox1.TabStop = false;
+            // 
+            // label2
+            // 
+            this.label2.AutoSize = true;
+            this.label2.Location = new System.Drawing.Point(111, 113);
+            this.label2.Name = "label2";
+            this.label2.Size = new System.Drawing.Size(173, 20);
+            this.label2.TabIndex = 3;
+            this.label2.Text = "Введите текст для поиска:";
+            // 
+            // TbxLeven
+            // 
+            this.TbxLeven.Location = new System.Drawing.Point(115, 148);
+            this.TbxLeven.Name = "TbxLeven";
+            this.TbxLeven.Size = new System.Drawing.Size(169, 26);
+            this.TbxLeven.TabIndex = 4;
+            // 
+            // BtnLeven
+            // 
+            this.BtnLeven.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(156)))), ((int)(((byte)(26)))));
+            this.BtnLeven.Location = new System.Drawing.Point(35, 180);
+            this.BtnLeven.Name = "BtnLeven";
+            this.BtnLeven.Size = new System.Drawing.Size(135, 31);
+            this.BtnLeven.TabIndex = 20;
+            this.BtnLeven.Text = "Поиск";
+            this.BtnLeven.UseVisualStyleBackColor = false;
+            this.BtnLeven.Click += new System.EventHandler(this.BtnLeven_Click);
+            // 
+            // BtnShowAll
+            // 
+            this.BtnShowAll.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(156)))), ((int)(((byte)(26)))));
+            this.BtnShowAll.Location = new System.Drawing.Point(210, 180);
+            this.BtnShowAll.Name = "BtnShowAll";
+            this.BtnShowAll.Size = new System.Drawing.Size(135, 31);
+            this.BtnShowAll.TabIndex = 21;
+            this.BtnShowAll.Text = "Показать все";
+            this.BtnShowAll.UseVisualStyleBackColor = false;
+            this.BtnShowAll.Click += new System.EventHandler(this.BtnShowAll_Click);
+            // 
+            // DgvClothes
+            // 
+            this.DgvClothes.AllowUserToAddRows = false;
+            this.DgvClothes.AllowUserToDeleteRows = false;
+            this.DgvClothes.AllowUserToResizeColumns = false;
+            this.DgvClothes.AllowUserToResizeRows = false;
+            this.DgvClothes.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
+            this.DgvClothes.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
+            this.TitleClith});
+            this.DgvClothes.Location = new System.Drawing.Point(77, 217);
+            this.DgvClothes.Name = "DgvClothes";
+            this.DgvClothes.ReadOnly = true;
+            this.DgvClothes.RowHeadersVisible = false;
+            this.DgvClothes.Size = new System.Drawing.Size(236, 240);
+            this.DgvClothes.TabIndex = 22;
+            // 
+            // TitleClith
+            // 
+            this.TitleClith.HeaderText = "Название ткани";
+            this.TitleClith.Name = "TitleClith";
+            this.TitleClith.ReadOnly = true;
+            this.TitleClith.Width = 230;
+            // 
+            // FormLevin
+            // 
+            this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 20F);
+            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+            this.BackColor = System.Drawing.Color.White;
+            this.ClientSize = new System.Drawing.Size(392, 484);
+            this.Controls.Add(this.DgvClothes);
+            this.Controls.Add(this.BtnShowAll);
+            this.Controls.Add(this.BtnLeven);
+            this.Controls.Add(this.TbxLeven);
+            this.Controls.Add(this.label2);
+            this.Controls.Add(this.panel1);
+            this.Font = new System.Drawing.Font("Arial Narrow", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
+            this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
+            this.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
+            this.MinimumSize = new System.Drawing.Size(408, 523);
+            this.Name = "FormLevin";
+            this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
+            this.Text = "СУБД \"Швейная фабрика\"";
+            this.Load += new System.EventHandler(this.FormLevin_Load);
+            this.panel1.ResumeLayout(false);
+            this.panel1.PerformLayout();
+            ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
+            ((System.ComponentModel.ISupportInitialize)(this.DgvClothes)).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.Label label2;
+        private System.Windows.Forms.TextBox TbxLeven;
+        private System.Windows.Forms.Button BtnLeven;
+        private System.Windows.Forms.Button BtnShowAll;
+        private System.Windows.Forms.DataGridView DgvClothes;
+        private System.Windows.Forms.DataGridViewTextBoxColumn TitleClith;
+    }
+}

+ 69 - 0
FormLevin.cs

@@ -0,0 +1,69 @@
+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 FormLevin : Form
+    {
+        public FormLevin()
+        {
+            InitializeComponent();
+        }
+
+        SqlConnection Con = new SqlConnection(FormMain.txtCon); 
+
+        List<string> LstTitle = new List<string>();
+
+        static int Levenshtein(string text1, string text2)
+        {
+            int CntLev = Math.Abs(text1.Length - text2.Length);
+            for (int i = 0; i <= Math.Min(text1.Length, text2.Length) - 1; i++)
+            {
+                if (text1[i] != text2[i])
+                    CntLev++;
+            }
+            return CntLev;
+        }
+
+        private void FormLevin_Load(object sender, EventArgs e)
+        {
+            string txtQuery = "select Title from Cloth";
+            Con.Open();
+            SqlCommand query = new SqlCommand(txtQuery, Con);
+            SqlDataReader Res = query.ExecuteReader();
+            while(Res.Read())
+            {
+                LstTitle.Add(Res["Title"].ToString());
+            }
+            Con.Close();
+            BtnShowAll_Click(sender, e);
+        }
+
+        private void BtnShowAll_Click(object sender, EventArgs e)
+        {
+            DgvClothes.Rows.Clear();
+            foreach (string title in LstTitle)
+                DgvClothes.Rows.Add(title);
+        }
+
+        private void BtnLeven_Click(object sender, EventArgs e)
+        {
+            DgvClothes.Rows.Clear();
+            foreach(string title in LstTitle)
+            {
+                if(Levenshtein(title, TbxLeven.Text) <= 3)
+                {
+                    DgvClothes.Rows.Add(title);
+                }
+            }
+        }
+    }
+}

+ 200 - 0
FormLevin.resx

@@ -0,0 +1,200 @@
+<?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="TitleClith.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">
+    <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>

+ 2 - 0
FormMain.cs

@@ -83,7 +83,9 @@ namespace СУБД_Фабрика
                 if (role == "1")
                 {
                     FormZak frmZak = new FormZak();
+                    this.Hide();
                     frmZak.ShowDialog();
+                    this.Show();
                 }
                 if(role == "2")
                 {

+ 138 - 2
FormMen.Designer.cs

@@ -28,19 +28,155 @@
         /// </summary>
         private void InitializeComponent()
         {
+            this.components = new System.ComponentModel.Container();
+            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormMen));
+            this.panel1 = new System.Windows.Forms.Panel();
+            this.LblOtch = new System.Windows.Forms.Label();
+            this.LblName = new System.Windows.Forms.Label();
+            this.LblFam = new System.Windows.Forms.Label();
+            this.label1 = new System.Windows.Forms.Label();
+            this.pictureBox1 = new System.Windows.Forms.PictureBox();
+            this.sewingFactoryMURDataSet1 = new СУБД_Фабрика.SewingFactoryMURDataSet();
+            this.BsUsers = new System.Windows.Forms.BindingSource(this.components);
+            this.usersTableAdapter = new СУБД_Фабрика.SewingFactoryMURDataSetTableAdapters.UsersTableAdapter();
+            this.BtnProfile = new System.Windows.Forms.Button();
+            this.panel1.SuspendLayout();
+            ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
+            ((System.ComponentModel.ISupportInitialize)(this.sewingFactoryMURDataSet1)).BeginInit();
+            ((System.ComponentModel.ISupportInitialize)(this.BsUsers)).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.LblOtch);
+            this.panel1.Controls.Add(this.LblName);
+            this.panel1.Controls.Add(this.LblFam);
+            this.panel1.Controls.Add(this.label1);
+            this.panel1.Controls.Add(this.pictureBox1);
+            this.panel1.Dock = System.Windows.Forms.DockStyle.Top;
+            this.panel1.Font = new System.Drawing.Font("Arial Narrow", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
+            this.panel1.Location = new System.Drawing.Point(0, 0);
+            this.panel1.Margin = new System.Windows.Forms.Padding(5, 6, 5, 6);
+            this.panel1.Name = "panel1";
+            this.panel1.Size = new System.Drawing.Size(531, 102);
+            this.panel1.TabIndex = 4;
+            // 
+            // LblOtch
+            // 
+            this.LblOtch.AutoSize = true;
+            this.LblOtch.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.BsUsers, "Otch", true));
+            this.LblOtch.Font = new System.Drawing.Font("Arial Narrow", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
+            this.LblOtch.Location = new System.Drawing.Point(21, 65);
+            this.LblOtch.Name = "LblOtch";
+            this.LblOtch.Size = new System.Drawing.Size(36, 20);
+            this.LblOtch.TabIndex = 4;
+            this.LblOtch.Text = "Otch";
+            // 
+            // LblName
+            // 
+            this.LblName.AutoSize = true;
+            this.LblName.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.BsUsers, "Name", true));
+            this.LblName.Font = new System.Drawing.Font("Arial Narrow", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
+            this.LblName.Location = new System.Drawing.Point(21, 45);
+            this.LblName.Name = "LblName";
+            this.LblName.Size = new System.Drawing.Size(43, 20);
+            this.LblName.TabIndex = 3;
+            this.LblName.Text = "Name";
+            // 
+            // LblFam
+            // 
+            this.LblFam.AutoSize = true;
+            this.LblFam.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.BsUsers, "Fam", true));
+            this.LblFam.Font = new System.Drawing.Font("Arial Narrow", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
+            this.LblFam.Location = new System.Drawing.Point(21, 25);
+            this.LblFam.Name = "LblFam";
+            this.LblFam.Size = new System.Drawing.Size(35, 20);
+            this.LblFam.TabIndex = 2;
+            this.LblFam.Text = "Fam";
+            // 
+            // label1
+            // 
+            this.label1.AutoSize = true;
+            this.label1.Font = new System.Drawing.Font("Arial Narrow", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
+            this.label1.Location = new System.Drawing.Point(193, 42);
+            this.label1.Margin = new System.Windows.Forms.Padding(5, 0, 5, 0);
+            this.label1.Name = "label1";
+            this.label1.Size = new System.Drawing.Size(87, 23);
+            this.label1.TabIndex = 1;
+            this.label1.Text = "Менеджер";
+            // 
+            // pictureBox1
+            // 
+            this.pictureBox1.Dock = System.Windows.Forms.DockStyle.Right;
+            this.pictureBox1.Image = global::СУБД_Фабрика.Properties.Resources.fabric_logo;
+            this.pictureBox1.Location = new System.Drawing.Point(425, 0);
+            this.pictureBox1.Margin = new System.Windows.Forms.Padding(5, 6, 5, 6);
+            this.pictureBox1.Name = "pictureBox1";
+            this.pictureBox1.Size = new System.Drawing.Size(106, 102);
+            this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
+            this.pictureBox1.TabIndex = 0;
+            this.pictureBox1.TabStop = false;
+            // 
+            // sewingFactoryMURDataSet1
+            // 
+            this.sewingFactoryMURDataSet1.DataSetName = "SewingFactoryMURDataSet";
+            this.sewingFactoryMURDataSet1.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
+            // 
+            // BsUsers
+            // 
+            this.BsUsers.DataMember = "Users";
+            this.BsUsers.DataSource = this.sewingFactoryMURDataSet1;
+            // 
+            // usersTableAdapter
+            // 
+            this.usersTableAdapter.ClearBeforeFill = true;
+            // 
+            // BtnProfile
+            // 
+            this.BtnProfile.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(156)))), ((int)(((byte)(26)))));
+            this.BtnProfile.Location = new System.Drawing.Point(25, 111);
+            this.BtnProfile.Name = "BtnProfile";
+            this.BtnProfile.Size = new System.Drawing.Size(135, 31);
+            this.BtnProfile.TabIndex = 20;
+            this.BtnProfile.Text = "Профиль";
+            this.BtnProfile.UseVisualStyleBackColor = false;
+            this.BtnProfile.Click += new System.EventHandler(this.BtnProfile_Click);
+            // 
             // FormMen
             // 
-            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
+            this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 20F);
             this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
-            this.ClientSize = new System.Drawing.Size(554, 443);
+            this.BackColor = System.Drawing.Color.White;
+            this.ClientSize = new System.Drawing.Size(531, 423);
+            this.Controls.Add(this.BtnProfile);
+            this.Controls.Add(this.panel1);
+            this.Font = new System.Drawing.Font("Arial Narrow", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
+            this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
+            this.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
             this.Name = "FormMen";
             this.Text = "СУБД \"Швейная фабрика\"";
+            this.Load += new System.EventHandler(this.FormMen_Load);
+            this.panel1.ResumeLayout(false);
+            this.panel1.PerformLayout();
+            ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
+            ((System.ComponentModel.ISupportInitialize)(this.sewingFactoryMURDataSet1)).EndInit();
+            ((System.ComponentModel.ISupportInitialize)(this.BsUsers)).EndInit();
             this.ResumeLayout(false);
 
         }
 
         #endregion
+
+        private System.Windows.Forms.Panel panel1;
+        private System.Windows.Forms.Label LblOtch;
+        private System.Windows.Forms.Label LblName;
+        private System.Windows.Forms.Label LblFam;
+        private System.Windows.Forms.Label label1;
+        private System.Windows.Forms.PictureBox pictureBox1;
+        private SewingFactoryMURDataSet sewingFactoryMURDataSet1;
+        private System.Windows.Forms.BindingSource BsUsers;
+        private SewingFactoryMURDataSetTableAdapters.UsersTableAdapter usersTableAdapter;
+        private System.Windows.Forms.Button BtnProfile;
     }
 }

+ 16 - 0
FormMen.cs

@@ -16,5 +16,21 @@ namespace СУБД_Фабрика
         {
             InitializeComponent();
         }
+
+        private void FormMen_Load(object sender, EventArgs e)
+        {
+            // TODO: This line of code loads data into the 'sewingFactoryMURDataSet1.Users' table. You can move, or remove it, as needed.
+            this.usersTableAdapter.Fill(this.sewingFactoryMURDataSet1.Users);
+            BsUsers.Filter = $"IDUser = {FormMain.IDUser}";
+        }
+
+        private void BtnProfile_Click(object sender, EventArgs e)
+        {
+            FormProfile FrmProf = new FormProfile();
+            if (FrmProf.ShowDialog() == DialogResult.OK)
+            {
+                this.usersTableAdapter.Fill(this.sewingFactoryMURDataSet1.Users);
+            }
+        }
     }
 }

+ 86 - 0
FormMen.resx

@@ -117,4 +117,90 @@
   <resheader name="writer">
     <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
   </resheader>
+  <metadata name="BsUsers.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+    <value>222, 17</value>
+  </metadata>
+  <metadata name="sewingFactoryMURDataSet1.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>316, 17</value>
+  </metadata>
+  <assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
+  <data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+    <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>

+ 27 - 13
FormZak.Designer.cs

@@ -53,15 +53,16 @@
             this.BsIzdelia = new System.Windows.Forms.BindingSource(this.components);
             this.tabPage4 = new System.Windows.Forms.TabPage();
             this.DgvOrders = new System.Windows.Forms.DataGridView();
-            this.izdeliaTableAdapter = new СУБД_Фабрика.SewingFactoryMURDataSetTableAdapters.IzdeliaTableAdapter();
             this.Izdelie = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.Column2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.Column3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.Column4 = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.Column5 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.izdeliaTableAdapter = new СУБД_Фабрика.SewingFactoryMURDataSetTableAdapters.IzdeliaTableAdapter();
             this.jornalMoskDataSet1 = new СУБД_Фабрика.JornalMoskDataSet();
             this.BtnAddZak = new System.Windows.Forms.Button();
+            this.BtnLevin = new System.Windows.Forms.Button();
             this.panel1.SuspendLayout();
             ((System.ComponentModel.ISupportInitialize)(this.BsUsers)).BeginInit();
             ((System.ComponentModel.ISupportInitialize)(this.sewingFactoryMURDataSet1)).BeginInit();
@@ -90,7 +91,7 @@
             this.panel1.Location = new System.Drawing.Point(0, 0);
             this.panel1.Margin = new System.Windows.Forms.Padding(5, 6, 5, 6);
             this.panel1.Name = "panel1";
-            this.panel1.Size = new System.Drawing.Size(642, 102);
+            this.panel1.Size = new System.Drawing.Size(640, 102);
             this.panel1.TabIndex = 2;
             // 
             // LblOtch
@@ -151,7 +152,7 @@
             // 
             this.pictureBox1.Dock = System.Windows.Forms.DockStyle.Right;
             this.pictureBox1.Image = global::СУБД_Фабрика.Properties.Resources.fabric_logo;
-            this.pictureBox1.Location = new System.Drawing.Point(536, 0);
+            this.pictureBox1.Location = new System.Drawing.Point(534, 0);
             this.pictureBox1.Margin = new System.Windows.Forms.Padding(5, 6, 5, 6);
             this.pictureBox1.Name = "pictureBox1";
             this.pictureBox1.Size = new System.Drawing.Size(106, 102);
@@ -186,7 +187,7 @@
             this.tabControl1.Location = new System.Drawing.Point(12, 148);
             this.tabControl1.Name = "tabControl1";
             this.tabControl1.SelectedIndex = 0;
-            this.tabControl1.Size = new System.Drawing.Size(618, 288);
+            this.tabControl1.Size = new System.Drawing.Size(616, 297);
             this.tabControl1.TabIndex = 23;
             // 
             // tabPage1
@@ -195,7 +196,7 @@
             this.tabPage1.Location = new System.Drawing.Point(4, 29);
             this.tabPage1.Name = "tabPage1";
             this.tabPage1.Padding = new System.Windows.Forms.Padding(3);
-            this.tabPage1.Size = new System.Drawing.Size(610, 255);
+            this.tabPage1.Size = new System.Drawing.Size(608, 264);
             this.tabPage1.TabIndex = 0;
             this.tabPage1.Text = "Ткань";
             this.tabPage1.UseVisualStyleBackColor = true;
@@ -212,7 +213,7 @@
             this.PanelClothes.RowCount = 1;
             this.PanelClothes.RowStyles.Add(new System.Windows.Forms.RowStyle());
             this.PanelClothes.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 249F));
-            this.PanelClothes.Size = new System.Drawing.Size(604, 249);
+            this.PanelClothes.Size = new System.Drawing.Size(602, 258);
             this.PanelClothes.TabIndex = 0;
             // 
             // tabPage2
@@ -247,7 +248,7 @@
             this.tabPage3.Location = new System.Drawing.Point(4, 29);
             this.tabPage3.Name = "tabPage3";
             this.tabPage3.Padding = new System.Windows.Forms.Padding(3);
-            this.tabPage3.Size = new System.Drawing.Size(610, 255);
+            this.tabPage3.Size = new System.Drawing.Size(608, 264);
             this.tabPage3.TabIndex = 2;
             this.tabPage3.Text = "Изделия";
             this.tabPage3.UseVisualStyleBackColor = true;
@@ -271,7 +272,7 @@
             this.DgvIzd.ReadOnly = true;
             this.DgvIzd.RowHeadersVisible = false;
             this.DgvIzd.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
-            this.DgvIzd.Size = new System.Drawing.Size(604, 249);
+            this.DgvIzd.Size = new System.Drawing.Size(602, 258);
             this.DgvIzd.TabIndex = 0;
             // 
             // titleDataGridViewTextBoxColumn
@@ -337,10 +338,6 @@
             this.DgvOrders.Size = new System.Drawing.Size(604, 249);
             this.DgvOrders.TabIndex = 1;
             // 
-            // izdeliaTableAdapter
-            // 
-            this.izdeliaTableAdapter.ClearBeforeFill = true;
-            // 
             // Izdelie
             // 
             this.Izdelie.HeaderText = "Изделие";
@@ -377,6 +374,10 @@
             this.Column5.Name = "Column5";
             this.Column5.ReadOnly = true;
             // 
+            // izdeliaTableAdapter
+            // 
+            this.izdeliaTableAdapter.ClearBeforeFill = true;
+            // 
             // jornalMoskDataSet1
             // 
             this.jornalMoskDataSet1.DataSetName = "JornalMoskDataSet";
@@ -393,12 +394,24 @@
             this.BtnAddZak.UseVisualStyleBackColor = false;
             this.BtnAddZak.Click += new System.EventHandler(this.BtnAddZak_Click);
             // 
+            // BtnLevin
+            // 
+            this.BtnLevin.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(156)))), ((int)(((byte)(26)))));
+            this.BtnLevin.Location = new System.Drawing.Point(293, 111);
+            this.BtnLevin.Name = "BtnLevin";
+            this.BtnLevin.Size = new System.Drawing.Size(153, 31);
+            this.BtnLevin.TabIndex = 25;
+            this.BtnLevin.Text = "Нечеткий поиск ткани";
+            this.BtnLevin.UseVisualStyleBackColor = false;
+            this.BtnLevin.Click += new System.EventHandler(this.BtnLevin_Click);
+            // 
             // FormZak
             // 
             this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 20F);
             this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
             this.BackColor = System.Drawing.Color.White;
-            this.ClientSize = new System.Drawing.Size(642, 448);
+            this.ClientSize = new System.Drawing.Size(640, 457);
+            this.Controls.Add(this.BtnLevin);
             this.Controls.Add(this.BtnAddZak);
             this.Controls.Add(this.tabControl1);
             this.Controls.Add(this.BtnProfile);
@@ -462,5 +475,6 @@
         private System.Windows.Forms.DataGridViewTextBoxColumn Column5;
         private JornalMoskDataSet jornalMoskDataSet1;
         private System.Windows.Forms.Button BtnAddZak;
+        private System.Windows.Forms.Button BtnLevin;
     }
 }

+ 8 - 0
FormZak.cs

@@ -274,7 +274,15 @@ where Users.Role = 2 and Orders.IDZak = {FormMain.IDUser}";
 
         private void BtnAddZak_Click(object sender, EventArgs e)
         {
+            FormAddOrder FrmAddOrd = new FormAddOrder();
+            FrmAddOrd.ShowDialog();
+            FillOrders();
+        }
 
+        private void BtnLevin_Click(object sender, EventArgs e)
+        {
+            FormLevin FrmLev = new FormLevin();
+            FrmLev.ShowDialog();
         }
     }
 }

+ 9 - 0
СУБД Фабрика.csproj

@@ -70,6 +70,12 @@
     <Compile Include="FormKlad.Designer.cs">
       <DependentUpon>FormKlad.cs</DependentUpon>
     </Compile>
+    <Compile Include="FormLevin.cs">
+      <SubType>Form</SubType>
+    </Compile>
+    <Compile Include="FormLevin.Designer.cs">
+      <DependentUpon>FormLevin.cs</DependentUpon>
+    </Compile>
     <Compile Include="FormMain.cs">
       <SubType>Form</SubType>
     </Compile>
@@ -121,6 +127,9 @@
     <EmbeddedResource Include="FormKlad.resx">
       <DependentUpon>FormKlad.cs</DependentUpon>
     </EmbeddedResource>
+    <EmbeddedResource Include="FormLevin.resx">
+      <DependentUpon>FormLevin.cs</DependentUpon>
+    </EmbeddedResource>
     <EmbeddedResource Include="FormMain.resx">
       <DependentUpon>FormMain.cs</DependentUpon>
     </EmbeddedResource>