stage5_models_and_storages_contracts_lena #2

Merged
ekallin merged 11 commits from stage5_models_and_storages_contracts_lena into stage5_models_and_storages_contracts 2024-04-27 10:36:38 +04:00
5 changed files with 94 additions and 6 deletions
Showing only changes of commit 8763406288 - Show all commits

View File

@ -6,12 +6,6 @@
<Nullable>enable</Nullable>
</PropertyGroup>
<ItemGroup>
<Folder Include="StoragesContracts\" />
<Folder Include="ViewModels\" />
<Folder Include="BusinessLogicsContracts\" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\PolyclinicDataModels\PolyclinicDataModels.csproj" />
</ItemGroup>

View File

@ -0,0 +1,23 @@
using PolyclinicDataModels.Models;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace PolyclinicContracts.ViewModels
{
public class MedicamentView : IMedicamentModel
{
public int Id { 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

@ -0,0 +1,24 @@
using PolyclinicDataModels.Models;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace PolyclinicContracts.ViewModels
{
public class ProcedureView : IProcedureModel
{
public int Id { get; set; }
[DisplayName("Название процедуры")]
public string Name { get; set; }
[DisplayName("Комментарий")]
public string Comment { get; set; }
public Dictionary<int, ICourseModel> ProcedureCourse { get; set; } = new();
}
}

View File

@ -0,0 +1,23 @@
using PolyclinicDataModels.Models;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace PolyclinicContracts.ViewModels
{
public class RecipeView : IRecipeModel
{
public int Id { get; set; }
[DisplayName("Количество процедур")]
public int CountProcedures { get; set; }
[DisplayName("Комментарий")]
public string Comment { get; set; } = string.Empty;
public Dictionary<int, IRecipeModel> ProcedureRecipe { get; set; } = new();
}
}

View File

@ -0,0 +1,24 @@
using PolyclinicDataModels.Models;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace PolyclinicContracts.ViewModels
{
public class SuretorView : ISuretorModel
{
public int Id { get; set; }
[DisplayName("ФИО поручителя")]
public string FIO { get; set; } = string.Empty;
public string Password { get; set; } = "123";
[DisplayName("Почта")]
public string Email { get; set; } = string.Empty;
}
}