Browse Source

День 3

Your Name 1 year ago
parent
commit
389b6bb2af
34 changed files with 1855 additions and 350 deletions
  1. BIN
      .vs/СУБД Швейная фабрика/FileContentIndex/2503a0e6-ccc2-4edb-8d3b-c8b3dfe32b80.vsidx
  2. BIN
      .vs/СУБД Швейная фабрика/FileContentIndex/2d607be2-08e6-4874-a835-e9b636f78af8.vsidx
  3. BIN
      .vs/СУБД Швейная фабрика/FileContentIndex/66ddfe52-8968-4d9c-aa30-44e61ad4e61e.vsidx
  4. BIN
      .vs/СУБД Швейная фабрика/FileContentIndex/8fb9067a-8a6c-48cc-b5c5-28ab7efee68b.vsidx
  5. BIN
      .vs/СУБД Швейная фабрика/FileContentIndex/9008aa3a-f0f4-407c-bc27-230f3ad13552.vsidx
  6. BIN
      .vs/СУБД Швейная фабрика/FileContentIndex/b58e460d-5d2d-442c-a3b6-f37c9d123436.vsidx
  7. BIN
      .vs/СУБД Швейная фабрика/FileContentIndex/bd415aeb-fb7e-4c16-a15b-2034e8f11014.vsidx
  8. BIN
      .vs/СУБД Швейная фабрика/FileContentIndex/d564ad1d-6c4e-40c8-ab12-d0bbb4dad0c8.vsidx
  9. BIN
      .vs/СУБД Швейная фабрика/FileContentIndex/fd384e3f-7c7c-45bd-9e1f-fd3a856c1123.vsidx
  10. BIN
      .vs/СУБД Швейная фабрика/v17/.suo
  11. 0 0
      СУБД Швейная фабрика/.vs/СУБД Швейная фабрика.csproj.dtbcache.json
  12. 53 54
      СУБД Швейная фабрика/Form1.Designer.cs
  13. 31 20
      СУБД Швейная фабрика/Form1.cs
  14. 772 0
      СУБД Швейная фабрика/FormManager.Designer.cs
  15. 389 0
      СУБД Швейная фабрика/FormManager.cs
  16. 213 0
      СУБД Швейная фабрика/FormManager.resx
  17. 136 102
      СУБД Швейная фабрика/FormRegister.Designer.cs
  18. 64 1
      СУБД Швейная фабрика/FormRegister.cs
  19. 12 0
      СУБД Швейная фабрика/FormRegister.resx
  20. 112 98
      СУБД Швейная фабрика/FormSpisMatreial.Designer.cs
  21. 3 27
      СУБД Швейная фабрика/FormSpisMatreial.resx
  22. 57 47
      СУБД Швейная фабрика/FormZakazchik.Designer.cs
  23. BIN
      СУБД Швейная фабрика/bin/Debug/СУБД Швейная фабрика.exe
  24. BIN
      СУБД Швейная фабрика/bin/Debug/СУБД Швейная фабрика.pdb
  25. BIN
      СУБД Швейная фабрика/obj/Debug/СУБД Швейная фабрика.csproj.AssemblyReference.cache
  26. 1 1
      СУБД Швейная фабрика/obj/Debug/СУБД Швейная фабрика.csproj.CoreCompileInputs.cache
  27. 3 0
      СУБД Швейная фабрика/obj/Debug/СУБД Швейная фабрика.csproj.FileListAbsolute.txt
  28. BIN
      СУБД Швейная фабрика/obj/Debug/СУБД Швейная фабрика.csproj.GenerateResource.cache
  29. BIN
      СУБД Швейная фабрика/obj/Debug/СУБД Швейная фабрика.exe
  30. BIN
      СУБД Швейная фабрика/obj/Debug/СУБД Швейная фабрика.pdb
  31. BIN
      СУБД Швейная фабрика/obj/Debug/СУБД_Швейная_фабрика.FormManager.resources
  32. BIN
      СУБД Швейная фабрика/obj/Debug/СУБД_Швейная_фабрика.FormRegister.resources
  33. BIN
      СУБД Швейная фабрика/obj/Debug/СУБД_Швейная_фабрика.FormSpisMatreial.resources
  34. 9 0
      СУБД Швейная фабрика/СУБД Швейная фабрика.csproj

BIN
.vs/СУБД Швейная фабрика/FileContentIndex/77d11731-8889-4a11-9293-68fd4a5a378e.vsidx → .vs/СУБД Швейная фабрика/FileContentIndex/2503a0e6-ccc2-4edb-8d3b-c8b3dfe32b80.vsidx


BIN
.vs/СУБД Швейная фабрика/FileContentIndex/2d607be2-08e6-4874-a835-e9b636f78af8.vsidx


BIN
.vs/СУБД Швейная фабрика/FileContentIndex/66ddfe52-8968-4d9c-aa30-44e61ad4e61e.vsidx


BIN
.vs/СУБД Швейная фабрика/FileContentIndex/8fb9067a-8a6c-48cc-b5c5-28ab7efee68b.vsidx


BIN
.vs/СУБД Швейная фабрика/FileContentIndex/9008aa3a-f0f4-407c-bc27-230f3ad13552.vsidx


BIN
.vs/СУБД Швейная фабрика/FileContentIndex/b58e460d-5d2d-442c-a3b6-f37c9d123436.vsidx


BIN
.vs/СУБД Швейная фабрика/FileContentIndex/bd415aeb-fb7e-4c16-a15b-2034e8f11014.vsidx


BIN
.vs/СУБД Швейная фабрика/FileContentIndex/d564ad1d-6c4e-40c8-ab12-d0bbb4dad0c8.vsidx


BIN
.vs/СУБД Швейная фабрика/FileContentIndex/fd384e3f-7c7c-45bd-9e1f-fd3a856c1123.vsidx


BIN
.vs/СУБД Швейная фабрика/v17/.suo


File diff suppressed because it is too large
+ 0 - 0
СУБД Швейная фабрика/.vs/СУБД Швейная фабрика.csproj.dtbcache.json


+ 53 - 54
СУБД Швейная фабрика/Form1.Designer.cs

@@ -30,7 +30,6 @@
         {
             this.components = new System.ComponentModel.Container();
             System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1));
-            this.label6 = new System.Windows.Forms.Label();
             this.label5 = new System.Windows.Forms.Label();
             this.LblCapcha = new System.Windows.Forms.Label();
             this.TbxCapcha = new System.Windows.Forms.TextBox();
@@ -56,22 +55,13 @@
             ((System.ComponentModel.ISupportInitialize)(this.usersBindingSource)).BeginInit();
             this.SuspendLayout();
             // 
-            // label6
-            // 
-            this.label6.Location = new System.Drawing.Point(104, 9);
-            this.label6.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
-            this.label6.Name = "label6";
-            this.label6.Size = new System.Drawing.Size(110, 47);
-            this.label6.TabIndex = 27;
-            this.label6.Text = "z z - заказчик\r\nk k - кладовщик\r\nm m - менеджер";
-            // 
             // label5
             // 
             this.label5.AutoSize = true;
-            this.label5.Location = new System.Drawing.Point(23, 340);
+            this.label5.Location = new System.Drawing.Point(31, 443);
             this.label5.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
             this.label5.Name = "label5";
-            this.label5.Size = new System.Drawing.Size(37, 13);
+            this.label5.Size = new System.Drawing.Size(46, 17);
             this.label5.TabIndex = 25;
             this.label5.Text = "Капча";
             // 
@@ -79,31 +69,32 @@
             // 
             this.LblCapcha.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
             this.LblCapcha.Font = new System.Drawing.Font("Segoe Script", 18F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
-            this.LblCapcha.Location = new System.Drawing.Point(72, 287);
+            this.LblCapcha.Location = new System.Drawing.Point(96, 375);
             this.LblCapcha.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
             this.LblCapcha.Name = "LblCapcha";
-            this.LblCapcha.Size = new System.Drawing.Size(119, 40);
+            this.LblCapcha.Size = new System.Drawing.Size(159, 52);
             this.LblCapcha.TabIndex = 24;
             this.LblCapcha.Text = "label5";
             this.LblCapcha.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
             // 
             // TbxCapcha
             // 
-            this.TbxCapcha.Location = new System.Drawing.Point(76, 337);
-            this.TbxCapcha.Margin = new System.Windows.Forms.Padding(2);
+            this.TbxCapcha.Location = new System.Drawing.Point(102, 441);
+            this.TbxCapcha.Margin = new System.Windows.Forms.Padding(2, 1, 2, 1);
             this.TbxCapcha.Name = "TbxCapcha";
-            this.TbxCapcha.Size = new System.Drawing.Size(113, 20);
+            this.TbxCapcha.Size = new System.Drawing.Size(149, 25);
             this.TbxCapcha.TabIndex = 26;
             // 
             // LblReg
             // 
             this.LblReg.AutoSize = true;
-            this.LblReg.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
+            this.LblReg.Cursor = System.Windows.Forms.Cursors.Hand;
+            this.LblReg.Font = new System.Drawing.Font("Yu Gothic UI", 9.75F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Underline))), System.Drawing.GraphicsUnit.Point, ((byte)(204)));
             this.LblReg.ForeColor = System.Drawing.Color.Blue;
-            this.LblReg.Location = new System.Drawing.Point(63, 410);
+            this.LblReg.Location = new System.Drawing.Point(99, 551);
             this.LblReg.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
             this.LblReg.Name = "LblReg";
-            this.LblReg.Size = new System.Drawing.Size(113, 13);
+            this.LblReg.Size = new System.Drawing.Size(134, 17);
             this.LblReg.TabIndex = 23;
             this.LblReg.Text = "Зарегистрироваться";
             this.LblReg.Click += new System.EventHandler(this.LblReg_Click);
@@ -111,22 +102,25 @@
             // BtnLogin
             // 
             this.BtnLogin.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(156)))), ((int)(((byte)(26)))));
-            this.BtnLogin.Location = new System.Drawing.Point(11, 374);
-            this.BtnLogin.Margin = new System.Windows.Forms.Padding(2);
+            this.BtnLogin.Cursor = System.Windows.Forms.Cursors.Hand;
+            this.BtnLogin.Font = new System.Drawing.Font("Trebuchet MS", 18F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
+            this.BtnLogin.ForeColor = System.Drawing.SystemColors.Desktop;
+            this.BtnLogin.Location = new System.Drawing.Point(15, 489);
+            this.BtnLogin.Margin = new System.Windows.Forms.Padding(2, 1, 2, 1);
             this.BtnLogin.Name = "BtnLogin";
-            this.BtnLogin.Size = new System.Drawing.Size(218, 34);
+            this.BtnLogin.Size = new System.Drawing.Size(290, 45);
             this.BtnLogin.TabIndex = 22;
-            this.BtnLogin.Text = "Вход";
+            this.BtnLogin.Text = "Войти";
             this.BtnLogin.UseVisualStyleBackColor = false;
             this.BtnLogin.Click += new System.EventHandler(this.BtnLogin_Click);
             // 
             // CbxShowPass
             // 
             this.CbxShowPass.AutoSize = true;
-            this.CbxShowPass.Location = new System.Drawing.Point(11, 260);
-            this.CbxShowPass.Margin = new System.Windows.Forms.Padding(2);
+            this.CbxShowPass.Location = new System.Drawing.Point(15, 340);
+            this.CbxShowPass.Margin = new System.Windows.Forms.Padding(2, 1, 2, 1);
             this.CbxShowPass.Name = "CbxShowPass";
-            this.CbxShowPass.Size = new System.Drawing.Size(114, 17);
+            this.CbxShowPass.Size = new System.Drawing.Size(134, 21);
             this.CbxShowPass.TabIndex = 21;
             this.CbxShowPass.Text = "Показать пароль";
             this.CbxShowPass.UseVisualStyleBackColor = true;
@@ -134,39 +128,39 @@
             // 
             // TbxLogin
             // 
-            this.TbxLogin.Location = new System.Drawing.Point(11, 187);
-            this.TbxLogin.Margin = new System.Windows.Forms.Padding(2);
+            this.TbxLogin.Location = new System.Drawing.Point(15, 244);
+            this.TbxLogin.Margin = new System.Windows.Forms.Padding(2, 1, 2, 1);
             this.TbxLogin.Name = "TbxLogin";
-            this.TbxLogin.Size = new System.Drawing.Size(218, 20);
+            this.TbxLogin.Size = new System.Drawing.Size(290, 25);
             this.TbxLogin.TabIndex = 19;
             // 
             // label4
             // 
             this.label4.AutoSize = true;
-            this.label4.Location = new System.Drawing.Point(13, 212);
+            this.label4.Location = new System.Drawing.Point(17, 277);
             this.label4.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
             this.label4.Name = "label4";
-            this.label4.Size = new System.Drawing.Size(45, 13);
+            this.label4.Size = new System.Drawing.Size(55, 17);
             this.label4.TabIndex = 18;
             this.label4.Text = "Пароль";
             // 
             // label3
             // 
             this.label3.AutoSize = true;
-            this.label3.Location = new System.Drawing.Point(13, 172);
+            this.label3.Location = new System.Drawing.Point(17, 225);
             this.label3.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
             this.label3.Name = "label3";
-            this.label3.Size = new System.Drawing.Size(38, 13);
+            this.label3.Size = new System.Drawing.Size(46, 17);
             this.label3.TabIndex = 17;
             this.label3.Text = "Логин";
             // 
             // label2
             // 
             this.label2.AutoSize = true;
-            this.label2.Location = new System.Drawing.Point(11, 120);
+            this.label2.Location = new System.Drawing.Point(15, 157);
             this.label2.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
             this.label2.Name = "label2";
-            this.label2.Size = new System.Drawing.Size(117, 13);
+            this.label2.Size = new System.Drawing.Size(139, 17);
             this.label2.TabIndex = 16;
             this.label2.Text = "Авторизоваться, как:";
             // 
@@ -178,43 +172,42 @@
             "заказчик",
             "менеджер",
             "кладовщик"});
-            this.CmbRole.Location = new System.Drawing.Point(11, 139);
-            this.CmbRole.Margin = new System.Windows.Forms.Padding(2);
+            this.CmbRole.Location = new System.Drawing.Point(15, 182);
+            this.CmbRole.Margin = new System.Windows.Forms.Padding(2, 1, 2, 1);
             this.CmbRole.Name = "CmbRole";
-            this.CmbRole.Size = new System.Drawing.Size(218, 21);
+            this.CmbRole.Size = new System.Drawing.Size(290, 25);
             this.CmbRole.TabIndex = 15;
             // 
             // 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(104, 70);
+            this.label1.Font = new System.Drawing.Font("Yu Gothic UI", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
+            this.label1.Location = new System.Drawing.Point(160, 50);
             this.label1.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
             this.label1.Name = "label1";
-            this.label1.Size = new System.Drawing.Size(129, 24);
+            this.label1.Size = new System.Drawing.Size(145, 30);
             this.label1.TabIndex = 1;
             this.label1.Text = "Авторизация";
             // 
             // TbxPass
             // 
-            this.TbxPass.Location = new System.Drawing.Point(11, 230);
-            this.TbxPass.Margin = new System.Windows.Forms.Padding(2);
+            this.TbxPass.Location = new System.Drawing.Point(15, 301);
+            this.TbxPass.Margin = new System.Windows.Forms.Padding(2, 1, 2, 1);
             this.TbxPass.Name = "TbxPass";
-            this.TbxPass.Size = new System.Drawing.Size(218, 20);
+            this.TbxPass.Size = new System.Drawing.Size(290, 25);
             this.TbxPass.TabIndex = 20;
             this.TbxPass.UseSystemPasswordChar = true;
             // 
             // panel1
             // 
             this.panel1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(225)))));
-            this.panel1.Controls.Add(this.label6);
             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.Margin = new System.Windows.Forms.Padding(2, 1, 2, 1);
             this.panel1.Name = "panel1";
