diff --git a/SushiBar/SushiBar.sln b/SushiBar/SushiBar.sln new file mode 100644 index 0000000..1a55be4 --- /dev/null +++ b/SushiBar/SushiBar.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.9.34714.143 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SushiBarView", "SushiBar\SushiBarView.csproj", "{2B4A5A98-6D06-4461-8D41-363CED12B9C2}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SushiBarDataModels", "SushiBarDataModels\SushiBarDataModels.csproj", "{C373ED9F-747E-47D0-9B7C-B65E062CD537}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {2B4A5A98-6D06-4461-8D41-363CED12B9C2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {2B4A5A98-6D06-4461-8D41-363CED12B9C2}.Debug|Any CPU.Build.0 = Debug|Any CPU + {2B4A5A98-6D06-4461-8D41-363CED12B9C2}.Release|Any CPU.ActiveCfg = Release|Any CPU + {2B4A5A98-6D06-4461-8D41-363CED12B9C2}.Release|Any CPU.Build.0 = Release|Any CPU + {C373ED9F-747E-47D0-9B7C-B65E062CD537}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {C373ED9F-747E-47D0-9B7C-B65E062CD537}.Debug|Any CPU.Build.0 = Debug|Any CPU + {C373ED9F-747E-47D0-9B7C-B65E062CD537}.Release|Any CPU.ActiveCfg = Release|Any CPU + {C373ED9F-747E-47D0-9B7C-B65E062CD537}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {86A1AF32-AD3E-4D5E-B57B-4AE61FD58DF7} + EndGlobalSection +EndGlobal diff --git a/SushiBar/SushiBar/Program.cs b/SushiBar/SushiBar/Program.cs new file mode 100644 index 0000000..402417b --- /dev/null +++ b/SushiBar/SushiBar/Program.cs @@ -0,0 +1,17 @@ +namespace SushiBar +{ + internal static class Program + { + /// + /// The main entry point for the application. + /// + [STAThread] + static void Main() + { + // To customize application configuration such as set high DPI settings or default font, + // see https://aka.ms/applicationconfiguration. + ApplicationConfiguration.Initialize(); + Application.Run(new Form1()); + } + } +} \ No newline at end of file diff --git a/SushiBar/SushiBar/SushiBarView.csproj b/SushiBar/SushiBar/SushiBarView.csproj new file mode 100644 index 0000000..663fdb8 --- /dev/null +++ b/SushiBar/SushiBar/SushiBarView.csproj @@ -0,0 +1,11 @@ + + + + WinExe + net8.0-windows + enable + true + enable + + + \ No newline at end of file diff --git a/SushiBar/SushiBarDataModels/Enum/TaskStatus.cs b/SushiBar/SushiBarDataModels/Enum/TaskStatus.cs new file mode 100644 index 0000000..3df2c2b --- /dev/null +++ b/SushiBar/SushiBarDataModels/Enum/TaskStatus.cs @@ -0,0 +1,16 @@ + +namespace SushiBarDataModels.Enum +{ + public enum TaskStatus + { + Неизвестен = -1, + + Принят = 0, + + Выполняется = 1, + + Готов = 2, + + Выдан = 3 + } +} diff --git a/SushiBar/SushiBarDataModels/IId.cs b/SushiBar/SushiBarDataModels/IId.cs new file mode 100644 index 0000000..ae2dcff --- /dev/null +++ b/SushiBar/SushiBarDataModels/IId.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace SushiBarDataModels +{ + public interface IId + { + int Id { get; } + } +} diff --git a/SushiBar/SushiBarDataModels/Models/IBuyerModel.cs b/SushiBar/SushiBarDataModels/Models/IBuyerModel.cs new file mode 100644 index 0000000..e805a83 --- /dev/null +++ b/SushiBar/SushiBarDataModels/Models/IBuyerModel.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace SushiBarDataModels.Models +{ + public interface IBuyerModel : IId + { + string BuyerName { get; } + + DateTime? BuyerBirthDate { get; } + } +} diff --git a/SushiBar/SushiBarDataModels/Models/ICookModel.cs b/SushiBar/SushiBarDataModels/Models/ICookModel.cs new file mode 100644 index 0000000..47d7efc --- /dev/null +++ b/SushiBar/SushiBarDataModels/Models/ICookModel.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace SushiBarDataModels.Models +{ + public interface ICookModel : IId + { + string CookName { get; } + string CookSurname { get; } + int Experience { get; } + string PhoneNumber { get; } + string Passport { get; } + } +} diff --git a/SushiBar/SushiBarDataModels/Models/IMenuModel.cs b/SushiBar/SushiBarDataModels/Models/IMenuModel.cs new file mode 100644 index 0000000..f48ed4a --- /dev/null +++ b/SushiBar/SushiBarDataModels/Models/IMenuModel.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace SushiBarDataModels.Models +{ + public interface IMenuModel : IId + { + string FoodName { get; } + + string Description { get; } + + double Price { get; } + } +} diff --git a/SushiBar/SushiBarDataModels/Models/IPlaceModel.cs b/SushiBar/SushiBarDataModels/Models/IPlaceModel.cs new file mode 100644 index 0000000..0127d9e --- /dev/null +++ b/SushiBar/SushiBarDataModels/Models/IPlaceModel.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace SushiBarDataModels.Models +{ + public interface IPlaceModel : IId + { + int PlaceNumber { get; } + + int CountPlaces { get; } + } +} diff --git a/SushiBar/SushiBarDataModels/Models/ITaskModel.cs b/SushiBar/SushiBarDataModels/Models/ITaskModel.cs new file mode 100644 index 0000000..dce0792 --- /dev/null +++ b/SushiBar/SushiBarDataModels/Models/ITaskModel.cs @@ -0,0 +1,14 @@ +using SushiBarDataModels.Enum; + +namespace SushiBarDataModels.Models +{ + public interface ITaskModel : IId + { + DateTime TaskDate { get; } + Enum.TaskStatus Status { get; } + double FullPrice { get; } + int PlaceId { get; } + int CookId { get; } + int BuyerId { get; } + } +} diff --git a/SushiBar/SushiBarDataModels/SushiBarDataModels.csproj b/SushiBar/SushiBarDataModels/SushiBarDataModels.csproj new file mode 100644 index 0000000..fa71b7a --- /dev/null +++ b/SushiBar/SushiBarDataModels/SushiBarDataModels.csproj @@ -0,0 +1,9 @@ + + + + net8.0 + enable + enable + + +