Danya_Ls Danya_Ls 2 vuotta sitten
vanhempi
commit
7f99935b25

+ 12 - 0
FactoryLVS/FactoryLVS.csproj

@@ -60,6 +60,12 @@
     <Compile Include="Form1.Designer.cs">
       <DependentUpon>Form1.cs</DependentUpon>
     </Compile>
+    <Compile Include="FormAddZakaz.cs">
+      <SubType>Form</SubType>
+    </Compile>
+    <Compile Include="FormAddZakaz.Designer.cs">
+      <DependentUpon>FormAddZakaz.cs</DependentUpon>
+    </Compile>
     <Compile Include="FormKladovschik.cs">
       <SubType>Form</SubType>
     </Compile>
@@ -89,6 +95,9 @@
     <EmbeddedResource Include="Form1.resx">
       <DependentUpon>Form1.cs</DependentUpon>
     </EmbeddedResource>
+    <EmbeddedResource Include="FormAddZakaz.resx">
+      <DependentUpon>FormAddZakaz.cs</DependentUpon>
+    </EmbeddedResource>
     <EmbeddedResource Include="FormKladovschik.resx">
       <DependentUpon>FormKladovschik.cs</DependentUpon>
     </EmbeddedResource>
@@ -138,5 +147,8 @@
   <ItemGroup>
     <None Include="Resources\fabric_logo.png" />
   </ItemGroup>
+  <ItemGroup>
+    <None Include="Resources\fabric_logo1.png" />
+  </ItemGroup>
   <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
 </Project>

+ 5 - 1
FactoryLVS/Form1.cs

@@ -17,6 +17,8 @@ namespace FactoryLVS
             InitializeComponent();
         }
 
+        public static string TxtCon = "Data Source=213.155.192.79,3002;Initial Catalog=FactoryLVS;Persist Security Info=True;User ID=u21levinsas;Password=ngh4";
+
         string GetCapcha()
         {
             string TxtLetter = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
@@ -51,7 +53,7 @@ namespace FactoryLVS
 
             if (BsUsers.Count == 0)
             {
-                MessageBox.Show(String.Format("Нет пользователя '{0}' с указанным логином и паролем!", role));
+                MessageBox.Show(String.Format(($"Нет" +$" {CmbRole.Text}"+"a "+"с указанным логином и паролем!")));
                 return;
             }
 
@@ -91,6 +93,7 @@ namespace FactoryLVS
             TbxLogin.Focus();
             TbxCapcha.Clear();
             LblCapcha.Text = GetCapcha();
+            TbxCapcha.Text = LblCapcha.Text;
         }
 
         private void LblReg_Click(object sender, EventArgs e)
@@ -107,6 +110,7 @@ namespace FactoryLVS
             CmbRole.SelectedIndex = 0;
 
             LblCapcha.Text = GetCapcha();
+            TbxCapcha.Text = LblCapcha.Text;
         }
 
         private void CbxShowPass_CheckedChanged(object sender, EventArgs e)

+ 466 - 0
FactoryLVS/FormAddZakaz.Designer.cs

