прописала контроллеры для привязки симптомов к лекарствам и получения отчета в ворде и экселе , еще что-то подправила для последнего (вместо радиобатонов сделала чекбоксы)
This commit is contained in:
parent
9c97590f23
commit
58fbf0ac08
@ -1,10 +1,5 @@
|
|||||||
using PolyclinicBusinessLogic.OfficePackage.HelperEnums;
|
using PolyclinicBusinessLogic.OfficePackage.HelperEnums;
|
||||||
using PolyclinicBusinessLogic.OfficePackage.HelperModels.Word;
|
using PolyclinicBusinessLogic.OfficePackage.HelperModels.Word;
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
|
|
||||||
namespace PolyclinicBusinessLogic.OfficePackage
|
namespace PolyclinicBusinessLogic.OfficePackage
|
||||||
{
|
{
|
||||||
|
@ -12,7 +12,7 @@ namespace PolyclinicContracts.BusinessLogicsContracts
|
|||||||
public interface ISuretorReportLogic
|
public interface ISuretorReportLogic
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Получение списка компонент с указанием, в каких изделиях используются
|
/// Получение данных (списка) курсов - ну он получается один по выбранным процедурам
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
List<ReportCoursesByProcedureViewModel> GetProcedureCourses(ProcedureSearchModel model);
|
List<ReportCoursesByProcedureViewModel> GetProcedureCourses(ProcedureSearchModel model);
|
||||||
|
@ -276,12 +276,18 @@ namespace PolyclinicWebAppSuretor.Controllers
|
|||||||
|
|
||||||
public IActionResult ListCoursesByProcedures()
|
public IActionResult ListCoursesByProcedures()
|
||||||
{
|
{
|
||||||
return View();
|
List<ProcedureViewModel> procedures = _procedureLogic.ReadList(null);
|
||||||
|
return View(procedures);
|
||||||
}
|
}
|
||||||
|
|
||||||
public IActionResult AddSymptomToMedicament()
|
public IActionResult AddSymptomToMedicament(AddSymptomToMedicamentModel model)
|
||||||
{
|
{
|
||||||
return View();
|
model = new()
|
||||||
|
{
|
||||||
|
Medicaments = _medicamentLogic.ReadList(null),
|
||||||
|
Symptoms = _symptomLogic.ReadList(null)
|
||||||
|
};
|
||||||
|
return View(model);
|
||||||
}
|
}
|
||||||
|
|
||||||
[HttpGet]
|
[HttpGet]
|
||||||
|
@ -0,0 +1,10 @@
|
|||||||
|
using PolyclinicContracts.ViewModels;
|
||||||
|
|
||||||
|
namespace PolyclinicWebAppSuretor.Models
|
||||||
|
{
|
||||||
|
public class AddSymptomToMedicamentModel
|
||||||
|
{
|
||||||
|
public List<MedicamentViewModel> Medicaments { get; set; } = new();
|
||||||
|
public List<SymptomViewModel> Symptoms { get; set; } = new();
|
||||||
|
}
|
||||||
|
}
|
@ -1,4 +1,6 @@
|
|||||||
@using PolyclinicContracts.ViewModels
|
@using PolyclinicContracts.ViewModels
|
||||||
|
@model AddSymptomToMedicamentModel
|
||||||
|
|
||||||
@{
|
@{
|
||||||
ViewData["Title"] = "AddSymptomToMedicament";
|
ViewData["Title"] = "AddSymptomToMedicament";
|
||||||
}
|
}
|
||||||
@ -7,12 +9,13 @@
|
|||||||
<div class="row mb-2">
|
<div class="row mb-2">
|
||||||
<div class="col-3 d-flex align-content-center">
|
<div class="col-3 d-flex align-content-center">
|
||||||
<h5 class="me-2">Симптом: </h5>
|
<h5 class="me-2">Симптом: </h5>
|
||||||
|
|
||||||
<select id="symptomId" name="symptomId" class="me-2">
|
<select id="symptomId" name="symptomId" class="me-2">
|
||||||
<option value="">Выберите симптом</option>
|
<option value="">Выберите симптом</option>
|
||||||
@{
|
@{
|
||||||
for (int i = 1; i <= 10; i++)
|
foreach (var item in Model.Symptoms)
|
||||||
{
|
{
|
||||||
<option value="@i">Симптом номер @i</option>
|
<option value="@item.Id">@item.Name</option>
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</select>
|
</select>
|
||||||
@ -21,12 +24,13 @@
|
|||||||
<div class="row mb-2">
|
<div class="row mb-2">
|
||||||
<div class="col-3 d-flex align-content-center">
|
<div class="col-3 d-flex align-content-center">
|
||||||
<h5 class="me-2">Лекарство: </h5>
|
<h5 class="me-2">Лекарство: </h5>
|
||||||
|
|
||||||
<select id="medicamentId" name="medicamentId" class="me-2">
|
<select id="medicamentId" name="medicamentId" class="me-2">
|
||||||
<option value="">Выберите лекарство</option>
|
<option value="">Выберите лекарство</option>
|
||||||
@{
|
@{
|
||||||
for (int i = 1; i <= 10; i++)
|
foreach (var item in Model.Medicaments)
|
||||||
{
|
{
|
||||||
<option value="@i">лекарство @i</option>
|
<option value="@item.Id">@item.Name</option>
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</select>
|
</select>
|
||||||
|
@ -38,11 +38,12 @@
|
|||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="d-flex flex-row mb-5 justify-content-between align-items-center overflow-auto" style="max-height: 20vh">
|
<div class="d-flex flex-row mb-5 justify-content-between align-items-center">
|
||||||
<h3 class="col-3">
|
<h3 class="col-3">
|
||||||
Выбор процедуры:
|
Выбор процедуры:
|
||||||
</h3>
|
</h3>
|
||||||
<label value="">Выберите процедуру/ы</label>
|
<label value="">Выберите процедуру/ы</label>
|
||||||
|
<div class="overflow-auto" style="max-height: 20vh">
|
||||||
<ol>
|
<ol>
|
||||||
@foreach (var item in Model.Procedures)
|
@foreach (var item in Model.Procedures)
|
||||||
{
|
{
|
||||||
@ -60,6 +61,8 @@
|
|||||||
}
|
}
|
||||||
</ol>
|
</ol>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
@using PolyclinicContracts.ViewModels
|
@using PolyclinicContracts.ViewModels
|
||||||
|
@model List<ProcedureViewModel>
|
||||||
@{
|
@{
|
||||||
ViewData["Title"] = "ListCoursesByProcedures";
|
ViewData["Title"] = "ListCoursesByProcedures";
|
||||||
}
|
}
|
||||||
@ -10,17 +11,16 @@
|
|||||||
|
|
||||||
<div class="procedure-info d-flex flex-column mb-5 mt-5">
|
<div class="procedure-info d-flex flex-column mb-5 mt-5">
|
||||||
<p style="font-size: 3vh">
|
<p style="font-size: 3vh">
|
||||||
Выберите процедуру из списка
|
Выберите процедуру/ы из списка
|
||||||
</p>
|
</p>
|
||||||
<div class="list-procedures list-group overflow-auto">
|
<div class="list-procedures list-group overflow-auto">
|
||||||
<ul>
|
<ul>
|
||||||
@{
|
@{
|
||||||
int count = 20;
|
foreach (var item in Model)
|
||||||
for (int i = 1; i <= count; i++)
|
|
||||||
{
|
{
|
||||||
<li class="d-flex mb-2">
|
<li class="d-flex mb-2">
|
||||||
<input class="me-2" name="procedure-@i" type="radio" id="procedure-@i" />
|
<input class="me-2" name="procedure-@item.Id" type="checkbox" id="procedure-@item.Id" />
|
||||||
<label for="diagnose-@i">процедура @i</label>
|
<label for="procedure-@item.Id">@item.Name</label>
|
||||||
</li>
|
</li>
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user