From 98f43a5b12f1dc0286cc5581f0d23579b1111814 Mon Sep 17 00:00:00 2001 From: goblinrf Date: Mon, 22 Apr 2024 13:37:13 +0400 Subject: [PATCH] =?UTF-8?q?=D0=9C=D0=BE=D0=B4=D0=B5=D0=BB=D1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- VetClinic/VetClinic.sln | 31 +++++++++++++++++++ .../BusinessLogics/AdminLogic.cs | 12 +++++++ .../VetClinicBusinessLogic.csproj | 13 ++++++++ VetClinic/VetClinicDataModels/IId.cs | 7 +++++ .../VetClinicDataModels/Models/IAdminModel.cs | 11 +++++++ .../Models/IAnimalModel.cs | 15 +++++++++ .../Models/IVaccinationModel.cs | 17 ++++++++++ .../VetClinicDataModels/Models/IVisitModel.cs | 18 +++++++++++ .../VetClinicDataModels.csproj | 18 +++++++++++ 9 files changed, 142 insertions(+) create mode 100644 VetClinic/VetClinic.sln create mode 100644 VetClinic/VetClinicBusinessLogic/BusinessLogics/AdminLogic.cs create mode 100644 VetClinic/VetClinicBusinessLogic/VetClinicBusinessLogic.csproj create mode 100644 VetClinic/VetClinicDataModels/IId.cs create mode 100644 VetClinic/VetClinicDataModels/Models/IAdminModel.cs create mode 100644 VetClinic/VetClinicDataModels/Models/IAnimalModel.cs create mode 100644 VetClinic/VetClinicDataModels/Models/IVaccinationModel.cs create mode 100644 VetClinic/VetClinicDataModels/Models/IVisitModel.cs create mode 100644 VetClinic/VetClinicDataModels/VetClinicDataModels.csproj diff --git a/VetClinic/VetClinic.sln b/VetClinic/VetClinic.sln new file mode 100644 index 0000000..97c8880 --- /dev/null +++ b/VetClinic/VetClinic.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.9.34622.214 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "VetClinicBusinessLogic", "VetClinicBusinessLogic\VetClinicBusinessLogic.csproj", "{85BD062C-3826-4326-A09D-2A3BC07C7856}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "VetClinicDataModels", "VetClinicDataModels\VetClinicDataModels.csproj", "{F8D5504B-8955-45E7-BF6B-3ABB7C3DC1BC}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {85BD062C-3826-4326-A09D-2A3BC07C7856}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {85BD062C-3826-4326-A09D-2A3BC07C7856}.Debug|Any CPU.Build.0 = Debug|Any CPU + {85BD062C-3826-4326-A09D-2A3BC07C7856}.Release|Any CPU.ActiveCfg = Release|Any CPU + {85BD062C-3826-4326-A09D-2A3BC07C7856}.Release|Any CPU.Build.0 = Release|Any CPU + {F8D5504B-8955-45E7-BF6B-3ABB7C3DC1BC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {F8D5504B-8955-45E7-BF6B-3ABB7C3DC1BC}.Debug|Any CPU.Build.0 = Debug|Any CPU + {F8D5504B-8955-45E7-BF6B-3ABB7C3DC1BC}.Release|Any CPU.ActiveCfg = Release|Any CPU + {F8D5504B-8955-45E7-BF6B-3ABB7C3DC1BC}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {8D1AF4D2-05F5-41A9-A9F5-7318C88EE80F} + EndGlobalSection +EndGlobal diff --git a/VetClinic/VetClinicBusinessLogic/BusinessLogics/AdminLogic.cs b/VetClinic/VetClinicBusinessLogic/BusinessLogics/AdminLogic.cs new file mode 100644 index 0000000..987e95b --- /dev/null +++ b/VetClinic/VetClinicBusinessLogic/BusinessLogics/AdminLogic.cs @@ -0,0 +1,12 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace VetClinicBusinessLogic.BusinessLogics +{ + internal class AdminLogic + { + } +} diff --git a/VetClinic/VetClinicBusinessLogic/VetClinicBusinessLogic.csproj b/VetClinic/VetClinicBusinessLogic/VetClinicBusinessLogic.csproj new file mode 100644 index 0000000..29a3196 --- /dev/null +++ b/VetClinic/VetClinicBusinessLogic/VetClinicBusinessLogic.csproj @@ -0,0 +1,13 @@ + + + + net8.0 + enable + enable + + + + + + + diff --git a/VetClinic/VetClinicDataModels/IId.cs b/VetClinic/VetClinicDataModels/IId.cs new file mode 100644 index 0000000..cfa3c21 --- /dev/null +++ b/VetClinic/VetClinicDataModels/IId.cs @@ -0,0 +1,7 @@ +namespace VetClinicDataModels +{ + public interface IId + { + int Id { get; } + } +} diff --git a/VetClinic/VetClinicDataModels/Models/IAdminModel.cs b/VetClinic/VetClinicDataModels/Models/IAdminModel.cs new file mode 100644 index 0000000..f8cf5b3 --- /dev/null +++ b/VetClinic/VetClinicDataModels/Models/IAdminModel.cs @@ -0,0 +1,11 @@ + +namespace VetClinicDataModels.Models +{ + public interface IAdminModel + { + string ClientFIO { get; } + string Email { get; } + string Password { get; } + + } +} diff --git a/VetClinic/VetClinicDataModels/Models/IAnimalModel.cs b/VetClinic/VetClinicDataModels/Models/IAnimalModel.cs new file mode 100644 index 0000000..97f73f0 --- /dev/null +++ b/VetClinic/VetClinicDataModels/Models/IAnimalModel.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace VetClinicDataModels.Models +{ + public interface IAnimalModel + { + int AdminId { get; } + string AnimalName { get; } + string? Family { get; } + } +} diff --git a/VetClinic/VetClinicDataModels/Models/IVaccinationModel.cs b/VetClinic/VetClinicDataModels/Models/IVaccinationModel.cs new file mode 100644 index 0000000..cf1c1e2 --- /dev/null +++ b/VetClinic/VetClinicDataModels/Models/IVaccinationModel.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace VetClinicDataModels.Models +{ + public interface IVaccinationModel + { + int AnimalId { get; } + string NameVaccination { get; } + + double CostVaccination { get; } + DateTime DateStamp { get; } + } +} diff --git a/VetClinic/VetClinicDataModels/Models/IVisitModel.cs b/VetClinic/VetClinicDataModels/Models/IVisitModel.cs new file mode 100644 index 0000000..73664c6 --- /dev/null +++ b/VetClinic/VetClinicDataModels/Models/IVisitModel.cs @@ -0,0 +1,18 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace VetClinicDataModels.Models +{ + public interface IVisitModel + { + int VisitId { get;} + int ServiceId { get; } + + int AdminId { get; } + string NameVisit { get;} + DateTime DateVisit { get; } + } +} diff --git a/VetClinic/VetClinicDataModels/VetClinicDataModels.csproj b/VetClinic/VetClinicDataModels/VetClinicDataModels.csproj new file mode 100644 index 0000000..1fee469 --- /dev/null +++ b/VetClinic/VetClinicDataModels/VetClinicDataModels.csproj @@ -0,0 +1,18 @@ + + + + net8.0 + enable + enable + + + + + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + + +