Danya_Ls Danya_Ls %!s(int64=2) %!d(string=hai) anos
pai
achega
cd6a14689e

+ 18 - 0
FactoryLVS/FactoryLVS.csproj

@@ -66,6 +66,18 @@
     <Compile Include="FormAddZakaz.Designer.cs">
       <DependentUpon>FormAddZakaz.cs</DependentUpon>
     </Compile>
+    <Compile Include="FormClothFind.cs">
+      <SubType>Form</SubType>
+    </Compile>
+    <Compile Include="FormClothFind.Designer.cs">
+      <DependentUpon>FormClothFind.cs</DependentUpon>
+    </Compile>
+    <Compile Include="FormEdiUser.cs">
+      <SubType>Form</SubType>
+    </Compile>
+    <Compile Include="FormEdiUser.Designer.cs">
+      <DependentUpon>FormEdiUser.cs</DependentUpon>
+    </Compile>
     <Compile Include="FormKladovschik.cs">
       <SubType>Form</SubType>
     </Compile>
@@ -98,6 +110,12 @@
     <EmbeddedResource Include="FormAddZakaz.resx">
       <DependentUpon>FormAddZakaz.cs</DependentUpon>
     </EmbeddedResource>
+    <EmbeddedResource Include="FormClothFind.resx">
+      <DependentUpon>FormClothFind.cs</DependentUpon>
+    </EmbeddedResource>
+    <EmbeddedResource Include="FormEdiUser.resx">
+      <DependentUpon>FormEdiUser.cs</DependentUpon>
+    </EmbeddedResource>
     <EmbeddedResource Include="FormKladovschik.resx">
       <DependentUpon>FormKladovschik.cs</DependentUpon>
     </EmbeddedResource>

+ 15 - 28
FactoryLVS/Form1.Designer.cs

@@ -30,7 +30,6 @@
         {
             this.components = new System.ComponentModel.Container();
             System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1));
-            this.label6 = new System.Windows.Forms.Label();
             this.TbxCapcha = new System.Windows.Forms.TextBox();
             this.label5 = new System.Windows.Forms.Label();
             this.LblCapcha = new System.Windows.Forms.Label();
@@ -45,25 +44,16 @@
             this.CmbRole = new System.Windows.Forms.ComboBox();
             this.panel1 = new System.Windows.Forms.Panel();
             this.label1 = new System.Windows.Forms.Label();
+            this.pictureBox1 = new System.Windows.Forms.PictureBox();
             this.BsUsers = new System.Windows.Forms.BindingSource(this.components);
             this.factoryLVSDataSet = new FactoryLVS.FactoryLVSDataSet();
             this.usersTableAdapter = new FactoryLVS.FactoryLVSDataSetTableAdapters.UsersTableAdapter();
-            this.pictureBox1 = new System.Windows.Forms.PictureBox();
             this.panel1.SuspendLayout();
+            ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
             ((System.ComponentModel.ISupportInitialize)(this.BsUsers)).BeginInit();
             ((System.ComponentModel.ISupportInitialize)(this.factoryLVSDataSet)).BeginInit();
-            ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
             this.SuspendLayout();
             // 
-            // label6
-            // 
-            this.label6.Location = new System.Drawing.Point(294, 136);
-            this.label6.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
-            this.label6.Name = "label6";
-            this.label6.Size = new System.Drawing.Size(110, 85);
-            this.label6.TabIndex = 27;
-            this.label6.Text = "z z - заказчик\r\nk k - кладовщик\r\nm m - менеджер";
-            // 
             // TbxCapcha
             // 
             this.TbxCapcha.Location = new System.Drawing.Point(180, 360);
@@ -215,6 +205,18 @@
             this.label1.TabIndex = 1;
             this.label1.Text = "Авторизация";
             // 
+            // pictureBox1
+            // 
+            this.pictureBox1.Dock = System.Windows.Forms.DockStyle.Left;
+            this.pictureBox1.Image = global::FactoryLVS.Properties.Resources.fabric_logo;
+            this.pictureBox1.Location = new System.Drawing.Point(0, 0);
+            this.pictureBox1.Margin = new System.Windows.Forms.Padding(2);
+            this.pictureBox1.Name = "pictureBox1";
+            this.pictureBox1.Size = new System.Drawing.Size(100, 106);
+            this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
+            this.pictureBox1.TabIndex = 0;
+            this.pictureBox1.TabStop = false;
+            // 
             // BsUsers
             // 
             this.BsUsers.DataMember = "Users";
@@ -229,24 +231,11 @@
             // 
             this.usersTableAdapter.ClearBeforeFill = true;
             // 
-            // pictureBox1
-            // 
-            this.pictureBox1.Dock = System.Windows.Forms.DockStyle.Left;
-            this.pictureBox1.Image = global::FactoryLVS.Properties.Resources.fabric_logo;
-            this.pictureBox1.Location = new System.Drawing.Point(0, 0);
-            this.pictureBox1.Margin = new System.Windows.Forms.Padding(2);
-            this.pictureBox1.Name = "pictureBox1";
-            this.pictureBox1.Size = new System.Drawing.Size(100, 106);
-            this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
-            this.pictureBox1.TabIndex = 0;
-            this.pictureBox1.TabStop = false;
-            // 
             // Form1
             // 
             this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
             this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
             this.ClientSize = new System.Drawing.Size(414, 491);
-            this.Controls.Add(this.label6);
             this.Controls.Add(this.TbxCapcha);
             this.Controls.Add(this.label5);
             this.Controls.Add(this.LblCapcha);
@@ -271,17 +260,15 @@
             this.Load += new System.EventHandler(this.Form1_Load);
             this.panel1.ResumeLayout(false);
             this.panel1.PerformLayout();
+            ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
             ((System.ComponentModel.ISupportInitialize)(this.BsUsers)).EndInit();
             ((System.ComponentModel.ISupportInitialize)(this.factoryLVSDataSet)).EndInit();
-            ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
             this.ResumeLayout(false);
             this.PerformLayout();
 
         }
 
         #endregion
-
-        private System.Windows.Forms.Label label6;
         private System.Windows.Forms.TextBox TbxCapcha;
         private System.Windows.Forms.Label label5;
         private System.Windows.Forms.Label LblCapcha;

+ 14 - 1
FactoryLVS/Form1.cs

@@ -18,6 +18,7 @@ namespace FactoryLVS
         }
 
         public static string TxtCon = "Data Source=213.155.192.79,3002;Initial Catalog=FactoryLVS;Persist Security Info=True;User ID=u21levinsas;Password=ngh4";
+        static public string IdUser = ""; 
 
         string GetCapcha()
         {
@@ -64,27 +65,39 @@ namespace FactoryLVS
             {
                 // создать форму для заказчика
                 FormZakazchik frm = new FormZakazchik();
+                this.Hide();
                 // отфильтровать авторизовавшегося пользователя
                 frm.BsUsers.Filter = TxtFilterForUser;
+                TbxLogin.Text = "";
+                TbxPass.Text = "";
                 frm.ShowDialog();
-            }
+                this.Show(); 
+           }
 
             if (role == "1")
             {
                 // создать форму для менеджера
                 FormManager frm = new FormManager();
+                this.Hide();
                 // отфильтровать авторизовавшегося пользователя
                 frm.BsUsers.Filter = TxtFilterForUser;
+                TbxLogin.Text = "";
+                TbxPass.Text = "";
                 frm.ShowDialog();
+                this.Show();
             }
 
             if (role == "2")
             {
                 // создать форму для кладовщика
                 FormKladovschik frm = new FormKladovschik();
+                this.Hide();
                 // отфильтровать авторизовавшегося пользователя
                 frm.BsUsers.Filter = TxtFilterForUser;
+                TbxLogin.Text = "";
+                TbxPass.Text = "";
                 frm.ShowDialog();
+                this.Show();
             }
 
             this.Visible = true;  // показать форму для авторизации

+ 198 - 0
FactoryLVS/FormClothFind.Designer.cs

@@ -0,0 +1,198 @@
+namespace FactoryLVS
+{
+    partial class FormClothFind
+    {
+        /// <summary>
+        /// Required designer variable.
+        /// </summary>
+        private System.ComponentModel.IContainer components = null;
+
+        /// <summary>
+        /// Clean up any resources being used.
+        /// </summary>
+        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
+        protected override void Dispose(bool disposing)
+        {
+            if (disposing && (components != null))
+            {
+                components.Dispose();
+            }
+            base.Dispose(disposing);
+        }
+
+        #region Windows Form Designer generated code
+
+        /// <summary>
+        /// Required method for Designer support - do not modify
+        /// the contents of this method with the code editor.
+        /// </summary>
+        private void InitializeComponent()
+        {
+            this.components = new System.ComponentModel.Container();
+            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormClothFind));
+            this.btnAll = new System.Windows.Forms.Button();
+            this.btnFind = new System.Windows.Forms.Button();
+            this.tbxFind = new System.Windows.Forms.TextBox();
+            this.dgvCLoth = new System.Windows.Forms.DataGridView();
+            this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.panel1 = new System.Windows.Forms.Panel();
+            this.label1 = new System.Windows.Forms.Label();
+            this.pbxPhoto = new System.Windows.Forms.PictureBox();
+            this.bsCloth = new System.Windows.Forms.BindingSource(this.components);
+            this.factoryLVSDataSet = new FactoryLVS.FactoryLVSDataSet();
+            this.tkanTableAdapter = new FactoryLVS.FactoryLVSDataSetTableAdapters.TkanTableAdapter();
+            ((System.ComponentModel.ISupportInitialize)(this.dgvCLoth)).BeginInit();
+            this.panel1.SuspendLayout();
+            ((System.ComponentModel.ISupportInitialize)(this.pbxPhoto)).BeginInit();
+            ((System.ComponentModel.ISupportInitialize)(this.bsCloth)).BeginInit();
+            ((System.ComponentModel.ISupportInitialize)(this.factoryLVSDataSet)).BeginInit();
+            this.SuspendLayout();
+            // 
+            // btnAll
+            // 
+            this.btnAll.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+            this.btnAll.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(156)))), ((int)(((byte)(26)))));
+            this.btnAll.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
+            this.btnAll.Location = new System.Drawing.Point(379, 131);
+            this.btnAll.Margin = new System.Windows.Forms.Padding(6, 5, 6, 5);
+            this.btnAll.Name = "btnAll";
+            this.btnAll.Size = new System.Drawing.Size(178, 36);
+            this.btnAll.TabIndex = 18;
+            this.btnAll.Text = "Отобразить всё";
+            this.btnAll.UseVisualStyleBackColor = false;
+            this.btnAll.Click += new System.EventHandler(this.btnAll_Click);
+            // 
+            // btnFind
+            // 
+            this.btnFind.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+            this.btnFind.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(156)))), ((int)(((byte)(26)))));
+            this.btnFind.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
+            this.btnFind.Location = new System.Drawing.Point(21, 131);
+            this.btnFind.Margin = new System.Windows.Forms.Padding(6, 5, 6, 5);
+            this.btnFind.Name = "btnFind";
+            this.btnFind.Size = new System.Drawing.Size(178, 36);
+            this.btnFind.TabIndex = 17;
+            this.btnFind.Text = "Поиск";
+            this.btnFind.UseVisualStyleBackColor = false;
+            this.btnFind.Click += new System.EventHandler(this.btnFind_Click);
+            // 
+            // tbxFind
+            // 
+            this.tbxFind.Location = new System.Drawing.Point(12, 94);
+            this.tbxFind.Name = "tbxFind";
+            this.tbxFind.Size = new System.Drawing.Size(549, 20);
+            this.tbxFind.TabIndex = 16;
+            // 
+            // dgvCLoth
+            // 
+            this.dgvCLoth.AllowUserToAddRows = false;
+            this.dgvCLoth.AllowUserToDeleteRows = false;
+            this.dgvCLoth.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
+            this.dgvCLoth.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
+            this.Column1});
+            this.dgvCLoth.Location = new System.Drawing.Point(12, 175);
+            this.dgvCLoth.Name = "dgvCLoth";
+            this.dgvCLoth.ReadOnly = true;
+            this.dgvCLoth.Size = new System.Drawing.Size(549, 310);
+            this.dgvCLoth.TabIndex = 15;
+            // 
+            // Column1
+            // 
+            this.Column1.HeaderText = "Название";
+            this.Column1.Name = "Column1";
+            this.Column1.ReadOnly = true;
+            this.Column1.Width = 500;
+            // 
+            // 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.pbxPhoto);
+            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(44, 20, 44, 20);
+            this.panel1.Name = "panel1";
+            this.panel1.Size = new System.Drawing.Size(572, 81);
+            this.panel1.TabIndex = 14;
+            // 
+            // label1
+            // 
+            this.label1.AutoSize = true;
+            this.label1.Font = new System.Drawing.Font("Arial", 24F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
+            this.label1.Location = new System.Drawing.Point(14, 23);
+            this.label1.Margin = new System.Windows.Forms.Padding(44, 0, 44, 0);
+            this.label1.Name = "label1";
+            this.label1.Size = new System.Drawing.Size(209, 37);
+            this.label1.TabIndex = 1;
+            this.label1.Text = "Поиск ткани";
+            // 
+            // pbxPhoto
+            // 
+            this.pbxPhoto.Dock = System.Windows.Forms.DockStyle.Right;
+            this.pbxPhoto.Image = global::FactoryLVS.Properties.Resources.fabric_logo;
+            this.pbxPhoto.Location = new System.Drawing.Point(416, 0);
+            this.pbxPhoto.Margin = new System.Windows.Forms.Padding(44, 20, 44, 20);
+            this.pbxPhoto.Name = "pbxPhoto";
+            this.pbxPhoto.Size = new System.Drawing.Size(156, 81);
+            this.pbxPhoto.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
+            this.pbxPhoto.TabIndex = 0;
+            this.pbxPhoto.TabStop = false;
+            // 
+            // bsCloth
+            // 
+            this.bsCloth.DataMember = "Tkan";
+            this.bsCloth.DataSource = this.factoryLVSDataSet;
+            // 
+            // factoryLVSDataSet
+            // 
+            this.factoryLVSDataSet.DataSetName = "FactoryLVSDataSet";
+            this.factoryLVSDataSet.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
+            // 
+            // tkanTableAdapter
+            // 
+            this.tkanTableAdapter.ClearBeforeFill = true;
+            // 
+            // FormClothFind
+            // 
+            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
+            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+            this.ClientSize = new System.Drawing.Size(572, 498);
+            this.Controls.Add(this.btnAll);
+            this.Controls.Add(this.btnFind);
+            this.Controls.Add(this.tbxFind);
+            this.Controls.Add(this.dgvCLoth);
+            this.Controls.Add(this.panel1);
+            this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
+            this.MaximizeBox = false;
+            this.MaximumSize = new System.Drawing.Size(588, 537);
+            this.MinimumSize = new System.Drawing.Size(588, 537);
+            this.Name = "FormClothFind";
+            this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
+            this.Text = "СУБД \"Швейная фабрика\"";
+            this.Load += new System.EventHandler(this.FormClothFind_Load);
+            ((System.ComponentModel.ISupportInitialize)(this.dgvCLoth)).EndInit();
+            this.panel1.ResumeLayout(false);
+            this.panel1.PerformLayout();
+            ((System.ComponentModel.ISupportInitialize)(this.pbxPhoto)).EndInit();
+            ((System.ComponentModel.ISupportInitialize)(this.bsCloth)).EndInit();
+            ((System.ComponentModel.ISupportInitialize)(this.factoryLVSDataSet)).EndInit();
+            this.ResumeLayout(false);
+            this.PerformLayout();
+
+        }
+
+        #endregion
+
+        private System.Windows.Forms.Button btnAll;
+        private System.Windows.Forms.Button btnFind;
+        private System.Windows.Forms.TextBox tbxFind;
+        private System.Windows.Forms.DataGridView dgvCLoth;
+        private System.Windows.Forms.DataGridViewTextBoxColumn Column1;
+        private System.Windows.Forms.Panel panel1;
+        private System.Windows.Forms.Label label1;
+        private System.Windows.Forms.PictureBox pbxPhoto;
+        private System.Windows.Forms.BindingSource bsCloth;
+        private FactoryLVSDataSet factoryLVSDataSet;
+        private FactoryLVSDataSetTableAdapters.TkanTableAdapter tkanTableAdapter;
+    }
+}

