gr682_ggi 4 år sedan
förälder
incheckning
24752ac061
67 ändrade filer med 56592 tillägg och 165 borttagningar
  1. BIN
      .vs/Logistics application/v16/.suo
  2. 24 0
      Logistics application/Addressee.cs
  3. 1 0
      Logistics application/App.config
  4. 1 1
      Logistics application/Car.cs
  5. 5 3
      Logistics application/TableDatabase.Context.cs
  6. 1 1
      Logistics application/TableDatabase.Context.tt
  7. 1 1
      Logistics application/TableDatabase.Designer.cs
  8. 0 0
      Logistics application/Datebase.cs
  9. 112 49
      Logistics application/TableDatabase.edmx
  10. 8 6
      Logistics application/TableDatabase.edmx.diagram
  11. 1 1
      Logistics application/TableDatabase.tt
  12. 2 4
      Logistics application/Driver.cs
  13. 18 0
      Logistics application/LoginApplication.xaml
  14. 45 0
      Logistics application/LoginApplication.xaml.cs
  15. 56 35
      Logistics application/Logistics application.csproj
  16. 15 0
      Logistics application/MainMenu.xaml
  17. 28 0
      Logistics application/MainMenu.xaml.cs
  18. 3 19
      Logistics application/MainWindow.xaml
  19. 3 6
      Logistics application/MainWindow.xaml.cs
  20. 15 0
      Logistics application/Menaget.cs
  21. 6 7
      Logistics application/Order.cs
  22. 3 3
      Logistics application/Route.cs
  23. 24 0
      Logistics application/Sender.cs
  24. BIN
      Logistics application/bin/Debug/EntityFramework.SqlServer.dll
  25. 2093 0
      Logistics application/bin/Debug/EntityFramework.SqlServer.xml
  26. BIN
      Logistics application/bin/Debug/EntityFramework.dll
  27. 53236 0
      Logistics application/bin/Debug/EntityFramework.xml
  28. BIN
      Logistics application/bin/Debug/Logistics application.exe
  29. 24 0
      Logistics application/bin/Debug/Logistics application.exe.config
  30. BIN
      Logistics application/bin/Debug/Logistics application.pdb
  31. BIN
      Logistics application/bin/Debug/ru/EntityFramework.resources.dll
  32. 70 0
      Logistics application/obj/Debug/App.g.cs
  33. BIN
      Logistics application/obj/Debug/DesignTimeResolveAssemblyReferences.cache
  34. BIN
      Logistics application/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
  35. BIN
      Logistics application/obj/Debug/LoginApplication.baml
  36. 108 0
      Logistics application/obj/Debug/LoginApplication.g.cs
  37. 108 0
      Logistics application/obj/Debug/LoginApplication.g.i.cs
  38. 0 0
      Logistics application/obj/Debug/Logistics application.csproj.CopyComplete
  39. 1 0
      Logistics application/obj/Debug/Logistics application.csproj.CoreCompileInputs.cache
  40. 26 0
      Logistics application/obj/Debug/Logistics application.csproj.FileListAbsolute.txt
  41. BIN
      Logistics application/obj/Debug/Logistics application.csproj.GenerateResource.cache
  42. BIN
      Logistics application/obj/Debug/Logistics application.csprojAssemblyReference.cache
  43. BIN
      Logistics application/obj/Debug/Logistics application.exe
  44. BIN
      Logistics application/obj/Debug/Logistics application.g.resources
  45. BIN
      Logistics application/obj/Debug/Logistics application.pdb
  46. 14 0
      Logistics application/obj/Debug/Logistics application_Content.g.cs
  47. 2 2
      Logistics application/obj/Debug/Logistics application_Content.g.i.cs
  48. 20 0
      Logistics application/obj/Debug/Logistics application_MarkupCompile.cache
  49. 4 4
      Logistics application/obj/Debug/Logistics application_MarkupCompile.i.cache
  50. 1 0
      Logistics application/obj/Debug/Logistics application_MarkupCompile.i.lref
  51. 6 0
      Logistics application/obj/Debug/Logistics application_MarkupCompile.lref
  52. BIN
      Logistics application/obj/Debug/Logistics_application.Properties.Resources.resources
  53. BIN
      Logistics application/obj/Debug/MainMenu.baml
  54. 75 0
      Logistics application/obj/Debug/MainMenu.g.cs
  55. 75 0
      Logistics application/obj/Debug/MainMenu.g.i.cs
  56. BIN
      Logistics application/obj/Debug/MainWindow.baml
  57. 89 0
      Logistics application/obj/Debug/MainWindow.g.cs
  58. 4 23
      Logistics application/obj/Debug/MainWindow.g.i.cs
  59. 0 0
      Logistics application/obj/Debug/TempPE/Datebase.Context.cs.dll
  60. BIN
      Logistics application/obj/Debug/TempPE/Datebase.Designer.cs.dll
  61. BIN
      Logistics application/obj/Debug/TempPE/Datebase.cs.dll
  62. BIN
      Logistics application/obj/Debug/TempPE/Properties.Resources.Designer.cs.dll
  63. BIN
      Logistics application/obj/Debug/TempPE/TableDatabase.Designer.cs.dll
  64. BIN
      Logistics application/obj/Debug/TempPE/TableDatabase.cs.dll
  65. 88 0
      Logistics application/obj/Debug/edmxResourcesToEmbed/Datebase.csdl
  66. 88 0
      Logistics application/obj/Debug/edmxResourcesToEmbed/Datebase.msl
  67. 88 0
      Logistics application/obj/Debug/edmxResourcesToEmbed/Datebase.ssdl

BIN
.vs/Logistics application/v16/.suo


+ 24 - 0
Logistics application/Addressee.cs

@@ -0,0 +1,24 @@
+//------------------------------------------------------------------------------
+// <auto-generated>
+//     Этот код создан по шаблону.
+//
+//     Изменения, вносимые в этот файл вручную, могут привести к непредвиденной работе приложения.
+//     Изменения, вносимые в этот файл вручную, будут перезаписаны при повторном создании кода.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+namespace Logistics_application
+{
+    using System;
+    using System.Collections.Generic;
+    
+    public partial class Addressee
+    {
+        public int ID_Addressee { get; set; }
+        public string Surname { get; set; }
+        public string Name { get; set; }
+        public string MiddleName { get; set; }
+        public string PhotoNumber { get; set; }
+        public string City { get; set; }
+    }
+}

+ 1 - 0
Logistics application/App.config

@@ -9,6 +9,7 @@
   </startup>
   <connectionStrings>
     <add name="gr682_ggi3Entities" connectionString="metadata=res://*/TableDatabase.csdl|res://*/TableDatabase.ssdl|res://*/TableDatabase.msl;provider=System.Data.SqlClient;provider connection string=&quot;data source=mssql;integrated security=True;MultipleActiveResultSets=True;App=EntityFramework&quot;" providerName="System.Data.EntityClient" />
+    <add name="gr682_ggi3Entities1" connectionString="metadata=res://*/Datebase.csdl|res://*/Datebase.ssdl|res://*/Datebase.msl;provider=System.Data.SqlClient;provider connection string=&quot;data source=mssql;integrated security=True;MultipleActiveResultSets=True;App=EntityFramework&quot;" providerName="System.Data.EntityClient" />
   </connectionStrings>
   <entityFramework>
     <defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework">

+ 1 - 1
Logistics application/Car.cs

@@ -15,7 +15,7 @@ namespace Logistics_application
     public partial class Car
     {
         public int ID_Car { get; set; }
-        public string MachineType { get; set; }
         public string MachineBrand { get; set; }
+        public string MachineType { get; set; }
     }
 }

+ 5 - 3
Logistics application/TableDatabase.Context.cs

@@ -13,10 +13,10 @@ namespace Logistics_application
     using System.Data.Entity;
     using System.Data.Entity.Infrastructure;
     
-    public partial class gr682_ggi3Entities : DbContext
+    public partial class gr682_ggi3Entities1 : DbContext
     {
-        public gr682_ggi3Entities()
-            : base("name=gr682_ggi3Entities")
+        public gr682_ggi3Entities1()
+            : base("name=gr682_ggi3Entities1")
         {
         }
     
@@ -25,10 +25,12 @@ namespace Logistics_application
             throw new UnintentionalCodeFirstException();
         }
     
+        public virtual DbSet<Addressee> Addressee { get; set; }
         public virtual DbSet<Car> Car { get; set; }
         public virtual DbSet<Driver> Driver { get; set; }
         public virtual DbSet<Operator> Operator { get; set; }
         public virtual DbSet<Order> Order { get; set; }
         public virtual DbSet<Route> Route { get; set; }
+        public virtual DbSet<Sender> Sender { get; set; }
     }
 }

+ 1 - 1
Logistics application/TableDatabase.Context.tt

@@ -2,7 +2,7 @@
 <#@ include file="EF6.Utility.CS.ttinclude"#><#@
  output extension=".cs"#><#
 
-const string inputFile = @"TableDatabase.edmx";
+const string inputFile = @"Datebase.edmx";
 var textTransform = DynamicTextTransformation.Create(this);
 var code = new CodeGenerationTools(this);
 var ef = new MetadataTools(this);

+ 1 - 1
Logistics application/TableDatabase.Designer.cs

@@ -1,4 +1,4 @@
-// Создание кода T4 для модели "Z:\3 Курс\ТИС\Курсовая\Приложение\Logistics application\Logistics application\TableDatabase.edmx" включено. 
+// Создание кода T4 для модели "Z:\3 Курс\ТИС\Курсовая\Приложение\Logistics application\Logistics application\Datebase.edmx" включено. 
 // Чтобы включить формирование кода прежних версий, измените значение свойства "Стратегия создания кода" конструктора
 // на "Legacy ObjectContext". Это свойство доступно в окне "Свойства", если модель
 // открыта в конструкторе.

Logistics application/TableDatabase.cs → Logistics application/Datebase.cs


+ 112 - 49
Logistics application/TableDatabase.edmx

@@ -5,34 +5,43 @@
     <!-- SSDL content -->
     <edmx:StorageModels>
       <Schema Namespace="Хранилище gr682_ggi3Model" 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="Addressee">
