Георгий Лебедько 2 rokov pred
rodič
commit
ec72d5fca0
32 zmenil súbory, kde vykonal 2648 pridanie a 1864 odobranie
  1. 230 0
      Швейная фабрика/FormAddIzdelie.Designer.cs
  2. 54 0
      Швейная фабрика/FormAddIzdelie.cs
  3. 503 0
      Швейная фабрика/FormAddIzdelie.resx
  4. 1 1
      Швейная фабрика/FormAddZak.Designer.cs
  5. 263 284
      Швейная фабрика/FormGetMaterial.Designer.cs
  6. 49 1
      Швейная фабрика/FormGetMaterial.cs
  7. 31 10
      Швейная фабрика/FormGetMaterial.resx
  8. 293 248
      Швейная фабрика/FormKladovschik.Designer.cs
  9. 44 314
      Швейная фабрика/FormKladovschik.cs
  10. 10 16
      Швейная фабрика/FormKladovschik.resx
  11. 17 28
      Швейная фабрика/FormLeven.Designer.cs
  12. 29 29
      Швейная фабрика/FormMain.Designer.cs
  13. 2 1
      Швейная фабрика/FormMain.cs
  14. 103 63
      Швейная фабрика/FormManager.Designer.cs
  15. 12 11
      Швейная фабрика/FormManager.cs
  16. 15 12
      Швейная фабрика/FormManager.resx
  17. 11 11
      Швейная фабрика/FormReg.Designer.cs
  18. 3 3
      Швейная фабрика/FormReg.resx
  19. 0 306
      Швейная фабрика/FormSpisMaterial.Designer.cs
  20. 0 161
      Швейная фабрика/FormSpisMaterial.cs
  21. 0 224
      Швейная фабрика/FormSpisMaterial.resx
  22. 23 29
      Швейная фабрика/FormZakazchik.Designer.cs
  23. BIN
      Швейная фабрика/bin/Debug/Швейная фабрика.exe
  24. BIN
      Швейная фабрика/obj/Debug/TempPE/СlothesFactoryLGDataSet.Designer.cs.dll
  25. 1 1
      Швейная фабрика/obj/Debug/Швейная фабрика.csproj.FileListAbsolute.txt
  26. BIN
      Швейная фабрика/obj/Debug/Швейная фабрика.exe
  27. BIN
      Швейная фабрика/obj/Debug/Швейная_фабрика.FormAddIzdelie.resources
  28. BIN
      Швейная фабрика/obj/Debug/Швейная_фабрика.FormSpisMaterial.resources
  29. 824 36
      Швейная фабрика/СlothesFactoryLGDataSet.Designer.cs
  30. 10 20
      Швейная фабрика/СlothesFactoryLGDataSet.xsc
  31. 111 46
      Швейная фабрика/СlothesFactoryLGDataSet.xsd
  32. 9 9
      Швейная фабрика/Швейная фабрика.csproj

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

@@ -0,0 +1,230 @@
+namespace Швейная_фабрика
+{
+    partial class FormAddIzdelie
+    {
+        /// <summary>
+        /// Required designer variable.
+        /// </summary>
+        private System.ComponentModel.IContainer components = null;
+
+        /// <summary>
+        /// Clean up any resources being used.
+        /// </summary>
+        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
+        protected override void Dispose(bool disposing)
+        {
+            if (disposing && (components != null))
+            {
+                components.Dispose();
+            }
+            base.Dispose(disposing);
+        }
+
+        #region Windows Form Designer generated code
+
+        /// <summary>
+        /// Required method for Designer support - do not modify
+        /// the contents of this method with the code editor.
+        /// </summary>
+        private void InitializeComponent()
+        {
+            this.components = new System.ComponentModel.Container();
+            System.Windows.Forms.Label widthLabel;
+            System.Windows.Forms.Label lengthLabel;
+            System.Windows.Forms.Label name_izdLabel;
+            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormAddIzdelie));
+            this.BtnSave = new System.Windows.Forms.Button();
+            this.BtnCancel = new System.Windows.Forms.Button();
+            this.TbxW = new System.Windows.Forms.TextBox();
+            this.TbxL = new System.Windows.Forms.TextBox();
+            this.TbxNameIzd = new System.Windows.Forms.TextBox();
+            this.panel1 = new System.Windows.Forms.Panel();
+            this.pictureBox1 = new System.Windows.Forms.PictureBox();
+            this.LblFunc = new System.Windows.Forms.Label();
+            this.сlothesFactoryLGDataSet = new Швейная_фабрика.СlothesFactoryLGDataSet();
+            this.BSizdelie = new System.Windows.Forms.BindingSource(this.components);
+            this.izdelieTableAdapter = new Швейная_фабрика.СlothesFactoryLGDataSetTableAdapters.IzdelieTableAdapter();
+            widthLabel = new System.Windows.Forms.Label();
+            lengthLabel = new System.Windows.Forms.Label();
+            name_izdLabel = new System.Windows.Forms.Label();
+            this.panel1.SuspendLayout();
+            ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
+            ((System.ComponentModel.ISupportInitialize)(this.сlothesFactoryLGDataSet)).BeginInit();
+            ((System.ComponentModel.ISupportInitialize)(this.BSizdelie)).BeginInit();
+            this.SuspendLayout();
+            // 
+            // BtnSave
+            // 
+            this.BtnSave.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+            this.BtnSave.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(156)))), ((int)(((byte)(26)))));
+            this.BtnSave.Location = new System.Drawing.Point(277, 270);
+            this.BtnSave.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
+            this.BtnSave.Name = "BtnSave";
+            this.BtnSave.Size = new System.Drawing.Size(191, 33);
+            this.BtnSave.TabIndex = 29;
+            this.BtnSave.Text = "Сохранить";
+            this.BtnSave.UseVisualStyleBackColor = false;
+            this.BtnSave.Click += new System.EventHandler(this.BtnSave_Click);
+            // 
+            // BtnCancel
+            // 
+            this.BtnCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+            this.BtnCancel.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(156)))), ((int)(((byte)(26)))));
+            this.BtnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
+            this.BtnCancel.Location = new System.Drawing.Point(35, 270);
+            this.BtnCancel.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
+            this.BtnCancel.Name = "BtnCancel";
+            this.BtnCancel.Size = new System.Drawing.Size(208, 33);
+            this.BtnCancel.TabIndex = 28;
+            this.BtnCancel.Text = "Отмена";
+            this.BtnCancel.UseVisualStyleBackColor = false;
+            // 
+            // widthLabel
+            // 
+            widthLabel.AutoSize = true;
+            widthLabel.Location = new System.Drawing.Point(86, 187);
+            widthLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
+            widthLabel.Name = "widthLabel";
+            widthLabel.Size = new System.Drawing.Size(58, 16);
+            widthLabel.TabIndex = 25;
+            widthLabel.Text = "Ширина";
+            // 
+            // TbxW
+            // 
+            this.TbxW.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.BSizdelie, "width", true));
+            this.TbxW.Location = new System.Drawing.Point(149, 184);
+            this.TbxW.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
+            this.TbxW.Name = "TbxW";
+            this.TbxW.Size = new System.Drawing.Size(340, 22);
+            this.TbxW.TabIndex = 27;
+            // 
+            // lengthLabel
+            // 
+            lengthLabel.AutoSize = true;
+            lengthLabel.Location = new System.Drawing.Point(93, 219);
+            lengthLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
+            lengthLabel.Name = "lengthLabel";
+            lengthLabel.Size = new System.Drawing.Size(48, 16);
+            lengthLabel.TabIndex = 23;
+            lengthLabel.Text = "Длина";
+            // 
+            // TbxL
+            // 
+            this.TbxL.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.BSizdelie, "length", true));
+            this.TbxL.Location = new System.Drawing.Point(149, 216);
+            this.TbxL.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
+            this.TbxL.Name = "TbxL";
+            this.TbxL.Size = new System.Drawing.Size(340, 22);
+            this.TbxL.TabIndex = 26;
+            this.TbxL.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.TbxL_KeyPress);
+            // 
+            // name_izdLabel
+            // 
+            name_izdLabel.AutoSize = true;
+            name_izdLabel.Location = new System.Drawing.Point(10, 155);
+            name_izdLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
+            name_izdLabel.Name = "name_izdLabel";
+            name_izdLabel.Size = new System.Drawing.Size(131, 16);
+            name_izdLabel.TabIndex = 21;
+            name_izdLabel.Text = "Название изделия";
+            // 
+            // TbxNameIzd
+            // 
+            this.TbxNameIzd.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.BSizdelie, "name_izd", true));
+            this.TbxNameIzd.Location = new System.Drawing.Point(149, 152);
+            this.TbxNameIzd.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
+            this.TbxNameIzd.Name = "TbxNameIzd";
+            this.TbxNameIzd.Size = new System.Drawing.Size(340, 22);
+            this.TbxNameIzd.TabIndex = 24;
+            // 
+            // panel1
+            // 
+            this.panel1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(225)))));
+            this.panel1.Controls.Add(this.LblFunc);
+            this.panel1.Controls.Add(this.pictureBox1);
+            this.panel1.Dock = System.Windows.Forms.DockStyle.Top;
+            this.panel1.Location = new System.Drawing.Point(0, 0);
+            this.panel1.Margin = new System.Windows.Forms.Padding(4, 9, 4, 9);
+            this.panel1.Name = "panel1";
+            this.panel1.Size = new System.Drawing.Size(510, 137);
+            this.panel1.TabIndex = 22;
+            // 
+            // pictureBox1
+            // 
+            this.pictureBox1.Dock = System.Windows.Forms.DockStyle.Left;
+            this.pictureBox1.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox1.Image")));
+            this.pictureBox1.Location = new System.Drawing.Point(0, 0);
+            this.pictureBox1.Margin = new System.Windows.Forms.Padding(4, 9, 4, 9);
+            this.pictureBox1.Name = "pictureBox1";
+            this.pictureBox1.Size = new System.Drawing.Size(168, 137);
+            this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
+            this.pictureBox1.TabIndex = 0;
+            this.pictureBox1.TabStop = false;
+            // 
+            // LblFunc
+            // 
+            this.LblFunc.AutoSize = true;
+            this.LblFunc.Font = new System.Drawing.Font("Microsoft Sans Serif", 13.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
+            this.LblFunc.Location = new System.Drawing.Point(197, 56);
+            this.LblFunc.Name = "LblFunc";
+            this.LblFunc.Size = new System.Drawing.Size(226, 29);
+            this.LblFunc.TabIndex = 2;
+            this.LblFunc.Text = "Добавить изделие";
+            // 
+            // сlothesFactoryLGDataSet
+            // 
+            this.сlothesFactoryLGDataSet.DataSetName = "СlothesFactoryLGDataSet";
+            this.сlothesFactoryLGDataSet.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
+            // 
+            // BSizdelie
+            // 
+            this.BSizdelie.DataMember = "Izdelie";
+            this.BSizdelie.DataSource = this.сlothesFactoryLGDataSet;
+            // 
+            // izdelieTableAdapter
+            // 
+            this.izdelieTableAdapter.ClearBeforeFill = true;
+            // 
+            // FormAddIzdelie
+            // 
+            this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
+            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+            this.ClientSize = new System.Drawing.Size(510, 325);
+            this.Controls.Add(this.BtnSave);
+            this.Controls.Add(this.BtnCancel);
+            this.Controls.Add(widthLabel);
+            this.Controls.Add(this.TbxW);
+            this.Controls.Add(lengthLabel);
+            this.Controls.Add(this.TbxL);
+            this.Controls.Add(name_izdLabel);
+            this.Controls.Add(this.TbxNameIzd);
+            this.Controls.Add(this.panel1);
+            this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
+            this.Name = "FormAddIzdelie";
+            this.Text = "СУБД Швейная фабрика";
+            this.Load += new System.EventHandler(this.FormAddIzdelie_Load);
+            this.panel1.ResumeLayout(false);
+            this.panel1.PerformLayout();
+            ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
+            ((System.ComponentModel.ISupportInitialize)(this.сlothesFactoryLGDataSet)).EndInit();
+            ((System.ComponentModel.ISupportInitialize)(this.BSizdelie)).EndInit();
+            this.ResumeLayout(false);
+            this.PerformLayout();
+
+        }
+
+        #endregion
+
+        private System.Windows.Forms.Button BtnSave;
+        private System.Windows.Forms.Button BtnCancel;
+        private System.Windows.Forms.TextBox TbxW;
+        private System.Windows.Forms.TextBox TbxL;
+        private System.Windows.Forms.TextBox TbxNameIzd;
+        private System.Windows.Forms.Panel panel1;
+        private System.Windows.Forms.PictureBox pictureBox1;
+        private СlothesFactoryLGDataSet сlothesFactoryLGDataSet;
+        private СlothesFactoryLGDataSetTableAdapters.IzdelieTableAdapter izdelieTableAdapter;
+        public System.Windows.Forms.Label LblFunc;
+        public System.Windows.Forms.BindingSource BSizdelie;
+    }
+}

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

@@ -0,0 +1,54 @@
+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 FormAddIzdelie : Form
+    {
+        public FormAddIzdelie()
+        {
+            InitializeComponent();
+        }
+
+        private void FormAddIzdelie_Load(object sender, EventArgs e)
+        {
+            // TODO: данная строка кода позволяет загрузить данные в таблицу "сlothesFactoryLGDataSet.Izdelie". При необходимости она может быть перемещена или удалена.
+            this.izdelieTableAdapter.Fill(this.сlothesFactoryLGDataSet.Izdelie);
+            if (LblFunc.Text == "Добавление изделия")
+                BSizdelie.AddNew();
+        }
+
+        private void BtnSave_Click(object sender, EventArgs e)
+        {
+            if (TbxNameIzd.Text.Trim() == "" || TbxW.Text.Trim() == "" || TbxL.Text.Trim() == "")
+            {
+                MessageBox.Show("Заполните все поля.", "Внимание!", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
+                return;
+            }
+            if (TbxL.Text == "0" || TbxW.Text == "0")
+            {
+                MessageBox.Show("Длинна и ширина должны быть > 0.", "Внимание!", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
+                return;
+            }
+            BSizdelie.EndEdit();
+            this.izdelieTableAdapter.Update(this.сlothesFactoryLGDataSet.Izdelie);
+            this.DialogResult = DialogResult.OK;
+            this.Close();
+        }
+
+        private void TbxL_KeyPress(object sender, KeyPressEventArgs e)
+        {
+            if (!char.IsDigit(e.KeyChar))
+                e.Handled = true;
+            if ((Keys)e.KeyChar == Keys.Back || (Keys)e.KeyChar == Keys.Delete)
+                e.Handled = false;
+        }
+    }
+}

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

@@ -0,0 +1,503 @@
+<?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="widthLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>False</value>
+  </metadata>
+  <metadata name="BSizdelie.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+    <value>243, 17</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="name_izdLabel.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="pictureBox1.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+    <value>
+        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
+        ggAAAABJRU5ErkJggg==
+</value>
+  </data>
+  <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="BSizdelie.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+    <value>243, 17</value>
+  </metadata>
+  <metadata name="izdelieTableAdapter.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+    <value>364, 18</value>
+  </metadata>
+  <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
Швейная фабрика/FormAddZak.Designer.cs

@@ -277,7 +277,7 @@
             this.DgvIzd.RowHeadersWidth = 51;
             this.DgvIzd.RowTemplate.Height = 24;
             this.DgvIzd.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
-            this.DgvIzd.Size = new System.Drawing.Size(713, 265);
+            this.DgvIzd.Size = new System.Drawing.Size(734, 284);
             this.DgvIzd.TabIndex = 0;
             this.DgvIzd.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.DgvIzd_CellClick);
             // 

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

@@ -28,40 +28,50 @@
         /// </summary>
         private void InitializeComponent()
         {
+            this.components = new System.ComponentModel.Container();
+            System.Windows.Forms.Label commentLabel;
+            System.Windows.Forms.Label widthLabel;
+            System.Windows.Forms.Label lengthLabel;
+            System.Windows.Forms.Label id_colorLabel;
+            System.Windows.Forms.Label titleLabel;
+            System.Windows.Forms.Label countfurLabel;
+            System.Windows.Forms.Label namefurLabel;
             System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormGetMaterial));
             this.panel1 = new System.Windows.Forms.Panel();
             this.label1 = new System.Windows.Forms.Label();
             this.pictureBox1 = new System.Windows.Forms.PictureBox();
-            this.tabControl1 = new System.Windows.Forms.TabControl();
+            this.BtnSave = new System.Windows.Forms.Button();
+            this.BtnCancel = new System.Windows.Forms.Button();
+            this.PageTkan = new System.Windows.Forms.TabControl();
             this.tabPage1 = new System.Windows.Forms.TabPage();
-            this.BtnDelTkan = new System.Windows.Forms.Button();
-            this.DgvTkan = new System.Windows.Forms.DataGridView();
-            this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.Column2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.Column3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.Column4 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.Column5 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.BtnAddTkan = new System.Windows.Forms.Button();
-            this.BtnClearPhotoTkan = new System.Windows.Forms.Button();
-            this.BtnLoadPhotoTkan = new System.Windows.Forms.Button();
-            this.PbxPhotoTkan = new System.Windows.Forms.PictureBox();
-            this.label6 = new System.Windows.Forms.Label();
-            this.label5 = new System.Windows.Forms.Label();
-            this.label4 = new System.Windows.Forms.Label();
-            this.label3 = new System.Windows.Forms.Label();
-            this.label2 = new System.Windows.Forms.Label();
-            this.TbxCommentTkan = new System.Windows.Forms.TextBox();
-            this.TbxColorTkan = new System.Windows.Forms.TextBox();
-            this.TbxLengthTkan = new System.Windows.Forms.TextBox();
-            this.TbxWithTkan = new System.Windows.Forms.TextBox();
-            this.TbxTitleTkan = new System.Windows.Forms.TextBox();
-            this.tabPage2 = new System.Windows.Forms.TabPage();
+            this.TbxComment = new System.Windows.Forms.TextBox();
+            this.TbxW = new System.Windows.Forms.TextBox();
+            this.TbxL = new System.Windows.Forms.TextBox();
+            this.TbxColor = new System.Windows.Forms.TextBox();
+            this.TbxNameTkan = new System.Windows.Forms.TextBox();
+            this.PageFurn = new System.Windows.Forms.TabPage();
+            this.TbxCountFur = new System.Windows.Forms.TextBox();
+            this.TbxNameFur = new System.Windows.Forms.TextBox();
+            this.сlothesFactoryLGDataSet = new Швейная_фабрика.СlothesFactoryLGDataSet();
+            this.BSTkan = new System.Windows.Forms.BindingSource(this.components);
+            this.tkanTableAdapter = new Швейная_фабрика.СlothesFactoryLGDataSetTableAdapters.TkanTableAdapter();
+            this.BSFurnitura = new System.Windows.Forms.BindingSource(this.components);
+            this.furnituraTableAdapter = new Швейная_фабрика.СlothesFactoryLGDataSetTableAdapters.FurnituraTableAdapter();
+            commentLabel = new System.Windows.Forms.Label();
+            widthLabel = new System.Windows.Forms.Label();
+            lengthLabel = new System.Windows.Forms.Label();
+            id_colorLabel = new System.Windows.Forms.Label();
+            titleLabel = new System.Windows.Forms.Label();
+            countfurLabel = new System.Windows.Forms.Label();
+            namefurLabel = new System.Windows.Forms.Label();
             this.panel1.SuspendLayout();
             ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
-            this.tabControl1.SuspendLayout();
+            this.PageTkan.SuspendLayout();
             this.tabPage1.SuspendLayout();
-            ((System.ComponentModel.ISupportInitialize)(this.DgvTkan)).BeginInit();
-            ((System.ComponentModel.ISupportInitialize)(this.PbxPhotoTkan)).BeginInit();
+            this.PageFurn.SuspendLayout();
+            ((System.ComponentModel.ISupportInitialize)(this.сlothesFactoryLGDataSet)).BeginInit();
+            ((System.ComponentModel.ISupportInitialize)(this.BSTkan)).BeginInit();
+            ((System.ComponentModel.ISupportInitialize)(this.BSFurnitura)).BeginInit();
             this.SuspendLayout();
             // 
             // panel1
@@ -72,18 +82,18 @@
             this.panel1.Dock = System.Windows.Forms.DockStyle.Top;
             this.panel1.Location = new System.Drawing.Point(0, 0);
             this.panel1.Name = "panel1";
-            this.panel1.Size = new System.Drawing.Size(772, 130);
+            this.panel1.Size = new System.Drawing.Size(538, 130);
             this.panel1.TabIndex = 5;
             // 
             // label1
             // 
             this.label1.AutoSize = true;
             this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 13.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
-            this.label1.Location = new System.Drawing.Point(196, 50);
+            this.label1.Location = new System.Drawing.Point(162, 52);
             this.label1.Name = "label1";
-            this.label1.Size = new System.Drawing.Size(340, 29);
+            this.label1.Size = new System.Drawing.Size(346, 29);
             this.label1.TabIndex = 2;
-            this.label1.Text = "Получить материал на склад";
+            this.label1.Text = "Добавить материал на склад";
             // 
             // pictureBox1
             // 
@@ -96,260 +106,236 @@
             this.pictureBox1.TabIndex = 0;
             this.pictureBox1.TabStop = false;
             // 
-            // tabControl1
-            // 
-            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(753, 473);
-            this.tabControl1.TabIndex = 6;
+            // BtnSave
+            // 
+            this.BtnSave.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(156)))), ((int)(((byte)(26)))));
+            this.BtnSave.Location = new System.Drawing.Point(331, 138);
+            this.BtnSave.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
+            this.BtnSave.Name = "BtnSave";
+            this.BtnSave.Size = new System.Drawing.Size(191, 33);
+            this.BtnSave.TabIndex = 25;
+            this.BtnSave.Text = "Добавить";
+            this.BtnSave.UseVisualStyleBackColor = false;
+            this.BtnSave.Click += new System.EventHandler(this.BtnSave_Click);
+            // 
+            // BtnCancel
+            // 
+            this.BtnCancel.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(156)))), ((int)(((byte)(26)))));
+            this.BtnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
+            this.BtnCancel.Location = new System.Drawing.Point(331, 178);
+            this.BtnCancel.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
+            this.BtnCancel.Name = "BtnCancel";
+            this.BtnCancel.Size = new System.Drawing.Size(191, 33);
+            this.BtnCancel.TabIndex = 24;
+            this.BtnCancel.Text = "Отмена";
+            this.BtnCancel.UseVisualStyleBackColor = false;
+            // 
+            // PageTkan
+            // 
+            this.PageTkan.Controls.Add(this.tabPage1);
+            this.PageTkan.Controls.Add(this.PageFurn);
+            this.PageTkan.Location = new System.Drawing.Point(11, 138);
+            this.PageTkan.Margin = new System.Windows.Forms.Padding(2);
+            this.PageTkan.Name = "PageTkan";
+            this.PageTkan.SelectedIndex = 0;
+            this.PageTkan.Size = new System.Drawing.Size(314, 234);
+            this.PageTkan.TabIndex = 23;
             // 
             // tabPage1
             // 
-            this.tabPage1.Controls.Add(this.BtnDelTkan);
-            this.tabPage1.Controls.Add(this.DgvTkan);
-            this.tabPage1.Controls.Add(this.BtnAddTkan);
-            this.tabPage1.Controls.Add(this.BtnClearPhotoTkan);
-            this.tabPage1.Controls.Add(this.BtnLoadPhotoTkan);
-            this.tabPage1.Controls.Add(this.PbxPhotoTkan);
-            this.tabPage1.Controls.Add(this.label6);
-            this.tabPage1.Controls.Add(this.label5);
-            this.tabPage1.Controls.Add(this.label4);
-            this.tabPage1.Controls.Add(this.label3);
-            this.tabPage1.Controls.Add(this.label2);
-            this.tabPage1.Controls.Add(this.TbxCommentTkan);
-            this.tabPage1.Controls.Add(this.TbxColorTkan);
-            this.tabPage1.Controls.Add(this.TbxLengthTkan);
-            this.tabPage1.Controls.Add(this.TbxWithTkan);
-            this.tabPage1.Controls.Add(this.TbxTitleTkan);
+            this.tabPage1.Controls.Add(commentLabel);
+            this.tabPage1.Controls.Add(this.TbxComment);
+            this.tabPage1.Controls.Add(widthLabel);
+            this.tabPage1.Controls.Add(this.TbxW);
+            this.tabPage1.Controls.Add(lengthLabel);
+            this.tabPage1.Controls.Add(this.TbxL);
+            this.tabPage1.Controls.Add(id_colorLabel);
+            this.tabPage1.Controls.Add(this.TbxColor);
+            this.tabPage1.Controls.Add(titleLabel);
+            this.tabPage1.Controls.Add(this.TbxNameTkan);
             this.tabPage1.Location = new System.Drawing.Point(4, 25);
+            this.tabPage1.Margin = new System.Windows.Forms.Padding(2);
             this.tabPage1.Name = "tabPage1";
-            this.tabPage1.Padding = new System.Windows.Forms.Padding(3);
-            this.tabPage1.Size = new System.Drawing.Size(745, 444);
+            this.tabPage1.Padding = new System.Windows.Forms.Padding(2);
+            this.tabPage1.Size = new System.Drawing.Size(306, 205);
             this.tabPage1.TabIndex = 0;
-            this.tabPage1.Text = "Добавить в документ ткани";
+            this.tabPage1.Text = "Добавить ткань";
             this.tabPage1.UseVisualStyleBackColor = true;
             // 
