подгрузила папки
This commit is contained in:
parent
0c6badf867
commit
bf46dca2e5
9
BeautySalonView/ClientWebApp/Models/ErrorViewModel.cs
Normal file
9
BeautySalonView/ClientWebApp/Models/ErrorViewModel.cs
Normal file
@ -0,0 +1,9 @@
|
||||
namespace BeutySalonClientApp.Models
|
||||
{
|
||||
public class ErrorViewModel
|
||||
{
|
||||
public string? RequestId { get; set; }
|
||||
|
||||
public bool ShowRequestId => !string.IsNullOrEmpty(RequestId);
|
||||
}
|
||||
}
|
@ -1,21 +1,19 @@
|
||||
@{
|
||||
ViewData["Title"] = "Enter";
|
||||
ViewData["Title"] = "Вход";
|
||||
}
|
||||
|
||||
<div class="text-center">
|
||||
<h2 class="display-4">Вход в приложение</h2>
|
||||
</div>
|
||||
<h4 class="fw-bold">Вход в приложение</h4>
|
||||
|
||||
<form method="post">
|
||||
<div class="row">
|
||||
<div class="col-4">Логин:</div>
|
||||
<div class="col-8"><input type="text" name="login" /></div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-4">Пароль:</div>
|
||||
<div class="col-8"><input type="password" name="password" /></div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-8"></div>
|
||||
<div class="col-4"><input type="submit" value="Вход" class="btn btn-primary" /></div>
|
||||
</div>
|
||||
<div class="mb-3">
|
||||
<label for="login" class="form-label">Логин:</label>
|
||||
<input id="login" name="login" type="text" class="form-control" aria-label="Login">
|
||||
</div>
|
||||
<div class="mb-3">
|
||||
<label for="password" class="form-label">Пароль:</label>
|
||||
<input id="password" name="password" type="password" class="form-control" aria-label="Password">
|
||||
</div>
|
||||
<button type="submit" class="btn button-primary">
|
||||
Войти
|
||||
</button>
|
||||
</form>
|
@ -36,7 +36,6 @@
|
||||
<tbody>
|
||||
@foreach (var item in Model)
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
</tbody>
|
||||
|
8
BeautySalonView/ClientWebApp/Views/Home/Index.cshtml
Normal file
8
BeautySalonView/ClientWebApp/Views/Home/Index.cshtml
Normal file
@ -0,0 +1,8 @@
|
||||
@{
|
||||
ViewData["Title"] = "HomePage";
|
||||
}
|
||||
<h1 class="display-4 text-center">Мы Вас не ждали, зло пожаловать!</h1>
|
||||
|
||||
<div class="text-center">
|
||||
<p><img src="/images/logo.png" alt="Logo" /></p>
|
||||
</div>
|
53
BeautySalonView/ClientWebApp/Views/Home/Order.cshtml
Normal file
53
BeautySalonView/ClientWebApp/Views/Home/Order.cshtml
Normal file
@ -0,0 +1,53 @@
|
||||
@using BeautySalonContracts.ViewModels
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Заказы";
|
||||
}
|
||||
|
||||
<h4 class="fw-bold">Заказы</h4>
|
||||
|
||||
<div class="d-flex flex-wrap align-items-center justify-content-between">
|
||||
<div class="d-flex mb-2 gap-1">
|
||||
<a asp-controller="Order" asp-action="Create" class="button-primary">
|
||||
Создать
|
||||
</a>
|
||||
<a id="update-button" class="button-primary">
|
||||
Обновить
|
||||
</a>
|
||||
<button id="delete-button" class="button-primary me-5">
|
||||
Удалить
|
||||
</button>
|
||||
</div>
|
||||
<div class="d-flex mb-2 gap-1">
|
||||
<div class="input-group" style="width: auto;">
|
||||
<input id="page-input" type="number" min="1" value="@ViewBag.Page" max="@ViewBag.NumberOfPages" class="form-control" style="max-width: 5em">
|
||||
<span class="input-group-text">/ @ViewBag.NumberOfPages</span>
|
||||
</div>
|
||||
<a href="/Home/Cars?page=@ViewBag.Page" id="go-button" class="button-primary">
|
||||
Перейти
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="border">
|
||||
<table class="table mb-0">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Номер заказа</th>
|
||||
<th>Дата заказа</th>
|
||||
<th>Сумма заказа</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach (var item in ViewBag.Order)
|
||||
{
|
||||
<tr class="table-row" id="row-@item.Id">
|
||||
<td>@item.Id</td>
|
||||
<td>@item.OrderDate</td>
|
||||
<td>@item.OrderAmount</td>
|
||||
</tr>
|
||||
}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<script src="~/js/order.js" asp-append-version="true"></script>
|
51
BeautySalonView/ClientWebApp/Views/Home/Procedure.cshtml
Normal file
51
BeautySalonView/ClientWebApp/Views/Home/Procedure.cshtml
Normal file
@ -0,0 +1,51 @@
|
||||
@using BeautySalonContracts.ViewModels
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Процедуры";
|
||||
}
|
||||
|
||||
<h4 class="fw-bold">Процедуры</h4>
|
||||
|
||||
<div class="d-flex flex-wrap align-items-center justify-content-between">
|
||||
<div class="d-flex mb-2 gap-1">
|
||||
<a asp-controller="Procedure" asp-action="Create" class="button-primary">
|
||||
Создать
|
||||
</a>
|
||||
<a id="update-button" class="button-primary">
|
||||
Обновить
|
||||
</a>
|
||||
<button id="delete-button" class="button-primary me-5">
|
||||
Удалить
|
||||
</button>
|
||||
</div>
|
||||
<div class="d-flex mb-2 gap-1">
|
||||
<div class="input-group" style="width: auto;">
|
||||
<input id="page-input" type="number" min="1" value="@ViewBag.Page" max="@ViewBag.NumberOfPages" class="form-control" style="max-width: 5em">
|
||||
<span class="input-group-text">/ @ViewBag.NumberOfPages</span>
|
||||
</div>
|
||||
<a href="/Home/Procedure?page=@ViewBag.Page" id="go-button" class="button-primary">
|
||||
Перейти
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="border">
|
||||
<table class="table mb-0">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Наименование процедуры</th>
|
||||
<th>Цена процедуры</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach (var item in ViewBag.Procedure)
|
||||
{
|
||||
<tr class="table-row" id="row-@item.Id">
|
||||
<td>@item.ProcedureName</td>
|
||||
<td>@item.ProcedurePrice</td>
|
||||
</tr>
|
||||
}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<script src="~/js/procedure.js" asp-append-version="true"></script>
|
25
BeautySalonView/ClientWebApp/Views/Home/Register.cshtml
Normal file
25
BeautySalonView/ClientWebApp/Views/Home/Register.cshtml
Normal file
@ -0,0 +1,25 @@
|
||||
@{
|
||||
ViewData["Title"] = "Регистрация";
|
||||
}
|
||||
|
||||
<h4 class="fw-bold">Регистрация</h4>
|
||||
|
||||
<form method="post">
|
||||
<div class="mb-3">
|
||||
<label for="login" class="form-label">Логин:</label>
|
||||
<input id="login" name="login" type="text" class="form-control" aria-label="Login">
|
||||
</div>
|
||||
<div class="mb-3">
|
||||
<label for="password" class="form-label">Пароль:</label>
|
||||
<input id="password" name="password" type="password" class="form-control" aria-label="Password">
|
||||
</div>
|
||||
<div class="mb-3">
|
||||
<label for="email" class="form-label">Адрес электронной почты:</label>
|
||||
<input id="email" name="email" type="email" class="form-control" aria-label="Email">
|
||||
</div>
|
||||
<div>
|
||||
<button type="submit" class="btn button-primary">
|
||||
Регистрация
|
||||
</button>
|
||||
</div>
|
||||
</form>
|
45
BeautySalonView/ClientWebApp/Views/Home/Report.cshtml
Normal file
45
BeautySalonView/ClientWebApp/Views/Home/Report.cshtml
Normal file
@ -0,0 +1,45 @@
|
||||
@{
|
||||
ViewData["Title"] = "Report";
|
||||
}
|
||||
|
||||
<h4 class="fw-bold">Отчет по услугам</h4>
|
||||
|
||||
<div class="d-flex flex-wrap gap-1 align-items-end mb-2">
|
||||
<div class="mb-2">
|
||||
<p class="mb-0">Дата начала:</p>
|
||||
<input id="date-from-input" class="form-control" type="date" />
|
||||
</div>
|
||||
<div class="mb-2">
|
||||
<p class="mb-0">Дата конца:</p>
|
||||
<input id="date-to-input" class="form-control" type="date" />
|
||||
</div>
|
||||
<button id="generate-button" class="button-primary mb-2">
|
||||
Показать
|
||||
</button>
|
||||
<button id="send-by-mail-button" class="button-primary mb-2">
|
||||
На почту
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<p class="mb-0">
|
||||
<span>За период с </span>
|
||||
<span id="date-from-span" class="fw-bold">...</span>
|
||||
<span> по </span>
|
||||
<span id="date-to-span" class="fw-bold">...</span>
|
||||
</p>
|
||||
<div class="table-shell mb-2 border">
|
||||
<table class="table mb-0">
|
||||
<thead class="table-head">
|
||||
<tr>
|
||||
<th>Номер заказа</th>
|
||||
<th>Дата</th>
|
||||
<th>Услуги</th>
|
||||
<th>Оценки</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="tbody">
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<script src="~/js/report.js" asp-append-version="true"></script>
|
52
BeautySalonView/ClientWebApp/Views/Home/ServiceList.cshtml
Normal file
52
BeautySalonView/ClientWebApp/Views/Home/ServiceList.cshtml
Normal file
@ -0,0 +1,52 @@
|
||||
@{
|
||||
ViewData["Title"] = "Список услуг по заказам";
|
||||
}
|
||||
|
||||
<h4 class="fw-bold">Список услуг по заказам</h4>
|
||||
|
||||
@{
|
||||
if (ViewBag.IsAllowed == false)
|
||||
{
|
||||
<h3 class="display-4">Авторизируйтесь</h3>
|
||||
return;
|
||||
}
|
||||
|
||||
<div class="mb-2">
|
||||
<button id="word-button" class="button-primary">
|
||||
Word
|
||||
</button>
|
||||
<button id="excel-button" class="button-primary">
|
||||
Excel
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<p class="mb-0">Выбранные заказы:</p>
|
||||
<div class="table-shell border">
|
||||
<table class="table mb-0">
|
||||
<thead class="table-head">
|
||||
<tr>
|
||||
<th>Дата</th>
|
||||
<th>Сумма</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="tbody">
|
||||
<tr>
|
||||
<td>Не выбрано</td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<p class="mb-0">Добавить заказ:</p>
|
||||
<div class="d-flex gap-1 mb-2">
|
||||
<select class="form-select mb-0" id="order-select"></select>
|
||||
<button id="add-button" class="button-primary">
|
||||
Добавить
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<script src="~/js/list.js" asp-append-version="true"></script>
|
||||
}
|
75
BeautySalonView/ClientWebApp/Views/Order/Create.cshtml
Normal file
75
BeautySalonView/ClientWebApp/Views/Order/Create.cshtml
Normal file
@ -0,0 +1,75 @@
|
||||
@{
|
||||
ViewData["Title"] = "Заказ";
|
||||
}
|
||||
|
||||
<h4 class="fw-bold">Создать заказ</h4>
|
||||
|
||||
<p class="mb-0 fw-bold">Выбранные услуги:</p>
|
||||
<div>
|
||||
<table class="table mb-0">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Название</th>
|
||||
<th>Стоимость</th>
|
||||
<th>Количество</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="service-tbody">
|
||||
<tr>
|
||||
<td>Не выбрано</td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<p class="mb-0 fw-bold">Добавить услугу:</p>
|
||||
<p class="mb-0">Наименование:</p>
|
||||
<select class="form-select mb-0" id="service-select"></select>
|
||||
<p class="mb-0">Количество:</p>
|
||||
<input type="number" min="1" value="1" id="service-count-input" class="form-control mb-2" />
|
||||
<button id="add-service-button" class="button-primary">
|
||||
Добавить
|
||||
</button>
|
||||
|
||||
<p class="mb-0 fw-bold">Выбранные процедуры:</p>
|
||||
<div>
|
||||
<table class="table mb-0">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Название</th>
|
||||
<th>Стоимость</th>
|
||||
<th>Количество</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="procedure-tbody">
|
||||
<tr>
|
||||
<td>Не выбрано</td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<p class="mb-0 fw-bold">Привязать процедуру:</p>
|
||||
<p class="mb-0">Наименование:</p>
|
||||
<select class="form-select mb-0" id="procedure-select"></select>
|
||||
<p class="mb-0">Количество:</p>
|
||||
<input type="number" min="1" value="1" id="procedure-count-input" class="form-control mb-2" />
|
||||
<button id="add-procedure-button" class="button-primary">
|
||||
Привязать
|
||||
</button>
|
||||
|
||||
<p class="mb-0 fw-bold">Стоимость заказа:</p>
|
||||
<input type="number" step="0.01" id="price-input" class="form-control mb-2" value="0.01" readonly />
|
||||
<button id="create-button" class="button-primary">
|
||||
Создать
|
||||
</button>
|
||||
|
||||
<script src="~/js/order-create.js" asp-append-version="true"></script>
|
77
BeautySalonView/ClientWebApp/Views/Order/Update.cshtml
Normal file
77
BeautySalonView/ClientWebApp/Views/Order/Update.cshtml
Normal file
@ -0,0 +1,77 @@
|
||||
@{
|
||||
ViewData["Title"] = "Заказ";
|
||||
}
|
||||
|
||||
<h4 class="fw-bold">Обновить заказ</h4>
|
||||
|
||||
<p class="mb-0 fw-bold">Выбранные услуги:</p>
|
||||
<div>
|
||||
<table class="table mb-0">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Название</th>
|
||||
<th>Стоимость</th>
|
||||
<th>Количество</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="service-tbody">
|
||||
<tr>
|
||||
<td>Не выбрано</td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<p class="mb-0 fw-bold">Добавить услугу:</p>
|
||||
<p class="mb-0">Наименование:</p>
|
||||
<select class="form-select mb-0" id="service-select"></select>
|
||||
<p class="mb-0">Количество:</p>
|
||||
<input type="number" min="1" value="1" id="service-count-input" class="form-control mb-2" />
|
||||
<button id="add-service-button" class="button-primary">
|
||||
Добавить
|
||||
</button>
|
||||
|
||||
<p class="mb-0 fw-bold">Выбранные процедуры:</p>
|
||||
<div>
|
||||
<table class="table mb-0">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Название</th>
|
||||
<th>Стоимость</th>
|
||||
<th>Количество</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="procedure-tbody">
|
||||
<tr>
|
||||
<td>Не выбрано</td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<p class="mb-0 fw-bold">Добавить процедуру:</p>
|
||||
<p class="mb-0">Наименование:</p>
|
||||
<select class="form-select mb-0" id="procedure-select"></select>
|
||||
<p class="mb-0">Количество:</p>
|
||||
<input type="number" min="1" value="1" id="procedure-count-input" class="form-control mb-2" />
|
||||
<button id="add-procedure-button" class="button-primary">
|
||||
Добавить
|
||||
</button>
|
||||
|
||||
<p class="mb-0 fw-bold">Стоимость заказа:</p>
|
||||
<input type="number" step="0.01" id="price-input" class="form-control mb-2" value="0.01" readonly />
|
||||
<button id="update-button" class="button-primary">
|
||||
Обновить
|
||||
</button>
|
||||
|
||||
<input id="id" value="@ViewBag.Id" style="display: none;" />
|
||||
|
||||
<script src="~/js/order-update.js" asp-append-version="true"></script>
|
49
BeautySalonView/ClientWebApp/Views/Procedure/Create.cshtml
Normal file
49
BeautySalonView/ClientWebApp/Views/Procedure/Create.cshtml
Normal file
@ -0,0 +1,49 @@
|
||||
@{
|
||||
ViewData["Title"] = "Процедура";
|
||||
}
|
||||
|
||||
<h4 class="fw-bold">Создать процедуру</h4>
|
||||
|
||||
<p class="mb-0">Название процедуры:</p>
|
||||
<input id="name-input" class="form-control mb-2" />
|
||||
|
||||
<p class="mb-0 fw-bold">Выбранная косметика:</p>
|
||||
<div>
|
||||
<table class="table mb-0">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Бренд</th>
|
||||
<th>Наименование косметики</th>
|
||||
<th>Стоимость</th>
|
||||
<th>Количество</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="tbody">
|
||||
<tr>
|
||||
<td>Не выбрано</td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<p class="mb-0 fw-bold">Добавить косметику:</p>
|
||||
<p class="mb-0">Наименование:</p>
|
||||
<select class="form-select mb-0" id="cosmetic-select"></select>
|
||||
<p class="mb-0">Количество:</p>
|
||||
<input type="number" min="1" value="1" id="count-input" class="form-control mb-2" />
|
||||
<button id="add-button" class="button-primary">
|
||||
Добавить
|
||||
</button>
|
||||
|
||||
<p class="mb-0 fw-bold">Стоимость процедуры:</p>
|
||||
<input type="number" step="0.01" id="price-input" class="form-control mb-2" value="0.01" readonly />
|
||||
<button id="create-button" class="button-primary">
|
||||
Создать
|
||||
</button>
|
||||
|
||||
<script src="~/js/procedure-create.js" asp-append-version="true"></script>
|
51
BeautySalonView/ClientWebApp/Views/Procedure/Update.cshtml
Normal file
51
BeautySalonView/ClientWebApp/Views/Procedure/Update.cshtml
Normal file
@ -0,0 +1,51 @@
|
||||
@{
|
||||
ViewData["Title"] = "Процедура";
|
||||
}
|
||||
|
||||
<h4 class="fw-bold">Обновить процедуру</h4>
|
||||
|
||||
<p class="mb-0">Название процедуры:</p>
|
||||
<input id="name-input" class="form-control mb-2" />
|
||||
|
||||
<p class="mb-0 fw-bold">Выбранная косметика:</p>
|
||||
<div>
|
||||
<table class="table mb-0">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Бренд</th>
|
||||
<th>Наименование косметики</th>
|
||||
<th>Стоимость</th>
|
||||
<th>Количество</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="tbody">
|
||||
<tr>
|
||||
<td>Не выбрано</td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<p class="mb-0 fw-bold">Добавить косметику:</p>
|
||||
<p class="mb-0">Наименование:</p>
|
||||
<select class="form-select mb-0" id="cosmetic-select"></select>
|
||||
<p class="mb-0">Количество:</p>
|
||||
<input type="number" min="1" value="1" id="count-input" class="form-control mb-2" />
|
||||
<button id="add-button" class="button-primary">
|
||||
Добавить
|
||||
</button>
|
||||
|
||||
<p class="mb-0 fw-bold">Стоимость процедуры:</p>
|
||||
<input type="number" step="0.01" id="price-input" class="form-control mb-2" value="0.01" readonly />
|
||||
<button id="update-button" class="button-primary">
|
||||
Обновить
|
||||
</button>
|
||||
|
||||
<input id="id" value="@ViewBag.Id" style="display: none;" />
|
||||
|
||||
<script src="~/js/procedure-update.js" asp-append-version="true"></script>
|
25
BeautySalonView/ClientWebApp/Views/Rating/Create.cshtml
Normal file
25
BeautySalonView/ClientWebApp/Views/Rating/Create.cshtml
Normal file
@ -0,0 +1,25 @@
|
||||
@{
|
||||
ViewData["Title"] = "Оценка";
|
||||
}
|
||||
|
||||
<h4 class="fw-bold">Создать оценку</h4>
|
||||
|
||||
<form method="post" asp-controller="Rating" asp-action="Create">
|
||||
<p class="mb-0">Баллы за процедуру:</p>
|
||||
<input type="number" min="0" max="10" step="0.01" name="pointsProcedure" class="form-control mb-2" />
|
||||
<p class="mb-0">Баллы за косметику:</p>
|
||||
<input type="number" min="0" max="10" step="0.01" name="pointsCosmetics" class="form-control mb-2" />
|
||||
<p class="mb-0">Процедура:</p>
|
||||
<select class="form-select mb-2" name="procedureId">
|
||||
@foreach (var procedure in @ViewBag.Procedure)
|
||||
{
|
||||
<option value="@procedure.Id">
|
||||
@(procedure.ProcedureName); @(procedure.ProcedurePrice) р.
|
||||
</option>
|
||||
}
|
||||
</select>
|
||||
<button class="button-primary text-button">
|
||||
Создать
|
||||
</button>
|
||||
</form>
|
||||
|
38
BeautySalonView/ClientWebApp/Views/Rating/Update.cshtml
Normal file
38
BeautySalonView/ClientWebApp/Views/Rating/Update.cshtml
Normal file
@ -0,0 +1,38 @@
|
||||
@{
|
||||
ViewData["Title"] = "Оценка";
|
||||
}
|
||||
|
||||
<h4 class="fw-bold">Обновить оценку</h4>
|
||||
|
||||
<form method="post" asp-controller="Rating" asp-action="Create">
|
||||
<input name="id" value="@ViewBag.Rating.Id" style="display: none;" />
|
||||
<p class="mb-0">Баллы за процедуру:</p>
|
||||
<input type="number" min="0" max="10" step="0.01" name="pointsProcedure" class="form-control mb-2"
|
||||
value="@ViewBag.Rating.PointsProcedure.ToString("0.00").Replace(",", ".")" />
|
||||
<p class="mb-0">Баллы за косметику:</p>
|
||||
<input type="number" min="0" max="10" step="0.01" name="pointsCosmetics" class="form-control mb-2"
|
||||
value="@ViewBag.Rating.PointsCosmetics.ToString("0.00").Replace(",", ".")" />
|
||||
<p class="mb-0">Процедура:</p>
|
||||
<select class="form-select mb-2" name="procedureId">
|
||||
@foreach (var procedure in @ViewBag.Procedure)
|
||||
{
|
||||
@if (procedure.Id == ViewBag.Rating.ProcedureId)
|
||||
{
|
||||
<option value="@procedure.Id" selected>
|
||||
@(procedure.ProcedureName); @(procedure.ProcedurePrice) р.
|
||||
</option>
|
||||
}
|
||||
else
|
||||
{
|
||||
<option value="@procedure.Id">
|
||||
@(procedure.ProcedureName); @(procedure.ProcedurePrice) р.
|
||||
</option>
|
||||
}
|
||||
}
|
||||
</select>
|
||||
<button class="button-primary text-button">
|
||||
Обновить
|
||||
</button>
|
||||
</form>
|
||||
|
||||
<script src="~/js/rating.js" asp-append-version="true"></script>
|
25
BeautySalonView/ClientWebApp/Views/Shared/Error.cshtml
Normal file
25
BeautySalonView/ClientWebApp/Views/Shared/Error.cshtml
Normal file
@ -0,0 +1,25 @@
|
||||
@model ErrorViewModel
|
||||
@{
|
||||
ViewData["Title"] = "Error";
|
||||
}
|
||||
|
||||
<h1 class="text-danger">Error.</h1>
|
||||
<h2 class="text-danger">An error occurred while processing your request.</h2>
|
||||
|
||||
@if (Model.ShowRequestId)
|
||||
{
|
||||
<p>
|
||||
<strong>Request ID:</strong> <code>@Model.RequestId</code>
|
||||
</p>
|
||||
}
|
||||
|
||||
<h3>Development Mode</h3>
|
||||
<p>
|
||||
Swapping to <strong>Development</strong> environment will display more detailed information about the error that occurred.
|
||||
</p>
|
||||
<p>
|
||||
<strong>The Development environment shouldn't be enabled for deployed applications.</strong>
|
||||
It can result in displaying sensitive information from exceptions to end users.
|
||||
For local debugging, enable the <strong>Development</strong> environment by setting the <strong>ASPNETCORE_ENVIRONMENT</strong> environment variable to <strong>Development</strong>
|
||||
and restarting the app.
|
||||
</p>
|
70
BeautySalonView/ClientWebApp/Views/Shared/_Layout.cshtml
Normal file
70
BeautySalonView/ClientWebApp/Views/Shared/_Layout.cshtml
Normal file
@ -0,0 +1,70 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>@ViewData["Title"] - BeutySalonClientApp</title>
|
||||
<link rel="stylesheet" href="~/lib/bootstrap/dist/css/bootstrap.min.css" />
|
||||
<link rel="stylesheet" href="~/css/site.css" asp-append-version="true" />
|
||||
<link rel="stylesheet" href="~/BeutySalonClientApp.styles.css" asp-append-version="true" />
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<nav class="navbar navbar-expand-sm navbar-toggleable-sm navbar-light bg-white border-bottom box-shadow mb-3">
|
||||
<div class="container-fluid">
|
||||
<div class="d-flex flex-column">
|
||||
<a class="navbar-brand fw-weight-bold py-0 px-2" asp-area="" asp-controller="Home" asp-action="Index">Вы Ужасны</a>
|
||||
<div class="px-2">ClientApp</div>
|
||||
</div>
|
||||
<div class="mx-2">
|
||||
<img src="https://png.pngtree.com/png-clipart/20191120/original/pngtree-spider-glyph-icon-vector-png-image_5056646.jpg" alt="mdo" width="35" height="35" class="rounded-circle">
|
||||
</div>
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target=".navbar-collapse" aria-controls="navbarSupportedContent"
|
||||
aria-expanded="false" aria-label="Toggle navigation">
|
||||
<span class="navbar-toggler-icon"></span>
|
||||
</button>
|
||||
<div class="navbar-collapse collapse d-sm-inline-flex justify-content-between">
|
||||
<ul class="navbar-nav flex-grow-1">
|
||||
<li class="nav-item">
|
||||
<a class="nav-link text-dark" asp-area="" asp-controller="Home" asp-action="Register">Регистрация</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link text-dark" asp-area="" asp-controller="Home" asp-action="Enter">Авторизация</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link text-dark" asp-area="" asp-controller="Home" asp-action="Procedure">Процедуры</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link text-dark" asp-area="" asp-controller="Home" asp-action="Order">Заказы</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link text-dark" asp-area="" asp-controller="Home" asp-action="Rating">Оценки</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link text-dark" asp-area="" asp-controller="Home" asp-action="ServiceList">Список</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link text-dark" asp-area="" asp-controller="Home" asp-action="Report">Отчет</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
</header>
|
||||
<div class="container">
|
||||
<main role="main" class="pb-3">
|
||||
@RenderBody()
|
||||
</main>
|
||||
</div>
|
||||
|
||||
<footer class="border-top footer text-muted">
|
||||
<div class="container">
|
||||
© 2023 - BeutySalonClientApp - <a asp-area="" asp-controller="Home" asp-action="Privacy">Privacy</a>
|
||||
</div>
|
||||
</footer>
|
||||
<script src="~/lib/jquery/dist/jquery.min.js"></script>
|
||||
<script src="~/lib/bootstrap/dist/js/bootstrap.bundle.min.js"></script>
|
||||
<script src="~/js/site.js" asp-append-version="true"></script>
|
||||
@await RenderSectionAsync("Scripts", required: false)
|
||||
</body>
|
||||
</html>
|
48
BeautySalonView/ClientWebApp/Views/Shared/_Layout.cshtml.css
Normal file
48
BeautySalonView/ClientWebApp/Views/Shared/_Layout.cshtml.css
Normal file
@ -0,0 +1,48 @@
|
||||
/* Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification
|
||||
for details on configuring this project to bundle and minify static web assets. */
|
||||
|
||||
a.navbar-brand {
|
||||
white-space: normal;
|
||||
text-align: center;
|
||||
word-break: break-all;
|
||||
}
|
||||
|
||||
a {
|
||||
color: #0077cc;
|
||||
}
|
||||
|
||||
.btn-primary {
|
||||
color: #fff;
|
||||
background-color: #1b6ec2;
|
||||
border-color: #1861ac;
|
||||
}
|
||||
|
||||
.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
|
||||
color: #fff;
|
||||
background-color: #1b6ec2;
|
||||
border-color: #1861ac;
|
||||
}
|
||||
|
||||
.border-top {
|
||||
border-top: 1px solid #e5e5e5;
|
||||
}
|
||||
.border-bottom {
|
||||
border-bottom: 1px solid #e5e5e5;
|
||||
}
|
||||
|
||||
.box-shadow {
|
||||
box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
|
||||
}
|
||||
|
||||
button.accept-policy {
|
||||
font-size: 1rem;
|
||||
line-height: inherit;
|
||||
}
|
||||
|
||||
.footer {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
width: 100%;
|
||||
white-space: nowrap;
|
||||
line-height: 60px;
|
||||
}
|
@ -0,0 +1,2 @@
|
||||
<script src="~/lib/jquery-validation/dist/jquery.validate.min.js"></script>
|
||||
<script src="~/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.min.js"></script>
|
3
BeautySalonView/ClientWebApp/Views/_ViewImports.cshtml
Normal file
3
BeautySalonView/ClientWebApp/Views/_ViewImports.cshtml
Normal file
@ -0,0 +1,3 @@
|
||||
@using BeutySalonClientApp
|
||||
@using BeutySalonClientApp.Models
|
||||
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
|
3
BeautySalonView/ClientWebApp/Views/_ViewStart.cshtml
Normal file
3
BeautySalonView/ClientWebApp/Views/_ViewStart.cshtml
Normal file
@ -0,0 +1,3 @@
|
||||
@{
|
||||
Layout = "_Layout";
|
||||
}
|
@ -16,8 +16,6 @@
|
||||
|
||||
<ItemGroup>
|
||||
<Folder Include="Controllers\" />
|
||||
<Folder Include="Models\" />
|
||||
<Folder Include="Views\" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
@ -5,7 +5,7 @@ using Microsoft.AspNetCore.Mvc;
|
||||
using StorekeeperWebApp.Models;
|
||||
using System.Diagnostics;
|
||||
|
||||
namespace SStorekeeperWebApp.Controllers
|
||||
namespace StorekeeperWebApp.Controllers
|
||||
{
|
||||
public class HomeController : Controller
|
||||
{
|
||||
|
@ -0,0 +1,9 @@
|
||||
namespace BeutySalonStaffMemberApp.Models
|
||||
{
|
||||
public class ErrorViewModel
|
||||
{
|
||||
public string? RequestId { get; set; }
|
||||
|
||||
public bool ShowRequestId => !string.IsNullOrEmpty(RequestId);
|
||||
}
|
||||
}
|
@ -16,8 +16,29 @@
|
||||
|
||||
<ItemGroup>
|
||||
<Folder Include="Controllers\" />
|
||||
<Folder Include="Models\" />
|
||||
<Folder Include="Views\" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<None Include="Views\Cosmetic\Create.cshtml" />
|
||||
<None Include="Views\Cosmetic\Update.cshtml" />
|
||||
<None Include="Views\Home\Cosmetic.cshtml" />
|
||||
<None Include="Views\Home\Enter.cshtml" />
|
||||
<None Include="Views\Home\Index.cshtml" />
|
||||
<None Include="Views\Home\LaborCosts.cshtml" />
|
||||
<None Include="Views\Home\ListCosmetics.cshtml" />
|
||||
<None Include="Views\Home\Register.cshtml" />
|
||||
<None Include="Views\Home\Report.cshtml" />
|
||||
<None Include="Views\Home\Service.cshtml" />
|
||||
<None Include="Views\LaborCosts\Create.cshtml" />
|
||||
<None Include="Views\LaborCosts\Update.cshtml" />
|
||||
<None Include="Views\Service\Bind.cshtml" />
|
||||
<None Include="Views\Service\Create.cshtml" />
|
||||
<None Include="Views\Service\Update.cshtml" />
|
||||
<None Include="Views\Shared\Error.cshtml" />
|
||||
<None Include="Views\Shared\_Layout.cshtml" />
|
||||
<None Include="Views\Shared\_ValidationScriptsPartial.cshtml" />
|
||||
<None Include="Views\_ViewImports.cshtml" />
|
||||
<None Include="Views\_ViewStart.cshtml" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
@ -0,0 +1,17 @@
|
||||
@{
|
||||
ViewData["Title"] = "Косметика";
|
||||
}
|
||||
|
||||
<h4 class="fw-bold">Создать косметику</h4>
|
||||
|
||||
<form method="post" asp-controller="Cosmetic" asp-action="Create">
|
||||
<p class="mb-0">Бренд:</p>
|
||||
<input type="text" name="brand" class="form-control mb-3" />
|
||||
<p class="mb-0">Наименование косметики:</p>
|
||||
<input type="text" name="cosmeticName" class="form-control mb-3" />
|
||||
<p class="mb-0">Стоимость:</p>
|
||||
<input type="number" step="0.01" min="0.01" name="cosmeticPrice" class="form-control mb-3" />
|
||||
<button type="submit" class="btn button-primary">
|
||||
Создать
|
||||
</button>
|
||||
</form>
|
@ -0,0 +1,18 @@
|
||||
@{
|
||||
ViewData["Title"] = "Косметика";
|
||||
}
|
||||
|
||||
<h4 class="fw-bold">Обновить косметику</h4>
|
||||
|
||||
<form method="post" asp-controller="Cosmetic" asp-action="Update">
|
||||
<input name="id" value="@ViewBag.Cosmetic.Id" style="display: none;" />
|
||||
<p class="mb-0">Бренд:</p>
|
||||
<input type="text" value="@ViewBag.Cosmetic.Brand" name="brand" class="form-control mb-3" />
|
||||
<p class="mb-0">Наименование косметики:</p>
|
||||
<input type="text" value="@ViewBag.Cosmetic.CosmeticName" name="cosmeticName" class="form-control mb-3" />
|
||||
<p class="mb-0">Стоимость:</p>
|
||||
<input type="number" step="0.01" value="0.01" name="cosmeticPrice" class="form-control mb-3" />
|
||||
<button type="submit" class="button-primary">
|
||||
Обновить
|
||||
</button>
|
||||
</form>
|
53
BeautySalonView/StaffMemberWebApp/Views/Home/Cosmetic.cshtml
Normal file
53
BeautySalonView/StaffMemberWebApp/Views/Home/Cosmetic.cshtml
Normal file
@ -0,0 +1,53 @@
|
||||
@using BeautySalonContracts.ViewModels
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Косметика";
|
||||
}
|
||||
|
||||
<h4 class="fw-bold">Косметика</h4>
|
||||
|
||||
<div class="d-flex flex-wrap align-items-center justify-content-between">
|
||||
<div class="d-flex mb-2 gap-1">
|
||||
<a asp-controller="Cosmetic" asp-action="Create" class="btn button-primary">
|
||||
Создать
|
||||
</a>
|
||||
<button id="update-button" class="btn button-primary">
|
||||
Обновить
|
||||
</button>
|
||||
<button id="delete-button" class="btn button-primary me-5">
|
||||
Удалить
|
||||
</button>
|
||||
</div>
|
||||
<div class="d-flex mb-2 gap-1">
|
||||
<div class="input-group" style="width: auto;">
|
||||
<input id="page-input" type="number" min="1" value="@ViewBag.Page" max="@ViewBag.NumberOfPages" class="form-control" style="max-width: 5em">
|
||||
<span class="input-group-text">/ @ViewBag.NumberOfPages</span>
|
||||
</div>
|
||||
<a href="/Home/Cars?page=@ViewBag.Page" id="go-button" class="btn btn-lg button-primary">
|
||||
Перейти
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="border">
|
||||
<table class="table mb-0">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Бренд</th>
|
||||
<th>Наименование косметики</th>
|
||||
<th>Стоимость</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach (var item in ViewBag.Cosmetic)
|
||||
{
|
||||
<tr class="table-row" id="row-@item.Id">
|
||||
<td>@item.Brand</td>
|
||||
<td>@item.CosmeticName</td>
|
||||
<td>@item.CosmeticPrice</td>
|
||||
</tr>
|
||||
}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<script src="~/js/cosmetic.js" asp-append-version="true"></script>
|
19
BeautySalonView/StaffMemberWebApp/Views/Home/Enter.cshtml
Normal file
19
BeautySalonView/StaffMemberWebApp/Views/Home/Enter.cshtml
Normal file
@ -0,0 +1,19 @@
|
||||
@{
|
||||
ViewData["Title"] = "Вход";
|
||||
}
|
||||
|
||||
<h4 class="fw-bold">Вход в приложение</h4>
|
||||
|
||||
<form method="post">
|
||||
<div class="mb-3">
|
||||
<label for="login" class="form-label">Логин:</label>
|
||||
<input id="login" name="login" type="text" class="form-control" aria-label="Login">
|
||||
</div>
|
||||
<div class="mb-3">
|
||||
<label for="password" class="form-label">Пароль:</label>
|
||||
<input id="password" name="password" type="password" class="form-control" aria-label="Password">
|
||||
</div>
|
||||
<button type="submit" class="btn button-primary">
|
||||
Войти
|
||||
</button>
|
||||
</form>
|
@ -0,0 +1,8 @@
|
||||
@{
|
||||
ViewData["Title"] = "HomePage";
|
||||
}
|
||||
<h1 class="display-4 text-center">Мы Вас не ждали, зло пожаловать!</h1>
|
||||
|
||||
<div class="text-center">
|
||||
<p><img src="/images/logo.png" alt="Logo" /></p>
|
||||
</div>
|
@ -0,0 +1,51 @@
|
||||
@using BeautySalonContracts.ViewModels
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Трудозатраты";
|
||||
}
|
||||
|
||||
<h4 class="fw-bold">Трудозатраты</h4>
|
||||
|
||||
<div class="d-flex flex-wrap align-items-center justify-content-between">
|
||||
<div class="d-flex mb-2 gap-1">
|
||||
<a asp-controller="LaborCosts" asp-action="Create" class="button-primary">
|
||||
Создать
|
||||
</a>
|
||||
<a id="update-button" class="button-primary">
|
||||
Обновить
|
||||
</a>
|
||||
<button id="delete-button" class="button-primary me-5">
|
||||
Удалить
|
||||
</button>
|
||||
</div>
|
||||
<div class="d-flex mb-2 gap-1">
|
||||
<div class="input-group" style="width: auto;">
|
||||
<input id="page-input" type="number" min="1" value="@ViewBag.Page" max="@ViewBag.NumberOfPages" class="form-control" style="max-width: 5em">
|
||||
<span class="input-group-text">/ @ViewBag.NumberOfPages</span>
|
||||
</div>
|
||||
<a href="/Home/Cars?page=@ViewBag.Page" id="go-button" class="button-primary">
|
||||
Перейти
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="border">
|
||||
<table class="table mb-0">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Количество часов</th>
|
||||
<th>Количество специалистов</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach (var item in ViewBag.LaborCosts)
|
||||
{
|
||||
<tr class="table-row" id="row-@item.Id">
|
||||
<td>@item.NumberHours</td>
|
||||
<td>@item.NumberSpecialists</td>
|
||||
</tr>
|
||||
}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<script src="~/js/laborcosts.js" asp-append-version="true"></script>
|
@ -0,0 +1,52 @@
|
||||
@{
|
||||
ViewData["Title"] = "Список косметики по процедурам";
|
||||
}
|
||||
|
||||
<h4 class="fw-bold">Список косметики по процедурам</h4>
|
||||
|
||||
@{
|
||||
if (ViewBag.IsAllowed == false)
|
||||
{
|
||||
<h3 class="display-4">Авторизируйтесь</h3>
|
||||
return;
|
||||
}
|
||||
|
||||
<div class="mb-2">
|
||||
<button id="word-button" class="button-primary">
|
||||
Word
|
||||
</button>
|
||||
<button id="excel-button" class="button-primary">
|
||||
Excel
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<p class="mb-0">Выбранные процедуры:</p>
|
||||
<div class="table-shell border">
|
||||
<table class="table mb-0">
|
||||
<thead class="table-head">
|
||||
<tr>
|
||||
<th>Наименование</th>
|
||||
<th>Стоимость</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="tbody">
|
||||
<tr>
|
||||
<td>Не выбрано</td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<p class="mb-0">Добавить процедуру:</p>
|
||||
<div class="d-flex gap-1 mb-2">
|
||||
<select class="form-select mb-0" id="procedure-select"></select>
|
||||
<button id="add-button" class="button-primary">
|
||||
Добавить
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<script src="~/js/list.js" asp-append-version="true"></script>
|
||||
}
|
25
BeautySalonView/StaffMemberWebApp/Views/Home/Register.cshtml
Normal file
25
BeautySalonView/StaffMemberWebApp/Views/Home/Register.cshtml
Normal file
@ -0,0 +1,25 @@
|
||||
@{
|
||||
ViewData["Title"] = "Регистрация";
|
||||
}
|
||||
|
||||
<h4 class="fw-bold">Регистрация</h4>
|
||||
|
||||
<form method="post">
|
||||
<div class="mb-3">
|
||||
<label for="login" class="form-label">Логин:</label>
|
||||
<input id="login" name="login" type="text" class="form-control" aria-label="Login">
|
||||
</div>
|
||||
<div class="mb-3">
|
||||
<label for="password" class="form-label">Пароль:</label>
|
||||
<input id="password" name="password" type="password" class="form-control" aria-label="Password">
|
||||
</div>
|
||||
<div class="mb-3">
|
||||
<label for="email" class="form-label">Адрес электронной почты:</label>
|
||||
<input id="email" name="email" type="email" class="form-control" aria-label="Email">
|
||||
</div>
|
||||
<div>
|
||||
<button type="submit" class="btn button-primary">
|
||||
Регистрация
|
||||
</button>
|
||||
</div>
|
||||
</form>
|
48
BeautySalonView/StaffMemberWebApp/Views/Home/Report.cshtml
Normal file
48
BeautySalonView/StaffMemberWebApp/Views/Home/Report.cshtml
Normal file
@ -0,0 +1,48 @@
|
||||
@{
|
||||
ViewData["Title"] = "Report";
|
||||
}
|
||||
|
||||
<h4 class="fw-bold">Отчет по услугам</h4>
|
||||
|
||||
<div class="d-flex flex-wrap gap-1 align-items-end mb-2">
|
||||
<div class="mb-2">
|
||||
<p class="mb-0">Дата начала:</p>
|
||||
<input id="date-from-input" class="form-control" type="date" />
|
||||
</div>
|
||||
<div class="mb-2">
|
||||
<p class="mb-0">Дата конца:</p>
|
||||
<input id="date-to-input" class="form-control" type="date" />
|
||||
</div>
|
||||
<button id="generate-button" class="button-primary mb-2">
|
||||
Показать
|
||||
</button>
|
||||
<button id="send-by-mail-button" class="button-primary mb-2">
|
||||
На почту
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<p class="mb-0">
|
||||
<span>За период с </span>
|
||||
<span id="date-from-span" class="fw-bold">...</span>
|
||||
<span> по </span>
|
||||
<span id="date-to-span" class="fw-bold">...</span>
|
||||
</p>
|
||||
<div class="table-shell mb-2 border">
|
||||
<table class="table mb-0">
|
||||
<thead class="table-head">
|
||||
<tr>
|
||||
<th>Дата создания</th>
|
||||
<th>Услуга</th>
|
||||
<th>Стоимость</th>
|
||||
<th>Бренд косметики</th>
|
||||
<th>Наименование</th>
|
||||
<th>Стоимость косметики</th>
|
||||
<th>Процедуры</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="tbody">
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<script src="~/js/report.js" asp-append-version="true"></script>
|
55
BeautySalonView/StaffMemberWebApp/Views/Home/Service.cshtml
Normal file
55
BeautySalonView/StaffMemberWebApp/Views/Home/Service.cshtml
Normal file
@ -0,0 +1,55 @@
|
||||
@using BeautySalonContracts.ViewModels
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Услуга";
|
||||
}
|
||||
|
||||
<h4 class="fw-bold">Услуги</h4>
|
||||
|
||||
<div class="d-flex flex-wrap align-items-center justify-content-between">
|
||||
<div class="d-flex mb-2 gap-1">
|
||||
<a asp-controller="Service" asp-action="Create" class="button-primary">
|
||||
Создать
|
||||
</a>
|
||||
<a id="update-button" class="button-primary">
|
||||
Обновить
|
||||
</a>
|
||||
<a id="bind-button" class="button-primary">
|
||||
Связать с косметикой
|
||||
</a>
|
||||
<button id="delete-button" class="button-primary me-5">
|
||||
Удалить
|
||||
</button>
|
||||
</div>
|
||||
<div class="d-flex mb-2 gap-1">
|
||||
<div class="input-group" style="width: auto;">
|
||||
<input id="page-input" type="number" min="1" value="@ViewBag.Page" max="@ViewBag.NumberOfPages" class="form-control" style="max-width: 5em">
|
||||
<span class="input-group-text">/ @ViewBag.NumberOfPages</span>
|
||||
</div>
|
||||
<a href="/Home/Cars?page=@ViewBag.Page" id="go-button" class="button-primary">
|
||||
Перейти
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="border">
|
||||
<table class="table mb-0">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Наименование</th>
|
||||
<th>Стоимость</th>
|
||||
<th>Дата создания</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach (var item in ViewBag.Service)
|
||||
{
|
||||
<tr class="table-row" id="row-@item.Id">
|
||||
<td>@item.ServiceName</td>
|
||||
<td>@item.ServicePrice</td>
|
||||
<td>@item.DateCreate</td>
|
||||
</tr>
|
||||
}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<script src="~/js/service.js" asp-append-version="true"></script>
|
@ -0,0 +1,15 @@
|
||||
@{
|
||||
ViewData["Title"] = "Трудозатраты";
|
||||
}
|
||||
|
||||
<h4 class="fw-bold">Создать трудозатрату</h4>
|
||||
|
||||
<form method="post" asp-controller="LaborCosts" asp-action="Create">
|
||||
<p class="mb-0">Количество часов:</p>
|
||||
<input type="number" name="numberHours" class="form-control mb-3" />
|
||||
<p class="mb-0">Количество специалистов:</p>
|
||||
<input type="number" name="numberSpecialists" class="form-control mb-3" />
|
||||
<button type="submit" class="btn button-primary">
|
||||
Создать
|
||||
</button>
|
||||
</form>
|
@ -0,0 +1,16 @@
|
||||
@{
|
||||
ViewData["Title"] = "Трудозатраты";
|
||||
}
|
||||
|
||||
<h4 class="fw-bold">Обновить трудозатраты</h4>
|
||||
|
||||
<form method="post" asp-controller="LaborCosts" asp-action="Update">
|
||||
<input name="id" value="@ViewBag.LaborCosts.Id" style="display: none;" />
|
||||
<p class="mb-0">Количество часов:</p>
|
||||
<input type="number" value="@ViewBag.LaborCosts.NumberHours" name="numberHours" class="form-control mb-3" />
|
||||
<p class="mb-0">Количество специалистов:</p>
|
||||
<input type="number" value="@ViewBag.LaborCosts.NumberSpecialists" name="numberSpecialists" class="form-control mb-3" />
|
||||
<button type="submit" class="btn button-primary">
|
||||
Обновить
|
||||
</button>
|
||||
</form>
|
52
BeautySalonView/StaffMemberWebApp/Views/Service/Bind.cshtml
Normal file
52
BeautySalonView/StaffMemberWebApp/Views/Service/Bind.cshtml
Normal file
@ -0,0 +1,52 @@
|
||||
@{
|
||||
ViewData["Title"] = "Binding";
|
||||
}
|
||||
|
||||
<h4 class="fw-bold">Связать услугу с косметикой</h4>
|
||||
|
||||
<p class="mb-0">
|
||||
<span>Id услуги: </span>
|
||||
<span id="id">@ViewBag.ServiceId</span>
|
||||
</p>
|
||||
<p>
|
||||
<span>Наименование услуги: </span>
|
||||
<span id="service-name-span"></span>
|
||||
</p>
|
||||
<p class="mb-0">Привязанная косметика:</p>
|
||||
<div class="table-shell mb-2 border">
|
||||
<table class="table mb-0">
|
||||
<thead class="table-head">
|
||||
<tr>
|
||||
<th>Бренд</th>
|
||||
<th>Наименование</th>
|
||||
<th>Стоимость</th>
|
||||
<th>Количество</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="tbody">
|
||||
<tr>
|
||||
<td>Не выбрано</td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<p class="mb-0">Добавить косметику:</p>
|
||||
<p class="mb-0">Наименование:</p>
|
||||
<select class="form-select mb-0" id="cosmetic-select"></select>
|
||||
<p class="mb-0">Количество:</p>
|
||||
<input type="number" min="1" value="1" id="count-input" class="form-control mb-2" />
|
||||
<button id="add-button" class="button-primary">
|
||||
Добавить
|
||||
</button>
|
||||
|
||||
<button id="bind-button" class="button-primary text-button">
|
||||
Привязать
|
||||
</button>
|
||||
|
||||
<script src="~/js/bind.js" asp-append-version="true"></script>
|
@ -0,0 +1,24 @@
|
||||
@{
|
||||
ViewData["Title"] = "Услуги";
|
||||
}
|
||||
|
||||
<h4 class="fw-bold">Создать услугу</h4>
|
||||
|
||||
<form method="post" asp-controller="Service" asp-action="Create">
|
||||
<p class="mb-0">Наименование услуги:</p>
|
||||
<input name="serviceName" class="form-control mb-2" />
|
||||
<p class="mb-0">Стоимость услуги:</p>
|
||||
<input type="number" step="0.01" name="servicePrice" class="form-control mb-2" />
|
||||
<p class="mb-0">Выбрать трудозатрату для привязки:</p>
|
||||
<select class="form-select mb-2" name="laborCostsId">
|
||||
@foreach (var laborCosts in @ViewBag.LaborCostsList)
|
||||
{
|
||||
<option value="@laborCosts.Id">
|
||||
часы: @(laborCosts.NumberHours), специалисты: @(laborCosts.NumberSpecialists)
|
||||
</option>
|
||||
}
|
||||
</select>
|
||||
<button id="create-button" class="button-primary text-button">
|
||||
Создать
|
||||
</button>
|
||||
</form>
|
@ -0,0 +1,36 @@
|
||||
@{
|
||||
ViewData["Title"] = "Услуга";
|
||||
}
|
||||
|
||||
<h4 class="fw-bold">Обновить услугу</h4>
|
||||
|
||||
<form method="post" asp-controller="Service" asp-action="Update">
|
||||
<input name="id" value="@ViewBag.Service.Id" style="display: none;" />
|
||||
<p class="mb-0">Наименование услуги:</p>
|
||||
<input value="@ViewBag.Service.ServiceName" name="serviceName" class="form-control mb-2" />
|
||||
<p class="mb-0">Стоимость услуги:</p>
|
||||
<input value="@ViewBag.Service.ServicePrice.ToString("0.00").Replace(",", ".")"
|
||||
type="number" step="0.01" name="servicePrice" class="form-control mb-2" />
|
||||
<p class="mb-0">Трудозатраты:</p>
|
||||
<select class="form-select mb-2" name="laborCostsId">
|
||||
@foreach (var laborCosts in @ViewBag.LaborCostsList)
|
||||
{
|
||||
@if (laborCosts.Id == ViewBag.Service.LaborCostsId)
|
||||
{
|
||||
<option value="@laborCosts.Id" selected>
|
||||
часы: @(laborCosts.NumberHours), специалисты: @(laborCosts.NumberSpecialists)
|
||||
</option>
|
||||
}
|
||||
else
|
||||
{
|
||||
<option value="@laborCosts.Id">
|
||||
часы: @(laborCosts.NumberHours), специалисты: @(laborCosts.NumberSpecialists)
|
||||
</option>
|
||||
}
|
||||
}
|
||||
</select>
|
||||
<button class="button-primary">
|
||||
Обновить
|
||||
</button>
|
||||
</form>
|
||||
|
25
BeautySalonView/StaffMemberWebApp/Views/Shared/Error.cshtml
Normal file
25
BeautySalonView/StaffMemberWebApp/Views/Shared/Error.cshtml
Normal file
@ -0,0 +1,25 @@
|
||||
@model ErrorViewModel
|
||||
@{
|
||||
ViewData["Title"] = "Error";
|
||||
}
|
||||
|
||||
<h1 class="text-danger">Error.</h1>
|
||||
<h2 class="text-danger">An error occurred while processing your request.</h2>
|
||||
|
||||
@if (Model.ShowRequestId)
|
||||
{
|
||||
<p>
|
||||
<strong>Request ID:</strong> <code>@Model.RequestId</code>
|
||||
</p>
|
||||
}
|
||||
|
||||
<h3>Development Mode</h3>
|
||||
<p>
|
||||
Swapping to <strong>Development</strong> environment will display more detailed information about the error that occurred.
|
||||
</p>
|
||||
<p>
|
||||
<strong>The Development environment shouldn't be enabled for deployed applications.</strong>
|
||||
It can result in displaying sensitive information from exceptions to end users.
|
||||
For local debugging, enable the <strong>Development</strong> environment by setting the <strong>ASPNETCORE_ENVIRONMENT</strong> environment variable to <strong>Development</strong>
|
||||
and restarting the app.
|
||||
</p>
|
@ -0,0 +1,70 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>@ViewData["Title"] - BeutySalonStaffMemberApp</title>
|
||||
<link rel="stylesheet" href="~/lib/bootstrap/dist/css/bootstrap.min.css" />
|
||||
<link rel="stylesheet" href="~/css/site.css" asp-append-version="true" />
|
||||
<link rel="stylesheet" href="~/BeutySalonStaffMemberApp.styles.css" asp-append-version="true" />
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<nav class="navbar navbar-expand-sm navbar-toggleable-sm navbar-light bg-white border-bottom box-shadow mb-3">
|
||||
<div class="container-fluid">
|
||||
<div class="d-flex flex-column">
|
||||
<a class="navbar-brand fw-weight-bold py-0 px-2" asp-area="" asp-controller="Home" asp-action="Index">Вы Ужасны</a>
|
||||
<div class="px-2">StaffMemberApp</div>
|
||||
</div>
|
||||
<div class="mx-2">
|
||||
<img src="https://png.pngtree.com/png-clipart/20191120/original/pngtree-spider-glyph-icon-vector-png-image_5056646.jpg" alt="mdo" width="35" height="35" class="rounded-circle">
|
||||
</div>
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target=".navbar-collapse" aria-controls="navbarSupportedContent"
|
||||
aria-expanded="false" aria-label="Toggle navigation">
|
||||
<span class="navbar-toggler-icon"></span>
|
||||
</button>
|
||||
<div class="navbar-collapse collapse d-sm-inline-flex justify-content-between">
|
||||
<ul class="navbar-nav flex-grow-1">
|
||||
<li class="nav-item">
|
||||
<a class="nav-link text-dark" asp-area="" asp-controller="Home" asp-action="Register">Регистрация</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link text-dark" asp-area="" asp-controller="Home" asp-action="Enter">Авторизация</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link text-dark" asp-area="" asp-controller="Home" asp-action="Service">Услуги</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link text-dark" asp-area="" asp-controller="Home" asp-action="LaborCosts">Трудозатраты</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link text-dark" asp-area="" asp-controller="Home" asp-action="Cosmetic">Косметика</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link text-dark" asp-area="" asp-controller="Home" asp-action="ListCosmetics">Список</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link text-dark" asp-area="" asp-controller="Home" asp-action="Report">Отчет</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
</header>
|
||||
<div class="container">
|
||||
<main role="main" class="pb-3">
|
||||
@RenderBody()
|
||||
</main>
|
||||
</div>
|
||||
|
||||
<footer class="border-top footer text-muted">
|
||||
<div class="container">
|
||||
© 2023 - BeutySalonStaffMemberApp - <a asp-area="" asp-controller="Home" asp-action="Privacy">Privacy</a>
|
||||
</div>
|
||||
</footer>
|
||||
<script src="~/lib/jquery/dist/jquery.min.js"></script>
|
||||
<script src="~/lib/bootstrap/dist/js/bootstrap.bundle.min.js"></script>
|
||||
<script src="~/js/site.js" asp-append-version="true"></script>
|
||||
@await RenderSectionAsync("Scripts", required: false)
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,48 @@
|
||||
/* Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification
|
||||
for details on configuring this project to bundle and minify static web assets. */
|
||||
|
||||
a.navbar-brand {
|
||||
white-space: normal;
|
||||
text-align: center;
|
||||
word-break: break-all;
|
||||
}
|
||||
|
||||
a {
|
||||
color: #0077cc;
|
||||
}
|
||||
|
||||
.btn-primary {
|
||||
color: #fff;
|
||||
background-color: #1b6ec2;
|
||||
border-color: #1861ac;
|
||||
}
|
||||
|
||||
.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
|
||||
color: #fff;
|
||||
background-color: #1b6ec2;
|
||||
border-color: #1861ac;
|
||||
}
|
||||
|
||||
.border-top {
|
||||
border-top: 1px solid #e5e5e5;
|
||||
}
|
||||
.border-bottom {
|
||||
border-bottom: 1px solid #e5e5e5;
|
||||
}
|
||||
|
||||
.box-shadow {
|
||||
box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
|
||||
}
|
||||
|
||||
button.accept-policy {
|
||||
font-size: 1rem;
|
||||
line-height: inherit;
|
||||
}
|
||||
|
||||
.footer {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
width: 100%;
|
||||
white-space: nowrap;
|
||||
line-height: 60px;
|
||||
}
|
@ -0,0 +1,2 @@
|
||||
<script src="~/lib/jquery-validation/dist/jquery.validate.min.js"></script>
|
||||
<script src="~/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.min.js"></script>
|
@ -0,0 +1,3 @@
|
||||
@using BeutySalonStaffMemberApp
|
||||
@using BeutySalonStaffMemberApp.Models
|
||||
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
|
@ -0,0 +1,3 @@
|
||||
@{
|
||||
Layout = "_Layout";
|
||||
}
|
Loading…
Reference in New Issue
Block a user