Browse Source

3 день (исправления)

Георгий Лебедько 2 years ago
parent
commit
5d797cfb5b
26 changed files with 1749 additions and 58 deletions
  1. 0 24
      Швейная фабрика/FormAddZak.Designer.cs
  2. 5 0
      Швейная фабрика/FormAddZak.cs
  3. 39 0
      Швейная фабрика/FormGetMaterial.Designer.cs
  4. 20 0
      Швейная фабрика/FormGetMaterial.cs
  5. 120 0
      Швейная фабрика/FormGetMaterial.resx
  6. 482 2
      Швейная фабрика/FormKladovschik.Designer.cs
  7. 339 0
      Швейная фабрика/FormKladovschik.cs
  8. 51 0
      Швейная фабрика/FormKladovschik.resx
  9. 189 0
      Швейная фабрика/FormLeven.Designer.cs
  10. 82 0
      Швейная фабрика/FormLeven.cs
  11. 200 0
      Швейная фабрика/FormLeven.resx
  12. 1 1
      Швейная фабрика/FormMain.cs
  13. 7 7
      Швейная фабрика/FormProfil.Designer.cs
  14. 2 2
      Швейная фабрика/FormProfil.cs
  15. 0 0
      Швейная фабрика/FormProfil.resx
  16. 39 0
      Швейная фабрика/FormSpisMaterial.Designer.cs
  17. 20 0
      Швейная фабрика/FormSpisMaterial.cs
  18. 120 0
      Швейная фабрика/FormSpisMaterial.resx
  19. 14 14
      Швейная фабрика/FormZakazchik.Designer.cs
  20. 3 2
      Швейная фабрика/FormZakazchik.cs
  21. BIN
      Швейная фабрика/bin/Debug/Швейная фабрика.exe
  22. 2 1
      Швейная фабрика/obj/Debug/Швейная фабрика.csproj.FileListAbsolute.txt
  23. BIN
      Швейная фабрика/obj/Debug/Швейная фабрика.exe
  24. 0 0
      Швейная фабрика/obj/Debug/Швейная_фабрика.FormLeven.resources
  25. BIN
      Швейная фабрика/obj/Debug/Швейная_фабрика.FormProfil.resources
  26. 14 5
      Швейная фабрика/Швейная фабрика.csproj

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

@@ -56,7 +56,6 @@
             this.dataGridViewTextBoxColumn3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.dataGridViewTextBoxColumn4 = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.tabPage2 = new System.Windows.Forms.TabPage();
-            this.TbxID = new System.Windows.Forms.TextBox();
             this.TbxCountFur = new System.Windows.Forms.TextBox();
             this.TbxCountFurSklad = new System.Windows.Forms.TextBox();
             this.TbxNameFur = new System.Windows.Forms.TextBox();
@@ -71,7 +70,6 @@
             this.tabControl1 = new System.Windows.Forms.TabControl();
             this.BtnCancel = new System.Windows.Forms.Button();
             this.BtnOK = new System.Windows.Forms.Button();
-            this.TbxIdTkan = new System.Windows.Forms.TextBox();
             descriptionLabel = new System.Windows.Forms.Label();
             lengthLabel = new System.Windows.Forms.Label();
             widthLabel = new System.Windows.Forms.Label();
@@ -322,7 +320,6 @@
             // 
             // tabPage2
             // 
-            this.tabPage2.Controls.Add(this.TbxID);
             this.tabPage2.Controls.Add(label2);
             this.tabPage2.Controls.Add(this.TbxCountFur);
             this.tabPage2.Controls.Add(label3);
@@ -338,14 +335,6 @@
             this.tabPage2.Text = "Фурнитура";
             this.tabPage2.UseVisualStyleBackColor = true;
             // 
-            // TbxID
-            // 
-            this.TbxID.Location = new System.Drawing.Point(569, 138);
-            this.TbxID.Name = "TbxID";
-            this.TbxID.ReadOnly = true;
-            this.TbxID.Size = new System.Drawing.Size(100, 22);
-            this.TbxID.TabIndex = 19;
-            // 
             // TbxCountFur
             // 
             this.TbxCountFur.Location = new System.Drawing.Point(569, 109);
@@ -386,7 +375,6 @@
             // 
             // tabPage1
             // 
-            this.tabPage1.Controls.Add(this.TbxIdTkan);
             this.tabPage1.Controls.Add(descriptionLabel);
             this.tabPage1.Controls.Add(this.TbxDescription);
             this.tabPage1.Controls.Add(lengthLabel);
@@ -503,16 +491,6 @@
             this.BtnOK.UseVisualStyleBackColor = false;
             this.BtnOK.Click += new System.EventHandler(this.BtnOK_Click);
             // 
-            // TbxIdTkan
-            // 
-            this.TbxIdTkan.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
-            | System.Windows.Forms.AnchorStyles.Right)));
-            this.TbxIdTkan.Location = new System.Drawing.Point(569, 196);
-            this.TbxIdTkan.Name = "TbxIdTkan";
-            this.TbxIdTkan.ReadOnly = true;
-            this.TbxIdTkan.Size = new System.Drawing.Size(144, 22);
-            this.TbxIdTkan.TabIndex = 21;
-            // 
             // FormAddZak
             // 
             this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
@@ -579,7 +557,5 @@
         private System.Windows.Forms.TextBox TbxTitle;
         private System.Windows.Forms.Button BtnCancel;
         private System.Windows.Forms.Button BtnOK;
-        private System.Windows.Forms.TextBox TbxID;
-        private System.Windows.Forms.TextBox TbxIdTkan;
     }
 }

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

@@ -420,6 +420,11 @@ from Tkan join Color on Tkan.id_color = Color.id_colors";
             //return;
 
             // кол-во фурнитур, которое нужно сохранить в БД
+            if (TbxCountFur.Text.Trim() == "" || TbxCountIzd.Text.Trim() == "")
+            {
+                MessageBox.Show("Не введено количество фурнитуры или изделий.", "Внимание!",MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
+                return;
+            }
             int NewCountFur = int.Parse(TbxCountFurSklad.Text) -
                 int.Parse(TbxCountFur.Text) * int.Parse(TbxCountIzd.Text);
             SqlConnection con = new SqlConnection(TxtCon);

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

@@ -0,0 +1,39 @@
+namespace Швейная_фабрика
+{
+    partial class FormGetMaterial
+    {
+        /// <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();
+            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+            this.ClientSize = new System.Drawing.Size(800, 450);
+            this.Text = "FormGetMaterial";
+        }
+
+        #endregion
+    }
+}

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

