170 lines
8.0 KiB
Plaintext
170 lines
8.0 KiB
Plaintext
@using X.PagedList.Mvc.Core;
|
|
@using X.PagedList.Web.Common;
|
|
@using X.PagedList;
|
|
@model IPagedList<VirtualTask.Models.MagNewVT>
|
|
|
|
<link href="~/Content/PagedList.css" rel="stylesheet" type="text/css" />
|
|
@{
|
|
ViewData["Title"] = "Articoli buoni intervento";
|
|
|
|
|
|
Layout = "~/Views/Shared/_LayoutAreaRiservata.cshtml";
|
|
}
|
|
|
|
<style>
|
|
/* 🔽 Fix per il wrapping della tabella */
|
|
.table td{
|
|
white-space: normal !important; /* consente di andare a capo */
|
|
word-wrap: break-word;
|
|
word-break: break-word;
|
|
max-width: 300px; /* regola la larghezza massima */
|
|
}
|
|
|
|
.table th {
|
|
white-space: normal !important; /* consente di andare a capo */
|
|
word-wrap: break-word;
|
|
word-break: break-word;
|
|
max-width: 250px; /* regola la larghezza massima */
|
|
white-space: nowrap !important;
|
|
}
|
|
</style>
|
|
|
|
<div class="agy-project-wrapper agy-project-page-wrapper">
|
|
<div class="container">
|
|
<div class="row">
|
|
@* <p>
|
|
<a asp-action="Create" class="info-data"><img src="~/assets/images/icons8-nuovo-50.png" alt="Crea un nuovo elemento" /></a>
|
|
</p> *@
|
|
|
|
@using (Html.BeginForm())
|
|
{
|
|
<div class="card">
|
|
<h5 class="card-header">Ricerca</h5>
|
|
<table class="table">
|
|
<tbody class="table-border-bottom-0">
|
|
<tr>
|
|
<td>
|
|
<span class="fw-medium">@Html.TextBox("SearchString", null, new { placeholder = "Cerca per descrizione", @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 style="width:100%;height:30px;">
|
|
|
|
</div>
|
|
|
|
<div class="card">
|
|
<h5 class="card-header">Articoli</h5>
|
|
<div class="table-responsive text-nowrap">
|
|
<table class="table table-striped">
|
|
<thead>
|
|
<tr>
|
|
<th>Seriale rapportino</th>
|
|
<th>Riga</th>
|
|
<th>Magazzino</th>
|
|
<th>Articolo</th>
|
|
<th>Tipo movimento</th>
|
|
<th>Quantità</th>
|
|
<th>Prezzo</th>
|
|
<th>Cod. Tecnico</th>
|
|
@* <th hidden>Note</th> *@
|
|
@* <th hidden>Cod. Lotto</th> *@
|
|
<th>Matricola</th>
|
|
@* <th hidden>Cprownum</th> *@
|
|
<th>Articolo descrizione</th>
|
|
<th>Cod. Impianto</th>
|
|
<th>Descrizione suppl.</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.Riga)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.Magazzino)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.Articolo)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.Tipo_Movimento)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.Quantita)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.Prezzo)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.Codice_Tecnico)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.Matricola)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.Desc_Art)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.CodImp)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.Desc_Sup)
|
|
</td>
|
|
|
|
@Html.HiddenFor(modelItem => item.Azienda)
|
|
@Html.HiddenFor(modelItem => item.Note)
|
|
@Html.HiddenFor(modelItem => item.CodLotto)
|
|
@Html.HiddenFor(modelItem => item.Cprownum)
|
|
|
|
<td>
|
|
@* <a href="@Url.Action("Edit", "Articoli", 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", "Articoli", 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", "Articoli", 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>
|
|
</div>
|
|
</div>
|
|
|
|
<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> |