Ver código fonte

коммит день 5 регистрация и переход на формы з/м/к

u21-25volkova 1 ano atrás
pai
commit
21edae551a
29 arquivos alterados com 1096 adições e 88 exclusões
  1. BIN
      СУБД Швейная фабрика/.vs/СУБД Швейная фабрика/FileContentIndex/20a1b186-f611-40b5-b078-dfa9cefa890f.vsidx
  2. BIN
      СУБД Швейная фабрика/.vs/СУБД Швейная фабрика/FileContentIndex/2ff276be-6445-4317-b272-00944b8f9f92.vsidx
  3. BIN
      СУБД Швейная фабрика/.vs/СУБД Швейная фабрика/FileContentIndex/66b0cf24-2d4a-415a-b656-d623ee87771d.vsidx
  4. BIN
      СУБД Швейная фабрика/.vs/СУБД Швейная фабрика/FileContentIndex/acd792bc-107e-441b-9824-0f3c28d13457.vsidx
  5. BIN
      СУБД Швейная фабрика/.vs/СУБД Швейная фабрика/FileContentIndex/f262df06-6f81-483f-b95c-74db3c7c48a6.vsidx
  6. BIN
      СУБД Швейная фабрика/.vs/СУБД Швейная фабрика/FileContentIndex/f4ed085c-45f6-48b3-a423-26246c823b35.vsidx
  7. BIN
      СУБД Швейная фабрика/.vs/СУБД Швейная фабрика/v17/.suo
  8. 36 3
      СУБД Швейная фабрика/.vs/СУБД Швейная фабрика/v17/DocumentLayout.json
  9. 85 67
      СУБД Швейная фабрика/СУБД Швейная фабрика/Form1.Designer.cs
  10. 69 12
      СУБД Швейная фабрика/СУБД Швейная фабрика/Form1.cs
  11. 39 0
      СУБД Швейная фабрика/СУБД Швейная фабрика/FormCostom.Designer.cs
  12. 20 0
      СУБД Швейная фабрика/СУБД Швейная фабрика/FormCostom.cs
  13. 39 0
      СУБД Швейная фабрика/СУБД Швейная фабрика/FormKlad.Designer.cs
  14. 20 0
      СУБД Швейная фабрика/СУБД Швейная фабрика/FormKlad.cs
  15. 39 0
      СУБД Швейная фабрика/СУБД Швейная фабрика/FormMng.Designer.cs
  16. 20 0
      СУБД Швейная фабрика/СУБД Швейная фабрика/FormMng.cs
  17. 340 0
      СУБД Швейная фабрика/СУБД Швейная фабрика/FormReg.Designer.cs
  18. 107 0
      СУБД Швейная фабрика/СУБД Швейная фабрика/FormReg.cs
  19. 227 0
      СУБД Швейная фабрика/СУБД Швейная фабрика/FormReg.resx
  20. 26 5
      СУБД Швейная фабрика/СУБД Швейная фабрика/Vdb_FabrikDataSet.xsc
  21. BIN
      СУБД Швейная фабрика/СУБД Швейная фабрика/bin/Debug/СУБД Швейная фабрика.exe
  22. BIN
      СУБД Швейная фабрика/СУБД Швейная фабрика/bin/Debug/СУБД Швейная фабрика.pdb
  23. 1 1
      СУБД Швейная фабрика/СУБД Швейная фабрика/obj/Debug/СУБД Швейная фабрика.csproj.CoreCompileInputs.cache
  24. 1 0
      СУБД Швейная фабрика/СУБД Швейная фабрика/obj/Debug/СУБД Швейная фабрика.csproj.FileListAbsolute.txt
  25. BIN
      СУБД Швейная фабрика/СУБД Швейная фабрика/obj/Debug/СУБД Швейная фабрика.csproj.GenerateResource.cache
  26. BIN
      СУБД Швейная фабрика/СУБД Швейная фабрика/obj/Debug/СУБД Швейная фабрика.exe
  27. BIN
      СУБД Швейная фабрика/СУБД Швейная фабрика/obj/Debug/СУБД Швейная фабрика.pdb
  28. BIN
      СУБД Швейная фабрика/СУБД Швейная фабрика/obj/Debug/СУБД_Швейная_фабрика.FormReg.resources
  29. 27 0
      СУБД Швейная фабрика/СУБД Швейная фабрика/СУБД Швейная фабрика.csproj

BIN
СУБД Швейная фабрика/.vs/СУБД Швейная фабрика/FileContentIndex/20a1b186-f611-40b5-b078-dfa9cefa890f.vsidx


BIN
СУБД Швейная фабрика/.vs/СУБД Швейная фабрика/FileContentIndex/2ff276be-6445-4317-b272-00944b8f9f92.vsidx


BIN
СУБД Швейная фабрика/.vs/СУБД Швейная фабрика/FileContentIndex/66b0cf24-2d4a-415a-b656-d623ee87771d.vsidx


BIN
СУБД Швейная фабрика/.vs/СУБД Швейная фабрика/FileContentIndex/acd792bc-107e-441b-9824-0f3c28d13457.vsidx


BIN
СУБД Швейная фабрика/.vs/СУБД Швейная фабрика/FileContentIndex/f262df06-6f81-483f-b95c-74db3c7c48a6.vsidx


BIN
СУБД Швейная фабрика/.vs/СУБД Швейная фабрика/FileContentIndex/f4ed085c-45f6-48b3-a423-26246c823b35.vsidx


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


+ 36 - 3
СУБД Швейная фабрика/.vs/СУБД Швейная фабрика/v17/DocumentLayout.json