-            this.panel1.Size = new System.Drawing.Size(251, 106);
+            this.panel1.Size = new System.Drawing.Size(335, 137);
             this.panel1.TabIndex = 14;
             // 
             // pictureBox1
@@ -222,9 +215,9 @@
             this.pictureBox1.Dock = System.Windows.Forms.DockStyle.Left;
             this.pictureBox1.Image = global::СУБД_Швейная_фабрика.Properties.Resources.fabric_logo1;
             this.pictureBox1.Location = new System.Drawing.Point(0, 0);
-            this.pictureBox1.Margin = new System.Windows.Forms.Padding(2);
+            this.pictureBox1.Margin = new System.Windows.Forms.Padding(2, 1, 2, 1);
             this.pictureBox1.Name = "pictureBox1";
-            this.pictureBox1.Size = new System.Drawing.Size(100, 106);
+            this.pictureBox1.Size = new System.Drawing.Size(134, 137);
             this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
             this.pictureBox1.TabIndex = 0;
             this.pictureBox1.TabStop = false;
@@ -257,9 +250,11 @@
             // 
             // Form1
             // 
-            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
+            this.AcceptButton = this.BtnLogin;
+            this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 17F);
             this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
-            this.ClientSize = new System.Drawing.Size(251, 441);
+            this.BackColor = System.Drawing.SystemColors.ButtonHighlight;
+            this.ClientSize = new System.Drawing.Size(335, 577);
             this.Controls.Add(this.label5);
             this.Controls.Add(this.LblCapcha);
             this.Controls.Add(this.TbxCapcha);
@@ -273,8 +268,14 @@
             this.Controls.Add(this.CmbRole);
             this.Controls.Add(this.TbxPass);
             this.Controls.Add(this.panel1);
+            this.Font = new System.Drawing.Font("Yu Gothic UI Semibold", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
+            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
             this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
+            this.Margin = new System.Windows.Forms.Padding(5, 4, 5, 4);
+            this.MaximumSize = new System.Drawing.Size(351, 616);
+            this.MinimumSize = new System.Drawing.Size(351, 616);
             this.Name = "Form1";
+            this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
             this.Text = "Авторизация";
             this.Load += new System.EventHandler(this.Form1_Load);
             this.panel1.ResumeLayout(false);
@@ -288,8 +289,6 @@
         }
 
         #endregion
-
-        private System.Windows.Forms.Label label6;
         private System.Windows.Forms.Label label5;
         private System.Windows.Forms.Label LblCapcha;
         private System.Windows.Forms.TextBox TbxCapcha;

+ 31 - 20
СУБД Швейная фабрика/Form1.cs

@@ -60,47 +60,53 @@ namespace СУБД_Швейная_фабрика
 
         private void BtnLogin_Click(object sender, EventArgs e)
         {
-            if (TbxCapcha.Text.ToUpper() != LblCapcha.Text)
-            {
-                MessageBox.Show("Капча введена неверно!.");
-                LblCapcha.Text = GetCapcha();
-                TbxCapcha.Clear();
-                return;
-            }
+            //if (TbxCapcha.Text.ToUpper() != LblCapcha.Text)
+            //{
+            //    MessageBox.Show("Капча введена неверно!", "Внинмание!", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
+            //    LblCapcha.Text = GetCapcha();
+            //    TbxCapcha.Clear();
+            //    return;
+            //}
 
             string role = CmbRole.SelectedItem.ToString();
-            string TxtFilter = $"Login = '{TbxLogin.Text}' and Password = '{TbxPass.Text}' and ID_Role = '{role}'";
-            string TxtFilterForUser = $"Login = '{TbxLogin.Text}'";
-           // usersBindingSource.Filter = TxtFilter;
+           //string TxtFilter =  string.Format("login = '{0}' and password = '{1}' and ID_Role = '{2}'", TbxLogin.Text, TbxPass.Text, role);
+            string TxtFilterForUser = string.Format("Login = '{0}'", TbxLogin.Text);
+          //usersBindingSource.Filter = TxtFilter;
 
             if (usersBindingSource.Count == 0)
             {
-                MessageBox.Show("Нет пользователя с указанным логином и паролем!", role);
+                MessageBox.Show("Нет пользователя с указанным логином и паролем!");
                 return;
             }
+
             TbxLogin.Clear(); TbxPass.Clear(); // очистить поля
             this.Visible = false;  // скрыть форму для авторизации
 
-
             if (role == "заказчик")
             {
                 // создать форму для заказчика
-                FormZakazchik f = new FormZakazchik();
-                f.usersBindingSource.Filter = TxtFilterForUser;
-                f.ShowDialog();
-                
+                FormZakazchik frm = new FormZakazchik();
+                // отфильтровать авторизовавшегося пользователя
+                frm.usersBindingSource.Filter = TxtFilterForUser;
+                frm.ShowDialog();
             }
 
             if (role == "менеджер")
             {
                 // создать форму для менеджера
-                
+                FormManager frm = new FormManager();
+                // отфильтровать авторизовавшегося пользователя
+                frm.usersBindingSource.Filter = TxtFilterForUser;
+                frm.ShowDialog();
             }
 
             if (role == "кладовщик")
             {
-                // создать форму для кладовщика
-               
+                //// создать форму для кладовщика
+                //FormKladovschik frm = new FormKladovschik();
+                //// отфильтровать авторизовавшегося пользователя
+                //frm.BsUsers.Filter = TxtFilterForUser;
+                //frm.ShowDialog();
             }
 
             this.Visible = true;  // показать форму для авторизации
@@ -110,7 +116,6 @@ namespace СУБД_Швейная_фабрика
             TbxCapcha.Clear();
             LblCapcha.Text = GetCapcha();
 
-
         }
 
         private void CbxShowPass_CheckedChanged(object sender, EventArgs e)
@@ -120,6 +125,12 @@ namespace СУБД_Швейная_фабрика
 
         private void LblReg_Click(object sender, EventArgs e)
         {
+            FormRegister f =new FormRegister();
+            this.Hide();
+            if (f.ShowDialog() == DialogResult.OK)
+            {
+                this.usersTableAdapter.Fill(this.svFabricDataSet.Users);
+            }
 
         }
     }

+ 772 - 0
СУБД Швейная фабрика/FormManager.Designer.cs