@@ -0,0 +1,20 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows.Forms;
+
+namespace Швейная_фабрика
+{
+    public partial class FormGetMaterial : Form
+    {
+        public FormGetMaterial()
+        {
+            InitializeComponent();
+        }
+    }
+}

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

@@ -0,0 +1,120 @@
+<?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>
+</root>

+ 482 - 2
Швейная фабрика/FormKladovschik.Designer.cs

@@ -28,12 +28,64 @@
         /// </summary>
         private void InitializeComponent()
         {
+            this.components = new System.ComponentModel.Container();
+            System.Windows.Forms.Label descriptionLabel;
+            System.Windows.Forms.Label lengthLabel;
+            System.Windows.Forms.Label widthLabel;
+            System.Windows.Forms.Label colorLabel;
+            System.Windows.Forms.Label nametkanLabel;
+            System.Windows.Forms.Label label3;
+            System.Windows.Forms.Label label4;
             System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormKladovschik));
             this.panel1 = new System.Windows.Forms.Panel();
             this.label1 = new System.Windows.Forms.Label();
             this.pictureBox1 = new System.Windows.Forms.PictureBox();
+            this.BtnSpisMaterial = new System.Windows.Forms.Button();
+            this.BtnGetMaterial = new System.Windows.Forms.Button();
+            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();
+            this.сlothesFactoryLGDataSet = new Швейная_фабрика.СlothesFactoryLGDataSet();
+            this.BsUsers = new System.Windows.Forms.BindingSource(this.components);
+            this.usersTableAdapter = new Швейная_фабрика.СlothesFactoryLGDataSetTableAdapters.UsersTableAdapter();
+            this.tabControl1 = new System.Windows.Forms.TabControl();
+            this.tabPage3 = new System.Windows.Forms.TabPage();
+            this.tabPage1 = new System.Windows.Forms.TabPage();
+            this.TbxDescription = new System.Windows.Forms.TextBox();
+            this.TbxLength = new System.Windows.Forms.TextBox();
+            this.TbxWith = new System.Windows.Forms.TextBox();
+            this.TbxColor = new System.Windows.Forms.TextBox();
+            this.TbxTitle = new System.Windows.Forms.TextBox();
+            this.TlpTkani = new System.Windows.Forms.TableLayoutPanel();
+            this.tabPage2 = new System.Windows.Forms.TabPage();
+            this.TbxCountFurSklad = new System.Windows.Forms.TextBox();
+            this.TbxNameFur = new System.Windows.Forms.TextBox();
+            this.TlpFurnitura = new System.Windows.Forms.TableLayoutPanel();
+            this.DgvOrders = new System.Windows.Forms.DataGridView();
+            this.Izdelie = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.Meneger = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.Zakazchik = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.Tkan = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.Furnitur = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.CountFur = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.CountIzd = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            descriptionLabel = new System.Windows.Forms.Label();
+            lengthLabel = new System.Windows.Forms.Label();
+            widthLabel = new System.Windows.Forms.Label();
+            colorLabel = new System.Windows.Forms.Label();
+            nametkanLabel = new System.Windows.Forms.Label();
+            label3 = new System.Windows.Forms.Label();
+            label4 = new System.Windows.Forms.Label();
             this.panel1.SuspendLayout();
             ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
+            ((System.ComponentModel.ISupportInitialize)(this.сlothesFactoryLGDataSet)).BeginInit();
+            ((System.ComponentModel.ISupportInitialize)(this.BsUsers)).BeginInit();
+            this.tabControl1.SuspendLayout();
+            this.tabPage3.SuspendLayout();
+            this.tabPage1.SuspendLayout();
+            this.tabPage2.SuspendLayout();
+            ((System.ComponentModel.ISupportInitialize)(this.DgvOrders)).BeginInit();
             this.SuspendLayout();
             // 
             // panel1
@@ -41,10 +93,13 @@
             this.panel1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(225)))));
             this.panel1.Controls.Add(this.label1);
             this.panel1.Controls.Add(this.pictureBox1);
+            this.panel1.Controls.Add(this.FamLabel);
+            this.panel1.Controls.Add(this.OtchLabel);
+            this.panel1.Controls.Add(this.NameLabel);
             this.panel1.Dock = System.Windows.Forms.DockStyle.Top;
             this.panel1.Location = new System.Drawing.Point(0, 0);
             this.panel1.Name = "panel1";
-            this.panel1.Size = new System.Drawing.Size(800, 130);
+            this.panel1.Size = new System.Drawing.Size(779, 130);
             this.panel1.TabIndex = 2;
             // 
             // label1
@@ -68,19 +123,414 @@
             this.pictureBox1.TabIndex = 0;
             this.pictureBox1.TabStop = false;
             // 