+ 67 - 0
FactoryLVS/FormClothFind.cs

@@ -0,0 +1,67 @@
+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 FactoryLVS
+{
+    public partial class FormClothFind : Form
+    {
+        public FormClothFind()
+        {
+            InitializeComponent();
+        }
+
+        private void btnFind_Click(object sender, EventArgs e)
+        {
+            dgvCLoth.Rows.Clear();
+            foreach (string str in lstCloth)
+            {
+                if (Levenshtein(str, tbxFind.Text) <= 3)
+                {
+                    dgvCLoth.Rows.Add(str);
+                }
+            }
+        }
+
+        private void FormClothFind_Load(object sender, EventArgs e)
+        {
+            this.tkanTableAdapter.Fill(this.factoryLVSDataSet.Tkan);
+            SqlConnection con = new SqlConnection(Form1.TxtCon);
+            con.Open();
+            SqlCommand cmd = new SqlCommand("select * from Tkan", con);
+            SqlDataReader res = cmd.ExecuteReader();
+            while (res.Read())
+            {
+                lstCloth.Add(res["Title"].ToString());
+            }
+            con.Close();
+            btnAll_Click(sender, e);
+        }
+        static int Levenshtein(string str1, string str2)
+        {
+            int CountLeven = Math.Abs(str1.Length - str2.Length);
+            for (int i = 0; i < Math.Min(str1.Length, str2.Length); i++)
+            {
+                if (str1[i] != str2[i])
+                    CountLeven++;
+            }
+            return CountLeven;
+        }
+
+        List<string> lstCloth = new List<string>();
+
+        private void btnAll_Click(object sender, EventArgs e)
+        {
+            dgvCLoth.Rows.Clear();
+            foreach (string str in lstCloth)
+                dgvCLoth.Rows.Add(str);
+        }
+    }
+}

+ 215 - 0
FactoryLVS/FormClothFind.resx

@@ -0,0 +1,215 @@
+<?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="Column1.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
+  <metadata name="Column1.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
+  <metadata name="bsCloth.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+    <value>17, 17</value>
+  </metadata>
+  <metadata name="factoryLVSDataSet.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+    <value>110, 17</value>
+  </metadata>
+  <metadata name="factoryLVSDataSet.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+    <value>110, 17</value>
+  </metadata>
+  <metadata name="tkanTableAdapter.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+    <value>262, 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>

+ 307 - 0
FactoryLVS/FormEdiUser.Designer.cs

@@ -0,0 +1,307 @@
+namespace FactoryLVS
+{
+    partial class FormEdiUser
+    {
+        /// <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(FormEdiUser));
+            this.btnBack = new System.Windows.Forms.Button();
+            this.btnSaveEdit = new System.Windows.Forms.Button();
+            this.tbxOldPas = new System.Windows.Forms.TextBox();
+            this.lblOldPas = new System.Windows.Forms.Label();
+            this.tbxPhone = new System.Windows.Forms.MaskedTextBox();
+            this.label8 = new System.Windows.Forms.Label();
+            this.tbxOtch = new System.Windows.Forms.TextBox();
+            this.label7 = new System.Windows.Forms.Label();
+            this.tbxName = new System.Windows.Forms.TextBox();
+            this.label6 = new System.Windows.Forms.Label();
+            this.tbxFam = new System.Windows.Forms.TextBox();
+            this.label5 = new System.Windows.Forms.Label();
+            this.cbxPassword = new System.Windows.Forms.CheckBox();
+            this.tbxPasRepeat = new System.Windows.Forms.TextBox();
+            this.label4 = new System.Windows.Forms.Label();
+            this.tbxPas = new System.Windows.Forms.TextBox();
+            this.label3 = new System.Windows.Forms.Label();
+            this.panel1 = new System.Windows.Forms.Panel();
+            this.label1 = new System.Windows.Forms.Label();
+            this.pbxPhoto = new System.Windows.Forms.PictureBox();
+            this.panel1.SuspendLayout();
+            ((System.ComponentModel.ISupportInitialize)(this.pbxPhoto)).BeginInit();
+            this.SuspendLayout();
+            // 
+            // btnBack
+            // 
+            this.btnBack.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(156)))), ((int)(((byte)(26)))));
+            this.btnBack.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
+            this.btnBack.Location = new System.Drawing.Point(37, 544);
+            this.btnBack.Margin = new System.Windows.Forms.Padding(6, 5, 6, 5);
+            this.btnBack.Name = "btnBack";
+            this.btnBack.Size = new System.Drawing.Size(240, 39);
+            this.btnBack.TabIndex = 60;
+            this.btnBack.Text = "Назад";
+            this.btnBack.UseVisualStyleBackColor = false;
+            this.btnBack.Click += new System.EventHandler(this.btnBack_Click);
+            // 
+            // btnSaveEdit
+            // 
+            this.btnSaveEdit.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(156)))), ((int)(((byte)(26)))));
+            this.btnSaveEdit.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
+            this.btnSaveEdit.Location = new System.Drawing.Point(315, 544);
+            this.btnSaveEdit.Margin = new System.Windows.Forms.Padding(6, 5, 6, 5);
+            this.btnSaveEdit.Name = "btnSaveEdit";
+            this.btnSaveEdit.Size = new System.Drawing.Size(240, 39);
+            this.btnSaveEdit.TabIndex = 59;
+            this.btnSaveEdit.Text = "Сохранить";
+            this.btnSaveEdit.UseVisualStyleBackColor = false;
+            this.btnSaveEdit.Click += new System.EventHandler(this.btnSaveEdit_Click);
+            // 
+            // tbxOldPas
+            // 
+            this.tbxOldPas.Location = new System.Drawing.Point(37, 136);
+            this.tbxOldPas.Name = "tbxOldPas";
+            this.tbxOldPas.Size = new System.Drawing.Size(518, 20);
+            this.tbxOldPas.TabIndex = 58;
+            this.tbxOldPas.UseSystemPasswordChar = true;
+            // 
+            // lblOldPas
+            // 
+            this.lblOldPas.AutoSize = true;
+            this.lblOldPas.Location = new System.Drawing.Point(199, 111);
+            this.lblOldPas.Name = "lblOldPas";
+            this.lblOldPas.Size = new System.Drawing.Size(128, 13);
+            this.lblOldPas.TabIndex = 57;
+            this.lblOldPas.Text = "Введите старый пароль";
+            // 
+            // tbxPhone
+            // 
+            this.tbxPhone.Location = new System.Drawing.Point(37, 501);
+            this.tbxPhone.Mask = "+0(000) 000-00-00";
+            this.tbxPhone.Name = "tbxPhone";
+            this.tbxPhone.Size = new System.Drawing.Size(518, 20);
+            this.tbxPhone.TabIndex = 56;
+            this.tbxPhone.ValidatingType = typeof(int);
+            // 
+            // label8
+            // 
+            this.label8.AutoSize = true;
+            this.label8.Location = new System.Drawing.Point(180, 476);
+            this.label8.Name = "label8";
+            this.label8.Size = new System.Drawing.Size(136, 13);
+            this.label8.TabIndex = 55;
+            this.label8.Text = "Введите номер телефона";
+            // 
+            // tbxOtch
+            // 
+            this.tbxOtch.Location = new System.Drawing.Point(37, 444);
+            this.tbxOtch.Name = "tbxOtch";
+            this.tbxOtch.Size = new System.Drawing.Size(518, 20);
+            this.tbxOtch.TabIndex = 54;
+            // 
+            // label7
+            // 
+            this.label7.AutoSize = true;
+            this.label7.Location = new System.Drawing.Point(217, 419);
+            this.label7.Name = "label7";
+            this.label7.Size = new System.Drawing.Size(97, 13);
+            this.label7.TabIndex = 53;
+            this.label7.Text = "Введите отчество";
+            // 
+            // tbxName
+            // 
+            this.tbxName.Location = new System.Drawing.Point(37, 387);
+            this.tbxName.Name = "tbxName";
+            this.tbxName.Size = new System.Drawing.Size(518, 20);
+            this.tbxName.TabIndex = 52;
+            // 
+            // label6
+            // 
+            this.label6.AutoSize = true;
+            this.label6.Location = new System.Drawing.Point(232, 362);
+            this.label6.Name = "label6";
+            this.label6.Size = new System.Drawing.Size(72, 13);
+            this.label6.TabIndex = 51;
+            this.label6.Text = "Введите имя";
+            // 
+            // tbxFam
+            // 
+            this.tbxFam.Location = new System.Drawing.Point(37, 330);
+            this.tbxFam.Name = "tbxFam";
+            this.tbxFam.Size = new System.Drawing.Size(518, 20);
+            this.tbxFam.TabIndex = 50;
+            // 
+            // label5
+            // 
+            this.label5.AutoSize = true;
+            this.label5.Location = new System.Drawing.Point(217, 305);
+            this.label5.Name = "label5";
+            this.label5.Size = new System.Drawing.Size(100, 13);
+            this.label5.TabIndex = 49;
+            this.label5.Text = "Введите фамилию";
+            // 
+            // cbxPassword
+            // 
+            this.cbxPassword.AutoSize = true;
+            this.cbxPassword.Location = new System.Drawing.Point(37, 286);
+            this.cbxPassword.Name = "cbxPassword";
+            this.cbxPassword.Size = new System.Drawing.Size(114, 17);
+            this.cbxPassword.TabIndex = 48;
+            this.cbxPassword.Text = "Показать пароль";
+            this.cbxPassword.UseVisualStyleBackColor = true;
+            this.cbxPassword.CheckedChanged += new System.EventHandler(this.cbxPassword_CheckedChanged);
+            // 
+            // tbxPasRepeat
+            // 
+            this.tbxPasRepeat.Location = new System.Drawing.Point(37, 251);
+            this.tbxPasRepeat.Name = "tbxPasRepeat";
+            this.tbxPasRepeat.Size = new System.Drawing.Size(518, 20);
+            this.tbxPasRepeat.TabIndex = 47;
+            this.tbxPasRepeat.UseSystemPasswordChar = true;
+            // 
+            // label4
+            // 
+            this.label4.AutoSize = true;
+            this.label4.Location = new System.Drawing.Point(217, 226);
+            this.label4.Name = "label4";
+            this.label4.Size = new System.Drawing.Size(100, 13);
+            this.label4.TabIndex = 46;
+            this.label4.Text = "Повторите пароль";
+            // 
+            // tbxPas
+            // 
+            this.tbxPas.Location = new System.Drawing.Point(37, 194);
+            this.tbxPas.Name = "tbxPas";
+            this.tbxPas.Size = new System.Drawing.Size(518, 20);
+            this.tbxPas.TabIndex = 45;
+            this.tbxPas.UseSystemPasswordChar = true;
+            // 
+            // label3
+            // 
+            this.label3.AutoSize = true;
+            this.label3.Location = new System.Drawing.Point(217, 169);
+            this.label3.Name = "label3";
+            this.label3.Size = new System.Drawing.Size(88, 13);
+            this.label3.TabIndex = 44;
+            this.label3.Text = "Введите пароль";
+            // 
+            // panel1
+            // 
+            this.panel1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(225)))));
+            this.panel1.Controls.Add(this.label1);
+            this.panel1.Controls.Add(this.pbxPhoto);
+            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(13, 7, 13, 7);
+            this.panel1.Name = "panel1";
+            this.panel1.Size = new System.Drawing.Size(608, 97);
+            this.panel1.TabIndex = 43;
+            // 
+            // label1
+            // 
+            this.label1.AutoSize = true;
+            this.label1.Font = new System.Drawing.Font("Arial", 24F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
+            this.label1.Location = new System.Drawing.Point(8, 28);
+            this.label1.Margin = new System.Windows.Forms.Padding(13, 0, 13, 0);
+            this.label1.Name = "label1";
+            this.label1.Size = new System.Drawing.Size(428, 37);
+            this.label1.TabIndex = 1;
+            this.label1.Text = "Редактирование профиля";
+            // 
+            // pbxPhoto
+            // 
+            this.pbxPhoto.Dock = System.Windows.Forms.DockStyle.Right;
+            this.pbxPhoto.Image = global::FactoryLVS.Properties.Resources.fabric_logo;
+            this.pbxPhoto.Location = new System.Drawing.Point(439, 0);
+            this.pbxPhoto.Margin = new System.Windows.Forms.Padding(13, 7, 13, 7);
+            this.pbxPhoto.Name = "pbxPhoto";
+            this.pbxPhoto.Size = new System.Drawing.Size(169, 97);
+            this.pbxPhoto.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
+            this.pbxPhoto.TabIndex = 0;
+            this.pbxPhoto.TabStop = false;
+            // 
+            // FormEdiUser
+            // 
+            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
+            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+            this.ClientSize = new System.Drawing.Size(608, 590);
+            this.Controls.Add(this.btnBack);
+            this.Controls.Add(this.btnSaveEdit);
+            this.Controls.Add(this.tbxOldPas);
+            this.Controls.Add(this.lblOldPas);
+            this.Controls.Add(this.tbxPhone);
+            this.Controls.Add(this.label8);
+            this.Controls.Add(this.tbxOtch);
+            this.Controls.Add(this.label7);
+            this.Controls.Add(this.tbxName);
+            this.Controls.Add(this.label6);
+            this.Controls.Add(this.tbxFam);
+            this.Controls.Add(this.label5);
+            this.Controls.Add(this.cbxPassword);
+            this.Controls.Add(this.tbxPasRepeat);
+            this.Controls.Add(this.label4);
+            this.Controls.Add(this.tbxPas);
+            this.Controls.Add(this.label3);
+            this.Controls.Add(this.panel1);
+            this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
+            this.MaximizeBox = false;
+            this.MaximumSize = new System.Drawing.Size(624, 629);
+            this.MinimumSize = new System.Drawing.Size(624, 629);
+            this.Name = "FormEdiUser";
+            this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
+            this.Text = "СУБД \"Швейная фабрика\"";
+            this.Load += new System.EventHandler(this.FormEdiUser_Load);
+            this.panel1.ResumeLayout(false);
+            this.panel1.PerformLayout();
+            ((System.ComponentModel.ISupportInitialize)(this.pbxPhoto)).EndInit();
+            this.ResumeLayout(false);
+            this.PerformLayout();
+
+        }
+
+        #endregion
+
+        private System.Windows.Forms.Button btnBack;
+        private System.Windows.Forms.Button btnSaveEdit;
+        private System.Windows.Forms.TextBox tbxOldPas;
+        private System.Windows.Forms.Label lblOldPas;
+        private System.Windows.Forms.MaskedTextBox tbxPhone;
+        private System.Windows.Forms.Label label8;
+        private System.Windows.Forms.TextBox tbxOtch;
+        private System.Windows.Forms.Label label7;
+        private System.Windows.Forms.TextBox tbxName;
+        private System.Windows.Forms.Label label6;
+        private System.Windows.Forms.TextBox tbxFam;
+        private System.Windows.Forms.Label label5;
+        private System.Windows.Forms.CheckBox cbxPassword;
+        private System.Windows.Forms.TextBox tbxPasRepeat;
+        private System.Windows.Forms.Label label4;
+        private System.Windows.Forms.TextBox tbxPas;
+        private System.Windows.Forms.Label label3;
+        private System.Windows.Forms.Panel panel1;
+        private System.Windows.Forms.Label label1;
+        private System.Windows.Forms.PictureBox pbxPhoto;
+    }
+}