-            // BtnDelTkan
-            // 
-            this.BtnDelTkan.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(156)))), ((int)(((byte)(26)))));
-            this.BtnDelTkan.Location = new System.Drawing.Point(9, 398);
-            this.BtnDelTkan.Name = "BtnDelTkan";
-            this.BtnDelTkan.Size = new System.Drawing.Size(363, 28);
-            this.BtnDelTkan.TabIndex = 15;
-            this.BtnDelTkan.Text = "Удалить выделенную ткань из документа";
-            this.BtnDelTkan.UseVisualStyleBackColor = false;
-            // 
-            // DgvTkan
-            // 
-            this.DgvTkan.AllowUserToAddRows = false;
-            this.DgvTkan.AllowUserToDeleteRows = false;
-            this.DgvTkan.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
-            this.DgvTkan.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
-            this.Column1,
-            this.Column2,
-            this.Column3,
-            this.Column4,
-            this.Column5});
-            this.DgvTkan.Location = new System.Drawing.Point(9, 176);
-            this.DgvTkan.MultiSelect = false;
-            this.DgvTkan.Name = "DgvTkan";
-            this.DgvTkan.ReadOnly = true;
-            this.DgvTkan.RowHeadersWidth = 51;
-            this.DgvTkan.RowTemplate.Height = 24;
-            this.DgvTkan.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
-            this.DgvTkan.Size = new System.Drawing.Size(718, 207);
-            this.DgvTkan.TabIndex = 14;
-            // 
-            // Column1
-            // 
-            this.Column1.HeaderText = "Название";
-            this.Column1.MinimumWidth = 6;
-            this.Column1.Name = "Column1";
-            this.Column1.ReadOnly = true;
-            this.Column1.Width = 150;
-            // 
-            // Column2
-            // 
-            this.Column2.HeaderText = "Цвет";
-            this.Column2.MinimumWidth = 6;
-            this.Column2.Name = "Column2";
-            this.Column2.ReadOnly = true;
-            this.Column2.Width = 125;
-            // 
-            // Column3
-            // 
-            this.Column3.HeaderText = "Ширина";
-            this.Column3.MinimumWidth = 6;
-            this.Column3.Name = "Column3";
-            this.Column3.ReadOnly = true;
-            this.Column3.Width = 125;
-            // 
-            // Column4
-            // 
-            this.Column4.HeaderText = "Длина";
-            this.Column4.MinimumWidth = 6;
-            this.Column4.Name = "Column4";
-            this.Column4.ReadOnly = true;
-            this.Column4.Width = 125;
-            // 
-            // Column5
-            // 
-            this.Column5.HeaderText = "Описание";
-            this.Column5.MinimumWidth = 6;
-            this.Column5.Name = "Column5";
-            this.Column5.ReadOnly = true;
-            this.Column5.Width = 200;
-            // 
-            // BtnAddTkan
-            // 
-            this.BtnAddTkan.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(156)))), ((int)(((byte)(26)))));
-            this.BtnAddTkan.Location = new System.Drawing.Point(9, 132);
-            this.BtnAddTkan.Name = "BtnAddTkan";
-            this.BtnAddTkan.Size = new System.Drawing.Size(363, 28);
-            this.BtnAddTkan.TabIndex = 13;
-            this.BtnAddTkan.Text = "Добавить эту ткань в документ";
-            this.BtnAddTkan.UseVisualStyleBackColor = false;
-            // 
-            // BtnClearPhotoTkan
-            // 
-            this.BtnClearPhotoTkan.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(156)))), ((int)(((byte)(26)))));
-            this.BtnClearPhotoTkan.Location = new System.Drawing.Point(567, 63);
-            this.BtnClearPhotoTkan.Name = "BtnClearPhotoTkan";
-            this.BtnClearPhotoTkan.Size = new System.Drawing.Size(160, 28);
-            this.BtnClearPhotoTkan.TabIndex = 12;
-            this.BtnClearPhotoTkan.Text = "Очистить фото";
-            this.BtnClearPhotoTkan.UseVisualStyleBackColor = false;
-            // 
-            // BtnLoadPhotoTkan
-            // 
-            this.BtnLoadPhotoTkan.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(156)))), ((int)(((byte)(26)))));
-            this.BtnLoadPhotoTkan.Location = new System.Drawing.Point(567, 18);
-            this.BtnLoadPhotoTkan.Name = "BtnLoadPhotoTkan";
-            this.BtnLoadPhotoTkan.Size = new System.Drawing.Size(160, 28);
-            this.BtnLoadPhotoTkan.TabIndex = 11;
-            this.BtnLoadPhotoTkan.Text = "Загрузить фото";
-            this.BtnLoadPhotoTkan.UseVisualStyleBackColor = false;
-            // 
-            // PbxPhotoTkan
-            // 
-            this.PbxPhotoTkan.Location = new System.Drawing.Point(397, 15);
-            this.PbxPhotoTkan.Name = "PbxPhotoTkan";
-            this.PbxPhotoTkan.Size = new System.Drawing.Size(154, 145);
-            this.PbxPhotoTkan.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
-            this.PbxPhotoTkan.TabIndex = 10;
-            this.PbxPhotoTkan.TabStop = false;
-            // 
-            // label6
-            // 
-            this.label6.AutoSize = true;
-            this.label6.Location = new System.Drawing.Point(6, 102);
-            this.label6.Name = "label6";
-            this.label6.Size = new System.Drawing.Size(75, 16);
-            this.label6.TabIndex = 9;
-            this.label6.Text = "Описание:";
-            // 
-            // label5
-            // 
-            this.label5.AutoSize = true;
-            this.label5.Location = new System.Drawing.Point(35, 74);
-            this.label5.Name = "label5";
-            this.label5.Size = new System.Drawing.Size(42, 16);
-            this.label5.TabIndex = 8;
-            this.label5.Text = "Цвет:";
-            // 
-            // label4
-            // 
-            this.label4.AutoSize = true;
-            this.label4.Location = new System.Drawing.Point(215, 46);
-            this.label4.Name = "label4";
-            this.label4.Size = new System.Drawing.Size(51, 16);
-            this.label4.TabIndex = 7;
-            this.label4.Text = "Длина:";
-            // 
-            // label3
-            // 
-            this.label3.AutoSize = true;
-            this.label3.Location = new System.Drawing.Point(17, 46);
-            this.label3.Name = "label3";
-            this.label3.Size = new System.Drawing.Size(61, 16);
-            this.label3.TabIndex = 6;
-            this.label3.Text = "Ширина:";
-            // 
-            // label2
-            // 
-            this.label2.AutoSize = true;
-            this.label2.Location = new System.Drawing.Point(4, 18);
-            this.label2.Name = "label2";
-            this.label2.Size = new System.Drawing.Size(76, 16);
-            this.label2.TabIndex = 5;
-            this.label2.Text = "Название:";
-            // 
-            // TbxCommentTkan
-            // 
-            this.TbxCommentTkan.Location = new System.Drawing.Point(86, 99);
-            this.TbxCommentTkan.Name = "TbxCommentTkan";
-            this.TbxCommentTkan.Size = new System.Drawing.Size(286, 22);
-            this.TbxCommentTkan.TabIndex = 4;
-            // 
-            // TbxColorTkan
-            // 
-            this.TbxColorTkan.Location = new System.Drawing.Point(86, 71);
-            this.TbxColorTkan.Name = "TbxColorTkan";
-            this.TbxColorTkan.Size = new System.Drawing.Size(100, 22);
-            this.TbxColorTkan.TabIndex = 3;
-            // 
-            // TbxLengthTkan
-            // 
-            this.TbxLengthTkan.Location = new System.Drawing.Point(272, 43);
-            this.TbxLengthTkan.Name = "TbxLengthTkan";
-            this.TbxLengthTkan.Size = new System.Drawing.Size(100, 22);
-            this.TbxLengthTkan.TabIndex = 2;
-            // 
-            // TbxWithTkan
-            // 
-            this.TbxWithTkan.Location = new System.Drawing.Point(86, 43);
-            this.TbxWithTkan.Name = "TbxWithTkan";
-            this.TbxWithTkan.Size = new System.Drawing.Size(100, 22);
-            this.TbxWithTkan.TabIndex = 1;
-            // 
-            // TbxTitleTkan
-            // 
-            this.TbxTitleTkan.Location = new System.Drawing.Point(86, 15);
-            this.TbxTitleTkan.Name = "TbxTitleTkan";
-            this.TbxTitleTkan.Size = new System.Drawing.Size(286, 22);
-            this.TbxTitleTkan.TabIndex = 0;
+            // commentLabel
+            // 
+            commentLabel.AutoSize = true;
+            commentLabel.Location = new System.Drawing.Point(22, 136);
+            commentLabel.Name = "commentLabel";
+            commentLabel.Size = new System.Drawing.Size(75, 16);
+            commentLabel.TabIndex = 10;
+            commentLabel.Text = "Описание:";
+            // 
+            // TbxComment
+            // 
+            this.TbxComment.Location = new System.Drawing.Point(99, 133);
+            this.TbxComment.Name = "TbxComment";
+            this.TbxComment.Size = new System.Drawing.Size(163, 22);
+            this.TbxComment.TabIndex = 11;
+            // 
+            // widthLabel
+            // 
+            widthLabel.AutoSize = true;
+            widthLabel.Location = new System.Drawing.Point(32, 79);
+            widthLabel.Name = "widthLabel";
+            widthLabel.Size = new System.Drawing.Size(61, 16);
+            widthLabel.TabIndex = 8;
+            widthLabel.Text = "Ширина:";
+            // 
+            // TbxW
+            // 
+            this.TbxW.Location = new System.Drawing.Point(99, 76);
+            this.TbxW.Name = "TbxW";
+            this.TbxW.Size = new System.Drawing.Size(163, 22);
+            this.TbxW.TabIndex = 9;
+            // 
+            // lengthLabel
+            // 
+            lengthLabel.AutoSize = true;
+            lengthLabel.Location = new System.Drawing.Point(42, 46);
+            lengthLabel.Name = "lengthLabel";
+            lengthLabel.Size = new System.Drawing.Size(51, 16);
+            lengthLabel.TabIndex = 6;
+            lengthLabel.Text = "Длина:";
+            // 
+            // TbxL
+            // 
+            this.TbxL.Location = new System.Drawing.Point(99, 43);
+            this.TbxL.Name = "TbxL";
+            this.TbxL.Size = new System.Drawing.Size(163, 22);
+            this.TbxL.TabIndex = 7;
+            // 
+            // id_colorLabel
+            // 
+            id_colorLabel.AutoSize = true;
+            id_colorLabel.Location = new System.Drawing.Point(50, 108);
+            id_colorLabel.Name = "id_colorLabel";
+            id_colorLabel.Size = new System.Drawing.Size(42, 16);
+            id_colorLabel.TabIndex = 4;
+            id_colorLabel.Text = "Цвет:";
+            // 
+            // TbxColor
+            // 
+            this.TbxColor.Location = new System.Drawing.Point(99, 105);
+            this.TbxColor.Name = "TbxColor";
+            this.TbxColor.Size = new System.Drawing.Size(163, 22);
+            this.TbxColor.TabIndex = 5;
+            // 
+            // titleLabel
+            // 
+            titleLabel.AutoSize = true;
+            titleLabel.Location = new System.Drawing.Point(17, 18);
+            titleLabel.Name = "titleLabel";
+            titleLabel.Size = new System.Drawing.Size(76, 16);
+            titleLabel.TabIndex = 2;
+            titleLabel.Text = "Название:";
+            // 
+            // TbxNameTkan
+            // 
+            this.TbxNameTkan.Location = new System.Drawing.Point(99, 15);
+            this.TbxNameTkan.Name = "TbxNameTkan";
+            this.TbxNameTkan.Size = new System.Drawing.Size(163, 22);
+            this.TbxNameTkan.TabIndex = 3;
+            // 
+            // PageFurn
+            // 
+            this.PageFurn.Controls.Add(countfurLabel);
+            this.PageFurn.Controls.Add(this.TbxCountFur);
+            this.PageFurn.Controls.Add(namefurLabel);
+            this.PageFurn.Controls.Add(this.TbxNameFur);
+            this.PageFurn.Location = new System.Drawing.Point(4, 25);
+            this.PageFurn.Margin = new System.Windows.Forms.Padding(2);
+            this.PageFurn.Name = "PageFurn";
+            this.PageFurn.Padding = new System.Windows.Forms.Padding(2);
+            this.PageFurn.Size = new System.Drawing.Size(306, 205);
+            this.PageFurn.TabIndex = 1;
+            this.PageFurn.Text = "Добавить фурнитуру";
+            this.PageFurn.UseVisualStyleBackColor = true;
+            // 
+            // countfurLabel
+            // 
+            countfurLabel.AutoSize = true;
+            countfurLabel.Location = new System.Drawing.Point(57, 18);
+            countfurLabel.Name = "countfurLabel";
+            countfurLabel.Size = new System.Drawing.Size(54, 16);
+            countfurLabel.TabIndex = 2;
+            countfurLabel.Text = "Кол-во:";
+            // 
+            // TbxCountFur
+            // 
+            this.TbxCountFur.Location = new System.Drawing.Point(117, 15);
+            this.TbxCountFur.Name = "TbxCountFur";
+            this.TbxCountFur.Size = new System.Drawing.Size(100, 22);
+            this.TbxCountFur.TabIndex = 3;
+            // 
+            // namefurLabel
+            // 
+            namefurLabel.AutoSize = true;
+            namefurLabel.Location = new System.Drawing.Point(35, 46);
+            namefurLabel.Name = "namefurLabel";
+            namefurLabel.Size = new System.Drawing.Size(76, 16);
+            namefurLabel.TabIndex = 0;
+            namefurLabel.Text = "Название:";
+            // 
+            // TbxNameFur
+            // 
+            this.TbxNameFur.Location = new System.Drawing.Point(117, 43);
+            this.TbxNameFur.Name = "TbxNameFur";
+            this.TbxNameFur.Size = new System.Drawing.Size(100, 22);
+            this.TbxNameFur.TabIndex = 1;
+            // 
+            // сlothesFactoryLGDataSet
+            // 
+            this.сlothesFactoryLGDataSet.DataSetName = "СlothesFactoryLGDataSet";
+            this.сlothesFactoryLGDataSet.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
+            // 
+            // BSTkan
+            // 
+            this.BSTkan.DataMember = "Tkan";
+            this.BSTkan.DataSource = this.сlothesFactoryLGDataSet;
+            // 
+            // tkanTableAdapter
+            // 
+            this.tkanTableAdapter.ClearBeforeFill = true;
+            // 
+            // BSFurnitura
+            // 
+            this.BSFurnitura.DataMember = "Furnitura";
+            this.BSFurnitura.DataSource = this.сlothesFactoryLGDataSet;
+            // 
+            // furnituraTableAdapter
             // 
-            // tabPage2
-            // 
-            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(745, 444);
-            this.tabPage2.TabIndex = 1;
-            this.tabPage2.Text = "Добавить в документ фурнитуру";
-            this.tabPage2.UseVisualStyleBackColor = true;
+            this.furnituraTableAdapter.ClearBeforeFill = true;
             // 
             // FormGetMaterial
             // 
             this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
             this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
-            this.ClientSize = new System.Drawing.Size(772, 615);
-            this.Controls.Add(this.tabControl1);
+            this.ClientSize = new System.Drawing.Size(538, 384);
+            this.Controls.Add(this.BtnSave);
+            this.Controls.Add(this.BtnCancel);
+            this.Controls.Add(this.PageTkan);
             this.Controls.Add(this.panel1);
             this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
             this.Name = "FormGetMaterial";
             this.Text = "СУБД \"Швейная фабрика\"";
+            this.Load += new System.EventHandler(this.FormGetMaterial_Load);
             this.panel1.ResumeLayout(false);
             this.panel1.PerformLayout();
             ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
-            this.tabControl1.ResumeLayout(false);
+            this.PageTkan.ResumeLayout(false);
             this.tabPage1.ResumeLayout(false);
             this.tabPage1.PerformLayout();
-            ((System.ComponentModel.ISupportInitialize)(this.DgvTkan)).EndInit();
-            ((System.ComponentModel.ISupportInitialize)(this.PbxPhotoTkan)).EndInit();
+            this.PageFurn.ResumeLayout(false);
+            this.PageFurn.PerformLayout();
+            ((System.ComponentModel.ISupportInitialize)(this.сlothesFactoryLGDataSet)).EndInit();
+            ((System.ComponentModel.ISupportInitialize)(this.BSTkan)).EndInit();
+            ((System.ComponentModel.ISupportInitialize)(this.BSFurnitura)).EndInit();
             this.ResumeLayout(false);
 
         }
@@ -359,29 +345,22 @@
         private System.Windows.Forms.Panel panel1;
         private System.Windows.Forms.Label label1;
         private System.Windows.Forms.PictureBox pictureBox1;
-        private System.Windows.Forms.TabControl tabControl1;
+        private System.Windows.Forms.Button BtnSave;
+        private System.Windows.Forms.Button BtnCancel;
+        private System.Windows.Forms.TabControl PageTkan;
         private System.Windows.Forms.TabPage tabPage1;
-        private System.Windows.Forms.Button BtnDelTkan;
-        private System.Windows.Forms.DataGridView DgvTkan;
-        private System.Windows.Forms.DataGridViewTextBoxColumn Column1;
-        private System.Windows.Forms.DataGridViewTextBoxColumn Column2;
-        private System.Windows.Forms.DataGridViewTextBoxColumn Column3;
-        private System.Windows.Forms.DataGridViewTextBoxColumn Column4;
-        private System.Windows.Forms.DataGridViewTextBoxColumn Column5;
-        private System.Windows.Forms.Button BtnAddTkan;
-        private System.Windows.Forms.Button BtnClearPhotoTkan;
-        private System.Windows.Forms.Button BtnLoadPhotoTkan;
-        private System.Windows.Forms.PictureBox PbxPhotoTkan;
-        private System.Windows.Forms.Label label6;
-        private System.Windows.Forms.Label label5;
-        private System.Windows.Forms.Label label4;
-        private System.Windows.Forms.Label label3;
-        private System.Windows.Forms.Label label2;
-        private System.Windows.Forms.TextBox TbxCommentTkan;
-        private System.Windows.Forms.TextBox TbxColorTkan;
-        private System.Windows.Forms.TextBox TbxLengthTkan;
-        private System.Windows.Forms.TextBox TbxWithTkan;
-        private System.Windows.Forms.TextBox TbxTitleTkan;
-        private System.Windows.Forms.TabPage tabPage2;
+        private System.Windows.Forms.TextBox TbxComment;
+        private System.Windows.Forms.TextBox TbxW;
+        private System.Windows.Forms.TextBox TbxL;
+        private System.Windows.Forms.TextBox TbxColor;
+        private System.Windows.Forms.TextBox TbxNameTkan;
+        private System.Windows.Forms.TabPage PageFurn;
+        private System.Windows.Forms.TextBox TbxCountFur;
+        private System.Windows.Forms.TextBox TbxNameFur;
+        private СlothesFactoryLGDataSet сlothesFactoryLGDataSet;
+        private System.Windows.Forms.BindingSource BSTkan;
+        private СlothesFactoryLGDataSetTableAdapters.TkanTableAdapter tkanTableAdapter;
+        private System.Windows.Forms.BindingSource BSFurnitura;
+        private СlothesFactoryLGDataSetTableAdapters.FurnituraTableAdapter furnituraTableAdapter;
     }
 }

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

@@ -1,7 +1,9 @@
-using System;
+using Microsoft.Office.Interop.Excel;
+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;
@@ -16,5 +18,51 @@ 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");
+        private void FormGetMaterial_Load(object sender, EventArgs e)
+        {
+            // TODO: данная строка кода позволяет загрузить данные в таблицу "сlothesFactoryLGDataSet.Furnitura". При необходимости она может быть перемещена или удалена.
+            this.furnituraTableAdapter.Fill(this.сlothesFactoryLGDataSet.Furnitura);
+            // TODO: данная строка кода позволяет загрузить данные в таблицу "сlothesFactoryLGDataSet.Tkan". При необходимости она может быть перемещена или удалена.
+            this.tkanTableAdapter.Fill(this.сlothesFactoryLGDataSet.Tkan);
+
+        }
+
+        private void TbxL_TextChanged(object sender, KeyPressEventArgs e)
+        {
+            if (!char.IsDigit(e.KeyChar))
+                e.Handled = true;
+            if ((Keys)e.KeyChar == Keys.Back || (Keys)e.KeyChar == Keys.Delete)
+                e.Handled = false;
+        }
+
+        private void BtnSave_Click(object sender, EventArgs e)
+        {
+            if (TbxNameTkan.Text.Trim() != "" && TbxColor.Text.Trim() != "" && TbxComment.Text.Trim() != "" && TbxL.Text.Trim() != "" && TbxW.Text.Trim() != "")
+            {
+                string Queri = $@"Insert Into Color
+            values ('{TbxColor.Text}')";
+                con.Open();
+                SqlCommand cmd = new SqlCommand(Queri, con);
+                cmd.ExecuteNonQuery();
+                con.Close();
+                Queri = $"Select id_colors From Color where Title = '{TbxColor.Text}'";
+                con.Open();
+                cmd = new SqlCommand(Queri, con);
+                SqlDataReader Rez = cmd.ExecuteReader();
+                Rez.Read();
+                ((DataRowView)BSTkan.Current)["id_color"] = Rez["id_colors"];
+                con.Close();
+                BSTkan.EndEdit();
+                this.tkanTableAdapter.Update(this.сlothesFactoryLGDataSet.Tkan);
+            }
+            if (TbxNameFur.Text.Trim() != "" && TbxCountFur.Text.Trim() != "")
+            {
+                BSFurnitura.EndEdit();
+                this.furnituraTableAdapter.Update(this.сlothesFactoryLGDataSet.Furnitura);
+            }
+            this.DialogResult = DialogResult.OK;
+            this.Close();
+        }
     }
 }

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

@@ -117,20 +117,41 @@
   <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 name="commentLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>False</value>
   </metadata>
-  <metadata name="Column2.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>True</value>
+  <metadata name="widthLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>False</value>
   </metadata>
-  <metadata name="Column3.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>True</value>
+  <metadata name="lengthLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>False</value>
   </metadata>
-  <metadata name="Column4.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>True</value>
+  <metadata name="id_colorLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>False</value>
   </metadata>
-  <metadata name="Column5.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>True</value>
+  <metadata name="titleLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>False</value>
+  </metadata>
+  <metadata name="countfurLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>False</value>
+  </metadata>
+  <metadata name="namefurLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>False</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="BSTkan.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+    <value>243, 17</value>
+  </metadata>
+  <metadata name="tkanTableAdapter.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+    <value>347, 18</value>
+  </metadata>
+  <metadata name="BSFurnitura.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+    <value>525, 18</value>
+  </metadata>
+  <metadata name="furnituraTableAdapter.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+    <value>674, 19</value>
   </metadata>
   <assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
   <data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">

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

@@ -33,38 +33,43 @@
             this.panel1 = new System.Windows.Forms.Panel();
             this.label1 = new System.Windows.Forms.Label();
             this.pictureBox1 = new System.Windows.Forms.PictureBox();
+            this.FamLabel = new System.Windows.Forms.Label();
+            this.BsUsers = new System.Windows.Forms.BindingSource(this.components);
+            this.сlothesFactoryLGDataSet = new Швейная_фабрика.СlothesFactoryLGDataSet();
+            this.OtchLabel = new System.Windows.Forms.Label();
+            this.NameLabel = new System.Windows.Forms.Label();
             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.TlpTkani = new System.Windows.Forms.TableLayoutPanel();
-            this.tabPage2 = new System.Windows.Forms.TabPage();
-            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();
+            this.label3 = new System.Windows.Forms.Label();
+            this.label2 = new System.Windows.Forms.Label();
+            this.DgvTkani = new System.Windows.Forms.DataGridView();
+            this.idTkanDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.titleDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.lengthDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.widthDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.commentDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.namePhotoDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.colorDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.allTkanBindingSource = new System.Windows.Forms.BindingSource(this.components);
+            this.DgvFurnitura = new System.Windows.Forms.DataGridView();
+            this.idfurDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.namefurDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.photoDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.countfurDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.furnituraBindingSource = new System.Windows.Forms.BindingSource(this.components);
+            this.furnituraTableAdapter = new Швейная_фабрика.СlothesFactoryLGDataSetTableAdapters.FurnituraTableAdapter();
+            this.allTkanTableAdapter = new Швейная_фабрика.СlothesFactoryLGDataSetTableAdapters.AllTkanTableAdapter();
+            this.tableAdapterManager = new Швейная_фабрика.СlothesFactoryLGDataSetTableAdapters.TableAdapterManager();
             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();
+            ((System.ComponentModel.ISupportInitialize)(this.сlothesFactoryLGDataSet)).BeginInit();
+            ((System.ComponentModel.ISupportInitialize)(this.DgvTkani)).BeginInit();
+            ((System.ComponentModel.ISupportInitialize)(this.allTkanBindingSource)).BeginInit();
+            ((System.ComponentModel.ISupportInitialize)(this.DgvFurnitura)).BeginInit();
+            ((System.ComponentModel.ISupportInitialize)(this.furnituraBindingSource)).BeginInit();
             this.SuspendLayout();
             // 
             // panel1
@@ -78,7 +83,7 @@
             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(779, 130);
+            this.panel1.Size = new System.Drawing.Size(957, 130);
             this.panel1.TabIndex = 2;
             // 
             // label1
@@ -102,11 +107,48 @@
             this.pictureBox1.TabIndex = 0;
             this.pictureBox1.TabStop = false;
             // 
+            // 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";
+            // 
+            // BsUsers
+            // 
+            this.BsUsers.DataMember = "Users";
+            this.BsUsers.DataSource = this.сlothesFactoryLGDataSet;
+            // 
+            // сlothesFactoryLGDataSet
+            // 
+            this.сlothesFactoryLGDataSet.DataSetName = "СlothesFactoryLGDataSet";
+            this.сlothesFactoryLGDataSet.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
+            // 
+            // 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";
+            // 
             // 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.Location = new System.Drawing.Point(732, 405);
             this.BtnSpisMaterial.Name = "BtnSpisMaterial";
             this.BtnSpisMaterial.Size = new System.Drawing.Size(206, 28);
             this.BtnSpisMaterial.TabIndex = 18;
