сделала веб
This commit is contained in:
parent
8321ae0bb4
commit
20049fb6b7
CarCenter/CarCenterAdministratorApp
APIClient.csappsettings.json
Controllers
Views
Home
AddCarToEquipment.cshtmlAddCarToInspection.cshtmlAddEquipmentToPreSaleWork.cshtmlCreateCar.cshtmlCreateEquipment.cshtmlCreateInspection.cshtmlDeleteCar.cshtmlDeleteEquipment.cshtmlDeleteInspection.cshtmlEnter.cshtmlIndex.cshtmlListCarEquipmentToFile.cshtmlListCars.cshtmlListCarsToPdfFile.cshtmlListEquipments.cshtmlListInspections.cshtmlPrivacy.cshtmlRegister.cshtmlUpdateCar.cshtmlUpdateEquipment.cshtmlUpdateInspection.cshtml
Shared
50
CarCenter/CarCenterAdministratorApp/APIClient.cs
Normal file
50
CarCenter/CarCenterAdministratorApp/APIClient.cs
Normal file
@ -0,0 +1,50 @@
|
||||
using CarCenterContracts.ViewModels;
|
||||
using Newtonsoft.Json;
|
||||
using System.Net.Http.Headers;
|
||||
using System.Text;
|
||||
|
||||
namespace CarCenterAdministratorApp
|
||||
{
|
||||
public class APIClient
|
||||
{
|
||||
private static readonly HttpClient _administrator = new();
|
||||
|
||||
public static AdministratorViewModel? administrator { get; set; } = null;
|
||||
|
||||
public static void Connect(IConfiguration configuration)
|
||||
{
|
||||
_administrator.BaseAddress = new Uri(configuration["IPAddress"]);
|
||||
_administrator.DefaultRequestHeaders.Accept.Clear();
|
||||
_administrator.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json"));
|
||||
}
|
||||
|
||||
public static T? GetRequest<T>(string requestUrl)
|
||||
{
|
||||
var response = _administrator.GetAsync(requestUrl);
|
||||
var result = response.Result.Content.ReadAsStringAsync().Result;
|
||||
if (response.Result.IsSuccessStatusCode)
|
||||
{
|
||||
return JsonConvert.DeserializeObject<T>(result);
|
||||
}
|
||||
else
|
||||
{
|
||||
throw new Exception(result);
|
||||
}
|
||||
}
|
||||
|
||||
public static void PostRequest<T>(string requestUrl, T model)
|
||||
{
|
||||
var json = JsonConvert.SerializeObject(model);
|
||||
var data = new StringContent(json, Encoding.UTF8, "application/json");
|
||||
|
||||
var response = _administrator.PostAsync(requestUrl, data);
|
||||
|
||||
var result = response.Result.Content.ReadAsStringAsync().Result;
|
||||
if (!response.Result.IsSuccessStatusCode)
|
||||
{
|
||||
throw new Exception(result);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -17,11 +17,93 @@ namespace CarCenterAdministratorApp.Controllers
|
||||
{
|
||||
return View();
|
||||
}
|
||||
|
||||
|
||||
public IActionResult Privacy()
|
||||
{
|
||||
return View();
|
||||
}
|
||||
|
||||
public IActionResult Register()
|
||||
{
|
||||
return View();
|
||||
}
|
||||
public IActionResult Enter()
|
||||
{
|
||||
return View();
|
||||
}
|
||||
|
||||
public IActionResult CreateCar()
|
||||
{
|
||||
return View();
|
||||
}
|
||||
public IActionResult ListCars()
|
||||
{
|
||||
return View();
|
||||
}
|
||||
|
||||
public IActionResult UpdateCar()
|
||||
{
|
||||
return View();
|
||||
}
|
||||
|
||||
public IActionResult DeleteCar()
|
||||
{
|
||||
return View();
|
||||
}
|
||||
public IActionResult ListInspections()
|
||||
{
|
||||
return View();
|
||||
}
|
||||
public IActionResult ListEquipments()
|
||||
{
|
||||
return View();
|
||||
}
|
||||
public IActionResult CreateEquipment()
|
||||
{
|
||||
return View();
|
||||
}
|
||||
public IActionResult UpdateEquipment()
|
||||
{
|
||||
return View();
|
||||
}
|
||||
|
||||
public IActionResult DeleteEquipment()
|
||||
{
|
||||
return View();
|
||||
}
|
||||
public IActionResult CreateInspection()
|
||||
{
|
||||
return View();
|
||||
}
|
||||
public IActionResult UpdateInspection()
|
||||
{
|
||||
return View();
|
||||
}
|
||||
|
||||
public IActionResult DeleteInspection()
|
||||
{
|
||||
return View();
|
||||
}
|
||||
public IActionResult AddCarToEquipment()
|
||||
{
|
||||
return View();
|
||||
}
|
||||
public IActionResult AddCarToInspection()
|
||||
{
|
||||
return View();
|
||||
}
|
||||
public IActionResult AddEquipmentToPreSaleWork()
|
||||
{
|
||||
return View();
|
||||
}
|
||||
public IActionResult ListCarsToPdfFile()
|
||||
{
|
||||
return View();
|
||||
}
|
||||
public IActionResult ListCarEquipmentToFile()
|
||||
{
|
||||
return View();
|
||||
}
|
||||
|
||||
[ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)]
|
||||
public IActionResult Error()
|
||||
|
@ -0,0 +1,43 @@
|
||||
@using CarCenterContracts.ViewModels;
|
||||
@using CarCenterDataModels.Models;
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "AddCarToEquipment";
|
||||
}
|
||||
|
||||
@model Tuple<List<EquipmentViewModel>, List<CarViewModel>>
|
||||
|
||||
<div class="container">
|
||||
<h2>Добавление машин в комплектацию</h2>
|
||||
<form method="post">
|
||||
<div class="form-group">
|
||||
<label for="equipment">Выберите комплектацию</label>
|
||||
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="car">Выберите комплектацию</label>
|
||||
<div class="card">
|
||||
<div class="card-body p-0">
|
||||
<div class="table-responsive">
|
||||
<table class="table mb-0">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col"></th>
|
||||
<th scope="col">Бренд машины</th>
|
||||
<th scope="col">Модель</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<br>
|
||||
<div class="u-container-layout u-container-layout-2">
|
||||
<input type="submit" value="Добавить" class="btn btn-outline-dark text-center d-flex justify-content-md-center" />
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
@ -0,0 +1,36 @@
|
||||
@using CarCenterContracts.ViewModels;
|
||||
@using CarCenterDataModels.Models;
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "AddCarToInspection";
|
||||
}
|
||||
@model Tuple<List<InspectionViewModel>, List<CarViewModel>>
|
||||
|
||||
<div class="container">
|
||||
<h2>Добавление машин в осмотры</h2>
|
||||
<form method="post">
|
||||
<div class="form-group">
|
||||
<label for="inspection">осмотры:</label>
|
||||
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Машины для осмотров:</label>
|
||||
<div class="table-responsive">
|
||||
<table class="table">
|
||||
<thead class="thead-dark">
|
||||
<tr>
|
||||
<th>Бренд машины</th>
|
||||
<th>Модель</th>
|
||||
</
|
||||
<tbody>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<br>
|
||||
<div class="u-container-layout u-container-layout-2">
|
||||
<input type="submit" value="Добавить" class="btn btn-outline-dark text-center d-flex justify-content-md-center" />
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
@ -0,0 +1,26 @@
|
||||
@using CarCenterContracts.ViewModels;
|
||||
@using CarCenterDataModels.Models;
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "AddEquipmentToPreSaleWork";
|
||||
}
|
||||
|
||||
<form method="post">
|
||||
<div class="u-form-group u-form-name u-label-top">
|
||||
<label class="u-label u-text-custom-color-1 u-label-1">Комплектация: </label>
|
||||
|
||||
</div>
|
||||
<div class="u-form-group u-form-name u-label-top">
|
||||
<label class="u-label u-text-custom-color-1 u-label-1">Название комплектации: </label>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="u-form-group u-form-name u-label-top">
|
||||
<label class="u-label u-text-custom-color-1 u-label-1">Цена комплектации: </label>
|
||||
|
||||
</div>
|
||||
<br>
|
||||
<div class="u-container-layout u-container-layout-2">
|
||||
<input type="submit" value="Добавить комлектацию" class="btn btn-outline-dark text-center d-flex justify-content-md-center" />
|
||||
</div>
|
||||
</form>
|
@ -0,0 +1,25 @@
|
||||
@{
|
||||
ViewData["Title"] = "CreateCar";
|
||||
}
|
||||
|
||||
<form method="post">
|
||||
<div class="form-group">
|
||||
<label class="u-label u-text-custom-color-1 u-label-1">Бренд машины</label>
|
||||
</div>
|
||||
<input type="text"
|
||||
placeholder="Введите бренд машины"
|
||||
name="brandCar"
|
||||
class="form-control" />
|
||||
<br>
|
||||
<div class="form-group">
|
||||
<label class="u-label u-text-custom-color-1 u-label-2">Модель</label>
|
||||
</div>
|
||||
<input type="text"
|
||||
placeholder="Введите модель"
|
||||
name="model"
|
||||
class="form-control" />
|
||||
<br>
|
||||
<div class="u-container-layout u-container-layout-2">
|
||||
<input type="submit" value="Сохранить" class="btn btn-outline-dark text-center d-flex justify-content-md-center" />
|
||||
</div>
|
||||
</form>
|
@ -0,0 +1,25 @@
|
||||
@{
|
||||
ViewData["Title"] = "CreateEquipment";
|
||||
}
|
||||
|
||||
<form method="post">
|
||||
<div class="form-group">
|
||||
<label class="u-label u-text-custom-color-1 u-label-1">Название комплектации</label>
|
||||
</div>
|
||||
<input type="text"
|
||||
placeholder="Введите название комплектации"
|
||||
name="equipmentName"
|
||||
class="form-control" />
|
||||
<br>
|
||||
<div class="form-group">
|
||||
<label class="u-label u-text-custom-color-1 u-label-2">Цена комплектации</label>
|
||||
</div>
|
||||
<input type="number"
|
||||
placeholder="Введите цену комплектации"
|
||||
name="equipmentPrice"
|
||||
class="form-control" />
|
||||
<br>
|
||||
<div class="u-container-layout u-container-layout-2">
|
||||
<input type="submit" value="Сохранить" class="btn btn-outline-dark text-center d-flex justify-content-md-center" />
|
||||
</div>
|
||||
</form>
|
@ -0,0 +1,25 @@
|
||||
@{
|
||||
ViewData["Title"] = "CreateInspection";
|
||||
}
|
||||
|
||||
<form method="post">
|
||||
<div class="form-group">
|
||||
<label class="u-label u-text-custom-color-1 u-label-1">Название осмотра</label>
|
||||
</div>
|
||||
<input type="text"
|
||||
placeholder="Введите название осмотра"
|
||||
name="inspectionName"
|
||||
class="form-control" />
|
||||
<br>
|
||||
<div class="u-form-email u-form-group u-label-top">
|
||||
<label class="u-label u-text-custom-color-1 u-label-2">Дата осмотра</label>
|
||||
<input type="datetime-local"
|
||||
placeholder="Выберите дату начала"
|
||||
name="bookingDate"
|
||||
class="form-control" />
|
||||
</div>
|
||||
<br>
|
||||
<div class="u-container-layout u-container-layout-2">
|
||||
<input type="submit" value="Сохранить" class="btn btn-outline-dark text-center d-flex justify-content-md-center" />
|
||||
</div>
|
||||
</form>
|
@ -0,0 +1,17 @@
|
||||
@{
|
||||
ViewData["Title"] = "DeleteCar";
|
||||
}
|
||||
<form method="post">
|
||||
<div class="container d-flex justify-content-center align-items-center0">
|
||||
<div class="card-body">
|
||||
<div class="form-group">
|
||||
<label class="u-label u-text-custom-color-1 u-label-1">Машины: </label>
|
||||
|
||||
</div>
|
||||
<br>
|
||||
<div class="u-container-layout u-container-layout-2">
|
||||
<input type="submit" value="Сохранить" class="btn btn-outline-dark text-center d-flex justify-content-md-center" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
@ -0,0 +1,18 @@
|
||||
@{
|
||||
ViewData["Title"] = "DeleteEquipment";
|
||||
}
|
||||
|
||||
<form method="post">
|
||||
<div class="container d-flex justify-content-center align-items-center0">
|
||||
<div class="card-body">
|
||||
<div class="form-group">
|
||||
<label class="u-label u-text-custom-color-1 u-label-1">Комплектации: </label>
|
||||
|
||||
</div>
|
||||
<br>
|
||||
<div class="u-container-layout u-container-layout-2">
|
||||
<input type="submit" value="Сохранить" class="btn btn-outline-dark text-center d-flex justify-content-md-center" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
@ -0,0 +1,18 @@
|
||||
@{
|
||||
ViewData["Title"] = "DeleteInspection";
|
||||
}
|
||||
|
||||
<form method="post">
|
||||
<div class="container d-flex justify-content-center align-items-center0">
|
||||
<div class="card-body">
|
||||
<div class="form-group">
|
||||
<label class="u-label u-text-custom-color-1 u-label-1">Осмотр: </label>
|
||||
|
||||
</div>
|
||||
<br>
|
||||
<div class="u-container-layout u-container-layout-2">
|
||||
<input type="submit" value="Сохранить" class="btn btn-outline-dark text-center d-flex justify-content-md-center" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
34
CarCenter/CarCenterAdministratorApp/Views/Home/Enter.cshtml
Normal file
34
CarCenter/CarCenterAdministratorApp/Views/Home/Enter.cshtml
Normal file
@ -0,0 +1,34 @@
|
||||
@{
|
||||
ViewData["Title"] = "Enter";
|
||||
}
|
||||
|
||||
<div class="text-center">
|
||||
<h2 class="u-text u-text-custom-color-1 u-text-default u-text-1">
|
||||
Вход
|
||||
</h2>
|
||||
</div>
|
||||
|
||||
<form method="post">
|
||||
<div class="container d-flex justify-content-center align-items-center">
|
||||
<div class="card-body">
|
||||
<div class="form-group">
|
||||
<label class="u-label u-text-custom-color-1 u-label-1">Логин</label>
|
||||
<input type="text"
|
||||
placeholder="Введите логин"
|
||||
name="login"
|
||||
class="form-control" />
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="u-label u-text-custom-color-1 u-label-2">Пароль</label>
|
||||
<input type="password"
|
||||
placeholder="Введите пароль"
|
||||
name="password"
|
||||
class="form-control" />
|
||||
</div>
|
||||
<br>
|
||||
<div class="form-group text-center" style="padding-bottom: 120px;">
|
||||
<button type="submit" class="btn btn-outline-dark text-center d-flex justify-content-md-center">Войти</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
@ -3,6 +3,6 @@
|
||||
}
|
||||
|
||||
<div class="text-center">
|
||||
<h1 class="display-4">Welcome</h1>
|
||||
<p>Learn about <a href="https://docs.microsoft.com/aspnet/core">building Web apps with ASP.NET Core</a>.</p>
|
||||
<h1 class="display-4">Добро пожаловать!</h1>
|
||||
<h2 class="display-6">Автоцентр «Корыто»</h2>
|
||||
</div>
|
||||
|
@ -0,0 +1,48 @@
|
||||
@using CarCenterContracts.ViewModels
|
||||
|
||||
@model List<CarViewModel>
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "ListCarEquipmentToFile";
|
||||
}
|
||||
|
||||
<div class="text-center">
|
||||
<div class="title">
|
||||
<h2>Создание отчета по машинам</h2>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="text-center">
|
||||
<form method="post">
|
||||
<div class="file-format">
|
||||
<label class="form-label">Выберите формат файла:</label>
|
||||
<div class="form-check">
|
||||
<input class="form-check-input" type="radio" name="type" value="docx" id="docx">
|
||||
<label class="form-check-label" for="docx">Word-файл</label>
|
||||
</div>
|
||||
<div class="form-check">
|
||||
<input class="form-check-input" type="radio" name="type" value="xlsx" id="xlsx" checked>
|
||||
<label class="form-check-label" for="xlsx">Excel-файл</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="table">
|
||||
<table class="table table-hover">
|
||||
<thead class="thead-light">
|
||||
<tr>
|
||||
<th scope="col"></th>
|
||||
<th scope="col">бренд машины</th>
|
||||
<th scope="col">модель</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<br>
|
||||
<div class="d-flex justify-content-center">
|
||||
<button type="submit" class="btn btn-block btn-outline-dark w-100">Создать</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
@ -0,0 +1,51 @@
|
||||
@using CarCenterContracts.ViewModels
|
||||
|
||||
@model List<CarViewModel>
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "ListCars";
|
||||
}
|
||||
|
||||
<section class="u-clearfix u-section-1" id="sec-e38b">
|
||||
<div class="u-clearfix u-sheet u-sheet-1">
|
||||
<div class="u-clearfix u-layout-wrap u-layout-wrap-1">
|
||||
<div class="u-layout">
|
||||
<div class="u-layout-row">
|
||||
<div class="u-container-style u-layout-cell u-size-48 u-layout-cell-1">
|
||||
<div class="u-container-layout u-container-layout-1">
|
||||
<div class="u-table u-table-responsive u-table-1">
|
||||
<table class="table">
|
||||
<thead class="thead-dark">
|
||||
<tr style="height: 31px">
|
||||
<th class="u-border-1 u-border-grey-50 u-table-cell">
|
||||
Номер
|
||||
</th>
|
||||
<th class="u-border-1 u-border-grey-50 u-table-cell">
|
||||
Бренд машины
|
||||
</th>
|
||||
<th class="u-border-1 u-border-grey-50 u-table-cell">
|
||||
Модель машины
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="u-container-style u-layout-cell u-size-12 u-layout-cell-2">
|
||||
<div class="u-container-layout u-container-layout-2">
|
||||
<a asp-area="" asp-controller="Home" asp-action="CreateCar"
|
||||
class="btn btn-outline-dark text-center d-flex justify-content-md-center">Добавить</a>
|
||||
|
||||
<a asp-area="" asp-controller="Home" asp-action="UpdateCar"
|
||||
class="btn btn-outline-dark text-center d-flex justify-content-md-center">Изменить</a>
|
||||
|
||||
<a asp-area="" asp-controller="Home" asp-action="DeleteCar"
|
||||
class="btn btn-outline-dark text-center d-flex justify-content-md-center">Удалить</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
@ -0,0 +1,49 @@
|
||||
@using CarCenterContracts.ViewModels
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "ListCarsToPdfFile";
|
||||
}
|
||||
|
||||
<div class="container">
|
||||
<div class="text-center mb-4">
|
||||
<h2 class="text-custom-color-1">Отчет по машинам за период</h2>
|
||||
</div>
|
||||
|
||||
<form method="post">
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
<label for="dateFrom" class="form-label text-custom-color-1">Начало периода:</label>
|
||||
<input type="datetime-local" id="dateFrom" name="dateFrom" class="form-control" placeholder="Выберите дату начала периода">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
<label for="dateTo" class="form-label text-custom-color-1">Окончание периода:</label>
|
||||
<input type="datetime-local" id="dateTo" name="dateTo" class="form-control" placeholder="Выберите дату окончания периода">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group mb-4">
|
||||
<label for="headwaiterEmail" class="form-label text-custom-color-1">Введите почту:</label>
|
||||
<input type="email" id="headwaiterEmail" name="headwaiterEmail" class="form-control" placeholder="Введите вашу почту">
|
||||
</div>
|
||||
|
||||
<div class="row mb-4">
|
||||
<div class="col-md-8"></div>
|
||||
<div class="col-md-4">
|
||||
<button type="submit" class="btn btn-outline-dark w-100 text-center d-flex justify-content-md-center">Отправить на почту</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row mb-4">
|
||||
<div class="col-md-8"></div>
|
||||
<div class="col-md-4">
|
||||
<button type="button" id="demonstrate" class="btn btn-outline-dark w-100 text-center d-flex justify-content-md-center">Продемонстрировать</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="report"></div>
|
||||
</form>
|
||||
</div>
|
@ -0,0 +1,55 @@
|
||||
@using CarCenterContracts.ViewModels
|
||||
|
||||
@model List<EquipmentViewModel>
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "ListEquipments";
|
||||
}
|
||||
|
||||
<section class="u-clearfix u-section-1" id="sec-e38b">
|
||||
<div class="u-clearfix u-sheet u-sheet-1">
|
||||
<div class="u-clearfix u-layout-wrap u-layout-wrap-1">
|
||||
<div class="u-layout">
|
||||
<div class="u-layout-row">
|
||||
<div class="u-container-style u-layout-cell u-size-48 u-layout-cell-1">
|
||||
<div class="u-container-layout u-container-layout-1">
|
||||
<div class="u-table u-table-responsive u-table-1">
|
||||
<table class="table">
|
||||
<thead class="thead-dark">
|
||||
<tr style="height: 31px">
|
||||
<th class="u-border-1 u-border-grey-50 u-table-cell">
|
||||
Номер
|
||||
</th>
|
||||
<th class="u-border-1 u-border-grey-50 u-table-cell">
|
||||
Название
|
||||
</th>
|
||||
<th class="u-border-1 u-border-grey-50 u-table-cell">
|
||||
Цена
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="u-container-style u-layout-cell u-size-12 u-layout-cell-2">
|
||||
<div class="u-container-layout u-container-layout-2">
|
||||
<a asp-area="" asp-controller="Home" asp-action="CreateEquipment"
|
||||
class="btn btn-outline-dark text-center d-flex justify-content-md-center">Добавить</a>
|
||||
|
||||
<a asp-area="" asp-controller="Home" asp-action="UpdateEquipment"
|
||||
class="btn btn-outline-dark text-center d-flex justify-content-md-center">Изменить</a>
|
||||
|
||||
<a asp-area="" asp-controller="Home" asp-action="DeleteEquipment"
|
||||
class="btn btn-outline-dark text-center d-flex justify-content-md-center">Удалить</a>
|
||||
|
||||
<a asp-area="" asp-controller="Home" asp-action="AddCarToEquipment"
|
||||
style="padding: 10 px"
|
||||
class="btn btn-outline-dark text-center d-flex justify-content-md-center">Добавить машину</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
@ -0,0 +1,58 @@
|
||||
@using CarCenterContracts.ViewModels
|
||||
|
||||
@model List<InspectionViewModel>
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "ListInspections";
|
||||
}
|
||||
|
||||
<section class="u-clearfix u-section-1" id="sec-e38b">
|
||||
<div class="u-clearfix u-sheet u-sheet-1">
|
||||
<div class="u-clearfix u-layout-wrap u-layout-wrap-1">
|
||||
<div class="u-layout">
|
||||
<div class="u-layout-row">
|
||||
<div class="u-container-style u-layout-cell u-size-48 u-layout-cell-1">
|
||||
<div class="u-container-layout u-container-layout-1">
|
||||
<div class="u-table u-table-responsive u-table-1">
|
||||
<table class="table">
|
||||
<thead class="thead-dark">
|
||||
<tr style="height: 31px">
|
||||
<th class="u-border-1 u-border-grey-50 u-table-cell">
|
||||
Номер
|
||||
</th>
|
||||
<th class="u-border-1 u-border-grey-50 u-table-cell">
|
||||
Название осмотра
|
||||
</th>
|
||||
<th class="u-border-1 u-border-grey-50 u-table-cell">
|
||||
Имя сотрудника
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody class="u-table-body">
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="u-container-style u-layout-cell u-size-12 u-layout-cell-2">
|
||||
<div class="u-container-layout u-container-layout-2">
|
||||
<a asp-area="" asp-controller="Home" asp-action="CreateInspection"
|
||||
class="btn btn-outline-dark text-center d-flex justify-content-md-center">Добавить</a>
|
||||
|
||||
<a asp-area="" asp-controller="Home" asp-action="UpdateInspection"
|
||||
class="btn btn-outline-dark text-center d-flex justify-content-md-center">Изменить</a>
|
||||
|
||||
<a asp-area="" asp-controller="Home" asp-action="DeleteInspection"
|
||||
class="btn btn-outline-dark text-center d-flex justify-content-md-center">Удалить</a>
|
||||
|
||||
<a asp-area="" asp-controller="Home" asp-action="AddCarToInspection"
|
||||
style="padding: 10 px"
|
||||
class="btn btn-outline-dark text-center d-flex justify-content-md-center">Добавить машины</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
@ -1,6 +1,69 @@
|
||||
@{
|
||||
ViewData["Title"] = "Privacy Policy";
|
||||
}
|
||||
<h1>@ViewData["Title"]</h1>
|
||||
@using CarCenterContracts.ViewModels
|
||||
|
||||
<p>Use this page to detail your site's privacy policy.</p>
|
||||
@model AdministratorViewModel
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Privacy";
|
||||
}
|
||||
|
||||
<div class="text-center">
|
||||
<h2 class="u-text u-text-custom-color-1 u-text-default u-text-1"> Мои данные </h2>
|
||||
</div>
|
||||
<form method="post">
|
||||
<div class="container d-flex justify-content-center align-items-center">
|
||||
<div class="card-body">
|
||||
<div class="form-group">
|
||||
<label class="u-label u-text-custom-color-1 u-label-1">Логин</label>
|
||||
<input type="text"
|
||||
placeholder="Введите логин"
|
||||
name="login"
|
||||
@* value="@Model.AdministratorLogin" *@
|
||||
class="form-control" />
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="u-form-email u-form-group u-label-top">
|
||||
<label class="u-label u-text-custom-color-1 u-label-2">Электронная почта</label>
|
||||
<input type="email"
|
||||
placeholder="Введите электронную почту"
|
||||
name="email"
|
||||
@* value="@Model.AdministratorEmail" *@
|
||||
class="form-control" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="u-form-group u-label-top u-form-group-3">
|
||||
<label class="u-label u-text-custom-color-1 u-label-3">ФИО</label>
|
||||
<input type="text"
|
||||
placeholder="Введите ФИО"
|
||||
name="fio"
|
||||
@* value="@Model.AdministratorFIO" *@
|
||||
class="form-control" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="u-form-group u-label-top u-form-group-4">
|
||||
<label class="u-label u-text-custom-color-1 u-label-4">Номер телефона</label>
|
||||
<input type="text"
|
||||
name="telephone"
|
||||
class="form-control"
|
||||
@* value="@Model.AdministratorNumber" *@
|
||||
placeholder="Введите номер телефона" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="u-form-group u-label-top u-form-group-5">
|
||||
<label class="u-label u-text-custom-color-1 u-label-5">Пароль</label>
|
||||
<input type="text"
|
||||
placeholder="Введите пароль"
|
||||
name="password"
|
||||
@* value="@Model.AdministratorPassword" *@
|
||||
class="form-control" />
|
||||
</div>
|
||||
</div>
|
||||
<br>
|
||||
<div class="u-container-layout u-container-layout-2">
|
||||
<input type="submit" value="Изменить" class="btn btn-outline-dark text-center d-flex justify-content-md-center" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
@ -0,0 +1,51 @@
|
||||
@{
|
||||
ViewData["Title"] = "Register";
|
||||
}
|
||||
<div class="text-center">
|
||||
<h2 class="u-text u-text-custom-color-1 u-text-default u-text-1"> Регистрация </h2>
|
||||
</div>
|
||||
<form method="post">
|
||||
<div class="container d-flex justify-content-center align-items-center">
|
||||
<div class="card-body">
|
||||
<div class="form-group">
|
||||
<label class="u-label u-text-custom-color-1 u-label-1">Логин</label>
|
||||
<input type="text"
|
||||
placeholder="Введите логин"
|
||||
name="login"
|
||||
class="form-control" />
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="u-label u-text-custom-color-1 u-label-2">Электронная почта</label>
|
||||
<input type="email"
|
||||
placeholder="Введите электронную почту"
|
||||
name="email"
|
||||
class="form-control" />
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="u-label u-text-custom-color-1 u-label-3">ФИО</label>
|
||||
<input type="text"
|
||||
placeholder="Введите ФИО"
|
||||
name="fio"
|
||||
class="form-control" />
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="u-label u-text-custom-color-1 u-label-4">Номер телефона</label>
|
||||
<input type="text"
|
||||
name="telephone"
|
||||
class="form-control"
|
||||
placeholder="Введите номер телефона" />
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="u-label u-text-custom-color-1 u-label-5">Пароль</label>
|
||||
<input type="password"
|
||||
placeholder="Введите пароль"
|
||||
name="password"
|
||||
class="form-control" />
|
||||
</div>
|
||||
<br>
|
||||
<div class="form-group text-center" style="padding-bottom: 120px;">
|
||||
<button type="submit" class="btn btn-outline-dark text-center d-flex justify-content-md-center">Зарегистрироваться</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
@ -0,0 +1,35 @@
|
||||
@using CarCenterContracts.ViewModels;
|
||||
@using CarCenterDataModels.Models;
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "UpdateCar";
|
||||
}
|
||||
<form method="post">
|
||||
<div class="container d-flex justify-content-center align-items-center">
|
||||
<div class="card-body">
|
||||
<div class="form-group">
|
||||
<label class="u-label u-text-custom-color-1 u-label-1">Машины: </label>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="u-label u-text-custom-color-1 u-label-1">Бренд машины</label>
|
||||
<input type="text"
|
||||
id="brandCar"
|
||||
placeholder="Введите название машины"
|
||||
name="brandCar"
|
||||
class="form-control" />
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="u-label u-text-custom-color-1 u-label-2">Модель машины</label>
|
||||
<input type="text"
|
||||
id="model"
|
||||
placeholder="Введите модель"
|
||||
name="model"
|
||||
class="form-control"/>
|
||||
</div>
|
||||
<br>
|
||||
<div class="u-container-layout u-container-layout-2">
|
||||
<input type="submit" value="Сохранить" class="btn btn-outline-dark text-center d-flex justify-content-md-center" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
@ -0,0 +1,56 @@
|
||||
@using CarCenterContracts.ViewModels;
|
||||
@using CarCenterDataModels.Models;
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "UpdateEquipment";
|
||||
}
|
||||
|
||||
|
||||
<form method="post">
|
||||
<div class="container d-flex justify-content-center align-items-center">
|
||||
<div class="card-body">
|
||||
<div class="form-group">
|
||||
<label class="u-label u-text-custom-color-1 u-label-1">Комплектации: </label>
|
||||
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="u-label u-text-custom-color-1 u-label-1">Название комплектации</label>
|
||||
<input type="text"
|
||||
id="equipmentName"
|
||||
placeholder="Введите название конференции"
|
||||
name="equipmenName"
|
||||
class="form-control" />
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="u-label u-text-custom-color-1 u-label-2">Цена комплектации</label>
|
||||
<input type="number"
|
||||
id="equipmenPrice"
|
||||
placeholder="Введите цену комплектации"
|
||||
name="equipmenPrice"
|
||||
class="form-control" />
|
||||
</div>
|
||||
|
||||
<div class="u-table u-table-responsive u-table-1">
|
||||
<label class="u-label u-text-custom-color-1 u-label-1">Машина для комплектаций</label>
|
||||
<table class="table">
|
||||
<thead class="thead-dark">
|
||||
<tr style="height: 44px">
|
||||
<th class="u-border-1 u-border-grey-50 u-table-cell">
|
||||
Бренд
|
||||
</th>
|
||||
<th class="u-border-1 u-border-grey-50 u-table-cell">
|
||||
Модель
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody class="u-table-body" id="table-elements">
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<br>
|
||||
<div class="u-container-layout u-container-layout-2">
|
||||
<input type="submit" value="Сохранить" class="btn btn-outline-dark text-center d-flex justify-content-md-center" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
@ -0,0 +1,45 @@
|
||||
@using CarCenterContracts.ViewModels;
|
||||
@using CarCenterDataModels.Models;
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "UpdateInspection";
|
||||
}
|
||||
|
||||
<form method="post">
|
||||
<div class="container">
|
||||
<div class="card-body">
|
||||
<div class="form-group">
|
||||
<label for="inspection">Осмотры:</label>
|
||||
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="employee">Сотрудник:</label>
|
||||
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="inspectionName">Название осмотра:</label>
|
||||
<input type="text" id="inspectionName" name="inspectionName" class="form-control" placeholder="Введите название осмотра">
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label>Машины для осмотров:</label>
|
||||
<div class="table-responsive">
|
||||
<table class="table">
|
||||
<thead class="thead-dark">
|
||||
<tr>
|
||||
<th>Бренд машины</th>
|
||||
<th>Модель</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="table-elements" class="u-table-body">
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<br>
|
||||
<div class="u-container-layout u-container-layout-2">
|
||||
<input type="submit" value="Добавить" class="btn btn-outline-dark text-center d-flex justify-content-md-center" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
@ -12,20 +12,50 @@
|
||||
<header>
|
||||
<nav class="navbar navbar-expand-sm navbar-toggleable-sm navbar-light bg-white border-bottom box-shadow mb-3">
|
||||
<div class="container-fluid">
|
||||
<a class="navbar-brand" asp-area="" asp-controller="Home" asp-action="Index">CarCenterAdministratorApp</a>
|
||||
<a class="navbar-brand" asp-area="" asp-controller="Home" asp-action="Index">CarCenter</a>
|
||||
<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="Index">Home</a>
|
||||
<div class="navbar-collapse collapse justify-content-end" id="navbarNav">
|
||||
<div class="navbar-nav">
|
||||
|
||||
<a class="nav-link " asp-area="" asp-controller="Home" asp-action="Index">Главное меню</a>
|
||||
|
||||
<li class="nav-item dropdown">
|
||||
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdownMenuLink" role="button" data-bs-toggle="dropdown" aria-expanded="false">
|
||||
Справочники
|
||||
</a>
|
||||
<ul class="dropdown-menu" aria-labelledby="navbarDropdownMenuLink">
|
||||
|
||||
<li><a class="nav-link " asp-area="" asp-controller="Home" asp-action="ListCars">Машины</a></li>
|
||||
<li><a class="nav-link " asp-area="" asp-controller="Home" asp-action="ListEquipments">Комплектации</a></li>
|
||||
<li><a class="nav-link " asp-area="" asp-controller="Home" asp-action="ListInspections">Осмотры</a></li>
|
||||
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link text-dark" asp-area="" asp-controller="Home" asp-action="Privacy">Privacy</a>
|
||||
|
||||
<li class="nav-item dropdown">
|
||||
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdownMenuLink" role="button" data-bs-toggle="dropdown" aria-expanded="false">
|
||||
Отчеты
|
||||
</a>
|
||||
<ul class="dropdown-menu" aria-labelledby="navbarDropdownMenuLink">
|
||||
|
||||
<li><a class="nav-link " asp-area="" asp-controller="Home" asp-action="ListCarEquipmentToFile">Отчет (word/excel) </a></li>
|
||||
<li><a class="nav-link " asp-area="" asp-controller="Home" asp-action="ListCarsToPdfFile">Отчет (pdf) </a></li>
|
||||
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<a class="nav-link " asp-area="" asp-controller="Home" asp-action="AddEquipmentToPreSaleWork">Привязка комплектаций</a>
|
||||
|
||||
<a class="nav-link " asp-area="" asp-controller="Home" asp-action="Privacy">Администратор</a>
|
||||
|
||||
<a class="nav-link " asp-area="" asp-controller="Home" asp-action="Register">Регистрация</a>
|
||||
|
||||
<a class="nav-link " asp-area="" asp-controller="Home" asp-action="Enter">Вход</a>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
@ -38,7 +68,7 @@
|
||||
|
||||
<footer class="border-top footer text-muted">
|
||||
<div class="container">
|
||||
© 2024 - CarCenterAdministratorApp - <a asp-area="" asp-controller="Home" asp-action="Privacy">Privacy</a>
|
||||
© 2024 - CarCenter - <a asp-area="" asp-controller="Home" asp-action="Privacy">Privacy</a>
|
||||
</div>
|
||||
</footer>
|
||||
<script src="~/lib/jquery/dist/jquery.min.js"></script>
|
||||
|
@ -5,5 +5,6 @@
|
||||
"Microsoft.AspNetCore": "Warning"
|
||||
}
|
||||
},
|
||||
"AllowedHosts": "*"
|
||||
"AllowedHosts": "*",
|
||||
"IPAddress": "http://localhost:5148/"
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user