Compare commits

...

2 Commits

Author SHA1 Message Date
a071f504d2 представление пациента 2024-04-12 23:47:48 +04:00
fa0258b99c представление доктора 2024-04-12 23:38:31 +04:00
7 changed files with 69 additions and 5 deletions

View File

@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
@ -6,4 +6,8 @@
<Nullable>enable</Nullable>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\HospitalDataModels\HospitalDataModels.csproj" />
</ItemGroup>
</Project>

View File

@ -0,0 +1,29 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace HospitalContracts.ViewModels
{
public class DoctorViewModel
{
public int Id { get; set; }
[DisplayName("ФИО")]
string FIO { get; }
[DisplayName("Логин")]
string Login { get; }
[DisplayName("Пароль")]
string Password { get; }
[DisplayName("Электронная почта")]
string MailAddress { get; }
[DisplayName("Номер телефона")]
string PhoneNumber { get; }
}
}

View File

@ -0,0 +1,31 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using HospitalDataModels.Models;
namespace HospitalContracts.ViewModels
{
public class PatientViewModel
{
public int Id { get; set; }
[DisplayName("ФИО")]
string FIO { get; }
[DisplayName("Дата рождения")]
DateOnly BirthDate { get; }
[DisplayName("Адрес")]
string Adress { get; }
public int DoctorId { get; set; }
public Dictionary<int, IProcedureModel> PatientProcedures { get; set; } = new();
public Dictionary<int, IRecipeModel> PatientRecipes { get; set; } = new();
}
}

View File

@ -6,7 +6,7 @@ using System.Threading.Tasks;
namespace HospitalDataModels.Models
{
internal interface IMedicineModel : IId
public interface IMedicineModel : IId
{
}
}

View File

@ -6,7 +6,7 @@ using System.Threading.Tasks;
namespace HospitalDataModels.Models
{
internal interface IPatientModel : IId
public interface IPatientModel : IId
{
string FIO { get; }
DateOnly BirthDate { get; }

View File

@ -6,7 +6,7 @@ using System.Threading.Tasks;
namespace HospitalDataModels.Models
{
internal interface IProcedureModel : IId
public interface IProcedureModel : IId
{
}
}

View File

@ -6,7 +6,7 @@ using System.Threading.Tasks;
namespace HospitalDataModels.Models
{
internal interface IRecipeModel : IId
public interface IRecipeModel : IId
{
string Description { get; }
DateTime IssueDate { get; }