From c53a1e3b6a3fb9c89689bc085fcc27ae166831ee Mon Sep 17 00:00:00 2001 From: dasha Date: Tue, 28 Mar 2023 14:51:57 +0400 Subject: [PATCH] =?UTF-8?q?=D0=A1=D0=BE=D0=B7=D0=B4=D0=B0=D0=BD=D0=B8?= =?UTF-8?q?=D0=B5=20=D0=BC=D0=BE=D0=B4=D0=B5=D0=BB=D0=B5=D0=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- BeautySaloon/BeautySaloon.sln | 6 ++++++ .../BeautySaloonDataModels.csproj | 9 +++++++++ .../BeautySaloonDataModels/Models/IClientModel.cs | 12 ++++++++++++ .../BeautySaloonDataModels/Models/IEmployeeModel.cs | 12 ++++++++++++ .../BeautySaloonDataModels/Models/IOrderModel.cs | 11 +++++++++++ .../BeautySaloonDataModels/Models/IPositionModel.cs | 8 ++++++++ .../BeautySaloonDataModels/Models/IServiceModel.cs | 9 +++++++++ 7 files changed, 67 insertions(+) create mode 100644 BeautySaloon/BeautySaloonDataModels/BeautySaloonDataModels.csproj create mode 100644 BeautySaloon/BeautySaloonDataModels/Models/IClientModel.cs create mode 100644 BeautySaloon/BeautySaloonDataModels/Models/IEmployeeModel.cs create mode 100644 BeautySaloon/BeautySaloonDataModels/Models/IOrderModel.cs create mode 100644 BeautySaloon/BeautySaloonDataModels/Models/IPositionModel.cs create mode 100644 BeautySaloon/BeautySaloonDataModels/Models/IServiceModel.cs diff --git a/BeautySaloon/BeautySaloon.sln b/BeautySaloon/BeautySaloon.sln index 366ad95..346cccf 100644 --- a/BeautySaloon/BeautySaloon.sln +++ b/BeautySaloon/BeautySaloon.sln @@ -5,6 +5,8 @@ VisualStudioVersion = 17.3.32929.385 MinimumVisualStudioVersion = 10.0.40219.1 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BeautySaloonView", "BeautySaloonView\BeautySaloonView.csproj", "{4098AFA1-025D-4259-A4FD-4546A533DE60}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BeautySaloonDataModels", "BeautySaloonDataModels\BeautySaloonDataModels.csproj", "{A83AC6FD-F6BD-4BD2-AC69-3BB5BA30FF7D}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -15,6 +17,10 @@ Global {4098AFA1-025D-4259-A4FD-4546A533DE60}.Debug|Any CPU.Build.0 = Debug|Any CPU {4098AFA1-025D-4259-A4FD-4546A533DE60}.Release|Any CPU.ActiveCfg = Release|Any CPU {4098AFA1-025D-4259-A4FD-4546A533DE60}.Release|Any CPU.Build.0 = Release|Any CPU + {A83AC6FD-F6BD-4BD2-AC69-3BB5BA30FF7D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {A83AC6FD-F6BD-4BD2-AC69-3BB5BA30FF7D}.Debug|Any CPU.Build.0 = Debug|Any CPU + {A83AC6FD-F6BD-4BD2-AC69-3BB5BA30FF7D}.Release|Any CPU.ActiveCfg = Release|Any CPU + {A83AC6FD-F6BD-4BD2-AC69-3BB5BA30FF7D}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/BeautySaloon/BeautySaloonDataModels/BeautySaloonDataModels.csproj b/BeautySaloon/BeautySaloonDataModels/BeautySaloonDataModels.csproj new file mode 100644 index 0000000..27ac386 --- /dev/null +++ b/BeautySaloon/BeautySaloonDataModels/BeautySaloonDataModels.csproj @@ -0,0 +1,9 @@ + + + + net6.0 + enable + enable + + + diff --git a/BeautySaloon/BeautySaloonDataModels/Models/IClientModel.cs b/BeautySaloon/BeautySaloonDataModels/Models/IClientModel.cs new file mode 100644 index 0000000..f7385c4 --- /dev/null +++ b/BeautySaloon/BeautySaloonDataModels/Models/IClientModel.cs @@ -0,0 +1,12 @@ +namespace BeautySaloonDataModels.Models +{ + public interface IClientModel + { + int Id { get; } + string Name { get; } + string Surname { get; } + string Patronymic { get; } + string Phone { get; } + List Orders { get; } + } +} diff --git a/BeautySaloon/BeautySaloonDataModels/Models/IEmployeeModel.cs b/BeautySaloon/BeautySaloonDataModels/Models/IEmployeeModel.cs new file mode 100644 index 0000000..2893bb5 --- /dev/null +++ b/BeautySaloon/BeautySaloonDataModels/Models/IEmployeeModel.cs @@ -0,0 +1,12 @@ +namespace BeautySaloonDataModels.Models +{ + public interface IEmployeeModel + { + int Id { get; } + string Name { get; } + string Surname { get; } + string Patronymic { get; } + string Phone { get; } + int PositionId { get; } + } +} diff --git a/BeautySaloon/BeautySaloonDataModels/Models/IOrderModel.cs b/BeautySaloon/BeautySaloonDataModels/Models/IOrderModel.cs new file mode 100644 index 0000000..a4ec9a0 --- /dev/null +++ b/BeautySaloon/BeautySaloonDataModels/Models/IOrderModel.cs @@ -0,0 +1,11 @@ +namespace BeautySaloonDataModels.Models +{ + public interface IOrderModel + { + int Id { get; } + DateTime Date { get; } + double Sum { get; } + int ClientId { get; } + Dictionary OrderServices { get; } + } +} diff --git a/BeautySaloon/BeautySaloonDataModels/Models/IPositionModel.cs b/BeautySaloon/BeautySaloonDataModels/Models/IPositionModel.cs new file mode 100644 index 0000000..b712b80 --- /dev/null +++ b/BeautySaloon/BeautySaloonDataModels/Models/IPositionModel.cs @@ -0,0 +1,8 @@ +namespace BeautySaloonDataModels.Models +{ + public interface IPositionModel + { + int Id { get; } + string Name { get; } + } +} diff --git a/BeautySaloon/BeautySaloonDataModels/Models/IServiceModel.cs b/BeautySaloon/BeautySaloonDataModels/Models/IServiceModel.cs new file mode 100644 index 0000000..54801f8 --- /dev/null +++ b/BeautySaloon/BeautySaloonDataModels/Models/IServiceModel.cs @@ -0,0 +1,9 @@ +namespace BeautySaloonDataModels.Models +{ + public interface IServiceModel + { + int Id { get; } + string Name { get; } + double Price { get; } + } +}