добавление моделей
This commit is contained in:
parent
b92099c257
commit
2de477b1cc
@ -5,6 +5,8 @@ VisualStudioVersion = 17.9.34723.18
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "HospitalView", "Hospital\HospitalView.csproj", "{C50859B7-7F2C-4308-B9F7-86119A83E155}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HospitalDataModels", "HospitalDataModels\HospitalDataModels.csproj", "{3CBB9321-2FA0-453A-970F-D8DCD6D4C654}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
@ -15,6 +17,10 @@ Global
|
||||
{C50859B7-7F2C-4308-B9F7-86119A83E155}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{C50859B7-7F2C-4308-B9F7-86119A83E155}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{C50859B7-7F2C-4308-B9F7-86119A83E155}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{3CBB9321-2FA0-453A-970F-D8DCD6D4C654}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{3CBB9321-2FA0-453A-970F-D8DCD6D4C654}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{3CBB9321-2FA0-453A-970F-D8DCD6D4C654}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{3CBB9321-2FA0-453A-970F-D8DCD6D4C654}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
|
13
Hospital/HospitalDataModels/HospitalDataModels.csproj
Normal file
13
Hospital/HospitalDataModels/HospitalDataModels.csproj
Normal file
@ -0,0 +1,13 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Folder Include="Enums\" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
7
Hospital/HospitalDataModels/IId.cs
Normal file
7
Hospital/HospitalDataModels/IId.cs
Normal file
@ -0,0 +1,7 @@
|
||||
namespace HospitalDataModels
|
||||
{
|
||||
public interface IId
|
||||
{
|
||||
int Id { get; }
|
||||
}
|
||||
}
|
18
Hospital/HospitalDataModels/Models/IDoctorModel.cs
Normal file
18
Hospital/HospitalDataModels/Models/IDoctorModel.cs
Normal file
@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Net.Mail;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace HospitalDataModels.Models
|
||||
{
|
||||
internal interface IDoctorModel : IId
|
||||
{
|
||||
string FIO { get; }
|
||||
string Login { get; }
|
||||
string Password { get; }
|
||||
string MailAddress { get; }
|
||||
string PhoneNumber { get; }
|
||||
}
|
||||
}
|
12
Hospital/HospitalDataModels/Models/IMedicineModel.cs
Normal file
12
Hospital/HospitalDataModels/Models/IMedicineModel.cs
Normal file
@ -0,0 +1,12 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace HospitalDataModels.Models
|
||||
{
|
||||
internal interface IMedicineModel : IId
|
||||
{
|
||||
}
|
||||
}
|
19
Hospital/HospitalDataModels/Models/IPatientModel.cs
Normal file
19
Hospital/HospitalDataModels/Models/IPatientModel.cs
Normal file
@ -0,0 +1,19 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace HospitalDataModels.Models
|
||||
{
|
||||
internal interface IPatientModel : IId
|
||||
{
|
||||
string FIO { get; }
|
||||
DateOnly BirthDate { get; }
|
||||
string Adress { get; }
|
||||
int DoctorId { get; }
|
||||
Dictionary<int, IProcedureModel> PatientProcedures { get; }
|
||||
|
||||
Dictionary<int, IRecipeModel> PatientRecipes { get; }
|
||||
}
|
||||
}
|
12
Hospital/HospitalDataModels/Models/IProcedureModel.cs
Normal file
12
Hospital/HospitalDataModels/Models/IProcedureModel.cs
Normal file
@ -0,0 +1,12 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace HospitalDataModels.Models
|
||||
{
|
||||
internal interface IProcedureModel : IId
|
||||
{
|
||||
}
|
||||
}
|
21
Hospital/HospitalDataModels/Models/IRecipeModel.cs
Normal file
21
Hospital/HospitalDataModels/Models/IRecipeModel.cs
Normal file
@ -0,0 +1,21 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace HospitalDataModels.Models
|
||||
{
|
||||
internal interface IRecipeModel : IId
|
||||
{
|
||||
string Description { get; }
|
||||
DateTime IssueDate { get; }
|
||||
|
||||
int DiseaseId { get; }
|
||||
|
||||
int DoctorId { get; }
|
||||
|
||||
|
||||
Dictionary<int, IMedicineModel> RecipeMedicines { get; }
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user