186 lines
9.9 KiB
Plaintext
186 lines
9.9 KiB
Plaintext
@model List<SoftwayWeb.Models.Destinazioni_Out>
|
|
|
|
@{
|
|
ViewData["Title"] = "ModificaTutteDestinazioniStep1";
|
|
Layout = "~/Views/Shared/_LayoutAreaRis.cshtml";
|
|
List<Destinazioni_Out> modelList = new List<Destinazioni_Out>();
|
|
modelList = Model;
|
|
string messaggio = string.Empty;
|
|
messaggio = ViewBag.Messaggio;
|
|
}
|
|
|
|
<h1 style="color:red">@* messaggio di uscita: *@ N.B: @messaggio</h1>
|
|
|
|
<div class="row">
|
|
<div class="col-xl">
|
|
<div class="card mb-4">
|
|
<div class="card-header d-flex justify-content-between align-items-center">
|
|
<h5 class="mb-0">Modifica Tutte Destinazioni</h5> <small class="text-muted float-end"></small>
|
|
</div>
|
|
<div class="card-body">
|
|
@* <div class="mb-3">
|
|
<b>Autista da sostituire:</b> @ViewBag.CodAutista - @ViewBag.Autista
|
|
</div>
|
|
<div class="mb-3">
|
|
<b>Automezzo da sostituire:</b> @ViewBag.CodMezzo - @ViewBag.Mezzo
|
|
</div> *@
|
|
@using (Html.BeginForm("ModificaTutteDestinazioniPost", "Giri", FormMethod.Post))
|
|
{
|
|
<div class="mb-3">
|
|
<b>Nuovo autista:</b> @ViewBag.CodAutista - @ViewBag.Autista @* @Html.DropDownList("autisti", ViewBag.Autisti, null, new { @class = "agy-form-field require" }) *@
|
|
</div>
|
|
<div class="mb-3">
|
|
<b>Nuovo automezzo:</b> @ViewBag.CodMezzo - @ViewBag.Mezzo @* @Html.DropDownList("mezzi", ViewBag.Mezzi, null, new { @class = "agy-form-field require" }) *@
|
|
</div>
|
|
<div class="mb-3">
|
|
<input type="submit" value="Salva" class="btn btn-primary" />
|
|
|
|
<a asp-action="ModificaTutteDestinazioni" asp-controller="Giri" value="Torna alla lista" class="btn btn-primary">Torna alla lista</a>
|
|
</div>
|
|
@for (var i = 0; i < modelList.Count(); i++)
|
|
{
|
|
|
|
@Html.HiddenFor(modelItem => modelList[i].CodAutomezzo)
|
|
@Html.HiddenFor(modelItem => modelList[i].DescAutomezzo)
|
|
@Html.HiddenFor(modelItem => modelList[i].Brserial)
|
|
@Html.HiddenFor(modelItem => modelList[i].DataCarico)
|
|
@Html.HiddenFor(modelItem => modelList[i].CodCommittente)
|
|
@Html.HiddenFor(modelItem => modelList[i].Committente)
|
|
@Html.HiddenFor(modelItem => modelList[i].CodAutista)
|
|
@Html.HiddenFor(modelItem => modelList[i].Autista)
|
|
@Html.HiddenFor(modelItem => modelList[i].CodSede)
|
|
@Html.HiddenFor(modelItem => modelList[i].Sede)
|
|
@Html.HiddenFor(modelItem => modelList[i].IndirizzoSede)
|
|
@Html.HiddenFor(modelItem => modelList[i].Cproword)
|
|
@Html.HiddenFor(modelItem => modelList[i].Cprownum)
|
|
@Html.HiddenFor(modelItem => modelList[i].Brmerce)
|
|
@Html.HiddenFor(modelItem => modelList[i].Brnote)
|
|
@Html.HiddenFor(modelItem => modelList[i].ImportoDaRitirare)
|
|
@Html.HiddenFor(modelItem => modelList[i].ItemList)
|
|
@Html.HiddenFor(modelItem => modelList[i].serialeGiro)
|
|
@Html.HiddenFor(modelItem => modelList[i].Casse)
|
|
@Html.HiddenFor(modelItem => modelList[i].Trasf)
|
|
@Html.HiddenFor(modelItem => modelList[i].Colli)
|
|
@Html.HiddenFor(modelItem => modelList[i].num_cons)
|
|
@Html.HiddenFor(modelItem => modelList[i].Uova)
|
|
@Html.HiddenFor(modelItem => modelList[i].Cist)
|
|
@Html.HiddenFor(modelItem => modelList[i].Note)
|
|
@Html.HiddenFor(modelItem => modelList[i].Seq)
|
|
@Html.HiddenFor(modelItem => modelList[i].Prog)
|
|
}
|
|
}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-xl">
|
|
<div class="card mb-4">
|
|
<div class="card-header d-flex justify-content-between align-items-center">
|
|
<h5 class="mb-0">Elenco Destinazioni</h5> <small class="text-muted float-end"></small>
|
|
</div>
|
|
<div class="table-responsive text-nowrap">
|
|
<table class="table table-striped">
|
|
<thead>
|
|
<tr>
|
|
<th>S.</th>
|
|
<th>Committente</th>
|
|
<th>Sede</th>
|
|
<th>Indirizzo sede</th>
|
|
<th>Ca.</th>
|
|
<th>Tr.</th>
|
|
<th>Co.</th>
|
|
<th>Nr.Co.</th>
|
|
<th>Uo</th>
|
|
<th>Ci.</th>
|
|
<th>Note</th>
|
|
<th> </th>
|
|
<th> </th>
|
|
</tr>
|
|
</thead>
|
|
<tbody class="table-border-bottom-0">
|
|
@for (var i = 0; i < modelList.Count(); i++)
|
|
{
|
|
<tr>
|
|
<td style="font-size:12px; border-right-width:2px"><i class="bx bxl-angular bx-sm text-danger me-3"></i>@Html.DisplayFor(modelItem => modelList[i].Seq)</td>
|
|
<td style="border-right-width:2px">@Html.DisplayFor(modelItem => modelList[i].Committente)</td>
|
|
<td style="border-right-width:2px">@Html.DisplayFor(modelItem => modelList[i].Sede)</td>
|
|
<td style="border-right-width:2px">@Html.DisplayFor(modelItem => modelList[i].IndirizzoSede)</td>
|
|
@if (modelList[i].Casse != null && modelList[i].Casse > 0)
|
|
{
|
|
int icasse = 0;
|
|
icasse = Convert.ToInt32(modelList[i].Casse);
|
|
<td style="font-size:12px; border-right-width:2px">
|
|
@icasse
|
|
</td>
|
|
}
|
|
else
|
|
{
|
|
<td style="border-right-width:2px"> </td>
|
|
}
|
|
@if (modelList[i].Trasf != null && modelList[i].Trasf > 0)
|
|
{
|
|
<td style="font-size:12px; border-right-width:2px">
|
|
@Html.DisplayFor(modelItem => modelList[i].Trasf)
|
|
</td>
|
|
}
|
|
else
|
|
{
|
|
<td style="border-right-width:2px"> </td>
|
|
}
|
|
@if (modelList[i].Colli != null && modelList[i].Colli > 0)
|
|
{
|
|
int icolli = 0;
|
|
icolli = Convert.ToInt32(modelList[i].Colli);
|
|
<td style="font-size:12px; border-right-width:2px">
|
|
@icolli
|
|
</td>
|
|
}
|
|
else
|
|
{
|
|
<td style="border-right-width:2px"> </td>
|
|
}
|
|
@if (modelList[i].num_cons != null && modelList[i].num_cons > 0)
|
|
{
|
|
<td style="font-size:12px; border-right-width:2px">
|
|
@Html.DisplayFor(modelItem => modelList[i].num_cons)
|
|
</td>
|
|
}
|
|
else
|
|
{
|
|
<td style="border-right-width:2px"> </td>
|
|
}
|
|
@if (modelList[i].Uova != null && modelList[i].Uova > 0)
|
|
{
|
|
<td style="font-size:12px; border-right-width:2px">
|
|
@Html.DisplayFor(modelItem => modelList[i].Uova)
|
|
</td>
|
|
}
|
|
else
|
|
{
|
|
<td style="border-right-width:2px"> </td>
|
|
}
|
|
@if (modelList[i].Cist != null && modelList[i].Cist > 0)
|
|
{
|
|
<td style="font-size:12px; border-right-width:2px">
|
|
@Html.DisplayFor(modelItem => modelList[i].Cist)
|
|
</td>
|
|
}
|
|
else
|
|
{
|
|
<td style="border-right-width:2px"> </td>
|
|
}
|
|
|
|
<td style="font-size:12px; border-right-width:2px">
|
|
@Html.DisplayFor(modelItem => modelList[i].Note)
|
|
</td>
|
|
<td style="border-right-width:2px"> </td>
|
|
<td style="border-right-width:2px"> </td>
|
|
</tr>
|
|
}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div> |