@@ -0,0 +1,772 @@
+namespace СУБД_Швейная_фабрика
+{
+    partial class FormManager
+    {
+        /// <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 descriptionLabel;
+            System.Windows.Forms.Label label2;
+            System.Windows.Forms.Label label3;
+            System.Windows.Forms.Label colorLabel;
+            System.Windows.Forms.Label nametkanLabel;
+            System.Windows.Forms.Label widthLabel;
+            System.Windows.Forms.Label lengthLabel;
+            System.Windows.Forms.Label nameizdLabel;
+            System.Windows.Forms.Label label4;
+            System.Windows.Forms.Label label5;
+            this.DgvIzd = new System.Windows.Forms.DataGridView();
+            this.iDIzdelieDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.izdelieBindingSource = new System.Windows.Forms.BindingSource(this.components);
+            this.svFabricDataSet = new СУБД_Швейная_фабрика.SvFabricDataSet();
+            this.BtnSelect = new System.Windows.Forms.Button();
+            this.BtnAll = new System.Windows.Forms.Button();
+            this.RbtCSV = new System.Windows.Forms.RadioButton();
+            this.RbtWord = new System.Windows.Forms.RadioButton();
+            this.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.Column6 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.TbxCountFurSklad = new System.Windows.Forms.TextBox();
+            this.TbxNameFur = new System.Windows.Forms.TextBox();
+            this.LVFurnitura = new System.Windows.Forms.ListView();
+            this.tabPage4 = new System.Windows.Forms.TabPage();
+            this.BtnSave = new System.Windows.Forms.Button();
+            this.BtnEdit = new System.Windows.Forms.Button();
+            this.BtnAdd = new System.Windows.Forms.Button();
+            this.TbxWidthIzd = new System.Windows.Forms.TextBox();
+            this.TbxLengthIzd = new System.Windows.Forms.TextBox();
+            this.TbxNameIzd = new System.Windows.Forms.TextBox();
+            this.tabPage3 = new System.Windows.Forms.TabPage();
+            this.Column5 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.tabControl1 = new System.Windows.Forms.TabControl();
+            this.tabPage1 = new System.Windows.Forms.TabPage();
+            this.DgvZakaz = new System.Windows.Forms.DataGridView();
+            this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.Column2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.Column3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.Column4 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.LblIdManager = new System.Windows.Forms.Label();
+            this.label1 = new System.Windows.Forms.Label();
+            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.pictureBox1 = new System.Windows.Forms.PictureBox();
+            this.usersBindingSource = new System.Windows.Forms.BindingSource(this.components);
+            this.usersTableAdapter = new СУБД_Швейная_фабрика.SvFabricDataSetTableAdapters.UsersTableAdapter();
+            this.tableAdapterManager = new СУБД_Швейная_фабрика.SvFabricDataSetTableAdapters.TableAdapterManager();
+            this.izdelieTableAdapter = new СУБД_Швейная_фабрика.SvFabricDataSetTableAdapters.IzdelieTableAdapter();
+            this.imageListCloth = new System.Windows.Forms.ImageList(this.components);
+            this.imageListFur = new System.Windows.Forms.ImageList(this.components);
+            this.saveFileDialog1 = new System.Windows.Forms.SaveFileDialog();
+            descriptionLabel = new System.Windows.Forms.Label();
+            label2 = new System.Windows.Forms.Label();
+            label3 = new System.Windows.Forms.Label();
+            colorLabel = new System.Windows.Forms.Label();
+            nametkanLabel = new System.Windows.Forms.Label();
+            widthLabel = new System.Windows.Forms.Label();
+            lengthLabel = new System.Windows.Forms.Label();
+            nameizdLabel = new System.Windows.Forms.Label();
+            label4 = new System.Windows.Forms.Label();
+            label5 = new System.Windows.Forms.Label();
+            ((System.ComponentModel.ISupportInitialize)(this.DgvIzd)).BeginInit();
+            ((System.ComponentModel.ISupportInitialize)(this.izdelieBindingSource)).BeginInit();
+            ((System.ComponentModel.ISupportInitialize)(this.svFabricDataSet)).BeginInit();
+            this.tabPage2.SuspendLayout();
+            this.tabPage4.SuspendLayout();
+            this.tabPage3.SuspendLayout();
+            this.tabControl1.SuspendLayout();
+            this.tabPage1.SuspendLayout();
+            ((System.ComponentModel.ISupportInitialize)(this.DgvZakaz)).BeginInit();
+            this.panel1.SuspendLayout();
+            ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
+            ((System.ComponentModel.ISupportInitialize)(this.usersBindingSource)).BeginInit();
+            this.SuspendLayout();
+            // 
+            // descriptionLabel
+            // 
+            descriptionLabel.AutoSize = true;
+            descriptionLabel.Location = new System.Drawing.Point(597, 231);
+            descriptionLabel.Name = "descriptionLabel";
+            descriptionLabel.Size = new System.Drawing.Size(83, 20);
+            descriptionLabel.TabIndex = 20;
+            descriptionLabel.Text = "Описание:";
+            // 
+            // label2
+            // 
+            label2.AutoSize = true;
+            label2.Location = new System.Drawing.Point(624, 185);
+            label2.Name = "label2";
+            label2.Size = new System.Drawing.Size(58, 20);
+            label2.TabIndex = 18;
+            label2.Text = "Длина:";
+            // 
+            // label3
+            // 
+            label3.AutoSize = true;
+            label3.Location = new System.Drawing.Point(615, 140);
+            label3.Name = "label3";
+            label3.Size = new System.Drawing.Size(72, 20);
+            label3.TabIndex = 16;
+            label3.Text = "Ширина:";
+            // 
+            // colorLabel
+            // 
+            colorLabel.AutoSize = true;
+            colorLabel.Location = new System.Drawing.Point(634, 91);
+            colorLabel.Name = "colorLabel";
+            colorLabel.Size = new System.Drawing.Size(47, 20);
+            colorLabel.TabIndex = 14;
+            colorLabel.Text = "Цвет:";
+            // 
+            // nametkanLabel
+            // 
+            nametkanLabel.AutoSize = true;
+            nametkanLabel.Location = new System.Drawing.Point(600, 43);
+            nametkanLabel.Name = "nametkanLabel";
+            nametkanLabel.Size = new System.Drawing.Size(81, 20);
+            nametkanLabel.TabIndex = 12;
+            nametkanLabel.Text = "Название:";
+            // 
+            // widthLabel
+            // 
+            widthLabel.AutoSize = true;
+            widthLabel.Location = new System.Drawing.Point(318, 97);
+            widthLabel.Name = "widthLabel";
+            widthLabel.Size = new System.Drawing.Size(72, 20);
+            widthLabel.TabIndex = 5;
+            widthLabel.Text = "Ширина:";
+            // 
+            // lengthLabel
+            // 
+            lengthLabel.AutoSize = true;
+            lengthLabel.Location = new System.Drawing.Point(327, 63);
+            lengthLabel.Name = "lengthLabel";
+            lengthLabel.Size = new System.Drawing.Size(58, 20);
+            lengthLabel.TabIndex = 3;
+            lengthLabel.Text = "Длина:";
+            // 
+            // nameizdLabel
+            // 
+            nameizdLabel.AutoSize = true;
+            nameizdLabel.Location = new System.Drawing.Point(303, 31);
+            nameizdLabel.Name = "nameizdLabel";
+            nameizdLabel.Size = new System.Drawing.Size(81, 20);
+            nameizdLabel.TabIndex = 1;
+            nameizdLabel.Text = "Название:";
+            // 
+            // label4
+            // 
+            label4.AutoSize = true;
+            label4.Location = new System.Drawing.Point(538, 134);
+            label4.Name = "label4";
+            label4.Size = new System.Drawing.Size(135, 20);
+            label4.TabIndex = 14;
+            label4.Text = "Кол-во на складе:";
+            // 
+            // label5
+            // 
+            label5.AutoSize = true;
+            label5.Location = new System.Drawing.Point(597, 89);
+            label5.Name = "label5";
+            label5.Size = new System.Drawing.Size(81, 20);
+            label5.TabIndex = 12;
+            label5.Text = "Название:";
+            // 
+            // DgvIzd
+            // 
+            this.DgvIzd.AllowUserToAddRows = false;
+            this.DgvIzd.AllowUserToDeleteRows = false;
+            this.DgvIzd.AllowUserToResizeColumns = false;
+            this.DgvIzd.AllowUserToResizeRows = false;
+            this.DgvIzd.AutoGenerateColumns = false;
+            this.DgvIzd.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
+            this.DgvIzd.ColumnHeadersVisible = false;
+            this.DgvIzd.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
+            this.iDIzdelieDataGridViewTextBoxColumn});
+            this.DgvIzd.DataSource = this.izdelieBindingSource;
+            this.DgvIzd.Location = new System.Drawing.Point(12, 8);
+            this.DgvIzd.Name = "DgvIzd";
+            this.DgvIzd.ReadOnly = true;
+            this.DgvIzd.RowHeadersVisible = false;
+            this.DgvIzd.RowTemplate.Height = 24;
+            this.DgvIzd.Size = new System.Drawing.Size(270, 458);
+            this.DgvIzd.TabIndex = 0;
+            // 
+            // iDIzdelieDataGridViewTextBoxColumn
+            // 
+            this.iDIzdelieDataGridViewTextBoxColumn.DataPropertyName = "ID_Izdelie";
+            this.iDIzdelieDataGridViewTextBoxColumn.HeaderText = "ID_Izdelie";
+            this.iDIzdelieDataGridViewTextBoxColumn.Name = "iDIzdelieDataGridViewTextBoxColumn";
+            this.iDIzdelieDataGridViewTextBoxColumn.ReadOnly = true;
+            // 
+            // izdelieBindingSource
+            // 
+            this.izdelieBindingSource.DataMember = "Izdelie";
+            this.izdelieBindingSource.DataSource = this.svFabricDataSet;
+            // 
+            // svFabricDataSet
+            // 
+            this.svFabricDataSet.DataSetName = "SvFabricDataSet";
+            this.svFabricDataSet.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
+            // 
+            // BtnSelect
+            // 
+            this.BtnSelect.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(156)))), ((int)(((byte)(26)))));
+            this.BtnSelect.Location = new System.Drawing.Point(460, 409);
+            this.BtnSelect.Name = "BtnSelect";
+            this.BtnSelect.Size = new System.Drawing.Size(340, 35);
+            this.BtnSelect.TabIndex = 15;
+            this.BtnSelect.Text = "Экспортировать выделенные заказы";
+            this.BtnSelect.UseVisualStyleBackColor = false;
+            this.BtnSelect.Click += new System.EventHandler(this.BtnSelect_Click);
+            // 
+            // BtnAll
+            // 
+            this.BtnAll.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(156)))), ((int)(((byte)(26)))));
+            this.BtnAll.Location = new System.Drawing.Point(195, 409);
+            this.BtnAll.Name = "BtnAll";
+            this.BtnAll.Size = new System.Drawing.Size(258, 35);
+            this.BtnAll.TabIndex = 14;
+            this.BtnAll.Text = "Экспортировать все заказы";
+            this.BtnAll.UseVisualStyleBackColor = false;
+            this.BtnAll.Click += new System.EventHandler(this.BtnAll_Click);
+            // 
+            // RbtCSV
+            // 
+            this.RbtCSV.AutoSize = true;
+            this.RbtCSV.Location = new System.Drawing.Point(112, 417);
+            this.RbtCSV.Name = "RbtCSV";
+            this.RbtCSV.Size = new System.Drawing.Size(66, 24);
+            this.RbtCSV.TabIndex = 1;
+            this.RbtCSV.Text = "в CSV";
+            this.RbtCSV.UseVisualStyleBackColor = true;
+            // 
+            // RbtWord
+            // 
+            this.RbtWord.AutoSize = true;
+            this.RbtWord.Checked = true;
+            this.RbtWord.Location = new System.Drawing.Point(22, 417);
+            this.RbtWord.Name = "RbtWord";
+            this.RbtWord.Size = new System.Drawing.Size(77, 24);
+            this.RbtWord.TabIndex = 0;
+            this.RbtWord.TabStop = true;
+            this.RbtWord.Text = "в Word";
+            this.RbtWord.UseVisualStyleBackColor = true;
+            // 
+            // tabPage2
+            // 
+            this.tabPage2.Controls.Add(descriptionLabel);
+            this.tabPage2.Controls.Add(this.DescriptionTextBox);
+            this.tabPage2.Controls.Add(label2);
+            this.tabPage2.Controls.Add(this.LengthTextBox);
+            this.tabPage2.Controls.Add(label3);
+            this.tabPage2.Controls.Add(this.WidthTextBox);
+            this.tabPage2.Controls.Add(colorLabel);
+            this.tabPage2.Controls.Add(this.ColorTextBox);
+            this.tabPage2.Controls.Add(nametkanLabel);
+            this.tabPage2.Controls.Add(this.NametkanTextBox);
+            this.tabPage2.Controls.Add(this.LVTkani);
+            this.tabPage2.Location = new System.Drawing.Point(4, 22);
+            this.tabPage2.Name = "tabPage2";
+            this.tabPage2.Padding = new System.Windows.Forms.Padding(3, 3, 3, 3);
+            this.tabPage2.Size = new System.Drawing.Size(1100, 486);
+            this.tabPage2.TabIndex = 1;
+            this.tabPage2.Text = "Ткани";
+            this.tabPage2.UseVisualStyleBackColor = true;
+            // 
+            // DescriptionTextBox
+            // 
+            this.DescriptionTextBox.Location = new System.Drawing.Point(692, 228);
+            this.DescriptionTextBox.Name = "DescriptionTextBox";
+            this.DescriptionTextBox.ReadOnly = true;
+            this.DescriptionTextBox.Size = new System.Drawing.Size(162, 27);
+            this.DescriptionTextBox.TabIndex = 21;
+            // 
+            // LengthTextBox
+            // 
+            this.LengthTextBox.Location = new System.Drawing.Point(692, 182);
+            this.LengthTextBox.Name = "LengthTextBox";
+            this.LengthTextBox.ReadOnly = true;
+            this.LengthTextBox.Size = new System.Drawing.Size(162, 27);
+            this.LengthTextBox.TabIndex = 19;
+            // 
+            // WidthTextBox
+            // 
+            this.WidthTextBox.Location = new System.Drawing.Point(692, 137);
+            this.WidthTextBox.Name = "WidthTextBox";
+            this.WidthTextBox.ReadOnly = true;
+            this.WidthTextBox.Size = new System.Drawing.Size(162, 27);
+            this.WidthTextBox.TabIndex = 17;
+            // 
+            // ColorTextBox
+            // 
+            this.ColorTextBox.Location = new System.Drawing.Point(692, 88);
+            this.ColorTextBox.Name = "ColorTextBox";
+            this.ColorTextBox.ReadOnly = true;
+            this.ColorTextBox.Size = new System.Drawing.Size(162, 27);
+            this.ColorTextBox.TabIndex = 15;
+            // 
+            // NametkanTextBox
+            // 
+            this.NametkanTextBox.Location = new System.Drawing.Point(692, 38);
+            this.NametkanTextBox.Name = "NametkanTextBox";
+            this.NametkanTextBox.ReadOnly = true;
+            this.NametkanTextBox.Size = new System.Drawing.Size(162, 27);
+            this.NametkanTextBox.TabIndex = 13;
+            // 
+            // LVTkani
+            // 
+            this.LVTkani.Dock = System.Windows.Forms.DockStyle.Left;
+            this.LVTkani.HideSelection = false;
+            this.LVTkani.Location = new System.Drawing.Point(3, 3);
+            this.LVTkani.Name = "LVTkani";
+            this.LVTkani.Size = new System.Drawing.Size(508, 480);
+            this.LVTkani.TabIndex = 11;
+            this.LVTkani.UseCompatibleStateImageBehavior = false;
+            this.LVTkani.SelectedIndexChanged += new System.EventHandler(this.LVTkani_SelectedIndexChanged);
+            // 
+            // Column6
+            // 
+            this.Column6.HeaderText = "Заказчик";
+            this.Column6.Name = "Column6";
+            this.Column6.ReadOnly = true;
+            // 
+            // TbxCountFurSklad
+            // 
+            this.TbxCountFurSklad.Location = new System.Drawing.Point(688, 134);
+            this.TbxCountFurSklad.Name = "TbxCountFurSklad";
+            this.TbxCountFurSklad.ReadOnly = true;
+            this.TbxCountFurSklad.Size = new System.Drawing.Size(162, 27);
+            this.TbxCountFurSklad.TabIndex = 15;
+            // 
+            // TbxNameFur
+            // 
+            this.TbxNameFur.Location = new System.Drawing.Point(688, 85);
+            this.TbxNameFur.Name = "TbxNameFur";
+            this.TbxNameFur.ReadOnly = true;
+            this.TbxNameFur.Size = new System.Drawing.Size(162, 27);
+            this.TbxNameFur.TabIndex = 13;
+            // 
+            // LVFurnitura
+            // 
+            this.LVFurnitura.Dock = System.Windows.Forms.DockStyle.Left;
+            this.LVFurnitura.HideSelection = false;
+            this.LVFurnitura.Location = new System.Drawing.Point(3, 3);
+            this.LVFurnitura.Name = "LVFurnitura";
+            this.LVFurnitura.Size = new System.Drawing.Size(488, 480);
+            this.LVFurnitura.TabIndex = 11;
+            this.LVFurnitura.UseCompatibleStateImageBehavior = false;
+            this.LVFurnitura.SelectedIndexChanged += new System.EventHandler(this.LVFurnitura_SelectedIndexChanged);
+            // 
+            // tabPage4
+            // 
+            this.tabPage4.AutoScroll = true;
+            this.tabPage4.Controls.Add(this.BtnSave);
+            this.tabPage4.Controls.Add(this.BtnEdit);
+            this.tabPage4.Controls.Add(this.BtnAdd);
+            this.tabPage4.Controls.Add(widthLabel);
+            this.tabPage4.Controls.Add(this.TbxWidthIzd);
+            this.tabPage4.Controls.Add(lengthLabel);
+            this.tabPage4.Controls.Add(this.TbxLengthIzd);
+            this.tabPage4.Controls.Add(nameizdLabel);
+            this.tabPage4.Controls.Add(this.TbxNameIzd);
+            this.tabPage4.Controls.Add(this.DgvIzd);
+            this.tabPage4.Location = new System.Drawing.Point(4, 22);
+            this.tabPage4.Name = "tabPage4";
+            this.tabPage4.Padding = new System.Windows.Forms.Padding(3, 3, 3, 3);
+            this.tabPage4.Size = new System.Drawing.Size(1100, 486);
+            this.tabPage4.TabIndex = 3;
+            this.tabPage4.Text = "Изделия";
+            this.tabPage4.UseVisualStyleBackColor = true;
+            // 
+            // BtnSave
+            // 
+            this.BtnSave.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(156)))), ((int)(((byte)(26)))));
+            this.BtnSave.Enabled = false;
+            this.BtnSave.Location = new System.Drawing.Point(306, 312);
+            this.BtnSave.Name = "BtnSave";
+            this.BtnSave.Size = new System.Drawing.Size(231, 35);
+            this.BtnSave.TabIndex = 16;
+            this.BtnSave.Text = "Сохранить";
+            this.BtnSave.UseVisualStyleBackColor = false;
+            this.BtnSave.Click += new System.EventHandler(this.BtnSave_Click);
+            // 
+            // BtnEdit
+            // 
+            this.BtnEdit.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(156)))), ((int)(((byte)(26)))));
+            this.BtnEdit.Location = new System.Drawing.Point(306, 223);
+            this.BtnEdit.Name = "BtnEdit";
+            this.BtnEdit.Size = new System.Drawing.Size(231, 35);
+            this.BtnEdit.TabIndex = 15;
+            this.BtnEdit.Text = "Редактировать";
+            this.BtnEdit.UseVisualStyleBackColor = false;
+            this.BtnEdit.Click += new System.EventHandler(this.BtnEdit_Click);
+            // 
+            // BtnAdd
+            // 
+            this.BtnAdd.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(156)))), ((int)(((byte)(26)))));
+            this.BtnAdd.Location = new System.Drawing.Point(306, 169);
+            this.BtnAdd.Name = "BtnAdd";
+            this.BtnAdd.Size = new System.Drawing.Size(231, 35);
+            this.BtnAdd.TabIndex = 14;
+            this.BtnAdd.Text = "Добавить";
+            this.BtnAdd.UseVisualStyleBackColor = false;
+            this.BtnAdd.Click += new System.EventHandler(this.BtnAdd_Click);
+            // 
+            // TbxWidthIzd
+            // 
+            this.TbxWidthIzd.Enabled = false;
+            this.TbxWidthIzd.Location = new System.Drawing.Point(394, 94);
+            this.TbxWidthIzd.Name = "TbxWidthIzd";
+            this.TbxWidthIzd.Size = new System.Drawing.Size(142, 27);
+            this.TbxWidthIzd.TabIndex = 6;
+            // 
+            // TbxLengthIzd
+            // 
+            this.TbxLengthIzd.Enabled = false;
+            this.TbxLengthIzd.Location = new System.Drawing.Point(394, 58);
+            this.TbxLengthIzd.Name = "TbxLengthIzd";
+            this.TbxLengthIzd.Size = new System.Drawing.Size(142, 27);
+            this.TbxLengthIzd.TabIndex = 4;
+            // 
+            // TbxNameIzd
+            // 
+            this.TbxNameIzd.Enabled = false;
+            this.TbxNameIzd.Location = new System.Drawing.Point(394, 23);
+            this.TbxNameIzd.Name = "TbxNameIzd";
+            this.TbxNameIzd.Size = new System.Drawing.Size(142, 27);
+            this.TbxNameIzd.TabIndex = 2;
+            // 
+            // tabPage3
+            // 
+            this.tabPage3.Controls.Add(label4);
+            this.tabPage3.Controls.Add(this.TbxCountFurSklad);
+            this.tabPage3.Controls.Add(label5);
+            this.tabPage3.Controls.Add(this.TbxNameFur);
+            this.tabPage3.Controls.Add(this.LVFurnitura);
+            this.tabPage3.Location = new System.Drawing.Point(4, 22);
+            this.tabPage3.Name = "tabPage3";
+            this.tabPage3.Padding = new System.Windows.Forms.Padding(3, 3, 3, 3);
+            this.tabPage3.Size = new System.Drawing.Size(1100, 486);
+            this.tabPage3.TabIndex = 2;
+            this.tabPage3.Text = "Фурнитуры";
+            this.tabPage3.UseVisualStyleBackColor = true;
+            // 
+            // Column5
+            // 
+            this.Column5.HeaderText = "Кол-во фурнитуры";
+            this.Column5.Name = "Column5";
+            this.Column5.ReadOnly = true;
+            // 
+            // tabControl1
+            // 
+            this.tabControl1.Controls.Add(this.tabPage1);
+            this.tabControl1.Controls.Add(this.tabPage2);
+            this.tabControl1.Controls.Add(this.tabPage3);
+            this.tabControl1.Controls.Add(this.tabPage4);
+            this.tabControl1.Dock = System.Windows.Forms.DockStyle.Bottom;
+            this.tabControl1.Location = new System.Drawing.Point(0, 262);
+            this.tabControl1.Name = "tabControl1";
+            this.tabControl1.SelectedIndex = 0;
+            this.tabControl1.Size = new System.Drawing.Size(1108, 512);
+            this.tabControl1.TabIndex = 20;
+            // 
+            // tabPage1
+            // 
+            this.tabPage1.Controls.Add(this.DgvZakaz);
+            this.tabPage1.Controls.Add(this.BtnSelect);
+            this.tabPage1.Controls.Add(this.BtnAll);
+            this.tabPage1.Controls.Add(this.RbtCSV);
+            this.tabPage1.Controls.Add(this.RbtWord);
+            this.tabPage1.Location = new System.Drawing.Point(4, 29);
+            this.tabPage1.Name = "tabPage1";
+            this.tabPage1.Padding = new System.Windows.Forms.Padding(3, 3, 3, 3);
+            this.tabPage1.Size = new System.Drawing.Size(1100, 479);
+            this.tabPage1.TabIndex = 0;
+            this.tabPage1.Text = "Заказы";
+            this.tabPage1.UseVisualStyleBackColor = true;
+            // 
+            // DgvZakaz
+            // 
+            this.DgvZakaz.AllowUserToAddRows = false;
+            this.DgvZakaz.AllowUserToDeleteRows = false;
+            this.DgvZakaz.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
+            this.DgvZakaz.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
+            this.Column1,
+            this.Column2,
+            this.Column3,
+            this.Column4,
+            this.Column5,
+            this.Column6});
+            this.DgvZakaz.Location = new System.Drawing.Point(6, 8);
+            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(996, 372);
+            this.DgvZakaz.TabIndex = 16;
+            // 
+            // Column1
+            // 
+            this.Column1.HeaderText = "Изделие";
+            this.Column1.Name = "Column1";
+            this.Column1.ReadOnly = true;
+            // 
+            // Column2
+            // 
+            this.Column2.HeaderText = "Кол-во изделий";
+            this.Column2.Name = "Column2";
+            this.Column2.ReadOnly = true;
+            // 
+            // Column3
+            // 
+            this.Column3.HeaderText = "Ткань";
+            this.Column3.Name = "Column3";
+            this.Column3.ReadOnly = true;
+            // 
+            // Column4
+            // 
+            this.Column4.HeaderText = "Фурнитура";
+            this.Column4.Name = "Column4";
+            this.Column4.ReadOnly = true;
+            // 
+            // LblIdManager
+            // 
+            this.LblIdManager.AutoSize = true;
+            this.LblIdManager.Location = new System.Drawing.Point(382, 90);
+            this.LblIdManager.Name = "LblIdManager";
+            this.LblIdManager.Size = new System.Drawing.Size(15, 20);
+            this.LblIdManager.TabIndex = 15;
+            this.LblIdManager.Text = "1";
+            // 
+            // label1
+            // 
+            this.label1.Font = new System.Drawing.Font("Yu Gothic UI Light", 36F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
+            this.label1.Location = new System.Drawing.Point(156, 9);
+            this.label1.Name = "label1";
+            this.label1.Size = new System.Drawing.Size(599, 68);
+            this.label1.TabIndex = 1;
+            this.label1.Text = "Рабочее место менеджера";
+            // 
+            // BtnProfile
+            // 
+            this.BtnProfile.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(156)))), ((int)(((byte)(26)))));
+            this.BtnProfile.Location = new System.Drawing.Point(147, 168);
+            this.BtnProfile.Name = "BtnProfile";
+            this.BtnProfile.Size = new System.Drawing.Size(231, 35);
+            this.BtnProfile.TabIndex = 19;
+            this.BtnProfile.Text = "Профиль пользователя";
+            this.BtnProfile.UseVisualStyleBackColor = false;
+            this.BtnProfile.Click += new System.EventHandler(this.BtnProfile_Click);
+            // 
+            // OtchLabel
+            // 
+            this.OtchLabel.Location = new System.Drawing.Point(14, 232);
+            this.OtchLabel.Name = "OtchLabel";
+            this.OtchLabel.Size = new System.Drawing.Size(112, 29);
+            this.OtchLabel.TabIndex = 18;
+            this.OtchLabel.Text = "label2";
+            // 
+            // NameLabel
+            // 
+            this.NameLabel.Location = new System.Drawing.Point(14, 203);
+            this.NameLabel.Name = "NameLabel";
+            this.NameLabel.Size = new System.Drawing.Size(112, 29);
+            this.NameLabel.TabIndex = 17;
+            this.NameLabel.Text = "label2";
+            // 
+            // FamLabel
+            // 
+            this.FamLabel.Location = new System.Drawing.Point(14, 175);
+            this.FamLabel.Name = "FamLabel";
+            this.FamLabel.Size = new System.Drawing.Size(112, 29);
+            this.FamLabel.TabIndex = 16;
+            this.FamLabel.Text = "label2";
+            // 
+            // panel1
+            // 
+            this.panel1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(225)))));
+            this.panel1.Controls.Add(this.LblIdManager);
+            this.panel1.Controls.Add(this.label1);
+            this.panel1.Controls.Add(this.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(1108, 127);
+            this.panel1.TabIndex = 15;
+            // 
+            // pictureBox1
+            // 
+            this.pictureBox1.Dock = System.Windows.Forms.DockStyle.Left;
+            this.pictureBox1.Image = global::СУБД_Швейная_фабрика.Properties.Resources.fabric_logo1;
+            this.pictureBox1.Location = new System.Drawing.Point(0, 0);
+            this.pictureBox1.Name = "pictureBox1";
+            this.pictureBox1.Size = new System.Drawing.Size(150, 127);
+            this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
+            this.pictureBox1.TabIndex = 0;
+            this.pictureBox1.TabStop = false;
+            // 
+            // usersBindingSource
+            // 
+            this.usersBindingSource.DataMember = "Users";
+            this.usersBindingSource.DataSource = this.svFabricDataSet;
+            // 
+            // usersTableAdapter
+            // 
+            this.usersTableAdapter.ClearBeforeFill = true;
+            // 
+            // tableAdapterManager
+            // 
+            this.tableAdapterManager.BackupDataSetBeforeUpdate = false;
+            this.tableAdapterManager.ClothessTableAdapter = null;
+            this.tableAdapterManager.ColorsTableAdapter = null;
+            this.tableAdapterManager.FurnituresTableAdapter = null;
+            this.tableAdapterManager.IzdelieTableAdapter = this.izdelieTableAdapter;
+            this.tableAdapterManager.OrdersTableAdapter = null;
+            this.tableAdapterManager.RolesTableAdapter = null;
+            this.tableAdapterManager.UpdateOrder = СУБД_Швейная_фабрика.SvFabricDataSetTableAdapters.TableAdapterManager.UpdateOrderOption.InsertUpdateDelete;
+            this.tableAdapterManager.UsersTableAdapter = this.usersTableAdapter;
+            // 
+            // izdelieTableAdapter
+            // 
+            this.izdelieTableAdapter.ClearBeforeFill = true;
+            // 
+            // imageListCloth
+            // 
+            this.imageListCloth.ColorDepth = System.Windows.Forms.ColorDepth.Depth32Bit;
+            this.imageListCloth.ImageSize = new System.Drawing.Size(100, 100);
+            this.imageListCloth.TransparentColor = System.Drawing.Color.Transparent;
+            // 
+            // imageListFur
+            // 
+            this.imageListFur.ColorDepth = System.Windows.Forms.ColorDepth.Depth32Bit;
+            this.imageListFur.ImageSize = new System.Drawing.Size(100, 100);
+            this.imageListFur.TransparentColor = System.Drawing.Color.Transparent;
+            // 
+            // saveFileDialog1
+            // 
+            this.saveFileDialog1.Filter = "Файлы CSV|*.csv|Все файлы|*.*";
+            // 
+            // FormManager
+            // 
+            this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 20F);
+            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+            this.ClientSize = new System.Drawing.Size(1108, 774);
+            this.Controls.Add(this.tabControl1);
+            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.Font = new System.Drawing.Font("Yu Gothic UI Semibold", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
+            this.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
+            this.Name = "FormManager";
+            this.Text = "FormManager";
+            this.Load += new System.EventHandler(this.FormManager_Load);
+            ((System.ComponentModel.ISupportInitialize)(this.DgvIzd)).EndInit();
+            ((System.ComponentModel.ISupportInitialize)(this.izdelieBindingSource)).EndInit();
+            ((System.ComponentModel.ISupportInitialize)(this.svFabricDataSet)).EndInit();
+            this.tabPage2.ResumeLayout(false);
+            this.tabPage2.PerformLayout();
+            this.tabPage4.ResumeLayout(false);
+            this.tabPage4.PerformLayout();
+            this.tabPage3.ResumeLayout(false);
+            this.tabPage3.PerformLayout();
+            this.tabControl1.ResumeLayout(false);
+            this.tabPage1.ResumeLayout(false);
+            this.tabPage1.PerformLayout();
+            ((System.ComponentModel.ISupportInitialize)(this.DgvZakaz)).EndInit();
+            this.panel1.ResumeLayout(false);
+            this.panel1.PerformLayout();
+            ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
+            ((System.ComponentModel.ISupportInitialize)(this.usersBindingSource)).EndInit();
+            this.ResumeLayout(false);
+
+        }
+
+        #endregion
+
+        private System.Windows.Forms.DataGridView DgvIzd;
+        private System.Windows.Forms.Button BtnSelect;
+        private System.Windows.Forms.Button BtnAll;
+        private System.Windows.Forms.RadioButton RbtCSV;
+        private System.Windows.Forms.RadioButton RbtWord;
+        private System.Windows.Forms.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.DataGridViewTextBoxColumn Column6;
+        private System.Windows.Forms.TextBox TbxCountFurSklad;
+        private System.Windows.Forms.TextBox TbxNameFur;
+        private System.Windows.Forms.ListView LVFurnitura;
+        private System.Windows.Forms.TabPage tabPage4;
+        private System.Windows.Forms.Button BtnSave;
+        private System.Windows.Forms.Button BtnEdit;
+        private System.Windows.Forms.Button BtnAdd;
+        private System.Windows.Forms.TextBox TbxWidthIzd;
+        private System.Windows.Forms.TextBox TbxLengthIzd;
+        private System.Windows.Forms.TextBox TbxNameIzd;
+        private System.Windows.Forms.TabPage tabPage3;
+        private System.Windows.Forms.DataGridViewTextBoxColumn Column5;
+        private System.Windows.Forms.TabControl tabControl1;
+        private System.Windows.Forms.TabPage tabPage1;
+        private System.Windows.Forms.DataGridView DgvZakaz;
+        private System.Windows.Forms.DataGridViewTextBoxColumn Column1;
+        private System.Windows.Forms.DataGridViewTextBoxColumn Column2;
+        private System.Windows.Forms.DataGridViewTextBoxColumn Column3;
+        private System.Windows.Forms.DataGridViewTextBoxColumn Column4;
+        private System.Windows.Forms.Label LblIdManager;
+        private System.Windows.Forms.Label label1;
+        private System.Windows.Forms.PictureBox pictureBox1;
+        private System.Windows.Forms.Button BtnProfile;
+        private System.Windows.Forms.Label OtchLabel;
+        private System.Windows.Forms.Label NameLabel;
+        private System.Windows.Forms.Label FamLabel;
+        private System.Windows.Forms.Panel panel1;
+        private SvFabricDataSet svFabricDataSet;
+        private SvFabricDataSetTableAdapters.UsersTableAdapter usersTableAdapter;
+        private SvFabricDataSetTableAdapters.TableAdapterManager tableAdapterManager;
+        private SvFabricDataSetTableAdapters.IzdelieTableAdapter izdelieTableAdapter;
+        private System.Windows.Forms.BindingSource izdelieBindingSource;
+        private System.Windows.Forms.DataGridViewTextBoxColumn iDIzdelieDataGridViewTextBoxColumn;
+        private System.Windows.Forms.ImageList imageListCloth;
+        private System.Windows.Forms.ImageList imageListFur;
+        private System.Windows.Forms.SaveFileDialog saveFileDialog1;
+        public System.Windows.Forms.BindingSource usersBindingSource;
+    }
+}