@@ -0,0 +1,466 @@
+namespace FactoryLVS
+{
+    partial class FormAddZakaz
+    {
+        /// <summary>
+        /// Required designer variable.
+        /// </summary>
+        private System.ComponentModel.IContainer components = null;
+
+        /// <summary>
+        /// Clean up any resources being used.
+        /// </summary>
+        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
+        protected override void Dispose(bool disposing)
+        {
+            if (disposing && (components != null))
+            {
+                components.Dispose();
+            }
+            base.Dispose(disposing);
+        }
+
+        #region Windows Form Designer generated code
+
+        /// <summary>
+        /// Required method for Designer support - do not modify
+        /// the contents of this method with the code editor.
+        /// </summary>
+        private void InitializeComponent()
+        {
+            System.Windows.Forms.Label descriptionLabel;
+            System.Windows.Forms.Label lengthLabel;
+            System.Windows.Forms.Label widthLabel;
+            System.Windows.Forms.Label colorLabel;
+            System.Windows.Forms.Label nametkanLabel;
+            System.Windows.Forms.Label label2;
+            System.Windows.Forms.Label label3;
+            System.Windows.Forms.Label label4;
+            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormAddZakaz));
+            this.BtnCancel = new System.Windows.Forms.Button();
+            this.BtnOK = new System.Windows.Forms.Button();
+            this.tabControl1 = new System.Windows.Forms.TabControl();
+            this.tabPage1 = new System.Windows.Forms.TabPage();
+            this.label5 = new System.Windows.Forms.Label();
+            this.TbxCountIzd = new System.Windows.Forms.TextBox();
+            this.DgvIzd = new System.Windows.Forms.DataGridView();
+            this.tabPage2 = new System.Windows.Forms.TabPage();
+            this.DescriptionTextBox = new System.Windows.Forms.TextBox();
+            this.LengthTextBox = new System.Windows.Forms.TextBox();
+            this.WidthTextBox = new System.Windows.Forms.TextBox();
+            this.ColorTextBox = new System.Windows.Forms.TextBox();
+            this.NametkanTextBox = new System.Windows.Forms.TextBox();
+            this.LVTkani = new System.Windows.Forms.ListView();
+            this.tabPage3 = new System.Windows.Forms.TabPage();
+            this.TbxCountFur = new System.Windows.Forms.TextBox();
+            this.TbxCountFurSklad = new System.Windows.Forms.TextBox();
+            this.TbxNameFur = new System.Windows.Forms.TextBox();
+            this.LVFurnitura = new System.Windows.Forms.ListView();
+            this.panel1 = new System.Windows.Forms.Panel();
+            this.label1 = new System.Windows.Forms.Label();
+            this.pictureBox1 = new System.Windows.Forms.PictureBox();
+            descriptionLabel = new System.Windows.Forms.Label();
+            lengthLabel = new System.Windows.Forms.Label();
+            widthLabel = new System.Windows.Forms.Label();
+            colorLabel = new System.Windows.Forms.Label();
+            nametkanLabel = new System.Windows.Forms.Label();
+            label2 = new System.Windows.Forms.Label();
+            label3 = new System.Windows.Forms.Label();
+            label4 = new System.Windows.Forms.Label();
+            this.tabControl1.SuspendLayout();
+            this.tabPage1.SuspendLayout();
+            ((System.ComponentModel.ISupportInitialize)(this.DgvIzd)).BeginInit();
+            this.tabPage2.SuspendLayout();
+            this.tabPage3.SuspendLayout();
+            this.panel1.SuspendLayout();
+            ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
+            this.SuspendLayout();
+            // 
+            // BtnCancel
+            // 
+            this.BtnCancel.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(156)))), ((int)(((byte)(26)))));
+            this.BtnCancel.Location = new System.Drawing.Point(358, 419);
+            this.BtnCancel.Margin = new System.Windows.Forms.Padding(2);
+            this.BtnCancel.Name = "BtnCancel";
+            this.BtnCancel.Size = new System.Drawing.Size(133, 23);
+            this.BtnCancel.TabIndex = 19;
+            this.BtnCancel.Text = "Отменить";
+            this.BtnCancel.UseVisualStyleBackColor = false;
+            this.BtnCancel.Click += new System.EventHandler(this.BtnCancel_Click);
+            // 
+            // BtnOK
+            // 
+            this.BtnOK.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(156)))), ((int)(((byte)(26)))));
+            this.BtnOK.Location = new System.Drawing.Point(98, 419);
+            this.BtnOK.Margin = new System.Windows.Forms.Padding(2);
+            this.BtnOK.Name = "BtnOK";
+            this.BtnOK.Size = new System.Drawing.Size(149, 23);
+            this.BtnOK.TabIndex = 18;
+            this.BtnOK.Text = "Сформировать заказ";
+            this.BtnOK.UseVisualStyleBackColor = false;
+            // 
+            // 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.tabPage1);
+            this.tabControl1.Controls.Add(this.tabPage2);
+            this.tabControl1.Controls.Add(this.tabPage3);
+            this.tabControl1.Location = new System.Drawing.Point(10, 128);
+            this.tabControl1.Margin = new System.Windows.Forms.Padding(2);
+            this.tabControl1.Name = "tabControl1";
+            this.tabControl1.SelectedIndex = 0;
+            this.tabControl1.Size = new System.Drawing.Size(572, 280);
+            this.tabControl1.TabIndex = 17;
+            // 
+            // tabPage1
+            // 
+            this.tabPage1.Controls.Add(this.label5);
+            this.tabPage1.Controls.Add(this.TbxCountIzd);
+            this.tabPage1.Controls.Add(this.DgvIzd);
+            this.tabPage1.Location = new System.Drawing.Point(4, 22);
+            this.tabPage1.Margin = new System.Windows.Forms.Padding(2);
+            this.tabPage1.Name = "tabPage1";
+            this.tabPage1.Padding = new System.Windows.Forms.Padding(2);
+            this.tabPage1.Size = new System.Drawing.Size(564, 254);
+            this.tabPage1.TabIndex = 0;
+            this.tabPage1.Text = "Изделие";
+            this.tabPage1.UseVisualStyleBackColor = true;
+            // 
+            // label5
+            // 
+            this.label5.AutoSize = true;
+            this.label5.Location = new System.Drawing.Point(5, 188);
+            this.label5.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
+            this.label5.Name = "label5";
+            this.label5.Size = new System.Drawing.Size(190, 13);
+            this.label5.TabIndex = 2;
+            this.label5.Text = "Введите кол-во изделий для заказа";
+            // 
+            // TbxCountIzd
+            // 
+            this.TbxCountIzd.Location = new System.Drawing.Point(5, 207);
+            this.TbxCountIzd.Margin = new System.Windows.Forms.Padding(2);
+            this.TbxCountIzd.Name = "TbxCountIzd";
+            this.TbxCountIzd.Size = new System.Drawing.Size(76, 20);
+            this.TbxCountIzd.TabIndex = 1;
+            // 
+            // DgvIzd
+            // 
+            this.DgvIzd.AllowUserToAddRows = false;
+            this.DgvIzd.AllowUserToDeleteRows = false;
+            this.DgvIzd.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
+            this.DgvIzd.Location = new System.Drawing.Point(4, 5);
+            this.DgvIzd.Margin = new System.Windows.Forms.Padding(2);
+            this.DgvIzd.Name = "DgvIzd";
+            this.DgvIzd.ReadOnly = true;
+            this.DgvIzd.RowTemplate.Height = 24;
+            this.DgvIzd.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
+            this.DgvIzd.Size = new System.Drawing.Size(482, 174);
+            this.DgvIzd.TabIndex = 0;
+            // 
+            // tabPage2
+            // 
+            this.tabPage2.Controls.Add(descriptionLabel);
+            this.tabPage2.Controls.Add(this.DescriptionTextBox);
+            this.tabPage2.Controls.Add(lengthLabel);
+            this.tabPage2.Controls.Add(this.LengthTextBox);
+            this.tabPage2.Controls.Add(widthLabel);
+            this.tabPage2.Controls.Add(this.WidthTextBox);
+            this.tabPage2.Controls.Add(colorLabel);
+            this.tabPage2.Controls.Add(this.ColorTextBox);
+            this.tabPage2.Controls.Add(nametkanLabel);
+            this.tabPage2.Controls.Add(this.NametkanTextBox);
+            this.tabPage2.Controls.Add(this.LVTkani);
+            this.tabPage2.Location = new System.Drawing.Point(4, 22);
+            this.tabPage2.Margin = new System.Windows.Forms.Padding(2);
+            this.tabPage2.Name = "tabPage2";
+            this.tabPage2.Padding = new System.Windows.Forms.Padding(2);
+            this.tabPage2.Size = new System.Drawing.Size(564, 254);
+            this.tabPage2.TabIndex = 1;
+            this.tabPage2.Text = "Ткань";
+            this.tabPage2.UseVisualStyleBackColor = true;
+            // 
+            // descriptionLabel
+            // 
+            descriptionLabel.AutoSize = true;
+            descriptionLabel.Location = new System.Drawing.Point(378, 143);
+            descriptionLabel.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
+            descriptionLabel.Name = "descriptionLabel";
+            descriptionLabel.Size = new System.Drawing.Size(60, 13);
+            descriptionLabel.TabIndex = 9;
+            descriptionLabel.Text = "Описание:";
+            // 
+            // DescriptionTextBox
+            // 
+            this.DescriptionTextBox.Location = new System.Drawing.Point(441, 141);
+            this.DescriptionTextBox.Margin = new System.Windows.Forms.Padding(2);
+            this.DescriptionTextBox.Name = "DescriptionTextBox";
+            this.DescriptionTextBox.ReadOnly = true;
+            this.DescriptionTextBox.Size = new System.Drawing.Size(109, 20);
+            this.DescriptionTextBox.TabIndex = 10;
+            // 
+            // lengthLabel
+            // 
+            lengthLabel.AutoSize = true;
+            lengthLabel.Location = new System.Drawing.Point(395, 113);
+            lengthLabel.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
+            lengthLabel.Name = "lengthLabel";
+            lengthLabel.Size = new System.Drawing.Size(43, 13);
+            lengthLabel.TabIndex = 7;
+            lengthLabel.Text = "Длина:";
+            // 
+            // LengthTextBox
+            // 
+            this.LengthTextBox.Location = new System.Drawing.Point(441, 110);
+            this.LengthTextBox.Margin = new System.Windows.Forms.Padding(2);
+            this.LengthTextBox.Name = "LengthTextBox";
+            this.LengthTextBox.ReadOnly = true;
+            this.LengthTextBox.Size = new System.Drawing.Size(109, 20);
+            this.LengthTextBox.TabIndex = 8;
+            // 
+            // widthLabel
+            // 
+            widthLabel.AutoSize = true;
+            widthLabel.Location = new System.Drawing.Point(389, 84);
+            widthLabel.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
+            widthLabel.Name = "widthLabel";
+            widthLabel.Size = new System.Drawing.Size(49, 13);
+            widthLabel.TabIndex = 5;
+            widthLabel.Text = "Ширина:";
+            // 
+            // WidthTextBox
+            // 
+            this.WidthTextBox.Location = new System.Drawing.Point(441, 81);
+            this.WidthTextBox.Margin = new System.Windows.Forms.Padding(2);
+            this.WidthTextBox.Name = "WidthTextBox";
+            this.WidthTextBox.ReadOnly = true;
+            this.WidthTextBox.Size = new System.Drawing.Size(109, 20);
+            this.WidthTextBox.TabIndex = 6;
+            // 
+            // colorLabel
+            // 
+            colorLabel.AutoSize = true;
+            colorLabel.Location = new System.Drawing.Point(403, 52);
+            colorLabel.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
+            colorLabel.Name = "colorLabel";
+            colorLabel.Size = new System.Drawing.Size(35, 13);
+            colorLabel.TabIndex = 3;
+            colorLabel.Text = "Цвет:";
+            // 
+            // ColorTextBox
+            // 
+            this.ColorTextBox.Location = new System.Drawing.Point(441, 50);
+            this.ColorTextBox.Margin = new System.Windows.Forms.Padding(2);
+            this.ColorTextBox.Name = "ColorTextBox";
+            this.ColorTextBox.ReadOnly = true;
+            this.ColorTextBox.Size = new System.Drawing.Size(109, 20);
+            this.ColorTextBox.TabIndex = 4;
+            // 
+            // nametkanLabel
+            // 
+            nametkanLabel.AutoSize = true;
+            nametkanLabel.Location = new System.Drawing.Point(380, 20);
+            nametkanLabel.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
+            nametkanLabel.Name = "nametkanLabel";
+            nametkanLabel.Size = new System.Drawing.Size(60, 13);
+            nametkanLabel.TabIndex = 1;
+            nametkanLabel.Text = "Название:";
+            // 
+            // NametkanTextBox
+            // 
+            this.NametkanTextBox.Location = new System.Drawing.Point(441, 18);
+            this.NametkanTextBox.Margin = new System.Windows.Forms.Padding(2);
+            this.NametkanTextBox.Name = "NametkanTextBox";
+            this.NametkanTextBox.ReadOnly = true;
+            this.NametkanTextBox.Size = new System.Drawing.Size(109, 20);
+            this.NametkanTextBox.TabIndex = 2;
+            // 
+            // LVTkani
+            // 
+            this.LVTkani.Dock = System.Windows.Forms.DockStyle.Left;
+            this.LVTkani.HideSelection = false;
+            this.LVTkani.Location = new System.Drawing.Point(2, 2);
+            this.LVTkani.Margin = new System.Windows.Forms.Padding(2);
+            this.LVTkani.Name = "LVTkani";
+            this.LVTkani.Size = new System.Drawing.Size(340, 250);
+            this.LVTkani.TabIndex = 0;
+            this.LVTkani.UseCompatibleStateImageBehavior = false;
+            // 
+            // tabPage3
+            // 
+            this.tabPage3.Controls.Add(label2);
+            this.tabPage3.Controls.Add(this.TbxCountFur);
+            this.tabPage3.Controls.Add(label3);
+            this.tabPage3.Controls.Add(this.TbxCountFurSklad);
+            this.tabPage3.Controls.Add(label4);
+            this.tabPage3.Controls.Add(this.TbxNameFur);
+            this.tabPage3.Controls.Add(this.LVFurnitura);
+            this.tabPage3.Location = new System.Drawing.Point(4, 22);
+            this.tabPage3.Margin = new System.Windows.Forms.Padding(2);
+            this.tabPage3.Name = "tabPage3";
+            this.tabPage3.Padding = new System.Windows.Forms.Padding(2);
+            this.tabPage3.Size = new System.Drawing.Size(564, 254);
+            this.tabPage3.TabIndex = 2;
+            this.tabPage3.Text = "Фурнитура";
+            this.tabPage3.UseVisualStyleBackColor = true;
+            // 
+            // label2
+            // 
+            label2.AutoSize = true;
+            label2.Location = new System.Drawing.Point(348, 110);
+            label2.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
+            label2.Name = "label2";
+            label2.Size = new System.Drawing.Size(207, 13);
+            label2.TabIndex = 11;
+            label2.Text = "Укажите кол-во фурнитур для изделия:";
+            // 
+            // TbxCountFur
+            // 
+            this.TbxCountFur.Location = new System.Drawing.Point(442, 126);
+            this.TbxCountFur.Margin = new System.Windows.Forms.Padding(2);
+            this.TbxCountFur.Name = "TbxCountFur";
+            this.TbxCountFur.Size = new System.Drawing.Size(109, 20);
+            this.TbxCountFur.TabIndex = 12;
+            // 
+            // label3
+            // 
+            label3.AutoSize = true;
+            label3.Location = new System.Drawing.Point(343, 47);
+            label3.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
+            label3.Name = "label3";
+            label3.Size = new System.Drawing.Size(98, 13);
+            label3.TabIndex = 9;
+            label3.Text = "Кол-во на складе:";
+            // 
+            // TbxCountFurSklad
+            // 
+            this.TbxCountFurSklad.Location = new System.Drawing.Point(442, 47);
+            this.TbxCountFurSklad.Margin = new System.Windows.Forms.Padding(2);
+            this.TbxCountFurSklad.Name = "TbxCountFurSklad";
+            this.TbxCountFurSklad.ReadOnly = true;
+            this.TbxCountFurSklad.Size = new System.Drawing.Size(109, 20);
+            this.TbxCountFurSklad.TabIndex = 10;
+            // 
+            // label4
+            // 
+            label4.AutoSize = true;
+            label4.Location = new System.Drawing.Point(381, 18);
+            label4.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
+            label4.Name = "label4";
+            label4.Size = new System.Drawing.Size(60, 13);
+            label4.TabIndex = 7;
+            label4.Text = "Название:";
+            // 
+            // TbxNameFur
+            // 
+            this.TbxNameFur.Location = new System.Drawing.Point(442, 15);
+            this.TbxNameFur.Margin = new System.Windows.Forms.Padding(2);
+            this.TbxNameFur.Name = "TbxNameFur";
+            this.TbxNameFur.ReadOnly = true;
+            this.TbxNameFur.Size = new System.Drawing.Size(109, 20);
+            this.TbxNameFur.TabIndex = 8;
+            // 
+            // LVFurnitura
+            // 
+            this.LVFurnitura.Dock = System.Windows.Forms.DockStyle.Left;
+            this.LVFurnitura.HideSelection = false;
+            this.LVFurnitura.Location = new System.Drawing.Point(2, 2);
+            this.LVFurnitura.Margin = new System.Windows.Forms.Padding(2);
+            this.LVFurnitura.Name = "LVFurnitura";
+            this.LVFurnitura.Size = new System.Drawing.Size(327, 250);
+            this.LVFurnitura.TabIndex = 0;
+            this.LVFurnitura.UseCompatibleStateImageBehavior = false;
+            // 
+            // panel1
+            // 
+            this.panel1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(225)))));
+            this.panel1.Controls.Add(this.label1);
+            this.panel1.Controls.Add(this.pictureBox1);
+            this.panel1.Dock = System.Windows.Forms.DockStyle.Top;
+            this.panel1.Location = new System.Drawing.Point(0, 0);
+            this.panel1.Margin = new System.Windows.Forms.Padding(2);
+            this.panel1.Name = "panel1";
+            this.panel1.Size = new System.Drawing.Size(589, 106);
+            this.panel1.TabIndex = 16;
+            // 
+            // 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(166, 35);
+            this.label1.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
+            this.label1.Name = "label1";
+            this.label1.Size = new System.Drawing.Size(369, 44);
+            this.label1.TabIndex = 1;
+            this.label1.Text = "Добавление нового заказа";
+            // 
+            // pictureBox1
+            // 
+            this.pictureBox1.Dock = System.Windows.Forms.DockStyle.Left;
+            this.pictureBox1.ErrorImage = null;
+            this.pictureBox1.Image = global::FactoryLVS.Properties.Resources.fabric_logo;
+            this.pictureBox1.InitialImage = null;
+            this.pictureBox1.Location = new System.Drawing.Point(0, 0);
+            this.pictureBox1.Margin = new System.Windows.Forms.Padding(2);
+            this.pictureBox1.Name = "pictureBox1";
+            this.pictureBox1.Size = new System.Drawing.Size(100, 106);
+            this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
+            this.pictureBox1.TabIndex = 0;
+            this.pictureBox1.TabStop = false;
+            // 
+            // FormAddZakaz
+            // 
+            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
+            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+            this.ClientSize = new System.Drawing.Size(589, 450);
+            this.Controls.Add(this.BtnCancel);
+            this.Controls.Add(this.BtnOK);
+            this.Controls.Add(this.tabControl1);
+            this.Controls.Add(this.panel1);
+            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
+            this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
+            this.MaximizeBox = false;
+            this.MinimumSize = new System.Drawing.Size(605, 489);
+            this.Name = "FormAddZakaz";
+            this.Text = "СУБД \"Швейная фабрика\"";
+            this.tabControl1.ResumeLayout(false);
+            this.tabPage1.ResumeLayout(false);
+            this.tabPage1.PerformLayout();
+            ((System.ComponentModel.ISupportInitialize)(this.DgvIzd)).EndInit();
+            this.tabPage2.ResumeLayout(false);
+            this.tabPage2.PerformLayout();
+            this.tabPage3.ResumeLayout(false);
+            this.tabPage3.PerformLayout();
+            this.panel1.ResumeLayout(false);
+            ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
+            this.ResumeLayout(false);
+
+        }
+
+        #endregion
+
+        private System.Windows.Forms.Button BtnCancel;
+        private System.Windows.Forms.Button BtnOK;
+        private System.Windows.Forms.TabControl tabControl1;
+        private System.Windows.Forms.TabPage tabPage1;
+        private System.Windows.Forms.Label label5;
+        private System.Windows.Forms.TextBox TbxCountIzd;
+        private System.Windows.Forms.DataGridView DgvIzd;
+        private System.Windows.Forms.TabPage tabPage2;
+        private System.Windows.Forms.TextBox DescriptionTextBox;
+        private System.Windows.Forms.TextBox LengthTextBox;
+        private System.Windows.Forms.TextBox WidthTextBox;
+        private System.Windows.Forms.TextBox ColorTextBox;
+        private System.Windows.Forms.TextBox NametkanTextBox;
+        private System.Windows.Forms.ListView LVTkani;
+        private System.Windows.Forms.TabPage tabPage3;
+        private System.Windows.Forms.TextBox TbxCountFur;
+        private System.Windows.Forms.TextBox TbxCountFurSklad;
+        private System.Windows.Forms.TextBox TbxNameFur;
+        private System.Windows.Forms.ListView LVFurnitura;
+        private System.Windows.Forms.Panel panel1;
+        private System.Windows.Forms.Label label1;
+        private System.Windows.Forms.PictureBox pictureBox1;
+    }
+}