@@ -3,12 +3,20 @@
   "WorkspaceRootPath": "D:\\\u041F\u0430\u043F\u043A\u0430\\\u041F\u0440\u0430\u043A\u0442\u0438\u043A\u0430\\praktika\\\u0421\u0423\u0411\u0414 \u0428\u0432\u0435\u0439\u043D\u0430\u044F \u0444\u0430\u0431\u0440\u0438\u043A\u0430\\",
   "Documents": [
     {
-      "AbsoluteMoniker": "D:0:0:{881D5FBB-22E2-40DD-85BC-52893E1C7B17}|\u0421\u0423\u0411\u0414 \u0428\u0432\u0435\u0439\u043D\u0430\u044F \u0444\u0430\u0431\u0440\u0438\u043A\u0430\\\u0421\u0423\u0411\u0414 \u0428\u0432\u0435\u0439\u043D\u0430\u044F \u0444\u0430\u0431\u0440\u0438\u043A\u0430.csproj|d:\\\u043F\u0430\u043F\u043A\u0430\\\u043F\u0440\u0430\u043A\u0442\u0438\u043A\u0430\\praktika\\\u0441\u0443\u0431\u0434 \u0448\u0432\u0435\u0439\u043D\u0430\u044F \u0444\u0430\u0431\u0440\u0438\u043A\u0430\\\u0441\u0443\u0431\u0434 \u0448\u0432\u0435\u0439\u043D\u0430\u044F \u0444\u0430\u0431\u0440\u0438\u043A\u0430\\form1.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
+      "AbsoluteMoniker": "D:0:0:{881D5FBB-22E2-40DD-85BC-52893E1C7B17}|\u0421\u0423\u0411\u0414 \u0428\u0432\u0435\u0439\u043D\u0430\u044F \u0444\u0430\u0431\u0440\u0438\u043A\u0430\\\u0421\u0423\u0411\u0414 \u0428\u0432\u0435\u0439\u043D\u0430\u044F \u0444\u0430\u0431\u0440\u0438\u043A\u0430.csproj|D:\\\u041F\u0430\u043F\u043A\u0430\\\u041F\u0440\u0430\u043A\u0442\u0438\u043A\u0430\\praktika\\\u0421\u0423\u0411\u0414 \u0428\u0432\u0435\u0439\u043D\u0430\u044F \u0444\u0430\u0431\u0440\u0438\u043A\u0430\\\u0441\u0443\u0431\u0434 \u0448\u0432\u0435\u0439\u043D\u0430\u044F \u0444\u0430\u0431\u0440\u0438\u043A\u0430\\form1.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
       "RelativeMoniker": "D:0:0:{881D5FBB-22E2-40DD-85BC-52893E1C7B17}|\u0421\u0423\u0411\u0414 \u0428\u0432\u0435\u0439\u043D\u0430\u044F \u0444\u0430\u0431\u0440\u0438\u043A\u0430\\\u0421\u0423\u0411\u0414 \u0428\u0432\u0435\u0439\u043D\u0430\u044F \u0444\u0430\u0431\u0440\u0438\u043A\u0430.csproj|solutionrelative:\u0441\u0443\u0431\u0434 \u0448\u0432\u0435\u0439\u043D\u0430\u044F \u0444\u0430\u0431\u0440\u0438\u043A\u0430\\form1.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
     },
     {
       "AbsoluteMoniker": "D:0:0:{881D5FBB-22E2-40DD-85BC-52893E1C7B17}|\u0421\u0423\u0411\u0414 \u0428\u0432\u0435\u0439\u043D\u0430\u044F \u0444\u0430\u0431\u0440\u0438\u043A\u0430\\\u0421\u0423\u0411\u0414 \u0428\u0432\u0435\u0439\u043D\u0430\u044F \u0444\u0430\u0431\u0440\u0438\u043A\u0430.csproj|D:\\\u041F\u0430\u043F\u043A\u0430\\\u041F\u0440\u0430\u043A\u0442\u0438\u043A\u0430\\praktika\\\u0421\u0423\u0411\u0414 \u0428\u0432\u0435\u0439\u043D\u0430\u044F \u0444\u0430\u0431\u0440\u0438\u043A\u0430\\\u0441\u0443\u0431\u0434 \u0448\u0432\u0435\u0439\u043D\u0430\u044F \u0444\u0430\u0431\u0440\u0438\u043A\u0430\\form1.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}|Form",
       "RelativeMoniker": "D:0:0:{881D5FBB-22E2-40DD-85BC-52893E1C7B17}|\u0421\u0423\u0411\u0414 \u0428\u0432\u0435\u0439\u043D\u0430\u044F \u0444\u0430\u0431\u0440\u0438\u043A\u0430\\\u0421\u0423\u0411\u0414 \u0428\u0432\u0435\u0439\u043D\u0430\u044F \u0444\u0430\u0431\u0440\u0438\u043A\u0430.csproj|solutionrelative:\u0441\u0443\u0431\u0434 \u0448\u0432\u0435\u0439\u043D\u0430\u044F \u0444\u0430\u0431\u0440\u0438\u043A\u0430\\form1.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}|Form"
+    },
+    {
+      "AbsoluteMoniker": "D:0:0:{881D5FBB-22E2-40DD-85BC-52893E1C7B17}|\u0421\u0423\u0411\u0414 \u0428\u0432\u0435\u0439\u043D\u0430\u044F \u0444\u0430\u0431\u0440\u0438\u043A\u0430\\\u0421\u0423\u0411\u0414 \u0428\u0432\u0435\u0439\u043D\u0430\u044F \u0444\u0430\u0431\u0440\u0438\u043A\u0430.csproj|D:\\\u041F\u0430\u043F\u043A\u0430\\\u041F\u0440\u0430\u043A\u0442\u0438\u043A\u0430\\praktika\\\u0421\u0423\u0411\u0414 \u0428\u0432\u0435\u0439\u043D\u0430\u044F \u0444\u0430\u0431\u0440\u0438\u043A\u0430\\\u0441\u0443\u0431\u0434 \u0448\u0432\u0435\u0439\u043D\u0430\u044F \u0444\u0430\u0431\u0440\u0438\u043A\u0430\\formreg.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
+      "RelativeMoniker": "D:0:0:{881D5FBB-22E2-40DD-85BC-52893E1C7B17}|\u0421\u0423\u0411\u0414 \u0428\u0432\u0435\u0439\u043D\u0430\u044F \u0444\u0430\u0431\u0440\u0438\u043A\u0430\\\u0421\u0423\u0411\u0414 \u0428\u0432\u0435\u0439\u043D\u0430\u044F \u0444\u0430\u0431\u0440\u0438\u043A\u0430.csproj|solutionrelative:\u0441\u0443\u0431\u0434 \u0448\u0432\u0435\u0439\u043D\u0430\u044F \u0444\u0430\u0431\u0440\u0438\u043A\u0430\\formreg.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
+    },
+    {
+      "AbsoluteMoniker": "D:0:0:{881D5FBB-22E2-40DD-85BC-52893E1C7B17}|\u0421\u0423\u0411\u0414 \u0428\u0432\u0435\u0439\u043D\u0430\u044F \u0444\u0430\u0431\u0440\u0438\u043A\u0430\\\u0421\u0423\u0411\u0414 \u0428\u0432\u0435\u0439\u043D\u0430\u044F \u0444\u0430\u0431\u0440\u0438\u043A\u0430.csproj|d:\\\u043F\u0430\u043F\u043A\u0430\\\u043F\u0440\u0430\u043A\u0442\u0438\u043A\u0430\\praktika\\\u0441\u0443\u0431\u0434 \u0448\u0432\u0435\u0439\u043D\u0430\u044F \u0444\u0430\u0431\u0440\u0438\u043A\u0430\\\u0441\u0443\u0431\u0434 \u0448\u0432\u0435\u0439\u043D\u0430\u044F \u0444\u0430\u0431\u0440\u0438\u043A\u0430\\formreg.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}|Form",
+      "RelativeMoniker": "D:0:0:{881D5FBB-22E2-40DD-85BC-52893E1C7B17}|\u0421\u0423\u0411\u0414 \u0428\u0432\u0435\u0439\u043D\u0430\u044F \u0444\u0430\u0431\u0440\u0438\u043A\u0430\\\u0421\u0423\u0411\u0414 \u0428\u0432\u0435\u0439\u043D\u0430\u044F \u0444\u0430\u0431\u0440\u0438\u043A\u0430.csproj|solutionrelative:\u0441\u0443\u0431\u0434 \u0448\u0432\u0435\u0439\u043D\u0430\u044F \u0444\u0430\u0431\u0440\u0438\u043A\u0430\\formreg.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}|Form"
     }
   ],
   "DocumentGroupContainers": [
@@ -18,8 +26,33 @@
       "DocumentGroups": [
         {
           "DockedWidth": 200,
-          "SelectedChildIndex": 0,
+          "SelectedChildIndex": 2,
           "Children": [
+            {
+              "$type": "Document",
+              "DocumentIndex": 2,
+              "Title": "FormReg.cs",
+              "DocumentMoniker": "D:\\\u041F\u0430\u043F\u043A\u0430\\\u041F\u0440\u0430\u043A\u0442\u0438\u043A\u0430\\praktika\\\u0421\u0423\u0411\u0414 \u0428\u0432\u0435\u0439\u043D\u0430\u044F \u0444\u0430\u0431\u0440\u0438\u043A\u0430\\\u0421\u0423\u0411\u0414 \u0428\u0432\u0435\u0439\u043D\u0430\u044F \u0444\u0430\u0431\u0440\u0438\u043A\u0430\\FormReg.cs",
+              "RelativeDocumentMoniker": "\u0421\u0423\u0411\u0414 \u0428\u0432\u0435\u0439\u043D\u0430\u044F \u0444\u0430\u0431\u0440\u0438\u043A\u0430\\FormReg.cs",
+              "ToolTip": "D:\\\u041F\u0430\u043F\u043A\u0430\\\u041F\u0440\u0430\u043A\u0442\u0438\u043A\u0430\\praktika\\\u0421\u0423\u0411\u0414 \u0428\u0432\u0435\u0439\u043D\u0430\u044F \u0444\u0430\u0431\u0440\u0438\u043A\u0430\\\u0421\u0423\u0411\u0414 \u0428\u0432\u0435\u0439\u043D\u0430\u044F \u0444\u0430\u0431\u0440\u0438\u043A\u0430\\FormReg.cs",
+              "RelativeToolTip": "\u0421\u0423\u0411\u0414 \u0428\u0432\u0435\u0439\u043D\u0430\u044F \u0444\u0430\u0431\u0440\u0438\u043A\u0430\\FormReg.cs",
+              "ViewState": "AQIAADYAAAAAAAAAAAAAwE8AAAAAAAAA",
+              "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
+              "WhenOpened": "2024-05-06T13:50:11.317Z",
+              "EditorCaption": ""
+            },
+            {
+              "$type": "Document",
+              "DocumentIndex": 3,
+              "Title": "FormReg.cs [\u041A\u043E\u043D\u0441\u0442\u0440\u0443\u043A\u0442\u043E\u0440]",
+              "DocumentMoniker": "D:\\\u041F\u0430\u043F\u043A\u0430\\\u041F\u0440\u0430\u043A\u0442\u0438\u043A\u0430\\praktika\\\u0421\u0423\u0411\u0414 \u0428\u0432\u0435\u0439\u043D\u0430\u044F \u0444\u0430\u0431\u0440\u0438\u043A\u0430\\\u0421\u0423\u0411\u0414 \u0428\u0432\u0435\u0439\u043D\u0430\u044F \u0444\u0430\u0431\u0440\u0438\u043A\u0430\\FormReg.cs",
+              "RelativeDocumentMoniker": "\u0421\u0423\u0411\u0414 \u0428\u0432\u0435\u0439\u043D\u0430\u044F \u0444\u0430\u0431\u0440\u0438\u043A\u0430\\FormReg.cs",
+              "ToolTip": "D:\\\u041F\u0430\u043F\u043A\u0430\\\u041F\u0440\u0430\u043A\u0442\u0438\u043A\u0430\\praktika\\\u0421\u0423\u0411\u0414 \u0428\u0432\u0435\u0439\u043D\u0430\u044F \u0444\u0430\u0431\u0440\u0438\u043A\u0430\\\u0421\u0423\u0411\u0414 \u0428\u0432\u0435\u0439\u043D\u0430\u044F \u0444\u0430\u0431\u0440\u0438\u043A\u0430\\FormReg.cs [\u041A\u043E\u043D\u0441\u0442\u0440\u0443\u043A\u0442\u043E\u0440]",
+              "RelativeToolTip": "\u0421\u0423\u0411\u0414 \u0428\u0432\u0435\u0439\u043D\u0430\u044F \u0444\u0430\u0431\u0440\u0438\u043A\u0430\\FormReg.cs [\u041A\u043E\u043D\u0441\u0442\u0440\u0443\u043A\u0442\u043E\u0440]",
+              "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
+              "WhenOpened": "2024-05-06T13:48:10.426Z",
+              "EditorCaption": " [\u041A\u043E\u043D\u0441\u0442\u0440\u0443\u043A\u0442\u043E\u0440]"
+            },
             {
               "$type": "Document",
               "DocumentIndex": 0,
@@ -28,7 +61,7 @@
               "RelativeDocumentMoniker": "\u0421\u0423\u0411\u0414 \u0428\u0432\u0435\u0439\u043D\u0430\u044F \u0444\u0430\u0431\u0440\u0438\u043A\u0430\\Form1.cs",
               "ToolTip": "D:\\\u041F\u0430\u043F\u043A\u0430\\\u041F\u0440\u0430\u043A\u0442\u0438\u043A\u0430\\praktika\\\u0421\u0423\u0411\u0414 \u0428\u0432\u0435\u0439\u043D\u0430\u044F \u0444\u0430\u0431\u0440\u0438\u043A\u0430\\\u0421\u0423\u0411\u0414 \u0428\u0432\u0435\u0439\u043D\u0430\u044F \u0444\u0430\u0431\u0440\u0438\u043A\u0430\\Form1.cs",
               "RelativeToolTip": "\u0421\u0423\u0411\u0414 \u0428\u0432\u0435\u0439\u043D\u0430\u044F \u0444\u0430\u0431\u0440\u0438\u043A\u0430\\Form1.cs",
-              "ViewState": "AQIAAB0AAAAAAAAAAAAYwC0AAAA2AAAA",
+              "ViewState": "AQIAAEgAAAAAAAAAAAAcwHkAAAAAAAAA",
               "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
               "WhenOpened": "2024-05-04T10:32:09.302Z",
               "EditorCaption": ""

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

@@ -32,27 +32,28 @@
             System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1));
             this.panel1 = new System.Windows.Forms.Panel();
             this.label3 = new System.Windows.Forms.Label();
-            this.pbxLogo = new System.Windows.Forms.PictureBox();
             this.panel2 = new System.Windows.Forms.Panel();
-            this.panel3 = new System.Windows.Forms.Panel();
-            this.textBox4 = new System.Windows.Forms.TextBox();
+            this.btnEnter = new System.Windows.Forms.Button();
+            this.pnlCpch = new System.Windows.Forms.Panel();
+            this.tbxCpch = new System.Windows.Forms.TextBox();
             this.label4 = new System.Windows.Forms.Label();
-            this.textBox3 = new System.Windows.Forms.TextBox();
             this.label2 = new System.Windows.Forms.Label();
             this.label1 = new System.Windows.Forms.Label();
             this.tbxPassw = new System.Windows.Forms.TextBox();
             this.tbxLogin = new System.Windows.Forms.TextBox();
-            this.btnEnter = new System.Windows.Forms.Button();
             this.vdb_FabrikDataSet = new СУБД_Швейная_фабрика.Vdb_FabrikDataSet();
             this.usersBindingSource = new System.Windows.Forms.BindingSource(this.components);
             this.usersTableAdapter = new СУБД_Швейная_фабрика.Vdb_FabrikDataSetTableAdapters.usersTableAdapter();
             this.tableAdapterManager = new СУБД_Швейная_фабрика.Vdb_FabrikDataSetTableAdapters.TableAdapterManager();
+            this.tbxShowCpch = new System.Windows.Forms.Label();
+            this.lblReg = new System.Windows.Forms.Label();
+            this.pbxLogo = new System.Windows.Forms.PictureBox();
             this.panel1.SuspendLayout();
-            ((System.ComponentModel.ISupportInitialize)(this.pbxLogo)).BeginInit();
             this.panel2.SuspendLayout();
-            this.panel3.SuspendLayout();
+            this.pnlCpch.SuspendLayout();
             ((System.ComponentModel.ISupportInitialize)(this.vdb_FabrikDataSet)).BeginInit();
             ((System.ComponentModel.ISupportInitialize)(this.usersBindingSource)).BeginInit();
+            ((System.ComponentModel.ISupportInitialize)(this.pbxLogo)).BeginInit();
             this.SuspendLayout();
             // 
             // panel1
@@ -79,18 +80,6 @@
             this.label3.TabIndex = 2;
             this.label3.Text = "СУБД \"Швейная фабрика\"";
             // 
-            // pbxLogo
-            // 
-            this.pbxLogo.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
-            this.pbxLogo.Image = global::СУБД_Швейная_фабрика.Properties.Resources.fabric_logo;
-            this.pbxLogo.Location = new System.Drawing.Point(594, 4);
-            this.pbxLogo.Margin = new System.Windows.Forms.Padding(4);
-            this.pbxLogo.Name = "pbxLogo";
-            this.pbxLogo.Size = new System.Drawing.Size(140, 90);
-            this.pbxLogo.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
-            this.pbxLogo.TabIndex = 1;
-            this.pbxLogo.TabStop = false;
-            // 
             // panel2
             // 
             this.panel2.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
@@ -99,7 +88,7 @@
             this.panel2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(156)))), ((int)(((byte)(26)))));
             this.panel2.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
             this.panel2.Controls.Add(this.btnEnter);