+ 389 - 0
СУБД Швейная фабрика/FormManager.cs

@@ -0,0 +1,389 @@
+
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Data.SqlClient;
+using System.Drawing;
+using System.IO;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows.Forms;
+using Word = Microsoft.Office.Interop.Word;
+
+namespace СУБД_Швейная_фабрика
+{
+    public partial class FormManager : Form
+    {
+        void FillLstOrder()
+        {
+            SqlConnection con = new SqlConnection(Properties.Settings.Default.SvFabricConnectionString);
+            con.Open();
+            string TxtQuery =
+@"select Izdelie.Name_Izdelie as izd, 
+    Orders.CountIzd as countizd, 
+    Clothess.Name as tkan, 
+    Furnitures.Name_Fur as fur, 
+    Orders.CountCur as countfur, 
+    Users.Surname as zakazchik
+from Orders, Users, Clothess, Furnitures, Izdelie
+where Users.Id_User = Orders.ID_Zakazchik
+    and Clothess.ID_Cloth = Orders.ID_Cloth
+    and Furnitures.Id_Fur = Orders.Id_Fur 
+    and Izdelie.ID_Izdelie = Orders.ID_Izdelie
+    and Orders.ID_Manager = " + LblIdManager.Text;
+
+            SqlCommand query1 = new SqlCommand(TxtQuery, con);
+            // выполнить запрос
+            SqlDataReader SqlRez = query1.ExecuteReader();
+
+            DgvZakaz.Rows.Clear(); // очистить от старых строк
+            // перебирать результаты запроса
+            while (SqlRez.Read())
+            {
+                DgvZakaz.Rows.Add(SqlRez["izd"], SqlRez["countizd"],
+                    SqlRez["tkan"], SqlRez["fur"], SqlRez["countfur"],
+                    SqlRez["zakazchik"]);
+            }
+            con.Close();
+        }
+
+        public struct Clothes
+        {
+            public string IdTkan, NameTkan, ColorTkan, Width, Length, Description;
+            public Image PhotoTkan;
+        }
+
+        List<Clothes> LstTkani = new List<Clothes>();
+        public FormManager()
+        {
+            InitializeComponent();
+        }
+        void GetClothesFromDB()
+        {
+            SqlConnection con = new SqlConnection(Properties.Settings.Default.SvFabricConnectionString);
+            con.Open();
+            SqlCommand Query = new SqlCommand("select * from Clothess where Length > 0", con);
+            SqlDataReader Data = Query.ExecuteReader();
+            while (Data.Read())
+            {
+                Clothes cl = new Clothes();
+                cl.IdTkan = Data["ID_Cloth"].ToString();
+                cl.NameTkan = Data["Name"].ToString();
+                cl  .ColorTkan = Data["Color"].ToString();
+                cl.Width = Data["Width"].ToString();
+                cl.Length = Data["Length"].ToString();
+                cl.Description = Data["Comment"].ToString();
+                try
+                {
+                    // загрузить из таблицы БД байты фотографии в массив
+                    byte[] PhotoByte = (byte[])Data["phototkan"];
+                    ImageConverter ImConverter = new ImageConverter();
+                    // сконвертировать массив байт в изображение
+                        cl.PhotoTkan = (Bitmap)ImConverter.ConvertFrom(PhotoByte);
+                }
+                catch
+                {
+                    // в случае ошибки загрузить пустое изображение из ресурсов
+                    cl.PhotoTkan = Properties.Resources.tmp;
+                }
+                LstTkani.Add(cl);  // добавить в список новую ткань
+            }
+            con.Close();
+        }
+
+        void FillLVCLothes()
+        {
+            LVTkani.Items.Clear();
+            imageListCloth.Images.Clear();
+            foreach (Clothes Tk in LstTkani)
+            {
+                // новый элемент для ListView с названием ткани
+                ListViewItem LV = new ListViewItem(Tk.NameTkan);
+                // в ImageList добавить изображение ткани
+                imageListCloth.Images.Add(Tk.PhotoTkan);
+                // связать последнее добавленное изображение с новым элементом ListView
+                LV.ImageIndex = imageListCloth.Images.Count - 1;
+                LVTkani.Items.Add(LV);  // добавить новый элемент к ListView
+            }
+        }
+
+        public struct Furniture
+        {
+            public string IdFur, NameFur, CountFur;
+            public Image PhotoFur;
+        }
+
+        List<Furniture> LstFurnitura = new List<Furniture>();
+
+        void GetFurnituraFromDB()
+        {
+            SqlConnection con = new SqlConnection(Properties.Settings.Default.SvFabricConnectionString);
+            con.Open();
+            SqlCommand qur = new SqlCommand("select * from Furnitures where Count_Fur > 0", con);
+            SqlDataReader dt = qur.ExecuteReader();
+            while (dt.Read())
+            {
+                Furniture fr = new Furniture();
+                fr.IdFur = dt["ID_Fur"].ToString();
+                fr.NameFur = dt["Name_Fur"].ToString();
+                fr.CountFur = dt["Count_Fur"].ToString();
+                try
+                {
+                    byte[] photo = (byte[])dt["Photo"];
+                    ImageConverter ic = new ImageConverter();
+                    fr.PhotoFur = (Bitmap)ic.ConvertFrom(photo);
+                }
+                catch
+                {
+                    fr.PhotoFur = Properties.Resources.tmp;
+
+                }
+                LstFurnitura.Add(fr);
+            }
+
+
+            con.Close();
+        }
+
+        void Fillfurn()
+        {
+            LVFurnitura.Items.Clear();
+            imageListFur.Images.Clear();
+            foreach (Furniture fr in LstFurnitura)
+            {
+                ListViewItem lv = new ListViewItem(fr.NameFur);
+                imageListFur.Images.Add(fr.PhotoFur);
+                lv.ImageIndex = imageListFur.Images.Count - 1;
+                LVFurnitura.Items.Add(lv); 
+            }
+        }
+        private void usersBindingNavigatorSaveItem_Click(object sender, EventArgs e)
+        {
+            this.Validate();
+            this.usersBindingSource.EndEdit();
+            this.tableAdapterManager.UpdateAll(this.svFabricDataSet);
+
+        }
+
+        private void usersBindingNavigatorSaveItem_Click_1(object sender, EventArgs e)
+        {
+            this.Validate();
+            this.usersBindingSource.EndEdit();
+            this.tableAdapterManager.UpdateAll(this.svFabricDataSet);
+
+        }
+
+        private void FormManager_Load(object sender, EventArgs e)
+        {
+            // TODO: This line of code loads data into the 'svFabricDataSet.Izdelie' table. You can move, or remove it, as needed.
+            this.izdelieTableAdapter.Fill(this.svFabricDataSet.Izdelie);
+            // TODO: This line of code loads data into the 'svFabricDataSet.Users' table. You can move, or remove it, as needed.
+            this.usersTableAdapter.Fill(this.svFabricDataSet.Users);
+
+
+            FillLstOrder();
+
+            GetClothesFromDB();
+            FillLVCLothes();
+            GetFurnituraFromDB();
+            Fillfurn();
+        }
+
+        private void BtnProfile_Click(object sender, EventArgs e)
+        {
+            FormProfile frm = new FormProfile();
+            // на форму для редактирования профиля передать 
+            // фильтр для выборки авторизовавшегося пользователя
+            frm.usersBindingSource.Filter = this.usersBindingSource.Filter;
+            if (frm.ShowDialog() == DialogResult.OK)
+            {
+                this.usersTableAdapter.Fill(this.svFabricDataSet.Users);
+            }
+        }
+
+        private void BtnAdd_Click(object sender, EventArgs e)
+        {
+            izdelieBindingSource.AddNew();
+            BtnSave.Enabled = true;
+            BtnAdd.Enabled = false;
+            BtnEdit.Enabled = false;
+            DgvIzd.Enabled = false;
+            TbxNameIzd.Enabled = true;
+            TbxLengthIzd.Enabled = true;
+            TbxWidthIzd.Enabled = true;
+        }
+
+        private void BtnEdit_Click(object sender, EventArgs e)
+        {
+            BtnSave.Enabled = true;
+            BtnAdd.Enabled = false;
+            BtnEdit.Enabled = false;
+            DgvIzd.Enabled = false;
+            TbxNameIzd.Enabled = true;
+            TbxLengthIzd.Enabled = true;
+            TbxWidthIzd.Enabled = true;
+        }
+
+        private void BtnSave_Click(object sender, EventArgs e)
+        {
+            izdelieBindingSource.EndEdit();
+            this.izdelieTableAdapter.Update(this.svFabricDataSet.Izdelie);
+            BtnSave.Enabled = false;
+            BtnAdd.Enabled = true;
+            BtnEdit.Enabled = true;
+            DgvIzd.Enabled = true;
+            TbxNameIzd.Enabled = false;
+            TbxLengthIzd.Enabled = false;
+            TbxWidthIzd.Enabled = false;
+        }
+
+        private void LVTkani_SelectedIndexChanged(object sender, EventArgs e)
+        {
+
+            if (LVTkani.SelectedItems.Count > 0)  // есть выделенные элементы
+            {
+                int num = LVTkani.SelectedIndices[0];  // номер выделенного элемента
+                NametkanTextBox.Text = LstTkani[num].NameTkan;
+                ColorTextBox.Text = LstTkani[num].ColorTkan;
+                WidthTextBox.Text = LstTkani[num].Width;
+                LengthTextBox.Text = LstTkani[num].Length;
+                DescriptionTextBox.Text = LstTkani[num].Description;
+            }
+            else  // нет выделенных элементов
+            {
+                NametkanTextBox.Text = "";
+                ColorTextBox.Text = "";
+                WidthTextBox.Text = "";
+                LengthTextBox.Text = "";
+                DescriptionTextBox.Text = "";
+            }
+        }
+
+        private void LVFurnitura_SelectedIndexChanged(object sender, EventArgs e)
+        {
+            if (LVFurnitura.SelectedItems.Count > 0)  // есть выделенные элементы
+            {
+                int num = LVFurnitura.SelectedIndices[0];  // номер выделенного элемента
+                TbxNameFur.Text = LstFurnitura[num].NameFur;
+                TbxCountFurSklad.Text = LstFurnitura[num].CountFur;
+            }
+            else  // нет выделенных элементов
+            {
+                TbxNameFur.Text = "";
+                TbxCountFurSklad.Text = "";
+            }
+        }
+
+        private void BtnAll_Click(object sender, EventArgs e)
+        {
+            if (RbtWord.Checked)
+            {
+                Word.Application app = new Word.Application();
+                app.Visible = true;
+                Word.Document doc = app.Documents.Open(Application.StartupPath + "\\Заказы.docx", null, true);
+
+                Word.Bookmarks WBmark = doc.Bookmarks;  // закладки из документа
+                WBmark["man"].Range.Text = FamLabel.Text + " " + NameLabel.Text + " " + OtchLabel.Text;
+
+                string num = "", izd = "", countizd = "", tkan = "",
+                    fur = "", countfur = "", zakazchik = "";
+                for (int i = 0; i <= DgvZakaz.RowCount - 1; i++)  // перебор записей в таблице
+                {
+                    num += (i + 1).ToString() + "." + "\r\n";
+                    izd += DgvZakaz.Rows[i].Cells[0].Value + "\r\n";
+                    countizd += DgvZakaz.Rows[i].Cells[1].Value + "\r\n";
+                    tkan += DgvZakaz.Rows[i].Cells[2].Value + "\r\n";
+                    fur += DgvZakaz.Rows[i].Cells[3].Value + "\r\n";
+                    countfur += DgvZakaz.Rows[i].Cells[4].Value + "\r\n";
+                    zakazchik += DgvZakaz.Rows[i].Cells[5].Value + "\r\n";
+                }
+                WBmark["num"].Range.Text = num.Trim();
+                WBmark["izd"].Range.Text = izd.Trim();
+                WBmark["countizd"].Range.Text = countizd.Trim();
+                WBmark["tkan"].Range.Text = tkan.Trim();
+                WBmark["fur"].Range.Text = fur.Trim();
+                WBmark["countfur"].Range.Text = countfur.Trim();
+                WBmark["zak"].Range.Text = zakazchik.Trim();
+            }
+            else
+            {
+                if (saveFileDialog1.ShowDialog() == DialogResult.OK)
+                {
+                    StreamWriter f = new StreamWriter(saveFileDialog1.FileName);
+                    string t = "izd;countizd;tkan;furnitura;countfur;zakazchik";
+                    f.WriteLine(t);
+
+                    for (int i = 0; i <= DgvZakaz.RowCount - 1; i++)
+                    {
+                        t = "";
+                        t += DgvZakaz.Rows[i].Cells[0].Value + ";";
+                        t += DgvZakaz.Rows[i].Cells[1].Value + ";";
+                        t += DgvZakaz.Rows[i].Cells[2].Value + ";";
+                        t += DgvZakaz.Rows[i].Cells[3].Value + ";";
+                        t += DgvZakaz.Rows[i].Cells[4].Value + ";";
+                        t += DgvZakaz.Rows[i].Cells[5].Value;
+                        f.WriteLine(t);
+                    }
+                    f.Close();
+                }
+            }
+        }
+
+        private void BtnSelect_Click(object sender, EventArgs e)
+        {
+            if (RbtWord.Checked)
+            {
+                Word.Application app = new Word.Application();
+                app.Visible = true;
+                Word.Document doc = app.Documents.Open(Application.StartupPath + "\\Заказы.docx", null, true);
+
+                Word.Bookmarks WBmark = doc.Bookmarks;  // закладки из документа
+                WBmark["man"].Range.Text = FamLabel.Text + " " + NameLabel.Text + " " + OtchLabel.Text;
+
+                string num = "", izd = "", countizd = "", tkan = "",
+                    fur = "", countfur = "", zakazchik = "";
+                for (int i = 0; i <= DgvZakaz.SelectedRows.Count - 1; i++)  // перебор записей в таблице
+                {
+                    num += (i + 1).ToString() + "." + "\r\n";
+                    izd += DgvZakaz.SelectedRows[i].Cells[0].Value + "\r\n";
+                    countizd += DgvZakaz.SelectedRows[i].Cells[1].Value + "\r\n";
+                    tkan += DgvZakaz.SelectedRows[i].Cells[2].Value + "\r\n";
+                    fur += DgvZakaz.SelectedRows[i].Cells[3].Value + "\r\n";
+                    countfur += DgvZakaz.SelectedRows[i].Cells[4].Value + "\r\n";
+                    zakazchik += DgvZakaz.SelectedRows[i].Cells[5].Value + "\r\n";
+                }
+                WBmark["num"].Range.Text = num.Trim();
+                WBmark["izd"].Range.Text = izd.Trim();
+                WBmark["countizd"].Range.Text = countizd.Trim();
+                WBmark["tkan"].Range.Text = tkan.Trim();
+                WBmark["fur"].Range.Text = fur.Trim();
+                WBmark["countfur"].Range.Text = countfur.Trim();
+                WBmark["zak"].Range.Text = zakazchik.Trim();
+            }
+            else
+            {
+                if (saveFileDialog1.ShowDialog() == DialogResult.OK)
+                {
+                    StreamWriter f = new StreamWriter(saveFileDialog1.FileName);
+                    string t = "izd;countizd;tkan;furnitura;countfur;zakazchik";
+                    f.WriteLine(t);
+
+                    for (int i = 0; i <= DgvZakaz.SelectedRows.Count - 1; i++)
+                    {
+                        t = "";
+                        t += DgvZakaz.SelectedRows[i].Cells[0].Value + ";";
+                        t += DgvZakaz.SelectedRows[i].Cells[1].Value + ";";
+                        t += DgvZakaz.SelectedRows[i].Cells[2].Value + ";";
+                        t += DgvZakaz.SelectedRows[i].Cells[3].Value + ";";
+                        t += DgvZakaz.SelectedRows[i].Cells[4].Value + ";";
+                        t += DgvZakaz.SelectedRows[i].Cells[5].Value;
+                        f.WriteLine(t);
+                    }
+                    f.Close();
+                }
+            }
+        }
+    }
+}