+ 24 - 0
FactoryLVS/FormAddZakaz.cs

@@ -0,0 +1,24 @@
+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 FactoryLVS
+{
+    public partial class FormAddZakaz : Form
+    {
+        public FormAddZakaz()
+        {
+            InitializeComponent();
+        }
+        private void BtnCancel_Click(object sender, EventArgs e)
+        {
+            DialogResult = DialogResult.Cancel;
+        }
+    }
+}

+ 221 - 0
FactoryLVS/FormAddZakaz.resx

@@ -0,0 +1,221 @@
+<?xml version="1.0" encoding="utf-8"?>
+<root>
+  <!-- 
+    Microsoft ResX Schema 
+    
+    Version 2.0
+    
+    The primary goals of this format is to allow a simple XML format 
+    that is mostly human readable. The generation and parsing of the 
+    various data types are done through the TypeConverter classes 
+    associated with the data types.
+    
+    Example:
+    
+    ... ado.net/XML headers & schema ...
+    <resheader name="resmimetype">text/microsoft-resx</resheader>
+    <resheader name="version">2.0</resheader>
+    <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
+    <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
+    <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
+    <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
+    <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
+        <value>[base64 mime encoded serialized .NET Framework object]</value>
+    </data>
+    <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+        <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
+        <comment>This is a comment</comment>
+    </data>
+                
+    There are any number of "resheader" rows that contain simple 
+    name/value pairs.
+    
+    Each data row contains a name, and value. The row also contains a 
+    type or mimetype. Type corresponds to a .NET class that support 
+    text/value conversion through the TypeConverter architecture. 
+    Classes that don't support this are serialized and stored with the 
+    mimetype set.
+    
+    The mimetype is used for serialized objects, and tells the 
+    ResXResourceReader how to depersist the object. This is currently not 
+    extensible. For a given mimetype the value must be set accordingly:
+    
+    Note - application/x-microsoft.net.object.binary.base64 is the format 
+    that the ResXResourceWriter will generate, however the reader can 
+    read any of the formats listed below.
+    
+    mimetype: application/x-microsoft.net.object.binary.base64
+    value   : The object must be serialized with 
+            : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
+            : and then encoded with base64 encoding.
+    
+    mimetype: application/x-microsoft.net.object.soap.base64
+    value   : The object must be serialized with 
+            : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
+            : and then encoded with base64 encoding.
+
+    mimetype: application/x-microsoft.net.object.bytearray.base64
+    value   : The object must be serialized into a byte array 
+            : using a System.ComponentModel.TypeConverter
+            : and then encoded with base64 encoding.
+    -->
+  <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
+    <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
+    <xsd:element name="root" msdata:IsDataSet="true">
+      <xsd:complexType>
+        <xsd:choice maxOccurs="unbounded">
+          <xsd:element name="metadata">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" />
+              </xsd:sequence>
+              <xsd:attribute name="name" use="required" type="xsd:string" />
+              <xsd:attribute name="type" type="xsd:string" />
+              <xsd:attribute name="mimetype" type="xsd:string" />
+              <xsd:attribute ref="xml:space" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="assembly">
+            <xsd:complexType>
+              <xsd:attribute name="alias" type="xsd:string" />
+              <xsd:attribute name="name" type="xsd:string" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="data">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+                <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
+              </xsd:sequence>
+              <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
+              <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
+              <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
+              <xsd:attribute ref="xml:space" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="resheader">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+              </xsd:sequence>
+              <xsd:attribute name="name" type="xsd:string" use="required" />
+            </xsd:complexType>
+          </xsd:element>
+        </xsd:choice>
+      </xsd:complexType>
+    </xsd:element>
+  </xsd:schema>
+  <resheader name="resmimetype">
+    <value>text/microsoft-resx</value>
+  </resheader>
+  <resheader name="version">
+    <value>2.0</value>
+  </resheader>
+  <resheader name="reader">
+    <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+  </resheader>
+  <resheader name="writer">
+    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+  </resheader>
+  <metadata name="descriptionLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>False</value>
+  </metadata>
+  <metadata name="lengthLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>False</value>
+  </metadata>
+  <metadata name="widthLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>False</value>
+  </metadata>
+  <metadata name="colorLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>False</value>
+  </metadata>
+  <metadata name="nametkanLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>False</value>
+  </metadata>
+  <metadata name="label2.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>False</value>
+  </metadata>
+  <metadata name="label3.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>False</value>
+  </metadata>
+  <metadata name="label4.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>False</value>
+  </metadata>
+  <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>

