ю
This commit is contained in:
parent
c9fb6972e2
commit
3f62f48c05
@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ZooContracts.SearchModels
|
||||
{
|
||||
public class ReportPreserversPriceSearchModels
|
||||
{
|
||||
public List<int>? PreserveIds { get; set; }
|
||||
public DateTime? DateFrom { get; set; }
|
||||
public DateTime? DateTo { get; set; }
|
||||
}
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ZooContracts.SearchModels
|
||||
{
|
||||
public class ReportRoutesCostsSearchModels
|
||||
{
|
||||
public List<int>? RoutesIds { get; set; }
|
||||
public DateTime? DateFrom { get; set; }
|
||||
public DateTime? DateTo { get; set; }
|
||||
}
|
||||
}
|
12
git/JurasicZoo/ZooContracts/ViewModels/Class2.cs
Normal file
12
git/JurasicZoo/ZooContracts/ViewModels/Class2.cs
Normal file
@ -0,0 +1,12 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ZooContracts.ViewModels
|
||||
{
|
||||
internal class ReportPreserversPriceViewModel
|
||||
{
|
||||
}
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ZooContracts.ViewModels
|
||||
{
|
||||
public class ReportRoutesCostsViewModel
|
||||
{
|
||||
public string RouteName { get; set; } = string.Empty;
|
||||
|
||||
|
||||
// public List<DrugViewModel> Drugs { get; set; }
|
||||
}
|
||||
}
|
6
git/JurasicZoo/ZooRestApi/Controllers/Count.cs
Normal file
6
git/JurasicZoo/ZooRestApi/Controllers/Count.cs
Normal file
@ -0,0 +1,6 @@
|
||||
namespace ZooRestApi.Controllers
|
||||
{
|
||||
public class Count
|
||||
{
|
||||
}
|
||||
}
|
@ -0,0 +1,48 @@
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using ZooContracts.BindingModels;
|
||||
using ZooContracts.BusinessLogicsContracts;
|
||||
|
||||
namespace ZooRestApi.Controllers
|
||||
{
|
||||
[Route("api/[controller]/[action]")]
|
||||
[ApiController]
|
||||
public class ReportClientController : Controller
|
||||
{
|
||||
private readonly ILogger _logger;
|
||||
private readonly IReportClientLogic _reportClient;
|
||||
public ReportClientController(ILogger<ILogger> logger, IReportClientLogic reportClient)
|
||||
{
|
||||
_reportClient = reportClient;
|
||||
_logger = logger;
|
||||
}
|
||||
[Microsoft.AspNetCore.Mvc.HttpGet]
|
||||
public IActionResult Index(IReportClientLogic reportClient)
|
||||
{
|
||||
return View();
|
||||
}
|
||||
[HttpPost]
|
||||
public void CreateServiceListWordFile(ReportPreserveBindingModel model)
|
||||
{
|
||||
try
|
||||
{
|
||||
_reportClient.SavePreservesToWordFile(model);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
throw;
|
||||
}
|
||||
}
|
||||
[HttpPost]
|
||||
public void CreateServiceListExcelFile(ReportPreserveBindingModel model)
|
||||
{
|
||||
try
|
||||
{
|
||||
_reportClient.SavePreservesToExcelFile(model);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
throw;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -35,7 +35,7 @@
|
||||
Стоимость
|
||||
</th>
|
||||
<th>
|
||||
Удалить животное
|
||||
Удалить заповедник
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
@ -6,7 +6,7 @@
|
||||
<h1 class="display-4">Отчеты</h1>
|
||||
<div class="list-group">
|
||||
<a class="nav-link text-dark" asp-area="" asp-controller="Home" asp-action="ListPreserves">Списки маршрутов</a>
|
||||
<a class="nav-link text-dark" asp-area="" asp-controller="Home" asp-action="AnimalVisitsAndDrugs">Посещения и лекарства животных</a>
|
||||
<a class="nav-link text-dark" asp-area="" asp-controller="Home" asp-action="AnimalVisitsAndDrugs">Заповедники и стоимость животных</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
@ -2,17 +2,17 @@
|
||||
ViewData["Title"] = "UpdatePreserve";
|
||||
}
|
||||
<div class="text-center">
|
||||
<h2 class="display-4">Редактирование животного</h2>
|
||||
<h2 class="display-4">Редактирование заповедника</h2>
|
||||
</div>
|
||||
<form method="post">
|
||||
<div class="row">
|
||||
<div class="col-4">Животное:</div>
|
||||
<div class="col-4">Заповедник:</div>
|
||||
<div class="col-8">
|
||||
<select id="pet" name="name" class="form-control" asp-items="@(new SelectList(@ViewBag.Preserves, "Id", "PreserveName"))"></select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-4">Возраст:</div>
|
||||
<div class="col-4">Стоимость:</div>
|
||||
<div class="col-8"><input type="text" name="price" /></div>
|
||||
</div>
|
||||
<div class="row">
|
||||
|
Loading…
Reference in New Issue
Block a user