Compare commits
2 Commits
e9185fa7dc
...
a071f504d2
Author | SHA1 | Date | |
---|---|---|---|
a071f504d2 | |||
fa0258b99c |
@ -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>
|
||||
|
29
Hospital/HospitalContracts/ViewModels/DoctorViewModel.cs
Normal file
29
Hospital/HospitalContracts/ViewModels/DoctorViewModel.cs
Normal 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; }
|
||||
}
|
||||
}
|
31
Hospital/HospitalContracts/ViewModels/PatientViewModel.cs
Normal file
31
Hospital/HospitalContracts/ViewModels/PatientViewModel.cs
Normal 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();
|
||||
|
||||
}
|
||||
}
|
@ -6,7 +6,7 @@ using System.Threading.Tasks;
|
||||
|
||||
namespace HospitalDataModels.Models
|
||||
{
|
||||
internal interface IMedicineModel : IId
|
||||
public interface IMedicineModel : IId
|
||||
{
|
||||
}
|
||||
}
|
||||
|
@ -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; }
|
||||
|
@ -6,7 +6,7 @@ using System.Threading.Tasks;
|
||||
|
||||
namespace HospitalDataModels.Models
|
||||
{
|
||||
internal interface IProcedureModel : IId
|
||||
public interface IProcedureModel : IId
|
||||
{
|
||||
}
|
||||
}
|
||||
|
@ -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; }
|
||||
|
Loading…
Reference in New Issue
Block a user