@@ -118,7 +160,7 @@
             // 
             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.Location = new System.Drawing.Point(520, 405);
             this.BtnGetMaterial.Name = "BtnGetMaterial";
             this.BtnGetMaterial.Size = new System.Drawing.Size(206, 28);
             this.BtnGetMaterial.TabIndex = 17;
@@ -130,7 +172,7 @@
             // 
             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.Location = new System.Drawing.Point(308, 405);
             this.BtnProfile.Name = "BtnProfile";
             this.BtnProfile.Size = new System.Drawing.Size(206, 28);
             this.BtnProfile.TabIndex = 16;
@@ -138,214 +180,211 @@
             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(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;
-            // 
-            // 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(734, 229);
-            this.TlpTkani.TabIndex = 0;
-            // 
-            // tabPage2
-            // 
-            this.tabPage2.Controls.Add(this.TlpFurnitura);
-            this.tabPage2.Location = new System.Drawing.Point(4, 25);
-            this.tabPage2.Name = "tabPage2";
-            this.tabPage2.Padding = new System.Windows.Forms.Padding(3);
-            this.tabPage2.Size = new System.Drawing.Size(747, 242);
-            this.tabPage2.TabIndex = 1;
-            this.tabPage2.Text = "Фурнитура";
-            this.tabPage2.UseVisualStyleBackColor = true;
-            // 
-            // TlpFurnitura
-            // 
-            this.TlpFurnitura.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
-            | System.Windows.Forms.AnchorStyles.Left) 
-            | 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(735, 230);
-            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;
+            // label3
+            // 
+            this.label3.AutoSize = true;
+            this.label3.Location = new System.Drawing.Point(381, 141);
+            this.label3.Name = "label3";
+            this.label3.Size = new System.Drawing.Size(50, 16);
+            this.label3.TabIndex = 25;
+            this.label3.Text = "Ткани:";
+            // 
+            // label2
+            // 
+            this.label2.AutoSize = true;
+            this.label2.Location = new System.Drawing.Point(7, 141);
+            this.label2.Name = "label2";
+            this.label2.Size = new System.Drawing.Size(84, 16);
+            this.label2.TabIndex = 24;
+            this.label2.Text = "Фурнитура:";
+            // 
+            // DgvTkani
+            // 
+            this.DgvTkani.AllowUserToAddRows = false;
+            this.DgvTkani.AllowUserToDeleteRows = false;
+            this.DgvTkani.AutoGenerateColumns = false;
+            this.DgvTkani.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
+            this.DgvTkani.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
+            this.idTkanDataGridViewTextBoxColumn,
+            this.titleDataGridViewTextBoxColumn,
+            this.lengthDataGridViewTextBoxColumn,
+            this.widthDataGridViewTextBoxColumn,
+            this.commentDataGridViewTextBoxColumn,
+            this.namePhotoDataGridViewTextBoxColumn,
+            this.colorDataGridViewTextBoxColumn});
+            this.DgvTkani.DataSource = this.allTkanBindingSource;
+            this.DgvTkani.Location = new System.Drawing.Point(385, 164);
+            this.DgvTkani.Name = "DgvTkani";
+            this.DgvTkani.ReadOnly = true;
+            this.DgvTkani.RowHeadersWidth = 51;
+            this.DgvTkani.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
+            this.DgvTkani.Size = new System.Drawing.Size(546, 220);
+            this.DgvTkani.TabIndex = 22;
+            // 
+            // idTkanDataGridViewTextBoxColumn
+            // 
+            this.idTkanDataGridViewTextBoxColumn.DataPropertyName = "id_Tkan";
+            this.idTkanDataGridViewTextBoxColumn.HeaderText = "id_Tkan";
+            this.idTkanDataGridViewTextBoxColumn.MinimumWidth = 6;
+            this.idTkanDataGridViewTextBoxColumn.Name = "idTkanDataGridViewTextBoxColumn";
+            this.idTkanDataGridViewTextBoxColumn.ReadOnly = true;
+            this.idTkanDataGridViewTextBoxColumn.Width = 125;
+            // 
+            // titleDataGridViewTextBoxColumn
+            // 
+            this.titleDataGridViewTextBoxColumn.DataPropertyName = "Title";
+            this.titleDataGridViewTextBoxColumn.HeaderText = "Title";
+            this.titleDataGridViewTextBoxColumn.MinimumWidth = 6;
+            this.titleDataGridViewTextBoxColumn.Name = "titleDataGridViewTextBoxColumn";
+            this.titleDataGridViewTextBoxColumn.ReadOnly = true;
+            this.titleDataGridViewTextBoxColumn.Width = 125;
+            // 
+            // lengthDataGridViewTextBoxColumn
+            // 
+            this.lengthDataGridViewTextBoxColumn.DataPropertyName = "Length";
+            this.lengthDataGridViewTextBoxColumn.HeaderText = "Length";
+            this.lengthDataGridViewTextBoxColumn.MinimumWidth = 6;
+            this.lengthDataGridViewTextBoxColumn.Name = "lengthDataGridViewTextBoxColumn";
+            this.lengthDataGridViewTextBoxColumn.ReadOnly = true;
+            this.lengthDataGridViewTextBoxColumn.Width = 125;
+            // 
+            // widthDataGridViewTextBoxColumn
+            // 
+            this.widthDataGridViewTextBoxColumn.DataPropertyName = "Width";
+            this.widthDataGridViewTextBoxColumn.HeaderText = "Width";
+            this.widthDataGridViewTextBoxColumn.MinimumWidth = 6;
+            this.widthDataGridViewTextBoxColumn.Name = "widthDataGridViewTextBoxColumn";
+            this.widthDataGridViewTextBoxColumn.ReadOnly = true;
+            this.widthDataGridViewTextBoxColumn.Width = 125;
+            // 
+            // commentDataGridViewTextBoxColumn
+            // 
+            this.commentDataGridViewTextBoxColumn.DataPropertyName = "Comment";
+            this.commentDataGridViewTextBoxColumn.HeaderText = "Comment";
+            this.commentDataGridViewTextBoxColumn.MinimumWidth = 6;
+            this.commentDataGridViewTextBoxColumn.Name = "commentDataGridViewTextBoxColumn";
+            this.commentDataGridViewTextBoxColumn.ReadOnly = true;
+            this.commentDataGridViewTextBoxColumn.Width = 125;
+            // 
+            // namePhotoDataGridViewTextBoxColumn
+            // 
+            this.namePhotoDataGridViewTextBoxColumn.DataPropertyName = "NamePhoto";
+            this.namePhotoDataGridViewTextBoxColumn.HeaderText = "NamePhoto";
+            this.namePhotoDataGridViewTextBoxColumn.MinimumWidth = 6;
+            this.namePhotoDataGridViewTextBoxColumn.Name = "namePhotoDataGridViewTextBoxColumn";
+            this.namePhotoDataGridViewTextBoxColumn.ReadOnly = true;
+            this.namePhotoDataGridViewTextBoxColumn.Width = 125;
+            // 
+            // colorDataGridViewTextBoxColumn
+            // 
+            this.colorDataGridViewTextBoxColumn.DataPropertyName = "Color";
+            this.colorDataGridViewTextBoxColumn.HeaderText = "Color";
+            this.colorDataGridViewTextBoxColumn.MinimumWidth = 6;
+            this.colorDataGridViewTextBoxColumn.Name = "colorDataGridViewTextBoxColumn";
+            this.colorDataGridViewTextBoxColumn.ReadOnly = true;
+            this.colorDataGridViewTextBoxColumn.Width = 125;
+            // 
+            // allTkanBindingSource
+            // 
+            this.allTkanBindingSource.DataMember = "AllTkan";
+            this.allTkanBindingSource.DataSource = this.сlothesFactoryLGDataSet;
+            // 
+            // DgvFurnitura
+            // 
+            this.DgvFurnitura.AllowUserToAddRows = false;
+            this.DgvFurnitura.AllowUserToDeleteRows = false;
+            this.DgvFurnitura.AutoGenerateColumns = false;
+            this.DgvFurnitura.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
+            this.DgvFurnitura.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
+            this.idfurDataGridViewTextBoxColumn,
+            this.namefurDataGridViewTextBoxColumn,
+            this.photoDataGridViewTextBoxColumn,
+            this.countfurDataGridViewTextBoxColumn});
+            this.DgvFurnitura.DataSource = this.furnituraBindingSource;
+            this.DgvFurnitura.Location = new System.Drawing.Point(11, 164);
+            this.DgvFurnitura.Name = "DgvFurnitura";
+            this.DgvFurnitura.ReadOnly = true;
+            this.DgvFurnitura.RowHeadersWidth = 51;
+            this.DgvFurnitura.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
+            this.DgvFurnitura.Size = new System.Drawing.Size(320, 220);
+            this.DgvFurnitura.TabIndex = 23;
+            // 
+            // idfurDataGridViewTextBoxColumn
+            // 
+            this.idfurDataGridViewTextBoxColumn.DataPropertyName = "id_fur";
+            this.idfurDataGridViewTextBoxColumn.HeaderText = "id_fur";
+            this.idfurDataGridViewTextBoxColumn.MinimumWidth = 6;
+            this.idfurDataGridViewTextBoxColumn.Name = "idfurDataGridViewTextBoxColumn";
+            this.idfurDataGridViewTextBoxColumn.ReadOnly = true;
+            this.idfurDataGridViewTextBoxColumn.Visible = false;
+            this.idfurDataGridViewTextBoxColumn.Width = 125;
+            // 
+            // namefurDataGridViewTextBoxColumn
+            // 
+            this.namefurDataGridViewTextBoxColumn.DataPropertyName = "namefur";
+            this.namefurDataGridViewTextBoxColumn.HeaderText = "Название";
+            this.namefurDataGridViewTextBoxColumn.MinimumWidth = 6;
+            this.namefurDataGridViewTextBoxColumn.Name = "namefurDataGridViewTextBoxColumn";
+            this.namefurDataGridViewTextBoxColumn.ReadOnly = true;
+            this.namefurDataGridViewTextBoxColumn.Width = 125;
+            // 
+            // photoDataGridViewTextBoxColumn
+            // 
+            this.photoDataGridViewTextBoxColumn.DataPropertyName = "photo";
+            this.photoDataGridViewTextBoxColumn.HeaderText = "Фото";
+            this.photoDataGridViewTextBoxColumn.MinimumWidth = 6;
+            this.photoDataGridViewTextBoxColumn.Name = "photoDataGridViewTextBoxColumn";
+            this.photoDataGridViewTextBoxColumn.ReadOnly = true;
+            this.photoDataGridViewTextBoxColumn.Visible = false;
+            this.photoDataGridViewTextBoxColumn.Width = 125;
+            // 
+            // countfurDataGridViewTextBoxColumn
+            // 
+            this.countfurDataGridViewTextBoxColumn.DataPropertyName = "countfur";
+            this.countfurDataGridViewTextBoxColumn.HeaderText = "Кол-во";
+            this.countfurDataGridViewTextBoxColumn.MinimumWidth = 6;
+            this.countfurDataGridViewTextBoxColumn.Name = "countfurDataGridViewTextBoxColumn";
+            this.countfurDataGridViewTextBoxColumn.ReadOnly = true;
+            this.countfurDataGridViewTextBoxColumn.Width = 125;
+            // 
+            // furnituraBindingSource
+            // 
+            this.furnituraBindingSource.DataMember = "Furnitura";
+            this.furnituraBindingSource.DataSource = this.сlothesFactoryLGDataSet;
+            // 
+            // furnituraTableAdapter
+            // 
+            this.furnituraTableAdapter.ClearBeforeFill = true;
+            // 
+            // allTkanTableAdapter
+            // 
+            this.allTkanTableAdapter.ClearBeforeFill = true;
+            // 
+            // tableAdapterManager
+            // 
+            this.tableAdapterManager.BackupDataSetBeforeUpdate = false;
+            this.tableAdapterManager.ColorTableAdapter = null;
+            this.tableAdapterManager.FurnituraTableAdapter = this.furnituraTableAdapter;
+            this.tableAdapterManager.IzdelieTableAdapter = null;
+            this.tableAdapterManager.OrdersTableAdapter = null;
+            this.tableAdapterManager.RolesTableAdapter = null;
+            this.tableAdapterManager.TkanTableAdapter = null;
+            this.tableAdapterManager.UpdateOrder = Швейная_фабрика.СlothesFactoryLGDataSetTableAdapters.TableAdapterManager.UpdateOrderOption.InsertUpdateDelete;
+            this.tableAdapterManager.UsersTableAdapter = this.usersTableAdapter;
             // 
             // FormKladovschik
             // 
             this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
             this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
-            this.ClientSize = new System.Drawing.Size(779, 453);
-            this.Controls.Add(this.tabControl1);
+            this.ClientSize = new System.Drawing.Size(957, 445);
+            this.Controls.Add(this.label3);
+            this.Controls.Add(this.label2);
+            this.Controls.Add(this.DgvTkani);
+            this.Controls.Add(this.DgvFurnitura);
             this.Controls.Add(this.BtnSpisMaterial);
             this.Controls.Add(this.BtnGetMaterial);
             this.Controls.Add(this.BtnProfile);
@@ -358,14 +397,14 @@
             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.tabPage2.ResumeLayout(false);
-            ((System.ComponentModel.ISupportInitialize)(this.DgvOrders)).EndInit();
+            ((System.ComponentModel.ISupportInitialize)(this.сlothesFactoryLGDataSet)).EndInit();
+            ((System.ComponentModel.ISupportInitialize)(this.DgvTkani)).EndInit();
+            ((System.ComponentModel.ISupportInitialize)(this.allTkanBindingSource)).EndInit();
+            ((System.ComponentModel.ISupportInitialize)(this.DgvFurnitura)).EndInit();
+            ((System.ComponentModel.ISupportInitialize)(this.furnituraBindingSource)).EndInit();
             this.ResumeLayout(false);
+            this.PerformLayout();
 
         }
 
@@ -382,20 +421,26 @@
         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.TableLayoutPanel TlpTkani;
-        private System.Windows.Forms.TabPage tabPage2;
-        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;
+        private System.Windows.Forms.Label label3;
+        private System.Windows.Forms.Label label2;
+        private System.Windows.Forms.DataGridView DgvTkani;
+        private System.Windows.Forms.DataGridView DgvFurnitura;
+        private System.Windows.Forms.BindingSource furnituraBindingSource;
+        private СlothesFactoryLGDataSetTableAdapters.FurnituraTableAdapter furnituraTableAdapter;
+        private System.Windows.Forms.DataGridViewTextBoxColumn idfurDataGridViewTextBoxColumn;
+        private System.Windows.Forms.DataGridViewTextBoxColumn namefurDataGridViewTextBoxColumn;
+        private System.Windows.Forms.DataGridViewTextBoxColumn photoDataGridViewTextBoxColumn;
+        private System.Windows.Forms.DataGridViewTextBoxColumn countfurDataGridViewTextBoxColumn;
+        private System.Windows.Forms.BindingSource allTkanBindingSource;
+        private СlothesFactoryLGDataSetTableAdapters.AllTkanTableAdapter allTkanTableAdapter;
+        private СlothesFactoryLGDataSetTableAdapters.TableAdapterManager tableAdapterManager;
+        private System.Windows.Forms.DataGridViewTextBoxColumn idTkanDataGridViewTextBoxColumn;
+        private System.Windows.Forms.DataGridViewTextBoxColumn titleDataGridViewTextBoxColumn;
+        private System.Windows.Forms.DataGridViewTextBoxColumn lengthDataGridViewTextBoxColumn;
+        private System.Windows.Forms.DataGridViewTextBoxColumn widthDataGridViewTextBoxColumn;
+        private System.Windows.Forms.DataGridViewTextBoxColumn commentDataGridViewTextBoxColumn;
+        private System.Windows.Forms.DataGridViewTextBoxColumn namePhotoDataGridViewTextBoxColumn;
+        private System.Windows.Forms.DataGridViewTextBoxColumn colorDataGridViewTextBoxColumn;
     }
 }

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

@@ -8,6 +8,7 @@ using System.Linq;
 using System.Text;
 using System.Threading.Tasks;
 using System.Windows.Forms;
+using Excel = Microsoft.Office.Interop.Excel;
 
 namespace Швейная_фабрика
 {
@@ -17,333 +18,62 @@ 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
+        private void FormKladovschik_Load(object sender, EventArgs e)
         {
-            public string Title, CountFur, Image, ID;
+            // TODO: This line of code loads data into the 'sewing_factoryDataSet.AllTkani' table. You can move, or remove it, as needed.
+            this.allTkanTableAdapter.Fill(this.сlothesFactoryLGDataSet.AllTkan);
+            // TODO: This line of code loads data into the 'sewing_factoryDataSet.Furnitura' table. You can move, or remove it, as needed.
+            this.furnituraTableAdapter.Fill(this.сlothesFactoryLGDataSet.Furnitura);
+            // TODO: данная строка кода позволяет загрузить данные в таблицу "sewing_factoryDataSet.Users". При необходимости она может быть перемещена или удалена.
+            this.usersTableAdapter.Fill(this.сlothesFactoryLGDataSet.Users);
         }
-        List<Tkani> LstTkani = new List<Tkani>();
-        ItemTkani CurrentTkan;
-        List<Furnitura> LstFurnitura = new List<Furnitura>();
-        ItemFurnitura CurrentFurnitura;
-
-        void GetDateFromDBForTkani()
+        private void BtnGetMaterial_Click(object sender, EventArgs e)
         {
-            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())
+            FormGetMaterial frm = new FormGetMaterial();
+            if (frm.ShowDialog() == DialogResult.OK)
             {
-                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);
+                MessageBox.Show("Материал добавлен.", "Внимание!", MessageBoxButtons.OK, MessageBoxIcon.Information);
+                this.allTkanTableAdapter.Fill(this.сlothesFactoryLGDataSet.AllTkan);
+                this.furnituraTableAdapter.Fill(this.сlothesFactoryLGDataSet.Furnitura);
             }
-            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()
+        private void BtnSpisMaterial_Click(object sender, EventArgs e)
         {
-            //очистить панель от старых данных
-            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);
-            }
-        }
+            Excel.Application exapp = new Excel.Application();
+            exapp.Visible = true;
+            exapp.Workbooks.Open(Application.StartupPath + "\\Списание.xlsx", Type.Missing, true);
+            Excel.Worksheet list1 = (exapp.Worksheets.get_Item(1));
 
-        void FillPanelForTkani()
-        {
-            //очистить панель от старых данных
-            TlpTkani.Controls.Clear();
-            //перебор записей о товарах
-            for (int i = 0; i <= LstTkani.Count - 1; i++)
+            int RowExcel = 24;
+            list1.get_Range("H" + RowExcel).Value = "Название";
+            list1.get_Range("I" + RowExcel).Value = "Цвет";
+            list1.get_Range("J" + RowExcel).Value = "Длина";
+            list1.get_Range("K" + RowExcel).Value = "Ширина";
+            list1.get_Range("L" + RowExcel).Value = "Описание";
+            RowExcel++;
+            for (int i = 0; i < DgvTkani.SelectedRows.Count; 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);
+                list1.get_Range("A" + RowExcel).Value = "Ткань";
+                list1.get_Range("H" + RowExcel).Value = DgvTkani.Rows[i].Cells[0].Value;
+                list1.get_Range("I" + RowExcel).Value = DgvTkani.Rows[i].Cells[1].Value;
+                list1.get_Range("J" + RowExcel).Value = DgvTkani.Rows[i].Cells[2].Value;
+                list1.get_Range("K" + RowExcel).Value = DgvTkani.Rows[i].Cells[3].Value;
+                list1.get_Range("L" + RowExcel).Value = DgvTkani.Rows[i].Cells[4].Value;
+                RowExcel++;
             }
-        }
-        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())
+            RowExcel++;
+            list1.get_Range("H" + RowExcel).Value = "Название";
+            list1.get_Range("I" + RowExcel).Value = "Кол-во";
+            RowExcel++;
+            for (int i = 0; i < DgvFurnitura.SelectedRows.Count; i++)
             {
-                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++;
+                list1.get_Range("A" + RowExcel).Value = "Фурнитура";
+                list1.get_Range("H" + RowExcel).Value = DgvFurnitura.Rows[i].Cells[0].Value;
+                list1.get_Range("I" + RowExcel).Value = DgvFurnitura.Rows[i].Cells[1].Value;
+                list1.get_Range("J" + RowExcel).Value = "шт";
+                RowExcel++;
             }
-            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)
-        {
-            FormGetMaterial frm = new FormGetMaterial();
-            frm.ShowDialog();
-        }
-
-        private void BtnSpisMaterial_Click(object sender, EventArgs e)
-        {
-            FormSpisMaterial frm = new FormSpisMaterial();
-            frm.ShowDialog();
         }
 
         private void BtnProfile_Click(object sender, EventArgs e)

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

@@ -126,26 +126,20 @@
   <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 name="allTkanBindingSource.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+    <value>949, 17</value>
   </metadata>
-  <metadata name="Meneger.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>True</value>
+  <metadata name="furnituraBindingSource.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+    <value>528, 17</value>
   </metadata>
-  <metadata name="Zakazchik.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>True</value>
+  <metadata name="furnituraTableAdapter.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+    <value>742, 17</value>
   </metadata>
-  <metadata name="Tkan.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>True</value>
+  <metadata name="allTkanTableAdapter.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+    <value>17, 60</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 name="tableAdapterManager.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+    <value>213, 60</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">

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

@@ -30,8 +30,8 @@
         {
             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.pictureBox1 = new System.Windows.Forms.PictureBox();
             this.DgvTkani = new System.Windows.Forms.DataGridView();
             this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.BtnShowAll = new System.Windows.Forms.Button();
@@ -51,9 +51,18 @@
             this.panel1.Dock = System.Windows.Forms.DockStyle.Top;
             this.panel1.Location = new System.Drawing.Point(0, 0);
             this.panel1.Name = "panel1";
-            this.panel1.Size = new System.Drawing.Size(499, 130);
+            this.panel1.Size = new System.Drawing.Size(485, 130);
             this.panel1.TabIndex = 5;
             // 
+            // 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 = "Нечеткий поиск по названиям тканей";
+            // 
             // pictureBox1
             // 
             this.pictureBox1.Dock = System.Windows.Forms.DockStyle.Left;
@@ -65,24 +74,12 @@
             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});
@@ -93,7 +90,7 @@
             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.Size = new System.Drawing.Size(255, 389);
             this.DgvTkani.TabIndex = 20;
             // 
             // Column1
@@ -106,10 +103,8 @@
             // 
             // 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.Location = new System.Drawing.Point(282, 187);
             this.BtnShowAll.Name = "BtnShowAll";
             this.BtnShowAll.Size = new System.Drawing.Size(191, 28);
             this.BtnShowAll.TabIndex = 19;
@@ -119,10 +114,8 @@
             // 
             // 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.Location = new System.Drawing.Point(282, 221);
             this.BtnFind.Name = "BtnFind";
             this.BtnFind.Size = new System.Drawing.Size(191, 28);
             this.BtnFind.TabIndex = 18;
@@ -132,10 +125,8 @@
             // 
             // 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.Location = new System.Drawing.Point(282, 136);
             this.label2.Name = "label2";
             this.label2.Size = new System.Drawing.Size(198, 16);
             this.label2.TabIndex = 17;
@@ -143,9 +134,7 @@
             // 
             // 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.Location = new System.Drawing.Point(282, 159);
             this.TbxFind.Name = "TbxFind";
             this.TbxFind.Size = new System.Drawing.Size(191, 22);
             this.TbxFind.TabIndex = 16;
@@ -154,7 +143,7 @@
             // 
             this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
             this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
-            this.ClientSize = new System.Drawing.Size(499, 543);
+            this.ClientSize = new System.Drawing.Size(485, 541);
             this.Controls.Add(this.DgvTkani);
             this.Controls.Add(this.BtnShowAll);
             this.Controls.Add(this.BtnFind);

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

@@ -31,6 +31,9 @@
             this.components = new System.ComponentModel.Container();
             System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormMain));
             this.panel1 = new System.Windows.Forms.Panel();
+            this.LblIdUser = new System.Windows.Forms.Label();
+            this.BsUsers = new System.Windows.Forms.BindingSource(this.components);
+            this.сlothesFactoryLGDataSet = new Швейная_фабрика.СlothesFactoryLGDataSet();
             this.label1 = new System.Windows.Forms.Label();
             this.pictureBox1 = new System.Windows.Forms.PictureBox();
             this.label6 = new System.Windows.Forms.Label();
@@ -46,14 +49,11 @@
             this.LblCapcha = new System.Windows.Forms.Label();
             this.LblReg = new System.Windows.Forms.Label();
             this.BtnLogin = new System.Windows.Forms.Button();
-            this.сlothesFactoryLGDataSet = new Швейная_фабрика.СlothesFactoryLGDataSet();
-            this.BsUsers = new System.Windows.Forms.BindingSource(this.components);
             this.usersTableAdapter = new Швейная_фабрика.СlothesFactoryLGDataSetTableAdapters.UsersTableAdapter();
-            this.LblIdUser = new System.Windows.Forms.Label();
             this.panel1.SuspendLayout();
-            ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
-            ((System.ComponentModel.ISupportInitialize)(this.сlothesFactoryLGDataSet)).BeginInit();
             ((System.ComponentModel.ISupportInitialize)(this.BsUsers)).BeginInit();
+            ((System.ComponentModel.ISupportInitialize)(this.сlothesFactoryLGDataSet)).BeginInit();
+            ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
             this.SuspendLayout();
             // 
             // panel1
@@ -65,9 +65,29 @@
             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(400, 130);
+            this.panel1.Size = new System.Drawing.Size(389, 130);
             this.panel1.TabIndex = 1;
             // 