+          <Key>
+            <PropertyRef Name="ID_Addressee" />
+          </Key>
+          <Property Name="ID_Addressee" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+          <Property Name="Surname" Type="nvarchar" MaxLength="15" Nullable="false" />
+          <Property Name="Name" Type="nvarchar" MaxLength="15" Nullable="false" />
+          <Property Name="MiddleName" Type="nvarchar" MaxLength="15" Nullable="false" />
+          <Property Name="PhotoNumber" Type="char" MaxLength="10" Nullable="false" />
+          <Property Name="City" Type="nvarchar" MaxLength="15" Nullable="false" />
+        </EntityType>
         <EntityType Name="Car">
           <Key>
             <PropertyRef Name="ID_Car" />
           </Key>
           <Property Name="ID_Car" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
-          <Property Name="MachineType" Type="nvarchar" MaxLength="15" />
           <Property Name="MachineBrand" Type="nvarchar" MaxLength="15" />
+          <Property Name="MachineType" Type="nvarchar" MaxLength="15" />
         </EntityType>
         <EntityType Name="Driver">
           <Key>
             <PropertyRef Name="ID_Driver" />
           </Key>
           <Property Name="ID_Driver" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
-          <Property Name="Login" Type="nvarchar" MaxLength="10" Nullable="false" />
-          <Property Name="Password" Type="nvarchar" MaxLength="10" Nullable="false" />
           <Property Name="Surname" Type="nvarchar" MaxLength="15" Nullable="false" />
           <Property Name="Name" Type="nvarchar" MaxLength="15" Nullable="false" />
           <Property Name="MiddleName" Type="nvarchar" MaxLength="15" Nullable="false" />
-          <Property Name="ID_Car" Type="int" Nullable="false" />
-          <Property Name="BrigadeNumber" Type="int" Nullable="false" />
+          <Property Name="ID_Car" Type="int" />
+          <Property Name="BrigadeNumber" Type="int" />
         </EntityType>
         <EntityType Name="Operator">
           <Key>
             <PropertyRef Name="ID_Operator" />
           </Key>
           <Property Name="ID_Operator" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
-          <Property Name="Login" Type="nvarchar" MaxLength="10" Nullable="false" />
-          <Property Name="Password" Type="nvarchar" MaxLength="10" Nullable="false" />
+          <Property Name="Login" Type="nvarchar" MaxLength="50" Nullable="false" />
+          <Property Name="Password" Type="nvarchar" MaxLength="50" Nullable="false" />
           <Property Name="Surname" Type="nvarchar" MaxLength="15" Nullable="false" />
           <Property Name="Name" Type="nvarchar" MaxLength="15" Nullable="false" />
           <Property Name="MiddleName" Type="nvarchar" MaxLength="15" Nullable="false" />
@@ -44,13 +53,12 @@
           <Property Name="ID_Order" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
           <Property Name="OrderNumber" Type="int" Nullable="false" />
           <Property Name="ID_Driver" Type="int" Nullable="false" />
-          <Property Name="ID_Car" Type="int" Nullable="false" />
-          <Property Name="Sender" Type="nvarchar" MaxLength="50" />
-          <Property Name="Departure_Date" Type="date" />
-          <Property Name="Sender_Phone_Number" Type="int" />
-          <Property Name="Recipient" Type="nvarchar" MaxLength="50" />
-          <Property Name="Date_Of_Receiving" Type="date" />
-          <Property Name="Recipient_Phone_Number" Type="int" />
+          <Property Name="ID_Sender" Type="int" Nullable="false" />
+          <Property Name="SenderCuty" Type="nvarchar" MaxLength="15" Nullable="false" />
+          <Property Name="DepartureDate" Type="date" Nullable="false" />
+          <Property Name="ID_Addressee" Type="int" Nullable="false" />
+          <Property Name="AddresseeCity" Type="nvarchar" MaxLength="15" Nullable="false" />
+          <Property Name="DateOfAddressee" Type="date" Nullable="false" />
         </EntityType>
         <EntityType Name="Route">
           <Key>
@@ -58,50 +66,72 @@
           </Key>
           <Property Name="ID_Route" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
           <Property Name="OrderNumber" Type="int" Nullable="false" />
-          <Property Name="Sender_City" Type="nvarchar" MaxLength="15" />
-          <Property Name="Recipirnt_City" Type="nvarchar" MaxLength="15" />
-          <Property Name="Shord_Route" Type="nchar" MaxLength="10" />
+          <Property Name="SenderCity" Type="nvarchar" MaxLength="15" Nullable="false" />
+          <Property Name="AddresseeCity" Type="nvarchar" MaxLength="15" Nullable="false" />
+          <Property Name="ShordRoute" Type="nvarchar" MaxLength="100" Nullable="false" />
+        </EntityType>
+        <EntityType Name="Sender">
+          <Key>
+            <PropertyRef Name="ID_Sender" />
+          </Key>
+          <Property Name="ID_Sender" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+          <Property Name="Surname" Type="nvarchar" MaxLength="15" Nullable="false" />
+          <Property Name="Name" Type="nvarchar" MaxLength="15" Nullable="false" />
+          <Property Name="MiddleName" Type="nvarchar" MaxLength="15" Nullable="false" />
+          <Property Name="PhoneNumber" Type="char" MaxLength="10" Nullable="false" />
+          <Property Name="City" Type="nvarchar" MaxLength="15" Nullable="false" />
         </EntityType>
         <EntityContainer Name="Хранилище gr682_ggi3ModelContainer">
+          <EntitySet Name="Addressee" EntityType="Self.Addressee" Schema="dbo" store:Type="Tables" />
           <EntitySet Name="Car" EntityType="Self.Car" Schema="dbo" store:Type="Tables" />
           <EntitySet Name="Driver" EntityType="Self.Driver" Schema="dbo" store:Type="Tables" />
           <EntitySet Name="Operator" EntityType="Self.Operator" Schema="dbo" store:Type="Tables" />
           <EntitySet Name="Order" EntityType="Self.Order" Schema="dbo" store:Type="Tables" />
           <EntitySet Name="Route" EntityType="Self.Route" Schema="dbo" store:Type="Tables" />
+          <EntitySet Name="Sender" EntityType="Self.Sender" Schema="dbo" store:Type="Tables" />
         </EntityContainer>
       </Schema>
     </edmx:StorageModels>
     <!-- CSDL content -->
     <edmx:ConceptualModels>
       <Schema Namespace="gr682_ggi3Model" 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="Addressee">
+          <Key>
+            <PropertyRef Name="ID_Addressee" />
+          </Key>
+          <Property Name="ID_Addressee" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+          <Property Name="Surname" Type="String" MaxLength="15" FixedLength="false" Unicode="true" Nullable="false" />
+          <Property Name="Name" Type="String" MaxLength="15" FixedLength="false" Unicode="true" Nullable="false" />
+          <Property Name="MiddleName" Type="String" MaxLength="15" FixedLength="false" Unicode="true" Nullable="false" />
+          <Property Name="PhotoNumber" Type="String" MaxLength="10" FixedLength="true" Unicode="false" Nullable="false" />
+          <Property Name="City" Type="String" MaxLength="15" FixedLength="false" Unicode="true" Nullable="false" />
+        </EntityType>
         <EntityType Name="Car">
           <Key>
             <PropertyRef Name="ID_Car" />
           </Key>
           <Property Name="ID_Car" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
-          <Property Name="MachineType" Type="String" MaxLength="15" FixedLength="false" Unicode="true" />
           <Property Name="MachineBrand" Type="String" MaxLength="15" FixedLength="false" Unicode="true" />
+          <Property Name="MachineType" Type="String" MaxLength="15" FixedLength="false" Unicode="true" />
         </EntityType>
         <EntityType Name="Driver">
           <Key>
             <PropertyRef Name="ID_Driver" />
           </Key>
           <Property Name="ID_Driver" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
-          <Property Name="Login" Type="String" MaxLength="10" FixedLength="false" Unicode="true" Nullable="false" />
-          <Property Name="Password" Type="String" MaxLength="10" FixedLength="false" Unicode="true" Nullable="false" />
           <Property Name="Surname" Type="String" MaxLength="15" FixedLength="false" Unicode="true" Nullable="false" />
           <Property Name="Name" Type="String" MaxLength="15" FixedLength="false" Unicode="true" Nullable="false" />
           <Property Name="MiddleName" Type="String" MaxLength="15" FixedLength="false" Unicode="true" Nullable="false" />
-          <Property Name="ID_Car" Type="Int32" Nullable="false" />
-          <Property Name="BrigadeNumber" Type="Int32" Nullable="false" />
+          <Property Name="ID_Car" Type="Int32" />
+          <Property Name="BrigadeNumber" Type="Int32" />
         </EntityType>
         <EntityType Name="Operator">
           <Key>
             <PropertyRef Name="ID_Operator" />
           </Key>
           <Property Name="ID_Operator" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
-          <Property Name="Login" Type="String" MaxLength="10" FixedLength="false" Unicode="true" Nullable="false" />
-          <Property Name="Password" Type="String" MaxLength="10" FixedLength="false" Unicode="true" 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="Surname" Type="String" MaxLength="15" FixedLength="false" Unicode="true" Nullable="false" />
           <Property Name="Name" Type="String" MaxLength="15" FixedLength="false" Unicode="true" Nullable="false" />
           <Property Name="MiddleName" Type="String" MaxLength="15" FixedLength="false" Unicode="true" Nullable="false" />
@@ -113,13 +143,12 @@
           <Property Name="ID_Order" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
           <Property Name="OrderNumber" Type="Int32" Nullable="false" />
           <Property Name="ID_Driver" Type="Int32" Nullable="false" />
-          <Property Name="ID_Car" Type="Int32" Nullable="false" />
-          <Property Name="Sender" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
-          <Property Name="Departure_Date" Type="DateTime" Precision="0" />
-          <Property Name="Sender_Phone_Number" Type="Int32" />
-          <Property Name="Recipient" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
-          <Property Name="Date_Of_Receiving" Type="DateTime" Precision="0" />
-          <Property Name="Recipient_Phone_Number" Type="Int32" />
+          <Property Name="ID_Sender" Type="Int32" Nullable="false" />
+          <Property Name="SenderCuty" Type="String" MaxLength="15" FixedLength="false" Unicode="true" Nullable="false" />
+          <Property Name="DepartureDate" Type="DateTime" Nullable="false" Precision="0" />
+          <Property Name="ID_Addressee" Type="Int32" Nullable="false" />
+          <Property Name="AddresseeCity" Type="String" MaxLength="15" FixedLength="false" Unicode="true" Nullable="false" />
+          <Property Name="DateOfAddressee" Type="DateTime" Nullable="false" Precision="0" />
         </EntityType>
         <EntityType Name="Route">
           <Key>
