доделала страницу создания рецепта, осталось ее пофиксить и добавить привязку к курсу приема препаратов
This commit is contained in:
parent
2d57062a31
commit
f489fb34d4
@ -1,20 +0,0 @@
|
|||||||
namespace PolyclinicWebAppSuretor.Models
|
|
||||||
{
|
|
||||||
public class SelectItems
|
|
||||||
{
|
|
||||||
public List<string> Items
|
|
||||||
{
|
|
||||||
get; set;
|
|
||||||
}
|
|
||||||
string[] arr = ["1", "2", "3"];
|
|
||||||
|
|
||||||
public void AddItems()
|
|
||||||
{
|
|
||||||
foreach (var item in arr)
|
|
||||||
{
|
|
||||||
Items.Add(item);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
@ -3,44 +3,114 @@
|
|||||||
@{
|
@{
|
||||||
ViewData["Title"] = "CreateRecipe";
|
ViewData["Title"] = "CreateRecipe";
|
||||||
}
|
}
|
||||||
|
<div class="text-center mt-3 mb-3">
|
||||||
<div class="text-center">
|
|
||||||
<h2 class="display-4">Создание рецепта</h2>
|
<h2 class="display-4">Создание рецепта</h2>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<form method="post">
|
<form method="post" class="form-create-recipe d-flex flex-row justify-content-around align-items-center">
|
||||||
|
|
||||||
<div class="row">
|
<div class="d-flex flex-column mb-5 mt-5">
|
||||||
<div class="col-4">Количество процедур:</div>
|
|
||||||
<div class="col-8">
|
<div class="d-flex flex-row mb-5 flex-row justify-content-between align-items-center">
|
||||||
<input type="text" name="count" id="count" />
|
<h3 class="col-3">
|
||||||
|
Количество процедур:
|
||||||
|
</h3>
|
||||||
|
<input class="col-6" type="text" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="row">
|
<div class="d-flex flex-row mb-5 flex-row justify-content-between align-items-center">
|
||||||
<div class="col-4">Комментарий:</div>
|
<h3 class="col-3">
|
||||||
<div class="col-8">
|
Комментарий:
|
||||||
<input type="text" id="sum" name="sum" readonly />
|
</h3>
|
||||||
|
<textarea class="col-6" id="comment" name="comment">
|
||||||
|
|
||||||
|
</textarea>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="row">
|
<div class="d-flex flex-row mb-5">
|
||||||
<div class="col-4">Процедуры:</div>
|
|
||||||
<div class="col-8">
|
|
||||||
<select id="procedure" name="procedure" class="form-control">
|
<select id="procedure" name="procedure" class="form-control">
|
||||||
@* @foreach (var sushi in ViewBag.Sushis)
|
<option value="">Выберите процедуру/ы</option>
|
||||||
{
|
@{
|
||||||
<option value="@sushi.Id">@sushi.SushiName</option>
|
int count = 3;
|
||||||
} *@
|
for (int i = 1; i <= count; i++)
|
||||||
|
{
|
||||||
|
<option value="@i">процедура "@i"</option>
|
||||||
|
}
|
||||||
|
}
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="row">
|
<div class="d-flex flex-column overflow-auto" style="max-height: 30vh">
|
||||||
<div class="col-8"></div>
|
<table class="table-recipe-create table">
|
||||||
<div class="col-4">
|
<thead>
|
||||||
<input type="submit" value="Создать" class="btn btn-primary" />
|
<tr>
|
||||||
</div>
|
<th>
|
||||||
|
Выбранное из процедур:
|
||||||
|
</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
@{
|
||||||
|
int cRows = 20;
|
||||||
|
for (int i = 1; i <= cRows; i++)
|
||||||
|
{
|
||||||
|
<tr>
|
||||||
|
<td>Процедура № @i </td>
|
||||||
|
<td>
|
||||||
|
<svg class="bi-cart-delete" viewBox="0 0 154 164" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<path d="M44.5 123C4.99995 119.5 -11.8431 56.4293 24 19.5C40.5 2.50001 72.5 -5.5 101.5 27.5L115.5 14.5" stroke="#D10000" stroke-width="8" stroke-linecap="round" />
|
||||||
|
<path d="M65.2123 159.963L56 60.0001C88.0236 76.3307 119.521 77.4194 149 60.0001C141.63 142.346 140.08 160.953 140.226 159.963H65.2123Z" stroke="#D10000" stroke-width="8" />
|
||||||
|
<path d="M121 36L101.582 55L75 31" stroke="#D10000" stroke-width="8" stroke-linecap="round" />
|
||||||
|
</svg>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@* <div class="row">
|
||||||
|
<div class="col-4">Количество процедур:</div>
|
||||||
|
<div class="col-8">
|
||||||
|
<input type="text" name="count" id="count" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-4">Комментарий:</div>
|
||||||
|
<div class="col-8">
|
||||||
|
<input type="text" id="sum" name="sum" readonly />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-4">Процедуры:</div>
|
||||||
|
<div class="col-8">
|
||||||
|
<select id="procedure" name="procedure" class="form-control">
|
||||||
|
<option value="">Выберите рецепт/ы</option>
|
||||||
|
@{
|
||||||
|
int count = 3;
|
||||||
|
for (int i = 1; i <= count; i++)
|
||||||
|
{
|
||||||
|
<option value="@i">рецепт "@i"</option>
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</select>
|
||||||
|
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-8"></div>
|
||||||
|
<div class="col-4">
|
||||||
|
<input type="submit" value="Создать" class="btn btn-primary" />
|
||||||
|
</div>
|
||||||
|
</div> *@
|
||||||
</form>
|
</form>
|
@ -14,53 +14,53 @@
|
|||||||
// <h3 class="display-4">Авторизируйтесь</h3>
|
// <h3 class="display-4">Авторизируйтесь</h3>
|
||||||
// return;
|
// return;
|
||||||
// }
|
// }
|
||||||
<p>
|
<p>
|
||||||
<a asp-action="CreateProcedure">Создать процедуру</a>
|
<a asp-action="CreateProcedure">Создать процедуру</a>
|
||||||
</p>
|
</p>
|
||||||
<table class="table">
|
<table class="table">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>
|
<th>
|
||||||
Номер
|
Номер
|
||||||
</th>
|
</th>
|
||||||
<th>
|
<th>
|
||||||
Название процедуры
|
Название процедуры
|
||||||
</th>
|
</th>
|
||||||
<th>
|
<th>
|
||||||
Комментарий
|
Комментарий
|
||||||
</th>
|
</th>
|
||||||
<th>
|
<th>
|
||||||
Редактировать
|
Редактировать
|
||||||
</th>
|
</th>
|
||||||
<th>
|
<th>
|
||||||
Удалить
|
Удалить
|
||||||
</th>
|
</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<td>
|
<td>
|
||||||
1
|
1
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
Массаж пяточек
|
Массаж пяточек
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
ммммммм
|
ммммммм
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<svg class="bi-edit-pen" viewBox="0 0 127 127" fill="none" xmlns="http://www.w3.org/2000/svg">
|
<svg class="bi-edit-pen" viewBox="0 0 127 127" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||||
<path d="M105.5 26L37 114.5C34.5 117 16.3 121.7 7.5 122.5C79.1 34.1 101 5.5 102 4C104.833 4.5 119.3 14.6 122.5 21C105 44 98.5 55 111.5 58.5" stroke="#008315" stroke-width="6" stroke-linecap="round" />
|
<path d="M105.5 26L37 114.5C34.5 117 16.3 121.7 7.5 122.5C79.1 34.1 101 5.5 102 4C104.833 4.5 119.3 14.6 122.5 21C105 44 98.5 55 111.5 58.5" stroke="#008315" stroke-width="6" stroke-linecap="round" />
|
||||||
</svg>
|
</svg>
|
||||||
|
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<svg class="bi-cart-delete" viewBox="0 0 154 164" fill="none" xmlns="http://www.w3.org/2000/svg">
|
<svg class="bi-cart-delete" viewBox="0 0 154 164" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||||
<path d="M44.5 123C4.99995 119.5 -11.8431 56.4293 24 19.5C40.5 2.50001 72.5 -5.5 101.5 27.5L115.5 14.5" stroke="#D10000" stroke-width="8" stroke-linecap="round" />
|
<path d="M44.5 123C4.99995 119.5 -11.8431 56.4293 24 19.5C40.5 2.50001 72.5 -5.5 101.5 27.5L115.5 14.5" stroke="#D10000" stroke-width="8" stroke-linecap="round" />
|
||||||
<path d="M65.2123 159.963L56 60.0001C88.0236 76.3307 119.521 77.4194 149 60.0001C141.63 142.346 140.08 160.953 140.226 159.963H65.2123Z" stroke="#D10000" stroke-width="8" />
|
<path d="M65.2123 159.963L56 60.0001C88.0236 76.3307 119.521 77.4194 149 60.0001C141.63 142.346 140.08 160.953 140.226 159.963H65.2123Z" stroke="#D10000" stroke-width="8" />
|
||||||
<path d="M121 36L101.582 55L75 31" stroke="#D10000" stroke-width="8" stroke-linecap="round" />
|
<path d="M121 36L101.582 55L75 31" stroke="#D10000" stroke-width="8" stroke-linecap="round" />
|
||||||
</svg>
|
</svg>
|
||||||
</td>
|
</td>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
}
|
}
|
||||||
</div>
|
</div>
|
@ -24,9 +24,37 @@ body {
|
|||||||
.bi-edit-pen {
|
.bi-edit-pen {
|
||||||
color: rgb(72, 108, 16);
|
color: rgb(72, 108, 16);
|
||||||
height: 25px;
|
height: 25px;
|
||||||
|
transition: transform 0.3s;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bi-edit-pen:hover{
|
||||||
|
transform: scale(1.5);
|
||||||
}
|
}
|
||||||
|
|
||||||
.bi-cart-delete {
|
.bi-cart-delete {
|
||||||
color: red ;
|
color: red;
|
||||||
height: 25px;
|
height: 25px;
|
||||||
|
transition: transform 0.3s;
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-create-recipe{
|
||||||
|
color: white;
|
||||||
|
background-color: rgb(66, 132, 112)
|
||||||
|
}S
|
||||||
|
|
||||||
|
.create-recipe{
|
||||||
|
background-color: rgb(145, 195, 128)
|
||||||
|
}
|
||||||
|
|
||||||
|
.bi-cart-delete:hover {
|
||||||
|
transform: scale(1.5);
|
||||||
|
}
|
||||||
|
|
||||||
|
.svg-icon {
|
||||||
|
transition: transform 0.3s;
|
||||||
|
}
|
||||||
|
|
||||||
|
.table-recipe-create{
|
||||||
|
font-size: 2.5vh;
|
||||||
|
color: white;
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user