+            // LblIdUser
+            // 
+            this.LblIdUser.AutoSize = true;
+            this.LblIdUser.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.BsUsers, "id_User", true));
+            this.LblIdUser.Location = new System.Drawing.Point(139, 104);
+            this.LblIdUser.Name = "LblIdUser";
+            this.LblIdUser.Size = new System.Drawing.Size(47, 16);
+            this.LblIdUser.TabIndex = 20;
+            this.LblIdUser.Text = "IdUser";
+            // 
+            // BsUsers
+            // 
+            this.BsUsers.DataMember = "Users";
+            this.BsUsers.DataSource = this.сlothesFactoryLGDataSet;
+            // 
+            // сlothesFactoryLGDataSet
+            // 
+            this.сlothesFactoryLGDataSet.DataSetName = "СlothesFactoryLGDataSet";
+            this.сlothesFactoryLGDataSet.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
+            // 
             // label1
             // 
             this.label1.AutoSize = true;
@@ -213,35 +233,15 @@
             this.BtnLogin.UseVisualStyleBackColor = false;
             this.BtnLogin.Click += new System.EventHandler(this.BtnLogin_Click);
             // 
-            // с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;
             // 
-            // LblIdUser
-            // 
-            this.LblIdUser.AutoSize = true;
-            this.LblIdUser.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.BsUsers, "id_User", true));
-            this.LblIdUser.Location = new System.Drawing.Point(139, 104);
-            this.LblIdUser.Name = "LblIdUser";
-            this.LblIdUser.Size = new System.Drawing.Size(47, 16);
-            this.LblIdUser.TabIndex = 20;
-            this.LblIdUser.Text = "IdUser";
-            // 
             // FormMain
             // 
             this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
             this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
-            this.ClientSize = new System.Drawing.Size(400, 557);
+            this.ClientSize = new System.Drawing.Size(389, 550);
             this.Controls.Add(this.label6);
             this.Controls.Add(this.TbxCapcha);
             this.Controls.Add(this.label5);
@@ -263,9 +263,9 @@
             this.Load += new System.EventHandler(this.FormMain_Load);
             this.panel1.ResumeLayout(false);
             this.panel1.PerformLayout();
-            ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
-            ((System.ComponentModel.ISupportInitialize)(this.сlothesFactoryLGDataSet)).EndInit();
             ((System.ComponentModel.ISupportInitialize)(this.BsUsers)).EndInit();
+            ((System.ComponentModel.ISupportInitialize)(this.сlothesFactoryLGDataSet)).EndInit();
+            ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
             this.ResumeLayout(false);
             this.PerformLayout();
 

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

@@ -84,7 +84,7 @@ namespace Швейная_фабрика
                 // создать форму для менеджера
                 FormManager frm = new FormManager();
                 // отфильтровать авторизовавшегося пользователя
-                //frm.BsUsers.Filter = TxtFilterForUser;
+                frm.BsUsers.Filter = TxtFilterForUser;
                 frm.ShowDialog();
             }
 
@@ -113,6 +113,7 @@ namespace Швейная_фабрика
             CmbRole.SelectedIndex = 0;
 
             LblCapcha.Text = GetCapcha();
+            LblIdUser.Hide();
         }
 
         private void CbxShowPass_CheckedChanged(object sender, EventArgs e)

+ 103 - 63
Швейная фабрика/FormManager.Designer.cs

@@ -31,6 +31,7 @@
             this.components = new System.ComponentModel.Container();
             System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormManager));
             this.panel1 = new System.Windows.Forms.Panel();
+            this.LblFIO = new System.Windows.Forms.Label();
             this.label1 = new System.Windows.Forms.Label();
             this.pictureBox1 = new System.Windows.Forms.PictureBox();
             this.BtnExportSelected = new System.Windows.Forms.Button();
@@ -47,32 +48,37 @@
             this.label5 = new System.Windows.Forms.Label();
             this.BtnAdd = new System.Windows.Forms.Button();
             this.BtnProfil = new System.Windows.Forms.Button();
-            this.сlothesFactoryLGDataSet = new Швейная_фабрика.СlothesFactoryLGDataSet();
-            this.izdelieBindingSource = new System.Windows.Forms.BindingSource(this.components);
-            this.izdelieTableAdapter = new Швейная_фабрика.СlothesFactoryLGDataSetTableAdapters.IzdelieTableAdapter();
-            this.tableAdapterManager = new Швейная_фабрика.СlothesFactoryLGDataSetTableAdapters.TableAdapterManager();
-            this.usersBindingSource = new System.Windows.Forms.BindingSource(this.components);
-            this.usersTableAdapter = new Швейная_фабрика.СlothesFactoryLGDataSetTableAdapters.UsersTableAdapter();
             this.DgvIzdeliy = new System.Windows.Forms.DataGridView();
+            this.SaveFDWord = new System.Windows.Forms.SaveFileDialog();
+            this.SaveFDExcel = new System.Windows.Forms.SaveFileDialog();
+            this.lblID = new System.Windows.Forms.Label();
             this.dataGridViewTextBoxColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.dataGridViewTextBoxColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.dataGridViewTextBoxColumn3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.dataGridViewTextBoxColumn4 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.LblFIO = new System.Windows.Forms.Label();
-            this.SaveFDWord = new System.Windows.Forms.SaveFileDialog();
-            this.SaveFDExcel = new System.Windows.Forms.SaveFileDialog();
+            this.izdelieBindingSource = new System.Windows.Forms.BindingSource(this.components);
+            this.сlothesFactoryLGDataSet = new Швейная_фабрика.СlothesFactoryLGDataSet();
+            this.BsUsers = new System.Windows.Forms.BindingSource(this.components);
+            this.izdelieTableAdapter = new Швейная_фабрика.СlothesFactoryLGDataSetTableAdapters.IzdelieTableAdapter();
+            this.tableAdapterManager = new Швейная_фабрика.СlothesFactoryLGDataSetTableAdapters.TableAdapterManager();
+            this.usersTableAdapter = new Швейная_фабрика.СlothesFactoryLGDataSetTableAdapters.UsersTableAdapter();
+            this.label2 = new System.Windows.Forms.Label();
+            this.label3 = new System.Windows.Forms.Label();
             this.panel1.SuspendLayout();
             ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
             ((System.ComponentModel.ISupportInitialize)(this.DgvZakazi)).BeginInit();
-            ((System.ComponentModel.ISupportInitialize)(this.сlothesFactoryLGDataSet)).BeginInit();
-            ((System.ComponentModel.ISupportInitialize)(this.izdelieBindingSource)).BeginInit();
-            ((System.ComponentModel.ISupportInitialize)(this.usersBindingSource)).BeginInit();
             ((System.ComponentModel.ISupportInitialize)(this.DgvIzdeliy)).BeginInit();
+            ((System.ComponentModel.ISupportInitialize)(this.izdelieBindingSource)).BeginInit();
+            ((System.ComponentModel.ISupportInitialize)(this.сlothesFactoryLGDataSet)).BeginInit();
+            ((System.ComponentModel.ISupportInitialize)(this.BsUsers)).BeginInit();
             this.SuspendLayout();
             // 
             // panel1
             // 
             this.panel1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(225)))));
+            this.panel1.Controls.Add(this.label3);
+            this.panel1.Controls.Add(this.label2);
+            this.panel1.Controls.Add(this.lblID);
             this.panel1.Controls.Add(this.LblFIO);
             this.panel1.Controls.Add(this.label1);
             this.panel1.Controls.Add(this.pictureBox1);
@@ -82,11 +88,21 @@
             this.panel1.Size = new System.Drawing.Size(646, 130);
             this.panel1.TabIndex = 2;
             // 
+            // LblFIO
+            // 
+            this.LblFIO.AutoSize = true;
+            this.LblFIO.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.BsUsers, "Surname", true));
+            this.LblFIO.Location = new System.Drawing.Point(356, 37);
+            this.LblFIO.Name = "LblFIO";
+            this.LblFIO.Size = new System.Drawing.Size(44, 16);
+            this.LblFIO.TabIndex = 44;
+            this.LblFIO.Text = "label2";
+            // 
             // label1
             // 
             this.label1.AutoSize = true;
             this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 13.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
-            this.label1.Location = new System.Drawing.Point(205, 51);
+            this.label1.Location = new System.Drawing.Point(184, 53);
             this.label1.Name = "label1";
             this.label1.Size = new System.Drawing.Size(136, 29);
             this.label1.TabIndex = 1;
@@ -255,41 +271,6 @@
             this.BtnProfil.UseVisualStyleBackColor = false;
             this.BtnProfil.Click += new System.EventHandler(this.BtnProfil_Click);
             // 
-            // сlothesFactoryLGDataSet
-            // 
-            this.сlothesFactoryLGDataSet.DataSetName = "СlothesFactoryLGDataSet";
-            this.сlothesFactoryLGDataSet.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
-            // 
-            // izdelieBindingSource
-            // 
-            this.izdelieBindingSource.DataMember = "Izdelie";
-            this.izdelieBindingSource.DataSource = this.сlothesFactoryLGDataSet;
-            // 
-            // izdelieTableAdapter
-            // 
-            this.izdelieTableAdapter.ClearBeforeFill = true;
-            // 
-            // tableAdapterManager
-            // 
-            this.tableAdapterManager.BackupDataSetBeforeUpdate = false;
-            this.tableAdapterManager.ColorTableAdapter = null;
-            this.tableAdapterManager.FurnituraTableAdapter = null;
-            this.tableAdapterManager.IzdelieTableAdapter = this.izdelieTableAdapter;
-            this.tableAdapterManager.OrdersTableAdapter = null;
-            this.tableAdapterManager.RolesTableAdapter = null;
-            this.tableAdapterManager.TkanTableAdapter = null;
-            this.tableAdapterManager.UpdateOrder = Швейная_фабрика.СlothesFactoryLGDataSetTableAdapters.TableAdapterManager.UpdateOrderOption.InsertUpdateDelete;
-            this.tableAdapterManager.UsersTableAdapter = this.usersTableAdapter;
-            // 
-            // usersBindingSource
-            // 
-            this.usersBindingSource.DataMember = "Users";
-            this.usersBindingSource.DataSource = this.сlothesFactoryLGDataSet;
-            // 
-            // usersTableAdapter
-            // 
-            this.usersTableAdapter.ClearBeforeFill = true;
-            // 
             // DgvIzdeliy
             // 
             this.DgvIzdeliy.AllowUserToAddRows = false;
@@ -311,6 +292,24 @@
             this.DgvIzdeliy.Size = new System.Drawing.Size(388, 205);
             this.DgvIzdeliy.TabIndex = 43;
             // 
+            // SaveFDWord
+            // 
+            this.SaveFDWord.Filter = "Word|*.docx|Все файлы|*.*";
+            // 
+            // SaveFDExcel
+            // 
+            this.SaveFDExcel.Filter = "Excel|*.csv|Все файлы|*.*";
+            // 
+            // lblID
+            // 
+            this.lblID.AutoSize = true;
+            this.lblID.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.BsUsers, "id_User", true));
+            this.lblID.Location = new System.Drawing.Point(139, 104);
+            this.lblID.Name = "lblID";
+            this.lblID.Size = new System.Drawing.Size(44, 16);
+            this.lblID.TabIndex = 45;
+            this.lblID.Text = "label2";
+            // 
             // dataGridViewTextBoxColumn1
             // 
             this.dataGridViewTextBoxColumn1.DataPropertyName = "id_izd";
@@ -351,22 +350,60 @@
             this.dataGridViewTextBoxColumn4.ReadOnly = true;
             this.dataGridViewTextBoxColumn4.Width = 87;
             // 
-            // LblFIO
+            // izdelieBindingSource
             // 
-            this.LblFIO.AutoSize = true;
-            this.LblFIO.Location = new System.Drawing.Point(139, 105);
-            this.LblFIO.Name = "LblFIO";
-            this.LblFIO.Size = new System.Drawing.Size(44, 16);
-            this.LblFIO.TabIndex = 44;
-            this.LblFIO.Text = "label2";
+            this.izdelieBindingSource.DataMember = "Izdelie";
+            this.izdelieBindingSource.DataSource = this.сlothesFactoryLGDataSet;
             // 
-            // SaveFDWord
+            // сlothesFactoryLGDataSet
             // 
-            this.SaveFDWord.Filter = "Word|*.docx|Все файлы|*.*";
+            this.сlothesFactoryLGDataSet.DataSetName = "СlothesFactoryLGDataSet";
+            this.сlothesFactoryLGDataSet.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
             // 
-            // SaveFDExcel
+            // BsUsers
             // 
-            this.SaveFDExcel.Filter = "Excel|*.csv|Все файлы|*.*";
+            this.BsUsers.DataMember = "Users";
+            this.BsUsers.DataSource = this.сlothesFactoryLGDataSet;
+            // 
+            // izdelieTableAdapter
+            // 
+            this.izdelieTableAdapter.ClearBeforeFill = true;
+            // 
+            // tableAdapterManager
+            // 
+            this.tableAdapterManager.BackupDataSetBeforeUpdate = false;
+            this.tableAdapterManager.ColorTableAdapter = null;
+            this.tableAdapterManager.FurnituraTableAdapter = null;
+            this.tableAdapterManager.IzdelieTableAdapter = this.izdelieTableAdapter;
+            this.tableAdapterManager.OrdersTableAdapter = null;
+            this.tableAdapterManager.RolesTableAdapter = null;
+            this.tableAdapterManager.TkanTableAdapter = null;
+            this.tableAdapterManager.UpdateOrder = Швейная_фабрика.СlothesFactoryLGDataSetTableAdapters.TableAdapterManager.UpdateOrderOption.InsertUpdateDelete;
+            this.tableAdapterManager.UsersTableAdapter = this.usersTableAdapter;
+            // 
+            // usersTableAdapter
+            // 
+            this.usersTableAdapter.ClearBeforeFill = true;
+            // 
+            // label2
+            // 
+            this.label2.AutoSize = true;
+            this.label2.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.BsUsers, "Name", true));
+            this.label2.Location = new System.Drawing.Point(356, 63);
+            this.label2.Name = "label2";
+            this.label2.Size = new System.Drawing.Size(44, 16);
+            this.label2.TabIndex = 46;
+            this.label2.Text = "label2";
+            // 
+            // label3
+            // 
+            this.label3.AutoSize = true;
+            this.label3.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.BsUsers, "Otch", true));
+            this.label3.Location = new System.Drawing.Point(356, 89);
+            this.label3.Name = "label3";
+            this.label3.Size = new System.Drawing.Size(44, 16);
+            this.label3.TabIndex = 47;
+            this.label3.Text = "label2";
             // 
             // FormManager
             // 
@@ -393,10 +430,10 @@
             this.panel1.PerformLayout();
             ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
             ((System.ComponentModel.ISupportInitialize)(this.DgvZakazi)).EndInit();
-            ((System.ComponentModel.ISupportInitialize)(this.сlothesFactoryLGDataSet)).EndInit();
-            ((System.ComponentModel.ISupportInitialize)(this.izdelieBindingSource)).EndInit();
-            ((System.ComponentModel.ISupportInitialize)(this.usersBindingSource)).EndInit();
             ((System.ComponentModel.ISupportInitialize)(this.DgvIzdeliy)).EndInit();
+            ((System.ComponentModel.ISupportInitialize)(this.izdelieBindingSource)).EndInit();
+            ((System.ComponentModel.ISupportInitialize)(this.сlothesFactoryLGDataSet)).EndInit();
+            ((System.ComponentModel.ISupportInitialize)(this.BsUsers)).EndInit();
             this.ResumeLayout(false);
             this.PerformLayout();
 
@@ -426,7 +463,6 @@
         private СlothesFactoryLGDataSetTableAdapters.IzdelieTableAdapter izdelieTableAdapter;
         private СlothesFactoryLGDataSetTableAdapters.TableAdapterManager tableAdapterManager;
         private СlothesFactoryLGDataSetTableAdapters.UsersTableAdapter usersTableAdapter;
-        private System.Windows.Forms.BindingSource usersBindingSource;
         private System.Windows.Forms.Label LblFIO;
         private System.Windows.Forms.DataGridView DgvIzdeliy;
         private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn1;
@@ -435,5 +471,9 @@
         private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn4;
         public System.Windows.Forms.SaveFileDialog SaveFDWord;
         public System.Windows.Forms.SaveFileDialog SaveFDExcel;
+        public System.Windows.Forms.BindingSource BsUsers;
+        private System.Windows.Forms.Label lblID;
+        private System.Windows.Forms.Label label3;
+        private System.Windows.Forms.Label label2;
     }
 }

+ 12 - 11
Швейная фабрика/FormManager.cs

@@ -30,7 +30,7 @@ FROM     Orders INNER JOIN
                   Izdelie ON Orders.id_izd = Izdelie.id_izd INNER JOIN
                   Tkan ON Orders.id_tkan = Tkan.id_Tkan INNER JOIN
                   Users ON Orders.id_men = Users.id_User
-where Users.id_User = {CurrentUser["id_User"]}";
+where Users.id_User = {lblID.Text}";
             con.Open();
             SqlCommand cmd = new SqlCommand(Query, con);
             SqlDataReader Rez = cmd.ExecuteReader();
@@ -47,27 +47,28 @@ where Users.id_User = {CurrentUser["id_User"]}";
             this.usersTableAdapter.Fill(this.сlothesFactoryLGDataSet.Users);
             // TODO: данная строка кода позволяет загрузить данные в таблицу "сlothesFactoryLGDataSet.Izdelie". При необходимости она может быть перемещена или удалена.
             this.izdelieTableAdapter.Fill(this.сlothesFactoryLGDataSet.Izdelie);
-
+            RefreshZakazi();
+            lblID.Hide();
         }
 
         private void BtnProfil_Click(object sender, EventArgs e)
         {
-            FormProfil FrmProf = new FormProfil();
-            FrmProf.BSUser.Filter = $"login = '{CurrentUser["login"]}'";
-            if (FrmProf.ShowDialog() == DialogResult.OK)
+            FormProfil frm = new FormProfil();
+            frm.BsUsers.Filter = this.BsUsers.Filter;
+            if (frm.ShowDialog() == DialogResult.OK)
             {
-                MessageBox.Show("Пользователь сохранён.", "Внимание!", MessageBoxButtons.OK, MessageBoxIcon.Information);
+                this.usersTableAdapter.Fill(this.сlothesFactoryLGDataSet.Users);
             }
             RefreshZakazi();
         }
 
         private void BtnAdd_Click(object sender, EventArgs e)
         {
-            FormAddEditIzdelie FrmAddEdit = new FormAddEditIzdelie();
+            FormAddIzdelie FrmAddEdit = new FormAddIzdelie();
             FrmAddEdit.LblFunc.Text = "Добавление изделия";
             if (FrmAddEdit.ShowDialog() == DialogResult.OK)
             {
-                this.izdelieTableAdapter.Fill(this.sewing_factoryDataSet.Izdelie);
+                this.izdelieTableAdapter.Fill(this.сlothesFactoryLGDataSet.Izdelie);
                 MessageBox.Show("Изделие добавлено.", "Внимание!", MessageBoxButtons.OK, MessageBoxIcon.Information);
             }
             RefreshZakazi();
@@ -75,12 +76,12 @@ where Users.id_User = {CurrentUser["id_User"]}";
 
         private void BtnRed_Click(object sender, EventArgs e)
         {
-            FormAddEditIzdelie FrmAddEdit = new FormAddEditIzdelie();
+            FormAddIzdelie FrmAddEdit = new FormAddIzdelie();
             FrmAddEdit.LblFunc.Text = "Редактирование изделия";
-            FrmAddEdit.BSIzdeliy.Filter = $"id_izd = {DgvIzdeliy.CurrentRow.Cells[0].Value}";
+            FrmAddEdit.BSizdelie.Filter = $"id_izd = {DgvIzdeliy.CurrentRow.Cells[0].Value}";
             if (FrmAddEdit.ShowDialog() == DialogResult.OK)
             {
-                this.izdelieTableAdapter.Fill(this.sewing_factoryDataSet.Izdelie);
+                this.izdelieTableAdapter.Fill(this.сlothesFactoryLGDataSet.Izdelie);
                 MessageBox.Show("Изделие обновлено.", "Внимание!", MessageBoxButtons.OK, MessageBoxIcon.Information);
             }
             RefreshZakazi();

+ 15 - 12
Швейная фабрика/FormManager.resx

@@ -117,6 +117,12 @@
   <resheader name="writer">
     <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
   </resheader>
+  <metadata name="BsUsers.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+    <value>840, 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="Column1.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
     <value>True</value>
   </metadata>
@@ -132,12 +138,15 @@
   <metadata name="Column5.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
     <value>True</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="izdelieBindingSource.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
     <value>243, 17</value>
   </metadata>
+  <metadata name="SaveFDWord.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+    <value>17, 60</value>
+  </metadata>
+  <metadata name="SaveFDExcel.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+    <value>160, 60</value>
+  </metadata>
   <metadata name="izdelieTableAdapter.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
     <value>442, 17</value>
   </metadata>
@@ -145,16 +154,10 @@
     <value>634, 17</value>
   </metadata>
   <metadata name="usersTableAdapter.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
-    <value>1030, 17</value>
-  </metadata>
-  <metadata name="usersBindingSource.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
-    <value>840, 17</value>
+    <value>950, 19</value>
   </metadata>
-  <metadata name="SaveFDWord.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
-    <value>17, 60</value>
-  </metadata>
-  <metadata name="SaveFDExcel.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
-    <value>160, 60</value>
+  <metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>96</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">

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

@@ -120,6 +120,15 @@
             phoneLabel1.TabIndex = 14;
             phoneLabel1.Text = "Телефон:";
             // 
+            // label2
+            // 
+            label2.AutoSize = true;
+            label2.Location = new System.Drawing.Point(25, 264);
+            label2.Name = "label2";
+            label2.Size = new System.Drawing.Size(140, 16);
+            label2.TabIndex = 21;
+            label2.Text = "Потвердите пароль:";
+            // 
             // panel1
             // 
             this.panel1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(225)))));
@@ -128,7 +137,7 @@
             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(446, 130);
+            this.panel1.Size = new System.Drawing.Size(431, 130);
             this.panel1.TabIndex = 2;
             // 
             // label1
@@ -243,15 +252,6 @@
             this.BtnReg.UseVisualStyleBackColor = false;
             this.BtnReg.Click += new System.EventHandler(this.BtnReg_Click);
             // 
-            // label2
-            // 
-            label2.AutoSize = true;
-            label2.Location = new System.Drawing.Point(25, 264);
-            label2.Name = "label2";
-            label2.Size = new System.Drawing.Size(140, 16);
-            label2.TabIndex = 21;
-            label2.Text = "Потвердите пароль:";
-            // 
             // passTextBox2
             // 
             this.passTextBox2.Location = new System.Drawing.Point(171, 261);
@@ -263,7 +263,7 @@
             // 
             this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
             this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
-            this.ClientSize = new System.Drawing.Size(446, 580);
+            this.ClientSize = new System.Drawing.Size(431, 532);
             this.Controls.Add(label2);
             this.Controls.Add(this.passTextBox2);
             this.Controls.Add(this.BtnCancel);

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

@@ -135,6 +135,9 @@
   <metadata name="phoneLabel1.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
     <value>False</value>
   </metadata>
+  <metadata name="label2.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>False</value>
+  </metadata>
   <metadata name="сlothesFactoryLGDataSet.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
     <value>17, 17</value>
   </metadata>
@@ -144,9 +147,6 @@
   <metadata name="usersTableAdapter.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
     <value>351, 18</value>
   </metadata>
-  <metadata name="label2.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>

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

