Никита. Создал view модели

This commit is contained in:
Никита Потапов 2024-04-18 00:10:00 +04:00
parent 89a7a7364b
commit ed6cd3be2e
6 changed files with 64 additions and 1 deletions

View File

@ -8,7 +8,6 @@
<ItemGroup>
<Folder Include="StoragesContracts\" />
<Folder Include="ViewModels\" />
<Folder Include="BusinessLogicsContracts\" />
</ItemGroup>

View File

@ -0,0 +1,18 @@
using PolyclinicDataModels.Models;
using System.ComponentModel;
namespace PolyclinicContracts.ViewModels
{
public class CourseViewModel : ICourseModel
{
[DisplayName("Количество дней курса")]
public int DaysCount { get; set; }
[DisplayName("Препарата в день")]
public int PillsPerDay { get; set; }
[DisplayName("Комментарий")]
public string Comment { get; set; } = string.Empty;
public Dictionary<int, IDiagnosisModel> CourseDiagnosis { get; set; } = new();
public Dictionary<int, IRecipeModel> CourseRecipes { get; set; } = new();
public int Id { get; set; }
}
}

View File

@ -0,0 +1,15 @@
using PolyclinicDataModels.Models;
using System.ComponentModel;
namespace PolyclinicContracts.ViewModels
{
public class DiagnosisViewModel : IDiagnosisModel
{
[DisplayName("Название")]
public string Name { get; set; } = string.Empty;
[DisplayName("Комментарий")]
public string Comment { get; set; } = string.Empty;
public int ExecutorId { get; set; }
public int Id { get; set; }
}
}

View File

@ -0,0 +1,15 @@
using PolyclinicDataModels.Models;
using System.ComponentModel;
namespace PolyclinicContracts.ViewModels
{
public class ExecutorViewModel : IExecutorModel
{
[DisplayName("ФИО исполнителя")]
public string FIO { get; set; } = string.Empty;
[DisplayName("Email исполнителя")]
public string Email { get; set; } = string.Empty;
public string Password { get; set; } = string.Empty;
public int Id { get; set; }
}
}

View File

@ -0,0 +1,16 @@
using PolyclinicDataModels.Models;
using System.ComponentModel;
namespace PolyclinicContracts.ViewModels
{
public class SymptomViewModel : ISymptomModel
{
[DisplayName("Название")]
public string Name { get; set; } = string.Empty;
[DisplayName("Комментарий")]
public string Comment { get; set; } = string.Empty;
public Dictionary<int, IDiagnosisModel> SymptomDiagnosis { get; set; } = new();
public Dictionary<int, IRecipeModel> SymptomRecipes { get; set; } = new();
public int Id { get; set; }
}
}