Compare commits

..

2 Commits

2 changed files with 33 additions and 1 deletions

View File

@ -220,8 +220,12 @@ namespace ElectronicsShopUserApp.Controllers {
[HttpGet]
public IActionResult Report()
{
//ViewBag.Reports = APIClient.GetRequset<List<ProductViewModel>>($"api/main/getproducts"); íàïèñàòü íîðìàëüíûå äàííûå îá îò÷¸òàõ
return View();
}
[HttpPost]
public void Report(int count)
{
}
[HttpGet]
public IActionResult Message()

View File

@ -0,0 +1,28 @@
@{
ViewData["Title"] = "Report";
}
<div class="text-center">
<h2 class="display-4">Отчёты</h2>
</div>
<form method="post">
<div class="align-content-center row mb-3">
<div class="col-sm-auto">
<label for="startDate">С:</label>
</div>
<div class="col-3">
<input name="startDate" id="startDate" class="form-control" type="date" />
</div>
<div class="col-sm-auto">
<label for="endDate">По:</label>
</div>
<div class="col-3">
<input name="endDate" id="endDate" class="form-control" type="date" />
</div>
<div class="col-2">
<input type="submit" name="getReport" class="btn btn-primary" value="Сформировать отчет" />
</div>
<div class="col-3">
<input type="submit" name="sendToMail" class="btn btn-primary" value="Отправить на почту" />
</div>
</div>
</form>