@@ -1,306 +0,0 @@
-namespace Швейная_фабрика
-{
-    partial class FormSpisMaterial
-    {
-        /// <summary>
-        /// Required designer variable.
-        /// </summary>
-        private System.ComponentModel.IContainer components = null;
-
-        /// <summary>
-        /// Clean up any resources being used.
-        /// </summary>
-        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
-        protected override void Dispose(bool disposing)
-        {
-            if (disposing && (components != null))
-            {
-                components.Dispose();
-            }
-            base.Dispose(disposing);
-        }
-
-        #region Windows Form Designer generated code
-
-        /// <summary>
-        /// Required method for Designer support - do not modify
-        /// the contents of this method with the code editor.
-        /// </summary>
-        private void InitializeComponent()
-        {
-            this.components = new System.ComponentModel.Container();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormSpisMaterial));
-            this.panel1 = new System.Windows.Forms.Panel();
-            this.label1 = new System.Windows.Forms.Label();
-            this.pictureBox1 = new System.Windows.Forms.PictureBox();
-            this.BtnCancel = new System.Windows.Forms.Button();
-            this.BtnSpisMaterial = new System.Windows.Forms.Button();
-            this.BtnToExcel = new System.Windows.Forms.Button();
-            this.label2 = new System.Windows.Forms.Label();
-            this.label3 = new System.Windows.Forms.Label();
-            this.DgvFurnitura = new System.Windows.Forms.DataGridView();
-            this.DgvTkan = new System.Windows.Forms.DataGridView();
-            this.сlothesFactoryLGDataSet = new Швейная_фабрика.СlothesFactoryLGDataSet();
-            this.BsTkan = new System.Windows.Forms.BindingSource(this.components);
-            this.tkanTableAdapter = new Швейная_фабрика.СlothesFactoryLGDataSetTableAdapters.TkanTableAdapter();
-            this.BsFurnitura = new System.Windows.Forms.BindingSource(this.components);
-            this.furnituraTableAdapter = new Швейная_фабрика.СlothesFactoryLGDataSetTableAdapters.FurnituraTableAdapter();
-            this.widthDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.Column4 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.Column2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.Column3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.panel1.SuspendLayout();
-            ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
-            ((System.ComponentModel.ISupportInitialize)(this.DgvFurnitura)).BeginInit();
-            ((System.ComponentModel.ISupportInitialize)(this.DgvTkan)).BeginInit();
-            ((System.ComponentModel.ISupportInitialize)(this.сlothesFactoryLGDataSet)).BeginInit();
-            ((System.ComponentModel.ISupportInitialize)(this.BsTkan)).BeginInit();
-            ((System.ComponentModel.ISupportInitialize)(this.BsFurnitura)).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(1055, 130);
-            this.panel1.TabIndex = 4;
-            // 
-            // label1
-            // 
-            this.label1.AutoSize = true;
-            this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 13.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
-            this.label1.Location = new System.Drawing.Point(201, 48);
-            this.label1.Name = "label1";
-            this.label1.Size = new System.Drawing.Size(241, 29);
-            this.label1.TabIndex = 2;
-            this.label1.Text = "Списать материалы";
-            // 
-            // pictureBox1
-            // 
-            this.pictureBox1.Dock = System.Windows.Forms.DockStyle.Left;
-            this.pictureBox1.Image = global::Швейная_фабрика.Properties.Resources.fabric_logo;
-            this.pictureBox1.Location = new System.Drawing.Point(0, 0);
-            this.pictureBox1.Name = "pictureBox1";
-            this.pictureBox1.Size = new System.Drawing.Size(133, 130);
-            this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
-            this.pictureBox1.TabIndex = 0;
-            this.pictureBox1.TabStop = false;
-            // 
-            // BtnCancel
-            // 
-            this.BtnCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
-            this.BtnCancel.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(156)))), ((int)(((byte)(26)))));
-            this.BtnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
-            this.BtnCancel.Location = new System.Drawing.Point(823, 228);
-            this.BtnCancel.Name = "BtnCancel";
-            this.BtnCancel.Size = new System.Drawing.Size(206, 28);
-            this.BtnCancel.TabIndex = 22;
-            this.BtnCancel.Text = "Отменить";
-            this.BtnCancel.UseVisualStyleBackColor = false;
-            // 
-            // BtnSpisMaterial
-            // 
-            this.BtnSpisMaterial.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | 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(823, 194);
-            this.BtnSpisMaterial.Name = "BtnSpisMaterial";
-            this.BtnSpisMaterial.Size = new System.Drawing.Size(206, 28);
-            this.BtnSpisMaterial.TabIndex = 21;
-            this.BtnSpisMaterial.Text = "Списать материалы";
-            this.BtnSpisMaterial.UseVisualStyleBackColor = false;
-            this.BtnSpisMaterial.Click += new System.EventHandler(this.BtnSpisMaterial_Click);
-            // 
-            // BtnToExcel
-            // 
-            this.BtnToExcel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
-            this.BtnToExcel.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(156)))), ((int)(((byte)(26)))));
-            this.BtnToExcel.Location = new System.Drawing.Point(823, 160);
-            this.BtnToExcel.Name = "BtnToExcel";
-            this.BtnToExcel.Size = new System.Drawing.Size(206, 28);
-            this.BtnToExcel.TabIndex = 20;
-            this.BtnToExcel.Text = "Сформировать документ";
-            this.BtnToExcel.UseVisualStyleBackColor = false;
-            this.BtnToExcel.Click += new System.EventHandler(this.BtnToExcel_Click);
-            // 
-            // label2
-            // 
-            this.label2.AutoSize = true;
-            this.label2.Location = new System.Drawing.Point(486, 136);
-            this.label2.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
-            this.label2.Name = "label2";
-            this.label2.Size = new System.Drawing.Size(81, 16);
-            this.label2.TabIndex = 19;
-            this.label2.Text = "Фурнитура";
-            // 
-            // label3
-            // 
-            this.label3.AutoSize = true;
-            this.label3.Location = new System.Drawing.Point(10, 136);
-            this.label3.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
-            this.label3.Name = "label3";
-            this.label3.Size = new System.Drawing.Size(47, 16);
-            this.label3.TabIndex = 18;
-            this.label3.Text = "Ткани";
-            // 
-            // DgvFurnitura
-            // 
-            this.DgvFurnitura.AllowUserToAddRows = false;
-            this.DgvFurnitura.AllowUserToDeleteRows = false;
-            this.DgvFurnitura.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
-            | System.Windows.Forms.AnchorStyles.Left)));
-            this.DgvFurnitura.AutoGenerateColumns = false;
-            this.DgvFurnitura.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
-            this.DgvFurnitura.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
-            this.Column2,
-            this.Column3});
-            this.DgvFurnitura.DataSource = this.BsFurnitura;
-            this.DgvFurnitura.Location = new System.Drawing.Point(485, 160);
-            this.DgvFurnitura.Margin = new System.Windows.Forms.Padding(4);
-            this.DgvFurnitura.Name = "DgvFurnitura";
-            this.DgvFurnitura.RowHeadersVisible = false;
-            this.DgvFurnitura.RowHeadersWidth = 51;
-            this.DgvFurnitura.Size = new System.Drawing.Size(331, 313);
-            this.DgvFurnitura.TabIndex = 17;
-            // 
-            // DgvTkan
-            // 
-            this.DgvTkan.AllowUserToAddRows = false;
-            this.DgvTkan.AllowUserToDeleteRows = false;
-            this.DgvTkan.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
-            | System.Windows.Forms.AnchorStyles.Left)));
-            this.DgvTkan.AutoGenerateColumns = false;
-            this.DgvTkan.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
-            this.DgvTkan.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
-            this.widthDataGridViewTextBoxColumn,
-            this.Column1,
-            this.Column4});
-            this.DgvTkan.DataSource = this.BsTkan;
-            this.DgvTkan.Location = new System.Drawing.Point(13, 161);
-            this.DgvTkan.Margin = new System.Windows.Forms.Padding(4);
-            this.DgvTkan.Name = "DgvTkan";
-            this.DgvTkan.RowHeadersVisible = false;
-            this.DgvTkan.RowHeadersWidth = 51;
-            this.DgvTkan.Size = new System.Drawing.Size(459, 312);
-            this.DgvTkan.TabIndex = 16;
-            // 
-            // сlothesFactoryLGDataSet
-            // 
-            this.сlothesFactoryLGDataSet.DataSetName = "СlothesFactoryLGDataSet";
-            this.сlothesFactoryLGDataSet.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
-            // 
-            // BsTkan
-            // 
-            this.BsTkan.DataMember = "Tkan";
-            this.BsTkan.DataSource = this.сlothesFactoryLGDataSet;
-            // 
-            // tkanTableAdapter
-            // 
-            this.tkanTableAdapter.ClearBeforeFill = true;
-            // 
-            // BsFurnitura
-            // 
-            this.BsFurnitura.DataMember = "Furnitura";
-            this.BsFurnitura.DataSource = this.сlothesFactoryLGDataSet;
-            // 
-            // furnituraTableAdapter
-            // 
-            this.furnituraTableAdapter.ClearBeforeFill = true;
-            // 
-            // widthDataGridViewTextBoxColumn
-            // 
-            this.widthDataGridViewTextBoxColumn.DataPropertyName = "Width";
-            this.widthDataGridViewTextBoxColumn.HeaderText = "Ширина";
-            this.widthDataGridViewTextBoxColumn.MinimumWidth = 6;
-            this.widthDataGridViewTextBoxColumn.Name = "widthDataGridViewTextBoxColumn";
-            this.widthDataGridViewTextBoxColumn.Width = 125;
-            // 
-            // Column1
-            // 
-            dataGridViewCellStyle1.NullValue = null;
-            this.Column1.DefaultCellStyle = dataGridViewCellStyle1;
-            this.Column1.HeaderText = "Сколько списать";
-            this.Column1.MinimumWidth = 6;
-            this.Column1.Name = "Column1";
-            this.Column1.Width = 125;
-            // 
-            // Column4
-            // 
-            this.Column4.HeaderText = "Причина";
-            this.Column4.MinimumWidth = 6;
-            this.Column4.Name = "Column4";
-            this.Column4.Width = 150;
-            // 
-            // Column2
-            // 
-            this.Column2.HeaderText = "Сколько списать";
-            this.Column2.MinimumWidth = 6;
-            this.Column2.Name = "Column2";
-            this.Column2.Width = 125;
-            // 
-            // Column3
-            // 
-            this.Column3.HeaderText = "Причина";
-            this.Column3.MinimumWidth = 6;
-            this.Column3.Name = "Column3";
-            this.Column3.Width = 150;
-            // 
-            // FormSpisMaterial
-            // 
-            this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
-            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
-            this.ClientSize = new System.Drawing.Size(1055, 486);
-            this.Controls.Add(this.BtnCancel);
-            this.Controls.Add(this.BtnSpisMaterial);
-            this.Controls.Add(this.BtnToExcel);
-            this.Controls.Add(this.label2);
-            this.Controls.Add(this.label3);
-            this.Controls.Add(this.DgvFurnitura);
-            this.Controls.Add(this.DgvTkan);
-            this.Controls.Add(this.panel1);
-            this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
-            this.Name = "FormSpisMaterial";
-            this.Text = "СУБД \"Швейная фабрика\"";
-            this.Load += new System.EventHandler(this.FormSpisMaterial_Load);
-            this.panel1.ResumeLayout(false);
-            this.panel1.PerformLayout();
-            ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
-            ((System.ComponentModel.ISupportInitialize)(this.DgvFurnitura)).EndInit();
-            ((System.ComponentModel.ISupportInitialize)(this.DgvTkan)).EndInit();
-            ((System.ComponentModel.ISupportInitialize)(this.сlothesFactoryLGDataSet)).EndInit();
-            ((System.ComponentModel.ISupportInitialize)(this.BsTkan)).EndInit();
-            ((System.ComponentModel.ISupportInitialize)(this.BsFurnitura)).EndInit();
-            this.ResumeLayout(false);
-            this.PerformLayout();
-
-        }
-
-        #endregion
-
-        private System.Windows.Forms.Panel panel1;
-        private System.Windows.Forms.PictureBox pictureBox1;
-        private System.Windows.Forms.Label label1;
-        private System.Windows.Forms.Button BtnCancel;
-        private System.Windows.Forms.Button BtnSpisMaterial;
-        private System.Windows.Forms.Button BtnToExcel;
-        private System.Windows.Forms.Label label2;
-        private System.Windows.Forms.Label label3;
-        private System.Windows.Forms.DataGridView DgvFurnitura;
-        private System.Windows.Forms.DataGridView DgvTkan;
-        private СlothesFactoryLGDataSet сlothesFactoryLGDataSet;
-        private System.Windows.Forms.BindingSource BsTkan;
-        private СlothesFactoryLGDataSetTableAdapters.TkanTableAdapter tkanTableAdapter;
-        private System.Windows.Forms.BindingSource BsFurnitura;
-        private СlothesFactoryLGDataSetTableAdapters.FurnituraTableAdapter furnituraTableAdapter;
-        private System.Windows.Forms.DataGridViewTextBoxColumn Column2;
-        private System.Windows.Forms.DataGridViewTextBoxColumn Column3;
-        private System.Windows.Forms.DataGridViewTextBoxColumn widthDataGridViewTextBoxColumn;
-        private System.Windows.Forms.DataGridViewTextBoxColumn Column1;
-        private System.Windows.Forms.DataGridViewTextBoxColumn Column4;
-    }
-}

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

@@ -1,161 +0,0 @@
-using System;
-using System.Windows.Forms;
-using Excel = Microsoft.Office.Interop.Excel;
-
-namespace Швейная_фабрика
-{
-    public partial class FormSpisMaterial : Form
-    {
-        public FormSpisMaterial()
-        {
-            InitializeComponent();
-        }
-
-        private void BtnToExcel_Click(object sender, EventArgs e)
-        {
-            // создать объект для связи с приложением Excel
-            Excel.Application exapp = new Excel.Application();
-            // сделать приложение Excel видимым
-            exapp.Visible = true;
-            // открыть в Excel шаблон, находящийся в папке с exe-файлом в режиме только для чтения
-            exapp.Workbooks.Open(Application.StartupPath + "\\Списание.xlsx", Type.Missing, true);
-            // создать переменную list1 для связи с первым листом рабочей книги
-            Excel.Worksheet list1 = (exapp.Worksheets.get_Item(1));
-
-            int RowExcel = 24;  // в Excel начинать выводить с 24 строки
-            // перебор тканей в DataGridView
-            for (int i = 0; i <= DgvTkan.RowCount - 1; i++)
-            {
-                int CountSpis = 0;
-                try
-                {
-                    // сколько списать i-й ткани
-                    CountSpis = Convert.ToInt32(DgvTkan.Rows[i].Cells[3].Value);
-                }
-                catch { }
-                // если человек указал 0, или не указал ничего, 
-                // перейти к следующей ткани
-                if (CountSpis == 0)
-                    continue;
-
-                // если человек ввел ненулевое кол-во для списания, 
-                // добавить i-ю ткань в документ
-                list1.get_Range("A" + RowExcel).Value = DgvTkan.Rows[i].Cells[0].Value;
-                list1.get_Range("H" + RowExcel).Value = "см";
-                list1.get_Range("J" + RowExcel).Value = "ткань";
-                // количество ткани для списания
-                list1.get_Range("L" + RowExcel).Value = CountSpis;
-                int WidthTkan = Convert.ToInt32(DgvTkan.Rows[i].Cells[1].Value);
-                // площадь ткани для списания
-                list1.get_Range("N" + RowExcel).Value = CountSpis * WidthTkan;
-                // причина списания
-                list1.get_Range("R" + RowExcel).Value = DgvTkan.Rows[i].Cells[4].Value;
-                RowExcel++;  // перейти в Excel к следующей строке
-            }
-
-            // перебор фурнитур в DataGridView
-            for (int i = 0; i <= DgvFurnitura.RowCount - 1; i++)
-            {
-                int CountSpis = 0;
-                try
-                {
-                    // сколько списать i-й фурнитуры
-                    CountSpis = Convert.ToInt32(DgvFurnitura.Rows[i].Cells[2].Value);
-                }
-                catch { }
-                // если человек указал 0, или не указал ничего, 
-                // перейти к следующей фурнитуре
-                if (CountSpis == 0)
-                    continue;
-
-                // если человек ввел ненулевое кол-во для списания, 
-                // добавить i-ю фурнитуру в документ
-                list1.get_Range("A" + RowExcel).Value = DgvFurnitura.Rows[i].Cells[0].Value;
-                list1.get_Range("H" + RowExcel).Value = "шт";
-                list1.get_Range("J" + RowExcel).Value = "фурнитура";
-                // количество фурнитуры для списания
-                list1.get_Range("L" + RowExcel).Value = CountSpis;
-                // причина списания
-                list1.get_Range("R" + RowExcel).Value = DgvFurnitura.Rows[i].Cells[3].Value;
-                RowExcel++;  // перейти в Excel к следующей строке
-            }
-
-        }
-
-        private void BtnSpisMaterial_Click(object sender, EventArgs e)
-        {
-            DialogResult rez = MessageBox.Show("Вы уверены, что нужно выбранные материалы?",
-                "Внимание!", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
-            // если пользователь отказался списать, то выйти из процедуры
-            if (rez == DialogResult.No)
-                return;
-
-            // перебор тканей в DataGridView
-            for (int i = 0; i <= DgvTkan.RowCount - 1; i++)
-            {
-                int CountSpis = 0;
-                try
-                {
-                    // сколько списать i-й ткани
-                    CountSpis = Convert.ToInt32(DgvTkan.Rows[i].Cells[3].Value);
-                }
-                catch { }
-                // если человек указал 0, или не указал ничего, 
-                // перейти к следующей ткани
-                if (CountSpis == 0)
-                    continue;
-
-                // если человек ввел ненулевое кол-во для списания, 
-                // списать ткань
-                int LengthTkan = Convert.ToInt32(DgvTkan.Rows[i].Cells[2].Value);
-                // уменьшить кол-во ткани на складе на кол-во списываемой ткани
-                LengthTkan -= CountSpis;
-                // записать в столбец с длиной рулона ткани на складе новое значение
-                DgvTkan.Rows[i].Cells[2].Value = LengthTkan;
-            }
-
-            BsTkan.EndEdit();
-            this.tkanTableAdapter.Fill(this.сlothesFactoryLGDataSet.Tkan);
-
-
-            // перебор фурнитур в DataGridView
-            for (int i = 0; i <= DgvFurnitura.RowCount - 1; i++)
-            {
-                int CountSpis = 0;
-                try
-                {
-                    // сколько списать i-й фурнитуры
-                    CountSpis = Convert.ToInt32(DgvFurnitura.Rows[i].Cells[2].Value);
-                }
-                catch { }
-                // если человек указал 0, или не указал ничего, 
-                // перейти к следующей фурнитуре
-                if (CountSpis == 0)
-                    continue;
-
-                // если человек ввел ненулевое кол-во для списания, 
-                // списать фурнитуру
-                // если человек ввел ненулевое кол-во для списания, 
-                // списать ткань
-                int CountFur = Convert.ToInt32(DgvFurnitura.Rows[i].Cells[1].Value);
-                // уменьшить кол-во фурнитур на складе на кол-во списываемых фурнитур
-                CountFur -= CountSpis;
-                // записать в столбец с кол-вом фурнитур на складе новое значение
-                DgvFurnitura.Rows[i].Cells[1].Value = CountFur;
-            }
-
-            BsFurnitura.EndEdit();
-            this.furnituraTableAdapter.Fill(this.сlothesFactoryLGDataSet.Furnitura);
-
-        }
-
-        private void FormSpisMaterial_Load(object sender, EventArgs e)
-        {
-            // TODO: данная строка кода позволяет загрузить данные в таблицу "сlothesFactoryLGDataSet.Furnitura". При необходимости она может быть перемещена или удалена.
-            this.furnituraTableAdapter.Fill(this.сlothesFactoryLGDataSet.Furnitura);
-            // TODO: данная строка кода позволяет загрузить данные в таблицу "сlothesFactoryLGDataSet.Tkan". При необходимости она может быть перемещена или удалена.
-            this.tkanTableAdapter.Fill(this.сlothesFactoryLGDataSet.Tkan);
-
-        }
-    }
-}

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

@@ -1,224 +0,0 @@
-<?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="Column2.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>True</value>
-  </metadata>
-  <metadata name="Column3.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>True</value>
-  </metadata>
-  <metadata name="BsFurnitura.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
-    <value>350, 18</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="Column1.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>True</value>
-  </metadata>
-  <metadata name="Column4.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>True</value>
-  </metadata>
-  <metadata name="BsTkan.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
-    <value>243, 17</value>
-  </metadata>
-  <metadata name="tkanTableAdapter.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
-    <value>488, 17</value>
-  </metadata>
-  <metadata name="furnituraTableAdapter.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
-    <value>661, 16</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>

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

@@ -36,6 +36,7 @@
             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();
@@ -48,12 +49,11 @@
             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.DgvOrders)).BeginInit();
             ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
+            ((System.ComponentModel.ISupportInitialize)(this.DgvOrders)).BeginInit();
             this.SuspendLayout();
             // 
             // panel1
@@ -67,17 +67,15 @@
             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(887, 130);
+            this.panel1.Size = new System.Drawing.Size(888, 130);
             this.panel1.TabIndex = 4;
             // 
             // otchLabel1
             // 
-            this.otchLabel1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
-            | System.Windows.Forms.AnchorStyles.Right)));
             this.otchLabel1.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.BsUsers, "Otch", true));
             this.otchLabel1.Location = new System.Drawing.Point(513, 81);
             this.otchLabel1.Name = "otchLabel1";
-            this.otchLabel1.Size = new System.Drawing.Size(362, 23);
+            this.otchLabel1.Size = new System.Drawing.Size(267, 23);
             this.otchLabel1.TabIndex = 9;
             this.otchLabel1.Text = "Отчество";
             // 
@@ -103,23 +101,30 @@
             // 
             // nameLabel1
             // 
-            this.nameLabel1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
-            | System.Windows.Forms.AnchorStyles.Right)));
             this.nameLabel1.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.BsUsers, "Name", true));
             this.nameLabel1.Location = new System.Drawing.Point(513, 58);
             this.nameLabel1.Name = "nameLabel1";
-            this.nameLabel1.Size = new System.Drawing.Size(362, 23);
+            this.nameLabel1.Size = new System.Drawing.Size(267, 23);
             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) 
-            | System.Windows.Forms.AnchorStyles.Right)));
             this.surnameLabel1.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.BsUsers, "Surname", true));
             this.surnameLabel1.Location = new System.Drawing.Point(513, 36);
             this.surnameLabel1.Name = "surnameLabel1";
-            this.surnameLabel1.Size = new System.Drawing.Size(362, 23);
+            this.surnameLabel1.Size = new System.Drawing.Size(267, 23);
             this.surnameLabel1.TabIndex = 7;
             this.surnameLabel1.Text = "Фамилия";
             // 
@@ -131,7 +136,7 @@
             // 
             this.BtnAddZakaz.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
             this.BtnAddZakaz.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(156)))), ((int)(((byte)(26)))));
-            this.BtnAddZakaz.Location = new System.Drawing.Point(666, 514);
+            this.BtnAddZakaz.Location = new System.Drawing.Point(667, 494);
             this.BtnAddZakaz.Name = "BtnAddZakaz";
             this.BtnAddZakaz.Size = new System.Drawing.Size(206, 46);
             this.BtnAddZakaz.TabIndex = 19;
@@ -143,7 +148,7 @@
             // 
             this.BtnLev.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
             this.BtnLev.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(156)))), ((int)(((byte)(26)))));
-            this.BtnLev.Location = new System.Drawing.Point(426, 514);
+            this.BtnLev.Location = new System.Drawing.Point(427, 494);
             this.BtnLev.Name = "BtnLev";
             this.BtnLev.Size = new System.Drawing.Size(206, 46);
             this.BtnLev.TabIndex = 18;
@@ -155,7 +160,7 @@
             // 
             this.BtnProfile.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
             this.BtnProfile.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(156)))), ((int)(((byte)(26)))));
-            this.BtnProfile.Location = new System.Drawing.Point(191, 514);
+            this.BtnProfile.Location = new System.Drawing.Point(192, 494);
             this.BtnProfile.Name = "BtnProfile";
             this.BtnProfile.Size = new System.Drawing.Size(206, 46);
             this.BtnProfile.TabIndex = 17;
@@ -187,7 +192,7 @@
             this.DgvOrders.RowHeadersWidth = 51;
             this.DgvOrders.RowTemplate.Height = 24;
             this.DgvOrders.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
-            this.DgvOrders.Size = new System.Drawing.Size(862, 372);
+            this.DgvOrders.Size = new System.Drawing.Size(863, 352);
             this.DgvOrders.TabIndex = 20;
             // 
             // Izdelie
@@ -238,22 +243,11 @@
             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);
             this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
-            this.ClientSize = new System.Drawing.Size(887, 572);
+            this.ClientSize = new System.Drawing.Size(888, 552);
             this.Controls.Add(this.DgvOrders);
             this.Controls.Add(this.BtnAddZakaz);
             this.Controls.Add(this.BtnLev);
@@ -268,8 +262,8 @@
             this.panel1.PerformLayout();
             ((System.ComponentModel.ISupportInitialize)(this.BsUsers)).EndInit();
             ((System.ComponentModel.ISupportInitialize)(this.сlothesFactoryLGDataSet)).EndInit();
-            ((System.ComponentModel.ISupportInitialize)(this.DgvOrders)).EndInit();
             ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
+            ((System.ComponentModel.ISupportInitialize)(this.DgvOrders)).EndInit();
             this.ResumeLayout(false);
 
         }

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


BIN
Швейная фабрика/obj/Debug/TempPE/СlothesFactoryLGDataSet.Designer.cs.dll


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

@@ -23,4 +23,4 @@ D:\37g\2 семестр\практика 24.03-15.05\Швейная фабрик
 D:\37g\2 семестр\практика 24.03-15.05\Швейная фабрика\Швейная фабрика\obj\Debug\Швейная_фабрика.FormProfil.resources
 D:\37g\2 семестр\практика 24.03-15.05\Швейная фабрика\Швейная фабрика\obj\Debug\Швейная фабрика.csproj.ResolveComReference.cache
 D:\37g\2 семестр\практика 24.03-15.05\Швейная фабрика\Швейная фабрика\obj\Debug\Швейная_фабрика.FormGetMaterial.resources
-D:\37g\2 семестр\практика 24.03-15.05\Швейная фабрика\Швейная фабрика\obj\Debug\Швейная_фабрика.FormSpisMaterial.resources
+D:\37g\2 семестр\практика 24.03-15.05\Швейная фабрика\Швейная фабрика\obj\Debug\Швейная_фабрика.FormAddIzdelie.resources

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


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


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


+ 824 - 36
Швейная фабрика/СlothesFactoryLGDataSet.Designer.cs

