165 lines
6.7 KiB
Plaintext
165 lines
6.7 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"] = "Rapportini";
|
|
Layout = "~/Views/Shared/_LayoutAreaRiservata.cshtml";
|
|
}
|
|
|
|
|
|
<div class="agy-project-wrapper agy-project-page-wrapper">
|
|
<div class="container">
|
|
<div class="row">
|
|
@using (Html.BeginForm())
|
|
{
|
|
<div>
|
|
<div style="float:left;width:40%;padding:0 20px;">@Html.TextBox("SearchString", null, new { placeholder = "Cerca rapportino", @class = "agy-form-field require" })</div>
|
|
<div style="float:left;width:2%;"> </div>
|
|
<div style="float:left;width:57%;"><input type="submit" value="Cerca" class="agy-btn submitForm" /></div>
|
|
</div>
|
|
}
|
|
<br>
|
|
@using (Html.BeginForm("ExportDataToExcel", "Rapportini"))
|
|
{
|
|
<div style="float:left;width:40%;padding:0 20px;">@Html.TextBox("dataIni", null, new { type = "date", @class = "agy-form-field require" })</div>
|
|
<div style="float:left;width:40%;padding:0 20px;">@Html.TextBox("dataFin", null, new { type = "date", @class = "agy-form-field require" })</div>
|
|
|
|
<div style="float:left;width:40%;padding:0 20px;">
|
|
<input type="submit" name="estrai" class="agy-btn submitForm" />
|
|
</div>
|
|
|
|
}
|
|
|
|
<table class="table">
|
|
<thead>
|
|
<tr>
|
|
<th>Seriale Rapportino</th>
|
|
<th>Azienda impianto</th>
|
|
<th>Codice impianto</th>
|
|
<th>Seriale chiamate</th>
|
|
<th>Seriale commessa</th>
|
|
<th>Data rapportino</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>
|
|
|
|
|
|
@* <p>
|
|
<a asp-action="Create">Create New</a>
|
|
</p>
|
|
<table class="table">
|
|
<thead>
|
|
<tr>
|
|
<th>
|
|
@Html.DisplayNameFor(model => model.seriale_rapportino)
|
|
</th>
|
|
<th>
|
|
@Html.DisplayNameFor(model => model.azienda_impianto)
|
|
</th>
|
|
<th>
|
|
@Html.DisplayNameFor(model => model.codice_impianto)
|
|
</th>
|
|
<th>
|
|
@Html.DisplayNameFor(model => model.seriale_chiamata)
|
|
</th>
|
|
<th>
|
|
@Html.DisplayNameFor(model => model.seriale_commessa)
|
|
</th>
|
|
<th>
|
|
@Html.DisplayNameFor(model => model.data_rapportino)
|
|
</th>
|
|
<th></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>
|
|
@Html.ActionLink("Edit", "Edit", new { /* id=item.PrimaryKey */ }) |
|
|
@Html.ActionLink("Details", "Details", new { /* id=item.PrimaryKey */ }) |
|
|
@Html.ActionLink("Delete", "Delete", new { /* id=item.PrimaryKey */ })
|
|
</td>
|
|
</tr>
|
|
}
|
|
</tbody>
|
|
</table>
|
|
*@ |