48 lines
1.3 KiB
C#
48 lines
1.3 KiB
C#
using HospitalDataModels.Models;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace HospitalContracts.ViewModels
|
|
{
|
|
/// <summary>
|
|
/// Модель представления для сущности "Рецепт"
|
|
/// </summary>
|
|
public class RecipeViewModel : IRecipeModel
|
|
{
|
|
/// <summary>
|
|
/// Идентификатор
|
|
/// </summary>
|
|
public int Id { get; set; }
|
|
|
|
/// <summary>
|
|
/// Дата выписки рецепта
|
|
/// </summary>
|
|
[DisplayName("Дата выписки рецепта")]
|
|
public DateTime IssueDate { get; set; }
|
|
|
|
/// <summary>
|
|
/// Идентификатор доктора
|
|
/// </summary>
|
|
public int DoctorId { get; set; }
|
|
|
|
/// <summary>
|
|
/// ФИО доктора
|
|
/// </summary>
|
|
[DisplayName("ФИО доктора")]
|
|
public string DoctorFullName { get; set; } = string.Empty;
|
|
|
|
/// <summary>
|
|
/// Список лекарств в рецепте
|
|
/// </summary>
|
|
public Dictionary<int, IMedicineModel> RecipeMedicines
|
|
{
|
|
get;
|
|
set;
|
|
} = new();
|
|
}
|
|
}
|