@@ -127,29 +156,54 @@
           </Key>
           <Property Name="ID_Route" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
           <Property Name="OrderNumber" Type="Int32" Nullable="false" />
-          <Property Name="Sender_City" Type="String" MaxLength="15" FixedLength="false" Unicode="true" />
-          <Property Name="Recipirnt_City" Type="String" MaxLength="15" FixedLength="false" Unicode="true" />
-          <Property Name="Shord_Route" Type="String" MaxLength="10" FixedLength="true" Unicode="true" />
+          <Property Name="SenderCity" Type="String" MaxLength="15" FixedLength="false" Unicode="true" Nullable="false" />
+          <Property Name="AddresseeCity" Type="String" MaxLength="15" FixedLength="false" Unicode="true" Nullable="false" />
+          <Property Name="ShordRoute" Type="String" MaxLength="100" FixedLength="false" Unicode="true" Nullable="false" />
         </EntityType>
-        <EntityContainer Name="gr682_ggi3Entities" annotation:LazyLoadingEnabled="true">
+        <EntityType Name="Sender">
+          <Key>
+            <PropertyRef Name="ID_Sender" />
+          </Key>
+          <Property Name="ID_Sender" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+          <Property Name="Surname" Type="String" MaxLength="15" FixedLength="false" Unicode="true" Nullable="false" />
+          <Property Name="Name" Type="String" MaxLength="15" FixedLength="false" Unicode="true" Nullable="false" />
+          <Property Name="MiddleName" Type="String" MaxLength="15" FixedLength="false" Unicode="true" Nullable="false" />
+          <Property Name="PhoneNumber" Type="String" MaxLength="10" FixedLength="true" Unicode="false" Nullable="false" />
+          <Property Name="City" Type="String" MaxLength="15" FixedLength="false" Unicode="true" Nullable="false" />
+        </EntityType>
+        <EntityContainer Name="gr682_ggi3Entities1" annotation:LazyLoadingEnabled="true">
+          <EntitySet Name="Addressee" EntityType="Self.Addressee" />
           <EntitySet Name="Car" EntityType="Self.Car" />
           <EntitySet Name="Driver" EntityType="Self.Driver" />
           <EntitySet Name="Operator" EntityType="Self.Operator" />
           <EntitySet Name="Order" EntityType="Self.Order" />
           <EntitySet Name="Route" EntityType="Self.Route" />
+          <EntitySet Name="Sender" EntityType="Self.Sender" />
         </EntityContainer>
       </Schema>
     </edmx:ConceptualModels>
     <!-- C-S mapping content -->
     <edmx:Mappings>
       <Mapping Space="C-S" xmlns="http://schemas.microsoft.com/ado/2009/11/mapping/cs">
-        <EntityContainerMapping StorageEntityContainer="Хранилище gr682_ggi3ModelContainer" CdmEntityContainer="gr682_ggi3Entities">
+        <EntityContainerMapping StorageEntityContainer="Хранилище gr682_ggi3ModelContainer" CdmEntityContainer="gr682_ggi3Entities1">
+          <EntitySetMapping Name="Addressee">
+            <EntityTypeMapping TypeName="gr682_ggi3Model.Addressee">
+              <MappingFragment StoreEntitySet="Addressee">
+                <ScalarProperty Name="ID_Addressee" ColumnName="ID_Addressee" />
+                <ScalarProperty Name="Surname" ColumnName="Surname" />
+                <ScalarProperty Name="Name" ColumnName="Name" />
+                <ScalarProperty Name="MiddleName" ColumnName="MiddleName" />
+                <ScalarProperty Name="PhotoNumber" ColumnName="PhotoNumber" />
+                <ScalarProperty Name="City" ColumnName="City" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
           <EntitySetMapping Name="Car">
             <EntityTypeMapping TypeName="gr682_ggi3Model.Car">
               <MappingFragment StoreEntitySet="Car">
                 <ScalarProperty Name="ID_Car" ColumnName="ID_Car" />
-                <ScalarProperty Name="MachineType" ColumnName="MachineType" />
                 <ScalarProperty Name="MachineBrand" ColumnName="MachineBrand" />
+                <ScalarProperty Name="MachineType" ColumnName="MachineType" />
               </MappingFragment>
             </EntityTypeMapping>
           </EntitySetMapping>
@@ -157,8 +211,6 @@
             <EntityTypeMapping TypeName="gr682_ggi3Model.Driver">
               <MappingFragment StoreEntitySet="Driver">
                 <ScalarProperty Name="ID_Driver" ColumnName="ID_Driver" />
-                <ScalarProperty Name="Login" ColumnName="Login" />
-                <ScalarProperty Name="Password" ColumnName="Password" />
                 <ScalarProperty Name="Surname" ColumnName="Surname" />
                 <ScalarProperty Name="Name" ColumnName="Name" />
                 <ScalarProperty Name="MiddleName" ColumnName="MiddleName" />
@@ -185,13 +237,12 @@
                 <ScalarProperty Name="ID_Order" ColumnName="ID_Order" />
                 <ScalarProperty Name="OrderNumber" ColumnName="OrderNumber" />
                 <ScalarProperty Name="ID_Driver" ColumnName="ID_Driver" />
-                <ScalarProperty Name="ID_Car" ColumnName="ID_Car" />
-                <ScalarProperty Name="Sender" ColumnName="Sender" />
-                <ScalarProperty Name="Departure_Date" ColumnName="Departure_Date" />
-                <ScalarProperty Name="Sender_Phone_Number" ColumnName="Sender_Phone_Number" />
-                <ScalarProperty Name="Recipient" ColumnName="Recipient" />
-                <ScalarProperty Name="Date_Of_Receiving" ColumnName="Date_Of_Receiving" />
-                <ScalarProperty Name="Recipient_Phone_Number" ColumnName="Recipient_Phone_Number" />
+                <ScalarProperty Name="ID_Sender" ColumnName="ID_Sender" />
+                <ScalarProperty Name="SenderCuty" ColumnName="SenderCuty" />
+                <ScalarProperty Name="DepartureDate" ColumnName="DepartureDate" />
+                <ScalarProperty Name="ID_Addressee" ColumnName="ID_Addressee" />
+                <ScalarProperty Name="AddresseeCity" ColumnName="AddresseeCity" />
+                <ScalarProperty Name="DateOfAddressee" ColumnName="DateOfAddressee" />
               </MappingFragment>
             </EntityTypeMapping>
           </EntitySetMapping>
@@ -200,9 +251,21 @@
               <MappingFragment StoreEntitySet="Route">
                 <ScalarProperty Name="ID_Route" ColumnName="ID_Route" />
                 <ScalarProperty Name="OrderNumber" ColumnName="OrderNumber" />
-                <ScalarProperty Name="Sender_City" ColumnName="Sender_City" />
-                <ScalarProperty Name="Recipirnt_City" ColumnName="Recipirnt_City" />
-                <ScalarProperty Name="Shord_Route" ColumnName="Shord_Route" />
+                <ScalarProperty Name="SenderCity" ColumnName="SenderCity" />
+                <ScalarProperty Name="AddresseeCity" ColumnName="AddresseeCity" />
+                <ScalarProperty Name="ShordRoute" ColumnName="ShordRoute" />
+              </MappingFragment>
+            </EntityTypeMapping>
+          </EntitySetMapping>
+          <EntitySetMapping Name="Sender">
+            <EntityTypeMapping TypeName="gr682_ggi3Model.Sender">
+              <MappingFragment StoreEntitySet="Sender">
+                <ScalarProperty Name="ID_Sender" ColumnName="ID_Sender" />
+                <ScalarProperty Name="Surname" ColumnName="Surname" />
+                <ScalarProperty Name="Name" ColumnName="Name" />
+                <ScalarProperty Name="MiddleName" ColumnName="MiddleName" />
+                <ScalarProperty Name="PhoneNumber" ColumnName="PhoneNumber" />
+                <ScalarProperty Name="City" ColumnName="City" />
               </MappingFragment>
             </EntityTypeMapping>
           </EntitySetMapping>

+ 8 - 6
Logistics application/TableDatabase.edmx.diagram

@@ -4,12 +4,14 @@
   <edmx:Designer xmlns="http://schemas.microsoft.com/ado/2009/11/edmx">
     <!-- Diagram content (shape and connector positions) -->
     <edmx:Diagrams>
-      <Diagram DiagramId="0457ea82892842918d521231b72ed9d0" Name="Diagram1">
-        <EntityTypeShape EntityType="gr682_ggi3Model.Car" Width="1.5" PointX="0.75" PointY="0.75" IsExpanded="true" />
-        <EntityTypeShape EntityType="gr682_ggi3Model.Driver" Width="1.5" PointX="2.75" PointY="0.75" IsExpanded="true" />
-        <EntityTypeShape EntityType="gr682_ggi3Model.Operator" Width="1.5" PointX="4.75" PointY="0.75" IsExpanded="true" />
-        <EntityTypeShape EntityType="gr682_ggi3Model.Order" Width="1.5" PointX="0.75" PointY="4.75" IsExpanded="true" />
-        <EntityTypeShape EntityType="gr682_ggi3Model.Route" Width="1.5" PointX="2.75" PointY="4.75" IsExpanded="true" />
+      <Diagram DiagramId="bc9bce59f4634d7c8ebd4d5802b9dcdd" Name="Diagram1">
+        <EntityTypeShape EntityType="gr682_ggi3Model.Addressee" Width="1.5" PointX="0.75" PointY="0.75" IsExpanded="true" />
+        <EntityTypeShape EntityType="gr682_ggi3Model.Car" Width="1.5" PointX="2.75" PointY="0.75" IsExpanded="true" />
+        <EntityTypeShape EntityType="gr682_ggi3Model.Driver" Width="1.5" PointX="0.75" PointY="3.75" IsExpanded="true" />
+        <EntityTypeShape EntityType="gr682_ggi3Model.Operator" Width="1.5" PointX="2.75" PointY="3.75" IsExpanded="true" />
+        <EntityTypeShape EntityType="gr682_ggi3Model.Order" Width="1.5" PointX="4.75" PointY="0.75" IsExpanded="true" />
+        <EntityTypeShape EntityType="gr682_ggi3Model.Route" Width="1.5" PointX="4.75" PointY="4.75" IsExpanded="true" />
+        <EntityTypeShape EntityType="gr682_ggi3Model.Sender" Width="1.5" PointX="6.75" PointY="0.75" IsExpanded="true" />
       </Diagram>
     </edmx:Diagrams>
   </edmx:Designer>

