Фельдбейн Артур Станиславович 3 gadi atpakaļ
vecāks
revīzija
134d160b38
51 mainītis faili ar 56745 papildinājumiem un 38 dzēšanām
  1. BIN
      DB.vsdx
  2. BIN
      Kafe/.vs/Kafe/v16/.suo
  3. BIN
      Kafe/.vs/Kafe/v17/.suo
  4. 21 0
      Kafe/Kafe/Kafe.csproj
  5. 46 2
      Kafe/Kafe/MainWindow.xaml.cs
  6. 12 0
      Kafe/Kafe/Windows/AdminWindow.xaml
  7. 27 0
      Kafe/Kafe/Windows/AdminWindow.xaml.cs
  8. 12 0
      Kafe/Kafe/Windows/CookerWindow.xaml
  9. 27 0
      Kafe/Kafe/Windows/CookerWindow.xaml.cs
  10. 12 0
      Kafe/Kafe/Windows/WaiterWindow.xaml
  11. 27 0
      Kafe/Kafe/Windows/WaiterWindow.xaml.cs
  12. BIN
      Kafe/Kafe/bin/Debug/EntityFramework.SqlServer.dll
  13. 2093 0
      Kafe/Kafe/bin/Debug/EntityFramework.SqlServer.xml
  14. BIN
      Kafe/Kafe/bin/Debug/EntityFramework.dll
  15. 53236 0
      Kafe/Kafe/bin/Debug/EntityFramework.xml
  16. BIN
      Kafe/Kafe/bin/Debug/Kafe.exe
  17. 20 0
      Kafe/Kafe/bin/Debug/Kafe.exe.config
  18. BIN
      Kafe/Kafe/bin/Debug/Kafe.pdb
  19. BIN
      Kafe/Kafe/bin/Debug/ru/EntityFramework.resources.dll
  20. BIN
      Kafe/Kafe/obj/Debug/Kafe.Properties.Resources.resources
  21. BIN
      Kafe/Kafe/obj/Debug/Kafe.csproj.AssemblyReference.cache
  22. 0 0
      Kafe/Kafe/obj/Debug/Kafe.csproj.CopyComplete
  23. 1 0
      Kafe/Kafe/obj/Debug/Kafe.csproj.CoreCompileInputs.cache
  24. 23 0
      Kafe/Kafe/obj/Debug/Kafe.csproj.FileListAbsolute.txt
  25. BIN
      Kafe/Kafe/obj/Debug/Kafe.csproj.GenerateResource.cache
  26. BIN
      Kafe/Kafe/obj/Debug/Kafe.exe
  27. BIN
      Kafe/Kafe/obj/Debug/Kafe.g.resources
  28. BIN
      Kafe/Kafe/obj/Debug/Kafe.pdb
  29. 14 0
      Kafe/Kafe/obj/Debug/Kafe_Content.g.cs
  30. 5 5
      Kafe/Kafe/obj/Debug/Kafe_MarkupCompile.cache
  31. 4 4
      Kafe/Kafe/obj/Debug/Kafe_MarkupCompile.i.cache
  32. 4 0
      Kafe/Kafe/obj/Debug/Kafe_MarkupCompile.i.lref
  33. 3 0
      Kafe/Kafe/obj/Debug/Kafe_MarkupCompile.lref
  34. BIN
      Kafe/Kafe/obj/Debug/MainWindow.baml
  35. 43 1
      Kafe/Kafe/obj/Debug/MainWindow.g.cs
  36. 58 26
      Kafe/Kafe/obj/Debug/MainWindow.g.i.cs
  37. 75 0
      Kafe/Kafe/obj/Debug/Window/AdminWindow.g.i.cs
  38. BIN
      Kafe/Kafe/obj/Debug/Windows/AdminWindow.baml
  39. 75 0
      Kafe/Kafe/obj/Debug/Windows/AdminWindow.g.cs
  40. 75 0
      Kafe/Kafe/obj/Debug/Windows/AdminWindow.g.i.cs
  41. BIN
      Kafe/Kafe/obj/Debug/Windows/CookerWindow.baml
  42. 75 0
      Kafe/Kafe/obj/Debug/Windows/CookerWindow.g.cs
  43. 75 0
      Kafe/Kafe/obj/Debug/Windows/CookerWindow.g.i.cs
  44. BIN
      Kafe/Kafe/obj/Debug/Windows/WaiterWindow.baml
  45. 75 0
      Kafe/Kafe/obj/Debug/Windows/WaiterWindow.g.cs
  46. 75 0
      Kafe/Kafe/obj/Debug/Windows/WaiterWindow.g.i.cs
  47. 210 0
      Kafe/Kafe/obj/Debug/edmxResourcesToEmbed/Model.csdl
  48. 89 0
      Kafe/Kafe/obj/Debug/edmxResourcesToEmbed/Model.msl
  49. 233 0
      Kafe/Kafe/obj/Debug/edmxResourcesToEmbed/Model.ssdl
  50. BIN
      Thumbs.db
  51. BIN
      db.sql

BIN
DB.vsdx


BIN
Kafe/.vs/Kafe/v16/.suo


BIN
Kafe/.vs/Kafe/v17/.suo


+ 21 - 0
Kafe/Kafe/Kafe.csproj

@@ -94,6 +94,15 @@
     <Compile Include="Status.cs">
     <Compile Include="Status.cs">
       <DependentUpon>Model.tt</DependentUpon>
       <DependentUpon>Model.tt</DependentUpon>
     </Compile>
     </Compile>
+    <Compile Include="Windows\AdminWindow.xaml.cs">
+      <DependentUpon>AdminWindow.xaml</DependentUpon>
+    </Compile>
+    <Compile Include="Windows\CookerWindow.xaml.cs">
+      <DependentUpon>CookerWindow.xaml</DependentUpon>
+    </Compile>
+    <Compile Include="Windows\WaiterWindow.xaml.cs">
+      <DependentUpon>WaiterWindow.xaml</DependentUpon>
+    </Compile>
     <Page Include="MainWindow.xaml">
     <Page Include="MainWindow.xaml">
       <Generator>MSBuild:Compile</Generator>
       <Generator>MSBuild:Compile</Generator>
       <SubType>Designer</SubType>
       <SubType>Designer</SubType>
@@ -106,6 +115,18 @@
       <DependentUpon>MainWindow.xaml</DependentUpon>
       <DependentUpon>MainWindow.xaml</DependentUpon>
       <SubType>Code</SubType>
       <SubType>Code</SubType>
     </Compile>
     </Compile>
+    <Page Include="Windows\AdminWindow.xaml">
+      <SubType>Designer</SubType>
+      <Generator>MSBuild:Compile</Generator>
+    </Page>
+    <Page Include="Windows\CookerWindow.xaml">
+      <SubType>Designer</SubType>
+      <Generator>MSBuild:Compile</Generator>
+    </Page>
+    <Page Include="Windows\WaiterWindow.xaml">
+      <SubType>Designer</SubType>
+      <Generator>MSBuild:Compile</Generator>
+    </Page>
   </ItemGroup>
   </ItemGroup>
   <ItemGroup>
   <ItemGroup>
     <Compile Include="Model.Context.cs">
     <Compile Include="Model.Context.cs">

+ 46 - 2
Kafe/Kafe/MainWindow.xaml.cs

@@ -1,4 +1,5 @@
-using System;
+using Kafe.Windows;
+using System;
 using System.Collections.Generic;
 using System.Collections.Generic;
 using System.Linq;
 using System.Linq;
 using System.Text;
 using System.Text;
@@ -25,10 +26,53 @@ namespace Kafe
             InitializeComponent();
             InitializeComponent();
         }
         }
 
 
+
+
         private void ConfirmBtn_Click(object sender, RoutedEventArgs e)
         private void ConfirmBtn_Click(object sender, RoutedEventArgs e)
         {
         {
             var login = LoginTB.Text.Trim();
             var login = LoginTB.Text.Trim();
             var password = PasswordTB.Password.Trim();
             var password = PasswordTB.Password.Trim();
+            var abc = authorization(login,password);
+
+            MessageBox.Show($"{abc.Item1}, {abc.Item2}");
         }
         }