+            // BtnSpisMaterial
+            // 
+            this.BtnSpisMaterial.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
+            this.BtnSpisMaterial.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(156)))), ((int)(((byte)(26)))));
+            this.BtnSpisMaterial.Location = new System.Drawing.Point(554, 413);
+            this.BtnSpisMaterial.Name = "BtnSpisMaterial";
+            this.BtnSpisMaterial.Size = new System.Drawing.Size(206, 28);
+            this.BtnSpisMaterial.TabIndex = 18;
+            this.BtnSpisMaterial.Text = "Списать материалы";
+            this.BtnSpisMaterial.UseVisualStyleBackColor = false;
+            this.BtnSpisMaterial.Click += new System.EventHandler(this.BtnSpisMaterial_Click);
+            // 
+            // BtnGetMaterial
+            // 
+            this.BtnGetMaterial.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
+            this.BtnGetMaterial.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(156)))), ((int)(((byte)(26)))));
+            this.BtnGetMaterial.Location = new System.Drawing.Point(342, 413);
+            this.BtnGetMaterial.Name = "BtnGetMaterial";
+            this.BtnGetMaterial.Size = new System.Drawing.Size(206, 28);
+            this.BtnGetMaterial.TabIndex = 17;
+            this.BtnGetMaterial.Text = "Принять материалы";
+            this.BtnGetMaterial.UseVisualStyleBackColor = false;
+            this.BtnGetMaterial.Click += new System.EventHandler(this.BtnGetMaterial_Click);
+            // 
+            // BtnProfile
+            // 
+            this.BtnProfile.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
+            this.BtnProfile.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(156)))), ((int)(((byte)(26)))));
+            this.BtnProfile.Location = new System.Drawing.Point(130, 413);
+            this.BtnProfile.Name = "BtnProfile";
+            this.BtnProfile.Size = new System.Drawing.Size(206, 28);
+            this.BtnProfile.TabIndex = 16;
+            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(414, 82);
+            this.OtchLabel.Name = "OtchLabel";
+            this.OtchLabel.Size = new System.Drawing.Size(100, 23);
+            this.OtchLabel.TabIndex = 15;
+            this.OtchLabel.Text = "label2";
+            // 
+            // NameLabel
+            // 
+            this.NameLabel.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.BsUsers, "Name", true));
+            this.NameLabel.Location = new System.Drawing.Point(414, 59);
+            this.NameLabel.Name = "NameLabel";
+            this.NameLabel.Size = new System.Drawing.Size(100, 23);
+            this.NameLabel.TabIndex = 14;
+            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(414, 36);
+            this.FamLabel.Name = "FamLabel";
+            this.FamLabel.Size = new System.Drawing.Size(100, 23);
+            this.FamLabel.TabIndex = 13;
+            this.FamLabel.Text = "label2";
+            // 
+            // сlothesFactoryLGDataSet
+            // 
+            this.сlothesFactoryLGDataSet.DataSetName = "СlothesFactoryLGDataSet";
+            this.сlothesFactoryLGDataSet.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
+            // 
+            // BsUsers
+            // 
+            this.BsUsers.DataMember = "Users";
+            this.BsUsers.DataSource = this.сlothesFactoryLGDataSet;
+            // 
+            // usersTableAdapter
+            // 
+            this.usersTableAdapter.ClearBeforeFill = true;
+            // 
+            // tabControl1
+            // 
+            this.tabControl1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
+            | System.Windows.Forms.AnchorStyles.Left) 
+            | System.Windows.Forms.AnchorStyles.Right)));
+            this.tabControl1.Controls.Add(this.tabPage3);
+            this.tabControl1.Controls.Add(this.tabPage1);
+            this.tabControl1.Controls.Add(this.tabPage2);
+            this.tabControl1.Location = new System.Drawing.Point(12, 136);
+            this.tabControl1.Name = "tabControl1";
+            this.tabControl1.SelectedIndex = 0;
+            this.tabControl1.Size = new System.Drawing.Size(755, 271);
+            this.tabControl1.TabIndex = 19;
+            // 
+            // tabPage3
+            // 
+            this.tabPage3.AutoScroll = true;
+            this.tabPage3.Controls.Add(this.DgvOrders);
+            this.tabPage3.Location = new System.Drawing.Point(4, 25);
+            this.tabPage3.Name = "tabPage3";
+            this.tabPage3.Size = new System.Drawing.Size(747, 242);
+            this.tabPage3.TabIndex = 2;
+            this.tabPage3.Text = "Изделия";
+            this.tabPage3.UseVisualStyleBackColor = true;
+            // 
+            // tabPage1
+            // 
+            this.tabPage1.Controls.Add(descriptionLabel);
+            this.tabPage1.Controls.Add(this.TbxDescription);
+            this.tabPage1.Controls.Add(lengthLabel);
+            this.tabPage1.Controls.Add(this.TbxLength);
+            this.tabPage1.Controls.Add(widthLabel);
+            this.tabPage1.Controls.Add(this.TbxWith);
+            this.tabPage1.Controls.Add(colorLabel);
+            this.tabPage1.Controls.Add(this.TbxColor);
+            this.tabPage1.Controls.Add(nametkanLabel);
+            this.tabPage1.Controls.Add(this.TbxTitle);
+            this.tabPage1.Controls.Add(this.TlpTkani);
+            this.tabPage1.Location = new System.Drawing.Point(4, 25);
+            this.tabPage1.Name = "tabPage1";
+            this.tabPage1.Padding = new System.Windows.Forms.Padding(3);
+            this.tabPage1.Size = new System.Drawing.Size(747, 242);
+            this.tabPage1.TabIndex = 0;
+            this.tabPage1.Text = "Ткани";
+            this.tabPage1.UseVisualStyleBackColor = true;
+            // 
+            // descriptionLabel
+            // 
+            descriptionLabel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+            descriptionLabel.AutoSize = true;
+            descriptionLabel.Location = new System.Drawing.Point(513, 170);
+            descriptionLabel.Name = "descriptionLabel";
+            descriptionLabel.Size = new System.Drawing.Size(75, 16);
+            descriptionLabel.TabIndex = 19;
+            descriptionLabel.Text = "Описание:";
+            // 
+            // TbxDescription
+            // 
+            this.TbxDescription.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+            this.TbxDescription.Location = new System.Drawing.Point(597, 167);
+            this.TbxDescription.Name = "TbxDescription";
+            this.TbxDescription.ReadOnly = true;
+            this.TbxDescription.Size = new System.Drawing.Size(144, 22);
+            this.TbxDescription.TabIndex = 20;
+            // 
+            // lengthLabel
+            // 
+            lengthLabel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+            lengthLabel.AutoSize = true;
+            lengthLabel.Location = new System.Drawing.Point(536, 133);
+            lengthLabel.Name = "lengthLabel";
+            lengthLabel.Size = new System.Drawing.Size(51, 16);
+            lengthLabel.TabIndex = 17;
+            lengthLabel.Text = "Длина:";
+            // 
+            // TbxLength
+            // 
+            this.TbxLength.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+            this.TbxLength.Location = new System.Drawing.Point(597, 130);
+            this.TbxLength.Name = "TbxLength";
+            this.TbxLength.ReadOnly = true;
+            this.TbxLength.Size = new System.Drawing.Size(144, 22);
+            this.TbxLength.TabIndex = 18;
+            // 
+            // widthLabel
+            // 
+            widthLabel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+            widthLabel.AutoSize = true;
+            widthLabel.Location = new System.Drawing.Point(528, 97);
+            widthLabel.Name = "widthLabel";
+            widthLabel.Size = new System.Drawing.Size(61, 16);
+            widthLabel.TabIndex = 15;
+            widthLabel.Text = "Ширина:";
+            // 
+            // TbxWith
+            // 
+            this.TbxWith.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+            this.TbxWith.Location = new System.Drawing.Point(597, 94);
+            this.TbxWith.Name = "TbxWith";
+            this.TbxWith.ReadOnly = true;
+            this.TbxWith.Size = new System.Drawing.Size(144, 22);
+            this.TbxWith.TabIndex = 16;
+            // 
+            // colorLabel
+            // 
+            colorLabel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+            colorLabel.AutoSize = true;
+            colorLabel.Location = new System.Drawing.Point(546, 58);
+            colorLabel.Name = "colorLabel";
+            colorLabel.Size = new System.Drawing.Size(42, 16);
+            colorLabel.TabIndex = 13;
+            colorLabel.Text = "Цвет:";
+            // 
+            // TbxColor
+            // 
+            this.TbxColor.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+            this.TbxColor.Location = new System.Drawing.Point(597, 55);
+            this.TbxColor.Name = "TbxColor";
+            this.TbxColor.ReadOnly = true;
+            this.TbxColor.Size = new System.Drawing.Size(144, 22);
+            this.TbxColor.TabIndex = 14;
+            // 
+            // nametkanLabel
+            // 
+            nametkanLabel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+            nametkanLabel.AutoSize = true;
+            nametkanLabel.Location = new System.Drawing.Point(515, 19);
+            nametkanLabel.Name = "nametkanLabel";
+            nametkanLabel.Size = new System.Drawing.Size(76, 16);
+            nametkanLabel.TabIndex = 11;
+            nametkanLabel.Text = "Название:";
+            // 
+            // TbxTitle
+            // 
+            this.TbxTitle.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+            this.TbxTitle.Location = new System.Drawing.Point(597, 16);
+            this.TbxTitle.Name = "TbxTitle";
+            this.TbxTitle.ReadOnly = true;
+            this.TbxTitle.Size = new System.Drawing.Size(144, 22);
+            this.TbxTitle.TabIndex = 12;
+            // 
+            // TlpTkani
+            // 
+            this.TlpTkani.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
+            | System.Windows.Forms.AnchorStyles.Left) 
+            | System.Windows.Forms.AnchorStyles.Right)));
+            this.TlpTkani.AutoScroll = true;
+            this.TlpTkani.ColumnCount = 1;
+            this.TlpTkani.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
+            this.TlpTkani.Location = new System.Drawing.Point(7, 7);
+            this.TlpTkani.Name = "TlpTkani";
+            this.TlpTkani.RowCount = 1;
+            this.TlpTkani.RowStyles.Add(new System.Windows.Forms.RowStyle());
+            this.TlpTkani.Size = new System.Drawing.Size(492, 311);
+            this.TlpTkani.TabIndex = 0;
+            // 
+            // tabPage2
+            // 
+            this.tabPage2.Controls.Add(label3);
+            this.tabPage2.Controls.Add(this.TbxCountFurSklad);
+            this.tabPage2.Controls.Add(label4);
+            this.tabPage2.Controls.Add(this.TbxNameFur);
+            this.tabPage2.Controls.Add(this.TlpFurnitura);
+            this.tabPage2.Location = new System.Drawing.Point(4, 25);
+            this.tabPage2.Name = "tabPage2";
+            this.tabPage2.Padding = new System.Windows.Forms.Padding(3);
+            this.tabPage2.Size = new System.Drawing.Size(747, 242);
+            this.tabPage2.TabIndex = 1;
+            this.tabPage2.Text = "Фурнитура";
+            this.tabPage2.UseVisualStyleBackColor = true;
+            // 
+            // label3
+            // 
+            label3.AutoSize = true;
+            label3.Location = new System.Drawing.Point(436, 55);
+            label3.Name = "label3";
+            label3.Size = new System.Drawing.Size(122, 16);
+            label3.TabIndex = 15;
+            label3.Text = "Кол-во на складе:";
+            // 
+            // TbxCountFurSklad
+            // 
+            this.TbxCountFurSklad.Location = new System.Drawing.Point(569, 55);
+            this.TbxCountFurSklad.Name = "TbxCountFurSklad";
+            this.TbxCountFurSklad.ReadOnly = true;
+            this.TbxCountFurSklad.Size = new System.Drawing.Size(144, 22);
+            this.TbxCountFurSklad.TabIndex = 16;
+            // 
+            // label4
+            // 
+            label4.AutoSize = true;
+            label4.Location = new System.Drawing.Point(487, 19);
+            label4.Name = "label4";
+            label4.Size = new System.Drawing.Size(76, 16);
+            label4.TabIndex = 13;
+            label4.Text = "Название:";
+            // 
+            // TbxNameFur
+            // 
+            this.TbxNameFur.Location = new System.Drawing.Point(569, 16);
+            this.TbxNameFur.Name = "TbxNameFur";
+            this.TbxNameFur.ReadOnly = true;
+            this.TbxNameFur.Size = new System.Drawing.Size(144, 22);
+            this.TbxNameFur.TabIndex = 14;
+            // 
+            // TlpFurnitura
+            // 
+            this.TlpFurnitura.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
+            | System.Windows.Forms.AnchorStyles.Left) 
+            | System.Windows.Forms.AnchorStyles.Right)));
+            this.TlpFurnitura.AutoScroll = true;
+            this.TlpFurnitura.ColumnCount = 1;
+            this.TlpFurnitura.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
+            this.TlpFurnitura.Location = new System.Drawing.Point(6, 6);
+            this.TlpFurnitura.Name = "TlpFurnitura";
+            this.TlpFurnitura.RowCount = 1;
+            this.TlpFurnitura.RowStyles.Add(new System.Windows.Forms.RowStyle());
+            this.TlpFurnitura.Size = new System.Drawing.Size(420, 312);
+            this.TlpFurnitura.TabIndex = 0;
+            // 
+            // DgvOrders
+            // 
+            this.DgvOrders.AllowUserToAddRows = false;
+            this.DgvOrders.AllowUserToDeleteRows = false;
+            this.DgvOrders.AllowUserToResizeColumns = false;
+            this.DgvOrders.AllowUserToResizeRows = false;
+            this.DgvOrders.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
+            | System.Windows.Forms.AnchorStyles.Left) 
+            | System.Windows.Forms.AnchorStyles.Right)));
+            this.DgvOrders.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
+            this.DgvOrders.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
+            this.Izdelie,
+            this.Meneger,
+            this.Zakazchik,
+            this.Tkan,
+            this.Furnitur,
+            this.CountFur,
+            this.CountIzd});
+            this.DgvOrders.Location = new System.Drawing.Point(3, 3);
+            this.DgvOrders.Name = "DgvOrders";
+            this.DgvOrders.ReadOnly = true;
+            this.DgvOrders.RowHeadersVisible = false;
+            this.DgvOrders.RowHeadersWidth = 51;
+            this.DgvOrders.RowTemplate.Height = 24;
+            this.DgvOrders.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
+            this.DgvOrders.Size = new System.Drawing.Size(741, 236);
+            this.DgvOrders.TabIndex = 21;
+            // 
+            // Izdelie
+            // 
+            this.Izdelie.HeaderText = "Изделие";
+            this.Izdelie.MinimumWidth = 6;
+            this.Izdelie.Name = "Izdelie";
+            this.Izdelie.ReadOnly = true;
+            this.Izdelie.Width = 125;
+            // 
+            // Meneger
+            // 
+            this.Meneger.HeaderText = "Менеджер";
+            this.Meneger.MinimumWidth = 6;
+            this.Meneger.Name = "Meneger";
+            this.Meneger.ReadOnly = true;
+            this.Meneger.Width = 125;
+            // 
+            // Zakazchik
+            // 
+            this.Zakazchik.HeaderText = "Заказчик";
+            this.Zakazchik.MinimumWidth = 6;
+            this.Zakazchik.Name = "Zakazchik";
+            this.Zakazchik.ReadOnly = true;
+            this.Zakazchik.Width = 125;
+            // 
+            // Tkan
+            // 
+            this.Tkan.HeaderText = "Ткань";
+            this.Tkan.MinimumWidth = 6;
+            this.Tkan.Name = "Tkan";
+            this.Tkan.ReadOnly = true;
+            this.Tkan.Width = 125;
+            // 
+            // Furnitur
+            // 
+            this.Furnitur.HeaderText = "Фурнитура";
+            this.Furnitur.MinimumWidth = 6;
+            this.Furnitur.Name = "Furnitur";
+            this.Furnitur.ReadOnly = true;
+            this.Furnitur.Width = 125;
+            // 
+            // CountFur
+            // 
+            this.CountFur.HeaderText = "Кол-во фурнитуры";
+            this.CountFur.MinimumWidth = 6;
+            this.CountFur.Name = "CountFur";
+            this.CountFur.ReadOnly = true;
+            this.CountFur.Width = 125;
+            // 
+            // CountIzd
+            // 
+            this.CountIzd.HeaderText = "Кол-во изделий";
+            this.CountIzd.MinimumWidth = 6;
+            this.CountIzd.Name = "CountIzd";
+            this.CountIzd.ReadOnly = true;
+            this.CountIzd.Width = 125;
+            // 
             // FormKladovschik
             // 
             this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
             this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