+ 1 - 1
Logistics application/TableDatabase.tt

@@ -2,7 +2,7 @@
 <#@ include file="EF6.Utility.CS.ttinclude"#><#@ 
  output extension=".cs"#><#
 
-const string inputFile = @"TableDatabase.edmx";
+const string inputFile = @"Datebase.edmx";
 var textTransform = DynamicTextTransformation.Create(this);
 var code = new CodeGenerationTools(this);
 var ef = new MetadataTools(this);

+ 2 - 4
Logistics application/Driver.cs

@@ -15,12 +15,10 @@ namespace Logistics_application
     public partial class Driver
     {
         public int ID_Driver { get; set; }
-        public string Login { get; set; }
-        public string Password { get; set; }
         public string Surname { get; set; }
         public string Name { get; set; }
         public string MiddleName { get; set; }
-        public int ID_Car { get; set; }
-        public int BrigadeNumber { get; set; }
+        public Nullable<int> ID_Car { get; set; }
+        public Nullable<int> BrigadeNumber { get; set; }
     }
 }

+ 18 - 0
Logistics application/LoginApplication.xaml

@@ -0,0 +1,18 @@
+<Page x:Class="Logistics_application.LoginApplication"
+      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
+      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
+      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
+      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
+      xmlns:local="clr-namespace:Logistics_application"
+      mc:Ignorable="d" 
+      d:DesignHeight="400" d:DesignWidth="600"
+      Title="LoginApplication">
+    <Grid Height="400" VerticalAlignment="Bottom">
+        <TextBlock Text="Логин:" HorizontalAlignment="Left" Margin="158,135,0,0" VerticalAlignment="Top" Width="127" Height="38" FontSize="22" TextAlignment="Right"/>
+        <TextBox Name="loginbox" HorizontalAlignment="Left" Margin="321,135,0,0"  VerticalAlignment="Top"  Width="135" Height="38"/>
+        <TextBlock Text="Пароль:" HorizontalAlignment="Left" Margin="158,198,0,0" VerticalAlignment="Top" Width="127" Height="38" FontSize="22" TextAlignment="Right"/>
+        <PasswordBox Name="passwordbox" HorizontalAlignment="Left" Margin="321,198,0,0" VerticalAlignment="Top" Width="135" Height="38"/>
+        <Button Content="Вход" HorizontalAlignment="Left" Margin="224,306,0,0" Width="160" Height="38" VerticalAlignment="Top" Click="Button_Click"/>
+
+    </Grid>
+</Page>

+ 45 - 0
Logistics application/LoginApplication.xaml.cs

@@ -0,0 +1,45 @@
+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.Navigation;
+using System.Windows.Shapes;
+
+namespace Logistics_application
+{
+    /// <summary>
+    /// Логика взаимодействия для LoginApplication.xaml
+    /// </summary>
+    public partial class LoginApplication : Page
+    {
+        gr682_ggi3Entities1 db = new gr682_ggi3Entities1();
+        public LoginApplication()
+        {
+            InitializeComponent();
+        }
+
+        private void Button_Click(object sender, RoutedEventArgs e)
+        {
+            if (loginbox.Text == "" || passwordbox.Password == "")
+            {
+                MessageBox.Show("Ошибка пустые поля");
+            }
+            if (db.Operator.Select(item => item.Login + " " + item.Password).Contains(loginbox.Text + " " + passwordbox.Password))
+            {
+                Menaget.MainFrame.Navigate(new MainMenu());
+            }
+            else
+            {
+                MessageBox.Show("Ошибка логина/пароля");
+            }
+        }
+    }
+}

+ 56 - 35
Logistics application/Logistics application.csproj

@@ -64,36 +64,57 @@
       <Generator>MSBuild:Compile</Generator>
       <SubType>Designer</SubType>
     </ApplicationDefinition>
-    <Compile Include="Car.cs">
-      <DependentUpon>TableDatabase.tt</DependentUpon>
-    </Compile>
-    <Compile Include="Driver.cs">
-      <DependentUpon>TableDatabase.tt</DependentUpon>
-    </Compile>
-    <Compile Include="Operator.cs">
-      <DependentUpon>TableDatabase.tt</DependentUpon>
+    <Compile Include="Addressee.cs">
+      <DependentUpon>Datebase.tt</DependentUpon>
     </Compile>
-    <Compile Include="Order.cs">
-      <DependentUpon>TableDatabase.tt</DependentUpon>
-    </Compile>
-    <Compile Include="Route.cs">
-      <DependentUpon>TableDatabase.tt</DependentUpon>
+    <Compile Include="Car.cs">
+      <DependentUpon>Datebase.tt</DependentUpon>
     </Compile>
-    <Compile Include="TableDatabase.Context.cs">
+    <Compile Include="Datebase.Context.cs">
       <AutoGen>True</AutoGen>
       <DesignTime>True</DesignTime>
-      <DependentUpon>TableDatabase.Context.tt</DependentUpon>
+      <DependentUpon>Datebase.Context.tt</DependentUpon>
     </Compile>
-    <Compile Include="TableDatabase.cs">
+    <Compile Include="Datebase.cs">
       <AutoGen>True</AutoGen>
       <DesignTime>True</DesignTime>
-      <DependentUpon>TableDatabase.tt</DependentUpon>
+      <DependentUpon>Datebase.tt</DependentUpon>
     </Compile>
-    <Compile Include="TableDatabase.Designer.cs">
+    <Compile Include="Datebase.Designer.cs">
       <AutoGen>True</AutoGen>
       <DesignTime>True</DesignTime>
-      <DependentUpon>TableDatabase.edmx</DependentUpon>
+      <DependentUpon>Datebase.edmx</DependentUpon>
+    </Compile>
+    <Compile Include="Driver.cs">
+      <DependentUpon>Datebase.tt</DependentUpon>
+    </Compile>
+    <Compile Include="LoginApplication.xaml.cs">
+      <DependentUpon>LoginApplication.xaml</DependentUpon>
+    </Compile>
+    <Compile Include="MainMenu.xaml.cs">
+      <DependentUpon>MainMenu.xaml</DependentUpon>
+    </Compile>
+    <Compile Include="Menaget.cs" />
+    <Compile Include="Operator.cs">
+      <DependentUpon>Datebase.tt</DependentUpon>
+    </Compile>
+    <Compile Include="Order.cs">
+      <DependentUpon>Datebase.tt</DependentUpon>
+    </Compile>
+    <Compile Include="Route.cs">
+      <DependentUpon>Datebase.tt</DependentUpon>
     </Compile>
+    <Compile Include="Sender.cs">
+      <DependentUpon>Datebase.tt</DependentUpon>
+    </Compile>
+    <Page Include="LoginApplication.xaml">
+      <SubType>Designer</SubType>
+      <Generator>MSBuild:Compile</Generator>
+    </Page>
+    <Page Include="MainMenu.xaml">
+      <SubType>Designer</SubType>
+      <Generator>MSBuild:Compile</Generator>
+    </Page>
     <Page Include="MainWindow.xaml">
       <Generator>MSBuild:Compile</Generator>
       <SubType>Designer</SubType>
@@ -125,36 +146,36 @@
       <Generator>ResXFileCodeGenerator</Generator>
       <LastGenOutput>Resources.Designer.cs</LastGenOutput>
     </EmbeddedResource>
+    <EntityDeploy Include="Datebase.edmx">
+      <Generator>EntityModelCodeGenerator</Generator>
+      <LastGenOutput>Datebase.Designer.cs</LastGenOutput>
+    </EntityDeploy>
+    <None Include="Datebase.edmx.diagram">
+      <DependentUpon>Datebase.edmx</DependentUpon>
+    </None>
     <None Include="packages.config" />
     <None Include="Properties\Settings.settings">
       <Generator>SettingsSingleFileGenerator</Generator>
       <LastGenOutput>Settings.Designer.cs</LastGenOutput>
     </None>
-    <EntityDeploy Include="TableDatabase.edmx">
-      <Generator>EntityModelCodeGenerator</Generator>
-      <LastGenOutput>TableDatabase.Designer.cs</LastGenOutput>
-    </EntityDeploy>
-    <None Include="TableDatabase.edmx.diagram">
-      <DependentUpon>TableDatabase.edmx</DependentUpon>
-    </None>
   </ItemGroup>
   <ItemGroup>
     <None Include="App.config" />
   </ItemGroup>
   <ItemGroup>
-    <Content Include="TableDatabase.Context.tt">
+    <Service Include="{508349B6-6B84-4DF5-91F0-309BEEBAD82D}" />
+  </ItemGroup>
+  <ItemGroup>
+    <Content Include="Datebase.Context.tt">
       <Generator>TextTemplatingFileGenerator</Generator>
-      <LastGenOutput>TableDatabase.Context.cs</LastGenOutput>
-      <DependentUpon>TableDatabase.edmx</DependentUpon>
+      <DependentUpon>Datebase.edmx</DependentUpon>
+      <LastGenOutput>Datebase.Context.cs</LastGenOutput>
     </Content>
-    <Content Include="TableDatabase.tt">
+    <Content Include="Datebase.tt">
       <Generator>TextTemplatingFileGenerator</Generator>
-      <DependentUpon>TableDatabase.edmx</DependentUpon>
-      <LastGenOutput>TableDatabase.cs</LastGenOutput>
+      <DependentUpon>Datebase.edmx</DependentUpon>
+      <LastGenOutput>Datebase.cs</LastGenOutput>
     </Content>
   </ItemGroup>