-            this.panel2.Controls.Add(this.panel3);
+            this.panel2.Controls.Add(this.pnlCpch);
             this.panel2.Controls.Add(this.label2);
             this.panel2.Controls.Add(this.label1);
             this.panel2.Controls.Add(this.tbxPassw);
@@ -111,24 +100,38 @@
             this.panel2.Size = new System.Drawing.Size(424, 252);
             this.panel2.TabIndex = 1;
             // 
-            // panel3
+            // btnEnter
+            // 
+            this.btnEnter.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(225)))));
+            this.btnEnter.Font = new System.Drawing.Font("Microsoft Sans Serif", 10.2F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
+            this.btnEnter.ForeColor = System.Drawing.SystemColors.ControlText;
+            this.btnEnter.Location = new System.Drawing.Point(151, 205);
+            this.btnEnter.Name = "btnEnter";
+            this.btnEnter.Size = new System.Drawing.Size(114, 32);
+            this.btnEnter.TabIndex = 2;
+            this.btnEnter.Text = "Вход";
+            this.btnEnter.UseVisualStyleBackColor = false;
+            this.btnEnter.Click += new System.EventHandler(this.btnEnter_Click);
+            // 
+            // pnlCpch
             // 
-            this.panel3.Controls.Add(this.textBox4);
-            this.panel3.Controls.Add(this.label4);
-            this.panel3.Controls.Add(this.textBox3);
-            this.panel3.Location = new System.Drawing.Point(18, 86);
-            this.panel3.Name = "panel3";
-            this.panel3.Size = new System.Drawing.Size(375, 94);
-            this.panel3.TabIndex = 4;
+            this.pnlCpch.Controls.Add(this.tbxShowCpch);
+            this.pnlCpch.Controls.Add(this.tbxCpch);
+            this.pnlCpch.Controls.Add(this.label4);
+            this.pnlCpch.Location = new System.Drawing.Point(18, 86);
+            this.pnlCpch.Name = "pnlCpch";
+            this.pnlCpch.Size = new System.Drawing.Size(375, 94);
+            this.pnlCpch.TabIndex = 4;
+            this.pnlCpch.Visible = false;
             // 
-            // textBox4
+            // tbxCpch
             // 
-            this.textBox4.Font = new System.Drawing.Font("Microsoft Sans Serif", 10.2F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
-            this.textBox4.Location = new System.Drawing.Point(149, 63);
-            this.textBox4.Margin = new System.Windows.Forms.Padding(4);
-            this.textBox4.Name = "textBox4";
-            this.textBox4.Size = new System.Drawing.Size(210, 27);
-            this.textBox4.TabIndex = 5;
+            this.tbxCpch.Font = new System.Drawing.Font("Microsoft Sans Serif", 10.2F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
+            this.tbxCpch.Location = new System.Drawing.Point(149, 63);
+            this.tbxCpch.Margin = new System.Windows.Forms.Padding(4);
+            this.tbxCpch.Name = "tbxCpch";
+            this.tbxCpch.Size = new System.Drawing.Size(210, 27);
+            this.tbxCpch.TabIndex = 5;
             // 
             // label4
             // 
@@ -142,18 +145,6 @@
             this.label4.TabIndex = 5;
             this.label4.Text = "Капча:";
             // 
-            // textBox3
-            // 
-            this.textBox3.Font = new System.Drawing.Font("Segoe Script", 18F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
-            this.textBox3.Location = new System.Drawing.Point(149, 4);
-            this.textBox3.Margin = new System.Windows.Forms.Padding(4);
-            this.textBox3.Name = "textBox3";
-            this.textBox3.ReadOnly = true;
-            this.textBox3.Size = new System.Drawing.Size(210, 55);
-            this.textBox3.TabIndex = 5;
-            this.textBox3.Text = "label";
-            this.textBox3.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
-            // 
             // label2
             // 
             this.label2.AutoSize = true;
@@ -197,19 +188,6 @@
             this.tbxLogin.Size = new System.Drawing.Size(226, 27);
             this.tbxLogin.TabIndex = 0;
             // 
-            // btnEnter
-            // 
-            this.btnEnter.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(225)))));
-            this.btnEnter.Font = new System.Drawing.Font("Microsoft Sans Serif", 10.2F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
-            this.btnEnter.ForeColor = System.Drawing.SystemColors.ControlText;
-            this.btnEnter.Location = new System.Drawing.Point(151, 205);
-            this.btnEnter.Name = "btnEnter";
-            this.btnEnter.Size = new System.Drawing.Size(114, 32);
-            this.btnEnter.TabIndex = 2;
-            this.btnEnter.Text = "Вход";
-            this.btnEnter.UseVisualStyleBackColor = false;
-            this.btnEnter.Click += new System.EventHandler(this.btnEnter_Click);
-            // 
             // vdb_FabrikDataSet
             // 
             this.vdb_FabrikDataSet.DataSetName = "Vdb_FabrikDataSet";
@@ -234,31 +212,70 @@
             this.tableAdapterManager.UpdateOrder = СУБД_Швейная_фабрика.Vdb_FabrikDataSetTableAdapters.TableAdapterManager.UpdateOrderOption.InsertUpdateDelete;
             this.tableAdapterManager.usersTableAdapter = this.usersTableAdapter;
             // 
+            // tbxShowCpch
+            // 
+            this.tbxShowCpch.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(224)))), ((int)(((byte)(192)))));
+            this.tbxShowCpch.Font = new System.Drawing.Font("Segoe Script", 13.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+            this.tbxShowCpch.ForeColor = System.Drawing.Color.Black;
+            this.tbxShowCpch.Location = new System.Drawing.Point(176, 9);
+            this.tbxShowCpch.Name = "tbxShowCpch";
+            this.tbxShowCpch.Size = new System.Drawing.Size(159, 41);
+            this.tbxShowCpch.TabIndex = 6;
+            this.tbxShowCpch.Text = "label5";
+            this.tbxShowCpch.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+            this.tbxShowCpch.Paint += new System.Windows.Forms.PaintEventHandler(this.LblCapcha_Paint);
+            // 
+            // lblReg
+            // 
+            this.lblReg.AutoSize = true;
+            this.lblReg.ForeColor = System.Drawing.Color.Blue;
+            this.lblReg.Location = new System.Drawing.Point(162, 400);
+            this.lblReg.Name = "lblReg";
+            this.lblReg.Size = new System.Drawing.Size(213, 16);
+            this.lblReg.TabIndex = 10;
+            this.lblReg.Text = "Регистрация нового заказчика";
+            this.lblReg.Click += new System.EventHandler(this.lblReg_Click);
+            // 
+            // pbxLogo
+            // 
+            this.pbxLogo.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+            this.pbxLogo.Image = global::СУБД_Швейная_фабрика.Properties.Resources.fabric_logo;
+            this.pbxLogo.Location = new System.Drawing.Point(594, 4);
+            this.pbxLogo.Margin = new System.Windows.Forms.Padding(4);
+            this.pbxLogo.Name = "pbxLogo";
+            this.pbxLogo.Size = new System.Drawing.Size(140, 90);
+            this.pbxLogo.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
+            this.pbxLogo.TabIndex = 1;
+            this.pbxLogo.TabStop = false;
+            // 
             // Form1
             // 
             this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
             this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
             this.BackColor = System.Drawing.Color.White;
             this.ClientSize = new System.Drawing.Size(743, 447);
+            this.Controls.Add(this.lblReg);
             this.Controls.Add(this.panel2);
             this.Controls.Add(this.panel1);
             this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
             this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
             this.Margin = new System.Windows.Forms.Padding(4);
+            this.MaximizeBox = false;
             this.Name = "Form1";
             this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
-            this.Text = "Form1";
+            this.Text = "Авторизация";
             this.Load += new System.EventHandler(this.Form1_Load);
             this.panel1.ResumeLayout(false);
             this.panel1.PerformLayout();
-            ((System.ComponentModel.ISupportInitialize)(this.pbxLogo)).EndInit();
             this.panel2.ResumeLayout(false);
             this.panel2.PerformLayout();
-            this.panel3.ResumeLayout(false);
-            this.panel3.PerformLayout();
+            this.pnlCpch.ResumeLayout(false);
+            this.pnlCpch.PerformLayout();
             ((System.ComponentModel.ISupportInitialize)(this.vdb_FabrikDataSet)).EndInit();
             ((System.ComponentModel.ISupportInitialize)(this.usersBindingSource)).EndInit();
+            ((System.ComponentModel.ISupportInitialize)(this.pbxLogo)).EndInit();
             this.ResumeLayout(false);
+            this.PerformLayout();
 
         }
 