+ 213 - 0
СУБД Швейная фабрика/FormManager.resx

@@ -0,0 +1,213 @@
+<?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="label2.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>False</value>
+  </metadata>
+  <metadata name="label3.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>False</value>
+  </metadata>
+  <metadata name="colorLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>False</value>
+  </metadata>
+  <metadata name="nametkanLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>False</value>
+  </metadata>
+  <metadata name="widthLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>False</value>
+  </metadata>
+  <metadata name="lengthLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>False</value>
+  </metadata>
+  <metadata name="nameizdLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>False</value>
+  </metadata>
+  <metadata name="label4.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>False</value>
+  </metadata>
+  <metadata name="label5.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>False</value>
+  </metadata>
+  <metadata name="izdelieBindingSource.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+    <value>753, 17</value>
+  </metadata>
+  <metadata name="izdelieBindingSource.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+    <value>753, 17</value>
+  </metadata>
+  <metadata name="svFabricDataSet.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+    <value>139, 17</value>
+  </metadata>
+  <metadata name="svFabricDataSet.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+    <value>139, 17</value>
+  </metadata>
+  <metadata name="Column6.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
+  <metadata name="Column5.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
+  <metadata name="Column1.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
+  <metadata name="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="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="usersBindingSource.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+    <value>276, 17</value>
+  </metadata>
+  <metadata name="usersTableAdapter.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+    <value>434, 17</value>
+  </metadata>
+  <metadata name="tableAdapterManager.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+    <value>584, 17</value>
+  </metadata>
+  <metadata name="izdelieTableAdapter.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+    <value>917, 17</value>
+  </metadata>
+  <metadata name="imageListCloth.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+    <value>1073, 17</value>
+  </metadata>
+  <metadata name="imageListFur.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+    <value>17, 17</value>
+  </metadata>
+  <metadata name="saveFileDialog1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+    <value>1207, 17</value>
+  </metadata>
+</root>

+ 136 - 102
СУБД Швейная фабрика/FormRegister.Designer.cs

