2024-05-08 14:52:50 +04:00
|
|
|
|
using System.ComponentModel;
|
|
|
|
|
|
|
|
|
|
namespace MedicalDatabaseContracts.ViewModels
|
|
|
|
|
{
|
|
|
|
|
public class PatientViewModel : AbstractPersonViewModel
|
|
|
|
|
{
|
|
|
|
|
[DisplayName("Пол")]
|
2024-05-16 01:41:37 +04:00
|
|
|
|
public string Gender { get; set; } = string.Empty;
|
2024-05-08 14:52:50 +04:00
|
|
|
|
[DisplayName("Дата рождения")]
|
|
|
|
|
public DateTime Birthday { get; set; }
|
|
|
|
|
[DisplayName("Вес, кг")]
|
|
|
|
|
public int Weight { get; set; }
|
2024-05-14 23:24:11 +04:00
|
|
|
|
[DisplayName("Рост, см")]
|
2024-05-08 14:52:50 +04:00
|
|
|
|
public int Height { get; set; }
|
2024-05-16 01:41:37 +04:00
|
|
|
|
public override string ToString()
|
|
|
|
|
{
|
|
|
|
|
return GetFIO() + ", " + Birthday.ToShortDateString();
|
|
|
|
|
}
|
2024-05-08 14:52:50 +04:00
|
|
|
|
}
|
|
|
|
|
}
|