From eb4b90f43faa4f593551d95644e9cc5c577f675e Mon Sep 17 00:00:00 2001 From: bocchanskyy Date: Mon, 20 May 2024 01:09:44 +0400 Subject: [PATCH] Looks like data models done --- PersonnelDepartment/PersonnelDepartment.sln | 6 ++++++ .../PersonnelDepartmentDataModels/IId.cs | 13 +++++++++++++ .../Models/IDealModel.cs | 18 ++++++++++++++++++ .../Models/IDepartmentModel.cs | 14 ++++++++++++++ .../Models/IEmployeeModel.cs | 15 +++++++++++++++ .../Models/IPositionModel.cs | 13 +++++++++++++ .../Models/ITypeModel.cs | 13 +++++++++++++ .../PersonnelDepartmentDataModels.csproj | 9 +++++++++ 8 files changed, 101 insertions(+) create mode 100644 PersonnelDepartment/PersonnelDepartmentDataModels/IId.cs create mode 100644 PersonnelDepartment/PersonnelDepartmentDataModels/Models/IDealModel.cs create mode 100644 PersonnelDepartment/PersonnelDepartmentDataModels/Models/IDepartmentModel.cs create mode 100644 PersonnelDepartment/PersonnelDepartmentDataModels/Models/IEmployeeModel.cs create mode 100644 PersonnelDepartment/PersonnelDepartmentDataModels/Models/IPositionModel.cs create mode 100644 PersonnelDepartment/PersonnelDepartmentDataModels/Models/ITypeModel.cs create mode 100644 PersonnelDepartment/PersonnelDepartmentDataModels/PersonnelDepartmentDataModels.csproj diff --git a/PersonnelDepartment/PersonnelDepartment.sln b/PersonnelDepartment/PersonnelDepartment.sln index fb93f41..81a6266 100644 --- a/PersonnelDepartment/PersonnelDepartment.sln +++ b/PersonnelDepartment/PersonnelDepartment.sln @@ -5,6 +5,8 @@ VisualStudioVersion = 17.9.34723.18 MinimumVisualStudioVersion = 10.0.40219.1 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PersonnelDepartmentView", "PersonnelDepartmentView\PersonnelDepartmentView.csproj", "{353F1467-69E0-4C42-85B0-BC4D3C5FC5A6}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PersonnelDepartmentDataModels", "PersonnelDepartmentDataModels\PersonnelDepartmentDataModels.csproj", "{CE6C1F1A-D6DB-4AA1-9F79-5A8CCB1C812C}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -15,6 +17,10 @@ Global {353F1467-69E0-4C42-85B0-BC4D3C5FC5A6}.Debug|Any CPU.Build.0 = Debug|Any CPU {353F1467-69E0-4C42-85B0-BC4D3C5FC5A6}.Release|Any CPU.ActiveCfg = Release|Any CPU {353F1467-69E0-4C42-85B0-BC4D3C5FC5A6}.Release|Any CPU.Build.0 = Release|Any CPU + {CE6C1F1A-D6DB-4AA1-9F79-5A8CCB1C812C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {CE6C1F1A-D6DB-4AA1-9F79-5A8CCB1C812C}.Debug|Any CPU.Build.0 = Debug|Any CPU + {CE6C1F1A-D6DB-4AA1-9F79-5A8CCB1C812C}.Release|Any CPU.ActiveCfg = Release|Any CPU + {CE6C1F1A-D6DB-4AA1-9F79-5A8CCB1C812C}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/PersonnelDepartment/PersonnelDepartmentDataModels/IId.cs b/PersonnelDepartment/PersonnelDepartmentDataModels/IId.cs new file mode 100644 index 0000000..cd2ecd6 --- /dev/null +++ b/PersonnelDepartment/PersonnelDepartmentDataModels/IId.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace PersonnelDepartmentDataModels +{ + public interface IId + { + int Id { get; } + } +} diff --git a/PersonnelDepartment/PersonnelDepartmentDataModels/Models/IDealModel.cs b/PersonnelDepartment/PersonnelDepartmentDataModels/Models/IDealModel.cs new file mode 100644 index 0000000..9293d18 --- /dev/null +++ b/PersonnelDepartment/PersonnelDepartmentDataModels/Models/IDealModel.cs @@ -0,0 +1,18 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace PersonnelDepartmentDataModels.Models +{ + public interface IDealModel : IId + { + DateTime DateFrom { get; } + DateTime DateTo { get; } + int PositionId { get; } + int EmployeeId { get; } + int DepartmentId { get; } + int TypeId { get; } + } +} diff --git a/PersonnelDepartment/PersonnelDepartmentDataModels/Models/IDepartmentModel.cs b/PersonnelDepartment/PersonnelDepartmentDataModels/Models/IDepartmentModel.cs new file mode 100644 index 0000000..ebc089a --- /dev/null +++ b/PersonnelDepartment/PersonnelDepartmentDataModels/Models/IDepartmentModel.cs @@ -0,0 +1,14 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace PersonnelDepartmentDataModels.Models +{ + public interface IDepartmentModel : IId + { + string Name { get; } + long Telephone { get; } + } +} diff --git a/PersonnelDepartment/PersonnelDepartmentDataModels/Models/IEmployeeModel.cs b/PersonnelDepartment/PersonnelDepartmentDataModels/Models/IEmployeeModel.cs new file mode 100644 index 0000000..af249b7 --- /dev/null +++ b/PersonnelDepartment/PersonnelDepartmentDataModels/Models/IEmployeeModel.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace PersonnelDepartmentDataModels.Models +{ + public interface IEmployeeModel : IId + { + string FirstName { get; } + string LastName { get; } + string Patronymic { get; } + } +} diff --git a/PersonnelDepartment/PersonnelDepartmentDataModels/Models/IPositionModel.cs b/PersonnelDepartment/PersonnelDepartmentDataModels/Models/IPositionModel.cs new file mode 100644 index 0000000..e162995 --- /dev/null +++ b/PersonnelDepartment/PersonnelDepartmentDataModels/Models/IPositionModel.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace PersonnelDepartmentDataModels.Models +{ + public interface IPositionModel : IId + { + string Name { get; } + } +} diff --git a/PersonnelDepartment/PersonnelDepartmentDataModels/Models/ITypeModel.cs b/PersonnelDepartment/PersonnelDepartmentDataModels/Models/ITypeModel.cs new file mode 100644 index 0000000..632b304 --- /dev/null +++ b/PersonnelDepartment/PersonnelDepartmentDataModels/Models/ITypeModel.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace PersonnelDepartmentDataModels.Models +{ + public interface ITypeModel : IId + { + string Name { get; } + } +} diff --git a/PersonnelDepartment/PersonnelDepartmentDataModels/PersonnelDepartmentDataModels.csproj b/PersonnelDepartment/PersonnelDepartmentDataModels/PersonnelDepartmentDataModels.csproj new file mode 100644 index 0000000..fa71b7a --- /dev/null +++ b/PersonnelDepartment/PersonnelDepartmentDataModels/PersonnelDepartmentDataModels.csproj @@ -0,0 +1,9 @@ + + + + net8.0 + enable + enable + + +