diff --git a/AbstractSushiBarDataModels/AbstractSushiBarDataModels.sln b/AbstractSushiBarDataModels/AbstractSushiBarDataModels.sln new file mode 100644 index 0000000..4367961 --- /dev/null +++ b/AbstractSushiBarDataModels/AbstractSushiBarDataModels.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.7.34031.279 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AbstractSushiBarDataModels", "AbstractSushiBarDataModels\AbstractSushiBarDataModels.csproj", "{3CA94B77-00EA-45B6-BD88-BDD3EAD3C887}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {3CA94B77-00EA-45B6-BD88-BDD3EAD3C887}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {3CA94B77-00EA-45B6-BD88-BDD3EAD3C887}.Debug|Any CPU.Build.0 = Debug|Any CPU + {3CA94B77-00EA-45B6-BD88-BDD3EAD3C887}.Release|Any CPU.ActiveCfg = Release|Any CPU + {3CA94B77-00EA-45B6-BD88-BDD3EAD3C887}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {73292010-42D8-482B-90B6-CD302C7EA849} + EndGlobalSection +EndGlobal diff --git a/AbstractSushiBarDataModels/AbstractSushiBarDataModels/Enums/OrderStatus.cs b/AbstractSushiBarDataModels/AbstractSushiBarDataModels/Enums/OrderStatus.cs new file mode 100644 index 0000000..32b3cf1 --- /dev/null +++ b/AbstractSushiBarDataModels/AbstractSushiBarDataModels/Enums/OrderStatus.cs @@ -0,0 +1,11 @@ +namespace AbstractSushiBarDataModels.Enums +{ + public enum OrderStatus + { + Неизвестен = -1, + Принят = 0, + Выполняется = 1, + Готов = 2, + Выдан = 3 + } +} diff --git a/AbstractSushiBarDataModels/AbstractSushiBarDataModels/IId.cs b/AbstractSushiBarDataModels/AbstractSushiBarDataModels/IId.cs new file mode 100644 index 0000000..758b3fd --- /dev/null +++ b/AbstractSushiBarDataModels/AbstractSushiBarDataModels/IId.cs @@ -0,0 +1,7 @@ +namespace AbstractSushiBarDataModels +{ + public interface IId + { + int Id { get; } + } +} diff --git a/AbstractSushiBarDataModels/AbstractSushiBarDataModels/Models/IComponentModel.cs b/AbstractSushiBarDataModels/AbstractSushiBarDataModels/Models/IComponentModel.cs new file mode 100644 index 0000000..0cb698d --- /dev/null +++ b/AbstractSushiBarDataModels/AbstractSushiBarDataModels/Models/IComponentModel.cs @@ -0,0 +1,8 @@ +namespace AbstractSushiBarDataModels.Models +{ + internal interface IComponentModel : IId + { + string ComponentName { get; } + double Cost { get; } + } +} diff --git a/AbstractSushiBarDataModels/AbstractSushiBarDataModels/Models/IOrderModel.cs b/AbstractSushiBarDataModels/AbstractSushiBarDataModels/Models/IOrderModel.cs new file mode 100644 index 0000000..975b9fc --- /dev/null +++ b/AbstractSushiBarDataModels/AbstractSushiBarDataModels/Models/IOrderModel.cs @@ -0,0 +1,14 @@ +using AbstractSushiBarDataModels.Enums; + +namespace AbstractSushiBarDataModels.Models +{ + internal interface IOrderModel : IId + { + int ProductId { get; } + int Count { get; } + double Sum { get; } + OrderStatus Status { get; } + DateTime DateCreate { get; } + DateTime? DateImplement { get; } + } +} diff --git a/AbstractSushiBarDataModels/AbstractSushiBarDataModels/Models/IProductModel.cs b/AbstractSushiBarDataModels/AbstractSushiBarDataModels/Models/IProductModel.cs new file mode 100644 index 0000000..846012f --- /dev/null +++ b/AbstractSushiBarDataModels/AbstractSushiBarDataModels/Models/IProductModel.cs @@ -0,0 +1,12 @@ +using System; +using System.Collections.Generic; +using System.Linq; +namespace AbstractSushiBarDataModels.Models +{ + internal interface IProductModel : IId + { + string ProductName { get; } + double Price { get; } + Dictionary ProductComponents { get; } + } +}