+ 103 - 0
FactoryLVS/FormEdiUser.cs

@@ -0,0 +1,103 @@
+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;
+using FactoryDLL;
+
+namespace FactoryLVS
+{
+    public partial class FormEdiUser : Form
+    {
+        public FormEdiUser()
+        {
+            InitializeComponent();
+        }
+
+        private void btnBack_Click(object sender, EventArgs e)
+        {
+            this.Close();
+        }
+
+        private void cbxPassword_CheckedChanged(object sender, EventArgs e)
+        {
+            tbxPas.UseSystemPasswordChar = !tbxPas.UseSystemPasswordChar;
+            tbxPasRepeat.UseSystemPasswordChar = !tbxPasRepeat.UseSystemPasswordChar;
+            tbxOldPas.UseSystemPasswordChar = !tbxOldPas.UseSystemPasswordChar;
+        }
+
+        private void FormEdiUser_Load(object sender, EventArgs e)
+        {
+            SqlConnection con = new SqlConnection(Form1.TxtCon);
+            con.Open();
+
+            SqlCommand cmd = new SqlCommand($@"select Surname,Name,Otch,Phone from Users where id_User = '{Form1.IdUser}'", con);
+
+            SqlDataReader res = cmd.ExecuteReader();
+            res.Read();
+
+            tbxFam.Text = res["Surname"].ToString();
+            tbxName.Text = res["Name"].ToString();
+            tbxOtch.Text = res["Otch"].ToString();
+            tbxPhone.Text = res["Phone"].ToString();
+
+            res.Close();
+
+            con.Close();
+        }
+
+        private void btnSaveEdit_Click(object sender, EventArgs e)
+        {
+            if (tbxFam.Text == "" || tbxName.Text == "" || tbxOtch.Text == "" || tbxPhone.Text == "" || tbxPas.Text.Trim() == "")
+            {
+                MessageBox.Show("Поля не могут быть пустыми", "Внимание!", MessageBoxButtons.OK, MessageBoxIcon.Error);
+                return;
+            }
+
+            SqlConnection con = new SqlConnection(Form1.TxtCon);
+            con.Open();
+
+            SqlCommand cmd = new SqlCommand($@"select Surname,Name,Otch,Phone from Users where id_User = '{Form1.IdUser}'", con);
+
+            SqlDataReader res = cmd.ExecuteReader();
+            res.Read();
+            if (res["pass"].ToString() != tbxOldPas.Text)
+            {
+                MessageBox.Show("Неправильно введён старый пароль", "Внимание!", MessageBoxButtons.OK, MessageBoxIcon.Error);
+                return;
+            }
+            if (!CheckPass.Check(tbxPas.Text))
+            {
+                MessageBox.Show(@"Пароли не соответствует требования: •  длина пароля – минимум 6 символов;
+•  обязательно и строчные и прописные символы;
+•  цифр должно быть не более половины от всех символов пароля;
+•  должен содержать минимум 1 символ из набора: ! @ # $ % ^.", "Внимание!", MessageBoxButtons.OK, MessageBoxIcon.Error);
+                return;
+            }
+
+            if (tbxPas.Text != tbxPasRepeat.Text)
+            {
+                MessageBox.Show("Новый пароль не совпадает", "Внимание!", MessageBoxButtons.OK, MessageBoxIcon.Error);
+                return;
+            }
+
+            res.Close();
+
+
+
+            SqlCommand cmdUpdate = new SqlCommand($@"update Users
+set Surname = '{tbxFam.Text}', Name = '{tbxName.Text}',Otch = '{tbxOtch.Text}',pass = '{tbxPas.Text}',Phone = '{tbxPhone.Text}'
+where id_User = '{Form1.IdUser}'", con);
+            cmdUpdate.ExecuteNonQuery();
+            con.Close();
+
+            MessageBox.Show("Сохранение прошло успешно", "Внимание!", MessageBoxButtons.OK, MessageBoxIcon.Information);
+            this.Close();
+        }
+    }
+}

+ 197 - 0
FactoryLVS/FormEdiUser.resx

@@ -0,0 +1,197 @@
+<?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>
+  <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>

+ 128 - 0
FactoryLVS/FormKladovschik.Designer.cs

@@ -33,8 +33,19 @@
             this.BsUsers = new System.Windows.Forms.BindingSource(this.components);
             this.factoryLVSDataSet = new FactoryLVS.FactoryLVSDataSet();
             this.usersTableAdapter = new FactoryLVS.FactoryLVSDataSetTableAdapters.UsersTableAdapter();
+            this.panel1 = new System.Windows.Forms.Panel();
+            this.LblIdUser = new System.Windows.Forms.Label();
+            this.label1 = new System.Windows.Forms.Label();
+            this.pictureBox1 = new System.Windows.Forms.PictureBox();
+            this.NameLabel = new System.Windows.Forms.Label();
+            this.FamLabel = new System.Windows.Forms.Label();
+            this.OtchLabel = new System.Windows.Forms.Label();
+            this.LblIdKlad = new System.Windows.Forms.Label();
+            this.BtnProfile = new System.Windows.Forms.Button();
             ((System.ComponentModel.ISupportInitialize)(this.BsUsers)).BeginInit();
             ((System.ComponentModel.ISupportInitialize)(this.factoryLVSDataSet)).BeginInit();
+            this.panel1.SuspendLayout();
+            ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
             this.SuspendLayout();
             // 
             // BsUsers
@@ -51,17 +62,125 @@
             // 
             this.usersTableAdapter.ClearBeforeFill = true;
             // 
+            // panel1
+            // 
+            this.panel1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(225)))));
+            this.panel1.Controls.Add(this.LblIdKlad);
+            this.panel1.Controls.Add(this.LblIdUser);
+            this.panel1.Controls.Add(this.label1);
+            this.panel1.Controls.Add(this.pictureBox1);
+            this.panel1.Controls.Add(this.NameLabel);
+            this.panel1.Controls.Add(this.FamLabel);
+            this.panel1.Controls.Add(this.OtchLabel);
+            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(2);
+            this.panel1.Name = "panel1";
+            this.panel1.Size = new System.Drawing.Size(800, 106);
+            this.panel1.TabIndex = 15;
+            // 
+            // LblIdUser
+            // 
+            this.LblIdUser.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.BsUsers, "id_User", true));
+            this.LblIdUser.Location = new System.Drawing.Point(1562, 57);
+            this.LblIdUser.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
+            this.LblIdUser.Name = "LblIdUser";
+            this.LblIdUser.Size = new System.Drawing.Size(158, 19);
+            this.LblIdUser.TabIndex = 18;
+            this.LblIdUser.Text = "label2";
+            // 
+            // label1
+            // 
+            this.label1.AutoSize = true;
+            this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 13.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
+            this.label1.Location = new System.Drawing.Point(224, 38);
+            this.label1.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
+            this.label1.Name = "label1";
+            this.label1.Size = new System.Drawing.Size(257, 24);
+            this.label1.TabIndex = 1;
+            this.label1.Text = "Рабочее место кладовщика";
+            // 
+            // pictureBox1
+            // 
+            this.pictureBox1.Dock = System.Windows.Forms.DockStyle.Left;
+            this.pictureBox1.Image = global::FactoryLVS.Properties.Resources.fabric_logo;
+            this.pictureBox1.Location = new System.Drawing.Point(0, 0);
+            this.pictureBox1.Margin = new System.Windows.Forms.Padding(2);
+            this.pictureBox1.Name = "pictureBox1";
+            this.pictureBox1.Size = new System.Drawing.Size(100, 106);
+            this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
+            this.pictureBox1.TabIndex = 0;
+            this.pictureBox1.TabStop = false;
+            // 
+            // NameLabel
+            // 
+            this.NameLabel.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.BsUsers, "Name", true));
+            this.NameLabel.Location = new System.Drawing.Point(638, 38);
+            this.NameLabel.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
+            this.NameLabel.Name = "NameLabel";
+            this.NameLabel.Size = new System.Drawing.Size(75, 20);
+            this.NameLabel.TabIndex = 16;
+            this.NameLabel.Text = "label2";
+            // 
+            // FamLabel
+            // 
+            this.FamLabel.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.BsUsers, "Surname", true));
+            this.FamLabel.Location = new System.Drawing.Point(638, 19);
+            this.FamLabel.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
+            this.FamLabel.Name = "FamLabel";
+            this.FamLabel.Size = new System.Drawing.Size(75, 20);
+            this.FamLabel.TabIndex = 15;
+            this.FamLabel.Text = "label2";
+            // 
+            // OtchLabel
+            // 
+            this.OtchLabel.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.BsUsers, "Otch", true));
+            this.OtchLabel.Location = new System.Drawing.Point(638, 57);
+            this.OtchLabel.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
+            this.OtchLabel.Name = "OtchLabel";
+            this.OtchLabel.Size = new System.Drawing.Size(75, 20);
+            this.OtchLabel.TabIndex = 17;
+            this.OtchLabel.Text = "label2";
+            // 
+            // LblIdKlad
+            // 
+            this.LblIdKlad.AutoSize = true;
+            this.LblIdKlad.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.BsUsers, "id_User", true));
+            this.LblIdKlad.Location = new System.Drawing.Point(638, 77);
+            this.LblIdKlad.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
+            this.LblIdKlad.Name = "LblIdKlad";
+            this.LblIdKlad.Size = new System.Drawing.Size(51, 13);
+            this.LblIdKlad.TabIndex = 19;
+            this.LblIdKlad.Text = "LblIdKlad";
+            // 
+            // BtnProfile
+            // 
+            this.BtnProfile.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(156)))), ((int)(((byte)(26)))));
+            this.BtnProfile.Location = new System.Drawing.Point(555, 110);
+            this.BtnProfile.Margin = new System.Windows.Forms.Padding(2);
+            this.BtnProfile.Name = "BtnProfile";
+            this.BtnProfile.Size = new System.Drawing.Size(234, 42);
+            this.BtnProfile.TabIndex = 33;
+            this.BtnProfile.Text = "Профиль пользователя";
+            this.BtnProfile.UseVisualStyleBackColor = false;
+            this.BtnProfile.Click += new System.EventHandler(this.BtnProfile_Click);
+            // 
             // FormKladovschik
             // 
             this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
             this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
             this.ClientSize = new System.Drawing.Size(800, 450);
+            this.Controls.Add(this.BtnProfile);
+            this.Controls.Add(this.panel1);
             this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
             this.Name = "FormKladovschik";
             this.Text = "СУБД \"Швейная фабрика\"";
             this.Load += new System.EventHandler(this.FormKladovschik_Load);
             ((System.ComponentModel.ISupportInitialize)(this.BsUsers)).EndInit();
             ((System.ComponentModel.ISupportInitialize)(this.factoryLVSDataSet)).EndInit();
+            this.panel1.ResumeLayout(false);
+            this.panel1.PerformLayout();
+            ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
             this.ResumeLayout(false);
 
         }
@@ -71,5 +190,14 @@
         public System.Windows.Forms.BindingSource BsUsers;
         private FactoryLVSDataSet factoryLVSDataSet;
         private FactoryLVSDataSetTableAdapters.UsersTableAdapter usersTableAdapter;
+        private System.Windows.Forms.Panel panel1;
+        public System.Windows.Forms.Label LblIdUser;
+        private System.Windows.Forms.Label label1;
+        private System.Windows.Forms.PictureBox pictureBox1;
+        private System.Windows.Forms.Label NameLabel;
+        private System.Windows.Forms.Label FamLabel;
+        private System.Windows.Forms.Label OtchLabel;
+        private System.Windows.Forms.Label LblIdKlad;
+        private System.Windows.Forms.Button BtnProfile;
     }
 }

+ 8 - 0
FactoryLVS/FormKladovschik.cs

@@ -21,7 +21,15 @@ namespace FactoryLVS
         {
             // TODO: This line of code loads data into the 'factoryLVSDataSet.Users' table. You can move, or remove it, as needed.
             this.usersTableAdapter.Fill(this.factoryLVSDataSet.Users);
+            Form1.IdUser = LblIdKlad.Text;
+        }
 
+        private void BtnProfile_Click(object sender, EventArgs e)
+        {
+            FormEdiUser frm = new FormEdiUser();
+            this.Hide();
+            frm.ShowDialog();
+            this.Show();
         }
     }
 }

+ 0 - 3
FactoryLVS/FormKladovschik.resx

@@ -123,9 +123,6 @@
   <metadata name="factoryLVSDataSet.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
     <value>111, 17</value>
   </metadata>
-  <metadata name="factoryLVSDataSet.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
-    <value>111, 17</value>
-  </metadata>
   <metadata name="usersTableAdapter.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
     <value>263, 17</value>
   </metadata>

+ 202 - 636
FactoryLVS/FormManager.Designer.cs

@@ -29,25 +29,10 @@
         private void InitializeComponent()
         {
             this.components = new System.ComponentModel.Container();
-            System.Windows.Forms.Label descriptionLabel;
-            System.Windows.Forms.Label label2;
-            System.Windows.Forms.Label label3;
-            System.Windows.Forms.Label colorLabel;
-            System.Windows.Forms.Label nametkanLabel;
-            System.Windows.Forms.Label label4;
-            System.Windows.Forms.Label label5;
-            System.Windows.Forms.Label widthLabel;
-            System.Windows.Forms.Label lengthLabel;
-            System.Windows.Forms.Label nameizdLabel;
             System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormManager));
             this.BsUsers = new System.Windows.Forms.BindingSource(this.components);
             this.factoryLVSDataSet = new FactoryLVS.FactoryLVSDataSet();
             this.usersTableAdapter = new FactoryLVS.FactoryLVSDataSetTableAdapters.UsersTableAdapter();
-            this.BtnSelect = new System.Windows.Forms.Button();
-            this.BtnAll = new System.Windows.Forms.Button();
-            this.RbtCSV = new System.Windows.Forms.RadioButton();
-            this.RbtWord = new System.Windows.Forms.RadioButton();
-            this.BtnProfile = new System.Windows.Forms.Button();
             this.OtchLabel = new System.Windows.Forms.Label();
             this.NameLabel = new System.Windows.Forms.Label();
             this.FamLabel = new System.Windows.Forms.Label();
@@ -55,65 +40,36 @@
             this.LblIdManager = new System.Windows.Forms.Label();
             this.label1 = new System.Windows.Forms.Label();
             this.pictureBox1 = new System.Windows.Forms.PictureBox();