-  <ItemGroup>
-    <Service Include="{508349B6-6B84-4DF5-91F0-309BEEBAD82D}" />
-  </ItemGroup>
   <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
 </Project>

+ 15 - 0
Logistics application/MainMenu.xaml

@@ -0,0 +1,15 @@
+<Page x:Class="Logistics_application.MainMenu"
+      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
+      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
+      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
+      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
+      xmlns:local="clr-namespace:Logistics_application"
+      mc:Ignorable="d" 
+      d:DesignHeight="450" d:DesignWidth="800"
+      Title="MainMenu">
+
+    <Grid>
+        
+
+    </Grid>
+</Page>

+ 28 - 0
Logistics application/MainMenu.xaml.cs

@@ -0,0 +1,28 @@
+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.Navigation;
+using System.Windows.Shapes;
+
+namespace Logistics_application
+{
+    /// <summary>
+    /// Логика взаимодействия для MainMenu.xaml
+    /// </summary>
+    public partial class MainMenu : Page
+    {
+        public MainMenu()
+        {
+            InitializeComponent();
+        }
+    }
+}

+ 3 - 19
Logistics application/MainWindow.xaml

@@ -5,26 +5,10 @@
         xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
         xmlns:local="clr-namespace:Logistics_application"
         mc:Ignorable="d"
-        Title="Логистики 'Грузи-Вези'" Height="400" Width="600" WindowStartupLocation="CenterScreen">
+        Height="400" Width="600" WindowStartupLocation="CenterOwner" WindowStyle="None">
     <Grid>
-        <Grid.RowDefinitions>
-            <RowDefinition/>
-            <RowDefinition/>
-            <RowDefinition/>
-            <RowDefinition/>
-            <RowDefinition/>
-        </Grid.RowDefinitions>
-        <Grid.ColumnDefinitions>
-            <ColumnDefinition/>
-            <ColumnDefinition/>
-            <ColumnDefinition/>
-        </Grid.ColumnDefinitions>
-        <TextBlock Text="Логин" Grid.Column="1" FontSize="20" TextAlignment="Center" Margin="0,42,0,0"/>
-        <TextBox Name="login"  Grid.Column="1"  Grid.Row="1"/>
-        <TextBlock Text="Пароль" Grid.Column="1" Grid.Row="2" FontSize="20" TextAlignment="Center" Margin="0,42,0,0"/>
-        <PasswordBox Name="password" Grid.Column="1" Grid.Row="3"/>
-        <Button Content="Вход" Grid.Column="1" Grid.Row="4" FontSize="20" Click="LoginToApplication"/>
-        
+        <TextBox Text="Логистика 'Грузи-Вези'" Height="21" Margin="446,0,0,0" VerticalAlignment="Top" TextAlignment="Center"/>
+        <Frame NavigationUIVisibility="Hidden" Grid.Row="1" Name="MainFrame"/>
 
 
     </Grid>

+ 3 - 6
Logistics application/MainWindow.xaml.cs

@@ -20,15 +20,12 @@ namespace Logistics_application
     /// </summary>
     public partial class MainWindow : Window
     {
-        
+        gr682_ggi3Entities1 db = new gr682_ggi3Entities1();
         public MainWindow()
         {
             InitializeComponent();
-        }
-
-        private void LoginToApplication_Click()
-        {
-
+            MainFrame.Navigate(new LoginApplication());
+            Menaget.MainFrame = MainFrame;
         }
     }
 }

+ 15 - 0
Logistics application/Menaget.cs

@@ -0,0 +1,15 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows.Controls;
+
+namespace Logistics_application
+{
+    class Menaget
+    {
+        public static Frame MainFrame { get; set; }
+
+    }
+}

+ 6 - 7
Logistics application/Order.cs

@@ -17,12 +17,11 @@ namespace Logistics_application
         public int ID_Order { get; set; }
         public int OrderNumber { get; set; }
         public int ID_Driver { get; set; }
-        public int ID_Car { get; set; }
-        public string Sender { get; set; }
-        public Nullable<System.DateTime> Departure_Date { get; set; }
-        public Nullable<int> Sender_Phone_Number { get; set; }
-        public string Recipient { get; set; }
-        public Nullable<System.DateTime> Date_Of_Receiving { get; set; }
-        public Nullable<int> Recipient_Phone_Number { get; set; }
+        public int ID_Sender { get; set; }
+        public string SenderCuty { get; set; }
+        public System.DateTime DepartureDate { get; set; }
+        public int ID_Addressee { get; set; }
+        public string AddresseeCity { get; set; }
+        public System.DateTime DateOfAddressee { get; set; }
     }
 }

+ 3 - 3
Logistics application/Route.cs

@@ -16,8 +16,8 @@ namespace Logistics_application
     {
         public int ID_Route { get; set; }
         public int OrderNumber { get; set; }
-        public string Sender_City { get; set; }
-        public string Recipirnt_City { get; set; }
-        public string Shord_Route { get; set; }
+        public string SenderCity { get; set; }
+        public string AddresseeCity { get; set; }
+        public string ShordRoute { get; set; }
     }
 }

+ 24 - 0
Logistics application/Sender.cs

@@ -0,0 +1,24 @@
+//------------------------------------------------------------------------------
+// <auto-generated>
+//     Этот код создан по шаблону.
+//
+//     Изменения, вносимые в этот файл вручную, могут привести к непредвиденной работе приложения.
+//     Изменения, вносимые в этот файл вручную, будут перезаписаны при повторном создании кода.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+namespace Logistics_application
+{
+    using System;
+    using System.Collections.Generic;
+    
+    public partial class Sender
+    {
+        public int ID_Sender { get; set; }
+        public string Surname { get; set; }
+        public string Name { get; set; }
+        public string MiddleName { get; set; }
+        public string PhoneNumber { get; set; }
+        public string City { get; set; }
+    }
+}

BIN
Logistics application/bin/Debug/EntityFramework.SqlServer.dll


Filskillnaden har hållts tillbaka eftersom den är för stor
+ 2093 - 0
Logistics application/bin/Debug/EntityFramework.SqlServer.xml


BIN
Logistics application/bin/Debug/EntityFramework.dll


Filskillnaden har hållts tillbaka eftersom den är för stor
+ 53236 - 0
Logistics application/bin/Debug/EntityFramework.xml


BIN
Logistics application/bin/Debug/Logistics application.exe


+ 24 - 0
Logistics application/bin/Debug/Logistics application.exe.config

@@ -0,0 +1,24 @@
+<?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>
+  <connectionStrings>
+    <add name="gr682_ggi3Entities" connectionString="metadata=res://*/TableDatabase.csdl|res://*/TableDatabase.ssdl|res://*/TableDatabase.msl;provider=System.Data.SqlClient;provider connection string=&quot;data source=mssql;integrated security=True;MultipleActiveResultSets=True;App=EntityFramework&quot;" providerName="System.Data.EntityClient" />
+    <add name="gr682_ggi3Entities1" connectionString="metadata=res://*/Datebase.csdl|res://*/Datebase.ssdl|res://*/Datebase.msl;provider=System.Data.SqlClient;provider connection string=&quot;data source=mssql;integrated security=True;MultipleActiveResultSets=True;App=EntityFramework&quot;" providerName="System.Data.EntityClient" />
+  </connectionStrings>
+  <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>
+</configuration>

BIN
Logistics application/bin/Debug/Logistics application.pdb


BIN
Logistics application/bin/Debug/ru/EntityFramework.resources.dll


+ 70 - 0
Logistics application/obj/Debug/App.g.cs

@@ -0,0 +1,70 @@
+#pragma checksum "..\..\App.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "7232DD0AA16810AF4A7854581508978B581C4F7F15BB988661AC1E95E740278E"
+//------------------------------------------------------------------------------
+// <auto-generated>
+//     Этот код создан программой.
+//     Исполняемая версия:4.0.30319.42000
+//
+//     Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
+//     повторной генерации кода.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+using Logistics_application;
+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 Logistics_application {
+    
+    
+    /// <summary>
+    /// App
+    /// </summary>
+    public partial class App : System.Windows.Application {
+        
+        /// <summary>
+        /// InitializeComponent
+        /// </summary>
+        [System.Diagnostics.DebuggerNonUserCodeAttribute()]
+        [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
+        public void InitializeComponent() {
+            
+            #line 5 "..\..\App.xaml"
+            this.StartupUri = new System.Uri("MainWindow.xaml", System.UriKind.Relative);
+            
+            #line default
+            #line hidden
+        }
+        
+        /// <summary>
+        /// Application Entry Point.
+        /// </summary>
+        [System.STAThreadAttribute()]
+        [System.Diagnostics.DebuggerNonUserCodeAttribute()]
+        [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
+        public static void Main() {
+            Logistics_application.App app = new Logistics_application.App();
+            app.InitializeComponent();
+            app.Run();
+        }
+    }
+}
+

BIN
Logistics application/obj/Debug/DesignTimeResolveAssemblyReferences.cache


BIN
Logistics application/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache


BIN
Logistics application/obj/Debug/LoginApplication.baml


+ 108 - 0
Logistics application/obj/Debug/LoginApplication.g.cs

@@ -0,0 +1,108 @@
+#pragma checksum "..\..\LoginApplication.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "5CFF53DB326C899AB94D9CF2BB29FF5494D1CC255F0BB0D3493DE381C5178D6F"
+//------------------------------------------------------------------------------
+// <auto-generated>
+//     Этот код создан программой.
+//     Исполняемая версия:4.0.30319.42000
+//
+//     Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
+//     повторной генерации кода.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+using Logistics_application;
+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 Logistics_application {
+    
+    
+    /// <summary>
+    /// LoginApplication
+    /// </summary>
+    public partial class LoginApplication : System.Windows.Controls.Page, System.Windows.Markup.IComponentConnector {
+        
+        
+        #line 12 "..\..\LoginApplication.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.TextBox loginbox;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 14 "..\..\LoginApplication.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.PasswordBox passwordbox;
+        
+        #line default
+        #line hidden
+        
+        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("/Logistics application;component/loginapplication.xaml", System.UriKind.Relative);
+            
+            #line 1 "..\..\LoginApplication.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) {
+            switch (connectionId)
+            {
+            case 1:
+            this.loginbox = ((System.Windows.Controls.TextBox)(target));
+            return;
+            case 2:
+            this.passwordbox = ((System.Windows.Controls.PasswordBox)(target));
+            return;
+            case 3:
+            
+            #line 15 "..\..\LoginApplication.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click);
+            
+            #line default
+            #line hidden
+            return;
+            }
+            this._contentLoaded = true;
+        }
+    }
+}
+

+ 108 - 0
Logistics application/obj/Debug/LoginApplication.g.i.cs

@@ -0,0 +1,108 @@
+#pragma checksum "..\..\LoginApplication.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "5CFF53DB326C899AB94D9CF2BB29FF5494D1CC255F0BB0D3493DE381C5178D6F"
+//------------------------------------------------------------------------------
+// <auto-generated>
+//     Этот код создан программой.
+//     Исполняемая версия:4.0.30319.42000
+//
+//     Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
+//     повторной генерации кода.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+using Logistics_application;
+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 Logistics_application {
+    
+    
+    /// <summary>
+    /// LoginApplication
+    /// </summary>
+    public partial class LoginApplication : System.Windows.Controls.Page, System.Windows.Markup.IComponentConnector {
+        
+        
+        #line 12 "..\..\LoginApplication.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.TextBox loginbox;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 14 "..\..\LoginApplication.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.PasswordBox passwordbox;
+        
+        #line default
+        #line hidden
+        
+        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("/Logistics application;component/loginapplication.xaml", System.UriKind.Relative);
+            
+            #line 1 "..\..\LoginApplication.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) {
+            switch (connectionId)
+            {
+            case 1:
+            this.loginbox = ((System.Windows.Controls.TextBox)(target));
+            return;
+            case 2:
+            this.passwordbox = ((System.Windows.Controls.PasswordBox)(target));
+            return;
+            case 3:
+            
+            #line 15 "..\..\LoginApplication.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click);
+            
+            #line default
+            #line hidden
+            return;
+            }
+            this._contentLoaded = true;
+        }
+    }
+}
+

