Никита. Фиксы моделей, добавил биндинг модели

This commit is contained in:
Никита Потапов 2024-04-17 23:33:33 +04:00
parent 8c26c64dfe
commit 296a2845ec
9 changed files with 59 additions and 5 deletions

View File

@ -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; }
}
}

View File

@ -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; }
}
}

View File

@ -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; }
}
}

View File

@ -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; }
}
}

View File

@ -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>

View File

@ -1,6 +1,6 @@
namespace PolyclinicDataModels.Models
{
public interface ICourseModel
public interface ICourseModel : IId
{
int DaysCount { get; }
int PillsPerDay { get; }

View File

@ -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; }
}
}

View File

@ -1,6 +1,6 @@
namespace PolyclinicDataModels.Models
{
public interface IExecutorModel
public interface IExecutorModel : IId
{
string FIO { get; }
string Email { get; }