-            this.ClientSize = new System.Drawing.Size(800, 450);
+            this.ClientSize = new System.Drawing.Size(779, 453);
+            this.Controls.Add(this.tabControl1);
+            this.Controls.Add(this.BtnSpisMaterial);
+            this.Controls.Add(this.BtnGetMaterial);
+            this.Controls.Add(this.BtnProfile);
             this.Controls.Add(this.panel1);
             this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
             this.Name = "FormKladovschik";
             this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
             this.Text = "СУБД \"Швейная фабрика\"";
+            this.Load += new System.EventHandler(this.FormKladovschik_Load);
             this.panel1.ResumeLayout(false);
             this.panel1.PerformLayout();
             ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
+            ((System.ComponentModel.ISupportInitialize)(this.сlothesFactoryLGDataSet)).EndInit();
+            ((System.ComponentModel.ISupportInitialize)(this.BsUsers)).EndInit();
+            this.tabControl1.ResumeLayout(false);
+            this.tabPage3.ResumeLayout(false);
+            this.tabPage1.ResumeLayout(false);
+            this.tabPage1.PerformLayout();
+            this.tabPage2.ResumeLayout(false);
+            this.tabPage2.PerformLayout();
+            ((System.ComponentModel.ISupportInitialize)(this.DgvOrders)).EndInit();
             this.ResumeLayout(false);
 
         }