Logistics application/obj/Debug/TempPE/TableDatabase.Context.cs.dll → Logistics application/obj/Debug/Logistics application.csproj.CopyComplete


+ 1 - 0
Logistics application/obj/Debug/Logistics application.csproj.CoreCompileInputs.cache

@@ -0,0 +1 @@
+f92172d28e818845e491e0891d1297399eb37670

+ 26 - 0
Logistics application/obj/Debug/Logistics application.csproj.FileListAbsolute.txt

@@ -0,0 +1,26 @@
+Z:\3 Курс\ТИС\Курсовая\Приложение\Logistics application\Logistics application\bin\Debug\Logistics application.exe.config
+Z:\3 Курс\ТИС\Курсовая\Приложение\Logistics application\Logistics application\bin\Debug\Logistics application.exe
+Z:\3 Курс\ТИС\Курсовая\Приложение\Logistics application\Logistics application\bin\Debug\Logistics application.pdb
+Z:\3 Курс\ТИС\Курсовая\Приложение\Logistics application\Logistics application\bin\Debug\EntityFramework.dll
+Z:\3 Курс\ТИС\Курсовая\Приложение\Logistics application\Logistics application\bin\Debug\EntityFramework.SqlServer.dll
+Z:\3 Курс\ТИС\Курсовая\Приложение\Logistics application\Logistics application\bin\Debug\EntityFramework.xml
+Z:\3 Курс\ТИС\Курсовая\Приложение\Logistics application\Logistics application\bin\Debug\EntityFramework.SqlServer.xml
+Z:\3 Курс\ТИС\Курсовая\Приложение\Logistics application\Logistics application\bin\Debug\ru\EntityFramework.resources.dll
+Z:\3 Курс\ТИС\Курсовая\Приложение\Logistics application\Logistics application\obj\Debug\Logistics application.csprojAssemblyReference.cache
+Z:\3 Курс\ТИС\Курсовая\Приложение\Logistics application\Logistics application\obj\Debug\LoginApplication.g.cs
+Z:\3 Курс\ТИС\Курсовая\Приложение\Logistics application\Logistics application\obj\Debug\MainMenu.g.cs
+Z:\3 Курс\ТИС\Курсовая\Приложение\Logistics application\Logistics application\obj\Debug\MainWindow.g.cs
+Z:\3 Курс\ТИС\Курсовая\Приложение\Logistics application\Logistics application\obj\Debug\App.g.cs
+Z:\3 Курс\ТИС\Курсовая\Приложение\Logistics application\Logistics application\obj\Debug\Logistics application_Content.g.cs
+Z:\3 Курс\ТИС\Курсовая\Приложение\Logistics application\Logistics application\obj\Debug\Logistics application_MarkupCompile.cache
+Z:\3 Курс\ТИС\Курсовая\Приложение\Logistics application\Logistics application\obj\Debug\Logistics application_MarkupCompile.lref
+Z:\3 Курс\ТИС\Курсовая\Приложение\Logistics application\Logistics application\obj\Debug\LoginApplication.baml
+Z:\3 Курс\ТИС\Курсовая\Приложение\Logistics application\Logistics application\obj\Debug\MainMenu.baml
+Z:\3 Курс\ТИС\Курсовая\Приложение\Logistics application\Logistics application\obj\Debug\MainWindow.baml
+Z:\3 Курс\ТИС\Курсовая\Приложение\Logistics application\Logistics application\obj\Debug\Logistics application.g.resources
+Z:\3 Курс\ТИС\Курсовая\Приложение\Logistics application\Logistics application\obj\Debug\Logistics_application.Properties.Resources.resources
+Z:\3 Курс\ТИС\Курсовая\Приложение\Logistics application\Logistics application\obj\Debug\Logistics application.csproj.GenerateResource.cache
+Z:\3 Курс\ТИС\Курсовая\Приложение\Logistics application\Logistics application\obj\Debug\Logistics application.csproj.CoreCompileInputs.cache
+Z:\3 Курс\ТИС\Курсовая\Приложение\Logistics application\Logistics application\obj\Debug\Logistics application.csproj.CopyComplete
+Z:\3 Курс\ТИС\Курсовая\Приложение\Logistics application\Logistics application\obj\Debug\Logistics application.exe
+Z:\3 Курс\ТИС\Курсовая\Приложение\Logistics application\Logistics application\obj\Debug\Logistics application.pdb

BIN
Logistics application/obj/Debug/Logistics application.csproj.GenerateResource.cache


BIN
Logistics application/obj/Debug/Logistics application.csprojAssemblyReference.cache


BIN
Logistics application/obj/Debug/Logistics application.exe


BIN
Logistics application/obj/Debug/Logistics application.g.resources


BIN
Logistics application/obj/Debug/Logistics application.pdb


+ 14 - 0
Logistics application/obj/Debug/Logistics application_Content.g.cs

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

+ 2 - 2
Logistics application/obj/Debug/Logistics application_Content.g.i.cs

@@ -8,7 +8,7 @@
 // </auto-generated>
 //------------------------------------------------------------------------------
 
-[assembly: System.Windows.Resources.AssemblyAssociatedContentFileAttribute("tabledatabase.context.tt")]
-[assembly: System.Windows.Resources.AssemblyAssociatedContentFileAttribute("tabledatabase.tt")]
+[assembly: System.Windows.Resources.AssemblyAssociatedContentFileAttribute("datebase.context.tt")]
+[assembly: System.Windows.Resources.AssemblyAssociatedContentFileAttribute("datebase.tt")]
 
 

+ 20 - 0
Logistics application/obj/Debug/Logistics application_MarkupCompile.cache

@@ -0,0 +1,20 @@
+Logistics application
+
+
+winexe
+C#
+.cs
+Z:\3 Курс\ТИС\Курсовая\Приложение\Logistics application\Logistics application\obj\Debug\
+Logistics_application
+none
+false
+DEBUG;TRACE
+Z:\3 Курс\ТИС\Курсовая\Приложение\Logistics application\Logistics application\App.xaml
+3-1406053133
+2-442804305
+18-782876341
+18-2005204088
+LoginApplication.xaml;MainMenu.xaml;MainWindow.xaml;
+
+False
+

+ 4 - 4
Logistics application/obj/Debug/Logistics application_MarkupCompile.i.cache

@@ -10,11 +10,11 @@ none
 false
 DEBUG;TRACE
 Z:\3 Курс\ТИС\Курсовая\Приложение\Logistics application\Logistics application\App.xaml
-11151548125
-2-2139057178
-141798258435
+3-1406053133
+2-442804305
+19-1625235708
 18-2005204088
-MainWindow.xaml;
+LoginApplication.xaml;MainMenu.xaml;MainWindow.xaml;
 
 True
 

+ 1 - 0
Logistics application/obj/Debug/Logistics application_MarkupCompile.i.lref

@@ -1,4 +1,5 @@
 
 
+FZ:\3 Курс\ТИС\Курсовая\Приложение\Logistics application\Logistics application\MainMenu.xaml;;
 FZ:\3 Курс\ТИС\Курсовая\Приложение\Logistics application\Logistics application\MainWindow.xaml;;
 

+ 6 - 0
Logistics application/obj/Debug/Logistics application_MarkupCompile.lref

@@ -0,0 +1,6 @@
+
+
+FZ:\3 Курс\ТИС\Курсовая\Приложение\Logistics application\Logistics application\LoginApplication.xaml;;
+FZ:\3 Курс\ТИС\Курсовая\Приложение\Logistics application\Logistics application\MainMenu.xaml;;
+FZ:\3 Курс\ТИС\Курсовая\Приложение\Logistics application\Logistics application\MainWindow.xaml;;
+

BIN
Logistics application/obj/Debug/Logistics_application.Properties.Resources.resources


BIN
Logistics application/obj/Debug/MainMenu.baml


+ 75 - 0
Logistics application/obj/Debug/MainMenu.g.cs