@@ -28,6 +28,7 @@
         /// </summary>
         private void InitializeComponent()
         {
+            this.components = new System.ComponentModel.Container();
             System.Windows.Forms.Label phoneLabel;
             System.Windows.Forms.Label otchLabel;
             System.Windows.Forms.Label nameLabel;
@@ -47,6 +48,10 @@
             this.TbxPhone = new System.Windows.Forms.MaskedTextBox();
             this.panel1 = new System.Windows.Forms.Panel();
             this.pictureBox1 = new System.Windows.Forms.PictureBox();
+            this.svFabricDataSet = new СУБД_Швейная_фабрика.SvFabricDataSet();
+            this.usersBindingSource = new System.Windows.Forms.BindingSource(this.components);
+            this.usersTableAdapter = new СУБД_Швейная_фабрика.SvFabricDataSetTableAdapters.UsersTableAdapter();
+            this.tableAdapterManager = new СУБД_Швейная_фабрика.SvFabricDataSetTableAdapters.TableAdapterManager();
             phoneLabel = new System.Windows.Forms.Label();
             otchLabel = new System.Windows.Forms.Label();
             nameLabel = new System.Windows.Forms.Label();
@@ -55,203 +60,221 @@
             loginLabel = new System.Windows.Forms.Label();
             this.panel1.SuspendLayout();
             ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
+            ((System.ComponentModel.ISupportInitialize)(this.svFabricDataSet)).BeginInit();
+            ((System.ComponentModel.ISupportInitialize)(this.usersBindingSource)).BeginInit();
             this.SuspendLayout();
             // 
+            // phoneLabel
+            // 
+            phoneLabel.AutoSize = true;
+            phoneLabel.Location = new System.Drawing.Point(320, 106);
+            phoneLabel.Name = "phoneLabel";
+            phoneLabel.Size = new System.Drawing.Size(74, 20);
+            phoneLabel.TabIndex = 31;
+            phoneLabel.Text = "Телефон:";
+            // 
+            // otchLabel
+            // 
+            otchLabel.AutoSize = true;
+            otchLabel.Location = new System.Drawing.Point(12, 252);
+            otchLabel.Name = "otchLabel";
+            otchLabel.Size = new System.Drawing.Size(77, 20);
+            otchLabel.TabIndex = 29;
+            otchLabel.Text = "Отчество:";
+            // 
+            // nameLabel
+            // 
+            nameLabel.AutoSize = true;
+            nameLabel.Location = new System.Drawing.Point(50, 220);
+            nameLabel.Name = "nameLabel";
+            nameLabel.Size = new System.Drawing.Size(44, 20);
+            nameLabel.TabIndex = 27;
+            nameLabel.Text = "Имя:";
+            // 
+            // famLabel
+            // 
+            famLabel.AutoSize = true;
+            famLabel.Location = new System.Drawing.Point(11, 187);
+            famLabel.Name = "famLabel";
+            famLabel.Size = new System.Drawing.Size(78, 20);
+            famLabel.TabIndex = 25;
+            famLabel.Text = "Фамилия:";
+            // 
+            // passLabel
+            // 
+            passLabel.AutoSize = true;
+            passLabel.Location = new System.Drawing.Point(26, 139);
+            passLabel.Name = "passLabel";
+            passLabel.Size = new System.Drawing.Size(66, 20);
+            passLabel.TabIndex = 23;
+            passLabel.Text = "Пароль:";
+            // 
+            // loginLabel
+            // 
+            loginLabel.AutoSize = true;
+            loginLabel.Location = new System.Drawing.Point(36, 110);
+            loginLabel.Name = "loginLabel";
+            loginLabel.Size = new System.Drawing.Size(56, 20);
+            loginLabel.TabIndex = 21;
+            loginLabel.Text = "Логин:";
+            // 
             // CbxShowPass
             // 
             this.CbxShowPass.AutoSize = true;
-            this.CbxShowPass.Location = new System.Drawing.Point(230, 214);
-            this.CbxShowPass.Margin = new System.Windows.Forms.Padding(2);
+            this.CbxShowPass.Location = new System.Drawing.Point(324, 135);
             this.CbxShowPass.Name = "CbxShowPass";
-            this.CbxShowPass.Size = new System.Drawing.Size(177, 17);
+            this.CbxShowPass.Size = new System.Drawing.Size(234, 24);
             this.CbxShowPass.TabIndex = 33;
             this.CbxShowPass.Text = "Показывать символы пароля";
             this.CbxShowPass.UseVisualStyleBackColor = true;
+            this.CbxShowPass.CheckedChanged += new System.EventHandler(this.CbxShowPass_CheckedChanged);
             // 
             // OtchTextBox
             // 
-            this.OtchTextBox.Location = new System.Drawing.Point(92, 309);
-            this.OtchTextBox.Margin = new System.Windows.Forms.Padding(2);
+            this.OtchTextBox.Location = new System.Drawing.Point(102, 252);
             this.OtchTextBox.Name = "OtchTextBox";
-            this.OtchTextBox.Size = new System.Drawing.Size(123, 20);
+            this.OtchTextBox.Size = new System.Drawing.Size(182, 27);
             this.OtchTextBox.TabIndex = 30;
             // 
             // NameTextBox
             // 
-            this.NameTextBox.Location = new System.Drawing.Point(92, 279);
-            this.NameTextBox.Margin = new System.Windows.Forms.Padding(2);
+            this.NameTextBox.Location = new System.Drawing.Point(101, 217);
             this.NameTextBox.Name = "NameTextBox";
-            this.NameTextBox.Size = new System.Drawing.Size(123, 20);
+            this.NameTextBox.Size = new System.Drawing.Size(182, 27);
             this.NameTextBox.TabIndex = 28;
             // 
             // FamTextBox
             // 
-            this.FamTextBox.Location = new System.Drawing.Point(92, 248);
-            this.FamTextBox.Margin = new System.Windows.Forms.Padding(2);
+            this.FamTextBox.Location = new System.Drawing.Point(101, 184);
             this.FamTextBox.Name = "FamTextBox";
-            this.FamTextBox.Size = new System.Drawing.Size(123, 20);
+            this.FamTextBox.Size = new System.Drawing.Size(182, 27);
             this.FamTextBox.TabIndex = 26;
             // 
             // PassTextBox
             // 
-            this.PassTextBox.Location = new System.Drawing.Point(92, 214);
-            this.PassTextBox.Margin = new System.Windows.Forms.Padding(2);
+            this.PassTextBox.Location = new System.Drawing.Point(101, 139);
             this.PassTextBox.Name = "PassTextBox";
-            this.PassTextBox.Size = new System.Drawing.Size(123, 20);
+            this.PassTextBox.Size = new System.Drawing.Size(182, 27);
             this.PassTextBox.TabIndex = 24;
             this.PassTextBox.UseSystemPasswordChar = true;
             // 
             // LoginTextBox
             // 
-            this.LoginTextBox.Location = new System.Drawing.Point(92, 181);
-            this.LoginTextBox.Margin = new System.Windows.Forms.Padding(2);
+            this.LoginTextBox.Location = new System.Drawing.Point(99, 106);
             this.LoginTextBox.Name = "LoginTextBox";
-            this.LoginTextBox.Size = new System.Drawing.Size(123, 20);
+            this.LoginTextBox.Size = new System.Drawing.Size(182, 27);
             this.LoginTextBox.TabIndex = 22;
             // 
             // 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(317, 368);
-            this.BtnCancel.Margin = new System.Windows.Forms.Padding(2);
+            this.BtnCancel.Font = new System.Drawing.Font("Yu Gothic UI", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
+            this.BtnCancel.Location = new System.Drawing.Point(446, 320);
             this.BtnCancel.Name = "BtnCancel";
-            this.BtnCancel.Size = new System.Drawing.Size(116, 23);
+            this.BtnCancel.Size = new System.Drawing.Size(200, 48);
             this.BtnCancel.TabIndex = 20;
             this.BtnCancel.Text = "Отмена";
             this.BtnCancel.UseVisualStyleBackColor = false;
+            this.BtnCancel.Click += new System.EventHandler(this.BtnCancel_Click);
             // 
             // BtnReg
             // 
             this.BtnReg.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(156)))), ((int)(((byte)(26)))));
-            this.BtnReg.Location = new System.Drawing.Point(92, 369);
-            this.BtnReg.Margin = new System.Windows.Forms.Padding(2);
+            this.BtnReg.Font = new System.Drawing.Font("Yu Gothic UI", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
+            this.BtnReg.Location = new System.Drawing.Point(12, 320);
             this.BtnReg.Name = "BtnReg";
-            this.BtnReg.Size = new System.Drawing.Size(122, 22);
+            this.BtnReg.Size = new System.Drawing.Size(208, 48);
             this.BtnReg.TabIndex = 19;
             this.BtnReg.Text = "Зарегистрировать";
             this.BtnReg.UseVisualStyleBackColor = false;
+            this.BtnReg.Click += new System.EventHandler(this.BtnReg_Click);
             // 
             // 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(160, 37);
-            this.label1.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
+            this.label1.Font = new System.Drawing.Font("Yu Gothic UI Light", 36F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
+            this.label1.Location = new System.Drawing.Point(156, 9);
             this.label1.Name = "label1";
-            this.label1.Size = new System.Drawing.Size(220, 24);
+            this.label1.Size = new System.Drawing.Size(508, 65);
             this.label1.TabIndex = 1;
             this.label1.Text = "Регистрация заказчика";
             // 
             // LblRole
             // 
             this.LblRole.AutoSize = true;
-            this.LblRole.Location = new System.Drawing.Point(480, 81);
-            this.LblRole.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
+            this.LblRole.Location = new System.Drawing.Point(320, 186);
             this.LblRole.Name = "LblRole";
-            this.LblRole.Size = new System.Drawing.Size(35, 13);
+            this.LblRole.Size = new System.Drawing.Size(50, 20);
             this.LblRole.TabIndex = 16;
             this.LblRole.Text = "label2";
+            this.LblRole.Click += new System.EventHandler(this.LblRole_Click);
             // 
             // TbxPhone
             // 
-            this.TbxPhone.Location = new System.Drawing.Point(334, 181);
-            this.TbxPhone.Margin = new System.Windows.Forms.Padding(2);
+            this.TbxPhone.Location = new System.Drawing.Point(407, 102);
             this.TbxPhone.Mask = "+0(000) 000-00-00";
             this.TbxPhone.Name = "TbxPhone";
-            this.TbxPhone.Size = new System.Drawing.Size(150, 20);
+            this.TbxPhone.Size = new System.Drawing.Size(148, 27);
             this.TbxPhone.TabIndex = 32;
             // 
-            // phoneLabel
-            // 
-            phoneLabel.AutoSize = true;
-            phoneLabel.Location = new System.Drawing.Point(276, 184);
-            phoneLabel.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
-            phoneLabel.Name = "phoneLabel";
-            phoneLabel.Size = new System.Drawing.Size(55, 13);
-            phoneLabel.TabIndex = 31;
-            phoneLabel.Text = "Телефон:";
-            // 
-            // otchLabel
-            // 
-            otchLabel.AutoSize = true;
-            otchLabel.Location = new System.Drawing.Point(32, 309);
-            otchLabel.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
-            otchLabel.Name = "otchLabel";
-            otchLabel.Size = new System.Drawing.Size(57, 13);
-            otchLabel.TabIndex = 29;
-            otchLabel.Text = "Отчество:";
-            // 
-            // nameLabel
-            // 
-            nameLabel.AutoSize = true;
-            nameLabel.Location = new System.Drawing.Point(58, 281);
-            nameLabel.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
-            nameLabel.Name = "nameLabel";
-            nameLabel.Size = new System.Drawing.Size(32, 13);
-            nameLabel.TabIndex = 27;
-            nameLabel.Text = "Имя:";
-            // 
-            // famLabel
-            // 
-            famLabel.AutoSize = true;
-            famLabel.Location = new System.Drawing.Point(32, 250);
-            famLabel.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
-            famLabel.Name = "famLabel";
-            famLabel.Size = new System.Drawing.Size(59, 13);
-            famLabel.TabIndex = 25;
-            famLabel.Text = "Фамилия:";
-            // 
-            // passLabel
-            // 
-            passLabel.AutoSize = true;
-            passLabel.Location = new System.Drawing.Point(42, 214);
-            passLabel.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
-            passLabel.Name = "passLabel";
-            passLabel.Size = new System.Drawing.Size(48, 13);
-            passLabel.TabIndex = 23;
-            passLabel.Text = "Пароль:";
-            // 
-            // loginLabel
-            // 
-            loginLabel.AutoSize = true;
-            loginLabel.Location = new System.Drawing.Point(50, 184);
-            loginLabel.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
-            loginLabel.Name = "loginLabel";
-            loginLabel.Size = new System.Drawing.Size(41, 13);
-            loginLabel.TabIndex = 21;
-            loginLabel.Text = "Логин:";
-            // 
             // panel1
             // 
             this.panel1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(225)))));
             this.panel1.Controls.Add(this.label1);
-            this.panel1.Controls.Add(this.LblRole);
             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(546, 106);
+            this.panel1.Size = new System.Drawing.Size(658, 84);
             this.panel1.TabIndex = 18;
             // 
             // pictureBox1
             // 
             this.pictureBox1.Dock = System.Windows.Forms.DockStyle.Left;
+            this.pictureBox1.Image = global::СУБД_Швейная_фабрика.Properties.Resources.fabric_logo1;
             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.Size = new System.Drawing.Size(150, 84);
             this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
             this.pictureBox1.TabIndex = 0;
             this.pictureBox1.TabStop = false;
             // 
+            // svFabricDataSet
+            // 
+            this.svFabricDataSet.DataSetName = "SvFabricDataSet";
+            this.svFabricDataSet.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
+            // 
+            // usersBindingSource
+            // 
+            this.usersBindingSource.DataMember = "Users";
+            this.usersBindingSource.DataSource = this.svFabricDataSet;
+            // 
+            // usersTableAdapter
+            // 
+            this.usersTableAdapter.ClearBeforeFill = true;
+            // 
+            // tableAdapterManager
+            // 
+            this.tableAdapterManager.BackupDataSetBeforeUpdate = false;
+            this.tableAdapterManager.ClothessTableAdapter = null;
+            this.tableAdapterManager.ColorsTableAdapter = null;
+            this.tableAdapterManager.FurnituresTableAdapter = null;
+            this.tableAdapterManager.IzdelieTableAdapter = null;
+            this.tableAdapterManager.OrdersTableAdapter = null;
+            this.tableAdapterManager.RolesTableAdapter = null;
+            this.tableAdapterManager.UpdateOrder = СУБД_Швейная_фабрика.SvFabricDataSetTableAdapters.TableAdapterManager.UpdateOrderOption.InsertUpdateDelete;
+            this.tableAdapterManager.UsersTableAdapter = this.usersTableAdapter;
+            // 
             // FormRegister
             // 
-            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
+            this.AcceptButton = this.BtnReg;
+            this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 20F);
             this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
-            this.ClientSize = new System.Drawing.Size(546, 450);
+            this.CancelButton = this.BtnCancel;
+            this.ClientSize = new System.Drawing.Size(658, 384);
             this.Controls.Add(this.CbxShowPass);
+            this.Controls.Add(this.LblRole);
             this.Controls.Add(this.OtchTextBox);
             this.Controls.Add(this.NameTextBox);
             this.Controls.Add(this.FamTextBox);
@@ -267,11 +290,18 @@
             this.Controls.Add(passLabel);
             this.Controls.Add(loginLabel);
             this.Controls.Add(this.panel1);
+            this.Font = new System.Drawing.Font("Yu Gothic UI Semibold", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
+            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
+            this.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
             this.Name = "FormRegister";
-            this.Text = "FormRegister";
+            this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
+            this.Text = "Регистрация";
+            this.Load += new System.EventHandler(this.FormRegister_Load);
             this.panel1.ResumeLayout(false);
             this.panel1.PerformLayout();
             ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
+            ((System.ComponentModel.ISupportInitialize)(this.svFabricDataSet)).EndInit();
+            ((System.ComponentModel.ISupportInitialize)(this.usersBindingSource)).EndInit();
             this.ResumeLayout(false);
             this.PerformLayout();
 
@@ -292,5 +322,9 @@
         private System.Windows.Forms.MaskedTextBox TbxPhone;
         private System.Windows.Forms.Panel panel1;
         private System.Windows.Forms.PictureBox pictureBox1;
+        private SvFabricDataSet svFabricDataSet;
+        private System.Windows.Forms.BindingSource usersBindingSource;
+        private SvFabricDataSetTableAdapters.UsersTableAdapter usersTableAdapter;
+        private SvFabricDataSetTableAdapters.TableAdapterManager tableAdapterManager;
     }
 }

+ 64 - 1
СУБД Швейная фабрика/FormRegister.cs

@@ -1,4 +1,5 @@
-using System;
+using DLLPass;
+using System;
 using System.Collections.Generic;
 using System.ComponentModel;
 using System.Data;
@@ -16,5 +17,67 @@ namespace СУБД_Швейная_фабрика
         {
             InitializeComponent();
         }
+
+        private void FormRegister_Load(object sender, EventArgs e)
+        {
+            // TODO: This line of code loads data into the 'svFabricDataSet.Users' table. You can move, or remove it, as needed.
+            this.usersTableAdapter.Fill(this.svFabricDataSet.Users);
+            usersBindingSource.AddNew();
+            LblRole.Text = "заказчик";
+
+        }
+
+        private void usersBindingNavigatorSaveItem_Click(object sender, EventArgs e)
+        {
+            this.Validate();
+            this.usersBindingSource.EndEdit();
+            this.tableAdapterManager.UpdateAll(this.svFabricDataSet);
+
+        }
+
+        private void BtnReg_Click(object sender, EventArgs e)
+        {
+            Form1 f = new Form1();
+            f.Show();
+            if (!ClassCheckPass.CheckPass(PassTextBox.Text))
+            {
+                MessageBox.Show("Пароль не соответствует требованиям.", "Внимание!",
+                    MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
+                PassTextBox.Focus();
+                return;  // выйти из процедуры
+            }
+
+            try
+            {
+                usersBindingSource.EndEdit();
+                this.usersTableAdapter.Update(this.svFabricDataSet.Users);
+            }
+            catch
+            {
+                MessageBox.Show(@"В базе данных уже есть пользователь с таким логином.
+Введите уникальный логин пользователя.", "Внимание!", MessageBoxButtons.OK,
+MessageBoxIcon.Exclamation);
+                LoginTextBox.Focus();
+            }
+
+            this.DialogResult = DialogResult.OK;
+            Close();
+        }
+
+        private void CbxShowPass_CheckedChanged(object sender, EventArgs e)
+        {
+            PassTextBox.UseSystemPasswordChar = !PassTextBox.UseSystemPasswordChar;
+        }
+
+        private void LblRole_Click(object sender, EventArgs e)
+        {
+
+        }
+
+        private void BtnCancel_Click(object sender, EventArgs e)
+        {
+            Form1 f = new Form1();
+            f.Show();
+        }
     }
 }

+ 12 - 0
СУБД Швейная фабрика/FormRegister.resx

@@ -135,4 +135,16 @@
   <metadata name="loginLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
     <value>False</value>
   </metadata>
+  <metadata name="svFabricDataSet.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+    <value>17, 17</value>
+  </metadata>
+  <metadata name="usersBindingSource.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+    <value>154, 17</value>
+  </metadata>
+  <metadata name="usersTableAdapter.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+    <value>312, 17</value>
+  </metadata>
+  <metadata name="tableAdapterManager.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+    <value>462, 17</value>
+  </metadata>
 </root>

+ 112 - 98
СУБД Швейная фабрика/FormSpisMatreial.Designer.cs