+ 93 - 88
FactoryLVS/FormZakazchik.Designer.cs

@@ -35,24 +35,24 @@
             this.usersTableAdapter = new FactoryLVS.FactoryLVSDataSetTableAdapters.UsersTableAdapter();
             this.BtnAddZakaz = new System.Windows.Forms.Button();
             this.BtnLev = new System.Windows.Forms.Button();
-            this.DgvZakaz = new System.Windows.Forms.DataGridView();
-            this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.Column2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.Column3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.Column4 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.Column5 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.Column6 = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.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.panel1 = new System.Windows.Forms.Panel();
             this.label1 = new System.Windows.Forms.Label();
+            this.tabControl1 = new System.Windows.Forms.TabControl();
+            this.tabPage1 = new System.Windows.Forms.TabPage();
+            this.tabPage2 = new System.Windows.Forms.TabPage();
+            this.PanelTkan = new System.Windows.Forms.TableLayoutPanel();
+            this.PanelFurn = new System.Windows.Forms.TableLayoutPanel();
             this.pictureBox1 = new System.Windows.Forms.PictureBox();
             ((System.ComponentModel.ISupportInitialize)(this.BsUsers)).BeginInit();
             ((System.ComponentModel.ISupportInitialize)(this.factoryLVSDataSet)).BeginInit();