@@ -273,14 +290,15 @@
         private System.Windows.Forms.TextBox tbxLogin;
         private System.Windows.Forms.Label label3;
         private System.Windows.Forms.Button btnEnter;
-        private System.Windows.Forms.Panel panel3;
-        private System.Windows.Forms.TextBox textBox4;
+        private System.Windows.Forms.Panel pnlCpch;
+        private System.Windows.Forms.TextBox tbxCpch;
         private System.Windows.Forms.Label label4;
-        private System.Windows.Forms.TextBox textBox3;
         private Vdb_FabrikDataSet vdb_FabrikDataSet;
         private System.Windows.Forms.BindingSource usersBindingSource;
         private Vdb_FabrikDataSetTableAdapters.usersTableAdapter usersTableAdapter;
         private Vdb_FabrikDataSetTableAdapters.TableAdapterManager tableAdapterManager;
+        private System.Windows.Forms.Label tbxShowCpch;
+        private System.Windows.Forms.Label lblReg;
     }
 }
 

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

@@ -21,6 +21,44 @@ namespace СУБД_Швейная_фабрика
         public static string txtCon = "Data Source=213.155.192.79,3002;Initial Catalog=Vdb_Fabrik;Persist Security Info=True;User ID=u22volkova;Password=ft5k";
         public static string idCur;
 
+        private void LblCapcha_Paint(object sender, PaintEventArgs e)
+        {
+            Color[] colors = { Color.Green, Color.Black, Color.Yellow, Color.White };
+            Random rnd = new Random();
+            for (int i = 1; i <= rnd.Next(5, 11); i++)
+            {
+                int x1 = rnd.Next(tbxShowCpch.Width);
+                int y1 = rnd.Next(tbxShowCpch.Height);
+                int x2 = rnd.Next(tbxShowCpch.Width);
+                int y2 = rnd.Next(tbxShowCpch.Height);
+                Color col = colors[rnd.Next(colors.Length)];
+                e.Graphics.DrawLine(new Pen(col), x1, y1, x2, y2);
+            }
+        }
+
+        string GetCapcha()
+        {
+            string TxtLetter = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
+            string TxtDigit = "0123456789";
+            string t1 = TxtLetter + TxtDigit;
+            string capcha = "";
+            bool FlagDigit = false;
+            Random rnd = new Random();
+
+            for (int i = 1; i <= 3; i++)
+            {
+                char sim = t1[rnd.Next(t1.Length)];
+                if (char.IsDigit(sim)) FlagDigit = true;
+                capcha += sim;  // добавить символ к капче
+            }
+            if (FlagDigit == false)
+                capcha += TxtDigit[rnd.Next(TxtDigit.Length)];
+            else
+                capcha += TxtLetter[rnd.Next(TxtLetter.Length)];
+
+            return capcha;
+        }
+
         private void btnEnter_Click(object sender, EventArgs e)
         {
             if (tbxLogin.Text.Trim() == "" || tbxPassw.Text.Trim() == "")
@@ -44,41 +82,60 @@ namespace СУБД_Швейная_фабрика
             if (passw != tbxPassw.Text)
             {
                 MessageBox.Show("Пароль введен неверно.");
+                pnlCpch.Visible = true;
+                tbxShowCpch.Text = GetCapcha();
                 return;
             }
 
+            if (pnlCpch.Visible == true)
+                if (tbxShowCpch.Text.ToUpper() != tbxCpch.Text.ToUpper())
+                {
+                    MessageBox.Show("Капча введена неверно.");
+                    tbxShowCpch.Text = GetCapcha();
+
+                    return;
+                }
+
             string role = rdr["role"].ToString();
             idCur = rdr["id_user"].ToString();
             
-
             if (role == "менеджер")
             {
-                
+                FormMng formMng = new FormMng();
+                formMng.ShowDialog();
             }
             else if (role == "заказчик")
             {
-
+                FormCostom formCostom = new FormCostom();
+                formCostom.ShowDialog();
             }
             else //кладовщик
             {
-
+                FormKlad formKlad = new FormKlad();
+                formKlad.ShowDialog();
             }
             connection.Close();
+            tbxCpch.Clear();
+            tbxShowCpch.Text = GetCapcha();
+            pnlCpch.Visible = false;
         }
 
-        private void usersBindingNavigatorSaveItem_Click(object sender, EventArgs e)
-        {
-            this.Validate();
-            this.usersBindingSource.EndEdit();
-            this.tableAdapterManager.UpdateAll(this.vdb_FabrikDataSet);
-
-        }
 
         private void Form1_Load(object sender, EventArgs e)
         {
-            // TODO: данная строка кода позволяет загрузить данные в таблицу "vdb_FabrikDataSet.users". При необходимости она может быть перемещена или удалена.
             this.usersTableAdapter.Fill(this.vdb_FabrikDataSet.users);
 
+            tbxShowCpch.Text = GetCapcha();
+        }
+
+        private void lblReg_Click(object sender, EventArgs e)
+        {
+            FormReg frm = new FormReg();
+            if (frm.ShowDialog() == DialogResult.OK)
+            {
+                this.usersBindingSource.EndEdit();
+                this.usersTableAdapter.Fill(this.vdb_FabrikDataSet.users);
+            }
         }
     }
 }

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

@@ -0,0 +1,39 @@
+namespace СУБД_Швейная_фабрика
+{
+    partial class FormCostom
+    {
+        /// <summary>
+        /// Required designer variable.
+        /// </summary>
+        private System.ComponentModel.IContainer components = null;
+
+        /// <summary>
+        /// Clean up any resources being used.
+        /// </summary>
+        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
+        protected override void Dispose(bool disposing)
+        {
+            if (disposing && (components != null))
+            {
+                components.Dispose();
+            }
+            base.Dispose(disposing);
+        }
+
+        #region Windows Form Designer generated code
+
+        /// <summary>
+        /// Required method for Designer support - do not modify
+        /// the contents of this method with the code editor.
+        /// </summary>
+        private void InitializeComponent()
+        {
+            this.components = new System.ComponentModel.Container();
+            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+            this.ClientSize = new System.Drawing.Size(800, 450);
+            this.Text = "FormCostom";
+        }
+
+        #endregion
+    }
+}

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

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

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