@@ -90,5 +540,35 @@
         private System.Windows.Forms.Panel panel1;
         private System.Windows.Forms.Label label1;
         private System.Windows.Forms.PictureBox pictureBox1;
+        private System.Windows.Forms.Label FamLabel;
+        private System.Windows.Forms.Label OtchLabel;
+        private System.Windows.Forms.Label NameLabel;
+        private System.Windows.Forms.Button BtnSpisMaterial;
+        private System.Windows.Forms.Button BtnGetMaterial;
+        private System.Windows.Forms.Button BtnProfile;
+        private СlothesFactoryLGDataSet сlothesFactoryLGDataSet;
+        private СlothesFactoryLGDataSetTableAdapters.UsersTableAdapter usersTableAdapter;
+        private System.Windows.Forms.TabControl tabControl1;
+        private System.Windows.Forms.TabPage tabPage3;
+        private System.Windows.Forms.TabPage tabPage1;
+        private System.Windows.Forms.TextBox TbxDescription;
+        private System.Windows.Forms.TextBox TbxLength;
+        private System.Windows.Forms.TextBox TbxWith;
+        private System.Windows.Forms.TextBox TbxColor;
+        private System.Windows.Forms.TextBox TbxTitle;
+        private System.Windows.Forms.TableLayoutPanel TlpTkani;
+        private System.Windows.Forms.TabPage tabPage2;
+        private System.Windows.Forms.TextBox TbxCountFurSklad;
+        private System.Windows.Forms.TextBox TbxNameFur;
+        private System.Windows.Forms.TableLayoutPanel TlpFurnitura;
+        public System.Windows.Forms.BindingSource BsUsers;
+        private System.Windows.Forms.DataGridView DgvOrders;
+        private System.Windows.Forms.DataGridViewTextBoxColumn Izdelie;
+        private System.Windows.Forms.DataGridViewTextBoxColumn Meneger;
+        private System.Windows.Forms.DataGridViewTextBoxColumn Zakazchik;
+        private System.Windows.Forms.DataGridViewTextBoxColumn Tkan;
+        private System.Windows.Forms.DataGridViewTextBoxColumn Furnitur;
+        private System.Windows.Forms.DataGridViewTextBoxColumn CountFur;
+        private System.Windows.Forms.DataGridViewTextBoxColumn CountIzd;
     }
 }

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

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

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

@@ -117,6 +117,57 @@
   <resheader name="writer">
     <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
   </resheader>
+  <metadata name="BsUsers.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+    <value>243, 17</value>
+  </metadata>
+  <metadata name="сlothesFactoryLGDataSet.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+    <value>17, 17</value>
+  </metadata>
+  <metadata name="usersTableAdapter.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+    <value>345, 17</value>
+  </metadata>
+  <metadata name="Izdelie.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
+  <metadata name="Meneger.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
+  <metadata name="Zakazchik.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
+  <metadata name="Tkan.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
+  <metadata name="Furnitur.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
+  <metadata name="CountFur.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
+  <metadata name="CountIzd.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
+  <metadata name="descriptionLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>False</value>
+  </metadata>
+  <metadata name="lengthLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>False</value>
+  </metadata>
+  <metadata name="widthLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>False</value>
+  </metadata>
+  <metadata name="colorLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>False</value>
+  </metadata>
+  <metadata name="nametkanLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>False</value>
+  </metadata>
+  <metadata name="label3.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>False</value>
+  </metadata>
+  <metadata name="label4.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>False</value>
+  </metadata>
   <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>

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

