что-то подредактировала в процедурах и рецептах #15
@ -1,10 +1,4 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace PolyclinicContracts.BindingModels
|
||||
namespace PolyclinicContracts.BindingModels
|
||||
{
|
||||
public class ReportBindingModel
|
||||
{
|
||||
|
@ -84,6 +84,7 @@ namespace PolyclinicDatabaseImplement.Models
|
||||
Procedure = Procedure,
|
||||
Recipe = database.Recipes.First(x => x.Id == pc.Key)
|
||||
});
|
||||
database.SaveChanges();
|
||||
}
|
||||
_recipeProcedures = null;
|
||||
}
|
||||
|
@ -55,7 +55,7 @@ namespace PolyclinicWebAppSuretor.Controllers
|
||||
public IActionResult CreateRecipe(RecipeViewModel model)
|
||||
{
|
||||
ViewBag.Procedures = _procedureLogic.ReadList(null);
|
||||
ViewBag.RecipeProcedures = _recipeLogic.
|
||||
//ViewBag.RecipeProcedures = _recipeLogic.
|
||||
if (HttpContext.Request.Method == "GET")
|
||||
{
|
||||
ViewData["Title"] = "Íîâûé ðåöåïò";
|
||||
|
@ -32,7 +32,7 @@
|
||||
<h3 class="col-3">
|
||||
Выбор процедуры:
|
||||
</h3>
|
||||
<select id="procedureId" name="procedureId" style="width: 45vh" multiple>
|
||||
<select id="procedureId" name="procedureId" style="width: 45vh">
|
||||
<option value="">Выберите процедуру/ы</option>
|
||||
@foreach (var item in ViewBag.Procedures)
|
||||
{
|
||||
@ -52,7 +52,7 @@
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach (var item in ViewBag.RecipeProcedures)
|
||||
@foreach (var item in ViewBag.Procedures)
|
||||
{
|
||||
<tr>
|
||||
<td>Процедура № @item.Id @item.Name</td>
|
||||
|
Loading…
Reference in New Issue
Block a user