-            this.tabControl1 = new System.Windows.Forms.TabControl();
-            this.tabPage1 = new System.Windows.Forms.TabPage();
-            this.DgvZakaz = new System.Windows.Forms.DataGridView();
-            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.Column6 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.button1 = new System.Windows.Forms.Button();
-            this.button2 = new System.Windows.Forms.Button();
-            this.radioButton1 = new System.Windows.Forms.RadioButton();
-            this.radioButton2 = new System.Windows.Forms.RadioButton();
-            this.tabPage2 = new System.Windows.Forms.TabPage();
-            this.DescriptionTextBox = new System.Windows.Forms.TextBox();
-            this.LengthTextBox = new System.Windows.Forms.TextBox();
-            this.WidthTextBox = new System.Windows.Forms.TextBox();
-            this.ColorTextBox = new System.Windows.Forms.TextBox();
-            this.NametkanTextBox = new System.Windows.Forms.TextBox();
-            this.LVTkani = new System.Windows.Forms.ListView();
-            this.tabPage3 = new System.Windows.Forms.TabPage();
-            this.TbxCountFurSklad = new System.Windows.Forms.TextBox();
-            this.TbxNameFur = new System.Windows.Forms.TextBox();
-            this.LVFurnitura = new System.Windows.Forms.ListView();
-            this.tabPage4 = new System.Windows.Forms.TabPage();
-            this.BtnSave = new System.Windows.Forms.Button();
-            this.BtnEdit = new System.Windows.Forms.Button();
-            this.BtnAdd = new System.Windows.Forms.Button();
-            this.TbxWidthIzd = new System.Windows.Forms.TextBox();
-            this.TbxLengthIzd = new System.Windows.Forms.TextBox();
-            this.TbxNameIzd = new System.Windows.Forms.TextBox();
-            this.DgvIzd = new System.Windows.Forms.DataGridView();
-            descriptionLabel = new System.Windows.Forms.Label();
-            label2 = new System.Windows.Forms.Label();
-            label3 = new System.Windows.Forms.Label();
-            colorLabel = new System.Windows.Forms.Label();
-            nametkanLabel = new System.Windows.Forms.Label();
-            label4 = new System.Windows.Forms.Label();
-            label5 = new System.Windows.Forms.Label();
-            widthLabel = new System.Windows.Forms.Label();
-            lengthLabel = new System.Windows.Forms.Label();
-            nameizdLabel = new System.Windows.Forms.Label();
+            this.btnDrop = new System.Windows.Forms.Button();
+            this.label3 = new System.Windows.Forms.Label();
+            this.tbxWidth = new System.Windows.Forms.TextBox();
+            this.label2 = new System.Windows.Forms.Label();
+            this.tbxLenght = new System.Windows.Forms.TextBox();
+            this.label4 = new System.Windows.Forms.Label();
+            this.tbxTitle = new System.Windows.Forms.TextBox();
+            this.btnAdd = new System.Windows.Forms.Button();
+            this.dgvProducts = new System.Windows.Forms.DataGridView();
+            this.izdelieBindingSource = new System.Windows.Forms.BindingSource(this.components);
+            this.izdelieTableAdapter = new FactoryLVS.FactoryLVSDataSetTableAdapters.IzdelieTableAdapter();
+            this.izdelieBindingSource1 = new System.Windows.Forms.BindingSource(this.components);
+            this.idizdDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.nameizdDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.lengthDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.widthDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.BtnProfile = new System.Windows.Forms.Button();
             ((System.ComponentModel.ISupportInitialize)(this.BsUsers)).BeginInit();
             ((System.ComponentModel.ISupportInitialize)(this.factoryLVSDataSet)).BeginInit();
             this.panel1.SuspendLayout();
             ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
-            this.tabControl1.SuspendLayout();
-            this.tabPage1.SuspendLayout();
-            ((System.ComponentModel.ISupportInitialize)(this.DgvZakaz)).BeginInit();
-            this.tabPage2.SuspendLayout();
-            this.tabPage3.SuspendLayout();
-            this.tabPage4.SuspendLayout();
-            ((System.ComponentModel.ISupportInitialize)(this.DgvIzd)).BeginInit();
+            ((System.ComponentModel.ISupportInitialize)(this.dgvProducts)).BeginInit();
+            ((System.ComponentModel.ISupportInitialize)(this.izdelieBindingSource)).BeginInit();
+            ((System.ComponentModel.ISupportInitialize)(this.izdelieBindingSource1)).BeginInit();
             this.SuspendLayout();
             // 
             // BsUsers
             // 
+            this.BsUsers.DataMember = "Users";
             this.BsUsers.DataSource = this.factoryLVSDataSet;
-            this.BsUsers.Position = 0;
             // 
             // factoryLVSDataSet
             // 
@@ -124,68 +80,10 @@
             // 
             this.usersTableAdapter.ClearBeforeFill = true;
             // 
-            // BtnSelect
-            // 
-            this.BtnSelect.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(156)))), ((int)(((byte)(26)))));
-            this.BtnSelect.Location = new System.Drawing.Point(314, 438);
-            this.BtnSelect.Margin = new System.Windows.Forms.Padding(2);
-            this.BtnSelect.Name = "BtnSelect";
-            this.BtnSelect.Size = new System.Drawing.Size(227, 23);
-            this.BtnSelect.TabIndex = 20;
-            this.BtnSelect.Text = "Экспортировать выделенные заказы";
-            this.BtnSelect.UseVisualStyleBackColor = false;
-            // 
-            // BtnAll
-            // 
-            this.BtnAll.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(156)))), ((int)(((byte)(26)))));
-            this.BtnAll.Location = new System.Drawing.Point(137, 438);
-            this.BtnAll.Margin = new System.Windows.Forms.Padding(2);
-            this.BtnAll.Name = "BtnAll";
-            this.BtnAll.Size = new System.Drawing.Size(172, 23);
-            this.BtnAll.TabIndex = 19;
-            this.BtnAll.Text = "Экспортировать все заказы";
-            this.BtnAll.UseVisualStyleBackColor = false;
-            // 
-            // RbtCSV
-            // 
-            this.RbtCSV.AutoSize = true;
-            this.RbtCSV.Location = new System.Drawing.Point(82, 443);
-            this.RbtCSV.Margin = new System.Windows.Forms.Padding(2);
-            this.RbtCSV.Name = "RbtCSV";
-            this.RbtCSV.Size = new System.Drawing.Size(55, 17);
-            this.RbtCSV.TabIndex = 18;
-            this.RbtCSV.Text = "в CSV";
-            this.RbtCSV.UseVisualStyleBackColor = true;
-            // 
-            // RbtWord
-            // 
-            this.RbtWord.AutoSize = true;
-            this.RbtWord.Checked = true;
-            this.RbtWord.Location = new System.Drawing.Point(22, 443);
-            this.RbtWord.Margin = new System.Windows.Forms.Padding(2);
-            this.RbtWord.Name = "RbtWord";
-            this.RbtWord.Size = new System.Drawing.Size(60, 17);
-            this.RbtWord.TabIndex = 17;
-            this.RbtWord.TabStop = true;
-            this.RbtWord.Text = "в Word";
-            this.RbtWord.UseVisualStyleBackColor = 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(195, 145);
-            this.BtnProfile.Margin = new System.Windows.Forms.Padding(2);
-            this.BtnProfile.Name = "BtnProfile";
-            this.BtnProfile.Size = new System.Drawing.Size(154, 23);
-            this.BtnProfile.TabIndex = 26;
-            this.BtnProfile.Text = "Профиль пользователя";
-            this.BtnProfile.UseVisualStyleBackColor = false;
-            this.BtnProfile.Click += new System.EventHandler(this.BtnProfile_Click);
-            // 
             // OtchLabel
             // 
-            this.OtchLabel.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.BsUsers, "otch", true));
-            this.OtchLabel.Location = new System.Drawing.Point(11, 150);
+            this.OtchLabel.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.BsUsers, "Otch", true));
+            this.OtchLabel.Location = new System.Drawing.Point(600, 45);
             this.OtchLabel.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
             this.OtchLabel.Name = "OtchLabel";
             this.OtchLabel.Size = new System.Drawing.Size(75, 19);
@@ -194,8 +92,8 @@
             // 
             // NameLabel
             // 
-            this.NameLabel.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.BsUsers, "name", true));
-            this.NameLabel.Location = new System.Drawing.Point(11, 131);
+            this.NameLabel.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.BsUsers, "Name", true));
+            this.NameLabel.Location = new System.Drawing.Point(600, 27);
             this.NameLabel.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
             this.NameLabel.Name = "NameLabel";
             this.NameLabel.Size = new System.Drawing.Size(75, 19);
@@ -204,8 +102,8 @@
             // 
             // FamLabel
             // 
-            this.FamLabel.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.BsUsers, "fam", true));
-            this.FamLabel.Location = new System.Drawing.Point(11, 113);
+            this.FamLabel.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.BsUsers, "Surname", true));
+            this.FamLabel.Location = new System.Drawing.Point(600, 9);
             this.FamLabel.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
             this.FamLabel.Name = "FamLabel";
             this.FamLabel.Size = new System.Drawing.Size(75, 19);
@@ -217,18 +115,21 @@
             this.panel1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(225)))));
             this.panel1.Controls.Add(this.LblIdManager);
             this.panel1.Controls.Add(this.label1);
+            this.panel1.Controls.Add(this.OtchLabel);
             this.panel1.Controls.Add(this.pictureBox1);
+            this.panel1.Controls.Add(this.NameLabel);
+            this.panel1.Controls.Add(this.FamLabel);
             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(2);
             this.panel1.Name = "panel1";
-            this.panel1.Size = new System.Drawing.Size(686, 106);
+            this.panel1.Size = new System.Drawing.Size(885, 106);
             this.panel1.TabIndex = 22;
             // 
             // LblIdManager
             // 
             this.LblIdManager.AutoSize = true;
-            this.LblIdManager.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.BsUsers, "iduser", true));
+            this.LblIdManager.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.BsUsers, "id_User", true));
             this.LblIdManager.Location = new System.Drawing.Point(603, 73);
             this.LblIdManager.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
             this.LblIdManager.Name = "LblIdManager";
@@ -258,480 +159,173 @@
             this.pictureBox1.TabIndex = 0;
             this.pictureBox1.TabStop = false;
             // 
-            // tabControl1
-            // 
-            this.tabControl1.Controls.Add(this.tabPage1);
-            this.tabControl1.Controls.Add(this.tabPage2);
-            this.tabControl1.Controls.Add(this.tabPage3);
-            this.tabControl1.Controls.Add(this.tabPage4);
-            this.tabControl1.Dock = System.Windows.Forms.DockStyle.Bottom;
-            this.tabControl1.Location = new System.Drawing.Point(0, 174);
-            this.tabControl1.Margin = new System.Windows.Forms.Padding(2);
-            this.tabControl1.Name = "tabControl1";
-            this.tabControl1.SelectedIndex = 0;
-            this.tabControl1.Size = new System.Drawing.Size(686, 333);
-            this.tabControl1.TabIndex = 27;
-            // 
-            // tabPage1
-            // 
-            this.tabPage1.Controls.Add(this.DgvZakaz);
-            this.tabPage1.Controls.Add(this.button1);
-            this.tabPage1.Controls.Add(this.button2);
-            this.tabPage1.Controls.Add(this.radioButton1);
-            this.tabPage1.Controls.Add(this.radioButton2);
-            this.tabPage1.Location = new System.Drawing.Point(4, 22);
-            this.tabPage1.Margin = new System.Windows.Forms.Padding(2);
-            this.tabPage1.Name = "tabPage1";
-            this.tabPage1.Padding = new System.Windows.Forms.Padding(2);
-            this.tabPage1.Size = new System.Drawing.Size(678, 307);
-            this.tabPage1.TabIndex = 0;
-            this.tabPage1.Text = "Заказы";
-            this.tabPage1.UseVisualStyleBackColor = true;
-            // 
-            // DgvZakaz
-            // 
-            this.DgvZakaz.AllowUserToAddRows = false;
-            this.DgvZakaz.AllowUserToDeleteRows = false;
-            this.DgvZakaz.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
-            this.DgvZakaz.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
-            this.Column1,
-            this.Column2,
-            this.Column3,
-            this.Column4,
-            this.Column5,
-            this.Column6});
-            this.DgvZakaz.Location = new System.Drawing.Point(4, 5);
-            this.DgvZakaz.Margin = new System.Windows.Forms.Padding(2);
-            this.DgvZakaz.Name = "DgvZakaz";
-            this.DgvZakaz.ReadOnly = true;
-            this.DgvZakaz.RowHeadersVisible = false;
-            this.DgvZakaz.RowTemplate.Height = 24;
-            this.DgvZakaz.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
-            this.DgvZakaz.Size = new System.Drawing.Size(664, 242);
-            this.DgvZakaz.TabIndex = 16;
-            // 
-            // Column1
-            // 
-            this.Column1.HeaderText = "Изделие";
-            this.Column1.Name = "Column1";
-            this.Column1.ReadOnly = true;
-            // 
-            // Column2
-            // 
-            this.Column2.HeaderText = "Кол-во изделий";
-            this.Column2.Name = "Column2";
-            this.Column2.ReadOnly = true;
-            // 
-            // Column3
-            // 
-            this.Column3.HeaderText = "Ткань";
-            this.Column3.Name = "Column3";
-            this.Column3.ReadOnly = true;
-            // 
-            // Column4
-            // 
-            this.Column4.HeaderText = "Фурнитура";
-            this.Column4.Name = "Column4";
-            this.Column4.ReadOnly = true;
-            // 
-            // Column5
-            // 
-            this.Column5.HeaderText = "Кол-во фурнитуры";
-            this.Column5.Name = "Column5";
-            this.Column5.ReadOnly = true;
-            // 
-            // Column6
-            // 
-            this.Column6.HeaderText = "Заказчик";
-            this.Column6.Name = "Column6";
-            this.Column6.ReadOnly = true;
-            // 
-            // button1
-            // 
-            this.button1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(156)))), ((int)(((byte)(26)))));
-            this.button1.Location = new System.Drawing.Point(307, 266);
-            this.button1.Margin = new System.Windows.Forms.Padding(2);
-            this.button1.Name = "button1";
-            this.button1.Size = new System.Drawing.Size(227, 23);
-            this.button1.TabIndex = 15;
-            this.button1.Text = "Экспортировать выделенные заказы";
-            this.button1.UseVisualStyleBackColor = false;
-            // 
-            // button2
-            // 
-            this.button2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(156)))), ((int)(((byte)(26)))));
-            this.button2.Location = new System.Drawing.Point(130, 266);
-            this.button2.Margin = new System.Windows.Forms.Padding(2);
-            this.button2.Name = "button2";
-            this.button2.Size = new System.Drawing.Size(172, 23);
-            this.button2.TabIndex = 14;
-            this.button2.Text = "Экспортировать все заказы";
-            this.button2.UseVisualStyleBackColor = false;
-            // 
-            // radioButton1
-            // 
-            this.radioButton1.AutoSize = true;
-            this.radioButton1.Location = new System.Drawing.Point(75, 271);
-            this.radioButton1.Margin = new System.Windows.Forms.Padding(2);
-            this.radioButton1.Name = "radioButton1";
-            this.radioButton1.Size = new System.Drawing.Size(55, 17);
-            this.radioButton1.TabIndex = 1;
-            this.radioButton1.Text = "в CSV";
-            this.radioButton1.UseVisualStyleBackColor = true;
-            // 
-            // radioButton2
-            // 
-            this.radioButton2.AutoSize = true;
-            this.radioButton2.Checked = true;
-            this.radioButton2.Location = new System.Drawing.Point(15, 271);
-            this.radioButton2.Margin = new System.Windows.Forms.Padding(2);
-            this.radioButton2.Name = "radioButton2";
-            this.radioButton2.Size = new System.Drawing.Size(60, 17);
-            this.radioButton2.TabIndex = 0;
-            this.radioButton2.TabStop = true;
-            this.radioButton2.Text = "в Word";
-            this.radioButton2.UseVisualStyleBackColor = true;
-            // 
-            // tabPage2
-            // 
-            this.tabPage2.Controls.Add(descriptionLabel);
-            this.tabPage2.Controls.Add(this.DescriptionTextBox);
-            this.tabPage2.Controls.Add(label2);
-            this.tabPage2.Controls.Add(this.LengthTextBox);
-            this.tabPage2.Controls.Add(label3);
-            this.tabPage2.Controls.Add(this.WidthTextBox);
-            this.tabPage2.Controls.Add(colorLabel);
-            this.tabPage2.Controls.Add(this.ColorTextBox);
-            this.tabPage2.Controls.Add(nametkanLabel);
-            this.tabPage2.Controls.Add(this.NametkanTextBox);
-            this.tabPage2.Controls.Add(this.LVTkani);
-            this.tabPage2.Location = new System.Drawing.Point(4, 22);
-            this.tabPage2.Margin = new System.Windows.Forms.Padding(2);
-            this.tabPage2.Name = "tabPage2";
-            this.tabPage2.Padding = new System.Windows.Forms.Padding(2);
-            this.tabPage2.Size = new System.Drawing.Size(678, 307);
-            this.tabPage2.TabIndex = 1;
-            this.tabPage2.Text = "Ткани";
-            this.tabPage2.UseVisualStyleBackColor = true;
-            // 
-            // descriptionLabel
-            // 
-            descriptionLabel.AutoSize = true;
-            descriptionLabel.Location = new System.Drawing.Point(398, 150);
-            descriptionLabel.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
-            descriptionLabel.Name = "descriptionLabel";
-            descriptionLabel.Size = new System.Drawing.Size(60, 13);
-            descriptionLabel.TabIndex = 20;
-            descriptionLabel.Text = "Описание:";
-            // 
-            // DescriptionTextBox
-            // 
-            this.DescriptionTextBox.Location = new System.Drawing.Point(461, 148);
-            this.DescriptionTextBox.Margin = new System.Windows.Forms.Padding(2);
-            this.DescriptionTextBox.Name = "DescriptionTextBox";
-            this.DescriptionTextBox.ReadOnly = true;
-            this.DescriptionTextBox.Size = new System.Drawing.Size(109, 20);
-            this.DescriptionTextBox.TabIndex = 21;
+            // btnDrop
             // 