-            ((System.ComponentModel.ISupportInitialize)(this.DgvZakaz)).BeginInit();
             this.panel1.SuspendLayout();
+            this.tabControl1.SuspendLayout();
+            this.tabPage1.SuspendLayout();
+            this.tabPage2.SuspendLayout();
             ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
             this.SuspendLayout();
             // 
@@ -73,18 +73,19 @@
             // BtnAddZakaz
             // 
             this.BtnAddZakaz.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(156)))), ((int)(((byte)(26)))));
-            this.BtnAddZakaz.Location = new System.Drawing.Point(406, 130);
+            this.BtnAddZakaz.Location = new System.Drawing.Point(432, 119);
             this.BtnAddZakaz.Margin = new System.Windows.Forms.Padding(2);
             this.BtnAddZakaz.Name = "BtnAddZakaz";
             this.BtnAddZakaz.Size = new System.Drawing.Size(154, 23);
             this.BtnAddZakaz.TabIndex = 21;
             this.BtnAddZakaz.Text = "Добавить заказ";
             this.BtnAddZakaz.UseVisualStyleBackColor = false;
+            this.BtnAddZakaz.Click += new System.EventHandler(this.BtnAddZakaz_Click);
             // 
             // BtnLev
             // 
             this.BtnLev.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(156)))), ((int)(((byte)(26)))));
-            this.BtnLev.Location = new System.Drawing.Point(248, 130);
+            this.BtnLev.Location = new System.Drawing.Point(274, 119);
             this.BtnLev.Margin = new System.Windows.Forms.Padding(2);
             this.BtnLev.Name = "BtnLev";
             this.BtnLev.Size = new System.Drawing.Size(154, 23);
@@ -92,68 +93,10 @@
             this.BtnLev.Text = "Нечеткий поиск";
             this.BtnLev.UseVisualStyleBackColor = false;
             // 
-            // DgvZakaz
-            // 
-            this.DgvZakaz.AllowUserToAddRows = false;
-            this.DgvZakaz.AllowUserToDeleteRows = false;
-            this.DgvZakaz.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
-            this.DgvZakaz.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
-            this.Column1,
-            this.Column2,
-            this.Column3,
-            this.Column4,
-            this.Column5,
-            this.Column6});
-            this.DgvZakaz.Location = new System.Drawing.Point(9, 189);
-            this.DgvZakaz.Margin = new System.Windows.Forms.Padding(2);
-            this.DgvZakaz.Name = "DgvZakaz";
-            this.DgvZakaz.ReadOnly = true;
-            this.DgvZakaz.RowHeadersVisible = false;
-            this.DgvZakaz.RowTemplate.Height = 24;
-            this.DgvZakaz.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
-            this.DgvZakaz.Size = new System.Drawing.Size(664, 242);
-            this.DgvZakaz.TabIndex = 19;
-            // 
-            // Column1
-            // 
-            this.Column1.HeaderText = "Изделие";
-            this.Column1.Name = "Column1";
-            this.Column1.ReadOnly = true;
-            // 
-            // Column2
-            // 
-            this.Column2.HeaderText = "Кол-во изделий";
-            this.Column2.Name = "Column2";
-            this.Column2.ReadOnly = true;
-            // 
-            // Column3
-            // 
-            this.Column3.HeaderText = "Ткань";
-            this.Column3.Name = "Column3";
-            this.Column3.ReadOnly = true;
-            // 
-            // Column4
-            // 
-            this.Column4.HeaderText = "Фурнитура";
-            this.Column4.Name = "Column4";
-            this.Column4.ReadOnly = true;
-            // 
-            // Column5
-            // 
-            this.Column5.HeaderText = "Кол-во фурнитуры";
-            this.Column5.Name = "Column5";
-            this.Column5.ReadOnly = true;
-            // 
-            // Column6
-            // 
-            this.Column6.HeaderText = "Менеджер";
-            this.Column6.Name = "Column6";
-            this.Column6.ReadOnly = true;
-            // 
             // BtnProfile
             // 
             this.BtnProfile.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(156)))), ((int)(((byte)(26)))));
-            this.BtnProfile.Location = new System.Drawing.Point(88, 130);
+            this.BtnProfile.Location = new System.Drawing.Point(114, 119);
             this.BtnProfile.Margin = new System.Windows.Forms.Padding(2);
             this.BtnProfile.Name = "BtnProfile";
             this.BtnProfile.Size = new System.Drawing.Size(154, 23);
@@ -163,8 +106,8 @@
             // 
             // OtchLabel
             // 
-            this.OtchLabel.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.BsUsers, "otch", true));
-            this.OtchLabel.Location = new System.Drawing.Point(9, 168);
+            this.OtchLabel.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.BsUsers, "Otch", true));
+            this.OtchLabel.Location = new System.Drawing.Point(485, 57);
             this.OtchLabel.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
             this.OtchLabel.Name = "OtchLabel";
             this.OtchLabel.Size = new System.Drawing.Size(75, 19);
@@ -173,8 +116,8 @@
             // 
             // NameLabel
             // 
-            this.NameLabel.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.BsUsers, "name", true));
-            this.NameLabel.Location = new System.Drawing.Point(9, 149);
+            this.NameLabel.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.BsUsers, "Name", true));
+            this.NameLabel.Location = new System.Drawing.Point(485, 38);
             this.NameLabel.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
             this.NameLabel.Name = "NameLabel";
             this.NameLabel.Size = new System.Drawing.Size(75, 19);
@@ -183,8 +126,8 @@
             // 
             // FamLabel
             // 
-            this.FamLabel.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.BsUsers, "fam", true));
-            this.FamLabel.Location = new System.Drawing.Point(9, 130);
+            this.FamLabel.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.BsUsers, "Surname", true));
+            this.FamLabel.Location = new System.Drawing.Point(485, 19);
             this.FamLabel.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
             this.FamLabel.Name = "FamLabel";
             this.FamLabel.Size = new System.Drawing.Size(75, 19);
@@ -193,10 +136,14 @@
             // 
             // panel1
             // 