@@ -38,6 +38,8 @@ namespace Швейная_фабрика {
         
         private UsersDataTable tableUsers;
         
+        private AllTkanDataTable tableAllTkan;
+        
         private global::System.Data.DataRelation relationFK_Orders_Furnitura;
         
         private global::System.Data.DataRelation relationFK_Orders_Izdelie;
@@ -101,6 +103,9 @@ namespace Швейная_фабрика {
                 if ((ds.Tables["Users"] != null)) {
                     base.Tables.Add(new UsersDataTable(ds.Tables["Users"]));
                 }
+                if ((ds.Tables["AllTkan"] != null)) {
+                    base.Tables.Add(new AllTkanDataTable(ds.Tables["AllTkan"]));
+                }
                 this.DataSetName = ds.DataSetName;
                 this.Prefix = ds.Prefix;
                 this.Namespace = ds.Namespace;
@@ -189,6 +194,16 @@ namespace Швейная_фабрика {
             }
         }
         
+        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+        [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+        [global::System.ComponentModel.Browsable(false)]
+        [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
+        public AllTkanDataTable AllTkan {
+            get {
+                return this.tableAllTkan;
+            }
+        }
+        
         [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
         [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
         [global::System.ComponentModel.BrowsableAttribute(true)]
@@ -277,6 +292,9 @@ namespace Швейная_фабрика {
                 if ((ds.Tables["Users"] != null)) {
                     base.Tables.Add(new UsersDataTable(ds.Tables["Users"]));
                 }
+                if ((ds.Tables["AllTkan"] != null)) {
+                    base.Tables.Add(new AllTkanDataTable(ds.Tables["AllTkan"]));
+                }
                 this.DataSetName = ds.DataSetName;
                 this.Prefix = ds.Prefix;
                 this.Namespace = ds.Namespace;
@@ -352,6 +370,12 @@ namespace Швейная_фабрика {
                     this.tableUsers.InitVars();
                 }
             }
+            this.tableAllTkan = ((AllTkanDataTable)(base.Tables["AllTkan"]));
+            if ((initTable == true)) {
+                if ((this.tableAllTkan != null)) {
+                    this.tableAllTkan.InitVars();
+                }
+            }
             this.relationFK_Orders_Furnitura = this.Relations["FK_Orders_Furnitura"];
             this.relationFK_Orders_Izdelie = this.Relations["FK_Orders_Izdelie"];
             this.relationFK_Orders_Tkan = this.Relations["FK_Orders_Tkan"];
@@ -383,6 +407,8 @@ namespace Швейная_фабрика {
             base.Tables.Add(this.tableTkan);
             this.tableUsers = new UsersDataTable();
             base.Tables.Add(this.tableUsers);
+            this.tableAllTkan = new AllTkanDataTable();
+            base.Tables.Add(this.tableAllTkan);
             this.relationFK_Orders_Furnitura = new global::System.Data.DataRelation("FK_Orders_Furnitura", new global::System.Data.DataColumn[] {
                         this.tableFurnitura.id_furColumn}, new global::System.Data.DataColumn[] {
                         this.tableOrders.id_furColumn}, false);
@@ -455,6 +481,12 @@ namespace Швейная_фабрика {
             return false;
         }
         
+        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+        [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+        private bool ShouldSerializeAllTkan() {
+            return false;
+        }
+        
         [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
         [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
         private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) {
@@ -531,6 +563,9 @@ namespace Швейная_фабрика {
         [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
         public delegate void UsersRowChangeEventHandler(object sender, UsersRowChangeEvent e);
         
+        [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+        public delegate void AllTkanRowChangeEventHandler(object sender, AllTkanRowChangeEvent e);
+        
         /// <summary>
         ///Represents the strongly named DataTable class.
         ///</summary>
@@ -2792,6 +2827,356 @@ namespace Швейная_фабрика {
             }
         }
         
+        /// <summary>
+        ///Represents the strongly named DataTable class.
+        ///</summary>
+        [global::System.Serializable()]
+        [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
+        public partial class AllTkanDataTable : global::System.Data.TypedTableBase<AllTkanRow> {
+            
+            private global::System.Data.DataColumn columnid_Tkan;
+            
+            private global::System.Data.DataColumn columnTitle;
+            
+            private global::System.Data.DataColumn columnLength;
+            
+            private global::System.Data.DataColumn columnWidth;
+            
+            private global::System.Data.DataColumn columnComment;
+            
+            private global::System.Data.DataColumn columnNamePhoto;
+            
+            private global::System.Data.DataColumn columnColor;
+            
+            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+            public AllTkanDataTable() {
+                this.TableName = "AllTkan";
+                this.BeginInit();
+                this.InitClass();
+                this.EndInit();
+            }
+            
+            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+            internal AllTkanDataTable(global::System.Data.DataTable table) {
+                this.TableName = table.TableName;
+                if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
+                    this.CaseSensitive = table.CaseSensitive;
+                }
+                if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
+                    this.Locale = table.Locale;
+                }
+                if ((table.Namespace != table.DataSet.Namespace)) {
+                    this.Namespace = table.Namespace;
+                }
+                this.Prefix = table.Prefix;
+                this.MinimumCapacity = table.MinimumCapacity;
+            }
+            
+            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+            protected AllTkanDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : 
+                    base(info, context) {
+                this.InitVars();
+            }
+            
+            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+            public global::System.Data.DataColumn id_TkanColumn {
+                get {
+                    return this.columnid_Tkan;
+                }
+            }
+            
+            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+            public global::System.Data.DataColumn TitleColumn {
+                get {
+                    return this.columnTitle;
+                }
+            }
+            
+            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+            public global::System.Data.DataColumn LengthColumn {
+                get {
+                    return this.columnLength;
+                }
+            }
+            
+            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+            public global::System.Data.DataColumn WidthColumn {
+                get {
+                    return this.columnWidth;
+                }
+            }
+            
+            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+            public global::System.Data.DataColumn CommentColumn {
+                get {
+                    return this.columnComment;
+                }
+            }
+            
+            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+            public global::System.Data.DataColumn NamePhotoColumn {
+                get {
+                    return this.columnNamePhoto;
+                }
+            }
+            
+            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+            public global::System.Data.DataColumn ColorColumn {
+                get {
+                    return this.columnColor;
+                }
+            }
+            
+            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+            [global::System.ComponentModel.Browsable(false)]
+            public int Count {
+                get {
+                    return this.Rows.Count;
+                }
+            }
+            
+            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+            public AllTkanRow this[int index] {
+                get {
+                    return ((AllTkanRow)(this.Rows[index]));
+                }
+            }
+            
+            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+            public event AllTkanRowChangeEventHandler AllTkanRowChanging;
+            
+            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+            public event AllTkanRowChangeEventHandler AllTkanRowChanged;
+            
+            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+            public event AllTkanRowChangeEventHandler AllTkanRowDeleting;
+            
+            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+            public event AllTkanRowChangeEventHandler AllTkanRowDeleted;
+            
+            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+            public void AddAllTkanRow(AllTkanRow row) {
+                this.Rows.Add(row);
+            }
+            
+            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+            public AllTkanRow AddAllTkanRow(string Title, int Length, int Width, string Comment, string NamePhoto, string Color) {
+                AllTkanRow rowAllTkanRow = ((AllTkanRow)(this.NewRow()));
+                object[] columnValuesArray = new object[] {
+                        null,
+                        Title,
+                        Length,
+                        Width,
+                        Comment,
+                        NamePhoto,
+                        Color};
+                rowAllTkanRow.ItemArray = columnValuesArray;
+                this.Rows.Add(rowAllTkanRow);
+                return rowAllTkanRow;
+            }
+            
+            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+            public AllTkanRow FindByid_Tkan(int id_Tkan) {
+                return ((AllTkanRow)(this.Rows.Find(new object[] {
+                            id_Tkan})));
+            }
+            
+            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+            public override global::System.Data.DataTable Clone() {
+                AllTkanDataTable cln = ((AllTkanDataTable)(base.Clone()));
+                cln.InitVars();
+                return cln;
+            }
+            
+            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+            protected override global::System.Data.DataTable CreateInstance() {
+                return new AllTkanDataTable();
+            }
+            
+            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+            internal void InitVars() {
+                this.columnid_Tkan = base.Columns["id_Tkan"];
+                this.columnTitle = base.Columns["Title"];
+                this.columnLength = base.Columns["Length"];
+                this.columnWidth = base.Columns["Width"];
+                this.columnComment = base.Columns["Comment"];
+                this.columnNamePhoto = base.Columns["NamePhoto"];
+                this.columnColor = base.Columns["Color"];
+            }
+            
+            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+            private void InitClass() {
+                this.columnid_Tkan = new global::System.Data.DataColumn("id_Tkan", typeof(int), null, global::System.Data.MappingType.Element);
+                base.Columns.Add(this.columnid_Tkan);
+                this.columnTitle = new global::System.Data.DataColumn("Title", typeof(string), null, global::System.Data.MappingType.Element);
+                base.Columns.Add(this.columnTitle);
+                this.columnLength = new global::System.Data.DataColumn("Length", typeof(int), null, global::System.Data.MappingType.Element);
+                base.Columns.Add(this.columnLength);
+                this.columnWidth = new global::System.Data.DataColumn("Width", typeof(int), null, global::System.Data.MappingType.Element);
+                base.Columns.Add(this.columnWidth);
+                this.columnComment = new global::System.Data.DataColumn("Comment", typeof(string), null, global::System.Data.MappingType.Element);
+                base.Columns.Add(this.columnComment);
+                this.columnNamePhoto = new global::System.Data.DataColumn("NamePhoto", typeof(string), null, global::System.Data.MappingType.Element);
+                base.Columns.Add(this.columnNamePhoto);
+                this.columnColor = new global::System.Data.DataColumn("Color", typeof(string), null, global::System.Data.MappingType.Element);
+                base.Columns.Add(this.columnColor);
+                this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
+                                this.columnid_Tkan}, true));
+                this.columnid_Tkan.AutoIncrement = true;
+                this.columnid_Tkan.AutoIncrementSeed = -1;
+                this.columnid_Tkan.AutoIncrementStep = -1;
+                this.columnid_Tkan.AllowDBNull = false;
+                this.columnid_Tkan.ReadOnly = true;
+                this.columnid_Tkan.Unique = true;
+                this.columnTitle.MaxLength = 50;
+                this.columnComment.MaxLength = 50;
+                this.columnNamePhoto.MaxLength = 50;
+                this.columnColor.MaxLength = 50;
+            }
+            
+            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+            public AllTkanRow NewAllTkanRow() {
+                return ((AllTkanRow)(this.NewRow()));
+            }
+            
+            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+            protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
+                return new AllTkanRow(builder);
+            }
+            
+            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+            protected override global::System.Type GetRowType() {
+                return typeof(AllTkanRow);
+            }
+            
+            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+            protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
+                base.OnRowChanged(e);
+                if ((this.AllTkanRowChanged != null)) {
+                    this.AllTkanRowChanged(this, new AllTkanRowChangeEvent(((AllTkanRow)(e.Row)), e.Action));
+                }
+            }
+            
+            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+            protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
+                base.OnRowChanging(e);
+                if ((this.AllTkanRowChanging != null)) {
+                    this.AllTkanRowChanging(this, new AllTkanRowChangeEvent(((AllTkanRow)(e.Row)), e.Action));
+                }
+            }
+            
+            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+            protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
+                base.OnRowDeleted(e);
+                if ((this.AllTkanRowDeleted != null)) {
+                    this.AllTkanRowDeleted(this, new AllTkanRowChangeEvent(((AllTkanRow)(e.Row)), e.Action));
+                }
+            }
+            
+            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+            protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
+                base.OnRowDeleting(e);
+                if ((this.AllTkanRowDeleting != null)) {
+                    this.AllTkanRowDeleting(this, new AllTkanRowChangeEvent(((AllTkanRow)(e.Row)), e.Action));
+                }
+            }
+            
+            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+            public void RemoveAllTkanRow(AllTkanRow row) {
+                this.Rows.Remove(row);
+            }
+            
+            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+            public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
+                global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
+                global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
+                СlothesFactoryLGDataSet ds = new СlothesFactoryLGDataSet();
+                global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
+                any1.Namespace = "http://www.w3.org/2001/XMLSchema";
+                any1.MinOccurs = new decimal(0);
+                any1.MaxOccurs = decimal.MaxValue;
+                any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
+                sequence.Items.Add(any1);
+                global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
+                any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
+                any2.MinOccurs = new decimal(1);
+                any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
+                sequence.Items.Add(any2);
+                global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
+                attribute1.Name = "namespace";
+                attribute1.FixedValue = ds.Namespace;
+                type.Attributes.Add(attribute1);
+                global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
+                attribute2.Name = "tableTypeName";
+                attribute2.FixedValue = "AllTkanDataTable";
+                type.Attributes.Add(attribute2);
+                type.Particle = sequence;
+                global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
+                if (xs.Contains(dsSchema.TargetNamespace)) {
+                    global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
+                    global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
+                    try {
+                        global::System.Xml.Schema.XmlSchema schema = null;
+                        dsSchema.Write(s1);
+                        for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
+                            schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
+                            s2.SetLength(0);
+                            schema.Write(s2);
+                            if ((s1.Length == s2.Length)) {
+                                s1.Position = 0;
+                                s2.Position = 0;
+                                for (; ((s1.Position != s1.Length) 
+                                            && (s1.ReadByte() == s2.ReadByte())); ) {
+                                    ;
+                                }
+                                if ((s1.Position == s1.Length)) {
+                                    return type;
+                                }
+                            }
+                        }
+                    }
+                    finally {
+                        if ((s1 != null)) {
+                            s1.Close();
+                        }
+                        if ((s2 != null)) {
+                            s2.Close();
+                        }
+                    }
+                }
+                xs.Add(dsSchema);
+                return type;
+            }
+        }
+        
         /// <summary>
         ///Represents strongly named DataRow class.
         ///</summary>
