поменяла связи в лекарствах, добавила роль - клиент
This commit is contained in:
parent
cef15dd52c
commit
4bb440036c
@ -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();
|
||||
|
@ -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();
|
||||
|
||||
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
@ -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;
|
||||
|
@ -5,6 +5,7 @@
|
||||
Неизвестный = -1,
|
||||
Администратор = 0,
|
||||
Исполнитель = 1,
|
||||
Поручитель = 2
|
||||
Поручитель = 2,
|
||||
Клиент = 3
|
||||
}
|
||||
}
|
||||
|
@ -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; }
|
||||
}
|
||||
}
|
@ -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; }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user