+            this.panel1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
+            | System.Windows.Forms.AnchorStyles.Right)));
             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.Controls.Add(this.NameLabel);
+            this.panel1.Controls.Add(this.FamLabel);
+            this.panel1.Controls.Add(this.OtchLabel);
             this.panel1.Location = new System.Drawing.Point(0, 0);
             this.panel1.Margin = new System.Windows.Forms.Padding(2);
             this.panel1.Name = "panel1";
@@ -214,6 +161,67 @@
             this.label1.TabIndex = 1;
             this.label1.Text = "Рабочее место заказчика";
             // 
+            // 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.tabPage1);
+            this.tabControl1.Controls.Add(this.tabPage2);
+            this.tabControl1.Location = new System.Drawing.Point(12, 147);
+            this.tabControl1.Name = "tabControl1";
+            this.tabControl1.SelectedIndex = 0;
+            this.tabControl1.Size = new System.Drawing.Size(660, 291);
+            this.tabControl1.TabIndex = 22;
+            // 
+            // tabPage1
+            // 
+            this.tabPage1.Controls.Add(this.PanelTkan);
+            this.tabPage1.Location = new System.Drawing.Point(4, 22);
+            this.tabPage1.Name = "tabPage1";
+            this.tabPage1.Padding = new System.Windows.Forms.Padding(3);
+            this.tabPage1.Size = new System.Drawing.Size(652, 265);
+            this.tabPage1.TabIndex = 0;
+            this.tabPage1.Text = "Ткань";
+            this.tabPage1.UseVisualStyleBackColor = true;
+            // 
+            // tabPage2
+            // 
+            this.tabPage2.Controls.Add(this.PanelFurn);
+            this.tabPage2.Location = new System.Drawing.Point(4, 22);
+            this.tabPage2.Name = "tabPage2";
+            this.tabPage2.Padding = new System.Windows.Forms.Padding(3);
+            this.tabPage2.Size = new System.Drawing.Size(652, 265);
+            this.tabPage2.TabIndex = 1;
+            this.tabPage2.Text = "Фурнитура";
+            this.tabPage2.UseVisualStyleBackColor = true;
+            // 
+            // PanelTkan
+            // 
+            this.PanelTkan.AutoScroll = true;
+            this.PanelTkan.ColumnCount = 1;
+            this.PanelTkan.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
+            this.PanelTkan.Dock = System.Windows.Forms.DockStyle.Fill;
+            this.PanelTkan.Location = new System.Drawing.Point(3, 3);
+            this.PanelTkan.Name = "PanelTkan";
+            this.PanelTkan.RowCount = 1;
+            this.PanelTkan.RowStyles.Add(new System.Windows.Forms.RowStyle());
+            this.PanelTkan.Size = new System.Drawing.Size(646, 259);
+            this.PanelTkan.TabIndex = 0;
+            // 
+            // PanelFurn
+            // 
+            this.PanelFurn.AutoScroll = true;
+            this.PanelFurn.ColumnCount = 1;
+            this.PanelFurn.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
+            this.PanelFurn.Dock = System.Windows.Forms.DockStyle.Fill;
+            this.PanelFurn.Location = new System.Drawing.Point(3, 3);
+            this.PanelFurn.Name = "PanelFurn";
+            this.PanelFurn.RowCount = 1;
+            this.PanelFurn.RowStyles.Add(new System.Windows.Forms.RowStyle());
+            this.PanelFurn.Size = new System.Drawing.Size(646, 259);
+            this.PanelFurn.TabIndex = 0;
+            // 
             // pictureBox1
             // 
             this.pictureBox1.Dock = System.Windows.Forms.DockStyle.Left;
@@ -231,13 +239,10 @@
             this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
             this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
             this.ClientSize = new System.Drawing.Size(684, 450);
+            this.Controls.Add(this.tabControl1);
             this.Controls.Add(this.BtnAddZakaz);
             this.Controls.Add(this.BtnLev);
-            this.Controls.Add(this.DgvZakaz);
             this.Controls.Add(this.BtnProfile);
-            this.Controls.Add(this.OtchLabel);
-            this.Controls.Add(this.NameLabel);
-            this.Controls.Add(this.FamLabel);
             this.Controls.Add(this.panel1);
             this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
             this.Name = "FormZakazchik";
@@ -245,9 +250,11 @@
             this.Load += new System.EventHandler(this.FormZakazchik_Load);
             ((System.ComponentModel.ISupportInitialize)(this.BsUsers)).EndInit();
             ((System.ComponentModel.ISupportInitialize)(this.factoryLVSDataSet)).EndInit();
-            ((System.ComponentModel.ISupportInitialize)(this.DgvZakaz)).EndInit();
             this.panel1.ResumeLayout(false);
             this.panel1.PerformLayout();
+            this.tabControl1.ResumeLayout(false);
+            this.tabPage1.ResumeLayout(false);
+            this.tabPage2.ResumeLayout(false);
             ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
             this.ResumeLayout(false);
 
@@ -259,13 +266,6 @@
         public System.Windows.Forms.BindingSource BsUsers;
         private System.Windows.Forms.Button BtnAddZakaz;
         private System.Windows.Forms.Button BtnLev;
-        private System.Windows.Forms.DataGridView DgvZakaz;
-        private System.Windows.Forms.DataGridViewTextBoxColumn Column1;
-        private System.Windows.Forms.DataGridViewTextBoxColumn Column2;
-        private System.Windows.Forms.DataGridViewTextBoxColumn Column3;
-        private System.Windows.Forms.DataGridViewTextBoxColumn Column4;
-        private System.Windows.Forms.DataGridViewTextBoxColumn Column5;
-        private System.Windows.Forms.DataGridViewTextBoxColumn Column6;
         private System.Windows.Forms.Button BtnProfile;
         private System.Windows.Forms.Label OtchLabel;
         private System.Windows.Forms.Label NameLabel;
@@ -273,5 +273,10 @@
         private System.Windows.Forms.Panel panel1;
         private System.Windows.Forms.Label label1;
         private System.Windows.Forms.PictureBox pictureBox1;
+        private System.Windows.Forms.TabPage tabPage1;
+        private System.Windows.Forms.TableLayoutPanel PanelTkan;
+        private System.Windows.Forms.TabPage tabPage2;
+        private System.Windows.Forms.TableLayoutPanel PanelFurn;
+        public System.Windows.Forms.TabControl tabControl1;
     }
 }

+ 321 - 2
FactoryLVS/FormZakazchik.cs

@@ -1,12 +1,15 @@
 using System;
+using System.Collections;
 using System.Collections.Generic;
 using System.ComponentModel;
 using System.Data;
+using System.Data.SqlClient;
 using System.Drawing;
 using System.Linq;
 using System.Text;
 using System.Threading.Tasks;
 using System.Windows.Forms;
+using System.IO;
 
 namespace FactoryLVS
 {
@@ -17,13 +20,329 @@ namespace FactoryLVS
             InitializeComponent();
         }
 