@@ -29,49 +29,50 @@
         private void InitializeComponent()
         {
             this.components = new System.ComponentModel.Container();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle9 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle10 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
             this.BtnCancel = new System.Windows.Forms.Button();
             this.BtnToExcel = new System.Windows.Forms.Button();
             this.BtnSpisMaterial = new System.Windows.Forms.Button();
             this.DgvTkan = new System.Windows.Forms.DataGridView();
+            this.width = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.Column4 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.iDClothDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.nameDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.clothessBindingSource = new System.Windows.Forms.BindingSource(this.components);
+            this.svFabricDataSet = new СУБД_Швейная_фабрика.SvFabricDataSet();
             this.label2 = new System.Windows.Forms.Label();
             this.label3 = new System.Windows.Forms.Label();
             this.DgvFurnitura = new System.Windows.Forms.DataGridView();
+            this.furnituresBindingSource = new System.Windows.Forms.BindingSource(this.components);
             this.panel1 = new System.Windows.Forms.Panel();
             this.label1 = new System.Windows.Forms.Label();
             this.pictureBox1 = new System.Windows.Forms.PictureBox();
-            this.svFabricDataSet = new СУБД_Швейная_фабрика.SvFabricDataSet();
-            this.clothessBindingSource = new System.Windows.Forms.BindingSource(this.components);
             this.clothessTableAdapter = new СУБД_Швейная_фабрика.SvFabricDataSetTableAdapters.ClothessTableAdapter();
             this.tableAdapterManager = new СУБД_Швейная_фабрика.SvFabricDataSetTableAdapters.TableAdapterManager();
-            this.furnituresBindingSource = new System.Windows.Forms.BindingSource(this.components);
             this.furnituresTableAdapter = new СУБД_Швейная_фабрика.SvFabricDataSetTableAdapters.FurnituresTableAdapter();
-            this.width = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.Column4 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.iDClothDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.nameDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.Column2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.Column3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.iDFurDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.nameFurDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
             ((System.ComponentModel.ISupportInitialize)(this.DgvTkan)).BeginInit();
+            ((System.ComponentModel.ISupportInitialize)(this.clothessBindingSource)).BeginInit();
+            ((System.ComponentModel.ISupportInitialize)(this.svFabricDataSet)).BeginInit();
             ((System.ComponentModel.ISupportInitialize)(this.DgvFurnitura)).BeginInit();
+            ((System.ComponentModel.ISupportInitialize)(this.furnituresBindingSource)).BeginInit();
             this.panel1.SuspendLayout();
             ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
-            ((System.ComponentModel.ISupportInitialize)(this.svFabricDataSet)).BeginInit();
-            ((System.ComponentModel.ISupportInitialize)(this.clothessBindingSource)).BeginInit();
-            ((System.ComponentModel.ISupportInitialize)(this.furnituresBindingSource)).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(619, 573);
-            this.BtnCancel.Margin = new System.Windows.Forms.Padding(2);
+            this.BtnCancel.Font = new System.Drawing.Font("Yu Gothic UI", 18F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
+            this.BtnCancel.Location = new System.Drawing.Point(1115, 792);
+            this.BtnCancel.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
             this.BtnCancel.Name = "BtnCancel";
-            this.BtnCancel.Size = new System.Drawing.Size(154, 43);
+            this.BtnCancel.Size = new System.Drawing.Size(205, 56);
             this.BtnCancel.TabIndex = 23;
             this.BtnCancel.Text = "Отменить";
             this.BtnCancel.UseVisualStyleBackColor = false;
@@ -80,10 +81,11 @@
             // BtnToExcel
             // 
             this.BtnToExcel.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(156)))), ((int)(((byte)(26)))));
-            this.BtnToExcel.Location = new System.Drawing.Point(619, 396);
-            this.BtnToExcel.Margin = new System.Windows.Forms.Padding(2);
+            this.BtnToExcel.Font = new System.Drawing.Font("Yu Gothic UI", 18F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
+            this.BtnToExcel.Location = new System.Drawing.Point(12, 792);
+            this.BtnToExcel.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
             this.BtnToExcel.Name = "BtnToExcel";
-            this.BtnToExcel.Size = new System.Drawing.Size(154, 43);
+            this.BtnToExcel.Size = new System.Drawing.Size(311, 56);
             this.BtnToExcel.TabIndex = 21;
             this.BtnToExcel.Text = "Сформировать документ";
             this.BtnToExcel.UseVisualStyleBackColor = false;
@@ -92,10 +94,11 @@
             // BtnSpisMaterial
             // 
             this.BtnSpisMaterial.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(156)))), ((int)(((byte)(26)))));
-            this.BtnSpisMaterial.Location = new System.Drawing.Point(619, 443);
-            this.BtnSpisMaterial.Margin = new System.Windows.Forms.Padding(2);
+            this.BtnSpisMaterial.Font = new System.Drawing.Font("Yu Gothic UI", 18F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
+            this.BtnSpisMaterial.Location = new System.Drawing.Point(329, 792);
+            this.BtnSpisMaterial.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
             this.BtnSpisMaterial.Name = "BtnSpisMaterial";
-            this.BtnSpisMaterial.Size = new System.Drawing.Size(154, 40);
+            this.BtnSpisMaterial.Size = new System.Drawing.Size(259, 56);
             this.BtnSpisMaterial.TabIndex = 22;
             this.BtnSpisMaterial.Text = "Списать материалы";
             this.BtnSpisMaterial.UseVisualStyleBackColor = false;
@@ -106,6 +109,7 @@
             this.DgvTkan.AllowUserToAddRows = false;
             this.DgvTkan.AllowUserToDeleteRows = false;
             this.DgvTkan.AutoGenerateColumns = false;
+            this.DgvTkan.BackgroundColor = System.Drawing.SystemColors.ButtonHighlight;
             this.DgvTkan.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
             this.DgvTkan.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
             this.width,
@@ -114,26 +118,79 @@
             this.iDClothDataGridViewTextBoxColumn,
             this.nameDataGridViewTextBoxColumn});
             this.DgvTkan.DataSource = this.clothessBindingSource;
-            this.DgvTkan.Location = new System.Drawing.Point(14, 124);
+            this.DgvTkan.Location = new System.Drawing.Point(19, 121);
+            this.DgvTkan.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
             this.DgvTkan.Name = "DgvTkan";
-            this.DgvTkan.Size = new System.Drawing.Size(759, 228);
+            this.DgvTkan.Size = new System.Drawing.Size(745, 613);
             this.DgvTkan.TabIndex = 17;
             // 
+            // width
+            // 
+            this.width.DataPropertyName = "Name";
+            dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
+            this.width.DefaultCellStyle = dataGridViewCellStyle1;
+            this.width.HeaderText = "Название";
+            this.width.Name = "width";
+            this.width.ReadOnly = true;
+            this.width.Width = 150;
+            // 
+            // Column1
+            // 
+            this.Column1.DataPropertyName = "Width";
+            dataGridViewCellStyle2.NullValue = null;
+            this.Column1.DefaultCellStyle = dataGridViewCellStyle2;
+            this.Column1.HeaderText = "Ширина";
+            this.Column1.Name = "Column1";
+            // 
+            // Column4
+            // 
+            this.Column4.DataPropertyName = "Length";
+            this.Column4.HeaderText = "Длина";
+            this.Column4.Name = "Column4";
+            this.Column4.Width = 150;
+            // 
+            // iDClothDataGridViewTextBoxColumn
+            // 
+            this.iDClothDataGridViewTextBoxColumn.HeaderText = "Сколько списать";
+            this.iDClothDataGridViewTextBoxColumn.Name = "iDClothDataGridViewTextBoxColumn";
+            this.iDClothDataGridViewTextBoxColumn.Width = 150;
+            // 
+            // nameDataGridViewTextBoxColumn
+            // 
+            this.nameDataGridViewTextBoxColumn.DataPropertyName = "Name";
+            this.nameDataGridViewTextBoxColumn.HeaderText = "Причина";
+            this.nameDataGridViewTextBoxColumn.Name = "nameDataGridViewTextBoxColumn";
+            this.nameDataGridViewTextBoxColumn.Width = 150;
+            // 
+            // clothessBindingSource
+            // 
+            this.clothessBindingSource.DataMember = "Clothess";
+            this.clothessBindingSource.DataSource = this.svFabricDataSet;
+            // 
+            // svFabricDataSet
+            // 
+            this.svFabricDataSet.DataSetName = "SvFabricDataSet";
+            this.svFabricDataSet.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
+            // 
             // label2
             // 
             this.label2.AutoSize = true;
-            this.label2.Location = new System.Drawing.Point(12, 377);
+            this.label2.Font = new System.Drawing.Font("Yu Gothic UI Semilight", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
+            this.label2.Location = new System.Drawing.Point(820, 87);
+            this.label2.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
             this.label2.Name = "label2";
-            this.label2.Size = new System.Drawing.Size(63, 13);
+            this.label2.Size = new System.Drawing.Size(115, 30);
             this.label2.TabIndex = 20;
             this.label2.Text = "Фурнитура";
             // 
             // label3
             // 
             this.label3.AutoSize = true;
-            this.label3.Location = new System.Drawing.Point(12, 108);
+            this.label3.Font = new System.Drawing.Font("Yu Gothic UI Semilight", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
+            this.label3.Location = new System.Drawing.Point(14, 87);
+            this.label3.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
             this.label3.Name = "label3";
-            this.label3.Size = new System.Drawing.Size(38, 13);
+            this.label3.Size = new System.Drawing.Size(69, 30);
             this.label3.TabIndex = 19;
             this.label3.Text = "Ткани";
             // 
@@ -142,6 +199,7 @@
             this.DgvFurnitura.AllowUserToAddRows = false;
             this.DgvFurnitura.AllowUserToDeleteRows = false;
             this.DgvFurnitura.AutoGenerateColumns = false;
+            this.DgvFurnitura.BackgroundColor = System.Drawing.SystemColors.ButtonHighlight;
             this.DgvFurnitura.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
             this.DgvFurnitura.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
             this.Column2,
@@ -149,11 +207,17 @@
             this.iDFurDataGridViewTextBoxColumn,
             this.nameFurDataGridViewTextBoxColumn});
             this.DgvFurnitura.DataSource = this.furnituresBindingSource;
-            this.DgvFurnitura.Location = new System.Drawing.Point(11, 396);
+            this.DgvFurnitura.Location = new System.Drawing.Point(825, 121);
+            this.DgvFurnitura.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
             this.DgvFurnitura.Name = "DgvFurnitura";
-            this.DgvFurnitura.Size = new System.Drawing.Size(581, 220);
+            this.DgvFurnitura.Size = new System.Drawing.Size(493, 613);
             this.DgvFurnitura.TabIndex = 18;
             // 
+            // furnituresBindingSource
+            // 
+            this.furnituresBindingSource.DataMember = "Furnitures";
+            this.furnituresBindingSource.DataSource = this.svFabricDataSet;
+            // 
             // panel1
             // 
             this.panel1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(225)))));
@@ -161,44 +225,33 @@
             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.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
             this.panel1.Name = "panel1";
-            this.panel1.Size = new System.Drawing.Size(789, 106);
+            this.panel1.Size = new System.Drawing.Size(1332, 85);
             this.panel1.TabIndex = 16;
             // 
             // 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, 31);
-            this.label1.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
+            this.label1.Font = new System.Drawing.Font("Yu Gothic UI Light", 36F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
+            this.label1.Location = new System.Drawing.Point(795, 9);
             this.label1.Name = "label1";
-            this.label1.Size = new System.Drawing.Size(190, 24);
+            this.label1.Size = new System.Drawing.Size(525, 65);
             this.label1.TabIndex = 1;
-            this.label1.Text = "Списать материалы";
+            this.label1.Text = "СПИСАТЬ МАТЕРИАЛЫ";
             // 
             // pictureBox1
             // 
             this.pictureBox1.Dock = System.Windows.Forms.DockStyle.Left;
             this.pictureBox1.Image = global::СУБД_Швейная_фабрика.Properties.Resources.fabric_logo1;
             this.pictureBox1.Location = new System.Drawing.Point(0, 0);
-            this.pictureBox1.Margin = new System.Windows.Forms.Padding(2);
+            this.pictureBox1.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
             this.pictureBox1.Name = "pictureBox1";
-            this.pictureBox1.Size = new System.Drawing.Size(100, 106);
+            this.pictureBox1.Size = new System.Drawing.Size(133, 85);
             this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
             this.pictureBox1.TabIndex = 0;
             this.pictureBox1.TabStop = false;
             // 
-            // svFabricDataSet
-            // 
-            this.svFabricDataSet.DataSetName = "SvFabricDataSet";
-            this.svFabricDataSet.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
-            // 
-            // clothessBindingSource
-            // 
-            this.clothessBindingSource.DataMember = "Clothess";
-            this.clothessBindingSource.DataSource = this.svFabricDataSet;
-            // 
             // clothessTableAdapter
             // 
             this.clothessTableAdapter.ClearBeforeFill = true;
@@ -215,53 +268,10 @@
             this.tableAdapterManager.UpdateOrder = СУБД_Швейная_фабрика.SvFabricDataSetTableAdapters.TableAdapterManager.UpdateOrderOption.InsertUpdateDelete;
             this.tableAdapterManager.UsersTableAdapter = null;
             // 
-            // furnituresBindingSource
-            // 
-            this.furnituresBindingSource.DataMember = "Furnitures";
-            this.furnituresBindingSource.DataSource = this.svFabricDataSet;
-            // 
             // furnituresTableAdapter
             // 
             this.furnituresTableAdapter.ClearBeforeFill = true;
             // 
-            // width
-            // 
-            this.width.DataPropertyName = "Name";
-            dataGridViewCellStyle9.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
-            this.width.DefaultCellStyle = dataGridViewCellStyle9;
-            this.width.HeaderText = "Название";
-            this.width.Name = "width";
-            this.width.ReadOnly = true;
-            this.width.Width = 150;
-            // 
-            // Column1
-            // 
-            this.Column1.DataPropertyName = "Width";
-            dataGridViewCellStyle10.NullValue = null;
-            this.Column1.DefaultCellStyle = dataGridViewCellStyle10;
-            this.Column1.HeaderText = "Ширина";
-            this.Column1.Name = "Column1";
-            // 
-            // Column4
-            // 
-            this.Column4.DataPropertyName = "Length";
-            this.Column4.HeaderText = "Длина";
-            this.Column4.Name = "Column4";
-            this.Column4.Width = 150;
-            // 
-            // iDClothDataGridViewTextBoxColumn
-            // 
-            this.iDClothDataGridViewTextBoxColumn.HeaderText = "Сколько списать";
-            this.iDClothDataGridViewTextBoxColumn.Name = "iDClothDataGridViewTextBoxColumn";
-            this.iDClothDataGridViewTextBoxColumn.Width = 150;
-            // 
-            // nameDataGridViewTextBoxColumn
-            // 
-            this.nameDataGridViewTextBoxColumn.DataPropertyName = "Name";
-            this.nameDataGridViewTextBoxColumn.HeaderText = "Причина";
-            this.nameDataGridViewTextBoxColumn.Name = "nameDataGridViewTextBoxColumn";
-            this.nameDataGridViewTextBoxColumn.Width = 150;
-            // 
             // Column2
             // 
             this.Column2.DataPropertyName = "Name_Fur";
@@ -287,9 +297,10 @@
             // 
             // FormSpisMatreial
             // 
-            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
+            this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 17F);
             this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
-            this.ClientSize = new System.Drawing.Size(789, 631);
+            this.BackColor = System.Drawing.SystemColors.ButtonHighlight;
+            this.ClientSize = new System.Drawing.Size(1332, 859);
             this.Controls.Add(this.BtnCancel);
             this.Controls.Add(this.BtnToExcel);
             this.Controls.Add(this.BtnSpisMaterial);
@@ -298,17 +309,20 @@
             this.Controls.Add(this.label3);
             this.Controls.Add(this.DgvFurnitura);
             this.Controls.Add(this.panel1);