@@ -3825,90 +4210,284 @@ namespace Швейная_фабрика {
             
             [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
             [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
-            public void SetpassNull() {
-                this[this.tableUsers.passColumn] = global::System.Convert.DBNull;
+            public void SetpassNull() {
+                this[this.tableUsers.passColumn] = global::System.Convert.DBNull;
+            }
+            
+            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+            public bool IsRoleNull() {
+                return this.IsNull(this.tableUsers.RoleColumn);
+            }
+            
+            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+            public void SetRoleNull() {
+                this[this.tableUsers.RoleColumn] = global::System.Convert.DBNull;
+            }
+            
+            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+            public bool IsSurnameNull() {
+                return this.IsNull(this.tableUsers.SurnameColumn);
+            }
+            
+            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+            public void SetSurnameNull() {
+                this[this.tableUsers.SurnameColumn] = global::System.Convert.DBNull;
+            }
+            
+            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+            public bool IsNameNull() {
+                return this.IsNull(this.tableUsers.NameColumn);
+            }
+            
+            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+            public void SetNameNull() {
+                this[this.tableUsers.NameColumn] = global::System.Convert.DBNull;
+            }
+            
+            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+            public bool IsOtchNull() {
+                return this.IsNull(this.tableUsers.OtchColumn);
+            }
+            
+            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+            public void SetOtchNull() {
+                this[this.tableUsers.OtchColumn] = global::System.Convert.DBNull;
+            }
+            
+            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+            public bool IsPhoneNull() {
+                return this.IsNull(this.tableUsers.PhoneColumn);
+            }
+            
+            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+            public void SetPhoneNull() {
+                this[this.tableUsers.PhoneColumn] = global::System.Convert.DBNull;
+            }
+            
+            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+            public OrdersRow[] GetOrdersRowsByFK_Orders_Users1() {
+                if ((this.Table.ChildRelations["FK_Orders_Users1"] == null)) {
+                    return new OrdersRow[0];
+                }
+                else {
+                    return ((OrdersRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Orders_Users1"])));
+                }
+            }
+            
+            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+            public OrdersRow[] GetOrdersRowsByFK_Orders_Users2() {
+                if ((this.Table.ChildRelations["FK_Orders_Users2"] == null)) {
+                    return new OrdersRow[0];
+                }
+                else {
+                    return ((OrdersRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Orders_Users2"])));
+                }
+            }
+        }
+        
+        /// <summary>
+        ///Represents strongly named DataRow class.
+        ///</summary>
+        public partial class AllTkanRow : global::System.Data.DataRow {
+            
+            private AllTkanDataTable tableAllTkan;
+            
+            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+            internal AllTkanRow(global::System.Data.DataRowBuilder rb) : 
+                    base(rb) {
+                this.tableAllTkan = ((AllTkanDataTable)(this.Table));
+            }
+            
+            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+            public int id_Tkan {
+                get {
+                    return ((int)(this[this.tableAllTkan.id_TkanColumn]));
+                }
+                set {
+                    this[this.tableAllTkan.id_TkanColumn] = value;
+                }
+            }
+            
+            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+            public string Title {
+                get {
+                    try {
+                        return ((string)(this[this.tableAllTkan.TitleColumn]));
+                    }
+                    catch (global::System.InvalidCastException e) {
+                        throw new global::System.Data.StrongTypingException("Значение для столбца \'Title\' в таблице \'AllTkan\' равно DBNull.", e);
+                    }
+                }
+                set {
+                    this[this.tableAllTkan.TitleColumn] = value;
+                }
+            }
+            
+            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+            public int Length {
+                get {
+                    try {
+                        return ((int)(this[this.tableAllTkan.LengthColumn]));
+                    }
+                    catch (global::System.InvalidCastException e) {
+                        throw new global::System.Data.StrongTypingException("Значение для столбца \'Length\' в таблице \'AllTkan\' равно DBNull.", e);
+                    }
+                }
+                set {
+                    this[this.tableAllTkan.LengthColumn] = value;
+                }
+            }
+            
+            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+            public int Width {
+                get {
+                    try {
+                        return ((int)(this[this.tableAllTkan.WidthColumn]));
+                    }
+                    catch (global::System.InvalidCastException e) {
+                        throw new global::System.Data.StrongTypingException("Значение для столбца \'Width\' в таблице \'AllTkan\' равно DBNull.", e);
+                    }
+                }
+                set {
+                    this[this.tableAllTkan.WidthColumn] = value;
+                }
+            }
+            
+            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+            public string Comment {
+                get {
+                    try {
+                        return ((string)(this[this.tableAllTkan.CommentColumn]));
+                    }
+                    catch (global::System.InvalidCastException e) {
+                        throw new global::System.Data.StrongTypingException("Значение для столбца \'Comment\' в таблице \'AllTkan\' равно DBNull.", e);
+                    }
+                }
+                set {
+                    this[this.tableAllTkan.CommentColumn] = value;
+                }
+            }
+            
+            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+            public string NamePhoto {
+                get {
+                    try {
+                        return ((string)(this[this.tableAllTkan.NamePhotoColumn]));
+                    }
+                    catch (global::System.InvalidCastException e) {
+                        throw new global::System.Data.StrongTypingException("Значение для столбца \'NamePhoto\' в таблице \'AllTkan\' равно DBNull.", e);
+                    }
+                }
+                set {
+                    this[this.tableAllTkan.NamePhotoColumn] = value;
+                }
+            }
+            
+            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+            public string Color {
+                get {
+                    try {
+                        return ((string)(this[this.tableAllTkan.ColorColumn]));
+                    }
+                    catch (global::System.InvalidCastException e) {
+                        throw new global::System.Data.StrongTypingException("Значение для столбца \'Color\' в таблице \'AllTkan\' равно DBNull.", e);
+                    }
+                }
+                set {
+                    this[this.tableAllTkan.ColorColumn] = value;
+                }
             }
             
             [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
             [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
-            public bool IsRoleNull() {
-                return this.IsNull(this.tableUsers.RoleColumn);
+            public bool IsTitleNull() {
+                return this.IsNull(this.tableAllTkan.TitleColumn);
             }
             
             [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
             [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
-            public void SetRoleNull() {
-                this[this.tableUsers.RoleColumn] = global::System.Convert.DBNull;
+            public void SetTitleNull() {
+                this[this.tableAllTkan.TitleColumn] = global::System.Convert.DBNull;
             }
             
             [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
             [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
-            public bool IsSurnameNull() {
-                return this.IsNull(this.tableUsers.SurnameColumn);
+            public bool IsLengthNull() {
+                return this.IsNull(this.tableAllTkan.LengthColumn);
             }
             
             [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
             [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
-            public void SetSurnameNull() {
-                this[this.tableUsers.SurnameColumn] = global::System.Convert.DBNull;
+            public void SetLengthNull() {
+                this[this.tableAllTkan.LengthColumn] = global::System.Convert.DBNull;
             }
             
             [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
             [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
-            public bool IsNameNull() {
-                return this.IsNull(this.tableUsers.NameColumn);
+            public bool IsWidthNull() {
+                return this.IsNull(this.tableAllTkan.WidthColumn);
             }
             
             [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
             [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
-            public void SetNameNull() {
-                this[this.tableUsers.NameColumn] = global::System.Convert.DBNull;
+            public void SetWidthNull() {
+                this[this.tableAllTkan.WidthColumn] = global::System.Convert.DBNull;
             }
             
             [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
             [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
-            public bool IsOtchNull() {
-                return this.IsNull(this.tableUsers.OtchColumn);
+            public bool IsCommentNull() {
+                return this.IsNull(this.tableAllTkan.CommentColumn);
             }
             
             [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
             [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
-            public void SetOtchNull() {
-                this[this.tableUsers.OtchColumn] = global::System.Convert.DBNull;
+            public void SetCommentNull() {
+                this[this.tableAllTkan.CommentColumn] = global::System.Convert.DBNull;
             }
             
             [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
             [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
-            public bool IsPhoneNull() {
-                return this.IsNull(this.tableUsers.PhoneColumn);
+            public bool IsNamePhotoNull() {
+                return this.IsNull(this.tableAllTkan.NamePhotoColumn);
             }
             
             [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
             [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
-            public void SetPhoneNull() {
-                this[this.tableUsers.PhoneColumn] = global::System.Convert.DBNull;
+            public void SetNamePhotoNull() {
+                this[this.tableAllTkan.NamePhotoColumn] = global::System.Convert.DBNull;
             }
             
             [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
             [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
-            public OrdersRow[] GetOrdersRowsByFK_Orders_Users1() {
-                if ((this.Table.ChildRelations["FK_Orders_Users1"] == null)) {
-                    return new OrdersRow[0];
-                }
-                else {
-                    return ((OrdersRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Orders_Users1"])));
-                }
+            public bool IsColorNull() {
+                return this.IsNull(this.tableAllTkan.ColorColumn);
             }
             
             [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
             [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
-            public OrdersRow[] GetOrdersRowsByFK_Orders_Users2() {
-                if ((this.Table.ChildRelations["FK_Orders_Users2"] == null)) {
-                    return new OrdersRow[0];
-                }
-                else {
-                    return ((OrdersRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Orders_Users2"])));
-                }
+            public void SetColorNull() {
+                this[this.tableAllTkan.ColorColumn] = global::System.Convert.DBNull;
             }
         }
         
@@ -4149,6 +4728,40 @@ namespace Швейная_фабрика {
                 }
             }
         }
+        
+        /// <summary>
+        ///Row event argument class
+        ///</summary>
+        [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+        public class AllTkanRowChangeEvent : global::System.EventArgs {
+            
+            private AllTkanRow eventRow;
+            
+            private global::System.Data.DataRowAction eventAction;
+            
+            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+            public AllTkanRowChangeEvent(AllTkanRow row, global::System.Data.DataRowAction action) {
+                this.eventRow = row;
+                this.eventAction = action;
+            }
+            
+            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+            public AllTkanRow Row {
+                get {
+                    return this.eventRow;
+                }
+            }
+            
+            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+            public global::System.Data.DataRowAction Action {
+                get {
+                    return this.eventAction;
+                }
+            }
+        }
     }
 }
 namespace Швейная_фабрика.СlothesFactoryLGDataSetTableAdapters {
@@ -7182,6 +7795,181 @@ SELECT id_User, login, pass, Role, Surname, Name, Otch, Phone FROM Users WHERE (
         }
     }
     
+    /// <summary>
+    ///Represents the connection and commands used to retrieve and save data.
+    ///</summary>
+    [global::System.ComponentModel.DesignerCategoryAttribute("code")]
+    [global::System.ComponentModel.ToolboxItem(true)]
+    [global::System.ComponentModel.DataObjectAttribute(true)]
+    [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
+        ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
+    [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+    public partial class AllTkanTableAdapter : global::System.ComponentModel.Component {
+        
+        private global::System.Data.SqlClient.SqlDataAdapter _adapter;
+        
+        private global::System.Data.SqlClient.SqlConnection _connection;
+        
+        private global::System.Data.SqlClient.SqlTransaction _transaction;
+        
+        private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
+        
+        private bool _clearBeforeFill;
+        
+        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+        [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+        public AllTkanTableAdapter() {
+            this.ClearBeforeFill = true;
+        }
+        
+        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+        [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+        protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
+            get {
+                if ((this._adapter == null)) {
+                    this.InitAdapter();
+                }
+                return this._adapter;
+            }
+        }
+        
+        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+        [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+        internal global::System.Data.SqlClient.SqlConnection Connection {
+            get {
+                if ((this._connection == null)) {
+                    this.InitConnection();
+                }
+                return this._connection;
+            }
+            set {
+                this._connection = value;
+                if ((this.Adapter.InsertCommand != null)) {
+                    this.Adapter.InsertCommand.Connection = value;
+                }
+                if ((this.Adapter.DeleteCommand != null)) {
+                    this.Adapter.DeleteCommand.Connection = value;
+                }
+                if ((this.Adapter.UpdateCommand != null)) {
+                    this.Adapter.UpdateCommand.Connection = value;
+                }
+                for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
+                    if ((this.CommandCollection[i] != null)) {
+                        ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
+                    }
+                }
+            }
+        }
+        
+        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+        [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+        internal global::System.Data.SqlClient.SqlTransaction Transaction {
+            get {
+                return this._transaction;
+            }
+            set {
+                this._transaction = value;
+                for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
+                    this.CommandCollection[i].Transaction = this._transaction;
+                }
+                if (((this.Adapter != null) 
+                            && (this.Adapter.DeleteCommand != null))) {
+                    this.Adapter.DeleteCommand.Transaction = this._transaction;
+                }
+                if (((this.Adapter != null) 
+                            && (this.Adapter.InsertCommand != null))) {
+                    this.Adapter.InsertCommand.Transaction = this._transaction;
+                }
+                if (((this.Adapter != null) 
+                            && (this.Adapter.UpdateCommand != null))) {
+                    this.Adapter.UpdateCommand.Transaction = this._transaction;
+                }
+            }
+        }
+        
+        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+        [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+        protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
+            get {
+                if ((this._commandCollection == null)) {
+                    this.InitCommandCollection();
+                }
+                return this._commandCollection;
+            }
+        }
+        
+        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+        [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+        public bool ClearBeforeFill {
+            get {
+                return this._clearBeforeFill;
+            }
+            set {
+                this._clearBeforeFill = value;
+            }
+        }
+        
+        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+        [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+        private void InitAdapter() {
+            this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
+            global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
+            tableMapping.SourceTable = "Table";
+            tableMapping.DataSetTable = "AllTkan";
+            tableMapping.ColumnMappings.Add("id_Tkan", "id_Tkan");
+            tableMapping.ColumnMappings.Add("Title", "Title");
+            tableMapping.ColumnMappings.Add("Length", "Length");
+            tableMapping.ColumnMappings.Add("Width", "Width");
+            tableMapping.ColumnMappings.Add("Comment", "Comment");
+            tableMapping.ColumnMappings.Add("NamePhoto", "NamePhoto");
+            tableMapping.ColumnMappings.Add("Color", "Color");
+            this._adapter.TableMappings.Add(tableMapping);
+        }
+        
+        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+        [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+        private void InitConnection() {
+            this._connection = new global::System.Data.SqlClient.SqlConnection();
+            this._connection.ConnectionString = global::Швейная_фабрика.Properties.Settings.Default.СlothesFactoryLGConnectionString;
+        }
+        
+        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+        [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+        private void InitCommandCollection() {
+            this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
+            this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
+            this._commandCollection[0].Connection = this.Connection;
+            this._commandCollection[0].CommandText = "SELECT Tkan.id_Tkan, Tkan.Title, Tkan.Length, Tkan.Width, Tkan.Comment, Tkan.Name" +
+                "Photo, Color.Title AS Color\r\nFROM     Tkan INNER JOIN\r\n                  Color O" +
+                "N Tkan.id_color = Color.id_colors";
+            this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
+        }
+        
+        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+        [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+        [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+        [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
+        public virtual int Fill(СlothesFactoryLGDataSet.AllTkanDataTable dataTable) {
+            this.Adapter.SelectCommand = this.CommandCollection[0];
+            if ((this.ClearBeforeFill == true)) {
+                dataTable.Clear();
+            }
+            int returnValue = this.Adapter.Fill(dataTable);
+            return returnValue;
+        }
+        
+        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+        [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+        [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+        [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
+        public virtual СlothesFactoryLGDataSet.AllTkanDataTable GetData() {
+            this.Adapter.SelectCommand = this.CommandCollection[0];
+            СlothesFactoryLGDataSet.AllTkanDataTable dataTable = new СlothesFactoryLGDataSet.AllTkanDataTable();
+            this.Adapter.Fill(dataTable);
+            return dataTable;
+        }
+    }
+    
     /// <summary>
     ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios
     ///</summary>

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

@@ -9,39 +9,29 @@
     <TableUISetting Name="Users">
       <ColumnUISettings>
         <ColumnUISetting Name="pass">
-          <ControlSettings>
-            <ControlSetting ArtifactName="Microsoft:System.Windows.Forms:Form">
+          <ControlSettings><ControlSetting ArtifactName="Microsoft:System.Windows.Forms:Form" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
               <BindableControlInfo Name="Label" Type="System.Windows.Forms.Label" AssemblyName="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
-            </ControlSetting>
-          </ControlSettings>
+            </ControlSetting></ControlSettings>
         </ColumnUISetting>
         <ColumnUISetting Name="Surname">
-          <ControlSettings>
-            <ControlSetting ArtifactName="Microsoft:System.Windows.Forms:Form">
+          <ControlSettings><ControlSetting ArtifactName="Microsoft:System.Windows.Forms:Form" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
               <BindableControlInfo Name="Label" Type="System.Windows.Forms.Label" AssemblyName="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
-            </ControlSetting>
-          </ControlSettings>
+            </ControlSetting></ControlSettings>
         </ColumnUISetting>
         <ColumnUISetting Name="Name">
-          <ControlSettings>
-            <ControlSetting ArtifactName="Microsoft:System.Windows.Forms:Form">
+          <ControlSettings><ControlSetting ArtifactName="Microsoft:System.Windows.Forms:Form" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
               <BindableControlInfo Name="Label" Type="System.Windows.Forms.Label" AssemblyName="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
-            </ControlSetting>
-          </ControlSettings>
+            </ControlSetting></ControlSettings>
         </ColumnUISetting>
         <ColumnUISetting Name="Otch">
-          <ControlSettings>
-            <ControlSetting ArtifactName="Microsoft:System.Windows.Forms:Form">
+          <ControlSettings><ControlSetting ArtifactName="Microsoft:System.Windows.Forms:Form" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
               <BindableControlInfo Name="Label" Type="System.Windows.Forms.Label" AssemblyName="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
-            </ControlSetting>
-          </ControlSettings>
+            </ControlSetting></ControlSettings>
         </ColumnUISetting>
         <ColumnUISetting Name="Phone">
-          <ControlSettings>
-            <ControlSetting ArtifactName="Microsoft:System.Windows.Forms:Form">
+          <ControlSettings><ControlSetting ArtifactName="Microsoft:System.Windows.Forms:Form" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
               <BindableControlInfo Name="MaskedTextBox" Type="System.Windows.Forms.MaskedTextBox" AssemblyName="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Frameworks=".NETFramework,Version=v2.0;.NETFramework,Version=v3.0;.NETFramework,Version=v3.5;.NETFramework,Version=v4.0;.NETFramework,Version=v4.8;.NETFramework,Version=v4.7.2" />
-            </ControlSetting>
-          </ControlSettings>
+            </ControlSetting></ControlSettings>
         </ColumnUISetting>
       </ColumnUISettings>
     </TableUISetting>

+ 111 - 46
Швейная фабрика/СlothesFactoryLGDataSet.xsd

@@ -497,19 +497,43 @@ SELECT id_User, login, pass, Role, Surname, Name, Otch, Phone FROM Users WHERE (
             </Mappings>
             <Sources />
           </TableAdapter>
+          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="AllTkanTableAdapter" GeneratorDataComponentClassName="AllTkanTableAdapter" Name="AllTkan" UserDataComponentName="AllTkanTableAdapter">
+            <MainSource>
+              <DbSource ConnectionRef="СlothesFactoryLGConnectionString (Settings)" DbObjectType="Unknown" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="false" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
+                <SelectCommand>
+                  <DbCommand CommandType="Text" ModifiedByUser="true">
+                    <CommandText>SELECT Tkan.id_Tkan, Tkan.Title, Tkan.Length, Tkan.Width, Tkan.Comment, Tkan.NamePhoto, Color.Title AS Color
+FROM     Tkan INNER JOIN
+                  Color ON Tkan.id_color = Color.id_colors</CommandText>
+                    <Parameters />
+                  </DbCommand>
+                </SelectCommand>
+              </DbSource>
+            </MainSource>
+            <Mappings>
+              <Mapping SourceColumn="id_Tkan" DataSetColumn="id_Tkan" />
+              <Mapping SourceColumn="Title" DataSetColumn="Title" />
+              <Mapping SourceColumn="Length" DataSetColumn="Length" />
+              <Mapping SourceColumn="Width" DataSetColumn="Width" />
+              <Mapping SourceColumn="Comment" DataSetColumn="Comment" />
+              <Mapping SourceColumn="NamePhoto" DataSetColumn="NamePhoto" />
+              <Mapping SourceColumn="Color" DataSetColumn="Color" />
+            </Mappings>
+            <Sources />
+          </TableAdapter>
         </Tables>
         <Sources />
       </DataSource>
     </xs:appinfo>
   </xs:annotation>
-  <xs:element name="СlothesFactoryLGDataSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="True" msprop:Generator_UserDSName="СlothesFactoryLGDataSet" msprop:Generator_DataSetName="СlothesFactoryLGDataSet">
+  <xs:element name="СlothesFactoryLGDataSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:Generator_UserDSName="СlothesFactoryLGDataSet" msprop:EnableTableAdapterManager="True" msprop:Generator_DataSetName="СlothesFactoryLGDataSet">
     <xs:complexType>
       <xs:choice minOccurs="0" maxOccurs="unbounded">
-        <xs:element name="Color" msprop:Generator_RowEvHandlerName="ColorRowChangeEventHandler" msprop:Generator_RowDeletedName="ColorRowDeleted" msprop:Generator_RowDeletingName="ColorRowDeleting" msprop:Generator_RowEvArgName="ColorRowChangeEvent" msprop:Generator_TablePropName="Color" msprop:Generator_RowChangedName="ColorRowChanged" msprop:Generator_RowChangingName="ColorRowChanging" msprop:Generator_TableClassName="ColorDataTable" msprop:Generator_RowClassName="ColorRow" msprop:Generator_TableVarName="tableColor" msprop:Generator_UserTableName="Color">
+        <xs:element name="Color" msprop:Generator_RowEvHandlerName="ColorRowChangeEventHandler" msprop:Generator_RowDeletedName="ColorRowDeleted" msprop:Generator_RowDeletingName="ColorRowDeleting" msprop:Generator_RowEvArgName="ColorRowChangeEvent" msprop:Generator_TablePropName="Color" msprop:Generator_RowChangedName="ColorRowChanged" msprop:Generator_UserTableName="Color" msprop:Generator_RowChangingName="ColorRowChanging" msprop:Generator_RowClassName="ColorRow" msprop:Generator_TableClassName="ColorDataTable" msprop:Generator_TableVarName="tableColor">
           <xs:complexType>
             <xs:sequence>
-              <xs:element name="id_colors" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnPropNameInRow="id_colors" msprop:Generator_ColumnPropNameInTable="id_colorsColumn" msprop:Generator_ColumnVarNameInTable="columnid_colors" msprop:Generator_UserColumnName="id_colors" type="xs:int" />
-              <xs:element name="Title" msprop:Generator_ColumnPropNameInRow="Title" msprop:Generator_ColumnPropNameInTable="TitleColumn" msprop:Generator_ColumnVarNameInTable="columnTitle" msprop:Generator_UserColumnName="Title" minOccurs="0">
+              <xs:element name="id_colors" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnPropNameInTable="id_colorsColumn" msprop:Generator_ColumnPropNameInRow="id_colors" msprop:Generator_UserColumnName="id_colors" msprop:Generator_ColumnVarNameInTable="columnid_colors" type="xs:int" />
+              <xs:element name="Title" msprop:Generator_ColumnPropNameInTable="TitleColumn" msprop:Generator_ColumnPropNameInRow="Title" msprop:Generator_UserColumnName="Title" msprop:Generator_ColumnVarNameInTable="columnTitle" minOccurs="0">
                 <xs:simpleType>
                   <xs:restriction base="xs:string">
                     <xs:maxLength value="50" />
@@ -519,63 +543,63 @@ SELECT id_User, login, pass, Role, Surname, Name, Otch, Phone FROM Users WHERE (
             </xs:sequence>
           </xs:complexType>
         </xs:element>
-        <xs:element name="Furnitura" msprop:Generator_RowEvHandlerName="FurnituraRowChangeEventHandler" msprop:Generator_RowDeletedName="FurnituraRowDeleted" msprop:Generator_RowDeletingName="FurnituraRowDeleting" msprop:Generator_RowEvArgName="FurnituraRowChangeEvent" msprop:Generator_TablePropName="Furnitura" msprop:Generator_RowChangedName="FurnituraRowChanged" msprop:Generator_RowChangingName="FurnituraRowChanging" msprop:Generator_TableClassName="FurnituraDataTable" msprop:Generator_RowClassName="FurnituraRow" msprop:Generator_TableVarName="tableFurnitura" msprop:Generator_UserTableName="Furnitura">
+        <xs:element name="Furnitura" msprop:Generator_RowEvHandlerName="FurnituraRowChangeEventHandler" msprop:Generator_RowDeletedName="FurnituraRowDeleted" msprop:Generator_RowDeletingName="FurnituraRowDeleting" msprop:Generator_RowEvArgName="FurnituraRowChangeEvent" msprop:Generator_TablePropName="Furnitura" msprop:Generator_RowChangedName="FurnituraRowChanged" msprop:Generator_UserTableName="Furnitura" msprop:Generator_RowChangingName="FurnituraRowChanging" msprop:Generator_RowClassName="FurnituraRow" msprop:Generator_TableClassName="FurnituraDataTable" msprop:Generator_TableVarName="tableFurnitura">
           <xs:complexType>
             <xs:sequence>
-              <xs:element name="id_fur" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnPropNameInRow="id_fur" msprop:Generator_ColumnPropNameInTable="id_furColumn" msprop:Generator_ColumnVarNameInTable="columnid_fur" msprop:Generator_UserColumnName="id_fur" type="xs:int" />
-              <xs:element name="namefur" msprop:Generator_ColumnPropNameInRow="namefur" msprop:Generator_ColumnPropNameInTable="namefurColumn" msprop:Generator_ColumnVarNameInTable="columnnamefur" msprop:Generator_UserColumnName="namefur" minOccurs="0">
+              <xs:element name="id_fur" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnPropNameInTable="id_furColumn" msprop:Generator_ColumnPropNameInRow="id_fur" msprop:Generator_UserColumnName="id_fur" msprop:Generator_ColumnVarNameInTable="columnid_fur" type="xs:int" />
+              <xs:element name="namefur" msprop:Generator_ColumnPropNameInTable="namefurColumn" msprop:Generator_ColumnPropNameInRow="namefur" msprop:Generator_UserColumnName="namefur" msprop:Generator_ColumnVarNameInTable="columnnamefur" minOccurs="0">
                 <xs:simpleType>
                   <xs:restriction base="xs:string">
                     <xs:maxLength value="50" />
                   </xs:restriction>
                 </xs:simpleType>
               </xs:element>
-              <xs:element name="photo" msprop:Generator_ColumnPropNameInRow="photo" msprop:Generator_ColumnPropNameInTable="photoColumn" msprop:Generator_ColumnVarNameInTable="columnphoto" msprop:Generator_UserColumnName="photo" minOccurs="0">
+              <xs:element name="photo" msprop:Generator_ColumnPropNameInTable="photoColumn" msprop:Generator_ColumnPropNameInRow="photo" msprop:Generator_UserColumnName="photo" msprop:Generator_ColumnVarNameInTable="columnphoto" minOccurs="0">
                 <xs:simpleType>
                   <xs:restriction base="xs:string">
                     <xs:maxLength value="50" />
                   </xs:restriction>
                 </xs:simpleType>
               </xs:element>
-              <xs:element name="countfur" msprop:Generator_ColumnPropNameInRow="countfur" msprop:Generator_ColumnPropNameInTable="countfurColumn" msprop:Generator_ColumnVarNameInTable="columncountfur" msprop:Generator_UserColumnName="countfur" type="xs:int" minOccurs="0" />
+              <xs:element name="countfur" msprop:Generator_ColumnPropNameInTable="countfurColumn" msprop:Generator_ColumnPropNameInRow="countfur" msprop:Generator_UserColumnName="countfur" msprop:Generator_ColumnVarNameInTable="columncountfur" type="xs:int" minOccurs="0" />
             </xs:sequence>
           </xs:complexType>
         </xs:element>
-        <xs:element name="Izdelie" msprop:Generator_RowEvHandlerName="IzdelieRowChangeEventHandler" msprop:Generator_RowDeletedName="IzdelieRowDeleted" msprop:Generator_RowDeletingName="IzdelieRowDeleting" msprop:Generator_RowEvArgName="IzdelieRowChangeEvent" msprop:Generator_TablePropName="Izdelie" msprop:Generator_RowChangedName="IzdelieRowChanged" msprop:Generator_RowChangingName="IzdelieRowChanging" msprop:Generator_TableClassName="IzdelieDataTable" msprop:Generator_RowClassName="IzdelieRow" msprop:Generator_TableVarName="tableIzdelie" msprop:Generator_UserTableName="Izdelie">
+        <xs:element name="Izdelie" msprop:Generator_RowEvHandlerName="IzdelieRowChangeEventHandler" msprop:Generator_RowDeletedName="IzdelieRowDeleted" msprop:Generator_RowDeletingName="IzdelieRowDeleting" msprop:Generator_RowEvArgName="IzdelieRowChangeEvent" msprop:Generator_TablePropName="Izdelie" msprop:Generator_RowChangedName="IzdelieRowChanged" msprop:Generator_UserTableName="Izdelie" msprop:Generator_RowChangingName="IzdelieRowChanging" msprop:Generator_RowClassName="IzdelieRow" msprop:Generator_TableClassName="IzdelieDataTable" msprop:Generator_TableVarName="tableIzdelie">
           <xs:complexType>
             <xs:sequence>
-              <xs:element name="id_izd" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnPropNameInRow="id_izd" msprop:Generator_ColumnPropNameInTable="id_izdColumn" msprop:Generator_ColumnVarNameInTable="columnid_izd" msprop:Generator_UserColumnName="id_izd" type="xs:int" />
-              <xs:element name="name_izd" msprop:Generator_ColumnPropNameInRow="name_izd" msprop:Generator_ColumnPropNameInTable="name_izdColumn" msprop:Generator_ColumnVarNameInTable="columnname_izd" msprop:Generator_UserColumnName="name_izd" minOccurs="0">
+              <xs:element name="id_izd" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnPropNameInTable="id_izdColumn" msprop:Generator_ColumnPropNameInRow="id_izd" msprop:Generator_UserColumnName="id_izd" msprop:Generator_ColumnVarNameInTable="columnid_izd" type="xs:int" />
+              <xs:element name="name_izd" msprop:Generator_ColumnPropNameInTable="name_izdColumn" msprop:Generator_ColumnPropNameInRow="name_izd" msprop:Generator_UserColumnName="name_izd" msprop:Generator_ColumnVarNameInTable="columnname_izd" minOccurs="0">
                 <xs:simpleType>
                   <xs:restriction base="xs:string">
                     <xs:maxLength value="50" />
                   </xs:restriction>
                 </xs:simpleType>
               </xs:element>
-              <xs:element name="length" msprop:Generator_ColumnPropNameInRow="length" msprop:Generator_ColumnPropNameInTable="lengthColumn" msprop:Generator_ColumnVarNameInTable="columnlength" msprop:Generator_UserColumnName="length" type="xs:int" minOccurs="0" />
-              <xs:element name="width" msprop:Generator_ColumnPropNameInRow="width" msprop:Generator_ColumnPropNameInTable="widthColumn" msprop:Generator_ColumnVarNameInTable="columnwidth" msprop:Generator_UserColumnName="width" type="xs:int" minOccurs="0" />
+              <xs:element name="length" msprop:Generator_ColumnPropNameInTable="lengthColumn" msprop:Generator_ColumnPropNameInRow="length" msprop:Generator_UserColumnName="length" msprop:Generator_ColumnVarNameInTable="columnlength" type="xs:int" minOccurs="0" />
+              <xs:element name="width" msprop:Generator_ColumnPropNameInTable="widthColumn" msprop:Generator_ColumnPropNameInRow="width" msprop:Generator_UserColumnName="width" msprop:Generator_ColumnVarNameInTable="columnwidth" type="xs:int" minOccurs="0" />
             </xs:sequence>
           </xs:complexType>
         </xs:element>
-        <xs:element name="Orders" msprop:Generator_RowEvHandlerName="OrdersRowChangeEventHandler" msprop:Generator_RowDeletedName="OrdersRowDeleted" msprop:Generator_RowDeletingName="OrdersRowDeleting" msprop:Generator_RowEvArgName="OrdersRowChangeEvent" msprop:Generator_TablePropName="Orders" msprop:Generator_RowChangedName="OrdersRowChanged" msprop:Generator_RowChangingName="OrdersRowChanging" msprop:Generator_TableClassName="OrdersDataTable" msprop:Generator_RowClassName="OrdersRow" msprop:Generator_TableVarName="tableOrders" msprop:Generator_UserTableName="Orders">
+        <xs:element name="Orders" msprop:Generator_RowEvHandlerName="OrdersRowChangeEventHandler" msprop:Generator_RowDeletedName="OrdersRowDeleted" msprop:Generator_RowDeletingName="OrdersRowDeleting" msprop:Generator_RowEvArgName="OrdersRowChangeEvent" msprop:Generator_TablePropName="Orders" msprop:Generator_RowChangedName="OrdersRowChanged" msprop:Generator_UserTableName="Orders" msprop:Generator_RowChangingName="OrdersRowChanging" msprop:Generator_RowClassName="OrdersRow" msprop:Generator_TableClassName="OrdersDataTable" msprop:Generator_TableVarName="tableOrders">
           <xs:complexType>
             <xs:sequence>
-              <xs:element name="id_order" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnPropNameInRow="id_order" msprop:Generator_ColumnPropNameInTable="id_orderColumn" msprop:Generator_ColumnVarNameInTable="columnid_order" msprop:Generator_UserColumnName="id_order" type="xs:int" />
-              <xs:element name="id_izd" msprop:Generator_ColumnPropNameInRow="id_izd" msprop:Generator_ColumnPropNameInTable="id_izdColumn" msprop:Generator_ColumnVarNameInTable="columnid_izd" msprop:Generator_UserColumnName="id_izd" type="xs:int" minOccurs="0" />
-              <xs:element name="id_zak" msprop:Generator_ColumnPropNameInRow="id_zak" msprop:Generator_ColumnPropNameInTable="id_zakColumn" msprop:Generator_ColumnVarNameInTable="columnid_zak" msprop:Generator_UserColumnName="id_zak" type="xs:int" minOccurs="0" />
-              <xs:element name="id_men" msprop:Generator_ColumnPropNameInRow="id_men" msprop:Generator_ColumnPropNameInTable="id_menColumn" msprop:Generator_ColumnVarNameInTable="columnid_men" msprop:Generator_UserColumnName="id_men" type="xs:int" minOccurs="0" />
-              <xs:element name="id_tkan" msprop:Generator_ColumnPropNameInRow="id_tkan" msprop:Generator_ColumnPropNameInTable="id_tkanColumn" msprop:Generator_ColumnVarNameInTable="columnid_tkan" msprop:Generator_UserColumnName="id_tkan" type="xs:int" minOccurs="0" />
-              <xs:element name="id_fur" msprop:Generator_ColumnPropNameInRow="id_fur" msprop:Generator_ColumnPropNameInTable="id_furColumn" msprop:Generator_ColumnVarNameInTable="columnid_fur" msprop:Generator_UserColumnName="id_fur" type="xs:int" minOccurs="0" />
-              <xs:element name="CountFur" msprop:Generator_ColumnPropNameInRow="CountFur" msprop:Generator_ColumnPropNameInTable="CountFurColumn" msprop:Generator_ColumnVarNameInTable="columnCountFur" msprop:Generator_UserColumnName="CountFur" type="xs:int" minOccurs="0" />
-              <xs:element name="CountIzd" msprop:Generator_ColumnPropNameInRow="CountIzd" msprop:Generator_ColumnPropNameInTable="CountIzdColumn" msprop:Generator_ColumnVarNameInTable="columnCountIzd" msprop:Generator_UserColumnName="CountIzd" type="xs:int" minOccurs="0" />
+              <xs:element name="id_order" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnPropNameInTable="id_orderColumn" msprop:Generator_ColumnPropNameInRow="id_order" msprop:Generator_UserColumnName="id_order" msprop:Generator_ColumnVarNameInTable="columnid_order" type="xs:int" />
+              <xs:element name="id_izd" msprop:Generator_ColumnPropNameInTable="id_izdColumn" msprop:Generator_ColumnPropNameInRow="id_izd" msprop:Generator_UserColumnName="id_izd" msprop:Generator_ColumnVarNameInTable="columnid_izd" type="xs:int" minOccurs="0" />
+              <xs:element name="id_zak" msprop:Generator_ColumnPropNameInTable="id_zakColumn" msprop:Generator_ColumnPropNameInRow="id_zak" msprop:Generator_UserColumnName="id_zak" msprop:Generator_ColumnVarNameInTable="columnid_zak" type="xs:int" minOccurs="0" />
+              <xs:element name="id_men" msprop:Generator_ColumnPropNameInTable="id_menColumn" msprop:Generator_ColumnPropNameInRow="id_men" msprop:Generator_UserColumnName="id_men" msprop:Generator_ColumnVarNameInTable="columnid_men" type="xs:int" minOccurs="0" />
+              <xs:element name="id_tkan" msprop:Generator_ColumnPropNameInTable="id_tkanColumn" msprop:Generator_ColumnPropNameInRow="id_tkan" msprop:Generator_UserColumnName="id_tkan" msprop:Generator_ColumnVarNameInTable="columnid_tkan" type="xs:int" minOccurs="0" />
+              <xs:element name="id_fur" msprop:Generator_ColumnPropNameInTable="id_furColumn" msprop:Generator_ColumnPropNameInRow="id_fur" msprop:Generator_UserColumnName="id_fur" msprop:Generator_ColumnVarNameInTable="columnid_fur" type="xs:int" minOccurs="0" />
+              <xs:element name="CountFur" msprop:Generator_ColumnPropNameInTable="CountFurColumn" msprop:Generator_ColumnPropNameInRow="CountFur" msprop:Generator_UserColumnName="CountFur" msprop:Generator_ColumnVarNameInTable="columnCountFur" type="xs:int" minOccurs="0" />
+              <xs:element name="CountIzd" msprop:Generator_ColumnPropNameInTable="CountIzdColumn" msprop:Generator_ColumnPropNameInRow="CountIzd" msprop:Generator_UserColumnName="CountIzd" msprop:Generator_ColumnVarNameInTable="columnCountIzd" type="xs:int" minOccurs="0" />
             </xs:sequence>
           </xs:complexType>
         </xs:element>
-        <xs:element name="Roles" msprop:Generator_RowEvHandlerName="RolesRowChangeEventHandler" msprop:Generator_RowDeletedName="RolesRowDeleted" msprop:Generator_RowDeletingName="RolesRowDeleting" msprop:Generator_RowEvArgName="RolesRowChangeEvent" msprop:Generator_TablePropName="Roles" msprop:Generator_RowChangedName="RolesRowChanged" msprop:Generator_RowChangingName="RolesRowChanging" msprop:Generator_TableClassName="RolesDataTable" msprop:Generator_RowClassName="RolesRow" msprop:Generator_TableVarName="tableRoles" msprop:Generator_UserTableName="Roles">
+        <xs:element name="Roles" msprop:Generator_RowEvHandlerName="RolesRowChangeEventHandler" msprop:Generator_RowDeletedName="RolesRowDeleted" msprop:Generator_RowDeletingName="RolesRowDeleting" msprop:Generator_RowEvArgName="RolesRowChangeEvent" msprop:Generator_TablePropName="Roles" msprop:Generator_RowChangedName="RolesRowChanged" msprop:Generator_UserTableName="Roles" msprop:Generator_RowChangingName="RolesRowChanging" msprop:Generator_RowClassName="RolesRow" msprop:Generator_TableClassName="RolesDataTable" msprop:Generator_TableVarName="tableRoles">
           <xs:complexType>
             <xs:sequence>
-              <xs:element name="id_Roles" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnPropNameInRow="id_Roles" msprop:Generator_ColumnPropNameInTable="id_RolesColumn" msprop:Generator_ColumnVarNameInTable="columnid_Roles" msprop:Generator_UserColumnName="id_Roles" type="xs:int" />
-              <xs:element name="Title" msprop:Generator_ColumnPropNameInRow="Title" msprop:Generator_ColumnPropNameInTable="TitleColumn" msprop:Generator_ColumnVarNameInTable="columnTitle" msprop:Generator_UserColumnName="Title" minOccurs="0">
+              <xs:element name="id_Roles" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnPropNameInTable="id_RolesColumn" msprop:Generator_ColumnPropNameInRow="id_Roles" msprop:Generator_UserColumnName="id_Roles" msprop:Generator_ColumnVarNameInTable="columnid_Roles" type="xs:int" />
+              <xs:element name="Title" msprop:Generator_ColumnPropNameInTable="TitleColumn" msprop:Generator_ColumnPropNameInRow="Title" msprop:Generator_UserColumnName="Title" msprop:Generator_ColumnVarNameInTable="columnTitle" minOccurs="0">
                 <xs:simpleType>
                   <xs:restriction base="xs:string">
                     <xs:maxLength value="50" />
@@ -585,28 +609,28 @@ SELECT id_User, login, pass, Role, Surname, Name, Otch, Phone FROM Users WHERE (
             </xs:sequence>
           </xs:complexType>
         </xs:element>
-        <xs:element name="Tkan" msprop:Generator_RowEvHandlerName="TkanRowChangeEventHandler" msprop:Generator_RowDeletedName="TkanRowDeleted" msprop:Generator_RowDeletingName="TkanRowDeleting" msprop:Generator_RowEvArgName="TkanRowChangeEvent" msprop:Generator_TablePropName="Tkan" msprop:Generator_RowChangedName="TkanRowChanged" msprop:Generator_RowChangingName="TkanRowChanging" msprop:Generator_TableClassName="TkanDataTable" msprop:Generator_RowClassName="TkanRow" msprop:Generator_TableVarName="tableTkan" msprop:Generator_UserTableName="Tkan">
+        <xs:element name="Tkan" msprop:Generator_RowEvHandlerName="TkanRowChangeEventHandler" msprop:Generator_RowDeletedName="TkanRowDeleted" msprop:Generator_RowDeletingName="TkanRowDeleting" msprop:Generator_RowEvArgName="TkanRowChangeEvent" msprop:Generator_TablePropName="Tkan" msprop:Generator_RowChangedName="TkanRowChanged" msprop:Generator_UserTableName="Tkan" msprop:Generator_RowChangingName="TkanRowChanging" msprop:Generator_RowClassName="TkanRow" msprop:Generator_TableClassName="TkanDataTable" msprop:Generator_TableVarName="tableTkan">
           <xs:complexType>
             <xs:sequence>
-              <xs:element name="id_Tkan" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnPropNameInRow="id_Tkan" msprop:Generator_ColumnPropNameInTable="id_TkanColumn" msprop:Generator_ColumnVarNameInTable="columnid_Tkan" msprop:Generator_UserColumnName="id_Tkan" type="xs:int" />
-              <xs:element name="Title" msprop:Generator_ColumnPropNameInRow="Title" msprop:Generator_ColumnPropNameInTable="TitleColumn" msprop:Generator_ColumnVarNameInTable="columnTitle" msprop:Generator_UserColumnName="Title" minOccurs="0">
+              <xs:element name="id_Tkan" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnPropNameInTable="id_TkanColumn" msprop:Generator_ColumnPropNameInRow="id_Tkan" msprop:Generator_UserColumnName="id_Tkan" msprop:Generator_ColumnVarNameInTable="columnid_Tkan" type="xs:int" />
+              <xs:element name="Title" msprop:Generator_ColumnPropNameInTable="TitleColumn" msprop:Generator_ColumnPropNameInRow="Title" msprop:Generator_UserColumnName="Title" msprop:Generator_ColumnVarNameInTable="columnTitle" minOccurs="0">
                 <xs:simpleType>
                   <xs:restriction base="xs:string">
                     <xs:maxLength value="50" />
                   </xs:restriction>
                 </xs:simpleType>
               </xs:element>
-              <xs:element name="id_color" msprop:Generator_ColumnPropNameInRow="id_color" msprop:Generator_ColumnPropNameInTable="id_colorColumn" msprop:Generator_ColumnVarNameInTable="columnid_color" msprop:Generator_UserColumnName="id_color" type="xs:int" minOccurs="0" />
-              <xs:element name="Length" msprop:Generator_ColumnPropNameInRow="Length" msprop:Generator_ColumnPropNameInTable="LengthColumn" msprop:Generator_ColumnVarNameInTable="columnLength" msprop:Generator_UserColumnName="Length" type="xs:int" minOccurs="0" />
-              <xs:element name="Width" msprop:Generator_ColumnPropNameInRow="Width" msprop:Generator_ColumnPropNameInTable="WidthColumn" msprop:Generator_ColumnVarNameInTable="columnWidth" msprop:Generator_UserColumnName="Width" type="xs:int" minOccurs="0" />
-              <xs:element name="Comment" msprop:Generator_ColumnPropNameInRow="Comment" msprop:Generator_ColumnPropNameInTable="CommentColumn" msprop:Generator_ColumnVarNameInTable="columnComment" msprop:Generator_UserColumnName="Comment" minOccurs="0">
+              <xs:element name="id_color" msprop:Generator_ColumnPropNameInTable="id_colorColumn" msprop:Generator_ColumnPropNameInRow="id_color" msprop:Generator_UserColumnName="id_color" msprop:Generator_ColumnVarNameInTable="columnid_color" type="xs:int" minOccurs="0" />
+              <xs:element name="Length" msprop:Generator_ColumnPropNameInTable="LengthColumn" msprop:Generator_ColumnPropNameInRow="Length" msprop:Generator_UserColumnName="Length" msprop:Generator_ColumnVarNameInTable="columnLength" type="xs:int" minOccurs="0" />
+              <xs:element name="Width" msprop:Generator_ColumnPropNameInTable="WidthColumn" msprop:Generator_ColumnPropNameInRow="Width" msprop:Generator_UserColumnName="Width" msprop:Generator_ColumnVarNameInTable="columnWidth" type="xs:int" minOccurs="0" />
+              <xs:element name="Comment" msprop:Generator_ColumnPropNameInTable="CommentColumn" msprop:Generator_ColumnPropNameInRow="Comment" msprop:Generator_UserColumnName="Comment" msprop:Generator_ColumnVarNameInTable="columnComment" minOccurs="0">
                 <xs:simpleType>
                   <xs:restriction base="xs:string">
                     <xs:maxLength value="50" />
                   </xs:restriction>
                 </xs:simpleType>
               </xs:element>
-              <xs:element name="NamePhoto" msprop:Generator_ColumnPropNameInRow="NamePhoto" msprop:Generator_ColumnPropNameInTable="NamePhotoColumn" msprop:Generator_ColumnVarNameInTable="columnNamePhoto" msprop:Generator_UserColumnName="NamePhoto" minOccurs="0">
+              <xs:element name="NamePhoto" msprop:Generator_ColumnPropNameInTable="NamePhotoColumn" msprop:Generator_ColumnPropNameInRow="NamePhoto" msprop:Generator_UserColumnName="NamePhoto" msprop:Generator_ColumnVarNameInTable="columnNamePhoto" minOccurs="0">
                 <xs:simpleType>
                   <xs:restriction base="xs:string">
                     <xs:maxLength value="50" />
@@ -616,47 +640,84 @@ SELECT id_User, login, pass, Role, Surname, Name, Otch, Phone FROM Users WHERE (
             </xs:sequence>
           </xs:complexType>
         </xs:element>
-        <xs:element name="Users" msprop:Generator_RowEvHandlerName="UsersRowChangeEventHandler" msprop:Generator_RowDeletedName="UsersRowDeleted" msprop:Generator_RowDeletingName="UsersRowDeleting" msprop:Generator_RowEvArgName="UsersRowChangeEvent" msprop:Generator_TablePropName="Users" msprop:Generator_RowChangedName="UsersRowChanged" msprop:Generator_RowChangingName="UsersRowChanging" msprop:Generator_TableClassName="UsersDataTable" msprop:Generator_RowClassName="UsersRow" msprop:Generator_TableVarName="tableUsers" msprop:Generator_UserTableName="Users">
+        <xs:element name="Users" msprop:Generator_RowEvHandlerName="UsersRowChangeEventHandler" msprop:Generator_RowDeletedName="UsersRowDeleted" msprop:Generator_RowDeletingName="UsersRowDeleting" msprop:Generator_RowEvArgName="UsersRowChangeEvent" msprop:Generator_TablePropName="Users" msprop:Generator_RowChangedName="UsersRowChanged" msprop:Generator_UserTableName="Users" msprop:Generator_RowChangingName="UsersRowChanging" msprop:Generator_RowClassName="UsersRow" msprop:Generator_TableClassName="UsersDataTable" msprop:Generator_TableVarName="tableUsers">
           <xs:complexType>
             <xs:sequence>
-              <xs:element name="id_User" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnPropNameInRow="id_User" msprop:Generator_ColumnPropNameInTable="id_UserColumn" msprop:Generator_ColumnVarNameInTable="columnid_User" msprop:Generator_UserColumnName="id_User" type="xs:int" />
-              <xs:element name="login" msprop:Generator_ColumnPropNameInRow="login" msprop:Generator_ColumnPropNameInTable="loginColumn" msprop:Generator_ColumnVarNameInTable="columnlogin" msprop:Generator_UserColumnName="login" minOccurs="0">
+              <xs:element name="id_User" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnPropNameInTable="id_UserColumn" msprop:Generator_ColumnPropNameInRow="id_User" msprop:Generator_UserColumnName="id_User" msprop:Generator_ColumnVarNameInTable="columnid_User" type="xs:int" />
+              <xs:element name="login" msprop:Generator_ColumnPropNameInTable="loginColumn" msprop:Generator_ColumnPropNameInRow="login" msprop:Generator_UserColumnName="login" msprop:Generator_ColumnVarNameInTable="columnlogin" minOccurs="0">
+                <xs:simpleType>
+                  <xs:restriction base="xs:string">
+                    <xs:maxLength value="50" />
+                  </xs:restriction>
+                </xs:simpleType>
+              </xs:element>
+              <xs:element name="pass" msprop:Generator_ColumnPropNameInTable="passColumn" msprop:Generator_ColumnPropNameInRow="pass" msprop:Generator_UserColumnName="pass" msprop:Generator_ColumnVarNameInTable="columnpass" minOccurs="0">
+                <xs:simpleType>
+                  <xs:restriction base="xs:string">
+                    <xs:maxLength value="50" />
+                  </xs:restriction>
+                </xs:simpleType>
+              </xs:element>
+              <xs:element name="Role" msprop:Generator_ColumnPropNameInTable="RoleColumn" msprop:Generator_ColumnPropNameInRow="Role" msprop:Generator_UserColumnName="Role" msprop:Generator_ColumnVarNameInTable="columnRole" type="xs:int" minOccurs="0" />
+              <xs:element name="Surname" msprop:Generator_ColumnPropNameInTable="SurnameColumn" msprop:Generator_ColumnPropNameInRow="Surname" msprop:Generator_UserColumnName="Surname" msprop:Generator_ColumnVarNameInTable="columnSurname" minOccurs="0">
+                <xs:simpleType>
+                  <xs:restriction base="xs:string">
+                    <xs:maxLength value="50" />
+                  </xs:restriction>
+                </xs:simpleType>
+              </xs:element>
+              <xs:element name="Name" msprop:Generator_ColumnPropNameInTable="NameColumn" msprop:Generator_ColumnPropNameInRow="Name" msprop:Generator_UserColumnName="Name" msprop:Generator_ColumnVarNameInTable="columnName" minOccurs="0">
+                <xs:simpleType>
+                  <xs:restriction base="xs:string">
+                    <xs:maxLength value="50" />
+                  </xs:restriction>
+                </xs:simpleType>
+              </xs:element>
+              <xs:element name="Otch" msprop:Generator_ColumnPropNameInTable="OtchColumn" msprop:Generator_ColumnPropNameInRow="Otch" msprop:Generator_UserColumnName="Otch" msprop:Generator_ColumnVarNameInTable="columnOtch" minOccurs="0">
                 <xs:simpleType>
                   <xs:restriction base="xs:string">
                     <xs:maxLength value="50" />
                   </xs:restriction>
                 </xs:simpleType>
               </xs:element>
-              <xs:element name="pass" msprop:Generator_ColumnPropNameInRow="pass" msprop:Generator_ColumnPropNameInTable="passColumn" msprop:Generator_ColumnVarNameInTable="columnpass" msprop:Generator_UserColumnName="pass" minOccurs="0">
+              <xs:element name="Phone" msprop:Generator_ColumnPropNameInTable="PhoneColumn" msprop:Generator_ColumnPropNameInRow="Phone" msprop:Generator_UserColumnName="Phone" msprop:Generator_ColumnVarNameInTable="columnPhone" minOccurs="0">
                 <xs:simpleType>
                   <xs:restriction base="xs:string">
                     <xs:maxLength value="50" />
                   </xs:restriction>
                 </xs:simpleType>
               </xs:element>
-              <xs:element name="Role" msprop:Generator_ColumnPropNameInRow="Role" msprop:Generator_ColumnPropNameInTable="RoleColumn" msprop:Generator_ColumnVarNameInTable="columnRole" msprop:Generator_UserColumnName="Role" type="xs:int" minOccurs="0" />
-              <xs:element name="Surname" msprop:Generator_ColumnPropNameInRow="Surname" msprop:Generator_ColumnPropNameInTable="SurnameColumn" msprop:Generator_ColumnVarNameInTable="columnSurname" msprop:Generator_UserColumnName="Surname" minOccurs="0">
+            </xs:sequence>
+          </xs:complexType>
+        </xs:element>
+        <xs:element name="AllTkan" msprop:Generator_RowClassName="AllTkanRow" msprop:Generator_RowEvHandlerName="AllTkanRowChangeEventHandler" msprop:Generator_RowDeletedName="AllTkanRowDeleted" msprop:Generator_RowDeletingName="AllTkanRowDeleting" msprop:Generator_RowEvArgName="AllTkanRowChangeEvent" msprop:Generator_TablePropName="AllTkan" msprop:Generator_RowChangedName="AllTkanRowChanged" msprop:Generator_UserTableName="AllTkan" msprop:Generator_RowChangingName="AllTkanRowChanging" msprop:Generator_TableClassName="AllTkanDataTable" msprop:Generator_TableVarName="tableAllTkan">
+          <xs:complexType>
+            <xs:sequence>
+              <xs:element name="id_Tkan" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_UserColumnName="id_Tkan" msprop:Generator_ColumnPropNameInTable="id_TkanColumn" msprop:Generator_ColumnPropNameInRow="id_Tkan" msprop:Generator_ColumnVarNameInTable="columnid_Tkan" type="xs:int" />
+              <xs:element name="Title" msprop:Generator_UserColumnName="Title" msprop:Generator_ColumnPropNameInTable="TitleColumn" msprop:Generator_ColumnPropNameInRow="Title" msprop:Generator_ColumnVarNameInTable="columnTitle" minOccurs="0">
                 <xs:simpleType>
                   <xs:restriction base="xs:string">
                     <xs:maxLength value="50" />
                   </xs:restriction>
                 </xs:simpleType>
               </xs:element>
-              <xs:element name="Name" msprop:Generator_ColumnPropNameInRow="Name" msprop:Generator_ColumnPropNameInTable="NameColumn" msprop:Generator_ColumnVarNameInTable="columnName" msprop:Generator_UserColumnName="Name" minOccurs="0">
+              <xs:element name="Length" msprop:Generator_UserColumnName="Length" msprop:Generator_ColumnPropNameInTable="LengthColumn" msprop:Generator_ColumnPropNameInRow="Length" msprop:Generator_ColumnVarNameInTable="columnLength" type="xs:int" minOccurs="0" />
+              <xs:element name="Width" msprop:Generator_UserColumnName="Width" msprop:Generator_ColumnPropNameInTable="WidthColumn" msprop:Generator_ColumnPropNameInRow="Width" msprop:Generator_ColumnVarNameInTable="columnWidth" type="xs:int" minOccurs="0" />
+              <xs:element name="Comment" msprop:Generator_UserColumnName="Comment" msprop:Generator_ColumnPropNameInTable="CommentColumn" msprop:Generator_ColumnPropNameInRow="Comment" msprop:Generator_ColumnVarNameInTable="columnComment" minOccurs="0">
                 <xs:simpleType>
                   <xs:restriction base="xs:string">
                     <xs:maxLength value="50" />
                   </xs:restriction>
                 </xs:simpleType>
               </xs:element>
-              <xs:element name="Otch" msprop:Generator_ColumnPropNameInRow="Otch" msprop:Generator_ColumnPropNameInTable="OtchColumn" msprop:Generator_ColumnVarNameInTable="columnOtch" msprop:Generator_UserColumnName="Otch" minOccurs="0">
+              <xs:element name="NamePhoto" msprop:Generator_UserColumnName="NamePhoto" msprop:Generator_ColumnPropNameInTable="NamePhotoColumn" msprop:Generator_ColumnPropNameInRow="NamePhoto" msprop:Generator_ColumnVarNameInTable="columnNamePhoto" minOccurs="0">
                 <xs:simpleType>
                   <xs:restriction base="xs:string">
                     <xs:maxLength value="50" />
                   </xs:restriction>
                 </xs:simpleType>
               </xs:element>
-              <xs:element name="Phone" msprop:Generator_ColumnPropNameInRow="Phone" msprop:Generator_ColumnPropNameInTable="PhoneColumn" msprop:Generator_ColumnVarNameInTable="columnPhone" msprop:Generator_UserColumnName="Phone" minOccurs="0">
+              <xs:element name="Color" msprop:Generator_UserColumnName="Color" msprop:Generator_ColumnPropNameInTable="ColorColumn" msprop:Generator_ColumnPropNameInRow="Color" msprop:Generator_ColumnVarNameInTable="columnColor" minOccurs="0">
                 <xs:simpleType>
                   <xs:restriction base="xs:string">
                     <xs:maxLength value="50" />
@@ -696,14 +757,18 @@ SELECT id_User, login, pass, Role, Surname, Name, Otch, Phone FROM Users WHERE (
       <xs:selector xpath=".//mstns:Users" />
       <xs:field xpath="mstns:id_User" />
     </xs:unique>
+    <xs:unique name="AllTkan_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
+      <xs:selector xpath=".//mstns:AllTkan" />
+      <xs:field xpath="mstns:id_Tkan" />
+    </xs:unique>
   </xs:element>
   <xs:annotation>
     <xs:appinfo>
       <msdata:Relationship name="FK_Orders_Furnitura" msdata:parent="Furnitura" msdata:child="Orders" msdata:parentkey="id_fur" msdata:childkey="id_fur" msprop:Generator_UserParentTable="Furnitura" msprop:Generator_UserChildTable="Orders" msprop:Generator_RelationVarName="relationFK_Orders_Furnitura" msprop:Generator_ChildPropName="GetOrdersRows" msprop:Generator_ParentPropName="FurnituraRow" msprop:Generator_UserRelationName="FK_Orders_Furnitura" />
       <msdata:Relationship name="FK_Orders_Izdelie" msdata:parent="Izdelie" msdata:child="Orders" msdata:parentkey="id_izd" msdata:childkey="id_izd" msprop:Generator_UserParentTable="Izdelie" msprop:Generator_UserChildTable="Orders" msprop:Generator_RelationVarName="relationFK_Orders_Izdelie" msprop:Generator_ChildPropName="GetOrdersRows" msprop:Generator_ParentPropName="IzdelieRow" msprop:Generator_UserRelationName="FK_Orders_Izdelie" />
-      <msdata:Relationship name="FK_Orders_Tkan" msdata:parent="Tkan" msdata:child="Orders" msdata:parentkey="id_Tkan" msdata:childkey="id_tkan" msprop:Generator_UserParentTable="Tkan" msprop:Generator_UserChildTable="Orders" msprop:Generator_RelationVarName="relationFK_Orders_Tkan" msprop:Generator_UserRelationName="FK_Orders_Tkan" msprop:Generator_ChildPropName="GetOrdersRows" msprop:Generator_ParentPropName="TkanRow" />
-      <msdata:Relationship name="FK_Orders_Users1" msdata:parent="Users" msdata:child="Orders" msdata:parentkey="id_User" msdata:childkey="id_men" msprop:Generator_UserParentTable="Users" msprop:Generator_UserChildTable="Orders" msprop:Generator_RelationVarName="relationFK_Orders_Users1" msprop:Generator_UserRelationName="FK_Orders_Users1" msprop:Generator_ChildPropName="GetOrdersRowsByFK_Orders_Users1" msprop:Generator_ParentPropName="UsersRowByFK_Orders_Users1" />
-      <msdata:Relationship name="FK_Orders_Users2" msdata:parent="Users" msdata:child="Orders" msdata:parentkey="id_User" msdata:childkey="id_zak" msprop:Generator_UserParentTable="Users" msprop:Generator_UserChildTable="Orders" msprop:Generator_RelationVarName="relationFK_Orders_Users2" msprop:Generator_UserRelationName="FK_Orders_Users2" msprop:Generator_ChildPropName="GetOrdersRowsByFK_Orders_Users2" msprop:Generator_ParentPropName="UsersRowByFK_Orders_Users2" />
+      <msdata:Relationship name="FK_Orders_Tkan" msdata:parent="Tkan" msdata:child="Orders" msdata:parentkey="id_Tkan" msdata:childkey="id_tkan" msprop:Generator_UserParentTable="Tkan" msprop:Generator_UserChildTable="Orders" msprop:Generator_RelationVarName="relationFK_Orders_Tkan" msprop:Generator_ChildPropName="GetOrdersRows" msprop:Generator_UserRelationName="FK_Orders_Tkan" msprop:Generator_ParentPropName="TkanRow" />
+      <msdata:Relationship name="FK_Orders_Users1" msdata:parent="Users" msdata:child="Orders" msdata:parentkey="id_User" msdata:childkey="id_men" msprop:Generator_UserParentTable="Users" msprop:Generator_UserChildTable="Orders" msprop:Generator_RelationVarName="relationFK_Orders_Users1" msprop:Generator_ChildPropName="GetOrdersRowsByFK_Orders_Users1" msprop:Generator_UserRelationName="FK_Orders_Users1" msprop:Generator_ParentPropName="UsersRowByFK_Orders_Users1" />
+      <msdata:Relationship name="FK_Orders_Users2" msdata:parent="Users" msdata:child="Orders" msdata:parentkey="id_User" msdata:childkey="id_zak" msprop:Generator_UserParentTable="Users" msprop:Generator_UserChildTable="Orders" msprop:Generator_RelationVarName="relationFK_Orders_Users2" msprop:Generator_ChildPropName="GetOrdersRowsByFK_Orders_Users2" msprop:Generator_UserRelationName="FK_Orders_Users2" msprop:Generator_ParentPropName="UsersRowByFK_Orders_Users2" />
       <msdata:Relationship name="FK_Tkan_Color" msdata:parent="Color" msdata:child="Tkan" msdata:parentkey="id_colors" msdata:childkey="id_color" msprop:Generator_UserParentTable="Color" msprop:Generator_UserChildTable="Tkan" msprop:Generator_RelationVarName="relationFK_Tkan_Color" msprop:Generator_ChildPropName="GetTkanRows" msprop:Generator_ParentPropName="ColorRow" msprop:Generator_UserRelationName="FK_Tkan_Color" />
       <msdata:Relationship name="FK_Users_Roles" msdata:parent="Roles" msdata:child="Users" msdata:parentkey="id_Roles" msdata:childkey="Role" msprop:Generator_UserParentTable="Roles" msprop:Generator_UserChildTable="Users" msprop:Generator_RelationVarName="relationFK_Users_Roles" msprop:Generator_ChildPropName="GetUsersRows" msprop:Generator_ParentPropName="RolesRow" msprop:Generator_UserRelationName="FK_Users_Roles" />
     </xs:appinfo>

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

@@ -64,6 +64,12 @@
     <Compile Include="Form2.Designer.cs">
       <DependentUpon>Form2.cs</DependentUpon>
     </Compile>
+    <Compile Include="FormAddIzdelie.cs">
+      <SubType>Form</SubType>
+    </Compile>
+    <Compile Include="FormAddIzdelie.Designer.cs">
+      <DependentUpon>FormAddIzdelie.cs</DependentUpon>
+    </Compile>
     <Compile Include="FormGetMaterial.cs">
       <SubType>Form</SubType>
     </Compile>
@@ -76,12 +82,6 @@
     <Compile Include="FormLeven.Designer.cs">
       <DependentUpon>FormLeven.cs</DependentUpon>
     </Compile>
-    <Compile Include="FormSpisMaterial.cs">
-      <SubType>Form</SubType>
-    </Compile>
-    <Compile Include="FormSpisMaterial.Designer.cs">
-      <DependentUpon>FormSpisMaterial.cs</DependentUpon>
-    </Compile>
     <Compile Include="FormZakazchik.cs">
       <SubType>Form</SubType>
     </Compile>
@@ -137,15 +137,15 @@
     <EmbeddedResource Include="Form2.resx">
       <DependentUpon>Form2.cs</DependentUpon>
     </EmbeddedResource>
+    <EmbeddedResource Include="FormAddIzdelie.resx">
+      <DependentUpon>FormAddIzdelie.cs</DependentUpon>
+    </EmbeddedResource>
     <EmbeddedResource Include="FormGetMaterial.resx">
       <DependentUpon>FormGetMaterial.cs</DependentUpon>
     </EmbeddedResource>
     <EmbeddedResource Include="FormLeven.resx">
       <DependentUpon>FormLeven.cs</DependentUpon>
     </EmbeddedResource>
-    <EmbeddedResource Include="FormSpisMaterial.resx">
-      <DependentUpon>FormSpisMaterial.cs</DependentUpon>
-    </EmbeddedResource>
     <EmbeddedResource Include="FormZakazchik.resx">
       <DependentUpon>FormZakazchik.cs</DependentUpon>
     </EmbeddedResource>