125 lines
5.6 KiB
Plaintext
125 lines
5.6 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>
|
|
<div style="float:left;width:40%;padding:0 20px;">
|
|
<th><b>Impianto:</b></th>
|
|
@Html.DropDownList("impianto", ViewBag.Rapportini, null, new { @class = "agy-form-field require" })
|
|
<div style="float:left;width:57%;"><input type="submit" value="Cerca" class="agy-btn submitForm" /></div>
|
|
</div>
|
|
<div style="float:left;width:2%;"> </div>
|
|
<div style="float:left;width:2%;"> </div>
|
|
<div style="float:left;width:2%;"> </div>
|
|
</div>
|
|
}
|
|
|
|
<br>
|
|
<br>
|
|
<br>
|
|
|
|
@using (Html.BeginForm("ExportDataToExcel", "Rapportini"))
|
|
{
|
|
<div style="float:left;width:40%;padding:0 20px;">
|
|
<th><b>Data da:</b></th>
|
|
@Html.TextBox("dataIni", null, new { type = "date", @class = "agy-form-field require" })
|
|
</div>
|
|
|
|
<div style="float:left;width:40%;padding:0 20px;">
|
|
<th><b>Data a:</b></th>
|
|
@Html.TextBox("dataFin", null, new { type = "date", @class = "agy-form-field require" })
|
|
</div>
|
|
|
|
@Html.Hidden("impianto", ViewBag.Rapportini, null)
|
|
|
|
@* @Html.Hiddenfor(x => x.codice) *@
|
|
|
|
<div style="float:left;width:40%;padding:0 20px;">
|
|
<input type="submit" value="Esporta excel" name="Esporta excel" class="agy-btn submitForm" />
|
|
</div>
|
|
}
|
|
|
|
<table class="table">
|
|
<thead>
|
|
<tr>
|
|
<th>Seriale buono</th>
|
|
<th>Azienda impianto</th>
|
|
<th>Codice impianto</th>
|
|
<th>Seriale chiamate</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.azienda_impianto)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.codice_impianto)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.seriale_chiamata)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.seriale_commessa)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.data_rapportino)
|
|
</td>
|
|
|
|
@* <td>
|
|
<a href="@Url.Action("Edit", "Anag", new { id=item.seriale_rapportino })" title="Modifica" class="links">
|
|
<img alt="Modifica" src="@Url.Content("~/assets/images/icons8-modificare-64.png")" style="width:30px;height:30px;">
|
|
</a>
|
|
|
|
|
<a href="@Url.Action("Details", "Anag", new { id=item.seriale_rapportino })" title="Dettaglio" class="links">
|
|
<img alt="Dettaglio" src="@Url.Content("~/assets/images/icons8-visualizza-file-64.png")" style="width:30px;height:30px;">
|
|
</a>
|
|
|
|
|
<a href="@Url.Action("Delete", "Anag", new { id=item.seriale_rapportino })" title="Elimina" class="links">
|
|
<img alt="Elimina" src="@Url.Content("~/assets/images/icons8-elimina-50.png")" style="width:30px;height:30px;">
|
|
</a>
|
|
</td> *@
|
|
</tr>
|
|
}
|
|
</tbody>
|
|
</table>
|
|
<br />
|
|
<nav>
|
|
@Html.PagedListPager(Model, page => Url.Action("index", new { page = page, searchString = @ViewData["CurrentFilter"] }), 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>
|