@@ -0,0 +1,75 @@
+#pragma checksum "..\..\MainMenu.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "8A9FE60A18912332DF807318E23F409EA4A7D9F18674E1F460F4D6D2F87F2408"
+//------------------------------------------------------------------------------
+// <auto-generated>
+//     Этот код создан программой.
+//     Исполняемая версия:4.0.30319.42000
+//
+//     Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
+//     повторной генерации кода.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+using Logistics_application;
+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 Logistics_application {
+    
+    
+    /// <summary>
+    /// MainMenu
+    /// </summary>
+    public partial class MainMenu : System.Windows.Controls.Page, 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("/Logistics application;component/mainmenu.xaml", System.UriKind.Relative);
+            
+            #line 1 "..\..\MainMenu.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
Logistics application/obj/Debug/MainMenu.g.i.cs

@@ -0,0 +1,75 @@
+#pragma checksum "..\..\MainMenu.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "8A9FE60A18912332DF807318E23F409EA4A7D9F18674E1F460F4D6D2F87F2408"
+//------------------------------------------------------------------------------
+// <auto-generated>
+//     Этот код создан программой.
+//     Исполняемая версия:4.0.30319.42000
+//
+//     Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
+//     повторной генерации кода.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+using Logistics_application;
+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 Logistics_application {
+    
+    
+    /// <summary>
+    /// MainMenu
+    /// </summary>
+    public partial class MainMenu : System.Windows.Controls.Page, 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("/Logistics application;component/mainmenu.xaml", System.UriKind.Relative);
+            
+            #line 1 "..\..\MainMenu.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
Logistics application/obj/Debug/MainWindow.baml


+ 89 - 0
Logistics application/obj/Debug/MainWindow.g.cs

@@ -0,0 +1,89 @@
+#pragma checksum "..\..\MainWindow.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "CE04A148CE91A6549D8F0DE9936AC54F4047D5E0669A48E3FAB299646E4AB8B1"
+//------------------------------------------------------------------------------
+// <auto-generated>
+//     Этот код создан программой.
+//     Исполняемая версия:4.0.30319.42000
+//
+//     Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
+//     повторной генерации кода.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+using Logistics_application;
+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 Logistics_application {
+    
+    
+    /// <summary>
+    /// MainWindow
+    /// </summary>
+    public partial class MainWindow : System.Windows.Window, System.Windows.Markup.IComponentConnector {
+        
+        
+        #line 11 "..\..\MainWindow.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.Frame MainFrame;
+        
+        #line default
+        #line hidden
+        
+        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("/Logistics application;component/mainwindow.xaml", System.UriKind.Relative);
+            
+            #line 1 "..\..\MainWindow.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) {
+            switch (connectionId)
+            {
+            case 1:
+            this.MainFrame = ((System.Windows.Controls.Frame)(target));
+            return;
+            }
+            this._contentLoaded = true;
+        }
+    }
+}
+

+ 4 - 23
Logistics application/obj/Debug/MainWindow.g.i.cs

@@ -1,4 +1,4 @@
-#pragma checksum "..\..\MainWindow.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "B6DD53BE1ACF1E247BEEAED9F36FD27B4050FBC238ACD52A82D5AD22AA0B3EA0"
+#pragma checksum "..\..\MainWindow.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "CE04A148CE91A6549D8F0DE9936AC54F4047D5E0669A48E3FAB299646E4AB8B1"
 //------------------------------------------------------------------------------
 // <auto-generated>
 //     Этот код создан программой.
@@ -41,17 +41,9 @@ namespace Logistics_application {
     public partial class MainWindow : System.Windows.Window, System.Windows.Markup.IComponentConnector {
         
         
-        #line 23 "..\..\MainWindow.xaml"
+        #line 11 "..\..\MainWindow.xaml"
         [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
-        internal System.Windows.Controls.TextBox login;
-        
-        #line default
-        #line hidden
-        
-        
-        #line 25 "..\..\MainWindow.xaml"
-        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
-        internal System.Windows.Controls.PasswordBox password;
+        internal System.Windows.Controls.Frame MainFrame;
         
         #line default
         #line hidden
@@ -87,18 +79,7 @@ namespace Logistics_application {
             switch (connectionId)
             {
             case 1:
-            this.login = ((System.Windows.Controls.TextBox)(target));
-            return;
-            case 2:
-            this.password = ((System.Windows.Controls.PasswordBox)(target));
-            return;
-            case 3:
-            
-            #line 26 "..\..\MainWindow.xaml"
-            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.LoginToApplication);
-            
-            #line default
-            #line hidden
+            this.MainFrame = ((System.Windows.Controls.Frame)(target));
             return;
             }
             this._contentLoaded = true;

+ 0 - 0
Logistics application/obj/Debug/TempPE/Datebase.Context.cs.dll


BIN
Logistics application/obj/Debug/TempPE/Datebase.Designer.cs.dll


BIN
Logistics application/obj/Debug/TempPE/Datebase.cs.dll


BIN
Logistics application/obj/Debug/TempPE/Properties.Resources.Designer.cs.dll


BIN
Logistics application/obj/Debug/TempPE/TableDatabase.Designer.cs.dll


BIN
Logistics application/obj/Debug/TempPE/TableDatabase.cs.dll


+ 88 - 0
Logistics application/obj/Debug/edmxResourcesToEmbed/Datebase.csdl

@@ -0,0 +1,88 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Schema Namespace="gr682_ggi3Model" 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="Addressee">
+    <Key>
+      <PropertyRef Name="ID_Addressee" />
+    </Key>
+    <Property Name="ID_Addressee" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+    <Property Name="Surname" Type="String" MaxLength="15" FixedLength="false" Unicode="true" Nullable="false" />
+    <Property Name="Name" Type="String" MaxLength="15" FixedLength="false" Unicode="true" Nullable="false" />
+    <Property Name="MiddleName" Type="String" MaxLength="15" FixedLength="false" Unicode="true" Nullable="false" />
+    <Property Name="PhotoNumber" Type="String" MaxLength="10" FixedLength="true" Unicode="false" Nullable="false" />
+    <Property Name="City" Type="String" MaxLength="15" FixedLength="false" Unicode="true" Nullable="false" />
+  </EntityType>
+  <EntityType Name="Car">
+    <Key>
+      <PropertyRef Name="ID_Car" />
+    </Key>
+    <Property Name="ID_Car" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+    <Property Name="MachineBrand" Type="String" MaxLength="15" FixedLength="false" Unicode="true" />
+    <Property Name="MachineType" Type="String" MaxLength="15" FixedLength="false" Unicode="true" />
+  </EntityType>
+  <EntityType Name="Driver">
+    <Key>
+      <PropertyRef Name="ID_Driver" />
+    </Key>
+    <Property Name="ID_Driver" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+    <Property Name="Surname" Type="String" MaxLength="15" FixedLength="false" Unicode="true" Nullable="false" />
+    <Property Name="Name" Type="String" MaxLength="15" FixedLength="false" Unicode="true" Nullable="false" />
+    <Property Name="MiddleName" Type="String" MaxLength="15" FixedLength="false" Unicode="true" Nullable="false" />
+    <Property Name="ID_Car" Type="Int32" />
+    <Property Name="BrigadeNumber" Type="Int32" />
+  </EntityType>
+  <EntityType Name="Operator">
+    <Key>
+      <PropertyRef Name="ID_Operator" />
+    </Key>
+    <Property Name="ID_Operator" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+    <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="Surname" Type="String" MaxLength="15" FixedLength="false" Unicode="true" Nullable="false" />
+    <Property Name="Name" Type="String" MaxLength="15" FixedLength="false" Unicode="true" Nullable="false" />
+    <Property Name="MiddleName" Type="String" MaxLength="15" FixedLength="false" Unicode="true" Nullable="false" />
+  </EntityType>
+  <EntityType Name="Order">
+    <Key>
+      <PropertyRef Name="ID_Order" />
+    </Key>
+    <Property Name="ID_Order" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+    <Property Name="OrderNumber" Type="Int32" Nullable="false" />
+    <Property Name="ID_Driver" Type="Int32" Nullable="false" />
+    <Property Name="ID_Sender" Type="Int32" Nullable="false" />
+    <Property Name="SenderCuty" Type="String" MaxLength="15" FixedLength="false" Unicode="true" Nullable="false" />
+    <Property Name="DepartureDate" Type="DateTime" Nullable="false" Precision="0" />
+    <Property Name="ID_Addressee" Type="Int32" Nullable="false" />
+    <Property Name="AddresseeCity" Type="String" MaxLength="15" FixedLength="false" Unicode="true" Nullable="false" />
+    <Property Name="DateOfAddressee" Type="DateTime" Nullable="false" Precision="0" />
+  </EntityType>
+  <EntityType Name="Route">
+    <Key>
+      <PropertyRef Name="ID_Route" />
+    </Key>
+    <Property Name="ID_Route" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+    <Property Name="OrderNumber" Type="Int32" Nullable="false" />
+    <Property Name="SenderCity" Type="String" MaxLength="15" FixedLength="false" Unicode="true" Nullable="false" />
+    <Property Name="AddresseeCity" Type="String" MaxLength="15" FixedLength="false" Unicode="true" Nullable="false" />
+    <Property Name="ShordRoute" Type="String" MaxLength="100" FixedLength="false" Unicode="true" Nullable="false" />
+  </EntityType>
+  <EntityType Name="Sender">
+    <Key>
+      <PropertyRef Name="ID_Sender" />
+    </Key>
+    <Property Name="ID_Sender" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+    <Property Name="Surname" Type="String" MaxLength="15" FixedLength="false" Unicode="true" Nullable="false" />
+    <Property Name="Name" Type="String" MaxLength="15" FixedLength="false" Unicode="true" Nullable="false" />
+    <Property Name="MiddleName" Type="String" MaxLength="15" FixedLength="false" Unicode="true" Nullable="false" />
+    <Property Name="PhoneNumber" Type="String" MaxLength="10" FixedLength="true" Unicode="false" Nullable="false" />
+    <Property Name="City" Type="String" MaxLength="15" FixedLength="false" Unicode="true" Nullable="false" />
+  </EntityType>
+  <EntityContainer Name="gr682_ggi3Entities1" annotation:LazyLoadingEnabled="true">
+    <EntitySet Name="Addressee" EntityType="Self.Addressee" />
+    <EntitySet Name="Car" EntityType="Self.Car" />
+    <EntitySet Name="Driver" EntityType="Self.Driver" />
+    <EntitySet Name="Operator" EntityType="Self.Operator" />
+    <EntitySet Name="Order" EntityType="Self.Order" />
+    <EntitySet Name="Route" EntityType="Self.Route" />
+    <EntitySet Name="Sender" EntityType="Self.Sender" />
+  </EntityContainer>
+</Schema>

+ 88 - 0
Logistics application/obj/Debug/edmxResourcesToEmbed/Datebase.msl

@@ -0,0 +1,88 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Mapping Space="C-S" xmlns="http://schemas.microsoft.com/ado/2009/11/mapping/cs">
+  <EntityContainerMapping StorageEntityContainer="Хранилище gr682_ggi3ModelContainer" CdmEntityContainer="gr682_ggi3Entities1">
+    <EntitySetMapping Name="Addressee">
+      <EntityTypeMapping TypeName="gr682_ggi3Model.Addressee">
+        <MappingFragment StoreEntitySet="Addressee">
+          <ScalarProperty Name="ID_Addressee" ColumnName="ID_Addressee" />
+          <ScalarProperty Name="Surname" ColumnName="Surname" />
+          <ScalarProperty Name="Name" ColumnName="Name" />
+          <ScalarProperty Name="MiddleName" ColumnName="MiddleName" />
+          <ScalarProperty Name="PhotoNumber" ColumnName="PhotoNumber" />
+          <ScalarProperty Name="City" ColumnName="City" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="Car">
+      <EntityTypeMapping TypeName="gr682_ggi3Model.Car">
+        <MappingFragment StoreEntitySet="Car">
+          <ScalarProperty Name="ID_Car" ColumnName="ID_Car" />
+          <ScalarProperty Name="MachineBrand" ColumnName="MachineBrand" />
+          <ScalarProperty Name="MachineType" ColumnName="MachineType" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="Driver">
+      <EntityTypeMapping TypeName="gr682_ggi3Model.Driver">
+        <MappingFragment StoreEntitySet="Driver">
+          <ScalarProperty Name="ID_Driver" ColumnName="ID_Driver" />
+          <ScalarProperty Name="Surname" ColumnName="Surname" />
+          <ScalarProperty Name="Name" ColumnName="Name" />
+          <ScalarProperty Name="MiddleName" ColumnName="MiddleName" />
+          <ScalarProperty Name="ID_Car" ColumnName="ID_Car" />
+          <ScalarProperty Name="BrigadeNumber" ColumnName="BrigadeNumber" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="Operator">
+      <EntityTypeMapping TypeName="gr682_ggi3Model.Operator">
+        <MappingFragment StoreEntitySet="Operator">
+          <ScalarProperty Name="ID_Operator" ColumnName="ID_Operator" />
+          <ScalarProperty Name="Login" ColumnName="Login" />
+          <ScalarProperty Name="Password" ColumnName="Password" />
+          <ScalarProperty Name="Surname" ColumnName="Surname" />
+          <ScalarProperty Name="Name" ColumnName="Name" />
+          <ScalarProperty Name="MiddleName" ColumnName="MiddleName" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="Order">
+      <EntityTypeMapping TypeName="gr682_ggi3Model.Order">
+        <MappingFragment StoreEntitySet="Order">
+          <ScalarProperty Name="ID_Order" ColumnName="ID_Order" />
+          <ScalarProperty Name="OrderNumber" ColumnName="OrderNumber" />
+          <ScalarProperty Name="ID_Driver" ColumnName="ID_Driver" />
+          <ScalarProperty Name="ID_Sender" ColumnName="ID_Sender" />
+          <ScalarProperty Name="SenderCuty" ColumnName="SenderCuty" />
+          <ScalarProperty Name="DepartureDate" ColumnName="DepartureDate" />
+          <ScalarProperty Name="ID_Addressee" ColumnName="ID_Addressee" />
+          <ScalarProperty Name="AddresseeCity" ColumnName="AddresseeCity" />
+          <ScalarProperty Name="DateOfAddressee" ColumnName="DateOfAddressee" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="Route">
+      <EntityTypeMapping TypeName="gr682_ggi3Model.Route">
+        <MappingFragment StoreEntitySet="Route">
+          <ScalarProperty Name="ID_Route" ColumnName="ID_Route" />
+          <ScalarProperty Name="OrderNumber" ColumnName="OrderNumber" />
+          <ScalarProperty Name="SenderCity" ColumnName="SenderCity" />
+          <ScalarProperty Name="AddresseeCity" ColumnName="AddresseeCity" />
+          <ScalarProperty Name="ShordRoute" ColumnName="ShordRoute" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="Sender">
+      <EntityTypeMapping TypeName="gr682_ggi3Model.Sender">
+        <MappingFragment StoreEntitySet="Sender">
+          <ScalarProperty Name="ID_Sender" ColumnName="ID_Sender" />
+          <ScalarProperty Name="Surname" ColumnName="Surname" />
+          <ScalarProperty Name="Name" ColumnName="Name" />
+          <ScalarProperty Name="MiddleName" ColumnName="MiddleName" />
+          <ScalarProperty Name="PhoneNumber" ColumnName="PhoneNumber" />
+          <ScalarProperty Name="City" ColumnName="City" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+  </EntityContainerMapping>
+</Mapping>

+ 88 - 0
Logistics application/obj/Debug/edmxResourcesToEmbed/Datebase.ssdl

@@ -0,0 +1,88 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Schema Namespace="Хранилище gr682_ggi3Model" 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="Addressee">
+    <Key>
+      <PropertyRef Name="ID_Addressee" />
+    </Key>
+    <Property Name="ID_Addressee" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+    <Property Name="Surname" Type="nvarchar" MaxLength="15" Nullable="false" />
+    <Property Name="Name" Type="nvarchar" MaxLength="15" Nullable="false" />
+    <Property Name="MiddleName" Type="nvarchar" MaxLength="15" Nullable="false" />
+    <Property Name="PhotoNumber" Type="char" MaxLength="10" Nullable="false" />
+    <Property Name="City" Type="nvarchar" MaxLength="15" Nullable="false" />
+  </EntityType>
+  <EntityType Name="Car">
+    <Key>
+      <PropertyRef Name="ID_Car" />
+    </Key>
+    <Property Name="ID_Car" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+    <Property Name="MachineBrand" Type="nvarchar" MaxLength="15" />
+    <Property Name="MachineType" Type="nvarchar" MaxLength="15" />
+  </EntityType>
+  <EntityType Name="Driver">
+    <Key>
+      <PropertyRef Name="ID_Driver" />
+    </Key>
+    <Property Name="ID_Driver" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+    <Property Name="Surname" Type="nvarchar" MaxLength="15" Nullable="false" />
+    <Property Name="Name" Type="nvarchar" MaxLength="15" Nullable="false" />
+    <Property Name="MiddleName" Type="nvarchar" MaxLength="15" Nullable="false" />
+    <Property Name="ID_Car" Type="int" />
+    <Property Name="BrigadeNumber" Type="int" />
+  </EntityType>
+  <EntityType Name="Operator">
+    <Key>
+      <PropertyRef Name="ID_Operator" />
+    </Key>
+    <Property Name="ID_Operator" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+    <Property Name="Login" Type="nvarchar" MaxLength="50" Nullable="false" />
+    <Property Name="Password" Type="nvarchar" MaxLength="50" Nullable="false" />
+    <Property Name="Surname" Type="nvarchar" MaxLength="15" Nullable="false" />
+    <Property Name="Name" Type="nvarchar" MaxLength="15" Nullable="false" />
+    <Property Name="MiddleName" Type="nvarchar" MaxLength="15" Nullable="false" />
+  </EntityType>
+  <EntityType Name="Order">
+    <Key>
+      <PropertyRef Name="ID_Order" />
+    </Key>
+    <Property Name="ID_Order" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+    <Property Name="OrderNumber" Type="int" Nullable="false" />
+    <Property Name="ID_Driver" Type="int" Nullable="false" />
+    <Property Name="ID_Sender" Type="int" Nullable="false" />
+    <Property Name="SenderCuty" Type="nvarchar" MaxLength="15" Nullable="false" />
+    <Property Name="DepartureDate" Type="date" Nullable="false" />
+    <Property Name="ID_Addressee" Type="int" Nullable="false" />
+    <Property Name="AddresseeCity" Type="nvarchar" MaxLength="15" Nullable="false" />
+    <Property Name="DateOfAddressee" Type="date" Nullable="false" />
+  </EntityType>
+  <EntityType Name="Route">
+    <Key>
+      <PropertyRef Name="ID_Route" />
+    </Key>
+    <Property Name="ID_Route" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+    <Property Name="OrderNumber" Type="int" Nullable="false" />
+    <Property Name="SenderCity" Type="nvarchar" MaxLength="15" Nullable="false" />
+    <Property Name="AddresseeCity" Type="nvarchar" MaxLength="15" Nullable="false" />
+    <Property Name="ShordRoute" Type="nvarchar" MaxLength="100" Nullable="false" />
+  </EntityType>
+  <EntityType Name="Sender">
+    <Key>
+      <PropertyRef Name="ID_Sender" />
+    </Key>
+    <Property Name="ID_Sender" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+    <Property Name="Surname" Type="nvarchar" MaxLength="15" Nullable="false" />
+    <Property Name="Name" Type="nvarchar" MaxLength="15" Nullable="false" />
+    <Property Name="MiddleName" Type="nvarchar" MaxLength="15" Nullable="false" />
+    <Property Name="PhoneNumber" Type="char" MaxLength="10" Nullable="false" />
+    <Property Name="City" Type="nvarchar" MaxLength="15" Nullable="false" />
+  </EntityType>
+  <EntityContainer Name="Хранилище gr682_ggi3ModelContainer">
+    <EntitySet Name="Addressee" EntityType="Self.Addressee" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="Car" EntityType="Self.Car" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="Driver" EntityType="Self.Driver" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="Operator" EntityType="Self.Operator" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="Order" EntityType="Self.Order" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="Route" EntityType="Self.Route" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="Sender" EntityType="Self.Sender" Schema="dbo" store:Type="Tables" />
+  </EntityContainer>
+</Schema>