2024-05-08 14:52:50 +04:00
|
|
|
|
using MedicalDatabaseContracts.Models;
|
|
|
|
|
using System.ComponentModel;
|
|
|
|
|
|
|
|
|
|
namespace MedicalDatabaseContracts.ViewModels
|
|
|
|
|
{
|
2024-05-14 23:49:46 +04:00
|
|
|
|
public abstract class AbstractPersonViewModel : AbstractViewModel
|
2024-05-08 14:52:50 +04:00
|
|
|
|
{
|
|
|
|
|
[DisplayName("Имя")]
|
|
|
|
|
public string Name { get; set; } = string.Empty;
|
|
|
|
|
[DisplayName("Фамилия")]
|
|
|
|
|
public string Surname { get; set; } = string.Empty;
|
|
|
|
|
[DisplayName("Отчество")]
|
|
|
|
|
public string Patronymic { get; set; } = string.Empty;
|
|
|
|
|
[DisplayName("Телефон")]
|
|
|
|
|
public string PhoneNumber { get; set; } = string.Empty;
|
2024-05-16 01:41:37 +04:00
|
|
|
|
public string GetFIO()
|
|
|
|
|
{
|
2024-05-16 13:55:28 +04:00
|
|
|
|
return Surname + " " + Name + " " + Patronymic ?? string.Empty;
|
2024-05-16 01:41:37 +04:00
|
|
|
|
}
|
|
|
|
|
public override string ToString()
|
|
|
|
|
{
|
|
|
|
|
return GetFIO();
|
|
|
|
|
}
|
2024-05-08 14:52:50 +04:00
|
|
|
|
}
|
|
|
|
|
}
|