-            // label2
+            this.btnDrop.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+            this.btnDrop.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(156)))), ((int)(((byte)(26)))));
+            this.btnDrop.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
+            this.btnDrop.Location = new System.Drawing.Point(631, 416);
+            this.btnDrop.Margin = new System.Windows.Forms.Padding(11, 8, 11, 8);
+            this.btnDrop.Name = "btnDrop";
+            this.btnDrop.Size = new System.Drawing.Size(234, 42);
+            this.btnDrop.TabIndex = 31;
+            this.btnDrop.Text = "Сброс выделения";
+            this.btnDrop.UseVisualStyleBackColor = false;
             // 
-            label2.AutoSize = true;
-            label2.Location = new System.Drawing.Point(416, 120);
-            label2.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
-            label2.Name = "label2";
-            label2.Size = new System.Drawing.Size(43, 13);
-            label2.TabIndex = 18;
-            label2.Text = "Длина:";
+            // label3
             // 
-            // LengthTextBox
+            this.label3.AutoSize = true;
+            this.label3.Location = new System.Drawing.Point(628, 284);
+            this.label3.Name = "label3";
+            this.label3.Size = new System.Drawing.Size(46, 13);
+            this.label3.TabIndex = 30;
+            this.label3.Text = "Ширина";
             // 
-            this.LengthTextBox.Location = new System.Drawing.Point(461, 118);
-            this.LengthTextBox.Margin = new System.Windows.Forms.Padding(2);
-            this.LengthTextBox.Name = "LengthTextBox";
-            this.LengthTextBox.ReadOnly = true;
-            this.LengthTextBox.Size = new System.Drawing.Size(109, 20);
-            this.LengthTextBox.TabIndex = 19;
+            // tbxWidth
             // 
-            // label3
+            this.tbxWidth.Location = new System.Drawing.Point(632, 309);
+            this.tbxWidth.Name = "tbxWidth";
+            this.tbxWidth.Size = new System.Drawing.Size(234, 20);
+            this.tbxWidth.TabIndex = 29;
+            // 
+            // label2
+            // 
+            this.label2.AutoSize = true;
+            this.label2.Location = new System.Drawing.Point(628, 223);
+            this.label2.Name = "label2";
+            this.label2.Size = new System.Drawing.Size(40, 13);
+            this.label2.TabIndex = 28;
+            this.label2.Text = "Длина";
+            // 
+            // tbxLenght
             // 
-            label3.AutoSize = true;
-            label3.Location = new System.Drawing.Point(410, 91);
-            label3.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
-            label3.Name = "label3";
-            label3.Size = new System.Drawing.Size(49, 13);
-            label3.TabIndex = 16;
-            label3.Text = "Ширина:";
-            // 
-            // WidthTextBox
-            // 
-            this.WidthTextBox.Location = new System.Drawing.Point(461, 89);
-            this.WidthTextBox.Margin = new System.Windows.Forms.Padding(2);
-            this.WidthTextBox.Name = "WidthTextBox";
-            this.WidthTextBox.ReadOnly = true;
-            this.WidthTextBox.Size = new System.Drawing.Size(109, 20);
-            this.WidthTextBox.TabIndex = 17;
-            // 
-            // colorLabel
-            // 
-            colorLabel.AutoSize = true;
-            colorLabel.Location = new System.Drawing.Point(423, 59);
-            colorLabel.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
-            colorLabel.Name = "colorLabel";
-            colorLabel.Size = new System.Drawing.Size(35, 13);
-            colorLabel.TabIndex = 14;
-            colorLabel.Text = "Цвет:";
-            // 
-            // ColorTextBox
-            // 
-            this.ColorTextBox.Location = new System.Drawing.Point(461, 57);
-            this.ColorTextBox.Margin = new System.Windows.Forms.Padding(2);
-            this.ColorTextBox.Name = "ColorTextBox";
-            this.ColorTextBox.ReadOnly = true;
-            this.ColorTextBox.Size = new System.Drawing.Size(109, 20);
-            this.ColorTextBox.TabIndex = 15;
-            // 
-            // nametkanLabel
-            // 
-            nametkanLabel.AutoSize = true;
-            nametkanLabel.Location = new System.Drawing.Point(400, 28);
-            nametkanLabel.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
-            nametkanLabel.Name = "nametkanLabel";
-            nametkanLabel.Size = new System.Drawing.Size(60, 13);
-            nametkanLabel.TabIndex = 12;
-            nametkanLabel.Text = "Название:";
-            // 
-            // NametkanTextBox
-            // 
-            this.NametkanTextBox.Location = new System.Drawing.Point(461, 25);
-            this.NametkanTextBox.Margin = new System.Windows.Forms.Padding(2);
-            this.NametkanTextBox.Name = "NametkanTextBox";
-            this.NametkanTextBox.ReadOnly = true;
-            this.NametkanTextBox.Size = new System.Drawing.Size(109, 20);
-            this.NametkanTextBox.TabIndex = 13;
-            // 
-            // LVTkani
-            // 
-            this.LVTkani.Dock = System.Windows.Forms.DockStyle.Left;
-            this.LVTkani.HideSelection = false;
-            this.LVTkani.Location = new System.Drawing.Point(2, 2);
-            this.LVTkani.Margin = new System.Windows.Forms.Padding(2);
-            this.LVTkani.Name = "LVTkani";
-            this.LVTkani.Size = new System.Drawing.Size(340, 303);
-            this.LVTkani.TabIndex = 11;
-            this.LVTkani.UseCompatibleStateImageBehavior = false;
-            // 
-            // tabPage3
-            // 
-            this.tabPage3.Controls.Add(label4);
-            this.tabPage3.Controls.Add(this.TbxCountFurSklad);
-            this.tabPage3.Controls.Add(label5);
-            this.tabPage3.Controls.Add(this.TbxNameFur);
-            this.tabPage3.Controls.Add(this.LVFurnitura);
-            this.tabPage3.Location = new System.Drawing.Point(4, 22);
-            this.tabPage3.Margin = new System.Windows.Forms.Padding(2);
-            this.tabPage3.Name = "tabPage3";
-            this.tabPage3.Padding = new System.Windows.Forms.Padding(2);
-            this.tabPage3.Size = new System.Drawing.Size(678, 307);
-            this.tabPage3.TabIndex = 2;
-            this.tabPage3.Text = "Фурнитуры";
-            this.tabPage3.UseVisualStyleBackColor = true;
+            this.tbxLenght.Location = new System.Drawing.Point(632, 248);
+            this.tbxLenght.Name = "tbxLenght";
+            this.tbxLenght.Size = new System.Drawing.Size(234, 20);
+            this.tbxLenght.TabIndex = 27;
             // 
             // label4
             // 
-            label4.AutoSize = true;
-            label4.Location = new System.Drawing.Point(359, 87);
-            label4.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
-            label4.Name = "label4";
-            label4.Size = new System.Drawing.Size(98, 13);
-            label4.TabIndex = 14;
-            label4.Text = "Кол-во на складе:";
-            // 
-            // TbxCountFurSklad
-            // 
-            this.TbxCountFurSklad.Location = new System.Drawing.Point(459, 87);
-            this.TbxCountFurSklad.Margin = new System.Windows.Forms.Padding(2);
-            this.TbxCountFurSklad.Name = "TbxCountFurSklad";
-            this.TbxCountFurSklad.ReadOnly = true;
-            this.TbxCountFurSklad.Size = new System.Drawing.Size(109, 20);
-            this.TbxCountFurSklad.TabIndex = 15;
-            // 
-            // label5
-            // 
-            label5.AutoSize = true;
-            label5.Location = new System.Drawing.Point(398, 58);
-            label5.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
-            label5.Name = "label5";
-            label5.Size = new System.Drawing.Size(60, 13);
-            label5.TabIndex = 12;
-            label5.Text = "Название:";
-            // 
-            // TbxNameFur
-            // 
-            this.TbxNameFur.Location = new System.Drawing.Point(459, 55);
-            this.TbxNameFur.Margin = new System.Windows.Forms.Padding(2);
-            this.TbxNameFur.Name = "TbxNameFur";
-            this.TbxNameFur.ReadOnly = true;
-            this.TbxNameFur.Size = new System.Drawing.Size(109, 20);
-            this.TbxNameFur.TabIndex = 13;
-            // 
-            // LVFurnitura
-            // 
-            this.LVFurnitura.Dock = System.Windows.Forms.DockStyle.Left;
-            this.LVFurnitura.HideSelection = false;
-            this.LVFurnitura.Location = new System.Drawing.Point(2, 2);
-            this.LVFurnitura.Margin = new System.Windows.Forms.Padding(2);
-            this.LVFurnitura.Name = "LVFurnitura";
-            this.LVFurnitura.Size = new System.Drawing.Size(327, 303);
-            this.LVFurnitura.TabIndex = 11;
-            this.LVFurnitura.UseCompatibleStateImageBehavior = false;
-            // 
-            // tabPage4
-            // 
-            this.tabPage4.AutoScroll = true;
-            this.tabPage4.Controls.Add(this.BtnSave);
-            this.tabPage4.Controls.Add(this.BtnEdit);
-            this.tabPage4.Controls.Add(this.BtnAdd);
-            this.tabPage4.Controls.Add(widthLabel);
-            this.tabPage4.Controls.Add(this.TbxWidthIzd);
-            this.tabPage4.Controls.Add(lengthLabel);
-            this.tabPage4.Controls.Add(this.TbxLengthIzd);
-            this.tabPage4.Controls.Add(nameizdLabel);
-            this.tabPage4.Controls.Add(this.TbxNameIzd);
-            this.tabPage4.Controls.Add(this.DgvIzd);
-            this.tabPage4.Location = new System.Drawing.Point(4, 22);
-            this.tabPage4.Margin = new System.Windows.Forms.Padding(2);
-            this.tabPage4.Name = "tabPage4";
-            this.tabPage4.Padding = new System.Windows.Forms.Padding(2);
-            this.tabPage4.Size = new System.Drawing.Size(678, 307);
-            this.tabPage4.TabIndex = 3;
-            this.tabPage4.Text = "Изделия";
-            this.tabPage4.UseVisualStyleBackColor = true;
-            // 
-            // BtnSave
-            // 
-            this.BtnSave.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(156)))), ((int)(((byte)(26)))));
-            this.BtnSave.Enabled = false;
-            this.BtnSave.Location = new System.Drawing.Point(204, 203);
-            this.BtnSave.Margin = new System.Windows.Forms.Padding(2);
-            this.BtnSave.Name = "BtnSave";
-            this.BtnSave.Size = new System.Drawing.Size(154, 23);
-            this.BtnSave.TabIndex = 16;
-            this.BtnSave.Text = "Сохранить";
-            this.BtnSave.UseVisualStyleBackColor = false;
-            // 
-            // BtnEdit
-            // 
-            this.BtnEdit.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(156)))), ((int)(((byte)(26)))));
-            this.BtnEdit.Location = new System.Drawing.Point(204, 145);
-            this.BtnEdit.Margin = new System.Windows.Forms.Padding(2);
-            this.BtnEdit.Name = "BtnEdit";
-            this.BtnEdit.Size = new System.Drawing.Size(154, 23);
-            this.BtnEdit.TabIndex = 15;
-            this.BtnEdit.Text = "Редактировать";
-            this.BtnEdit.UseVisualStyleBackColor = false;
-            // 
-            // BtnAdd
-            // 
-            this.BtnAdd.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(156)))), ((int)(((byte)(26)))));
-            this.BtnAdd.Location = new System.Drawing.Point(204, 110);
-            this.BtnAdd.Margin = new System.Windows.Forms.Padding(2);
-            this.BtnAdd.Name = "BtnAdd";
-            this.BtnAdd.Size = new System.Drawing.Size(154, 23);
-            this.BtnAdd.TabIndex = 14;
-            this.BtnAdd.Text = "Добавить";
-            this.BtnAdd.UseVisualStyleBackColor = false;
-            // 
-            // widthLabel
-            // 
-            widthLabel.AutoSize = true;
-            widthLabel.Location = new System.Drawing.Point(212, 63);
-            widthLabel.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
-            widthLabel.Name = "widthLabel";
-            widthLabel.Size = new System.Drawing.Size(49, 13);
-            widthLabel.TabIndex = 5;
-            widthLabel.Text = "Ширина:";
-            // 
-            // TbxWidthIzd
-            // 
-            this.TbxWidthIzd.Enabled = false;
-            this.TbxWidthIzd.Location = new System.Drawing.Point(263, 61);
-            this.TbxWidthIzd.Margin = new System.Windows.Forms.Padding(2);
-            this.TbxWidthIzd.Name = "TbxWidthIzd";
-            this.TbxWidthIzd.Size = new System.Drawing.Size(96, 20);
-            this.TbxWidthIzd.TabIndex = 6;
-            // 
-            // lengthLabel
-            // 
-            lengthLabel.AutoSize = true;
-            lengthLabel.Location = new System.Drawing.Point(218, 41);
-            lengthLabel.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
-            lengthLabel.Name = "lengthLabel";
-            lengthLabel.Size = new System.Drawing.Size(43, 13);
-            lengthLabel.TabIndex = 3;
-            lengthLabel.Text = "Длина:";
-            // 
-            // TbxLengthIzd
-            // 
-            this.TbxLengthIzd.Enabled = false;
-            this.TbxLengthIzd.Location = new System.Drawing.Point(263, 38);
-            this.TbxLengthIzd.Margin = new System.Windows.Forms.Padding(2);
-            this.TbxLengthIzd.Name = "TbxLengthIzd";
-            this.TbxLengthIzd.Size = new System.Drawing.Size(96, 20);
-            this.TbxLengthIzd.TabIndex = 4;
-            // 
-            // nameizdLabel
-            // 
-            nameizdLabel.AutoSize = true;
-            nameizdLabel.Location = new System.Drawing.Point(202, 20);
-            nameizdLabel.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
-            nameizdLabel.Name = "nameizdLabel";
-            nameizdLabel.Size = new System.Drawing.Size(60, 13);
-            nameizdLabel.TabIndex = 1;
-            nameizdLabel.Text = "Название:";
-            // 
-            // TbxNameIzd
-            // 
-            this.TbxNameIzd.Enabled = false;
-            this.TbxNameIzd.Location = new System.Drawing.Point(263, 15);
-            this.TbxNameIzd.Margin = new System.Windows.Forms.Padding(2);
-            this.TbxNameIzd.Name = "TbxNameIzd";
-            this.TbxNameIzd.Size = new System.Drawing.Size(96, 20);
-            this.TbxNameIzd.TabIndex = 2;
-            // 
-            // DgvIzd
-            // 
-            this.DgvIzd.AllowUserToAddRows = false;
-            this.DgvIzd.AllowUserToDeleteRows = false;
-            this.DgvIzd.AllowUserToResizeColumns = false;
-            this.DgvIzd.AllowUserToResizeRows = false;
-            this.DgvIzd.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
-            this.DgvIzd.ColumnHeadersVisible = false;
-            this.DgvIzd.Location = new System.Drawing.Point(8, 5);
-            this.DgvIzd.Margin = new System.Windows.Forms.Padding(2);
-            this.DgvIzd.Name = "DgvIzd";
-            this.DgvIzd.ReadOnly = true;
-            this.DgvIzd.RowHeadersVisible = false;
-            this.DgvIzd.RowTemplate.Height = 24;
-            this.DgvIzd.Size = new System.Drawing.Size(180, 298);
-            this.DgvIzd.TabIndex = 0;
+            this.label4.AutoSize = true;
+            this.label4.Location = new System.Drawing.Point(628, 163);
+            this.label4.Name = "label4";
+            this.label4.Size = new System.Drawing.Size(57, 13);
+            this.label4.TabIndex = 26;
+            this.label4.Text = "Название";
+            // 
+            // tbxTitle
+            // 
+            this.tbxTitle.Location = new System.Drawing.Point(632, 188);
+            this.tbxTitle.Name = "tbxTitle";
+            this.tbxTitle.Size = new System.Drawing.Size(234, 20);
+            this.tbxTitle.TabIndex = 25;
+            // 
+            // btnAdd
+            // 
+            this.btnAdd.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+            this.btnAdd.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(156)))), ((int)(((byte)(26)))));
+            this.btnAdd.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
+            this.btnAdd.Location = new System.Drawing.Point(631, 358);
+            this.btnAdd.Margin = new System.Windows.Forms.Padding(11, 8, 11, 8);
+            this.btnAdd.Name = "btnAdd";
+            this.btnAdd.Size = new System.Drawing.Size(234, 42);
+            this.btnAdd.TabIndex = 24;
+            this.btnAdd.Text = "Добавить изделие";
+            this.btnAdd.UseVisualStyleBackColor = false;
+            // 
+            // dgvProducts
+            // 
+            this.dgvProducts.AllowUserToAddRows = false;
+            this.dgvProducts.AllowUserToDeleteRows = false;
+            this.dgvProducts.AutoGenerateColumns = false;
+            this.dgvProducts.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
+            this.dgvProducts.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
+            this.idizdDataGridViewTextBoxColumn,
+            this.nameizdDataGridViewTextBoxColumn,
+            this.lengthDataGridViewTextBoxColumn,
+            this.widthDataGridViewTextBoxColumn});
+            this.dgvProducts.DataSource = this.izdelieBindingSource1;
+            this.dgvProducts.Location = new System.Drawing.Point(12, 111);
+            this.dgvProducts.Name = "dgvProducts";
+            this.dgvProducts.ReadOnly = true;
+            this.dgvProducts.Size = new System.Drawing.Size(594, 389);
+            this.dgvProducts.TabIndex = 23;
+            // 
+            // izdelieBindingSource
+            // 
+            this.izdelieBindingSource.DataSource = this.BsUsers;
+            // 
+            // izdelieTableAdapter
+            // 
+            this.izdelieTableAdapter.ClearBeforeFill = true;
+            // 
+            // izdelieBindingSource1
+            // 
+            this.izdelieBindingSource1.DataMember = "Izdelie";
+            this.izdelieBindingSource1.DataSource = this.factoryLVSDataSet;
+            // 
+            // idizdDataGridViewTextBoxColumn
+            // 
+            this.idizdDataGridViewTextBoxColumn.DataPropertyName = "id_izd";
+            this.idizdDataGridViewTextBoxColumn.HeaderText = "id_izd";
+            this.idizdDataGridViewTextBoxColumn.Name = "idizdDataGridViewTextBoxColumn";
+            this.idizdDataGridViewTextBoxColumn.ReadOnly = true;
+            this.idizdDataGridViewTextBoxColumn.Visible = false;
+            // 
+            // nameizdDataGridViewTextBoxColumn
+            // 
+            this.nameizdDataGridViewTextBoxColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
+            this.nameizdDataGridViewTextBoxColumn.DataPropertyName = "name_izd";
+            this.nameizdDataGridViewTextBoxColumn.HeaderText = "Название изделия";
+            this.nameizdDataGridViewTextBoxColumn.Name = "nameizdDataGridViewTextBoxColumn";
+            this.nameizdDataGridViewTextBoxColumn.ReadOnly = true;
+            // 
+            // lengthDataGridViewTextBoxColumn
+            // 
+            this.lengthDataGridViewTextBoxColumn.DataPropertyName = "length";
+            this.lengthDataGridViewTextBoxColumn.HeaderText = "Длина";
+            this.lengthDataGridViewTextBoxColumn.Name = "lengthDataGridViewTextBoxColumn";
+            this.lengthDataGridViewTextBoxColumn.ReadOnly = true;
+            // 
+            // widthDataGridViewTextBoxColumn
+            // 
+            this.widthDataGridViewTextBoxColumn.DataPropertyName = "width";
+            this.widthDataGridViewTextBoxColumn.HeaderText = "Ширина";
+            this.widthDataGridViewTextBoxColumn.Name = "widthDataGridViewTextBoxColumn";
+            this.widthDataGridViewTextBoxColumn.ReadOnly = 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(632, 111);
+            this.BtnProfile.Margin = new System.Windows.Forms.Padding(2);
+            this.BtnProfile.Name = "BtnProfile";
+            this.BtnProfile.Size = new System.Drawing.Size(234, 42);
+            this.BtnProfile.TabIndex = 32;
+            this.BtnProfile.Text = "Профиль пользователя";
+            this.BtnProfile.UseVisualStyleBackColor = false;
+            this.BtnProfile.Click += new System.EventHandler(this.BtnProfile_Click_1);
             // 
             // FormManager
             // 
             this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
             this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