+        class PlitochFurn : Panel
+        {
+            public System.Windows.Forms.PictureBox PbxImage;
+            public System.Windows.Forms.Label LblCount;
+            public System.Windows.Forms.Label LblTitle;
+            public System.Windows.Forms.Label label7;
+            public System.Windows.Forms.Label label8;
+
+            public PlitochFurn()
+            {
+                this.LblCount = new System.Windows.Forms.Label();
+                this.LblTitle = new System.Windows.Forms.Label();
+                this.PbxImage = new System.Windows.Forms.PictureBox();
+                this.label7 = new System.Windows.Forms.Label();
+                this.label8 = new System.Windows.Forms.Label();
+                this.SuspendLayout();
+                ((System.ComponentModel.ISupportInitialize)(this.PbxImage)).BeginInit();
+                this.SuspendLayout();
+
+
+                this.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
+            | System.Windows.Forms.AnchorStyles.Right)));
+                this.BackColor = System.Drawing.Color.White;
+                this.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+                this.Controls.Add(this.label7);
+                this.Controls.Add(this.label8);
+                this.Controls.Add(this.LblCount);
+                this.Controls.Add(this.LblTitle);
+                this.Controls.Add(this.PbxImage);
+                this.Location = new System.Drawing.Point(57, 35);
+                this.Margin = new System.Windows.Forms.Padding(2);
+                this.Name = "panel2";
+                this.Size = new System.Drawing.Size(532, 163);
+                this.TabIndex = 0;
+                // 
+                // LblCount
+                // 
+                this.LblCount.AutoSize = true;
+                this.LblCount.Location = new System.Drawing.Point(237, 39);
+                this.LblCount.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
+                this.LblCount.Name = "LblCount";
+                this.LblCount.Size = new System.Drawing.Size(35, 13);
+                this.LblCount.TabIndex = 2;
+                this.LblCount.Text = "label10";
+                // 
+                // LblTitle
+                // 
+                this.LblTitle.AutoSize = true;
+                this.LblTitle.Location = new System.Drawing.Point(237, 16);
+                this.LblTitle.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
+                this.LblTitle.Name = "LblTitle";
+                this.LblTitle.Size = new System.Drawing.Size(35, 13);
+                this.LblTitle.TabIndex = 1;
+                this.LblTitle.Text = "label11";
+                // 
+                // PbxImage
+                // 
+                this.PbxImage.Location = new System.Drawing.Point(13, 18);
+                this.PbxImage.Margin = new System.Windows.Forms.Padding(2);
+                this.PbxImage.Name = "PbxImage";
+                this.PbxImage.Size = new System.Drawing.Size(89, 98);
+                this.PbxImage.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
+                this.PbxImage.TabIndex = 0;
+                this.PbxImage.TabStop = false;
+                // 
+                // label7
+                // 
+                this.label7.AutoSize = true;
+                this.label7.Location = new System.Drawing.Point(123, 39);
+                this.label7.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
+                this.label7.Name = "label713";
+                this.label7.Size = new System.Drawing.Size(98, 13);
+                this.label7.TabIndex = 7;
+                this.label7.Text = "Кол-во на складе:";
+                // 
+                // label8
+                // 
+                this.label8.AutoSize = true;
+                this.label8.Location = new System.Drawing.Point(123, 16);
+                this.label8.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
+                this.label8.Name = "label813";
+                this.label8.Size = new System.Drawing.Size(60, 13);
+                this.label8.TabIndex = 6;
+                this.label8.Text = "Название:";
+            }
+        }
+
+        class Plitoch: Panel
+        {
+            public System.Windows.Forms.PictureBox PbxImage;
+            public System.Windows.Forms.Label LblColor;
+            public System.Windows.Forms.Label LblTitle;
+            public System.Windows.Forms.Label label4;
+            public System.Windows.Forms.Label label5;
+            public System.Windows.Forms.Label label6;
+            public System.Windows.Forms.Label label7;
+            public System.Windows.Forms.Label label8;
+            public System.Windows.Forms.Label LblDesc;
+            public System.Windows.Forms.Label LblLength;
+            public System.Windows.Forms.Label LblWidth;
+
+            public Plitoch()
+            {
+                this.LblColor = new System.Windows.Forms.Label();
+                this.LblTitle = new System.Windows.Forms.Label();
+                this.PbxImage = new System.Windows.Forms.PictureBox();
+                this.LblLength = new System.Windows.Forms.Label();
+                this.LblWidth = new System.Windows.Forms.Label();
+                this.LblDesc = new System.Windows.Forms.Label();
+                this.label4 = new System.Windows.Forms.Label();
+                this.label5 = new System.Windows.Forms.Label();
+                this.label6 = new System.Windows.Forms.Label();
+                this.label7 = new System.Windows.Forms.Label();
+                this.label8 = new System.Windows.Forms.Label();
+                ((System.ComponentModel.ISupportInitialize)(this.PbxImage)).BeginInit();
+                this.SuspendLayout();
+                // 
+                // panel1
+                // 
+                this.BackColor = System.Drawing.Color.White;
+                this.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+                this.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
+            | System.Windows.Forms.AnchorStyles.Right)));
+                this.Controls.Add(this.label4);
+                this.Controls.Add(this.label5);
+                this.Controls.Add(this.label6);
+                this.Controls.Add(this.label7);
+                this.Controls.Add(this.label8);
+                this.Controls.Add(this.LblDesc);
+                this.Controls.Add(this.LblLength);
+                this.Controls.Add(this.LblWidth);
+                this.Controls.Add(this.LblColor);
+                this.Controls.Add(this.LblTitle);
+                this.Controls.Add(this.PbxImage);
+                this.Location = new System.Drawing.Point(57, 35);
+                this.Margin = new System.Windows.Forms.Padding(2);
+                this.Name = "panel1";
+                this.Size = new System.Drawing.Size(532, 163);
+                this.TabIndex = 0;
+                // 
+                // LblColor
+                // 
+                this.LblColor.AutoSize = true;
+                this.LblColor.Location = new System.Drawing.Point(237, 39);
+                this.LblColor.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
+                this.LblColor.Name = "LblColor";
+                this.LblColor.Size = new System.Drawing.Size(35, 13);
+                this.LblColor.TabIndex = 2;
+                this.LblColor.Text = "label2";
+                // 
+                // LblTitle
+                // 
+                this.LblTitle.AutoSize = true;
+                this.LblTitle.Location = new System.Drawing.Point(237, 16);
+                this.LblTitle.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
+                this.LblTitle.Name = "LblTitle";
+                this.LblTitle.Size = new System.Drawing.Size(35, 13);
+                this.LblTitle.TabIndex = 1;
+                this.LblTitle.Text = "label1";
+                // 
+                // PbxImage
+                // 
+                this.PbxImage.Location = new System.Drawing.Point(13, 18);
+                this.PbxImage.Margin = new System.Windows.Forms.Padding(2);
+                this.PbxImage.Name = "PbxImage";
+                this.PbxImage.Size = new System.Drawing.Size(89, 98);
+                this.PbxImage.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
+                this.PbxImage.TabIndex = 0;
+                this.PbxImage.TabStop = false;
+                // 
+                // LblLength
+                // 
+                this.LblLength.AutoSize = true;
+                this.LblLength.Location = new System.Drawing.Point(237, 87);
+                this.LblLength.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
+                this.LblLength.Name = "LblLength";
+                this.LblLength.Size = new System.Drawing.Size(35, 13);
+                this.LblLength.TabIndex = 4;
+                this.LblLength.Text = "label2";
+                // 
+                // LblWidth
+                // 
+                this.LblWidth.AutoSize = true;
+                this.LblWidth.Location = new System.Drawing.Point(237, 61);
+                this.LblWidth.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
+                this.LblWidth.Name = "LblWidth";
+                this.LblWidth.Size = new System.Drawing.Size(35, 13);
+                this.LblWidth.TabIndex = 3;
+                this.LblWidth.Text = "label1";
+                // 
+                // LblDesc
+                // 
+                this.LblDesc.AutoSize = true;
+                this.LblDesc.Location = new System.Drawing.Point(237, 111);
+                this.LblDesc.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
+                this.LblDesc.Name = "LblDesc";
+                this.LblDesc.Size = new System.Drawing.Size(35, 13);
+                this.LblDesc.TabIndex = 5;
+                this.LblDesc.Text = "label2";
+                // 
+                // label4
+                // 
+                this.label4.AutoSize = true;
+                this.label4.Location = new System.Drawing.Point(123, 111);
+                this.label4.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
+                this.label4.Name = "label4";
+                this.label4.Size = new System.Drawing.Size(60, 13);
+                this.label4.TabIndex = 10;
+                this.label4.Text = "Описание:";
+                // 
+                // label5
+                // 
+                this.label5.AutoSize = true;
+                this.label5.Location = new System.Drawing.Point(123, 87);
+                this.label5.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
+                this.label5.Name = "label5";
+                this.label5.Size = new System.Drawing.Size(43, 13);
+                this.label5.TabIndex = 9;
+                this.label5.Text = "Длина:";
+                // 
+                // label6
+                // 
+                this.label6.AutoSize = true;
+                this.label6.Location = new System.Drawing.Point(123, 61);
+                this.label6.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
+                this.label6.Name = "label6";
+                this.label6.Size = new System.Drawing.Size(49, 13);
+                this.label6.TabIndex = 8;
+                this.label6.Text = "Ширина:";
+                // 
+                // label7
+                // 
+                this.label7.AutoSize = true;
+                this.label7.Location = new System.Drawing.Point(123, 39);
+                this.label7.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
+                this.label7.Name = "label7";
+                this.label7.Size = new System.Drawing.Size(35, 13);
+                this.label7.TabIndex = 7;
+                this.label7.Text = "Цвет:";
+                // 
+                // label8
+                // 
+                this.label8.AutoSize = true;
+                this.label8.Location = new System.Drawing.Point(123, 16);
+                this.label8.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
+                this.label8.Name = "label8";
+                this.label8.Size = new System.Drawing.Size(60, 13);
+                this.label8.TabIndex = 6;
+                this.label8.Text = "Название:";
+            }
+        }
+
+        void FillPanelFurn()
+        {
+            SqlConnection Con = new SqlConnection(Form1.TxtCon);
+            Con.Open();
+            string TxtQuery = "select * from Furnitura";
+            SqlCommand Query = new SqlCommand(TxtQuery, Con);
+            SqlDataReader Res = Query.ExecuteReader();
+            if (Res.HasRows)
+            {
+                while (Res.Read())
+                {
+                    PlitochFurn plitochFurn = new PlitochFurn();
+                    plitochFurn.LblCount.Text = Res["countfur"].ToString();
+                    plitochFurn.LblTitle.Text = Res["namefur"].ToString();
+                    try
+                    {
+                        plitochFurn.PbxImage.Image = Image.FromFile(Application.StartupPath + "\\PhotoFurn\\" + Res["photo"].ToString());
+                    }
+                    catch
+                    {
+                        plitochFurn.PbxImage.Image = Image.FromFile(Application.StartupPath + "\\PhotoTkan\\" + "picture.png");
+                    }
+                    PanelFurn.Controls.Add(plitochFurn);
+                }
+            }
+               
+        }
+
+
+        void FillPanelTkan()
+        {
+            SqlConnection Con =new SqlConnection(Form1.TxtCon);
+            Con.Open();
+            string TxtQuery = "SELECT  NamePhoto, Comment, Length, Width, Tkan.Title, Color.Title as Color, Tkan.id_color\r\nFROM            Color INNER JOIN\r\n                         Tkan ON Color.id_colors = Tkan.id_color";
+            SqlCommand Query = new SqlCommand(TxtQuery, Con);
+            SqlDataReader Res = Query.ExecuteReader();
+            if (Res.HasRows)
+            {
+                while (Res.Read())
+                {
+                    Plitoch plitoch = new Plitoch();
+                    plitoch.LblDesc.Text = Res["Comment"].ToString();
+                    plitoch.LblLength.Text = Res["Length"].ToString();
+                    plitoch.LblWidth.Text = Res["Width"].ToString();
+                    plitoch.LblColor.Text = Res["Color"].ToString();
+                    plitoch.LblTitle.Text = Res["Title"].ToString();
+                    try
+                    {
+                        plitoch.PbxImage.Image = Image.FromFile(Application.StartupPath + "\\PhotoTkan\\" + Res["NamePhoto"].ToString());
+                    }
+                    catch {
+                        plitoch.PbxImage.Image = Image.FromFile(Application.StartupPath + "\\PhotoTkan\\" + "picture.png");
+                            }
+                    PanelTkan.Controls.Add(plitoch);
+                }
+            }
+        }
+
         private void FormZakazchik_Load(object sender, EventArgs e)
         {
-            // TODO: This line of code loads data into the 'factoryLVSDataSet.Izdelie' table. You can move, or remove it, as needed.
-            this.izdelieTableAdapter.Fill(this.factoryLVSDataSet.Izdelie);
+          
             // TODO: This line of code loads data into the 'factoryLVSDataSet.Users' table. You can move, or remove it, as needed.
             this.usersTableAdapter.Fill(this.factoryLVSDataSet.Users);
+            FillPanelTkan();
+            FillPanelFurn();
+        }
 