+
+
+        private (int, int) authorization(string login, string password)
+        {
+            var user = Helper.GetContext().Employee;
+            var role = 0;
+            var id = 0;
+
+            if (user.Select(i => i.Login).Contains(login)
+                && user.Select(i => i.Password).Contains(password))
+            {
+                role = user.Where(i => i.Login == login && i.Password == password).Select(i => i.PositionID).FirstOrDefault();
+                id = user.Where(i => i.Login == login && i.Password == password).Select(i => i.ID).FirstOrDefault();
+            
+                if (role == 1)
+                {
+                    (new AdminWindow()).Show();
+                    this.Close();
+                }
+                else if (role == 2)
+                {
+                    (new WaiterWindow()).Show();
+                    this.Close();
+                }
+                else if (role == 3)
+                {
+                    (new CookerWindow()).Show();
+                    this.Close();
+                }
+            }
+        
+            else
+            {
+                MessageBox.Show("Пользователя с таким логином или паролем не существует");
+            }
+           return (id, role);
+            }
+        }
+
     }
     }
-}

+ 12 - 0
Kafe/Kafe/Windows/AdminWindow.xaml

@@ -0,0 +1,12 @@
+<Window x:Class="Kafe.Windows.AdminWindow"
+        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
+        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
+        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
+        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
+        xmlns:local="clr-namespace:Kafe.Windows"
+        mc:Ignorable="d"
+        Title="Администратор" Height="450" Width="800">
+    <Grid>
+        
+    </Grid>
+</Window>

+ 27 - 0
Kafe/Kafe/Windows/AdminWindow.xaml.cs

@@ -0,0 +1,27 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows;
+using System.Windows.Controls;
+using System.Windows.Data;
+using System.Windows.Documents;
+using System.Windows.Input;
+using System.Windows.Media;
+using System.Windows.Media.Imaging;
+using System.Windows.Shapes;
+
+namespace Kafe.Windows
+{
+    /// <summary>
+    /// Логика взаимодействия для AdminWindow.xaml
+    /// </summary>
+    public partial class AdminWindow : Window
+    {
+        public AdminWindow()
+        {
+            InitializeComponent();
+        }
+    }
+}

+ 12 - 0
Kafe/Kafe/Windows/CookerWindow.xaml

@@ -0,0 +1,12 @@
+<Window x:Class="Kafe.Windows.CookerWindow"
+        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
+        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
+        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
+        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
+        xmlns:local="clr-namespace:Kafe.Windows"
+        mc:Ignorable="d"
+        Title="Повар" Height="450" Width="800">
+    <Grid>
+        
+    </Grid>
+</Window>

+ 27 - 0
Kafe/Kafe/Windows/CookerWindow.xaml.cs

@@ -0,0 +1,27 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows;
+using System.Windows.Controls;
+using System.Windows.Data;
+using System.Windows.Documents;
+using System.Windows.Input;
+using System.Windows.Media;
+using System.Windows.Media.Imaging;
+using System.Windows.Shapes;
+
+namespace Kafe.Windows
+{
+    /// <summary>
+    /// Логика взаимодействия для CookerWindow.xaml
+    /// </summary>
+    public partial class CookerWindow : Window
+    {
+        public CookerWindow()
+        {
+            InitializeComponent();
+        }
+    }
+}

+ 12 - 0
Kafe/Kafe/Windows/WaiterWindow.xaml

@@ -0,0 +1,12 @@
+<Window x:Class="Kafe.Windows.WaiterWindow"
+        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
+        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
+        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
+        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
+        xmlns:local="clr-namespace:Kafe.Windows"
+        mc:Ignorable="d"
+        Title="Официант" Height="450" Width="800">
+    <Grid>
+        
+    </Grid>
+</Window>

+ 27 - 0
Kafe/Kafe/Windows/WaiterWindow.xaml.cs

@@ -0,0 +1,27 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows;
+using System.Windows.Controls;
+using System.Windows.Data;
+using System.Windows.Documents;
+using System.Windows.Input;
+using System.Windows.Media;
+using System.Windows.Media.Imaging;
+using System.Windows.Shapes;
+
+namespace Kafe.Windows
+{
+    /// <summary>
+    /// Логика взаимодействия для WaiterWindow.xaml
+    /// </summary>
+    public partial class WaiterWindow : Window
+    {
+        public WaiterWindow()
+        {
+            InitializeComponent();
+        }
+    }
+}

BIN
Kafe/Kafe/bin/Debug/EntityFramework.SqlServer.dll


Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 2093 - 0
Kafe/Kafe/bin/Debug/EntityFramework.SqlServer.xml


BIN
Kafe/Kafe/bin/Debug/EntityFramework.dll


Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 53236 - 0
Kafe/Kafe/bin/Debug/EntityFramework.xml


BIN
Kafe/Kafe/bin/Debug/Kafe.exe


+ 20 - 0
Kafe/Kafe/bin/Debug/Kafe.exe.config

@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="utf-8"?>
+<configuration>
+  <configSections>
+    <!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
+    <section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
+  </configSections>
+  <startup>
+    <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
+  </startup>
+  <entityFramework>
+    <defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework">
+      <parameters>
+        <parameter value="mssqllocaldb" />
+      </parameters>
+    </defaultConnectionFactory>
+    <providers>
+      <provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" />
+    </providers>
+  </entityFramework>
+<connectionStrings><add name="KafeDBEntities" connectionString="metadata=res://*/Model.csdl|res://*/Model.ssdl|res://*/Model.msl;provider=System.Data.SqlClient;provider connection string=&quot;data source=(localdb)\MSSQLLocalDB;initial catalog=KafeDB;integrated security=True;multipleactiveresultsets=True;application name=EntityFramework&quot;" providerName="System.Data.EntityClient" /></connectionStrings></configuration>

BIN
Kafe/Kafe/bin/Debug/Kafe.pdb


BIN
Kafe/Kafe/bin/Debug/ru/EntityFramework.resources.dll


BIN
Kafe/Kafe/obj/Debug/Kafe.Properties.Resources.resources


BIN
Kafe/Kafe/obj/Debug/Kafe.csproj.AssemblyReference.cache


+ 0 - 0
Kafe/Kafe/obj/Debug/Kafe.csproj.CopyComplete


+ 1 - 0
Kafe/Kafe/obj/Debug/Kafe.csproj.CoreCompileInputs.cache

@@ -0,0 +1 @@
+ee9294f87a2d5fd14e3a1f9e6f7a93e913e36044

+ 23 - 0
Kafe/Kafe/obj/Debug/Kafe.csproj.FileListAbsolute.txt

@@ -4,3 +4,26 @@ Z:\git\Kafe\Kafe\obj\Debug\MainWindow.g.cs
 Z:\git\Kafe\Kafe\obj\Debug\App.g.cs
 Z:\git\Kafe\Kafe\obj\Debug\App.g.cs
 Z:\git\Kafe\Kafe\obj\Debug\Kafe_MarkupCompile.cache
 Z:\git\Kafe\Kafe\obj\Debug\Kafe_MarkupCompile.cache
 Z:\git\Kafe\Kafe\obj\Debug\Kafe_MarkupCompile.lref
 Z:\git\Kafe\Kafe\obj\Debug\Kafe_MarkupCompile.lref
+Z:\git\Kafe\Kafe\obj\Debug\Windows\AdminWindow.g.cs
+Z:\git\Kafe\Kafe\obj\Debug\Kafe_Content.g.cs
+Z:\git\Kafe\Kafe\bin\Debug\Kafe.exe.config
+Z:\git\Kafe\Kafe\bin\Debug\Kafe.exe
+Z:\git\Kafe\Kafe\bin\Debug\Kafe.pdb
+Z:\git\Kafe\Kafe\bin\Debug\EntityFramework.dll
+Z:\git\Kafe\Kafe\bin\Debug\EntityFramework.SqlServer.dll
+Z:\git\Kafe\Kafe\bin\Debug\EntityFramework.xml
+Z:\git\Kafe\Kafe\bin\Debug\EntityFramework.SqlServer.xml
+Z:\git\Kafe\Kafe\bin\Debug\ru\EntityFramework.resources.dll
+Z:\git\Kafe\Kafe\obj\Debug\Windows\CookerWindow.g.cs
+Z:\git\Kafe\Kafe\obj\Debug\Windows\WaiterWindow.g.cs
+Z:\git\Kafe\Kafe\obj\Debug\MainWindow.baml
+Z:\git\Kafe\Kafe\obj\Debug\Windows\AdminWindow.baml
+Z:\git\Kafe\Kafe\obj\Debug\Windows\CookerWindow.baml
+Z:\git\Kafe\Kafe\obj\Debug\Windows\WaiterWindow.baml
+Z:\git\Kafe\Kafe\obj\Debug\Kafe.g.resources
+Z:\git\Kafe\Kafe\obj\Debug\Kafe.Properties.Resources.resources
+Z:\git\Kafe\Kafe\obj\Debug\Kafe.csproj.GenerateResource.cache
+Z:\git\Kafe\Kafe\obj\Debug\Kafe.csproj.CoreCompileInputs.cache
+Z:\git\Kafe\Kafe\obj\Debug\Kafe.csproj.CopyComplete
+Z:\git\Kafe\Kafe\obj\Debug\Kafe.exe
+Z:\git\Kafe\Kafe\obj\Debug\Kafe.pdb