@@ -0,0 +1,39 @@
+namespace СУБД_Швейная_фабрика
+{
+    partial class FormKlad
+    {
+        /// <summary>
+        /// Required designer variable.
+        /// </summary>
+        private System.ComponentModel.IContainer components = null;
+
+        /// <summary>
+        /// Clean up any resources being used.
+        /// </summary>
+        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
+        protected override void Dispose(bool disposing)
+        {
+            if (disposing && (components != null))
+            {
+                components.Dispose();
+            }
+            base.Dispose(disposing);
+        }
+
+        #region Windows Form Designer generated code
+
+        /// <summary>
+        /// Required method for Designer support - do not modify
+        /// the contents of this method with the code editor.
+        /// </summary>
+        private void InitializeComponent()
+        {
+            this.components = new System.ComponentModel.Container();
+            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+            this.ClientSize = new System.Drawing.Size(800, 450);
+            this.Text = "FormKlad";
+        }
+
+        #endregion
+    }
+}

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

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

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

@@ -0,0 +1,39 @@
+namespace СУБД_Швейная_фабрика
+{
+    partial class FormMng
+    {
+        /// <summary>
+        /// Required designer variable.
+        /// </summary>
+        private System.ComponentModel.IContainer components = null;
+
+        /// <summary>
+        /// Clean up any resources being used.
+        /// </summary>
+        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
+        protected override void Dispose(bool disposing)
+        {
+            if (disposing && (components != null))
+            {
+                components.Dispose();
+            }
+            base.Dispose(disposing);
+        }
+
+        #region Windows Form Designer generated code
+
+        /// <summary>
+        /// Required method for Designer support - do not modify
+        /// the contents of this method with the code editor.
+        /// </summary>
+        private void InitializeComponent()
+        {
+            this.components = new System.ComponentModel.Container();
+            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+            this.ClientSize = new System.Drawing.Size(800, 450);
+            this.Text = "FormMng";
+        }
+
+        #endregion
+    }
+}

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

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

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

