Никита. Создал view модели
This commit is contained in:
parent
89a7a7364b
commit
ed6cd3be2e
@ -8,7 +8,6 @@
|
||||
|
||||
<ItemGroup>
|
||||
<Folder Include="StoragesContracts\" />
|
||||
<Folder Include="ViewModels\" />
|
||||
<Folder Include="BusinessLogicsContracts\" />
|
||||
</ItemGroup>
|
||||
|
||||
|
18
Polyclinic/PolyclinicContracts/ViewModels/CourseViewModel.cs
Normal file
18
Polyclinic/PolyclinicContracts/ViewModels/CourseViewModel.cs
Normal 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; }
|
||||
}
|
||||
}
|
@ -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; }
|
||||
}
|
||||
}
|
@ -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; }
|
||||
}
|
||||
}
|
@ -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; }
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user