stage5_models_and_storages_contracts_lena #2
@ -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>
|
||||
|
23
Polyclinic/PolyclinicContracts/ViewModels/MedicamentView.cs
Normal file
23
Polyclinic/PolyclinicContracts/ViewModels/MedicamentView.cs
Normal 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();
|
||||
}
|
||||
}
|
24
Polyclinic/PolyclinicContracts/ViewModels/ProcedureView.cs
Normal file
24
Polyclinic/PolyclinicContracts/ViewModels/ProcedureView.cs
Normal 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();
|
||||
|
||||
}
|
||||
}
|
23
Polyclinic/PolyclinicContracts/ViewModels/RecipeView.cs
Normal file
23
Polyclinic/PolyclinicContracts/ViewModels/RecipeView.cs
Normal 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();
|
||||
}
|
||||
}
|
24
Polyclinic/PolyclinicContracts/ViewModels/SuretorView.cs
Normal file
24
Polyclinic/PolyclinicContracts/ViewModels/SuretorView.cs
Normal 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;
|
||||
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user