145 lines
6.3 KiB
Plaintext
145 lines
6.3 KiB
Plaintext
@model IPagedList<VirtualTask.Models.Rapportini>
|
|
@using X.PagedList;
|
|
@using X.PagedList.Mvc.Core;
|
|
@using X.PagedList.Web.Common;
|
|
|
|
|
|
<link href="~/Content/PagedList.css" rel="stylesheet" type="text/css" />
|
|
@{
|
|
ViewData["Title"] = "Esporta buoni su Excel";
|
|
Layout = "~/Views/Shared/_LayoutAreaRiservata.cshtml";
|
|
}
|
|
|
|
<div class="agy-project-wrapper agy-project-page-wrapper">
|
|
<div class="container">
|
|
<div class="row">
|
|
@using (Html.BeginForm("Index", "Rapportini"))
|
|
{
|
|
<div class="card">
|
|
<h5 class="card-header">Ricerca</h5>
|
|
<div class="table-responsive text-nowrap">
|
|
<table class="table">
|
|
<tbody class="table-border-bottom-0">
|
|
<tr>
|
|
<td>
|
|
<i class="bx bxl-angular bx-sm text-black me-3">Impianto:</i>
|
|
<span class="fw-medium">@Html.DropDownList("impianto", ViewBag.Rapportini, null, new { @class = "agy-form-field require" })</span>
|
|
</td>
|
|
<td>
|
|
<i class="bx bxl-angular bx-sm text-black me-3">Data da:</i>
|
|
<span class="fw-medium">@Html.TextBox("dataIni", null, new { type = "date", @class = "agy-form-field require" })</span>
|
|
</td>
|
|
<td>
|
|
<i class="bx bxl-angular bx-sm text-black me-3">Data a:</i>
|
|
<span class="fw-medium">@Html.TextBox("dataFin", null, new { type = "date", @class = "agy-form-field require" })</span>
|
|
</td>
|
|
<td>
|
|
<i class="bx bxl-angular bx-sm text-black me-3"> </i>
|
|
<span class="fw-medium"><input type="submit" value="Cerca" class="agy-btn submitForm" /></span>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
|
|
}
|
|
|
|
<div style="width:100%;height:30px;">
|
|
|
|
</div>
|
|
|
|
@using (Html.BeginForm("ExportDataToExcel", "Rapportini"))
|
|
{
|
|
<div class="card">
|
|
<h5 class="card-header">Estrai</h5>
|
|
<div class="table-responsive text-nowrap">
|
|
<table class="table">
|
|
<tbody class="table-border-bottom-0">
|
|
<tr>
|
|
<td>
|
|
@Html.Hidden("dataIni", ViewBag.Rapportini, null)
|
|
@Html.Hidden("dataFin", ViewBag.Rapportini, null)
|
|
@Html.Hidden("impianto", ViewBag.Rapportini, null)
|
|
</td>
|
|
<td>
|
|
<span class="fw-medium"><input type="submit" value="Esporta excel" name="Esporta excel" class="agy-btn submitForm" /></span>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
|
|
}
|
|
|
|
|
|
<div style="width:100%;height:30px;">
|
|
|
|
</div>
|
|
|
|
<div class="card">
|
|
<h5 class="card-header"></h5>
|
|
<div class="table-responsive text-nowrap">
|
|
<table class="table table-striped">
|
|
<thead>
|
|
<tr>
|
|
<th>Seriale buono</th>
|
|
<th>Data buono</th>
|
|
<th>Cliente</th>
|
|
<th>Codice impianto</th>
|
|
@* <th>Seriale commessa</th>
|
|
<th>Data buono</th> *@
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach (var item in Model)
|
|
{
|
|
<tr>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.seriale_rapportino)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.data_rapportino)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.ancodice) - @Html.DisplayFor(modelItem => item.andescri)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.codice_impianto)
|
|
</td>
|
|
|
|
</tr>
|
|
}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<br />
|
|
<nav>
|
|
@Html.PagedListPager(Model, page => Url.Action("index", new { page = page, impianto = @ViewData["impianto"], dataIni = @ViewData["dataIni"],
|
|
dataFin = @ViewData["dataFin"]}), new PagedListRenderOptions()
|
|
{
|
|
ActiveLiElementClass = "active",
|
|
PageClasses = new[] { "page-link" },
|
|
LiElementClasses = new[] { "page-item" },
|
|
UlElementClasses = new[] { "pagination", "justify-content-center", "mt-3" },
|
|
LinkToNextPageFormat = "Successiva",
|
|
LinkToPreviousPageFormat = "Precedente",
|
|
MaximumPageNumbersToDisplay = 5,
|
|
DisplayLinkToPreviousPage = PagedListDisplayMode.Always,
|
|
DisplayLinkToNextPage = PagedListDisplayMode.Always
|
|
})
|
|
</nav>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
@{
|
|
@ViewBag.Log
|
|
}
|
|
|
|
</div>
|