-            this.ClientSize = new System.Drawing.Size(686, 507);
-            this.Controls.Add(this.tabControl1);
+            this.ClientSize = new System.Drawing.Size(885, 518);
             this.Controls.Add(this.BtnProfile);
-            this.Controls.Add(this.OtchLabel);
-            this.Controls.Add(this.NameLabel);
-            this.Controls.Add(this.FamLabel);
+            this.Controls.Add(this.btnDrop);
+            this.Controls.Add(this.label3);
+            this.Controls.Add(this.tbxWidth);
+            this.Controls.Add(this.label2);
+            this.Controls.Add(this.tbxLenght);
+            this.Controls.Add(this.label4);
+            this.Controls.Add(this.tbxTitle);
+            this.Controls.Add(this.btnAdd);
+            this.Controls.Add(this.dgvProducts);
             this.Controls.Add(this.panel1);
-            this.Controls.Add(this.BtnSelect);
-            this.Controls.Add(this.BtnAll);
-            this.Controls.Add(this.RbtCSV);
-            this.Controls.Add(this.RbtWord);
             this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
-            this.MinimumSize = new System.Drawing.Size(702, 546);
+            this.MaximizeBox = false;
+            this.MaximumSize = new System.Drawing.Size(901, 557);
+            this.MinimumSize = new System.Drawing.Size(901, 557);
             this.Name = "FormManager";
             this.Text = "СУБД \"Швейная фабрика\"";
             this.Load += new System.EventHandler(this.FormManager_Load);
@@ -740,17 +334,9 @@
             this.panel1.ResumeLayout(false);
             this.panel1.PerformLayout();
             ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
-            this.tabControl1.ResumeLayout(false);
-            this.tabPage1.ResumeLayout(false);
-            this.tabPage1.PerformLayout();
-            ((System.ComponentModel.ISupportInitialize)(this.DgvZakaz)).EndInit();
-            this.tabPage2.ResumeLayout(false);
-            this.tabPage2.PerformLayout();
-            this.tabPage3.ResumeLayout(false);
-            this.tabPage3.PerformLayout();
-            this.tabPage4.ResumeLayout(false);
-            this.tabPage4.PerformLayout();
-            ((System.ComponentModel.ISupportInitialize)(this.DgvIzd)).EndInit();
+            ((System.ComponentModel.ISupportInitialize)(this.dgvProducts)).EndInit();
+            ((System.ComponentModel.ISupportInitialize)(this.izdelieBindingSource)).EndInit();
+            ((System.ComponentModel.ISupportInitialize)(this.izdelieBindingSource1)).EndInit();
             this.ResumeLayout(false);
             this.PerformLayout();
 
@@ -760,11 +346,6 @@
         private FactoryLVSDataSet factoryLVSDataSet;
         private FactoryLVSDataSetTableAdapters.UsersTableAdapter usersTableAdapter;
         public System.Windows.Forms.BindingSource BsUsers;
-        private System.Windows.Forms.Button BtnSelect;
-        private System.Windows.Forms.Button BtnAll;
-        private System.Windows.Forms.RadioButton RbtCSV;
-        private System.Windows.Forms.RadioButton RbtWord;
-        private System.Windows.Forms.Button BtnProfile;
         private System.Windows.Forms.Label OtchLabel;
         private System.Windows.Forms.Label NameLabel;
         private System.Windows.Forms.Label FamLabel;
@@ -772,37 +353,22 @@
         private System.Windows.Forms.Label LblIdManager;
         private System.Windows.Forms.Label label1;
         private System.Windows.Forms.PictureBox pictureBox1;
-        private System.Windows.Forms.TabControl tabControl1;
-        private System.Windows.Forms.TabPage tabPage1;
-        private System.Windows.Forms.DataGridView DgvZakaz;
-        private System.Windows.Forms.DataGridViewTextBoxColumn Column1;
-        private System.Windows.Forms.DataGridViewTextBoxColumn Column2;
-        private System.Windows.Forms.DataGridViewTextBoxColumn Column3;
-        private System.Windows.Forms.DataGridViewTextBoxColumn Column4;
-        private System.Windows.Forms.DataGridViewTextBoxColumn Column5;
-        private System.Windows.Forms.DataGridViewTextBoxColumn Column6;
-        private System.Windows.Forms.Button button1;
-        private System.Windows.Forms.Button button2;
-        private System.Windows.Forms.RadioButton radioButton1;
-        private System.Windows.Forms.RadioButton radioButton2;
-        private System.Windows.Forms.TabPage tabPage2;
-        private System.Windows.Forms.TextBox DescriptionTextBox;
-        private System.Windows.Forms.TextBox LengthTextBox;
-        private System.Windows.Forms.TextBox WidthTextBox;
-        private System.Windows.Forms.TextBox ColorTextBox;
-        private System.Windows.Forms.TextBox NametkanTextBox;
-        private System.Windows.Forms.ListView LVTkani;
-        private System.Windows.Forms.TabPage tabPage3;
-        private System.Windows.Forms.TextBox TbxCountFurSklad;
-        private System.Windows.Forms.TextBox TbxNameFur;
-        private System.Windows.Forms.ListView LVFurnitura;
-        private System.Windows.Forms.TabPage tabPage4;
-        private System.Windows.Forms.Button BtnSave;
-        private System.Windows.Forms.Button BtnEdit;
-        private System.Windows.Forms.Button BtnAdd;
-        private System.Windows.Forms.TextBox TbxWidthIzd;
-        private System.Windows.Forms.TextBox TbxLengthIzd;
-        private System.Windows.Forms.TextBox TbxNameIzd;
-        private System.Windows.Forms.DataGridView DgvIzd;
+        private System.Windows.Forms.Button btnDrop;
+        private System.Windows.Forms.Label label3;
+        private System.Windows.Forms.TextBox tbxWidth;
+        private System.Windows.Forms.Label label2;
+        private System.Windows.Forms.TextBox tbxLenght;
+        private System.Windows.Forms.Label label4;
+        private System.Windows.Forms.TextBox tbxTitle;
+        private System.Windows.Forms.Button btnAdd;
+        private System.Windows.Forms.DataGridView dgvProducts;
+        private System.Windows.Forms.BindingSource izdelieBindingSource;
+        private FactoryLVSDataSetTableAdapters.IzdelieTableAdapter izdelieTableAdapter;
+        private System.Windows.Forms.DataGridViewTextBoxColumn idizdDataGridViewTextBoxColumn;
+        private System.Windows.Forms.DataGridViewTextBoxColumn nameizdDataGridViewTextBoxColumn;
+        private System.Windows.Forms.DataGridViewTextBoxColumn lengthDataGridViewTextBoxColumn;
+        private System.Windows.Forms.DataGridViewTextBoxColumn widthDataGridViewTextBoxColumn;
+        private System.Windows.Forms.BindingSource izdelieBindingSource1;
+        private System.Windows.Forms.Button BtnProfile;
     }
 }

+ 11 - 32
FactoryLVS/FormManager.cs

@@ -17,42 +17,13 @@ namespace FactoryLVS
         {
             InitializeComponent();
         }
-        void FillListZakaz()
-        {
-            SqlConnection con = new SqlConnection(Properties.Settings.Default.FactoryLVSConnectionString);
-            con.Open();
-            string TxtQuery =
-@"select Izdeliya.nameizd as izd, 
-    Zakaz.countizd as countizd, 
-    Tkani.nametkan as tkan, 
-    Furnitura.namefur as fur, 
-    Zakaz.countfur as countfur, 
-    Users.fam as zakazchik
-from Zakaz, Users, Tkani, Furnitura, Izdeliya
-where Users.iduser = Zakaz.idzakazchik 
-    and Tkani.idtkan = Zakaz.idtkan 
-    and Furnitura.idfur = Zakaz.idfur 
-    and Izdeliya.idizd = Zakaz.idizd
-    and Zakaz.idman = " + LblIdManager.Text;
-
-            SqlCommand query1 = new SqlCommand(TxtQuery, con);
-            // выполнить запрос
-            SqlDataReader SqlRez = query1.ExecuteReader();
-
-            DgvZakaz.Rows.Clear(); // очистить от старых строк
-            // перебирать результаты запроса
-            while (SqlRez.Read())
-            {
-                DgvZakaz.Rows.Add(SqlRez["izd"], SqlRez["countizd"],
-                    SqlRez["tkan"], SqlRez["fur"], SqlRez["countfur"],
-                    SqlRez["zakazchik"]);
-            }
-            con.Close();
-        }
         private void FormManager_Load(object sender, EventArgs e)
         {
+            // TODO: This line of code loads data into the 'factoryLVSDataSet.Izdelie' table. You can move, or remove it, as needed.
+            this.izdelieTableAdapter.Fill(this.factoryLVSDataSet.Izdelie);
             // TODO: This line of code loads data into the 'factoryLVSDataSet.Users' table. You can move, or remove it, as needed.
             this.usersTableAdapter.Fill(this.factoryLVSDataSet.Users);
+            Form1.IdUser=LblIdManager.Text;
 
         }
 