+            this.Font = new System.Drawing.Font("Yu Gothic UI", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
+            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
+            this.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
             this.Name = "FormSpisMatreial";
-            this.Text = "FormSpisMatreial";
+            this.Text = "Списать материалы";
             this.Load += new System.EventHandler(this.FormSpisMatreial_Load);
             ((System.ComponentModel.ISupportInitialize)(this.DgvTkan)).EndInit();
+            ((System.ComponentModel.ISupportInitialize)(this.clothessBindingSource)).EndInit();
+            ((System.ComponentModel.ISupportInitialize)(this.svFabricDataSet)).EndInit();
             ((System.ComponentModel.ISupportInitialize)(this.DgvFurnitura)).EndInit();
+            ((System.ComponentModel.ISupportInitialize)(this.furnituresBindingSource)).EndInit();
             this.panel1.ResumeLayout(false);
             this.panel1.PerformLayout();
             ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
-            ((System.ComponentModel.ISupportInitialize)(this.svFabricDataSet)).EndInit();
-            ((System.ComponentModel.ISupportInitialize)(this.clothessBindingSource)).EndInit();
-            ((System.ComponentModel.ISupportInitialize)(this.furnituresBindingSource)).EndInit();
             this.ResumeLayout(false);
             this.PerformLayout();
 

+ 3 - 27
СУБД Швейная фабрика/FormSpisMatreial.resx

@@ -129,6 +129,9 @@
   <metadata name="clothessBindingSource.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
     <value>154, 17</value>
   </metadata>
+  <metadata name="svFabricDataSet.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+    <value>17, 17</value>
+  </metadata>
   <metadata name="Column2.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
     <value>True</value>
   </metadata>
@@ -138,15 +141,6 @@
   <metadata name="furnituresBindingSource.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
     <value>663, 17</value>
   </metadata>
-  <metadata name="svFabricDataSet.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
-    <value>17, 17</value>
-  </metadata>
-  <metadata name="clothessBindingSource.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
-    <value>154, 17</value>
-  </metadata>
-  <metadata name="svFabricDataSet.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
-    <value>17, 17</value>
-  </metadata>
   <metadata name="clothessTableAdapter.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
     <value>328, 17</value>
   </metadata>
@@ -156,22 +150,4 @@
   <metadata name="furnituresTableAdapter.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
     <value>845, 17</value>
   </metadata>
-  <metadata name="furnituresBindingSource.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
-    <value>663, 17</value>
-  </metadata>
-  <metadata name="width.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>True</value>
-  </metadata>
-  <metadata name="Column1.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>True</value>
-  </metadata>
-  <metadata name="Column4.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>
 </root>

+ 57 - 47
СУБД Швейная фабрика/FormZakazchik.Designer.cs

@@ -45,26 +45,27 @@
             this.label1 = new System.Windows.Forms.Label();
             this.OtchLabel = new System.Windows.Forms.Label();
             this.panel1 = new System.Windows.Forms.Panel();
+            this.LblIdUser = new System.Windows.Forms.Label();
+            this.pictureBox1 = new System.Windows.Forms.PictureBox();
             this.svFabricDataSet = new СУБД_Швейная_фабрика.SvFabricDataSet();
             this.usersBindingSource = new System.Windows.Forms.BindingSource(this.components);
             this.usersTableAdapter = new СУБД_Швейная_фабрика.SvFabricDataSetTableAdapters.UsersTableAdapter();
             this.tableAdapterManager = new СУБД_Швейная_фабрика.SvFabricDataSetTableAdapters.TableAdapterManager();
-            this.LblIdUser = new System.Windows.Forms.Label();
-            this.pictureBox1 = new System.Windows.Forms.PictureBox();
             ((System.ComponentModel.ISupportInitialize)(this.DgvZakaz)).BeginInit();
             this.panel1.SuspendLayout();
+            ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
             ((System.ComponentModel.ISupportInitialize)(this.svFabricDataSet)).BeginInit();
             ((System.ComponentModel.ISupportInitialize)(this.usersBindingSource)).BeginInit();
-            ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
             this.SuspendLayout();
             // 
             // 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.Font = new System.Drawing.Font("Yu Gothic UI", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
+            this.BtnAddZakaz.Location = new System.Drawing.Point(457, 125);
             this.BtnAddZakaz.Margin = new System.Windows.Forms.Padding(2);
             this.BtnAddZakaz.Name = "BtnAddZakaz";
-            this.BtnAddZakaz.Size = new System.Drawing.Size(154, 23);
+            this.BtnAddZakaz.Size = new System.Drawing.Size(154, 43);
             this.BtnAddZakaz.TabIndex = 21;
             this.BtnAddZakaz.Text = "Добавить заказ";
             this.BtnAddZakaz.UseVisualStyleBackColor = false;
@@ -74,6 +75,7 @@
             // 
             this.DgvZakaz.AllowUserToAddRows = false;
             this.DgvZakaz.AllowUserToDeleteRows = false;
+            this.DgvZakaz.BackgroundColor = System.Drawing.SystemColors.ButtonHighlight;
             this.DgvZakaz.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
             this.DgvZakaz.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
             this.Column1,
@@ -89,7 +91,7 @@
             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.Size = new System.Drawing.Size(608, 242);
             this.DgvZakaz.TabIndex = 19;
             // 
             // Column1
@@ -131,10 +133,11 @@
             // 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.Font = new System.Drawing.Font("Yu Gothic UI", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
+            this.BtnLev.Location = new System.Drawing.Point(234, 125);
             this.BtnLev.Margin = new System.Windows.Forms.Padding(2);
             this.BtnLev.Name = "BtnLev";
-            this.BtnLev.Size = new System.Drawing.Size(154, 23);
+            this.BtnLev.Size = new System.Drawing.Size(154, 43);
             this.BtnLev.TabIndex = 20;
             this.BtnLev.Text = "Нечеткий поиск";
             this.BtnLev.UseVisualStyleBackColor = false;
@@ -143,52 +146,56 @@
             // 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.Font = new System.Drawing.Font("Yu Gothic UI", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
+            this.BtnProfile.Location = new System.Drawing.Point(11, 125);
             this.BtnProfile.Margin = new System.Windows.Forms.Padding(2);
             this.BtnProfile.Name = "BtnProfile";
-            this.BtnProfile.Size = new System.Drawing.Size(154, 23);
+            this.BtnProfile.Size = new System.Drawing.Size(154, 43);
             this.BtnProfile.TabIndex = 18;
-            this.BtnProfile.Text = "Профиль пользователя";
+            this.BtnProfile.Text = "Профиль";
             this.BtnProfile.UseVisualStyleBackColor = false;
             this.BtnProfile.Click += new System.EventHandler(this.BtnProfile_Click);
             // 
             // NameLabel
             // 
-            this.NameLabel.Location = new System.Drawing.Point(9, 149);
+            this.NameLabel.Font = new System.Drawing.Font("Yu Gothic UI", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
+            this.NameLabel.Location = new System.Drawing.Point(104, 28);
             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);
             this.NameLabel.TabIndex = 16;
-            this.NameLabel.Text = "label2";
+            this.NameLabel.Text = "Имя";
             // 
             // FamLabel
             // 
-            this.FamLabel.Location = new System.Drawing.Point(9, 130);
+            this.FamLabel.Font = new System.Drawing.Font("Yu Gothic UI", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
+            this.FamLabel.Location = new System.Drawing.Point(104, 9);
             this.FamLabel.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
             this.FamLabel.Name = "FamLabel";
             this.FamLabel.Size = new System.Drawing.Size(75, 19);
             this.FamLabel.TabIndex = 15;
-            this.FamLabel.Text = "label2";
+            this.FamLabel.Text = "Фамилия";
             // 
             // 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, 31);
+            this.label1.Font = new System.Drawing.Font("Yu Gothic UI", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
+            this.label1.Location = new System.Drawing.Point(350, 9);
             this.label1.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
             this.label1.Name = "label1";
-            this.label1.Size = new System.Drawing.Size(240, 24);
+            this.label1.Size = new System.Drawing.Size(265, 30);
             this.label1.TabIndex = 1;
             this.label1.Text = "Рабочее место заказчика";
             // 
             // OtchLabel
             // 
-            this.OtchLabel.Location = new System.Drawing.Point(11, 168);
+            this.OtchLabel.Font = new System.Drawing.Font("Yu Gothic UI", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
+            this.OtchLabel.Location = new System.Drawing.Point(104, 47);
             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);
             this.OtchLabel.TabIndex = 17;
-            this.OtchLabel.Text = "label2";
+            this.OtchLabel.Text = "Отчество";
             // 
             // panel1
             // 
@@ -196,13 +203,37 @@
             this.panel1.Controls.Add(this.LblIdUser);
             this.panel1.Controls.Add(this.label1);
             this.panel1.Controls.Add(this.pictureBox1);
+            this.panel1.Controls.Add(this.FamLabel);
+            this.panel1.Controls.Add(this.NameLabel);
+            this.panel1.Controls.Add(this.OtchLabel);
             this.panel1.Dock = System.Windows.Forms.DockStyle.Top;
             this.panel1.Location = new System.Drawing.Point(0, 0);
             this.panel1.Margin = new System.Windows.Forms.Padding(2);
             this.panel1.Name = "panel1";
-            this.panel1.Size = new System.Drawing.Size(689, 106);
+            this.panel1.Size = new System.Drawing.Size(621, 106);
             this.panel1.TabIndex = 14;
             // 
+            // LblIdUser
+            // 
+            this.LblIdUser.AutoSize = true;
+            this.LblIdUser.Location = new System.Drawing.Point(594, 82);
+            this.LblIdUser.Name = "LblIdUser";
+            this.LblIdUser.Size = new System.Drawing.Size(11, 13);
+            this.LblIdUser.TabIndex = 2;
+            this.LblIdUser.Text = "1";
+            // 
+            // pictureBox1
+            // 
+            this.pictureBox1.Dock = System.Windows.Forms.DockStyle.Left;
+            this.pictureBox1.Image = global::СУБД_Швейная_фабрика.Properties.Resources.fabric_logo1;
+            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;
+            // 
             // svFabricDataSet
             // 
             this.svFabricDataSet.DataSetName = "SvFabricDataSet";
@@ -229,40 +260,19 @@
             this.tableAdapterManager.UpdateOrder = СУБД_Швейная_фабрика.SvFabricDataSetTableAdapters.TableAdapterManager.UpdateOrderOption.InsertUpdateDelete;
             this.tableAdapterManager.UsersTableAdapter = this.usersTableAdapter;
             // 
-            // LblIdUser
-            // 
-            this.LblIdUser.AutoSize = true;
-            this.LblIdUser.Location = new System.Drawing.Point(498, 9);
-            this.LblIdUser.Name = "LblIdUser";
-            this.LblIdUser.Size = new System.Drawing.Size(13, 13);
-            this.LblIdUser.TabIndex = 2;
-            this.LblIdUser.Text = "1";
-            // 
-            // pictureBox1
-            // 
-            this.pictureBox1.Dock = System.Windows.Forms.DockStyle.Left;
-            this.pictureBox1.Image = global::СУБД_Швейная_фабрика.Properties.Resources.fabric_logo1;
-            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;
-            // 
             // FormZakazchik
             // 
             this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
             this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
-            this.ClientSize = new System.Drawing.Size(689, 451);
+            this.BackColor = System.Drawing.SystemColors.ControlLightLight;
+            this.ClientSize = new System.Drawing.Size(621, 441);
             this.Controls.Add(this.BtnAddZakaz);
             this.Controls.Add(this.DgvZakaz);
             this.Controls.Add(this.BtnLev);
             this.Controls.Add(this.BtnProfile);
-            this.Controls.Add(this.NameLabel);
-            this.Controls.Add(this.FamLabel);
-            this.Controls.Add(this.OtchLabel);
             this.Controls.Add(this.panel1);
+            this.Font = new System.Drawing.Font("Yu Gothic UI Semibold", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
+            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
             this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
             this.Name = "FormZakazchik";
             this.Text = "Заказчик";
@@ -270,9 +280,9 @@
             ((System.ComponentModel.ISupportInitialize)(this.DgvZakaz)).EndInit();
             this.panel1.ResumeLayout(false);
             this.panel1.PerformLayout();
+            ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
             ((System.ComponentModel.ISupportInitialize)(this.svFabricDataSet)).EndInit();
             ((System.ComponentModel.ISupportInitialize)(this.usersBindingSource)).EndInit();
-            ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
             this.ResumeLayout(false);
 
         }

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


BIN
СУБД Швейная фабрика/bin/Debug/СУБД Швейная фабрика.pdb


BIN
СУБД Швейная фабрика/obj/Debug/СУБД Швейная фабрика.csproj.AssemblyReference.cache


+ 1 - 1
СУБД Швейная фабрика/obj/Debug/СУБД Швейная фабрика.csproj.CoreCompileInputs.cache

@@ -1 +1 @@
-0847ed31ffedeab316595ee599e6ef50ba2a4573a29bce518e4da55970f3eee0
+1cb24b5c13cf316605c910cc3d73c528dec468f718bf5e62744447bb92c50dea

+ 3 - 0
СУБД Швейная фабрика/obj/Debug/СУБД Швейная фабрика.csproj.FileListAbsolute.txt

@@ -13,3 +13,6 @@ D:\35-2023\СУБД Швейная фабрика\СУБД Швейная фаб
 D:\35-2023\СУБД Швейная фабрика\СУБД Швейная фабрика\obj\Debug\СУБД Швейная фабрика.csproj.CopyComplete
 D:\35-2023\СУБД Швейная фабрика\СУБД Швейная фабрика\obj\Debug\СУБД_Швейная_фабрика.FormAddOrder.resources
 D:\35-2023\СУБД Швейная фабрика\СУБД Швейная фабрика\obj\Debug\СУБД_Швейная_фабрика.FormLeven.resources
+D:\35-2023\СУБД Швейная фабрика\СУБД Швейная фабрика\obj\Debug\СУБД_Швейная_фабрика.FormManager.resources
+D:\35-2023\СУБД Швейная фабрика\СУБД Швейная фабрика\obj\Debug\СУБД_Швейная_фабрика.FormRegister.resources
+D:\35-2023\СУБД Швейная фабрика\СУБД Швейная фабрика\obj\Debug\СУБД_Швейная_фабрика.FormSpisMatreial.resources

BIN
СУБД Швейная фабрика/obj/Debug/СУБД Швейная фабрика.csproj.GenerateResource.cache


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


BIN
СУБД Швейная фабрика/obj/Debug/СУБД Швейная фабрика.pdb


BIN
СУБД Швейная фабрика/obj/Debug/СУБД_Швейная_фабрика.FormManager.resources


BIN
СУБД Швейная фабрика/obj/Debug/СУБД_Швейная_фабрика.FormRegister.resources


BIN
СУБД Швейная фабрика/obj/Debug/СУБД_Швейная_фабрика.FormSpisMatreial.resources


+ 9 - 0
СУБД Швейная фабрика/СУБД Швейная фабрика.csproj

@@ -83,6 +83,12 @@
     <Compile Include="FormLeven.Designer.cs">
       <DependentUpon>FormLeven.cs</DependentUpon>
     </Compile>
+    <Compile Include="FormManager.cs">
+      <SubType>Form</SubType>
+    </Compile>
+    <Compile Include="FormManager.Designer.cs">
+      <DependentUpon>FormManager.cs</DependentUpon>
+    </Compile>
     <Compile Include="FormProfile.cs">
       <SubType>Form</SubType>
     </Compile>
@@ -123,6 +129,9 @@
     <EmbeddedResource Include="FormLeven.resx">
       <DependentUpon>FormLeven.cs</DependentUpon>
     </EmbeddedResource>
+    <EmbeddedResource Include="FormManager.resx">
+      <DependentUpon>FormManager.cs</DependentUpon>
+    </EmbeddedResource>
     <EmbeddedResource Include="FormProfile.resx">
       <DependentUpon>FormProfile.cs</DependentUpon>
     </EmbeddedResource>

Some files were not shown because too many files changed in this diff