BIN
Kafe/Kafe/obj/Debug/Kafe.csproj.GenerateResource.cache


BIN
Kafe/Kafe/obj/Debug/Kafe.exe


BIN
Kafe/Kafe/obj/Debug/Kafe.g.resources


BIN
Kafe/Kafe/obj/Debug/Kafe.pdb


+ 14 - 0
Kafe/Kafe/obj/Debug/Kafe_Content.g.cs

@@ -0,0 +1,14 @@
+//------------------------------------------------------------------------------
+// <auto-generated>
+//     Этот код создан программой.
+//     Исполняемая версия:4.0.30319.42000
+//
+//     Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
+//     повторной генерации кода.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+[assembly: System.Windows.Resources.AssemblyAssociatedContentFileAttribute("model.context.tt")]
+[assembly: System.Windows.Resources.AssemblyAssociatedContentFileAttribute("model.tt")]
+
+

+ 5 - 5
Kafe/Kafe/obj/Debug/Kafe_MarkupCompile.cache

@@ -10,11 +10,11 @@ none
 false
 false
 DEBUG;TRACE
 DEBUG;TRACE
 Z:\git\Kafe\Kafe\App.xaml
 Z:\git\Kafe\Kafe\App.xaml
-1219584333
-
-6-299724877
+4-1526805116
+22035508349
+20-1881302862
 18-1273807529
 18-1273807529
-MainWindow.xaml;
+MainWindow.xaml;Windows\AdminWindow.xaml;Windows\CookerWindow.xaml;Windows\WaiterWindow.xaml;
 
 
-True
+False
 
 

+ 4 - 4
Kafe/Kafe/obj/Debug/Kafe_MarkupCompile.i.cache

@@ -10,11 +10,11 @@ none
 false
 false
 DEBUG;TRACE
 DEBUG;TRACE
 Z:\git\Kafe\Kafe\App.xaml
 Z:\git\Kafe\Kafe\App.xaml
-1219584333
+4-1526805116
 22035508349
 22035508349
-181315675107
+21331575816
 18-1273807529
 18-1273807529
-MainWindow.xaml;
+MainWindow.xaml;Windows\AdminWindow.xaml;Windows\CookerWindow.xaml;Windows\WaiterWindow.xaml;
 
 
-False
+True
 
 

+ 4 - 0
Kafe/Kafe/obj/Debug/Kafe_MarkupCompile.i.lref

@@ -0,0 +1,4 @@
+
+
+FZ:\git\Kafe\Kafe\Windows\WaiterWindow.xaml;;
+

+ 3 - 0
Kafe/Kafe/obj/Debug/Kafe_MarkupCompile.lref

@@ -1,4 +1,7 @@
 
 
 
 
 FZ:\git\Kafe\Kafe\MainWindow.xaml;;
 FZ:\git\Kafe\Kafe\MainWindow.xaml;;
+FZ:\git\Kafe\Kafe\Windows\AdminWindow.xaml;;
+FZ:\git\Kafe\Kafe\Windows\CookerWindow.xaml;;
+FZ:\git\Kafe\Kafe\Windows\WaiterWindow.xaml;;
 
 

BIN
Kafe/Kafe/obj/Debug/MainWindow.baml


+ 43 - 1
Kafe/Kafe/obj/Debug/MainWindow.g.cs

@@ -1,4 +1,4 @@
-#pragma checksum "..\..\MainWindow.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "F923F240A337654550D5BAF69EF696F6493DA990C58B4CBAB3FB2B7A3BCD7C87"
+#pragma checksum "..\..\MainWindow.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "F46ABE11C2E451BD85287369D20F5EA11BC066F61627161189B123FE37A18A00"
 //------------------------------------------------------------------------------
 //------------------------------------------------------------------------------
 // <auto-generated>
 // <auto-generated>
 //     Этот код создан программой.
 //     Этот код создан программой.