@@ -60,5 +31,13 @@ where Users.iduser = Zakaz.idzakazchik
         {
 
         }
+
+        private void BtnProfile_Click_1(object sender, EventArgs e)
+        {
+            FormEdiUser frm = new FormEdiUser();
+            this.Hide();
+            frm.ShowDialog();
+            this.Show();
+        }
     }
 }

+ 6 - 45
FactoryLVS/FormManager.resx

@@ -126,53 +126,14 @@
   <metadata name="usersTableAdapter.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
     <value>263, 17</value>
   </metadata>
-  <metadata name="Column1.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>True</value>
+  <metadata name="izdelieBindingSource1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+    <value>741, 17</value>
   </metadata>
-  <metadata name="Column2.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>True</value>
+  <metadata name="izdelieBindingSource.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+    <value>416, 17</value>
   </metadata>
-  <metadata name="Column3.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>True</value>
-  </metadata>
-  <metadata name="Column4.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>True</value>
-  </metadata>
-  <metadata name="Column5.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>True</value>
-  </metadata>
-  <metadata name="Column6.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>True</value>
-  </metadata>
-  <metadata name="descriptionLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>False</value>
-  </metadata>
-  <metadata name="label2.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>False</value>
-  </metadata>
-  <metadata name="label3.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>False</value>
-  </metadata>
-  <metadata name="colorLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>False</value>
-  </metadata>
-  <metadata name="nametkanLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>False</value>
-  </metadata>
-  <metadata name="label4.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>False</value>
-  </metadata>
-  <metadata name="label5.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>False</value>
-  </metadata>
-  <metadata name="widthLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>False</value>
-  </metadata>
-  <metadata name="lengthLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>False</value>
-  </metadata>
-  <metadata name="nameizdLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>False</value>
+  <metadata name="izdelieTableAdapter.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+    <value>581, 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">

+ 96 - 33
FactoryLVS/FormZakazchik.Designer.cs

@@ -40,21 +40,27 @@
             this.NameLabel = new System.Windows.Forms.Label();
             this.FamLabel = new System.Windows.Forms.Label();
             this.panel1 = new System.Windows.Forms.Panel();
+            this.LblIdUser = new System.Windows.Forms.Label();
             this.label1 = new System.Windows.Forms.Label();
-            this.pictureBox1 = new System.Windows.Forms.PictureBox();
             this.tabControl1 = new System.Windows.Forms.TabControl();
             this.tabPage1 = new System.Windows.Forms.TabPage();
             this.PanelTkan = new System.Windows.Forms.TableLayoutPanel();
             this.tabPage2 = new System.Windows.Forms.TabPage();
             this.PanelFurn = new System.Windows.Forms.TableLayoutPanel();
-            this.LblIdUser = new System.Windows.Forms.Label();
+            this.pictureBox1 = new System.Windows.Forms.PictureBox();
+            this.PanelIz = new System.Windows.Forms.TabPage();
+            this.PanelIzd = new System.Windows.Forms.TableLayoutPanel();
+            this.PanelZa = new System.Windows.Forms.TabPage();
+            this.PanelZak = new System.Windows.Forms.TableLayoutPanel();
             ((System.ComponentModel.ISupportInitialize)(this.BsUsers)).BeginInit();
             ((System.ComponentModel.ISupportInitialize)(this.factoryLVSDataSet)).BeginInit();
             this.panel1.SuspendLayout();
-            ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
             this.tabControl1.SuspendLayout();
             this.tabPage1.SuspendLayout();
             this.tabPage2.SuspendLayout();
+            ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
+            this.PanelIz.SuspendLayout();
+            this.PanelZa.SuspendLayout();
             this.SuspendLayout();
             // 
             // BsUsers
@@ -93,6 +99,7 @@
             this.BtnLev.TabIndex = 20;
             this.BtnLev.Text = "Нечеткий поиск";
             this.BtnLev.UseVisualStyleBackColor = false;
+            this.BtnLev.Click += new System.EventHandler(this.BtnLev_Click);
             // 
             // BtnProfile
             // 
@@ -150,9 +157,19 @@
             this.panel1.Location = new System.Drawing.Point(0, 0);
             this.panel1.Margin = new System.Windows.Forms.Padding(2);
             this.panel1.Name = "panel1";
-            this.panel1.Size = new System.Drawing.Size(638, 106);
+            this.panel1.Size = new System.Drawing.Size(726, 106);
             this.panel1.TabIndex = 14;
             // 
+            // LblIdUser
+            // 
+            this.LblIdUser.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.BsUsers, "id_User", true));
+            this.LblIdUser.Location = new System.Drawing.Point(485, 76);
+            this.LblIdUser.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
+            this.LblIdUser.Name = "LblIdUser";
+            this.LblIdUser.Size = new System.Drawing.Size(158, 19);
+            this.LblIdUser.TabIndex = 18;
+            this.LblIdUser.Text = "label2";
+            // 
             // label1
             // 
             this.label1.AutoSize = true;
@@ -164,18 +181,6 @@
             this.label1.TabIndex = 1;
             this.label1.Text = "Рабочее место заказчика";
             // 
-            // pictureBox1
-            // 
-            this.pictureBox1.Dock = System.Windows.Forms.DockStyle.Left;
-            this.pictureBox1.Image = global::FactoryLVS.Properties.Resources.fabric_logo;
-            this.pictureBox1.Location = new System.Drawing.Point(0, 0);
-            this.pictureBox1.Margin = new System.Windows.Forms.Padding(2);
-            this.pictureBox1.Name = "pictureBox1";
-            this.pictureBox1.Size = new System.Drawing.Size(100, 106);
-            this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
-            this.pictureBox1.TabIndex = 0;
-            this.pictureBox1.TabStop = false;
-            // 
             // tabControl1
             // 
             this.tabControl1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
@@ -183,10 +188,12 @@
             | System.Windows.Forms.AnchorStyles.Right)));
             this.tabControl1.Controls.Add(this.tabPage1);
             this.tabControl1.Controls.Add(this.tabPage2);
+            this.tabControl1.Controls.Add(this.PanelIz);
+            this.tabControl1.Controls.Add(this.PanelZa);
             this.tabControl1.Location = new System.Drawing.Point(12, 147);
             this.tabControl1.Name = "tabControl1";
             this.tabControl1.SelectedIndex = 0;
-            this.tabControl1.Size = new System.Drawing.Size(614, 291);
+            this.tabControl1.Size = new System.Drawing.Size(702, 307);
             this.tabControl1.TabIndex = 22;
             // 
             // tabPage1
@@ -195,7 +202,7 @@
             this.tabPage1.Location = new System.Drawing.Point(4, 22);
             this.tabPage1.Name = "tabPage1";
             this.tabPage1.Padding = new System.Windows.Forms.Padding(3);
-            this.tabPage1.Size = new System.Drawing.Size(606, 265);
+            this.tabPage1.Size = new System.Drawing.Size(694, 281);
             this.tabPage1.TabIndex = 0;
             this.tabPage1.Text = "Ткань";
             this.tabPage1.UseVisualStyleBackColor = true;
@@ -210,7 +217,7 @@
             this.PanelTkan.Name = "PanelTkan";
             this.PanelTkan.RowCount = 1;
             this.PanelTkan.RowStyles.Add(new System.Windows.Forms.RowStyle());
-            this.PanelTkan.Size = new System.Drawing.Size(600, 259);
+            this.PanelTkan.Size = new System.Drawing.Size(688, 275);
             this.PanelTkan.TabIndex = 0;
             // 
             // tabPage2
@@ -219,7 +226,7 @@
             this.tabPage2.Location = new System.Drawing.Point(4, 22);
             this.tabPage2.Name = "tabPage2";
             this.tabPage2.Padding = new System.Windows.Forms.Padding(3);
-            this.tabPage2.Size = new System.Drawing.Size(652, 265);
+            this.tabPage2.Size = new System.Drawing.Size(694, 281);
             this.tabPage2.TabIndex = 1;
             this.tabPage2.Text = "Фурнитура";
             this.tabPage2.UseVisualStyleBackColor = true;
@@ -234,32 +241,82 @@
             this.PanelFurn.Name = "PanelFurn";
             this.PanelFurn.RowCount = 1;
             this.PanelFurn.RowStyles.Add(new System.Windows.Forms.RowStyle());
-            this.PanelFurn.Size = new System.Drawing.Size(646, 259);
+            this.PanelFurn.Size = new System.Drawing.Size(688, 275);
             this.PanelFurn.TabIndex = 0;
             // 
-            // LblIdUser
+            // pictureBox1
             // 
-            this.LblIdUser.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.BsUsers, "id_User", true));
-            this.LblIdUser.Location = new System.Drawing.Point(485, 76);
-            this.LblIdUser.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
-            this.LblIdUser.Name = "LblIdUser";
-            this.LblIdUser.Size = new System.Drawing.Size(75, 19);
-            this.LblIdUser.TabIndex = 18;
-            this.LblIdUser.Text = "label2";
-            this.LblIdUser.Visible = false;
+            this.pictureBox1.Dock = System.Windows.Forms.DockStyle.Left;
+            this.pictureBox1.Image = global::FactoryLVS.Properties.Resources.fabric_logo;
+            this.pictureBox1.Location = new System.Drawing.Point(0, 0);
+            this.pictureBox1.Margin = new System.Windows.Forms.Padding(2);
+            this.pictureBox1.Name = "pictureBox1";
+            this.pictureBox1.Size = new System.Drawing.Size(100, 106);
+            this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
+            this.pictureBox1.TabIndex = 0;
+            this.pictureBox1.TabStop = false;
+            // 
+            // PanelIz
+            // 
+            this.PanelIz.Controls.Add(this.PanelIzd);
+            this.PanelIz.Location = new System.Drawing.Point(4, 22);
+            this.PanelIz.Name = "PanelIz";
+            this.PanelIz.Padding = new System.Windows.Forms.Padding(3);
+            this.PanelIz.Size = new System.Drawing.Size(694, 281);
+            this.PanelIz.TabIndex = 2;
+            this.PanelIz.Tag = "";
+            this.PanelIz.Text = "Изделия";
+            this.PanelIz.UseVisualStyleBackColor = true;
+            // 
+            // PanelIzd
+            // 
+            this.PanelIzd.AutoScroll = true;
+            this.PanelIzd.ColumnCount = 1;
+            this.PanelIzd.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
+            this.PanelIzd.Dock = System.Windows.Forms.DockStyle.Fill;
+            this.PanelIzd.Location = new System.Drawing.Point(3, 3);
+            this.PanelIzd.Name = "PanelIzd";
+            this.PanelIzd.RowCount = 1;
+            this.PanelIzd.RowStyles.Add(new System.Windows.Forms.RowStyle());
+            this.PanelIzd.Size = new System.Drawing.Size(688, 275);
+            this.PanelIzd.TabIndex = 1;
+            // 
+            // PanelZa
+            // 
+            this.PanelZa.Controls.Add(this.PanelZak);
+            this.PanelZa.Location = new System.Drawing.Point(4, 22);
+            this.PanelZa.Name = "PanelZa";
+            this.PanelZa.Padding = new System.Windows.Forms.Padding(3);
+            this.PanelZa.Size = new System.Drawing.Size(694, 281);
+            this.PanelZa.TabIndex = 3;
+            this.PanelZa.Text = "Заказы";
+            this.PanelZa.UseVisualStyleBackColor = true;
+            // 
+            // PanelZak
+            // 
+            this.PanelZak.AutoScroll = true;
+            this.PanelZak.ColumnCount = 1;
+            this.PanelZak.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
+            this.PanelZak.Dock = System.Windows.Forms.DockStyle.Fill;
+            this.PanelZak.Location = new System.Drawing.Point(3, 3);
+            this.PanelZak.Name = "PanelZak";
+            this.PanelZak.RowCount = 1;
+            this.PanelZak.RowStyles.Add(new System.Windows.Forms.RowStyle());
+            this.PanelZak.Size = new System.Drawing.Size(688, 275);
+            this.PanelZak.TabIndex = 2;
             // 
             // FormZakazchik
             // 
             this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
             this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
-            this.ClientSize = new System.Drawing.Size(638, 450);
+            this.ClientSize = new System.Drawing.Size(726, 466);
             this.Controls.Add(this.tabControl1);
             this.Controls.Add(this.BtnAddZakaz);
             this.Controls.Add(this.BtnLev);
             this.Controls.Add(this.BtnProfile);
             this.Controls.Add(this.panel1);
             this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
-            this.MinimumSize = new System.Drawing.Size(654, 489);
+            this.MinimumSize = new System.Drawing.Size(742, 505);
             this.Name = "FormZakazchik";
             this.Text = "СУБД \"Швейная фабрика\"";
             this.Load += new System.EventHandler(this.FormZakazchik_Load);
@@ -267,10 +324,12 @@
             ((System.ComponentModel.ISupportInitialize)(this.factoryLVSDataSet)).EndInit();
             this.panel1.ResumeLayout(false);
             this.panel1.PerformLayout();
-            ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
             this.tabControl1.ResumeLayout(false);
             this.tabPage1.ResumeLayout(false);
             this.tabPage2.ResumeLayout(false);
+            ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
+            this.PanelIz.ResumeLayout(false);
+            this.PanelZa.ResumeLayout(false);
             this.ResumeLayout(false);
 
         }
@@ -294,5 +353,9 @@
         private System.Windows.Forms.TableLayoutPanel PanelFurn;
         public System.Windows.Forms.TabControl tabControl1;
         public System.Windows.Forms.Label LblIdUser;
+        private System.Windows.Forms.TabPage PanelIz;
+        private System.Windows.Forms.TableLayoutPanel PanelIzd;
+        private System.Windows.Forms.TabPage PanelZa;
+        private System.Windows.Forms.TableLayoutPanel PanelZak;
     }
 }

+ 392 - 1
FactoryLVS/FormZakazchik.cs

@@ -273,6 +273,384 @@ namespace FactoryLVS
                 this.label8.Text = "Название:";
             }
         }
