From 9874fca4e06e143db945f5e56fb129c3e9bbf00e Mon Sep 17 00:00:00 2001 From: malimova Date: Thu, 15 Feb 2024 17:09:53 +0400 Subject: [PATCH] =?UTF-8?q?=D0=A1=D0=BE=D0=B7=D0=B4=D0=B0=D0=BD=D1=8B=20?= =?UTF-8?q?=D1=8D=D0=BB=D0=B5=D0=BC=D0=B5=D0=BD=D1=82=D1=8B=20=D0=B4=D0=BB?= =?UTF-8?q?=D1=8F=20ConfectioneryDataModels?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Confectionery/Confectionery.sln | 6 ++++++ .../ConfectioneryDataModels/Class1.cs | 7 +++++++ .../ConfectioneryDataModels.csproj | 9 +++++++++ .../IComponentModel.cs | 14 ++++++++++++++ Confectionery/ConfectioneryDataModels/IId.cs | 13 +++++++++++++ .../ConfectioneryDataModels/IOrderModel.cs | 19 +++++++++++++++++++ .../ConfectioneryDataModels/IPastryModel.cs | 15 +++++++++++++++ .../ConfectioneryDataModels/OrderStatus.cs | 17 +++++++++++++++++ 8 files changed, 100 insertions(+) create mode 100644 Confectionery/ConfectioneryDataModels/Class1.cs create mode 100644 Confectionery/ConfectioneryDataModels/ConfectioneryDataModels.csproj create mode 100644 Confectionery/ConfectioneryDataModels/IComponentModel.cs create mode 100644 Confectionery/ConfectioneryDataModels/IId.cs create mode 100644 Confectionery/ConfectioneryDataModels/IOrderModel.cs create mode 100644 Confectionery/ConfectioneryDataModels/IPastryModel.cs create mode 100644 Confectionery/ConfectioneryDataModels/OrderStatus.cs diff --git a/Confectionery/Confectionery.sln b/Confectionery/Confectionery.sln index caabd78..d36799f 100644 --- a/Confectionery/Confectionery.sln +++ b/Confectionery/Confectionery.sln @@ -5,6 +5,8 @@ VisualStudioVersion = 17.5.33424.131 MinimumVisualStudioVersion = 10.0.40219.1 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Confectionery", "Confectionery\Confectionery.csproj", "{3FBA3531-D080-42B2-869B-AF42CCF9C770}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConfectioneryDataModels", "ConfectioneryDataModels\ConfectioneryDataModels.csproj", "{B1066AB3-A781-49D8-9629-DAEEB7AEB926}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -15,6 +17,10 @@ Global {3FBA3531-D080-42B2-869B-AF42CCF9C770}.Debug|Any CPU.Build.0 = Debug|Any CPU {3FBA3531-D080-42B2-869B-AF42CCF9C770}.Release|Any CPU.ActiveCfg = Release|Any CPU {3FBA3531-D080-42B2-869B-AF42CCF9C770}.Release|Any CPU.Build.0 = Release|Any CPU + {B1066AB3-A781-49D8-9629-DAEEB7AEB926}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {B1066AB3-A781-49D8-9629-DAEEB7AEB926}.Debug|Any CPU.Build.0 = Debug|Any CPU + {B1066AB3-A781-49D8-9629-DAEEB7AEB926}.Release|Any CPU.ActiveCfg = Release|Any CPU + {B1066AB3-A781-49D8-9629-DAEEB7AEB926}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/Confectionery/ConfectioneryDataModels/Class1.cs b/Confectionery/ConfectioneryDataModels/Class1.cs new file mode 100644 index 0000000..84cdc69 --- /dev/null +++ b/Confectionery/ConfectioneryDataModels/Class1.cs @@ -0,0 +1,7 @@ +namespace ConfectioneryDataModels +{ + public class Class1 + { + + } +} \ No newline at end of file diff --git a/Confectionery/ConfectioneryDataModels/ConfectioneryDataModels.csproj b/Confectionery/ConfectioneryDataModels/ConfectioneryDataModels.csproj new file mode 100644 index 0000000..132c02c --- /dev/null +++ b/Confectionery/ConfectioneryDataModels/ConfectioneryDataModels.csproj @@ -0,0 +1,9 @@ + + + + net6.0 + enable + enable + + + diff --git a/Confectionery/ConfectioneryDataModels/IComponentModel.cs b/Confectionery/ConfectioneryDataModels/IComponentModel.cs new file mode 100644 index 0000000..534429e --- /dev/null +++ b/Confectionery/ConfectioneryDataModels/IComponentModel.cs @@ -0,0 +1,14 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ConfectioneryDataModels.Models +{ + public interface IComponentModel : IId + { + string ComponentName { get; } + double Cost { get; } + } +} diff --git a/Confectionery/ConfectioneryDataModels/IId.cs b/Confectionery/ConfectioneryDataModels/IId.cs new file mode 100644 index 0000000..fc8cada --- /dev/null +++ b/Confectionery/ConfectioneryDataModels/IId.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ConfectioneryDataModels +{ + public interface IId + { + int Id { get; } + } +} diff --git a/Confectionery/ConfectioneryDataModels/IOrderModel.cs b/Confectionery/ConfectioneryDataModels/IOrderModel.cs new file mode 100644 index 0000000..3eed2d5 --- /dev/null +++ b/Confectionery/ConfectioneryDataModels/IOrderModel.cs @@ -0,0 +1,19 @@ +using ConfectioneryDataModels.Enums; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ConfectioneryDataModels.Models +{ + public interface IOrderModel : IId + { + int ProductId { get; } + int Count { get; } + double Sum { get; } + OrderStatus Status { get; } + DateTime DateCreate { get; } + DateTime? DateImplement { get; } + } +} diff --git a/Confectionery/ConfectioneryDataModels/IPastryModel.cs b/Confectionery/ConfectioneryDataModels/IPastryModel.cs new file mode 100644 index 0000000..2f91f56 --- /dev/null +++ b/Confectionery/ConfectioneryDataModels/IPastryModel.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ConfectioneryDataModels.Models +{ + internal interface IPastryModel : IId + { + string PastryName { get; } + double Price { get; } + Dictionary ProductComponents { get; } + } +} diff --git a/Confectionery/ConfectioneryDataModels/OrderStatus.cs b/Confectionery/ConfectioneryDataModels/OrderStatus.cs new file mode 100644 index 0000000..3dd1034 --- /dev/null +++ b/Confectionery/ConfectioneryDataModels/OrderStatus.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ConfectioneryDataModels.Enums +{ + public enum OrderStatus + { + Неизвестен = -1, + Принят = 0, + Выполняется = 1, + Готов = 2, + Выдан = 3 + } +}