@@ -0,0 +1,189 @@
+namespace Швейная_фабрика
+{
+    partial class FormLeven
+    {
+        /// <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(FormLeven));
+            this.panel1 = new System.Windows.Forms.Panel();
+            this.pictureBox1 = new System.Windows.Forms.PictureBox();
+            this.label1 = new System.Windows.Forms.Label();
+            this.DgvTkani = new System.Windows.Forms.DataGridView();
+            this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.BtnShowAll = new System.Windows.Forms.Button();
+            this.BtnFind = new System.Windows.Forms.Button();
+            this.label2 = new System.Windows.Forms.Label();
+            this.TbxFind = new System.Windows.Forms.TextBox();
+            this.panel1.SuspendLayout();
+            ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
+            ((System.ComponentModel.ISupportInitialize)(this.DgvTkani)).BeginInit();
+            this.SuspendLayout();
+            // 
+            // panel1
+            // 
+            this.panel1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(225)))));
+            this.panel1.Controls.Add(this.label1);
+            this.panel1.Controls.Add(this.pictureBox1);
+            this.panel1.Dock = System.Windows.Forms.DockStyle.Top;
+            this.panel1.Location = new System.Drawing.Point(0, 0);
+            this.panel1.Name = "panel1";
+            this.panel1.Size = new System.Drawing.Size(499, 130);
+            this.panel1.TabIndex = 5;
+            // 
+            // pictureBox1
+            // 
+            this.pictureBox1.Dock = System.Windows.Forms.DockStyle.Left;
+            this.pictureBox1.Image = global::Швейная_фабрика.Properties.Resources.fabric_logo;
+            this.pictureBox1.Location = new System.Drawing.Point(0, 0);
+            this.pictureBox1.Name = "pictureBox1";
+            this.pictureBox1.Size = new System.Drawing.Size(133, 130);
+            this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
+            this.pictureBox1.TabIndex = 0;
+            this.pictureBox1.TabStop = false;
+            // 
+            // label1
+            // 
+            this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 13.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
+            this.label1.Location = new System.Drawing.Point(157, 29);
+            this.label1.Name = "label1";
+            this.label1.Size = new System.Drawing.Size(256, 71);
+            this.label1.TabIndex = 2;
+            this.label1.Text = "Нечеткий поиск по названиям тканей";
+            // 
+            // DgvTkani
+            // 
+            this.DgvTkani.AllowUserToAddRows = false;
+            this.DgvTkani.AllowUserToDeleteRows = false;
+            this.DgvTkani.AllowUserToResizeColumns = false;
+            this.DgvTkani.AllowUserToResizeRows = false;
+            this.DgvTkani.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
+            | System.Windows.Forms.AnchorStyles.Left) 
+            | System.Windows.Forms.AnchorStyles.Right)));
+            this.DgvTkani.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
+            this.DgvTkani.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
+            this.Column1});
+            this.DgvTkani.Location = new System.Drawing.Point(12, 136);
+            this.DgvTkani.Name = "DgvTkani";
+            this.DgvTkani.ReadOnly = true;
+            this.DgvTkani.RowHeadersVisible = false;
+            this.DgvTkani.RowHeadersWidth = 51;
+            this.DgvTkani.RowTemplate.Height = 24;
+            this.DgvTkani.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
+            this.DgvTkani.Size = new System.Drawing.Size(269, 395);
+            this.DgvTkani.TabIndex = 20;
+            // 
+            // Column1
+            // 
+            this.Column1.HeaderText = "Название ткани";
+            this.Column1.MinimumWidth = 6;
+            this.Column1.Name = "Column1";
+            this.Column1.ReadOnly = true;
+            this.Column1.Width = 250;
+            // 
+            // BtnShowAll
+            // 
+            this.BtnShowAll.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
+            | System.Windows.Forms.AnchorStyles.Right)));
+            this.BtnShowAll.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(156)))), ((int)(((byte)(26)))));
+            this.BtnShowAll.Location = new System.Drawing.Point(296, 187);
+            this.BtnShowAll.Name = "BtnShowAll";
+            this.BtnShowAll.Size = new System.Drawing.Size(191, 28);
+            this.BtnShowAll.TabIndex = 19;
+            this.BtnShowAll.Text = "Отобразить все";
+            this.BtnShowAll.UseVisualStyleBackColor = false;
+            this.BtnShowAll.Click += new System.EventHandler(this.BtnShowAll_Click);
+            // 
+            // BtnFind
+            // 
+            this.BtnFind.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
+            | System.Windows.Forms.AnchorStyles.Right)));
+            this.BtnFind.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(156)))), ((int)(((byte)(26)))));
+            this.BtnFind.Location = new System.Drawing.Point(296, 221);
+            this.BtnFind.Name = "BtnFind";
+            this.BtnFind.Size = new System.Drawing.Size(191, 28);
+            this.BtnFind.TabIndex = 18;
+            this.BtnFind.Text = "Поиск";
+            this.BtnFind.UseVisualStyleBackColor = false;
+            this.BtnFind.Click += new System.EventHandler(this.BtnFind_Click);
+            // 
+            // label2
+            // 
+            this.label2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
+            | System.Windows.Forms.AnchorStyles.Right)));
+            this.label2.AutoSize = true;
+            this.label2.Location = new System.Drawing.Point(296, 136);
+            this.label2.Name = "label2";
+            this.label2.Size = new System.Drawing.Size(198, 16);
+            this.label2.TabIndex = 17;
+            this.label2.Text = "Введите символы для поиска";
+            // 
+            // TbxFind
+            // 
+            this.TbxFind.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
+            | System.Windows.Forms.AnchorStyles.Right)));
+            this.TbxFind.Location = new System.Drawing.Point(296, 159);
+            this.TbxFind.Name = "TbxFind";
+            this.TbxFind.Size = new System.Drawing.Size(191, 22);
+            this.TbxFind.TabIndex = 16;
+            // 
+            // FormLeven
+            // 
+            this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
+            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+            this.ClientSize = new System.Drawing.Size(499, 543);
+            this.Controls.Add(this.DgvTkani);
+            this.Controls.Add(this.BtnShowAll);
+            this.Controls.Add(this.BtnFind);
+            this.Controls.Add(this.label2);
+            this.Controls.Add(this.TbxFind);
+            this.Controls.Add(this.panel1);
+            this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
+            this.Name = "FormLeven";
+            this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
+            this.Text = "СУБД \"Швейная фабрика\"";
+            this.Load += new System.EventHandler(this.FormLeven_Load);
+            this.panel1.ResumeLayout(false);
+            ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
+            ((System.ComponentModel.ISupportInitialize)(this.DgvTkani)).EndInit();
+            this.ResumeLayout(false);
+            this.PerformLayout();
+
+        }
+
+        #endregion
+
+        private System.Windows.Forms.Panel panel1;
+        private System.Windows.Forms.Label label1;
+        private System.Windows.Forms.PictureBox pictureBox1;
+        private System.Windows.Forms.DataGridView DgvTkani;
+        private System.Windows.Forms.DataGridViewTextBoxColumn Column1;
+        private System.Windows.Forms.Button BtnShowAll;
+        private System.Windows.Forms.Button BtnFind;
+        private System.Windows.Forms.Label label2;
+        private System.Windows.Forms.TextBox TbxFind;
+    }
+}

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