@@ -40,6 +40,30 @@ namespace Kafe {
     /// </summary>
     /// </summary>
     public partial class MainWindow : System.Windows.Window, System.Windows.Markup.IComponentConnector {
     public partial class MainWindow : System.Windows.Window, System.Windows.Markup.IComponentConnector {
         
         
+        
+        #line 12 "..\..\MainWindow.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.TextBox LoginTB;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 14 "..\..\MainWindow.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.PasswordBox PasswordTB;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 15 "..\..\MainWindow.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.Button ConfirmBtn;
+        
+        #line default
+        #line hidden
+        
         private bool _contentLoaded;
         private bool _contentLoaded;
         
         
         /// <summary>
         /// <summary>
@@ -68,6 +92,24 @@ namespace Kafe {
         [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")]
         [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")]
         [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")]
         [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")]
         void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
         void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
+            switch (connectionId)
+            {
+            case 1:
+            this.LoginTB = ((System.Windows.Controls.TextBox)(target));
+            return;
+            case 2:
+            this.PasswordTB = ((System.Windows.Controls.PasswordBox)(target));
+            return;
+            case 3:
+            this.ConfirmBtn = ((System.Windows.Controls.Button)(target));
+            
+            #line 15 "..\..\MainWindow.xaml"
+            this.ConfirmBtn.Click += new System.Windows.RoutedEventHandler(this.ConfirmBtn_Click);
+            
+            #line default
+            #line hidden
+            return;
+            }
             this._contentLoaded = true;
             this._contentLoaded = true;
         }
         }
     }
     }

+ 58 - 26
Kafe/Kafe/obj/Debug/MainWindow.g.i.cs

@@ -1,5 +1,4 @@
-// Updated by XamlIntelliSenseFileGenerator 26.03.2022 17:26:51
-#pragma checksum "..\..\MainWindow.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "F923F240A337654550D5BAF69EF696F6493DA990C58B4CBAB3FB2B7A3BCD7C87"
+#pragma checksum "..\..\MainWindow.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "F46ABE11C2E451BD85287369D20F5EA11BC066F61627161189B123FE37A18A00"
 //------------------------------------------------------------------------------
 //------------------------------------------------------------------------------
 // <auto-generated>
 // <auto-generated>
 //     Этот код создан программой.
 //     Этот код создан программой.
@@ -33,53 +32,86 @@ using System.Windows.Shapes;
 using System.Windows.Shell;
 using System.Windows.Shell;
 
 
 
 
-namespace Kafe
-{
-
-
+namespace Kafe {
+    
+    
     /// <summary>
     /// <summary>
     /// MainWindow
     /// MainWindow
     /// </summary>
     /// </summary>
-    public partial class MainWindow : System.Windows.Window, System.Windows.Markup.IComponentConnector
-    {
-
+    public partial class MainWindow : System.Windows.Window, System.Windows.Markup.IComponentConnector {
+        
+        
+        #line 12 "..\..\MainWindow.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.TextBox LoginTB;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 14 "..\..\MainWindow.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.PasswordBox PasswordTB;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 15 "..\..\MainWindow.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.Button ConfirmBtn;
+        
+        #line default
+        #line hidden
+        
         private bool _contentLoaded;
         private bool _contentLoaded;
-
+        
         /// <summary>
         /// <summary>
         /// InitializeComponent
         /// InitializeComponent
         /// </summary>
         /// </summary>
         [System.Diagnostics.DebuggerNonUserCodeAttribute()]
         [System.Diagnostics.DebuggerNonUserCodeAttribute()]
         [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
         [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
-        public void InitializeComponent()
-        {
-            if (_contentLoaded)
-            {
+        public void InitializeComponent() {
+            if (_contentLoaded) {
                 return;
                 return;
             }
             }
             _contentLoaded = true;
             _contentLoaded = true;
             System.Uri resourceLocater = new System.Uri("/Kafe;component/mainwindow.xaml", System.UriKind.Relative);
             System.Uri resourceLocater = new System.Uri("/Kafe;component/mainwindow.xaml", System.UriKind.Relative);
-
-#line 1 "..\..\MainWindow.xaml"
+            
+            #line 1 "..\..\MainWindow.xaml"
             System.Windows.Application.LoadComponent(this, resourceLocater);
             System.Windows.Application.LoadComponent(this, resourceLocater);
-
-#line default
-#line hidden
+            
+            #line default
+            #line hidden
         }
         }
-
+        
         [System.Diagnostics.DebuggerNonUserCodeAttribute()]
         [System.Diagnostics.DebuggerNonUserCodeAttribute()]
         [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
         [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
         [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
         [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
         [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
         [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
         [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")]
         [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")]
         [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")]
         [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")]
-        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
-        {
+        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
+            switch (connectionId)
+            {
+            case 1:
+            this.LoginTB = ((System.Windows.Controls.TextBox)(target));
+            return;
+            case 2:
+            this.PasswordTB = ((System.Windows.Controls.PasswordBox)(target));
+            return;
+            case 3:
+            this.ConfirmBtn = ((System.Windows.Controls.Button)(target));
+            
+            #line 15 "..\..\MainWindow.xaml"
+            this.ConfirmBtn.Click += new System.Windows.RoutedEventHandler(this.ConfirmBtn_Click);
+            
+            #line default
+            #line hidden
+            return;
+            }
             this._contentLoaded = true;
             this._contentLoaded = true;
         }
         }
-
-        internal System.Windows.Controls.TextBox LoginTB;
-        internal System.Windows.Controls.PasswordBox PasswordTB;
-        internal System.Windows.Controls.Button ConfirmBtn;
     }
     }
 }
 }
 
 

+ 75 - 0
Kafe/Kafe/obj/Debug/Window/AdminWindow.g.i.cs

@@ -0,0 +1,75 @@
+#pragma checksum "..\..\..\Window\AdminWindow.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "A2533EC7D410F21B15342C226D631B646F06628342C1D76A36D14C125C1A9686"
+//------------------------------------------------------------------------------
+// <auto-generated>
+//     Этот код создан программой.
+//     Исполняемая версия:4.0.30319.42000
+//
+//     Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
+//     повторной генерации кода.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+using Kafe.Window;
+using System;
+using System.Diagnostics;
+using System.Windows;
+using System.Windows.Automation;
+using System.Windows.Controls;
+using System.Windows.Controls.Primitives;
+using System.Windows.Data;
+using System.Windows.Documents;
+using System.Windows.Ink;
+using System.Windows.Input;
+using System.Windows.Markup;
+using System.Windows.Media;
+using System.Windows.Media.Animation;
+using System.Windows.Media.Effects;
+using System.Windows.Media.Imaging;
+using System.Windows.Media.Media3D;
+using System.Windows.Media.TextFormatting;
+using System.Windows.Navigation;
+using System.Windows.Shapes;
+using System.Windows.Shell;
+
+
+namespace Kafe.Window {
+    
+    
+    /// <summary>
+    /// AdminWindow
+    /// </summary>
+    public partial class AdminWindow : System.Windows.Window, System.Windows.Markup.IComponentConnector {
+        
+        private bool _contentLoaded;
+        
+        /// <summary>
+        /// InitializeComponent
+        /// </summary>
+        [System.Diagnostics.DebuggerNonUserCodeAttribute()]
+        [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
+        public void InitializeComponent() {
+            if (_contentLoaded) {
+                return;
+            }
+            _contentLoaded = true;
+            System.Uri resourceLocater = new System.Uri("/Kafe;component/window/adminwindow.xaml", System.UriKind.Relative);
+            
+            #line 1 "..\..\..\Window\AdminWindow.xaml"
+            System.Windows.Application.LoadComponent(this, resourceLocater);
+            
+            #line default
+            #line hidden
+        }
+        
+        [System.Diagnostics.DebuggerNonUserCodeAttribute()]
+        [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
+        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")]
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")]
+        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
+            this._contentLoaded = true;
+        }
+    }
+}
+

BIN
Kafe/Kafe/obj/Debug/Windows/AdminWindow.baml


+ 75 - 0
Kafe/Kafe/obj/Debug/Windows/AdminWindow.g.cs

@@ -0,0 +1,75 @@
+#pragma checksum "..\..\..\Windows\AdminWindow.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "F2600058642277F9BF1ED588D835076A46FECD0777ED8A96D407B762E8D21C55"
+//------------------------------------------------------------------------------
+// <auto-generated>
+//     Этот код создан программой.
+//     Исполняемая версия:4.0.30319.42000
+//
+//     Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
+//     повторной генерации кода.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+using Kafe.Windows;
+using System;
+using System.Diagnostics;
+using System.Windows;
+using System.Windows.Automation;
+using System.Windows.Controls;
+using System.Windows.Controls.Primitives;
+using System.Windows.Data;
+using System.Windows.Documents;
+using System.Windows.Ink;
+using System.Windows.Input;
+using System.Windows.Markup;
+using System.Windows.Media;
+using System.Windows.Media.Animation;
+using System.Windows.Media.Effects;
+using System.Windows.Media.Imaging;
+using System.Windows.Media.Media3D;
+using System.Windows.Media.TextFormatting;
+using System.Windows.Navigation;
+using System.Windows.Shapes;
+using System.Windows.Shell;
+
+
+namespace Kafe.Windows {
+    
+    
+    /// <summary>
+    /// AdminWindow
+    /// </summary>
+    public partial class AdminWindow : System.Windows.Window, System.Windows.Markup.IComponentConnector {
+        
+        private bool _contentLoaded;
+        
+        /// <summary>
+        /// InitializeComponent
+        /// </summary>
+        [System.Diagnostics.DebuggerNonUserCodeAttribute()]
+        [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
+        public void InitializeComponent() {
+            if (_contentLoaded) {
+                return;
+            }
+            _contentLoaded = true;
+            System.Uri resourceLocater = new System.Uri("/Kafe;component/windows/adminwindow.xaml", System.UriKind.Relative);
+            
+            #line 1 "..\..\..\Windows\AdminWindow.xaml"
+            System.Windows.Application.LoadComponent(this, resourceLocater);
+            
+            #line default
+            #line hidden
+        }
+        
+        [System.Diagnostics.DebuggerNonUserCodeAttribute()]
+        [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
+        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")]
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")]
+        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
+            this._contentLoaded = true;
+        }
+    }
+}
+

+ 75 - 0
Kafe/Kafe/obj/Debug/Windows/AdminWindow.g.i.cs

@@ -0,0 +1,75 @@
+#pragma checksum "..\..\..\Windows\AdminWindow.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "F2600058642277F9BF1ED588D835076A46FECD0777ED8A96D407B762E8D21C55"
+//------------------------------------------------------------------------------
+// <auto-generated>
+//     Этот код создан программой.
+//     Исполняемая версия:4.0.30319.42000
+//
+//     Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
+//     повторной генерации кода.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+using Kafe.Windows;
+using System;
+using System.Diagnostics;
+using System.Windows;
+using System.Windows.Automation;
+using System.Windows.Controls;
+using System.Windows.Controls.Primitives;
+using System.Windows.Data;
+using System.Windows.Documents;
+using System.Windows.Ink;
+using System.Windows.Input;
+using System.Windows.Markup;
+using System.Windows.Media;
+using System.Windows.Media.Animation;
+using System.Windows.Media.Effects;
+using System.Windows.Media.Imaging;
+using System.Windows.Media.Media3D;
+using System.Windows.Media.TextFormatting;
+using System.Windows.Navigation;
+using System.Windows.Shapes;
+using System.Windows.Shell;
+
+
+namespace Kafe.Windows {
+    
+    
+    /// <summary>
+    /// AdminWindow
+    /// </summary>
+    public partial class AdminWindow : System.Windows.Window, System.Windows.Markup.IComponentConnector {
+        
+        private bool _contentLoaded;
+        
+        /// <summary>
+        /// InitializeComponent
+        /// </summary>
+        [System.Diagnostics.DebuggerNonUserCodeAttribute()]
+        [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
+        public void InitializeComponent() {
+            if (_contentLoaded) {
+                return;
+            }
+            _contentLoaded = true;
+            System.Uri resourceLocater = new System.Uri("/Kafe;component/windows/adminwindow.xaml", System.UriKind.Relative);
+            
+            #line 1 "..\..\..\Windows\AdminWindow.xaml"
+            System.Windows.Application.LoadComponent(this, resourceLocater);
+            
+            #line default
+            #line hidden
+        }
+        
+        [System.Diagnostics.DebuggerNonUserCodeAttribute()]
+        [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
+        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")]
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")]
+        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
+            this._contentLoaded = true;
+        }
+    }
+}
+

BIN
Kafe/Kafe/obj/Debug/Windows/CookerWindow.baml


+ 75 - 0
Kafe/Kafe/obj/Debug/Windows/CookerWindow.g.cs

@@ -0,0 +1,75 @@
+#pragma checksum "..\..\..\Windows\CookerWindow.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "3BF220A2C06B75135DE1642FCA388B6F2B0596691B4DF447088A01ED0357B487"
+//------------------------------------------------------------------------------
+// <auto-generated>
+//     Этот код создан программой.
+//     Исполняемая версия:4.0.30319.42000
+//
+//     Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
+//     повторной генерации кода.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+using Kafe.Windows;
+using System;
+using System.Diagnostics;
+using System.Windows;
+using System.Windows.Automation;
+using System.Windows.Controls;
+using System.Windows.Controls.Primitives;
+using System.Windows.Data;
+using System.Windows.Documents;
+using System.Windows.Ink;
+using System.Windows.Input;
+using System.Windows.Markup;
+using System.Windows.Media;
+using System.Windows.Media.Animation;
+using System.Windows.Media.Effects;
+using System.Windows.Media.Imaging;
+using System.Windows.Media.Media3D;
+using System.Windows.Media.TextFormatting;
+using System.Windows.Navigation;
+using System.Windows.Shapes;
+using System.Windows.Shell;
+
+
+namespace Kafe.Windows {
+    
+    
+    /// <summary>
+    /// CookerWindow
+    /// </summary>
+    public partial class CookerWindow : System.Windows.Window, System.Windows.Markup.IComponentConnector {
+        
+        private bool _contentLoaded;
+        
+        /// <summary>
+        /// InitializeComponent
+        /// </summary>
+        [System.Diagnostics.DebuggerNonUserCodeAttribute()]
+        [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
+        public void InitializeComponent() {
+            if (_contentLoaded) {
+                return;
+            }
+            _contentLoaded = true;
+            System.Uri resourceLocater = new System.Uri("/Kafe;component/windows/cookerwindow.xaml", System.UriKind.Relative);
+            
+            #line 1 "..\..\..\Windows\CookerWindow.xaml"
+            System.Windows.Application.LoadComponent(this, resourceLocater);
+            
+            #line default
+            #line hidden
+        }
+        
+        [System.Diagnostics.DebuggerNonUserCodeAttribute()]
+        [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
+        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")]
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")]
+        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
+            this._contentLoaded = true;
+        }
+    }
+}
+

+ 75 - 0
Kafe/Kafe/obj/Debug/Windows/CookerWindow.g.i.cs

@@ -0,0 +1,75 @@
+#pragma checksum "..\..\..\Windows\CookerWindow.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "3BF220A2C06B75135DE1642FCA388B6F2B0596691B4DF447088A01ED0357B487"
+//------------------------------------------------------------------------------
+// <auto-generated>
+//     Этот код создан программой.
+//     Исполняемая версия:4.0.30319.42000
+//
+//     Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
+//     повторной генерации кода.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+using Kafe.Windows;
+using System;
+using System.Diagnostics;
+using System.Windows;
+using System.Windows.Automation;
+using System.Windows.Controls;
+using System.Windows.Controls.Primitives;
+using System.Windows.Data;
+using System.Windows.Documents;
+using System.Windows.Ink;
+using System.Windows.Input;
+using System.Windows.Markup;
+using System.Windows.Media;
+using System.Windows.Media.Animation;
+using System.Windows.Media.Effects;
+using System.Windows.Media.Imaging;
+using System.Windows.Media.Media3D;
+using System.Windows.Media.TextFormatting;
+using System.Windows.Navigation;
+using System.Windows.Shapes;
+using System.Windows.Shell;
+
+
+namespace Kafe.Windows {
+    
+    
+    /// <summary>
+    /// CookerWindow
+    /// </summary>
+    public partial class CookerWindow : System.Windows.Window, System.Windows.Markup.IComponentConnector {
+        
+        private bool _contentLoaded;
+        
+        /// <summary>
+        /// InitializeComponent
+        /// </summary>
+        [System.Diagnostics.DebuggerNonUserCodeAttribute()]
+        [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
+        public void InitializeComponent() {
+            if (_contentLoaded) {
+                return;
+            }
+            _contentLoaded = true;
+            System.Uri resourceLocater = new System.Uri("/Kafe;component/windows/cookerwindow.xaml", System.UriKind.Relative);
+            
+            #line 1 "..\..\..\Windows\CookerWindow.xaml"
+            System.Windows.Application.LoadComponent(this, resourceLocater);
+            
+            #line default
+            #line hidden
+        }
+        
+        [System.Diagnostics.DebuggerNonUserCodeAttribute()]
+        [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
+        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")]
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")]
+        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
+            this._contentLoaded = true;
+        }
+    }
+}
+

BIN
Kafe/Kafe/obj/Debug/Windows/WaiterWindow.baml


+ 75 - 0
Kafe/Kafe/obj/Debug/Windows/WaiterWindow.g.cs

@@ -0,0 +1,75 @@
+#pragma checksum "..\..\..\Windows\WaiterWindow.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "FDFB61B0158200E334DBFB9F663D8170DFE70D22B8E622FAA27CFCD27F4B8C28"
+//------------------------------------------------------------------------------
+// <auto-generated>
+//     Этот код создан программой.
+//     Исполняемая версия:4.0.30319.42000
+//
+//     Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
+//     повторной генерации кода.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+using Kafe.Windows;
+using System;
+using System.Diagnostics;
+using System.Windows;
+using System.Windows.Automation;
+using System.Windows.Controls;
+using System.Windows.Controls.Primitives;
+using System.Windows.Data;
+using System.Windows.Documents;
+using System.Windows.Ink;
+using System.Windows.Input;
+using System.Windows.Markup;
+using System.Windows.Media;
+using System.Windows.Media.Animation;
+using System.Windows.Media.Effects;
+using System.Windows.Media.Imaging;
+using System.Windows.Media.Media3D;
+using System.Windows.Media.TextFormatting;
+using System.Windows.Navigation;
+using System.Windows.Shapes;
+using System.Windows.Shell;
+
+
+namespace Kafe.Windows {
+    
+    
+    /// <summary>
+    /// WaiterWindow
+    /// </summary>
+    public partial class WaiterWindow : System.Windows.Window, System.Windows.Markup.IComponentConnector {
+        
+        private bool _contentLoaded;
+        
+        /// <summary>
+        /// InitializeComponent
+        /// </summary>
+        [System.Diagnostics.DebuggerNonUserCodeAttribute()]
+        [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
+        public void InitializeComponent() {
+            if (_contentLoaded) {
+                return;
+            }
+            _contentLoaded = true;
+            System.Uri resourceLocater = new System.Uri("/Kafe;component/windows/waiterwindow.xaml", System.UriKind.Relative);
+            
+            #line 1 "..\..\..\Windows\WaiterWindow.xaml"
+            System.Windows.Application.LoadComponent(this, resourceLocater);
+            
+            #line default
+            #line hidden
+        }
+        
+        [System.Diagnostics.DebuggerNonUserCodeAttribute()]
+        [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
+        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")]
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")]
+        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
+            this._contentLoaded = true;
+        }
+    }
+}
+

+ 75 - 0
Kafe/Kafe/obj/Debug/Windows/WaiterWindow.g.i.cs

@@ -0,0 +1,75 @@
+#pragma checksum "..\..\..\Windows\WaiterWindow.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "FDFB61B0158200E334DBFB9F663D8170DFE70D22B8E622FAA27CFCD27F4B8C28"
+//------------------------------------------------------------------------------
+// <auto-generated>
+//     Этот код создан программой.
+//     Исполняемая версия:4.0.30319.42000
+//
+//     Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
+//     повторной генерации кода.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+using Kafe.Windows;
+using System;
+using System.Diagnostics;
+using System.Windows;
+using System.Windows.Automation;
+using System.Windows.Controls;
+using System.Windows.Controls.Primitives;
+using System.Windows.Data;
+using System.Windows.Documents;
+using System.Windows.Ink;
+using System.Windows.Input;
+using System.Windows.Markup;
+using System.Windows.Media;
+using System.Windows.Media.Animation;
+using System.Windows.Media.Effects;
+using System.Windows.Media.Imaging;
+using System.Windows.Media.Media3D;
+using System.Windows.Media.TextFormatting;
+using System.Windows.Navigation;
+using System.Windows.Shapes;
+using System.Windows.Shell;
+
+
+namespace Kafe.Windows {
+    
+    
+    /// <summary>
+    /// WaiterWindow
+    /// </summary>
+    public partial class WaiterWindow : System.Windows.Window, System.Windows.Markup.IComponentConnector {
+        
+        private bool _contentLoaded;
+        
+        /// <summary>
+        /// InitializeComponent
+        /// </summary>
+        [System.Diagnostics.DebuggerNonUserCodeAttribute()]
+        [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
+        public void InitializeComponent() {
+            if (_contentLoaded) {
+                return;
+            }
+            _contentLoaded = true;
+            System.Uri resourceLocater = new System.Uri("/Kafe;component/windows/waiterwindow.xaml", System.UriKind.Relative);
+            
+            #line 1 "..\..\..\Windows\WaiterWindow.xaml"
+            System.Windows.Application.LoadComponent(this, resourceLocater);
+            
+            #line default
+            #line hidden
+        }
+        
+        [System.Diagnostics.DebuggerNonUserCodeAttribute()]
+        [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
+        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")]
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")]
+        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
+            this._contentLoaded = true;
+        }
+    }
+}
+

+ 210 - 0
Kafe/Kafe/obj/Debug/edmxResourcesToEmbed/Model.csdl

@@ -0,0 +1,210 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Schema Namespace="KafeDBModel" Alias="Self" annotation:UseStrongSpatialTypes="false" xmlns:annotation="http://schemas.microsoft.com/ado/2009/02/edm/annotation" xmlns:customannotation="http://schemas.microsoft.com/ado/2013/11/edm/customannotation" xmlns="http://schemas.microsoft.com/ado/2009/11/edm">
+  <EntityType Name="CookStatus">
+    <Key>
+      <PropertyRef Name="ID" />
+    </Key>
+    <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+    <Property Name="Title" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
+    <NavigationProperty Name="Order" Relationship="Self.FK_Order_CookStatus" FromRole="CookStatus" ToRole="Order" />
+  </EntityType>
+  <EntityType Name="Dishes">
+    <Key>
+      <PropertyRef Name="ID" />
+    </Key>
+    <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+    <Property Name="Title" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
+    <Property Name="Cost" Type="Double" Nullable="false" />
+    <Property Name="CookTime" Type="Int32" Nullable="false" />
+    <NavigationProperty Name="Order" Relationship="Self.OrderDishes" FromRole="Dishes" ToRole="Order" />
+  </EntityType>
+  <EntityType Name="Employee">
+    <Key>
+      <PropertyRef Name="ID" />
+    </Key>
+    <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+    <Property Name="LastName" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
+    <Property Name="FirstName" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
+    <Property Name="MiddleName" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
+    <Property Name="PositionID" Type="Int32" Nullable="false" />
+    <Property Name="Login" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
+    <Property Name="Password" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
+    <Property Name="StatusID" Type="Int32" Nullable="false" />
+    <NavigationProperty Name="Position" Relationship="Self.FK_Employee_Position" FromRole="Employee" ToRole="Position" />
+    <NavigationProperty Name="Status" Relationship="Self.FK_Employee_Status" FromRole="Employee" ToRole="Status" />
+    <NavigationProperty Name="Order" Relationship="Self.FK_Order_Employee" FromRole="Employee" ToRole="Order" />
+    <NavigationProperty Name="Shift" Relationship="Self.FK_Shift_Employee" FromRole="Employee" ToRole="Shift" />
+  </EntityType>
+  <EntityType Name="Order">
+    <Key>
+      <PropertyRef Name="ID" />
+    </Key>
+    <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+    <Property Name="TableNumber" Type="Int32" Nullable="false" />
+    <Property Name="ClientCount" Type="Int32" Nullable="false" />
+    <Property Name="EmployeeID" Type="Int32" Nullable="false" />
+    <Property Name="PayStatusID" Type="Int32" Nullable="false" />
+    <Property Name="CookStatusID" Type="Int32" Nullable="false" />
+    <NavigationProperty Name="CookStatus" Relationship="Self.FK_Order_CookStatus" FromRole="Order" ToRole="CookStatus" />
+    <NavigationProperty Name="Employee" Relationship="Self.FK_Order_Employee" FromRole="Order" ToRole="Employee" />
+    <NavigationProperty Name="PayStatus" Relationship="Self.FK_Order_PayStatus" FromRole="Order" ToRole="PayStatus" />
+    <NavigationProperty Name="Dishes" Relationship="Self.OrderDishes" FromRole="Order" ToRole="Dishes" />
+  </EntityType>
+  <EntityType Name="PayStatus">
+    <Key>
+      <PropertyRef Name="ID" />
+    </Key>
+    <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+    <Property Name="Title" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
+    <NavigationProperty Name="Order" Relationship="Self.FK_Order_PayStatus" FromRole="PayStatus" ToRole="Order" />
+  </EntityType>
+  <EntityType Name="Position">
+    <Key>
+      <PropertyRef Name="ID" />
+    </Key>
+    <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+    <Property Name="Title" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
+    <NavigationProperty Name="Employee" Relationship="Self.FK_Employee_Position" FromRole="Position" ToRole="Employee" />
+  </EntityType>
+  <EntityType Name="Shift">
+    <Key>
+      <PropertyRef Name="EmployeeID" />
+      <PropertyRef Name="DateShift" />
+    </Key>
+    <Property Name="EmployeeID" Type="Int32" Nullable="false" />
+    <Property Name="DateShift" Type="DateTime" Nullable="false" Precision="0" />
+    <NavigationProperty Name="Employee" Relationship="Self.FK_Shift_Employee" FromRole="Shift" ToRole="Employee" />
+  </EntityType>
+  <EntityType Name="Status">
+    <Key>
+      <PropertyRef Name="ID" />
+    </Key>
+    <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+    <Property Name="Title" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
+    <NavigationProperty Name="Employee" Relationship="Self.FK_Employee_Status" FromRole="Status" ToRole="Employee" />
+  </EntityType>
+  <Association Name="FK_Order_CookStatus">
+    <End Role="CookStatus" Type="Self.CookStatus" Multiplicity="1">
+      <OnDelete Action="Cascade" />
+    </End>
+    <End Role="Order" Type="Self.Order" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CookStatus">
+        <PropertyRef Name="ID" />
+      </Principal>
+      <Dependent Role="Order">
+        <PropertyRef Name="CookStatusID" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_Employee_Position">
+    <End Role="Position" Type="Self.Position" Multiplicity="1">
+      <OnDelete Action="Cascade" />
+    </End>
+    <End Role="Employee" Type="Self.Employee" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="Position">
+        <PropertyRef Name="ID" />
+      </Principal>
+      <Dependent Role="Employee">
+        <PropertyRef Name="PositionID" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_Employee_Status">
+    <End Role="Status" Type="Self.Status" Multiplicity="1">
+      <OnDelete Action="Cascade" />
+    </End>
+    <End Role="Employee" Type="Self.Employee" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="Status">
+        <PropertyRef Name="ID" />
+      </Principal>
+      <Dependent Role="Employee">
+        <PropertyRef Name="StatusID" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_Order_Employee">
+    <End Role="Employee" Type="Self.Employee" Multiplicity="1" />
+    <End Role="Order" Type="Self.Order" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="Employee">
+        <PropertyRef Name="ID" />
+      </Principal>
+      <Dependent Role="Order">
+        <PropertyRef Name="EmployeeID" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_Shift_Employee">
+    <End Role="Employee" Type="Self.Employee" Multiplicity="1">
+      <OnDelete Action="Cascade" />
+    </End>
+    <End Role="Shift" Type="Self.Shift" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="Employee">
+        <PropertyRef Name="ID" />
+      </Principal>
+      <Dependent Role="Shift">
+        <PropertyRef Name="EmployeeID" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_Order_PayStatus">
+    <End Role="PayStatus" Type="Self.PayStatus" Multiplicity="1">
+      <OnDelete Action="Cascade" />
+    </End>
+    <End Role="Order" Type="Self.Order" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="PayStatus">
+        <PropertyRef Name="ID" />
+      </Principal>
+      <Dependent Role="Order">
+        <PropertyRef Name="PayStatusID" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="OrderDishes">
+    <End Role="Dishes" Type="Self.Dishes" Multiplicity="*" />
+    <End Role="Order" Type="Self.Order" Multiplicity="*" />
+  </Association>
+  <EntityContainer Name="KafeDBEntities" annotation:LazyLoadingEnabled="true">
+    <EntitySet Name="CookStatus" EntityType="Self.CookStatus" />
+    <EntitySet Name="Dishes" EntityType="Self.Dishes" />
+    <EntitySet Name="Employee" EntityType="Self.Employee" />
+    <EntitySet Name="Order" EntityType="Self.Order" />
+    <EntitySet Name="PayStatus" EntityType="Self.PayStatus" />
+    <EntitySet Name="Position" EntityType="Self.Position" />
+    <EntitySet Name="Shift" EntityType="Self.Shift" />
+    <EntitySet Name="Status" EntityType="Self.Status" />
+    <AssociationSet Name="FK_Order_CookStatus" Association="Self.FK_Order_CookStatus">
+      <End Role="CookStatus" EntitySet="CookStatus" />
+      <End Role="Order" EntitySet="Order" />
+    </AssociationSet>
+    <AssociationSet Name="FK_Employee_Position" Association="Self.FK_Employee_Position">
+      <End Role="Position" EntitySet="Position" />
+      <End Role="Employee" EntitySet="Employee" />
+    </AssociationSet>
+    <AssociationSet Name="FK_Employee_Status" Association="Self.FK_Employee_Status">
+      <End Role="Status" EntitySet="Status" />
+      <End Role="Employee" EntitySet="Employee" />
+    </AssociationSet>
+    <AssociationSet Name="FK_Order_Employee" Association="Self.FK_Order_Employee">
+      <End Role="Employee" EntitySet="Employee" />
+      <End Role="Order" EntitySet="Order" />
+    </AssociationSet>
+    <AssociationSet Name="FK_Shift_Employee" Association="Self.FK_Shift_Employee">
+      <End Role="Employee" EntitySet="Employee" />
+      <End Role="Shift" EntitySet="Shift" />
+    </AssociationSet>
+    <AssociationSet Name="FK_Order_PayStatus" Association="Self.FK_Order_PayStatus">
+      <End Role="PayStatus" EntitySet="PayStatus" />
+      <End Role="Order" EntitySet="Order" />
+    </AssociationSet>
+    <AssociationSet Name="OrderDishes" Association="Self.OrderDishes">
+      <End Role="Dishes" EntitySet="Dishes" />
+      <End Role="Order" EntitySet="Order" />
+    </AssociationSet>
+  </EntityContainer>
+</Schema>

+ 89 - 0
Kafe/Kafe/obj/Debug/edmxResourcesToEmbed/Model.msl

@@ -0,0 +1,89 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Mapping Space="C-S" xmlns="http://schemas.microsoft.com/ado/2009/11/mapping/cs">
+  <EntityContainerMapping StorageEntityContainer="Хранилище KafeDBModelContainer" CdmEntityContainer="KafeDBEntities">
+    <EntitySetMapping Name="CookStatus">
+      <EntityTypeMapping TypeName="KafeDBModel.CookStatus">
+        <MappingFragment StoreEntitySet="CookStatus">
+          <ScalarProperty Name="ID" ColumnName="ID" />
+          <ScalarProperty Name="Title" ColumnName="Title" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="Dishes">
+      <EntityTypeMapping TypeName="KafeDBModel.Dishes">
+        <MappingFragment StoreEntitySet="Dishes">
+          <ScalarProperty Name="ID" ColumnName="ID" />
+          <ScalarProperty Name="Title" ColumnName="Title" />
+          <ScalarProperty Name="Cost" ColumnName="Cost" />
+          <ScalarProperty Name="CookTime" ColumnName="CookTime" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="Employee">
+      <EntityTypeMapping TypeName="KafeDBModel.Employee">
+        <MappingFragment StoreEntitySet="Employee">
+          <ScalarProperty Name="ID" ColumnName="ID" />
+          <ScalarProperty Name="LastName" ColumnName="LastName" />
+          <ScalarProperty Name="FirstName" ColumnName="FirstName" />
+          <ScalarProperty Name="MiddleName" ColumnName="MiddleName" />
+          <ScalarProperty Name="PositionID" ColumnName="PositionID" />
+          <ScalarProperty Name="Login" ColumnName="Login" />
+          <ScalarProperty Name="Password" ColumnName="Password" />
+          <ScalarProperty Name="StatusID" ColumnName="StatusID" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="Order">
+      <EntityTypeMapping TypeName="KafeDBModel.Order">
+        <MappingFragment StoreEntitySet="Order">
+          <ScalarProperty Name="ID" ColumnName="ID" />
+          <ScalarProperty Name="TableNumber" ColumnName="TableNumber" />
+          <ScalarProperty Name="ClientCount" ColumnName="ClientCount" />
+          <ScalarProperty Name="EmployeeID" ColumnName="EmployeeID" />
+          <ScalarProperty Name="PayStatusID" ColumnName="PayStatusID" />
+          <ScalarProperty Name="CookStatusID" ColumnName="CookStatusID" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="PayStatus">
+      <EntityTypeMapping TypeName="KafeDBModel.PayStatus">
+        <MappingFragment StoreEntitySet="PayStatus">
+          <ScalarProperty Name="ID" ColumnName="ID" />
+          <ScalarProperty Name="Title" ColumnName="Title" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="Position">
+      <EntityTypeMapping TypeName="KafeDBModel.Position">
+        <MappingFragment StoreEntitySet="Position">
+          <ScalarProperty Name="ID" ColumnName="ID" />
+          <ScalarProperty Name="Title" ColumnName="Title" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="Shift">
+      <EntityTypeMapping TypeName="KafeDBModel.Shift">
+        <MappingFragment StoreEntitySet="Shift">
+          <ScalarProperty Name="EmployeeID" ColumnName="EmployeeID" />
+          <ScalarProperty Name="DateShift" ColumnName="DateShift" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="Status">
+      <EntityTypeMapping TypeName="KafeDBModel.Status">
+        <MappingFragment StoreEntitySet="Status">
+          <ScalarProperty Name="ID" ColumnName="ID" />
+          <ScalarProperty Name="Title" ColumnName="Title" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <AssociationSetMapping Name="OrderDishes" TypeName="KafeDBModel.OrderDishes" StoreEntitySet="OrderDishes">
+      <EndProperty Name="Dishes">
+        <ScalarProperty Name="ID" ColumnName="DishID" />
+      </EndProperty>
+      <EndProperty Name="Order">
+        <ScalarProperty Name="ID" ColumnName="OrderID" />
+      </EndProperty>
+    </AssociationSetMapping>
+  </EntityContainerMapping>
+</Mapping>

+ 233 - 0
Kafe/Kafe/obj/Debug/edmxResourcesToEmbed/Model.ssdl

@@ -0,0 +1,233 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Schema Namespace="Хранилище KafeDBModel" Provider="System.Data.SqlClient" ProviderManifestToken="2012" Alias="Self" xmlns:store="http://schemas.microsoft.com/ado/2007/12/edm/EntityStoreSchemaGenerator" xmlns:customannotation="http://schemas.microsoft.com/ado/2013/11/edm/customannotation" xmlns="http://schemas.microsoft.com/ado/2009/11/edm/ssdl">
+  <EntityType Name="CookStatus">
+    <Key>
+      <PropertyRef Name="ID" />
+    </Key>
+    <Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+    <Property Name="Title" Type="nvarchar" MaxLength="50" Nullable="false" />
+  </EntityType>
+  <EntityType Name="Dishes">
+    <Key>
+      <PropertyRef Name="ID" />
+    </Key>
+    <Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+    <Property Name="Title" Type="nvarchar" MaxLength="50" Nullable="false" />
+    <Property Name="Cost" Type="float" Nullable="false" />
+    <Property Name="CookTime" Type="int" Nullable="false" />
+  </EntityType>
+  <EntityType Name="Employee">
+    <Key>
+      <PropertyRef Name="ID" />
+    </Key>
+    <Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+    <Property Name="LastName" Type="nvarchar" MaxLength="50" Nullable="false" />
+    <Property Name="FirstName" Type="nvarchar" MaxLength="50" Nullable="false" />
+    <Property Name="MiddleName" Type="nvarchar" MaxLength="50" />
+    <Property Name="PositionID" Type="int" Nullable="false" />
+    <Property Name="Login" Type="nvarchar" MaxLength="50" Nullable="false" />
+    <Property Name="Password" Type="nvarchar" MaxLength="50" Nullable="false" />
+    <Property Name="StatusID" Type="int" Nullable="false" />
+  </EntityType>
+  <EntityType Name="Order">
+    <Key>
+      <PropertyRef Name="ID" />
+    </Key>
+    <Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+    <Property Name="TableNumber" Type="int" Nullable="false" />
+    <Property Name="ClientCount" Type="int" Nullable="false" />
+    <Property Name="EmployeeID" Type="int" Nullable="false" />
+    <Property Name="PayStatusID" Type="int" Nullable="false" />
+    <Property Name="CookStatusID" Type="int" Nullable="false" />
+  </EntityType>
+  <EntityType Name="OrderDishes">
+    <Key>
+      <PropertyRef Name="OrderID" />
+      <PropertyRef Name="DishID" />
+    </Key>
+    <Property Name="OrderID" Type="int" Nullable="false" />
+    <Property Name="DishID" Type="int" Nullable="false" />
+  </EntityType>
+  <EntityType Name="PayStatus">
+    <Key>
+      <PropertyRef Name="ID" />
+    </Key>
+    <Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+    <Property Name="Title" Type="nvarchar" MaxLength="50" Nullable="false" />
+  </EntityType>
+  <EntityType Name="Position">
+    <Key>
+      <PropertyRef Name="ID" />
+    </Key>
+    <Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+    <Property Name="Title" Type="nvarchar" MaxLength="50" Nullable="false" />
+  </EntityType>
+  <EntityType Name="Shift">
+    <Key>
+      <PropertyRef Name="EmployeeID" />
+      <PropertyRef Name="DateShift" />
+    </Key>
+    <Property Name="EmployeeID" Type="int" Nullable="false" />
+    <Property Name="DateShift" Type="date" Nullable="false" />
+  </EntityType>
+  <EntityType Name="Status">
+    <Key>
+      <PropertyRef Name="ID" />
+    </Key>
+    <Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+    <Property Name="Title" Type="nvarchar" MaxLength="50" Nullable="false" />
+  </EntityType>
+  <Association Name="FK_Employee_Position">
+    <End Role="Position" Type="Self.Position" Multiplicity="1">
+      <OnDelete Action="Cascade" />
+    </End>
+    <End Role="Employee" Type="Self.Employee" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="Position">
+        <PropertyRef Name="ID" />
+      </Principal>
+      <Dependent Role="Employee">
+        <PropertyRef Name="PositionID" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_Employee_Status">
+    <End Role="Status" Type="Self.Status" Multiplicity="1">
+      <OnDelete Action="Cascade" />
+    </End>
+    <End Role="Employee" Type="Self.Employee" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="Status">
+        <PropertyRef Name="ID" />
+      </Principal>
+      <Dependent Role="Employee">
+        <PropertyRef Name="StatusID" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_Order_CookStatus">
+    <End Role="CookStatus" Type="Self.CookStatus" Multiplicity="1">
+      <OnDelete Action="Cascade" />
+    </End>
+    <End Role="Order" Type="Self.Order" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="CookStatus">
+        <PropertyRef Name="ID" />
+      </Principal>
+      <Dependent Role="Order">
+        <PropertyRef Name="CookStatusID" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_Order_Employee">
+    <End Role="Employee" Type="Self.Employee" Multiplicity="1" />
+    <End Role="Order" Type="Self.Order" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="Employee">
+        <PropertyRef Name="ID" />
+      </Principal>
+      <Dependent Role="Order">
+        <PropertyRef Name="EmployeeID" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_Order_PayStatus">
+    <End Role="PayStatus" Type="Self.PayStatus" Multiplicity="1">
+      <OnDelete Action="Cascade" />
+    </End>
+    <End Role="Order" Type="Self.Order" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="PayStatus">
+        <PropertyRef Name="ID" />
+      </Principal>
+      <Dependent Role="Order">
+        <PropertyRef Name="PayStatusID" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_OrderDishes_Dishes">
+    <End Role="Dishes" Type="Self.Dishes" Multiplicity="1">
+      <OnDelete Action="Cascade" />
+    </End>
+    <End Role="OrderDishes" Type="Self.OrderDishes" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="Dishes">
+        <PropertyRef Name="ID" />
+      </Principal>
+      <Dependent Role="OrderDishes">
+        <PropertyRef Name="DishID" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_OrderDishes_Order">
+    <End Role="Order" Type="Self.Order" Multiplicity="1">
+      <OnDelete Action="Cascade" />
+    </End>
+    <End Role="OrderDishes" Type="Self.OrderDishes" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="Order">
+        <PropertyRef Name="ID" />
+      </Principal>
+      <Dependent Role="OrderDishes">
+        <PropertyRef Name="OrderID" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_Shift_Employee">
+    <End Role="Employee" Type="Self.Employee" Multiplicity="1">
+      <OnDelete Action="Cascade" />
+    </End>
+    <End Role="Shift" Type="Self.Shift" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="Employee">
+        <PropertyRef Name="ID" />
+      </Principal>
+      <Dependent Role="Shift">
+        <PropertyRef Name="EmployeeID" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <EntityContainer Name="Хранилище KafeDBModelContainer">
+    <EntitySet Name="CookStatus" EntityType="Self.CookStatus" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="Dishes" EntityType="Self.Dishes" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="Employee" EntityType="Self.Employee" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="Order" EntityType="Self.Order" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="OrderDishes" EntityType="Self.OrderDishes" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="PayStatus" EntityType="Self.PayStatus" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="Position" EntityType="Self.Position" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="Shift" EntityType="Self.Shift" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="Status" EntityType="Self.Status" Schema="dbo" store:Type="Tables" />
+    <AssociationSet Name="FK_Employee_Position" Association="Self.FK_Employee_Position">
+      <End Role="Position" EntitySet="Position" />
+      <End Role="Employee" EntitySet="Employee" />
+    </AssociationSet>
+    <AssociationSet Name="FK_Employee_Status" Association="Self.FK_Employee_Status">
+      <End Role="Status" EntitySet="Status" />
+      <End Role="Employee" EntitySet="Employee" />
+    </AssociationSet>
+    <AssociationSet Name="FK_Order_CookStatus" Association="Self.FK_Order_CookStatus">
+      <End Role="CookStatus" EntitySet="CookStatus" />
+      <End Role="Order" EntitySet="Order" />
+    </AssociationSet>
+    <AssociationSet Name="FK_Order_Employee" Association="Self.FK_Order_Employee">
+      <End Role="Employee" EntitySet="Employee" />
+      <End Role="Order" EntitySet="Order" />
+    </AssociationSet>
+    <AssociationSet Name="FK_Order_PayStatus" Association="Self.FK_Order_PayStatus">
+      <End Role="PayStatus" EntitySet="PayStatus" />
+      <End Role="Order" EntitySet="Order" />
+    </AssociationSet>
+    <AssociationSet Name="FK_OrderDishes_Dishes" Association="Self.FK_OrderDishes_Dishes">
+      <End Role="Dishes" EntitySet="Dishes" />
+      <End Role="OrderDishes" EntitySet="OrderDishes" />
+    </AssociationSet>
+    <AssociationSet Name="FK_OrderDishes_Order" Association="Self.FK_OrderDishes_Order">
+      <End Role="Order" EntitySet="Order" />
+      <End Role="OrderDishes" EntitySet="OrderDishes" />
+    </AssociationSet>
+    <AssociationSet Name="FK_Shift_Employee" Association="Self.FK_Shift_Employee">
+      <End Role="Employee" EntitySet="Employee" />
+      <End Role="Shift" EntitySet="Shift" />
+    </AssociationSet>
+  </EntityContainer>
+</Schema>

BIN
Thumbs.db


BIN
db.sql