+        private void BtnAddZakaz_Click(object sender, EventArgs e)
+        {
+            FormAddZakaz formAddZakaz = new FormAddZakaz();
+            formAddZakaz.ShowDialog();
         }
     }
 }

+ 0 - 18
FactoryLVS/FormZakazchik.resx

@@ -126,24 +126,6 @@
   <metadata name="usersTableAdapter.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
     <value>263, 17</value>
   </metadata>
-  <metadata name="Column1.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>True</value>
-  </metadata>
-  <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="Column4.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>True</value>
-  </metadata>
-  <metadata name="Column5.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>True</value>
-  </metadata>
-  <metadata name="Column6.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>True</value>
-  </metadata>
   <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>

+ 10 - 0
FactoryLVS/Properties/Resources.Designer.cs

@@ -69,5 +69,15 @@ namespace FactoryLVS.Properties {
                 return ((System.Drawing.Bitmap)(obj));
             }
         }
+        
+        /// <summary>
+        ///   Looks up a localized resource of type System.Drawing.Bitmap.
+        /// </summary>
+        internal static System.Drawing.Bitmap fabric_logo1 {
+            get {
+                object obj = ResourceManager.GetObject("fabric_logo1", resourceCulture);
+                return ((System.Drawing.Bitmap)(obj));
+            }
+        }
     }
 }

+ 3 - 0
FactoryLVS/Properties/Resources.resx

@@ -121,4 +121,7 @@
   <data name="fabric_logo" type="System.Resources.ResXFileRef, System.Windows.Forms">
     <value>..\Resources\fabric_logo.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
   </data>
+  <data name="fabric_logo1" type="System.Resources.ResXFileRef, System.Windows.Forms">
+    <value>..\Resources\fabric_logo1.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
+  </data>
 </root>

BIN
FactoryLVS/Resources/fabric_logo1.png