@@ -0,0 +1,82 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Data.SqlClient;
+using System.Drawing;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows.Forms;
+
+namespace Швейная_фабрика
+{
+    public partial class FormLeven : Form
+    {
+        public FormLeven()
+        {
+            InitializeComponent();
+        }
+        /// <summary>
+        /// Расстояние Левенштейна
+        /// </summary>
+        /// <param name="txt1">Первая строка</param>
+        /// <param name="txt2">Вторая строка</param>
+        /// <returns>Расстояние Левенштейна между двумя строками</returns>
+        static int Levenshtein(string txt1, string txt2)
+        {
+            string t1 = txt1.ToLower().Trim();
+            string t2 = txt2.ToLower().Trim();
+            int CntLev = Math.Abs(t1.Length - t2.Length);
+            // перебор до последнего символа более короткой строки
+            for (int i = 0; i <= Math.Min(t1.Length, t2.Length) - 1; i++)
+            {
+                if (t1[i] != t2[i])
+                    CntLev++;
+            }
+            return CntLev;
+        }
+
+        List<string> LstTkani = new List<string>();
+
+        /// <summary>
+        /// Отобразить весь список тканей
+        /// </summary>
+        private void BtnShowAll_Click(object sender, EventArgs e)
+        {
+            DgvTkani.Rows.Clear();
+            foreach (string Tkan in LstTkani)
+                DgvTkani.Rows.Add(Tkan);
+        }
+        /// <summary>
+        /// На момент открытия формы сформировать список с названиями тканей
+        /// и заполнить DataGridView 
+        /// </summary>
+        private void FormLeven_Load(object sender, EventArgs e)
+        {
+            SqlConnection con = new SqlConnection("Data Source=213.155.192.79,3002;Initial Catalog=СlothesFactoryLG;Persist Security Info=True;User ID=u21lebed;Password=hgm8");
+            con.Open();
+            string TxtQuery = "select Title from Tkan";
+
+            SqlCommand query1 = new SqlCommand(TxtQuery, con);
+            // выполнить запрос
+            SqlDataReader res = query1.ExecuteReader();
+
+            while (res.Read())
+                LstTkani.Add(res["Title"].ToString());
+            con.Close();
+
+            BtnShowAll_Click(sender, e);
+        }
+        /// <summary>
+        /// Поиск с учетом расстояния Левенштейна
+        /// </summary>
+        private void BtnFind_Click(object sender, EventArgs e)
+        {
+            DgvTkani.Rows.Clear();
+            foreach (string Tkan in LstTkani)
+                if (Levenshtein(Tkan, TbxFind.Text) <= 3)
+                    DgvTkani.Rows.Add(Tkan);
+        }
+    }
+}

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

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

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

@@ -93,7 +93,7 @@ namespace Швейная_фабрика
                 // создать форму для кладовщика
                 FormKladovschik frm = new FormKladovschik();
                 // отфильтровать авторизовавшегося пользователя
-                //frm.BsUsers.Filter = TxtFilterForUser;
+                frm.BsUsers.Filter = TxtFilterForUser;
                 frm.ShowDialog();
             }
 

+ 7 - 7
Швейная фабрика/FormProfilZak.Designer.cs → Швейная фабрика/FormProfil.Designer.cs

@@ -1,6 +1,6 @@
 namespace Швейная_фабрика
 {
-    partial class FormProfilZak
+    partial class FormProfil
     {
         /// <summary>
         /// Required designer variable.
@@ -35,7 +35,7 @@
             System.Windows.Forms.Label nameLabel;
             System.Windows.Forms.Label surnameLabel;
             System.Windows.Forms.Label passLabel;
-            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormProfilZak));
+            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormProfil));
             this.panel1 = new System.Windows.Forms.Panel();
             this.label1 = new System.Windows.Forms.Label();
             this.pictureBox1 = new System.Windows.Forms.PictureBox();
@@ -134,11 +134,11 @@
             // 
             this.label1.AutoSize = true;
             this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 13.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
-            this.label1.Location = new System.Drawing.Point(186, 51);
+            this.label1.Location = new System.Drawing.Point(155, 51);
             this.label1.Name = "label1";
-            this.label1.Size = new System.Drawing.Size(239, 29);
+            this.label1.Size = new System.Drawing.Size(281, 29);
             this.label1.TabIndex = 1;
-            this.label1.Text = "Профиль заказчика";
+            this.label1.Text = "Профиль пользователя";
             // 
             // pictureBox1
             // 
@@ -266,7 +266,7 @@
             this.Lblpass.TabIndex = 40;
             this.Lblpass.Text = "label3";
             // 
-            // FormProfilZak
+            // FormProfil
             // 
             this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
             this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
@@ -289,7 +289,7 @@
             this.Controls.Add(this.passTextBox);
             this.Controls.Add(this.panel1);
             this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
-            this.Name = "FormProfilZak";
+            this.Name = "FormProfil";
             this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
             this.Text = "СУБД \"Швейная фабрика\"";
             this.Load += new System.EventHandler(this.FormProfilZak_Load);

+ 2 - 2
Швейная фабрика/FormProfilZak.cs → Швейная фабрика/FormProfil.cs