@@ -0,0 +1,340 @@
+namespace СУБД_Швейная_фабрика
+{
+    partial class FormReg
+    {
+        /// <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 phoneLabel;
+            System.Windows.Forms.Label otchLabel;
+            System.Windows.Forms.Label nameLabel;
+            System.Windows.Forms.Label famLabel;
+            System.Windows.Forms.Label passLabel;
+            System.Windows.Forms.Label loginLabel;
+            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormReg));
+            this.panel1 = new System.Windows.Forms.Panel();
+            this.label3 = new System.Windows.Forms.Label();
+            this.pbxLogo = new System.Windows.Forms.PictureBox();
+            this.cbxShowPass = new System.Windows.Forms.CheckBox();
+            this.BtnCancel = new System.Windows.Forms.Button();
+            this.BtnReg = new System.Windows.Forms.Button();
+            this.vdb_FabrikDataSet = new СУБД_Швейная_фабрика.Vdb_FabrikDataSet();
+            this.usersBindingSource = new System.Windows.Forms.BindingSource(this.components);
+            this.usersTableAdapter = new СУБД_Швейная_фабрика.Vdb_FabrikDataSetTableAdapters.usersTableAdapter();
+            this.tableAdapterManager = new СУБД_Швейная_фабрика.Vdb_FabrikDataSetTableAdapters.TableAdapterManager();
+            this.loginTextBox = new System.Windows.Forms.TextBox();
+            this.passwTextBox = new System.Windows.Forms.TextBox();
+            this.roleLabel1 = new System.Windows.Forms.Label();
+            this.t_numberMaskedTextBox = new System.Windows.Forms.MaskedTextBox();
+            this.famTextBox = new System.Windows.Forms.TextBox();
+            this.nameTextBox = new System.Windows.Forms.TextBox();
+            this.otchTextBox = new System.Windows.Forms.TextBox();
+            phoneLabel = new System.Windows.Forms.Label();
+            otchLabel = new System.Windows.Forms.Label();
+            nameLabel = new System.Windows.Forms.Label();
+            famLabel = new System.Windows.Forms.Label();
+            passLabel = new System.Windows.Forms.Label();
+            loginLabel = new System.Windows.Forms.Label();
+            this.panel1.SuspendLayout();
+            ((System.ComponentModel.ISupportInitialize)(this.pbxLogo)).BeginInit();
+            ((System.ComponentModel.ISupportInitialize)(this.vdb_FabrikDataSet)).BeginInit();
+            ((System.ComponentModel.ISupportInitialize)(this.usersBindingSource)).BeginInit();
+            this.SuspendLayout();
+            // 
+            // phoneLabel
+            // 
+            phoneLabel.AutoSize = true;
+            phoneLabel.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(156)))), ((int)(((byte)(26)))));
+            phoneLabel.Location = new System.Drawing.Point(15, 221);
+            phoneLabel.Name = "phoneLabel";
+            phoneLabel.Size = new System.Drawing.Size(70, 16);
+            phoneLabel.TabIndex = 30;
+            phoneLabel.Text = "Телефон:";
+            // 
+            // otchLabel
+            // 
+            otchLabel.AutoSize = true;
+            otchLabel.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(156)))), ((int)(((byte)(26)))));
+            otchLabel.Location = new System.Drawing.Point(275, 197);
+            otchLabel.Name = "otchLabel";
+            otchLabel.Size = new System.Drawing.Size(73, 16);
+            otchLabel.TabIndex = 28;
+            otchLabel.Text = "Отчество:";
+            // 
+            // nameLabel
+            // 
+            nameLabel.AutoSize = true;
+            nameLabel.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(156)))), ((int)(((byte)(26)))));
+            nameLabel.Location = new System.Drawing.Point(309, 156);
+            nameLabel.Name = "nameLabel";
+            nameLabel.Size = new System.Drawing.Size(36, 16);
+            nameLabel.TabIndex = 26;
+            nameLabel.Text = "Имя:";
+            // 
+            // famLabel
+            // 
+            famLabel.AutoSize = true;
+            famLabel.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(156)))), ((int)(((byte)(26)))));
+            famLabel.Location = new System.Drawing.Point(274, 122);
+            famLabel.Name = "famLabel";
+            famLabel.Size = new System.Drawing.Size(69, 16);
+            famLabel.TabIndex = 24;
+            famLabel.Text = "Фамилия:";
+            // 
+            // passLabel
+            // 
+            passLabel.AutoSize = true;
+            passLabel.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(156)))), ((int)(((byte)(26)))));
+            passLabel.Location = new System.Drawing.Point(15, 154);
+            passLabel.Name = "passLabel";
+            passLabel.Size = new System.Drawing.Size(59, 16);
+            passLabel.TabIndex = 22;
+            passLabel.Text = "Пароль:";
+            // 
+            // loginLabel
+            // 
+            loginLabel.AutoSize = true;
+            loginLabel.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(156)))), ((int)(((byte)(26)))));
+            loginLabel.Location = new System.Drawing.Point(15, 119);
+            loginLabel.Name = "loginLabel";
+            loginLabel.Size = new System.Drawing.Size(49, 16);
+            loginLabel.TabIndex = 19;
+            loginLabel.Text = "Логин:";
+            // 
+            // panel1
+            // 
+            this.panel1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(225)))));
+            this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
+            this.panel1.Controls.Add(this.label3);
+            this.panel1.Controls.Add(this.pbxLogo);
+            this.panel1.Dock = System.Windows.Forms.DockStyle.Top;
+            this.panel1.Location = new System.Drawing.Point(0, 0);
+            this.panel1.Margin = new System.Windows.Forms.Padding(4);
+            this.panel1.Name = "panel1";
+            this.panel1.Size = new System.Drawing.Size(525, 102);
+            this.panel1.TabIndex = 1;
+            // 
+            // label3
+            // 
+            this.label3.AutoSize = true;
+            this.label3.Font = new System.Drawing.Font("Microsoft Sans Serif", 16.2F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
+            this.label3.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(156)))), ((int)(((byte)(26)))));
+            this.label3.Location = new System.Drawing.Point(10, 34);
+            this.label3.Name = "label3";
+            this.label3.Size = new System.Drawing.Size(361, 32);
+            this.label3.TabIndex = 2;
+            this.label3.Text = "СУБД \"Швейная фабрика\"";
+            // 
+            // pbxLogo
+            // 
+            this.pbxLogo.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+            this.pbxLogo.Image = global::СУБД_Швейная_фабрика.Properties.Resources.fabric_logo;
+            this.pbxLogo.Location = new System.Drawing.Point(376, 4);
+            this.pbxLogo.Margin = new System.Windows.Forms.Padding(4);
+            this.pbxLogo.Name = "pbxLogo";
+            this.pbxLogo.Size = new System.Drawing.Size(140, 90);
+            this.pbxLogo.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
+            this.pbxLogo.TabIndex = 1;
+            this.pbxLogo.TabStop = false;
+            // 
+            // cbxShowPass
+            // 
+            this.cbxShowPass.AutoSize = true;
+            this.cbxShowPass.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(156)))), ((int)(((byte)(26)))));
+            this.cbxShowPass.Location = new System.Drawing.Point(18, 189);
+            this.cbxShowPass.Name = "cbxShowPass";
+            this.cbxShowPass.Size = new System.Drawing.Size(219, 20);
+            this.cbxShowPass.TabIndex = 32;
+            this.cbxShowPass.Text = "Показывать символы пароля";
+            this.cbxShowPass.UseVisualStyleBackColor = true;
+            this.cbxShowPass.CheckedChanged += new System.EventHandler(this.cbxShowPass_CheckedChanged);
+            // 
+            // BtnCancel
+            // 
+            this.BtnCancel.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(225)))));
+            this.BtnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
+            this.BtnCancel.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(156)))), ((int)(((byte)(26)))));
+            this.BtnCancel.Location = new System.Drawing.Point(354, 303);
+            this.BtnCancel.Name = "BtnCancel";
+            this.BtnCancel.Size = new System.Drawing.Size(154, 28);
+            this.BtnCancel.TabIndex = 20;
+            this.BtnCancel.Text = "Отмена";
+            this.BtnCancel.UseVisualStyleBackColor = false;
+            // 
+            // BtnReg
+            // 
+            this.BtnReg.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(225)))));
+            this.BtnReg.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(156)))), ((int)(((byte)(26)))));
+            this.BtnReg.Location = new System.Drawing.Point(185, 303);
+            this.BtnReg.Name = "BtnReg";
+            this.BtnReg.Size = new System.Drawing.Size(163, 27);
+            this.BtnReg.TabIndex = 18;
+            this.BtnReg.Text = "Зарегистрировать";
+            this.BtnReg.UseVisualStyleBackColor = false;
+            this.BtnReg.Click += new System.EventHandler(this.BtnReg_Click);
+            // 
+            // vdb_FabrikDataSet
+            // 
+            this.vdb_FabrikDataSet.DataSetName = "Vdb_FabrikDataSet";
+            this.vdb_FabrikDataSet.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
+            // 
+            // usersBindingSource
+            // 
+            this.usersBindingSource.DataMember = "users";
+            this.usersBindingSource.DataSource = this.vdb_FabrikDataSet;
+            // 
+            // usersTableAdapter
+            // 
+            this.usersTableAdapter.ClearBeforeFill = true;
+            // 
+            // tableAdapterManager
+            // 
+            this.tableAdapterManager.BackupDataSetBeforeUpdate = false;
+            this.tableAdapterManager.comihTableAdapter = null;
+            this.tableAdapterManager.craftTableAdapter = null;
+            this.tableAdapterManager.FurnituraTableAdapter = null;
+            this.tableAdapterManager.tkaniTableAdapter = null;
+            this.tableAdapterManager.UpdateOrder = СУБД_Швейная_фабрика.Vdb_FabrikDataSetTableAdapters.TableAdapterManager.UpdateOrderOption.InsertUpdateDelete;
+            this.tableAdapterManager.usersTableAdapter = this.usersTableAdapter;
+            // 
+            // loginTextBox
+            // 
+            this.loginTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.usersBindingSource, "login", true));
+            this.loginTextBox.Location = new System.Drawing.Point(96, 116);
+            this.loginTextBox.Name = "loginTextBox";
+            this.loginTextBox.Size = new System.Drawing.Size(141, 22);
+            this.loginTextBox.TabIndex = 33;
+            // 
+            // passwTextBox
+            // 
+            this.passwTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.usersBindingSource, "passw", true));
+            this.passwTextBox.Location = new System.Drawing.Point(96, 148);
+            this.passwTextBox.Name = "passwTextBox";
+            this.passwTextBox.Size = new System.Drawing.Size(141, 22);
+            this.passwTextBox.TabIndex = 34;
+            // 
+            // roleLabel1
+            // 
+            this.roleLabel1.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.usersBindingSource, "role", true));
+            this.roleLabel1.Location = new System.Drawing.Point(614, 190);
+            this.roleLabel1.Name = "roleLabel1";
+            this.roleLabel1.Size = new System.Drawing.Size(100, 23);
+            this.roleLabel1.TabIndex = 35;
+            this.roleLabel1.Text = "label1";
+            // 
+            // t_numberMaskedTextBox
+            // 
+            this.t_numberMaskedTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.usersBindingSource, "t_number", true));
+            this.t_numberMaskedTextBox.Location = new System.Drawing.Point(96, 221);
+            this.t_numberMaskedTextBox.Mask = "+0(000) 000-00-00";
+            this.t_numberMaskedTextBox.Name = "t_numberMaskedTextBox";
+            this.t_numberMaskedTextBox.Size = new System.Drawing.Size(141, 22);
+            this.t_numberMaskedTextBox.TabIndex = 36;
+            // 
+            // famTextBox
+            // 
+            this.famTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.usersBindingSource, "fam", true));
+            this.famTextBox.Location = new System.Drawing.Point(354, 116);
+            this.famTextBox.Name = "famTextBox";
+            this.famTextBox.Size = new System.Drawing.Size(154, 22);
+            this.famTextBox.TabIndex = 37;
+            // 
+            // nameTextBox
+            // 
+            this.nameTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.usersBindingSource, "name", true));
+            this.nameTextBox.Location = new System.Drawing.Point(354, 156);
+            this.nameTextBox.Name = "nameTextBox";
+            this.nameTextBox.Size = new System.Drawing.Size(154, 22);
+            this.nameTextBox.TabIndex = 38;
+            // 
+            // otchTextBox
+            // 
+            this.otchTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.usersBindingSource, "otch", true));
+            this.otchTextBox.Location = new System.Drawing.Point(354, 197);
+            this.otchTextBox.Name = "otchTextBox";
+            this.otchTextBox.Size = new System.Drawing.Size(154, 22);
+            this.otchTextBox.TabIndex = 39;
+            // 
+            // FormReg
+            // 
+            this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
+            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+            this.ClientSize = new System.Drawing.Size(525, 352);
+            this.Controls.Add(this.otchTextBox);
+            this.Controls.Add(this.nameTextBox);
+            this.Controls.Add(this.famTextBox);
+            this.Controls.Add(this.t_numberMaskedTextBox);
+            this.Controls.Add(this.roleLabel1);
+            this.Controls.Add(this.passwTextBox);
+            this.Controls.Add(this.loginTextBox);
+            this.Controls.Add(this.cbxShowPass);
+            this.Controls.Add(phoneLabel);
+            this.Controls.Add(otchLabel);
+            this.Controls.Add(nameLabel);
+            this.Controls.Add(famLabel);
+            this.Controls.Add(passLabel);
+            this.Controls.Add(loginLabel);
+            this.Controls.Add(this.BtnCancel);
+            this.Controls.Add(this.BtnReg);
+            this.Controls.Add(this.panel1);
+            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
+            this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
+            this.MaximizeBox = false;
+            this.Name = "FormReg";
+            this.Text = "Регистрация";
+            this.Load += new System.EventHandler(this.FormReg_Load);
+            this.panel1.ResumeLayout(false);
+            this.panel1.PerformLayout();
+            ((System.ComponentModel.ISupportInitialize)(this.pbxLogo)).EndInit();
+            ((System.ComponentModel.ISupportInitialize)(this.vdb_FabrikDataSet)).EndInit();
+            ((System.ComponentModel.ISupportInitialize)(this.usersBindingSource)).EndInit();
+            this.ResumeLayout(false);
+            this.PerformLayout();
+
+        }
+
+        #endregion
+
+        private System.Windows.Forms.Panel panel1;
+        private System.Windows.Forms.Label label3;
+        private System.Windows.Forms.PictureBox pbxLogo;
+        private System.Windows.Forms.CheckBox cbxShowPass;
+        private System.Windows.Forms.Button BtnCancel;
+        private System.Windows.Forms.Button BtnReg;
+        private Vdb_FabrikDataSet vdb_FabrikDataSet;
+        private System.Windows.Forms.BindingSource usersBindingSource;
+        private Vdb_FabrikDataSetTableAdapters.usersTableAdapter usersTableAdapter;
+        private Vdb_FabrikDataSetTableAdapters.TableAdapterManager tableAdapterManager;
+        private System.Windows.Forms.TextBox loginTextBox;
+        private System.Windows.Forms.TextBox passwTextBox;
+        private System.Windows.Forms.Label roleLabel1;
+        private System.Windows.Forms.MaskedTextBox t_numberMaskedTextBox;
+        private System.Windows.Forms.TextBox famTextBox;
+        private System.Windows.Forms.TextBox nameTextBox;
+        private System.Windows.Forms.TextBox otchTextBox;
+    }
+}

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

