Looks like data models done

This commit is contained in:
Никита Волков 2024-05-20 01:09:44 +04:00
parent 547e12f086
commit eb4b90f43f
8 changed files with 101 additions and 0 deletions

View File

@ -5,6 +5,8 @@ VisualStudioVersion = 17.9.34723.18
MinimumVisualStudioVersion = 10.0.40219.1 MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PersonnelDepartmentView", "PersonnelDepartmentView\PersonnelDepartmentView.csproj", "{353F1467-69E0-4C42-85B0-BC4D3C5FC5A6}" Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PersonnelDepartmentView", "PersonnelDepartmentView\PersonnelDepartmentView.csproj", "{353F1467-69E0-4C42-85B0-BC4D3C5FC5A6}"
EndProject EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PersonnelDepartmentDataModels", "PersonnelDepartmentDataModels\PersonnelDepartmentDataModels.csproj", "{CE6C1F1A-D6DB-4AA1-9F79-5A8CCB1C812C}"
EndProject
Global Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU 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}.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.ActiveCfg = Release|Any CPU
{353F1467-69E0-4C42-85B0-BC4D3C5FC5A6}.Release|Any CPU.Build.0 = 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 EndGlobalSection
GlobalSection(SolutionProperties) = preSolution GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE HideSolutionNode = FALSE

View File

@ -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; }
}
}

View File

@ -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; }
}
}

View File

@ -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; }
}
}

View File

@ -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; }
}
}

View File

@ -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; }
}
}

View File

@ -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; }
}
}

View File

@ -0,0 +1,9 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
</Project>