From 1d1630ad51747b7d48732d550d58294fffbd9e86 Mon Sep 17 00:00:00 2001 From: platoff aeeee Date: Mon, 29 Apr 2024 16:11:31 +0400 Subject: [PATCH] datamodels --- TravelCompany/TravelCompany.sln | 12 ++++++++++++ .../Contractor/ExcursionBindingModel.cs | 11 +++++++++++ .../Guarantor/GuideBindingModel.cs | 19 +++++++++++++++++++ .../TravelCompanyContracts.csproj | 5 ++++- TravelCompany/TravelCompanyDataModels/IId.cs | 13 +++++++++++++ .../Models/Contractor/IContractorModel.cs | 19 +++++++++++++++++++ .../Models/Contractor/IExcursionGroupModel.cs | 15 +++++++++++++++ .../Models/Contractor/IExcursionModel.cs | 15 +++++++++++++++ .../Models/Contractor/ITourModel.cs | 15 +++++++++++++++ .../Models/Guarantor/IGuarantorModel.cs | 19 +++++++++++++++++++ .../Models/Guarantor/IGuideModel.cs | 18 ++++++++++++++++++ .../Models/Guarantor/IPlaceModel.cs | 16 ++++++++++++++++ .../Models/Guarantor/ITripModel.cs | 17 +++++++++++++++++ .../Models/IUserModel.cs | 19 +++++++++++++++++++ .../TravelCompanyDataModels.csproj | 13 +++++++++++++ 15 files changed, 225 insertions(+), 1 deletion(-) create mode 100644 TravelCompany/TravelCompanyContracts/BindingModels/Contractor/ExcursionBindingModel.cs create mode 100644 TravelCompany/TravelCompanyContracts/BindingModels/Guarantor/GuideBindingModel.cs create mode 100644 TravelCompany/TravelCompanyDataModels/IId.cs create mode 100644 TravelCompany/TravelCompanyDataModels/Models/Contractor/IContractorModel.cs create mode 100644 TravelCompany/TravelCompanyDataModels/Models/Contractor/IExcursionGroupModel.cs create mode 100644 TravelCompany/TravelCompanyDataModels/Models/Contractor/IExcursionModel.cs create mode 100644 TravelCompany/TravelCompanyDataModels/Models/Contractor/ITourModel.cs create mode 100644 TravelCompany/TravelCompanyDataModels/Models/Guarantor/IGuarantorModel.cs create mode 100644 TravelCompany/TravelCompanyDataModels/Models/Guarantor/IGuideModel.cs create mode 100644 TravelCompany/TravelCompanyDataModels/Models/Guarantor/IPlaceModel.cs create mode 100644 TravelCompany/TravelCompanyDataModels/Models/Guarantor/ITripModel.cs create mode 100644 TravelCompany/TravelCompanyDataModels/Models/IUserModel.cs create mode 100644 TravelCompany/TravelCompanyDataModels/TravelCompanyDataModels.csproj diff --git a/TravelCompany/TravelCompany.sln b/TravelCompany/TravelCompany.sln index 57e8ba7..e9a47a9 100644 --- a/TravelCompany/TravelCompany.sln +++ b/TravelCompany/TravelCompany.sln @@ -6,8 +6,16 @@ MinimumVisualStudioVersion = 10.0.40219.1 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TravelCompany", "TravelCompany\TravelCompany.csproj", "{6D35D844-99B5-4A3E-BF6F-1407C1B0E43C}" EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TravelCompanyBusinessLogic", "TravelCompanyBusinessLogic\TravelCompanyBusinessLogic.csproj", "{92800B04-E03C-4B84-8BCE-D92E69DC164D}" + ProjectSection(ProjectDependencies) = postProject + {CED948EE-1556-47DB-A0B6-FFB3C93394F1} = {CED948EE-1556-47DB-A0B6-FFB3C93394F1} + EndProjectSection EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TravelCompanyContracts", "TravelCompanyContracts\TravelCompanyContracts.csproj", "{CED948EE-1556-47DB-A0B6-FFB3C93394F1}" + ProjectSection(ProjectDependencies) = postProject + {091C17F5-84EC-4DFC-8BA5-200E41ED9F05} = {091C17F5-84EC-4DFC-8BA5-200E41ED9F05} + EndProjectSection +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TravelCompanyDataModels", "TravelCompanyDataModels\TravelCompanyDataModels.csproj", "{091C17F5-84EC-4DFC-8BA5-200E41ED9F05}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -27,6 +35,10 @@ Global {CED948EE-1556-47DB-A0B6-FFB3C93394F1}.Debug|Any CPU.Build.0 = Debug|Any CPU {CED948EE-1556-47DB-A0B6-FFB3C93394F1}.Release|Any CPU.ActiveCfg = Release|Any CPU {CED948EE-1556-47DB-A0B6-FFB3C93394F1}.Release|Any CPU.Build.0 = Release|Any CPU + {091C17F5-84EC-4DFC-8BA5-200E41ED9F05}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {091C17F5-84EC-4DFC-8BA5-200E41ED9F05}.Debug|Any CPU.Build.0 = Debug|Any CPU + {091C17F5-84EC-4DFC-8BA5-200E41ED9F05}.Release|Any CPU.ActiveCfg = Release|Any CPU + {091C17F5-84EC-4DFC-8BA5-200E41ED9F05}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/TravelCompany/TravelCompanyContracts/BindingModels/Contractor/ExcursionBindingModel.cs b/TravelCompany/TravelCompanyContracts/BindingModels/Contractor/ExcursionBindingModel.cs new file mode 100644 index 0000000..f768c82 --- /dev/null +++ b/TravelCompany/TravelCompanyContracts/BindingModels/Contractor/ExcursionBindingModel.cs @@ -0,0 +1,11 @@ +using TravelCompanyDataModels.Models; + + +namespace TravelCompanyContracts.BindingModels.Contractor +{ + public class ExcursionBindingModel + { + + + } +} diff --git a/TravelCompany/TravelCompanyContracts/BindingModels/Guarantor/GuideBindingModel.cs b/TravelCompany/TravelCompanyContracts/BindingModels/Guarantor/GuideBindingModel.cs new file mode 100644 index 0000000..89d7614 --- /dev/null +++ b/TravelCompany/TravelCompanyContracts/BindingModels/Guarantor/GuideBindingModel.cs @@ -0,0 +1,19 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using TravelCompanyDataModels.Models.Guarantor; + +namespace TravelCompanyContracts.BindingModels.Guarantor +{ + public class GuideBindingModel : IGuideModel + { + public int Id { get; set; } + public string GuideFIO { get; set; } + + public string PhoneNumber { get; set; } + + public string GuidePrice { get; set; } + } +} diff --git a/TravelCompany/TravelCompanyContracts/TravelCompanyContracts.csproj b/TravelCompany/TravelCompanyContracts/TravelCompanyContracts.csproj index 2d85f5a..1ed9808 100644 --- a/TravelCompany/TravelCompanyContracts/TravelCompanyContracts.csproj +++ b/TravelCompany/TravelCompanyContracts/TravelCompanyContracts.csproj @@ -7,11 +7,14 @@ - + + + + diff --git a/TravelCompany/TravelCompanyDataModels/IId.cs b/TravelCompany/TravelCompanyDataModels/IId.cs new file mode 100644 index 0000000..cdccdc8 --- /dev/null +++ b/TravelCompany/TravelCompanyDataModels/IId.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace TravelCompanyDataModels +{ + public interface IId + { + int Id { get; } + } +} diff --git a/TravelCompany/TravelCompanyDataModels/Models/Contractor/IContractorModel.cs b/TravelCompany/TravelCompanyDataModels/Models/Contractor/IContractorModel.cs new file mode 100644 index 0000000..2f21936 --- /dev/null +++ b/TravelCompany/TravelCompanyDataModels/Models/Contractor/IContractorModel.cs @@ -0,0 +1,19 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace TravelCompanyDataModels.Models.Contractor +{ + public interface IContractorModel : IId + { + string Surname { get; } + string Name { get; } + string Patronymic { get; } + string Login { get; } + string Password { get; } + string Email { get; } + string MobilePhone { get; } + } +} diff --git a/TravelCompany/TravelCompanyDataModels/Models/Contractor/IExcursionGroupModel.cs b/TravelCompany/TravelCompanyDataModels/Models/Contractor/IExcursionGroupModel.cs new file mode 100644 index 0000000..72fd06d --- /dev/null +++ b/TravelCompany/TravelCompanyDataModels/Models/Contractor/IExcursionGroupModel.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace TravelCompanyDataModels.Models.Contractor +{ + public interface IExcursionGroupModel : IId + { + string ExcursionGroupName { get; } + + int PeopleAmount { get; } + } +} diff --git a/TravelCompany/TravelCompanyDataModels/Models/Contractor/IExcursionModel.cs b/TravelCompany/TravelCompanyDataModels/Models/Contractor/IExcursionModel.cs new file mode 100644 index 0000000..f767161 --- /dev/null +++ b/TravelCompany/TravelCompanyDataModels/Models/Contractor/IExcursionModel.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace TravelCompanyDataModels.Models.Contractor +{ + public interface IExcursionModel : IId + { + string ExcursionName { get; } + + int ExcursionPrice { get; } + } +} diff --git a/TravelCompany/TravelCompanyDataModels/Models/Contractor/ITourModel.cs b/TravelCompany/TravelCompanyDataModels/Models/Contractor/ITourModel.cs new file mode 100644 index 0000000..3c13b6d --- /dev/null +++ b/TravelCompany/TravelCompanyDataModels/Models/Contractor/ITourModel.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace TravelCompanyDataModels.Models.Contractor +{ + public interface ITourModel : IId + { + string TourName { get; } + + DateTime TourDate { get; } + } +} diff --git a/TravelCompany/TravelCompanyDataModels/Models/Guarantor/IGuarantorModel.cs b/TravelCompany/TravelCompanyDataModels/Models/Guarantor/IGuarantorModel.cs new file mode 100644 index 0000000..9a6ccd5 --- /dev/null +++ b/TravelCompany/TravelCompanyDataModels/Models/Guarantor/IGuarantorModel.cs @@ -0,0 +1,19 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace TravelCompanyDataModels.Models.Guarantor +{ + public interface IGuarantorModel : IId + { + string Surname { get; } + string Name { get; } + string Patronymic { get; } + string Login { get; } + string Password { get; } + string Email { get; } + string MobilePhone { get; } + } +} diff --git a/TravelCompany/TravelCompanyDataModels/Models/Guarantor/IGuideModel.cs b/TravelCompany/TravelCompanyDataModels/Models/Guarantor/IGuideModel.cs new file mode 100644 index 0000000..12e0a97 --- /dev/null +++ b/TravelCompany/TravelCompanyDataModels/Models/Guarantor/IGuideModel.cs @@ -0,0 +1,18 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +// using TravelCompanyDataModels.Enums; + +namespace TravelCompanyDataModels.Models.Guarantor +{ + public interface IGuideModel : IId + { + string GuideFIO { get; } + + string PhoneNumber { get; } + + string GuidePrice { get; } + } +} diff --git a/TravelCompany/TravelCompanyDataModels/Models/Guarantor/IPlaceModel.cs b/TravelCompany/TravelCompanyDataModels/Models/Guarantor/IPlaceModel.cs new file mode 100644 index 0000000..6418254 --- /dev/null +++ b/TravelCompany/TravelCompanyDataModels/Models/Guarantor/IPlaceModel.cs @@ -0,0 +1,16 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace TravelCompanyDataModels.Models.Guarantor +{ + public interface IPlaceModel : IId + { + string NamePlace { get; } + + string DescriptionPlace { get; } + + } +} \ No newline at end of file diff --git a/TravelCompany/TravelCompanyDataModels/Models/Guarantor/ITripModel.cs b/TravelCompany/TravelCompanyDataModels/Models/Guarantor/ITripModel.cs new file mode 100644 index 0000000..c11e826 --- /dev/null +++ b/TravelCompany/TravelCompanyDataModels/Models/Guarantor/ITripModel.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Security.Cryptography.X509Certificates; +using System.Text; +using System.Threading.Tasks; + +namespace TravelCompanyDataModels.Models.Guarantor +{ + public interface ITripModel : IId + { + string TripName { get; } + + DateTime TripDate { get; } + + } +} diff --git a/TravelCompany/TravelCompanyDataModels/Models/IUserModel.cs b/TravelCompany/TravelCompanyDataModels/Models/IUserModel.cs new file mode 100644 index 0000000..a463653 --- /dev/null +++ b/TravelCompany/TravelCompanyDataModels/Models/IUserModel.cs @@ -0,0 +1,19 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace TravelCompanyDataModels.Models +{ + public interface IUserModel : IId + { + string Surname { get; } + string Name { get; } + string Patronymic { get; } + string Login { get; } + string Password { get; } + string Email { get; } + string MobilePhone { get; } + } +} diff --git a/TravelCompany/TravelCompanyDataModels/TravelCompanyDataModels.csproj b/TravelCompany/TravelCompanyDataModels/TravelCompanyDataModels.csproj new file mode 100644 index 0000000..b6a7529 --- /dev/null +++ b/TravelCompany/TravelCompanyDataModels/TravelCompanyDataModels.csproj @@ -0,0 +1,13 @@ + + + + net6.0 + enable + enable + + + + + + +