@@ -0,0 +1,107 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Data.SqlClient;
+using System.Drawing;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows.Forms;
+
+namespace СУБД_Швейная_фабрика
+{
+    public partial class FormReg : Form
+    {
+        public FormReg()
+        {
+            InitializeComponent();
+        }
+
+        public static bool CheckPass(string Pass)
+        {
+            if (Pass.Length < 6)
+            {
+                return false;
+            }
+
+            int num = 0;
+            int num2 = 0;
+            for (int i = 0; i <= Pass.Length - 1; i++)
+            {
+                if (char.IsDigit(Pass[i]))
+                {
+                    num++;
+                }
+
+                if ("!@#$%^".Contains(Pass[i]))
+                {
+                    num2++;
+                }
+            }
+
+            return num <= Pass.Length / 2 && num2 > 0 && Pass != Pass.ToUpper() && Pass != Pass.ToLower();
+        }
+
+        private void BtnReg_Click(object sender, EventArgs e)
+        {
+
+            if (passwTextBox.Text.Trim() == "" || loginTextBox.Text.Trim() == "" || famTextBox.Text.Trim() == "" || nameTextBox.Text.Trim() == "" || t_numberMaskedTextBox.Text.Trim() == "") 
+            {
+                MessageBox.Show("Не все обязательные поля были заполнены. Обязательные поля: Пароль, Логин, Фамилия, Имя, Номер телефона.");
+                return;
+            }
+            
+            if (!CheckPass(passwTextBox.Text))
+            {
+                MessageBox.Show("Пароль не соответствует требованиям.", "Внимание!",
+                    MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
+                return;  
+            }
+
+            SqlConnection connection = new SqlConnection(Form1.txtCon);
+            string qe = $"select * from users where login = '{loginTextBox.Text}'";
+            connection.Open();
+            SqlCommand command = new SqlCommand(qe, connection);
+            SqlDataReader rdr = command.ExecuteReader();
+            rdr.Read();
+            if (rdr != null)
+            {
+                try
+                {
+                    if (rdr["login"].ToString() == loginTextBox.Text)
+                    {
+                        MessageBox.Show("Пользователя с такими логином уже есть базе.");
+                        return;
+                    }
+                }
+                catch { }
+            }
+
+            try
+            {
+                usersBindingSource.EndEdit();
+                this.usersTableAdapter.Update(this.vdb_FabrikDataSet.users);
+            }
+            catch
+            {
+                return;
+            }
+
+            this.DialogResult = DialogResult.OK;
+            Close();
+        }
+
+        private void cbxShowPass_CheckedChanged(object sender, EventArgs e)
+        {
+            passwTextBox.UseSystemPasswordChar = !passwTextBox.UseSystemPasswordChar;
+        }
+
+        private void FormReg_Load(object sender, EventArgs e)
+        {
+            this.usersTableAdapter.Fill(this.vdb_FabrikDataSet.users);
+            usersBindingSource.AddNew();
+            roleLabel1.Text = "заказчик";
+        }
+    }
+}

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

@@ -0,0 +1,227 @@
+<?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="phoneLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>False</value>
+  </metadata>
+  <metadata name="otchLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>False</value>
+  </metadata>
+  <metadata name="nameLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>False</value>
+  </metadata>
+  <metadata name="famLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>False</value>
+  </metadata>
+  <metadata name="passLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>False</value>
+  </metadata>
+  <metadata name="loginLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>False</value>
+  </metadata>
+  <metadata name="vdb_FabrikDataSet.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>200, 17</value>
+  </metadata>
+  <metadata name="usersTableAdapter.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+    <value>389, 17</value>
+  </metadata>
+  <metadata name="tableAdapterManager.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+    <value>571, 17</value>
+  </metadata>
+  <assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
+  <data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+    <value>
+        AAABAAEAICAAAAEAIACoEAAAFgAAACgAAAAgAAAAQAAAAAEAIAAAAAAAABAAAMMOAADDDgAAAAAAAAAA
+        AAD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
+        /wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
+        /wD///8A////AAAAAAB6ZasA////////////////////////////////////////////////////////
+        /////////////f////r////4////+P////b////2////9v////j////6/////f//////////////////
+        ///////////////////t+P4xAAAAAH1ts//p////uMj//6q2/f+cqfH/kZvm/4eN3P99hNL/dXrK/3By
+        wv9qbL3/Zma5/2Rjtf9iYbH/YF2t/15dq/9eW6f/XFml/1xXof9aVZ3/WlOa/1hRlv9WTZL/VEmM/1JF
+        hv9QP4D/Tjx4/z8nZ/9MM2j/6vP+//////8hAAD//B8A//9RAP//MAD//gYA/+wAAP//CAD/6wAA/8kA
+        AP/qAAD/4gAA/9wAAP/YAAD/1gAA/9QAAP/SAAD/0gAA/9AAAP/QAAD/zgAA/8wAAP/MAAD/ygAA/8gA
+        AP/EAAD/wgAA/8AAAP+9AAD/3gAA/zsAAP9UNmb//////y4AAP/9QgD//2QA//8uAP//bgD//3IA/84A
+        AP//KQD//2AA/80AAP/QAAD/zwAA/8sAAP/JAAD/xwAA/8UAAP/FAAD/wwAA/8MAAP/BAAD/wQAA/78A
+        AP+9AAD/uQAA/7cAAP+0AAD/sAAA/64AAP/KAAD/NgAA/1IzWP//////MgAD//LCW////3P/9MNY////
+        U////0n/wo45//7ANP//+jD/w4gi/8aLH//Fhhn/wYIV/79+Ef+9fA3/vXoJ/7t6Bv+7eAL/uXYA/7d0
+        AP+3cAD/tWwA/7NoAP+wZAD/rF8A/6hXAP+kTwD/oEcA/6hdAP8uAAD/XTpW//////9rDxv///+I////
+        qP///4X///97////cf///2r///9g////WP///1P///9N////R////0P///8/////PP///zj///80////
+        MP///yr///8m////IP///xr///8V////Df///wX///8A////AP///wD///8A//+IAP9nRXP/////QgAA
+        AErQjzT///+U////ff///23///9p////U////wX///9B////Sv///z7///84////Nf///zH///8r////
+        J////yP///80////AP///AD///8A///8AP//9wD///EA///mAP//9gD//70A//+kAP///wD/AAAA/0g6
+        agD///8AAAAAAAAAAAA9AADiPQAA8igAAOMTAADOJwAAqI1qbf8AAAC7AAAAsAAAAKkAAAChAAAAmwAA
+        AJUAAACNAAAAhwAAAH8AAACeEQAd/z0AgP8tAHL/LABq/ygAZP8kAFz/IwBa/wAAGf89AAD/TxoA/wAA
+        AKgAAAAASjxqAP///wAAAAAAAAAAAEMAAABAAAAALAAAABkAAAAAAAAA////AAAAAAAAAAAAAwAAAAAA
+        AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAP//h1f//18n//9bI///Vx3//1MV//9cH///AAD//4J5
+        pf////9OAAAAAAAAAABMPmoA////AAAAAAAAAAAARwAAAEQAAAAyAAAAfo+lAEIbPfT////c////AP//
+        /wAJAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACcA1P+QX///bTX//2kv//9lKf//YCH//2Ym
+        //8HAP//b1Fg/////4f///8AAAAAAE5AaAD///8AAAAAAAAAAABLAAAAVwAAAE0AAACBlKMAVjJH////
+        ////////////AP///wD///8AAwAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAKgDG/55u//+JVv//gkz//35E
+        //97Q///eDz//wgA//92W2P/////h////wD///8A////AP///wB6AAAAcAAAAGcAAABbAAAAUQAAAFNr
+        hf9RJBb/UjhZ//////////9t////AP///wD///8ABQAAAAAAAAAAAAAAAAAAAAAAAAA6AOz/gk7//y4A
+        zv82AOb/MgDe/yQAvP9BAP//EwD//3hdY/////99////AP///wD///8A////AAkJFQAAAAwAAAACAAAA
+        AAAXAAD//+4A////AP+jLQD/p6dt//////////8A////AP///wD///8AAAAAAAAAAAAAAAAAAAAAAEcE
+        /f91Pv//AwA3/xEAYf8LAF7/AAAt/yMAtv8YAP//g2ln/////4L///8A////AP///wD///8ACwsRAAEB
+        CgAAAAAAAAAAXVwSjP+8grT/rHOk/4xDhf8OADz//////////9f///8A////AP///wD///8AAAAAAAAA
+        AAAAAAAAQADf/45V//9AAOX/RQD3/z8A9P8wANT/SwL//x0A//9XPVv///////////////8A////AP3/
+        /wBdB00AVQBEAEsAOgBBADD/38H//66G//+edP//sYv//0cA//+UgIz/////d////wD///8A////AP//
+        /wD///8AAAAAAAAAAABQEfP/hE7//x4Aev8pAJf/IwCU/xIAaf82AOD/NwD//xYAAP+BSgD/////////
+        /wD///8A////AFAVVABIC0sAPgFBADYAN//Pqf//0Kj//8ie///Dmv//TgL//8TCvP/////d////AP//
+        /wD///8A////AP///wD///8AAAAAABcAhP+jbv//Zyf//14Z//9ZD///Uwb//2gi//8IAP//4XMA/8ZF
+        AP+Jiqj/////AP///wD///8ATw9JAEcHQAA/ADYANQAs/+fE//+KWf//UACq/4lX//+BO///inZi////
+        /////////////f////v////0////7v///+f//5f4GACx/4tQ//84AKj/OgCu/zcArP8kAIH/SAD//xIA
+        ///NZQD/7H4A/5ORpP////8A////AP///wBlJoEAXh54AFYUbgBOCmT/iFz//9yZAP///wD/rmcN/4dU
+        //9zNv//Z0Vr/2xl3/9iVtv/YEC3/1sznP9XKYb/Zzxs/1Qehv+NTf//NAC0////GP///8T///+e////
+        f/9gJDD/AAD//85mAP/ldgD/lpWo/////wD///8A////AGowkwBiKYsAWx+CAFMXeP9pN////8wA////
+        Af/VigD/XC3//8Ca//+LQ///tDna/7VC4P+0ZP//tnv//7eM//+HTf//gj3//6pv//8lAHD///+L////
+        /////////////4FRRf8AAP//zmQA/+V0AP+Ukaj/////Cv///wD///8AWBtUAFITSwBKC0MAQgE5/+XC
+        //+IU///i0QP/39F///HoP//nX7//9iN////sAD//8oA////FP///9T///////////9pH///nWb//18c
+        //9fKS7/ek5t/3JAYv9fJSv/PQCm/wQA///JYgD/94gA/6Gkt/////8A////AP///wBRDkoASwZDAEUA
+        OwA9ADH/vYj//7SA//99RP//p27//5Vc//+MUf//iEz//4JI//9+Qv//fT7//3k4//91Mf//cSv//20p
+        //9nIP//cCr//zsA//8hAP//HQD//xIA//9DAP//AAD//8dSAP+OAAD/QC9W1////wD///8A////AFoZ
+        KABVEyAATwsYAEcDEf/Pr///waH9/7iW+P+yjur/qYXh/6eD2v+getr/k3Tr/49t5/+LYdn/h1rK/4NS
+        vf+BVbf/hViv/31Nqf96RqT/cjyi/2ozmP9iJ4//WRyF/1gXe/8RADf/IgAA/zQAAP8/K1YA////AP//
+        /wD///8AsXh9AKtydgClam4An2Vm////////////////////////////////////////////////////
+        //////////////////////////////////////////////////////////////////+TiZL/////Gv//
+        /wD///8A////AP///wAkCQAAHgMAABkAAAATAAD/////////////////////////////////////////
+        //////////////////////////////////////////////////////////////3u/P//////kGF7/wsA
+        AHT///8A////AP///wD///8A////ACgLAAAiBwAAHAEAABkAAAAzAABoIgAAx/bijv///9j/iGxF/2Q2
+        HWsAAABVEAAATgwAAEYIAABABAAAPAAAADgAAAA2AAAANAAAADQAAABRahYA//TgAP9cBwD/oKCb/wAA
+        AIUAAAAVCwAAAP///wD///8A////AP///wD///8ALA8EACYLAAAiBQAAHAEAADkAAAAnAAAAPy0N5aVz
+        S/9BBQAAaT0pAAAAAAAYAAAAFAAAABAAAAAMAAAABgAAAAAAAAAAAAAAAAAAAAAAAADmjQD///8s/9F7
+        AP//////AAAAAAAAAAALAAAA////AP///wD///8A////AP///wAwEwwALA8GACYLAAAiBQAAPQAAAC0A
+        AABHMhYAq3tWAEkNBwBxRzUABgAAACAAAAAcAAAAGAAAABQAAAAOAAAABgAAAAAAAAAAAAAAAAAAAN6K
+        AP///zT/x3IA/+X///////8A////AP///wD///8A////AP///wD///8A////ADQXEgAwEw4ALA8IACYL
+        BABDAAAAMwAAAE06IgCzg2AAURUSAHlPQQAOAAAAJwAAACQAAAAgAAAAGgAAABQAAAAOAAAAAAAAAAAA
+        AAAAAAAA04EA////Kv+6ZwD//////////wD///8A////AP///wD///8A////AP///wD///8AOBsYADQX
+        FAAwExAALBEMAEkAAAA5AAAAU0IsALmLbABXHR4Af1lMABYAAAAvAAAAKwAAACcAAAAiAAAAHAAAAAAA
+        AAAAAAAAAAAAAAAAAAACAAD/FwAA/y0AAP////8A////AP///wD///8A////AP///wD///8A////AP//
+        /wA6HR4AOBsaADQZGAAwFRQATQAAAD0AAABYSDUAv5N1AFwlKACHYVgAHAAAADcAAAAzAAAALQAAACkA
+        AAAiAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD/AAAAAAAAAAD///8A////AP///wD///8A////AP//
+        /wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
+        /wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP//
+        /wD///8A////AP///wD///8A/////8AAAACAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAPAAAAH///AD/z/
+        wA/8f8AP+D/AD/A/wA/gH8AH4B/AB+AfwAfgAAAH4AAAB+AAAAPgAAAH4AAAB+AAAA/gAAAP4AAAH/AA
+        AD/8//D////w////8P////H////7//////8=
+</value>
+  </data>
+</root>

+ 26 - 5
СУБД Швейная фабрика/СУБД Швейная фабрика/Vdb_FabrikDataSet.xsc

@@ -9,20 +9,41 @@
     <TableUISetting Name="Furnitura">
       <ColumnUISettings>
         <ColumnUISetting Name="photo">
-          <ControlSettings>
-            <ControlSetting ArtifactName="Microsoft:System.Windows.Forms:Form">
+          <ControlSettings><ControlSetting ArtifactName="Microsoft:System.Windows.Forms:Form" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
               <BindableControlInfo Name="PictureBox" Type="System.Windows.Forms.PictureBox" AssemblyName="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
-            </ControlSetting>
-          </ControlSettings>
+            </ControlSetting></ControlSettings>
         </ColumnUISetting>
       </ColumnUISettings>
     </TableUISetting>
     <TableUISetting Name="tkani">
       <ColumnUISettings>
         <ColumnUISetting Name="photo">
+          <ControlSettings><ControlSetting ArtifactName="Microsoft:System.Windows.Forms:Form" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
+              <BindableControlInfo Name="PictureBox" Type="System.Windows.Forms.PictureBox" AssemblyName="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
+            </ControlSetting></ControlSettings>
+        </ColumnUISetting>
+      </ColumnUISettings>
+    </TableUISetting>
+    <TableUISetting Name="users">
+      <ColumnUISettings>
+        <ColumnUISetting Name="login">
           <ControlSettings>
             <ControlSetting ArtifactName="Microsoft:System.Windows.Forms:Form">
-              <BindableControlInfo Name="PictureBox" Type="System.Windows.Forms.PictureBox" AssemblyName="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
+              <BindableControlInfo Name="TextBox" Type="System.Windows.Forms.TextBox" AssemblyName="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
+            </ControlSetting>
+          </ControlSettings>
+        </ColumnUISetting>
+        <ColumnUISetting Name="role">
+          <ControlSettings>
+            <ControlSetting ArtifactName="Microsoft:System.Windows.Forms:Form">
+              <BindableControlInfo Name="Label" Type="System.Windows.Forms.Label" AssemblyName="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
+            </ControlSetting>
+          </ControlSettings>
+        </ColumnUISetting>
+        <ColumnUISetting Name="t_number">
+          <ControlSettings>
+            <ControlSetting ArtifactName="Microsoft:System.Windows.Forms:Form">
+              <BindableControlInfo Name="MaskedTextBox" Type="System.Windows.Forms.MaskedTextBox" AssemblyName="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" Frameworks=".NETFramework,Version=v2.0;.NETFramework,Version=v3.0;.NETFramework,Version=v3.5;.NETFramework,Version=v4.0;.NETFramework,Version=v4.8" />
             </ControlSetting>
           </ControlSettings>
         </ColumnUISetting>

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


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


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

@@ -1 +1 @@
-4d919c88020c8e80bb6a4eb3a616cc83592843753a3eec200cec7c9b80cc85f1
+51f5e63ec092c26654b198e574c38bba061285a9b0900e0cfb8d5abac5ece796

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

@@ -9,3 +9,4 @@ D:\Папка\Практика\praktika\СУБД Швейная фабрика\
 D:\Папка\Практика\praktika\СУБД Швейная фабрика\СУБД Швейная фабрика\obj\Debug\СУБД Швейная фабрика.csproj.CoreCompileInputs.cache
 D:\Папка\Практика\praktika\СУБД Швейная фабрика\СУБД Швейная фабрика\obj\Debug\СУБД Швейная фабрика.exe
 D:\Папка\Практика\praktika\СУБД Швейная фабрика\СУБД Швейная фабрика\obj\Debug\СУБД Швейная фабрика.pdb
+D:\Папка\Практика\praktika\СУБД Швейная фабрика\СУБД Швейная фабрика\obj\Debug\СУБД_Швейная_фабрика.FormReg.resources

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


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


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


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


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

@@ -53,12 +53,36 @@
     <Compile Include="Form1.Designer.cs">
       <DependentUpon>Form1.cs</DependentUpon>
     </Compile>
+    <Compile Include="FormCostom.cs">
+      <SubType>Form</SubType>
+    </Compile>
+    <Compile Include="FormCostom.Designer.cs">
+      <DependentUpon>FormCostom.cs</DependentUpon>
+    </Compile>
     <Compile Include="FormDB.cs">
       <SubType>Form</SubType>
     </Compile>
     <Compile Include="FormDB.Designer.cs">
       <DependentUpon>FormDB.cs</DependentUpon>
     </Compile>
+    <Compile Include="FormKlad.cs">
+      <SubType>Form</SubType>
+    </Compile>
+    <Compile Include="FormKlad.Designer.cs">
+      <DependentUpon>FormKlad.cs</DependentUpon>
+    </Compile>
+    <Compile Include="FormMng.cs">
+      <SubType>Form</SubType>
+    </Compile>
+    <Compile Include="FormMng.Designer.cs">
+      <DependentUpon>FormMng.cs</DependentUpon>
+    </Compile>
+    <Compile Include="FormReg.cs">
+      <SubType>Form</SubType>
+    </Compile>
+    <Compile Include="FormReg.Designer.cs">
+      <DependentUpon>FormReg.cs</DependentUpon>
+    </Compile>
     <Compile Include="Program.cs" />
     <Compile Include="Properties\AssemblyInfo.cs" />
     <Compile Include="Vdb_FabrikDataSet.Designer.cs">
@@ -72,6 +96,9 @@
     <EmbeddedResource Include="FormDB.resx">
       <DependentUpon>FormDB.cs</DependentUpon>
     </EmbeddedResource>
+    <EmbeddedResource Include="FormReg.resx">
+      <DependentUpon>FormReg.cs</DependentUpon>
+    </EmbeddedResource>
     <EmbeddedResource Include="Properties\Resources.resx">
       <Generator>ResXFileCodeGenerator</Generator>
       <LastGenOutput>Resources.Designer.cs</LastGenOutput>