поменяла связи в лекарствах, добавила роль - клиент

This commit is contained in:
Елена Бакальская 2024-04-27 23:14:58 +04:00
parent cef15dd52c
commit 4bb440036c
7 changed files with 11 additions and 8 deletions

View File

@ -10,6 +10,8 @@ namespace PolyclinicContracts.BindingModels
public class MedicamentBindingModel : IMedicamentModel
{
public int Id { get; set; }
public int SymptomId { get; set; }
public int ProcedureId { get; set; }
public string Name { get; set; } = string.Empty;
public string Comment { get; set; } = string.Empty;
public Dictionary<int, ISymptomModel> MedicamentSymptom { get; set; } = new();

View File

@ -10,7 +10,7 @@ namespace PolyclinicContracts.BindingModels
public class RecipeBindingModel : IRecipeModel
{
public int Id { get; set; }
public int CountProcedures { get; set; }
public int ProceduresCount { get; set; }
public string Comment { get; set; } = string.Empty;
public Dictionary<int, IRecipeModel> ProcedureRecipe { get; set; } = new();

View File

@ -11,13 +11,13 @@ namespace PolyclinicContracts.ViewModels
public class MedicamentView : IMedicamentModel
{
public int Id { get; set; }
public int ProcedureId { get; set; }
public int SymptomId { get; set; }
[DisplayName("Название медикамента")]
public string Name { get; set; } = string.Empty;
[DisplayName("Комментарий")]
public string Comment { get; set; } = string.Empty;
public Dictionary<int, ISymptomModel> MedicamentSymptom { get; set; } = new();
public Dictionary<int, IProcedureModel> MedicamentProcedure { get; set; } = new();
}
}

View File

@ -14,7 +14,7 @@ namespace PolyclinicContracts.ViewModels
public int Id { get; set; }
[DisplayName("Количество процедур")]
public int CountProcedures { get; set; }
public int ProceduresCount { get; set; }
[DisplayName("Комментарий")]
public string Comment { get; set; } = string.Empty;

View File

@ -5,6 +5,7 @@
Неизвестный = -1,
Администратор = 0,
Исполнитель = 1,
Поручитель = 2
Поручитель = 2,
Клиент = 3
}
}

View File

@ -10,7 +10,7 @@ namespace PolyclinicDataModels.Models
{
string Name { get; }
string Comment { get; }
Dictionary<int, ISymptomModel> MedicamentSymptom { get; }
Dictionary<int, IProcedureModel> MedicamentProcedure { get; }
int ProcedureId { get; }
int SymptomId { get; }
}
}

View File

@ -8,7 +8,7 @@ namespace PolyclinicDataModels.Models
{
public interface IRecipeModel : IId
{
int CountProcedures { get; set; }
int ProceduresCount { get; set; }
string Comment { get; set; }
Dictionary<int, IRecipeModel> ProcedureRecipe { get; }