+        class ProductPanel : Panel
+        {
+            public System.Windows.Forms.TextBox tbxLenght;
+            public System.Windows.Forms.TextBox tbxTitle;
+            public System.Windows.Forms.Label label5;
+            public System.Windows.Forms.Label label1;
+            public System.Windows.Forms.PictureBox pbxPhoto;
+            public System.Windows.Forms.TextBox tbxWight;
+            public System.Windows.Forms.Label label2;
+
+            public ProductPanel()
+            {
+                this.tbxLenght = new System.Windows.Forms.TextBox();
+                this.tbxTitle = new System.Windows.Forms.TextBox();
+                this.label5 = new System.Windows.Forms.Label();
+                this.label1 = new System.Windows.Forms.Label();
+                this.pbxPhoto = new System.Windows.Forms.PictureBox();
+                this.label2 = new System.Windows.Forms.Label();
+                this.tbxWight = new System.Windows.Forms.TextBox();
+
+                this.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
+         | System.Windows.Forms.AnchorStyles.Right)));
+                this.BackColor = System.Drawing.Color.White;
+                this.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+                this.Controls.Add(this.tbxWight);
+                this.Controls.Add(this.label2);
+                this.Controls.Add(this.tbxLenght);
+                this.Controls.Add(this.tbxTitle);
+                this.Controls.Add(this.label5);
+                this.Controls.Add(this.label1);
+                this.Controls.Add(this.pbxPhoto);
+                this.Font = new System.Drawing.Font("Arial", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
+                this.Location = new System.Drawing.Point(35, 27);
+                this.Name = "panel1";
+                this.Size = new System.Drawing.Size(657, 105);
+                this.TabIndex = 0;
+                // 
+                // tbxLenght
+                // 
+                this.tbxLenght.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
+                | System.Windows.Forms.AnchorStyles.Right)));
+                this.tbxLenght.Location = new System.Drawing.Point(229, 34);
+                this.tbxLenght.Multiline = true;
+                this.tbxLenght.Name = "tbxLenght";
+                this.tbxLenght.ReadOnly = true;
+                this.tbxLenght.Size = new System.Drawing.Size(328, 19);
+                this.tbxLenght.TabIndex = 10;
+                // 
+                // tbxTitle
+                // 
+                this.tbxTitle.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
+                | System.Windows.Forms.AnchorStyles.Right)));
+                this.tbxTitle.Location = new System.Drawing.Point(229, 6);
+                this.tbxTitle.Name = "tbxTitle";
+                this.tbxTitle.ReadOnly = true;
+                this.tbxTitle.Size = new System.Drawing.Size(375, 22);
+                this.tbxTitle.TabIndex = 6;
+                // 
+                // label5
+                // 
+                this.label5.AutoSize = true;
+                this.label5.Location = new System.Drawing.Point(164, 37);
+                this.label5.Name = "label5";
+                this.label5.Size = new System.Drawing.Size(48, 16);
+                this.label5.TabIndex = 5;
+                this.label5.Text = "Длина:";
+                // 
+                // label1
+                // 
+                this.label1.AutoSize = true;
+                this.label1.Location = new System.Drawing.Point(155, 9);
+                this.label1.Name = "label1";
+                this.label1.Size = new System.Drawing.Size(68, 16);
+                this.label1.TabIndex = 1;
+                this.label1.Text = "Название:";
+                // 
+                // pbxPhoto
+                // 
+                this.pbxPhoto.Location = new System.Drawing.Point(6, 6);
+                this.pbxPhoto.Name = "pbxPhoto";
+                this.pbxPhoto.Size = new System.Drawing.Size(143, 92);
+                this.pbxPhoto.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
+                this.pbxPhoto.TabIndex = 0;
+                this.pbxPhoto.TabStop = false;
+                // 
+                // label2
+                // 
+                this.label2.AutoSize = true;
+                this.label2.Location = new System.Drawing.Point(155, 64);
+                this.label2.Name = "label2";
+                this.label2.Size = new System.Drawing.Size(57, 16);
+                this.label2.TabIndex = 11;
+                this.label2.Text = "Ширина:";
+                // 
+                // tbxWight
+                // 
+                this.tbxWight.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
+                | System.Windows.Forms.AnchorStyles.Right)));
+                this.tbxWight.Location = new System.Drawing.Point(229, 64);
+                this.tbxWight.Multiline = true;
+                this.tbxWight.Name = "tbxWight";
+                this.tbxWight.ReadOnly = true;
+                this.tbxWight.Size = new System.Drawing.Size(328, 19);
+                this.tbxWight.TabIndex = 12;
+            }
+        }
+
+        class OrdersPanel : Panel
+        {
+            public System.Windows.Forms.TextBox tbxLenght;
+            public System.Windows.Forms.TextBox tbxTitle;
+            public System.Windows.Forms.Label label5;
+            public System.Windows.Forms.Label label1;
+            public System.Windows.Forms.TextBox tbxWight;
+            public System.Windows.Forms.Label label2;
+            public System.Windows.Forms.TextBox tbxCountProducts;
+            public System.Windows.Forms.Label label8;
+            public System.Windows.Forms.TextBox tbxCountFur;
+            public System.Windows.Forms.Label label7;
+            public System.Windows.Forms.TextBox tbxFur;
+            public System.Windows.Forms.Label label6;
+            public System.Windows.Forms.TextBox tbxClothColor;
+            public System.Windows.Forms.Label label4;
+            public System.Windows.Forms.TextBox tbxCloth;
+            public System.Windows.Forms.Label label3;
+            public OrdersPanel()
+            {
+
+                this.tbxLenght = new System.Windows.Forms.TextBox();
+                this.tbxTitle = new System.Windows.Forms.TextBox();
+                this.label5 = new System.Windows.Forms.Label();
+                this.label1 = new System.Windows.Forms.Label();
+                this.label2 = new System.Windows.Forms.Label();
+                this.tbxWight = new System.Windows.Forms.TextBox();
+                this.tbxCloth = new System.Windows.Forms.TextBox();
+                this.label3 = new System.Windows.Forms.Label();
+                this.tbxClothColor = new System.Windows.Forms.TextBox();
+                this.label4 = new System.Windows.Forms.Label();
+                this.tbxFur = new System.Windows.Forms.TextBox();
+                this.label6 = new System.Windows.Forms.Label();
+                this.tbxCountFur = new System.Windows.Forms.TextBox();
+                this.label7 = new System.Windows.Forms.Label();
+                this.tbxCountProducts = new System.Windows.Forms.TextBox();
+                this.label8 = new System.Windows.Forms.Label();
+
+                this.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
+           | System.Windows.Forms.AnchorStyles.Right)));
+                this.BackColor = System.Drawing.Color.White;
+                this.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+                this.Controls.Add(this.tbxCountProducts);
+                this.Controls.Add(this.label8);
+                this.Controls.Add(this.tbxCountFur);
+                this.Controls.Add(this.label7);
+                this.Controls.Add(this.tbxFur);
+                this.Controls.Add(this.label6);
+                this.Controls.Add(this.tbxClothColor);
+                this.Controls.Add(this.label4);
+                this.Controls.Add(this.tbxCloth);
+                this.Controls.Add(this.label3);
+                this.Controls.Add(this.tbxWight);
+                this.Controls.Add(this.label2);
+                this.Controls.Add(this.tbxLenght);
+                this.Controls.Add(this.tbxTitle);
+                this.Controls.Add(this.label5);
+                this.Controls.Add(this.label1);
+                this.Font = new System.Drawing.Font("Arial", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
+                this.Location = new System.Drawing.Point(35, 27);
+                this.Name = "panel1";
+                this.Size = new System.Drawing.Size(657, 145);
+                this.TabIndex = 0;
+                // 
+                // tbxLenght
+                // 
+                this.tbxLenght.Location = new System.Drawing.Point(77, 37);
+                this.tbxLenght.Multiline = true;
+                this.tbxLenght.Name = "tbxLenght";
+                this.tbxLenght.ReadOnly = true;
+                this.tbxLenght.Size = new System.Drawing.Size(136, 19);
+                this.tbxLenght.TabIndex = 10;
+                // 
+                // tbxTitle
+                // 
+                this.tbxTitle.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
+                | System.Windows.Forms.AnchorStyles.Right)));
+                this.tbxTitle.Location = new System.Drawing.Point(77, 6);
+                this.tbxTitle.Name = "tbxTitle";
+                this.tbxTitle.ReadOnly = true;
+                this.tbxTitle.Size = new System.Drawing.Size(575, 22);
+                this.tbxTitle.TabIndex = 6;
+                // 
+                // label5
+                // 
+                this.label5.AutoSize = true;
+                this.label5.Location = new System.Drawing.Point(23, 40);
+                this.label5.Name = "label5";
+                this.label5.Size = new System.Drawing.Size(48, 16);
+                this.label5.TabIndex = 5;
+                this.label5.Text = "Длина:";
+                // 
+                // label1
+                // 
+                this.label1.AutoSize = true;
+                this.label1.Location = new System.Drawing.Point(5, 9);
+                this.label1.Name = "label1";
+                this.label1.Size = new System.Drawing.Size(68, 16);
+                this.label1.TabIndex = 1;
+                this.label1.Text = "Название:";
+                // 
+                // label2
+                // 
+                this.label2.AutoSize = true;
+                this.label2.Location = new System.Drawing.Point(229, 37);
+                this.label2.Name = "label2";
+                this.label2.Size = new System.Drawing.Size(57, 16);
+                this.label2.TabIndex = 11;
+                this.label2.Text = "Ширина:";
+                // 
+                // tbxWight
+                // 
+                this.tbxWight.Location = new System.Drawing.Point(290, 37);
+                this.tbxWight.Multiline = true;
+                this.tbxWight.Name = "tbxWight";
+                this.tbxWight.ReadOnly = true;
+                this.tbxWight.Size = new System.Drawing.Size(136, 19);
+                this.tbxWight.TabIndex = 12;
+                // 
+                // tbxCloth
+                // 
+                this.tbxCloth.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
+                | System.Windows.Forms.AnchorStyles.Right)));
+                this.tbxCloth.Location = new System.Drawing.Point(77, 62);
+                this.tbxCloth.Multiline = true;
+                this.tbxCloth.Name = "tbxCloth";
+                this.tbxCloth.ReadOnly = true;
+                this.tbxCloth.Size = new System.Drawing.Size(573, 19);
+                this.tbxCloth.TabIndex = 14;
+                // 
+                // label3
+                // 
+                this.label3.AutoSize = true;
+                this.label3.Location = new System.Drawing.Point(27, 62);
+                this.label3.Name = "label3";
+                this.label3.Size = new System.Drawing.Size(44, 16);
+                this.label3.TabIndex = 13;
+                this.label3.Text = "Ткань:";
+                // 
+                // tbxClothColor
+                // 
+                this.tbxClothColor.Location = new System.Drawing.Point(105, 84);
+                this.tbxClothColor.Multiline = true;
+                this.tbxClothColor.Name = "tbxClothColor";
+                this.tbxClothColor.ReadOnly = true;
+                this.tbxClothColor.Size = new System.Drawing.Size(136, 19);
+                this.tbxClothColor.TabIndex = 16;
+                // 
+                // label4
+                // 
+                this.label4.AutoSize = true;
+                this.label4.Location = new System.Drawing.Point(23, 84);
+                this.label4.Name = "label4";
+                this.label4.Size = new System.Drawing.Size(76, 16);
+                this.label4.TabIndex = 15;
+                this.label4.Text = "Цвет ткани:";
+                // 
+                // tbxFur
+                // 
+                this.tbxFur.Location = new System.Drawing.Point(321, 84);
+                this.tbxFur.Multiline = true;
+                this.tbxFur.Name = "tbxFur";
+                this.tbxFur.ReadOnly = true;
+                this.tbxFur.Size = new System.Drawing.Size(137, 19);
+                this.tbxFur.TabIndex = 18;
+                // 
+                // label6
+                // 
+                this.label6.AutoSize = true;
+                this.label6.Location = new System.Drawing.Point(247, 84);
+                this.label6.Name = "label6";
+                this.label6.Size = new System.Drawing.Size(76, 16);
+                this.label6.TabIndex = 17;
+                this.label6.Text = "Фурнитура:";
+                // 
+                // tbxCountFur
+                // 
+                this.tbxCountFur.Location = new System.Drawing.Point(125, 109);
+                this.tbxCountFur.Multiline = true;
+                this.tbxCountFur.Name = "tbxCountFur";
+                this.tbxCountFur.ReadOnly = true;
+                this.tbxCountFur.Size = new System.Drawing.Size(88, 19);
+                this.tbxCountFur.TabIndex = 20;
+                // 
+                // label7
+                // 
+                this.label7.AutoSize = true;
+                this.label7.Location = new System.Drawing.Point(3, 109);
+                this.label7.Name = "label7";
+                this.label7.Size = new System.Drawing.Size(120, 16);
+                this.label7.TabIndex = 19;
+                this.label7.Text = "Кол-во фурнитуры:";
+                // 
+                // tbxCountProducts
+                // 
+                this.tbxCountProducts.Location = new System.Drawing.Point(358, 109);
+                this.tbxCountProducts.Multiline = true;
+                this.tbxCountProducts.Name = "tbxCountProducts";
+                this.tbxCountProducts.ReadOnly = true;
+                this.tbxCountProducts.Size = new System.Drawing.Size(100, 19);
+                this.tbxCountProducts.TabIndex = 22;
+                // 
+                // label8
+                // 
+                this.label8.AutoSize = true;
+                this.label8.Location = new System.Drawing.Point(248, 109);
+                this.label8.Name = "label8";
+                this.label8.Size = new System.Drawing.Size(104, 16);
+                this.label8.TabIndex = 21;
+                this.label8.Text = "Кол-во изделий:";
+                // 
+            }
+        }
+
+
+        void GetZakaz()
+        {
+            SqlConnection con = new SqlConnection(Form1.TxtCon);
+            SqlCommand cmd = new SqlCommand($@"Select  Orders.id_order,Izdelie.name_izd,Izdelie.length,Izdelie.width,Orders.id_zak,Tkan.Title as ClothTitle, Color.Title as 
+ColorTitle,
+Furnitura.namefur,Orders.countfur,
+Orders.CountIzd
+from Orders join Users on Users.id_User = Orders.id_zak join Izdelie on 
+Izdelie.id_izd = Orders.id_izd join Tkan on Tkan.id_Tkan = Orders.id_tkan  join Furnitura on 
+Furnitura.id_fur = Orders.id_fur join Color on Tkan.id_color = Color.id_colors
+where Users.id_User = {Form1.IdUser}
+
+", con);
+            con.Open();
+            SqlDataReader res = cmd.ExecuteReader();
+            while (res.Read())
+            {
+
+                OrdersPanel or = new OrdersPanel();
+                or.tbxTitle.Text = res["name_izd"].ToString();
+                or.tbxWight.Text = res["width"].ToString();
+                or.tbxLenght.Text = res["length"].ToString();
+                or.tbxCloth.Text = res["ClothTitle"].ToString();
+                or.tbxClothColor.Text = res["ColorTitle"].ToString();
+                or.tbxCountFur.Text = res["countfur"].ToString();
+                or.tbxFur.Text = res["namefur"].ToString();
+                or.tbxCountProducts.Text = res["CountIzd"].ToString();
+
+                PanelZak.Controls.Add(or);
+            }
+            res.Close();
+            con.Close();
+        }
+
+        void GetIzdelFromDB()
+        {
+
+            SqlConnection con = new SqlConnection(Form1.TxtCon);
+            SqlCommand cmd = new SqlCommand(@"select * from Izdelie", con);
+            con.Open();
+            SqlDataReader res = cmd.ExecuteReader();
+            while (res.Read())
+            {
+
+                ProductPanel p = new ProductPanel();
+                p.tbxTitle.Text = res["name_izd"].ToString();
+                p.tbxLenght.Text = res["length"].ToString();
+                p.tbxWight.Text = res["width"].ToString();
+
+                PanelIzd.Controls.Add(p);
+            }
+            res.Close();
+            con.Close();
+        }
+
+
 
         void FillPanelFurn()
         {
@@ -338,9 +716,11 @@ namespace FactoryLVS
           
             // TODO: This line of code loads data into the 'factoryLVSDataSet.Users' table. You can move, or remove it, as needed.
             this.usersTableAdapter.Fill(this.factoryLVSDataSet.Users);
+            Form1.IdUser = LblIdUser.Text;
             FillPanelTkan();
             FillPanelFurn();
-            IdUser = LblIdUser.Text;
+            GetZakaz();
+            GetIzdelFromDB();
         }
 
         private void BtnAddZakaz_Click(object sender, EventArgs e)
@@ -351,7 +731,18 @@ namespace FactoryLVS
 
         private void BtnProfile_Click(object sender, EventArgs e)
         {
+            FormEdiUser frm = new FormEdiUser();
+            this.Hide();
+            frm.ShowDialog();
+            this.Show();
+        }
 
+        private void BtnLev_Click(object sender, EventArgs e)
+        {
+            FormClothFind frm = new FormClothFind();
+            this.Hide();
+            frm.ShowDialog();
+            this.Show();
         }
     }
 }