@@ -11,9 +11,9 @@ using DLLCheck;
 
 namespace Швейная_фабрика
 {
-    public partial class FormProfilZak : Form
+    public partial class FormProfil : Form
     {
-        public FormProfilZak()
+        public FormProfil()
         {
             InitializeComponent();
         }

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


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

@@ -0,0 +1,39 @@
+namespace Швейная_фабрика
+{
+    partial class FormMaterial
+    {
+        /// <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();
+            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+            this.ClientSize = new System.Drawing.Size(800, 450);
+            this.Text = "FormMaterial";
+        }
+
+        #endregion
+    }
+}

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

@@ -0,0 +1,20 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows.Forms;
+
+namespace Швейная_фабрика
+{
+    public partial class FormMaterial : Form
+    {
+        public FormMaterial()
+        {
+            InitializeComponent();
+        }
+    }
+}

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

@@ -0,0 +1,120 @@
+<?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>
+</root>

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

@@ -36,7 +36,6 @@
             this.сlothesFactoryLGDataSet = new Швейная_фабрика.СlothesFactoryLGDataSet();
             this.label1 = new System.Windows.Forms.Label();
             this.nameLabel1 = new System.Windows.Forms.Label();
-            this.pictureBox1 = new System.Windows.Forms.PictureBox();
             this.surnameLabel1 = new System.Windows.Forms.Label();
             this.usersTableAdapter = new Швейная_фабрика.СlothesFactoryLGDataSetTableAdapters.UsersTableAdapter();
             this.BtnAddZakaz = new System.Windows.Forms.Button();
@@ -49,11 +48,12 @@
             this.Furnitura = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.CountFur = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.CountIzd = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.pictureBox1 = new System.Windows.Forms.PictureBox();
             this.panel1.SuspendLayout();
             ((System.ComponentModel.ISupportInitialize)(this.BsUsers)).BeginInit();
             ((System.ComponentModel.ISupportInitialize)(this.сlothesFactoryLGDataSet)).BeginInit();
-            ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
             ((System.ComponentModel.ISupportInitialize)(this.DgvOrders)).BeginInit();
+            ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
             this.SuspendLayout();
             // 
             // panel1
@@ -112,17 +112,6 @@
             this.nameLabel1.TabIndex = 8;
             this.nameLabel1.Text = "Имя";
             // 
-            // pictureBox1
-            // 
-            this.pictureBox1.Dock = System.Windows.Forms.DockStyle.Left;
-            this.pictureBox1.Image = global::Швейная_фабрика.Properties.Resources.fabric_logo;
-            this.pictureBox1.Location = new System.Drawing.Point(0, 0);
-            this.pictureBox1.Name = "pictureBox1";
-            this.pictureBox1.Size = new System.Drawing.Size(133, 130);
-            this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
-            this.pictureBox1.TabIndex = 0;
-            this.pictureBox1.TabStop = false;
-            // 
             // surnameLabel1
             // 
             this.surnameLabel1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
@@ -249,6 +238,17 @@
             this.CountIzd.ReadOnly = true;
             this.CountIzd.Width = 125;
             // 
+            // pictureBox1
+            // 
+            this.pictureBox1.Dock = System.Windows.Forms.DockStyle.Left;
+            this.pictureBox1.Image = global::Швейная_фабрика.Properties.Resources.fabric_logo;
+            this.pictureBox1.Location = new System.Drawing.Point(0, 0);
+            this.pictureBox1.Name = "pictureBox1";
+            this.pictureBox1.Size = new System.Drawing.Size(133, 130);
+            this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
+            this.pictureBox1.TabIndex = 0;
+            this.pictureBox1.TabStop = false;
+            // 
             // FormZakazchik
             // 
             this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
@@ -268,8 +268,8 @@
             this.panel1.PerformLayout();
             ((System.ComponentModel.ISupportInitialize)(this.BsUsers)).EndInit();
             ((System.ComponentModel.ISupportInitialize)(this.сlothesFactoryLGDataSet)).EndInit();
-            ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
             ((System.ComponentModel.ISupportInitialize)(this.DgvOrders)).EndInit();
+            ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
             this.ResumeLayout(false);
 
         }

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

@@ -56,14 +56,15 @@ where Users.Role = 2 and Orders.id_zak = {FormMain.IDUser}";
 
         private void BtnProfile_Click(object sender, EventArgs e)
         {
-            FormProfilZak frm = new FormProfilZak();
+            FormProfil frm = new FormProfil();
             frm.BsUsers.Filter = BsUsers.Filter;
             frm.ShowDialog();
         }
 
         private void BtnLev_Click(object sender, EventArgs e)
         {
-
+            FormLeven frm = new FormLeven();
+            frm.ShowDialog();
         }
 
         private void BtnAddZakaz_Click(object sender, EventArgs e)

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


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

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

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


+ 0 - 0
Швейная фабрика/obj/Debug/Швейная_фабрика.FormProfilZak.resources → Швейная фабрика/obj/Debug/Швейная_фабрика.FormLeven.resources


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


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

@@ -64,6 +64,12 @@
     <Compile Include="Form2.Designer.cs">
       <DependentUpon>Form2.cs</DependentUpon>
     </Compile>
+    <Compile Include="FormLeven.cs">
+      <SubType>Form</SubType>
+    </Compile>
+    <Compile Include="FormLeven.Designer.cs">
+      <DependentUpon>FormLeven.cs</DependentUpon>
+    </Compile>
     <Compile Include="FormZakazchik.cs">
       <SubType>Form</SubType>
     </Compile>
@@ -88,11 +94,11 @@
     <Compile Include="FormManager.Designer.cs">
       <DependentUpon>FormManager.cs</DependentUpon>
     </Compile>
-    <Compile Include="FormProfilZak.cs">
+    <Compile Include="FormProfil.cs">
       <SubType>Form</SubType>
     </Compile>
-    <Compile Include="FormProfilZak.Designer.cs">
-      <DependentUpon>FormProfilZak.cs</DependentUpon>
+    <Compile Include="FormProfil.Designer.cs">
+      <DependentUpon>FormProfil.cs</DependentUpon>
     </Compile>
     <Compile Include="FormReg.cs">
       <SubType>Form</SubType>
@@ -119,6 +125,9 @@
     <EmbeddedResource Include="Form2.resx">
       <DependentUpon>Form2.cs</DependentUpon>
     </EmbeddedResource>
+    <EmbeddedResource Include="FormLeven.resx">
+      <DependentUpon>FormLeven.cs</DependentUpon>
+    </EmbeddedResource>
     <EmbeddedResource Include="FormZakazchik.resx">
       <DependentUpon>FormZakazchik.cs</DependentUpon>
     </EmbeddedResource>
@@ -131,8 +140,8 @@
     <EmbeddedResource Include="FormManager.resx">
       <DependentUpon>FormManager.cs</DependentUpon>
     </EmbeddedResource>
-    <EmbeddedResource Include="FormProfilZak.resx">
-      <DependentUpon>FormProfilZak.cs</DependentUpon>
+    <EmbeddedResource Include="FormProfil.resx">
+      <DependentUpon>FormProfil.cs</DependentUpon>
     </EmbeddedResource>
     <EmbeddedResource Include="FormReg.resx">
       <DependentUpon>FormReg.cs</DependentUpon>