Никита. Фиксы моделей, добавил биндинг модели
This commit is contained in:
parent
8c26c64dfe
commit
296a2845ec
@ -0,0 +1,14 @@
|
||||
using PolyclinicDataModels.Models;
|
||||
|
||||
namespace PolyclinicContracts.BindingModels
|
||||
{
|
||||
public class CourseBindingModel : ICourseModel
|
||||
{
|
||||
public int DaysCount { get; set; }
|
||||
public int PillsPerDay { get; set; }
|
||||
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,12 @@
|
||||
using PolyclinicDataModels.Models;
|
||||
|
||||
namespace PolyclinicContracts.BindingModels
|
||||
{
|
||||
public class DiagnosisBindingModel : IDiagnosisModel
|
||||
{
|
||||
public string Name { get; set; } = string.Empty;
|
||||
public string Comment { get; set; } = string.Empty;
|
||||
public int ExecutorId { get; set; }
|
||||
public int Id { get; set; }
|
||||
}
|
||||
}
|
@ -0,0 +1,12 @@
|
||||
using PolyclinicDataModels.Models;
|
||||
|
||||
namespace PolyclinicContracts.BindingModels
|
||||
{
|
||||
public class ExecutorBindingModel : IExecutorModel
|
||||
{
|
||||
public string FIO { get; set; } = string.Empty;
|
||||
public string Email { get; set; } = string.Empty;
|
||||
public string Password { get; set; } = string.Empty;
|
||||
public int Id { get; set; }
|
||||
}
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
using PolyclinicDataModels.Models;
|
||||
|
||||
namespace PolyclinicContracts.BindingModels
|
||||
{
|
||||
public class SymptomBindingModel : ISymptomModel
|
||||
{
|
||||
public string Name { get; set; } = string.Empty;
|
||||
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; }
|
||||
}
|
||||
}
|
@ -7,11 +7,14 @@
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Folder Include="BindingModels\" />
|
||||
<Folder Include="StoragesContracts\" />
|
||||
<Folder Include="SearchModels\" />
|
||||
<Folder Include="ViewModels\" />
|
||||
<Folder Include="BusinessLogicsContracts\" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\PolyclinicDataModels\PolyclinicDataModels.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
@ -1,6 +1,6 @@
|
||||
namespace PolyclinicDataModels.Models
|
||||
{
|
||||
public interface ICourseModel
|
||||
public interface ICourseModel : IId
|
||||
{
|
||||
int DaysCount { get; }
|
||||
int PillsPerDay { get; }
|
||||
|
@ -1,9 +1,9 @@
|
||||
namespace PolyclinicDataModels.Models
|
||||
{
|
||||
public interface IDiagnosisModel
|
||||
public interface IDiagnosisModel : IId
|
||||
{
|
||||
string Name { get; }
|
||||
string Comment { get; }
|
||||
string ExecutorId { get; }
|
||||
int ExecutorId { get; }
|
||||
}
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
namespace PolyclinicDataModels.Models
|
||||
{
|
||||
public interface IExecutorModel
|
||||
public interface IExecutorModel : IId
|
||||
{
|
||||
string FIO { get; }
|
||||
string Email { get; }
|
||||
|
Loading…
Reference in New Issue
Block a user