This commit is contained in:
michele 2023-10-19 09:38:26 +02:00
parent 336a4ab10f
commit db9550aecc
8 changed files with 237 additions and 209 deletions

View File

@ -82,7 +82,8 @@ namespace VirtualTask.Controllers
public IActionResult Create()
{
ViewBag.AllStockList = LoadStockitems();
ViewBag.Tecnici = GetTecnici();
ViewBag.Chiusure = GetCodChiusura();
return View();
}
@ -226,6 +227,7 @@ namespace VirtualTask.Controllers
return RedirectToAction("Error");
}
return View(rapp);
}
@ -306,12 +308,41 @@ namespace VirtualTask.Controllers
#endregion DELETE
//metodo per avere riempire combobox con la tabella delle chiusure
private List<SelectListItem> LoadStockitems()
private List<SelectListItem> GetTecnici()
{
SessionHelper helper = new SessionHelper(this);
token = helper.GetStringValue("tok");
apiUrl = helper.GetStringValue("apiUrl");
urlBase = apiUrl + "codici_chiusura";
urlBase = apiUrl + "tecniciList";
urlBase = urlBase + "?token=" + token;
Uri baseAddress = new Uri(urlBase);
client = new HttpClient();
client.BaseAddress = baseAddress;
List<SelectListItem> selectItems = new List<SelectListItem>();
List<Tecnici> modelList = new List<Tecnici>();
HttpResponseMessage response = client.GetAsync(baseAddress).Result;
if (response.IsSuccessStatusCode)
{
string data = response.Content.ReadAsStringAsync().Result;
modelList = JsonConvert.DeserializeObject<List<Tecnici>>(data);
foreach (var role in modelList)
{
SelectListItem listItem = new SelectListItem();
listItem.Value = role.tccodice;
listItem.Text = role.tcdescri;
selectItems.Add(listItem);
}
}
return selectItems;
}
private List<SelectListItem> GetCodChiusura()
{
SessionHelper helper = new SessionHelper(this);
token = helper.GetStringValue("tok");
apiUrl = helper.GetStringValue("apiUrl");
urlBase = apiUrl + "chiusureVtList";
urlBase = urlBase + "?token=" + token;
Uri baseAddress = new Uri(urlBase);
client = new HttpClient();

View File

@ -15,20 +15,20 @@
@using (Html.BeginForm())
{
<p>
Find by Impianto: @Html.TextBox("SearchString")
<input type="submit" value="Search" />
Cerca per Impianto: @Html.TextBox("SearchString")
<input type="submit" value="Cerca" />
</p>
}
<table class="table">
<thead>
<tr>
<th>SERIALE</th>
<th>ESERCIZIO</th>
<th>NUMERO</th>
<th>DATA</th>
<th>IMPIANTO</th>
<th>TECNICO</th>
<th>STATO</th>
<th>Seriale</th>
<th>Esercizio</th>
<th>Numero</th>
<th>Data</th>
<th>Impianto</th>
<th>Tecnico</th>
<th>Stato</th>
<th></th>
</tr>
</thead>
@ -60,9 +60,9 @@
<td>
@Html.ActionLink("Edit", "Edit", new { id=item.chserial }) |
@Html.ActionLink("Details", "Details", new { id=item.chserial }) |
@Html.ActionLink("Delete", "Delete", new { id=item.chserial })
@Html.ActionLink("Modifica", "Edit", new { id=item.chserial }) |
@Html.ActionLink("Dettaglio", "Details", new { id=item.chserial }) |
@Html.ActionLink("Elimina", "Delete", new { id=item.chserial })
</td>
</tr>
}
@ -76,8 +76,8 @@
PageClasses = new[]{ "page-link"},
LiElementClasses=new[] { "page-item" },
UlElementClasses = new[] { "pagination","justify-content-center", "mt-3" },
LinkToNextPageFormat = "Next",
LinkToPreviousPageFormat = "Previous",
LinkToNextPageFormat = "Successiva",
LinkToPreviousPageFormat = "Precedente",
MaximumPageNumbersToDisplay = 5,
DisplayLinkToPreviousPage = PagedListDisplayMode.Always,
DisplayLinkToNextPage = PagedListDisplayMode.Always

View File

@ -26,19 +26,19 @@
<tr>
<th>
@* @Html.DisplayNameFor(model => model.cccodazi) *@
AZIENDA
Azienda
</th>
<th>
@* @Html.DisplayNameFor(model => model.cccodice) *@
CODICE
Codice
</th>
<th>
@* @Html.DisplayNameFor(model => model.ccdescr) *@
DESCRIZIONE
Descrizione
</th>
<th>
@* @Html.DisplayNameFor(model => model.ccdessup) *@
DESC. SUP.
Desc. Sup.
</th>

View File

@ -57,15 +57,15 @@
<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
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>

View File

@ -13,10 +13,10 @@
<form asp-action="Create">
<div asp-validation-summary="ModelOnly" class="text-danger"></div>
<div class="form-group">
@*<label asp-for="seriale_rapportino" class="control-label"></label>*@
@*<input asp-for="seriale_rapportino" class="form-control" />*@
@Html.HiddenFor(x => x.seriale_rapportino)
@Html.DisplayFor(model => model.seriale_rapportino)
<label asp-for="seriale_rapportino" class="control-label"></label>
<input asp-for="seriale_rapportino" class="form-control" />
@*@Html.HiddenFor(x => x.seriale_rapportino)*@
@*@Html.DisplayFor(model => model.seriale_rapportino)*@
<span asp-validation-for="seriale_rapportino" class="text-danger"></span>
</div>
<div class="form-group">
@ -45,130 +45,116 @@
<span asp-validation-for="azienda_chiamata" class="text-danger"></span>
</div>
<div class="form-group">
@*<label asp-for="seriale_chiamata" class="control-label"></label>*@
@*<input asp-for="seriale_chiamata" class="form-control" />*@
@Html.HiddenFor(x => x.seriale_chiamata)
@Html.DisplayFor(model => model.seriale_chiamata)
<label asp-for="seriale_chiamata" class="control-label"></label>
<input asp-for="seriale_chiamata" class="form-control" />
<span asp-validation-for="seriale_chiamata" class="text-danger"></span>
</div>
<div class="form-group">
@*<label asp-for="seriale_commessa" class="control-label"></label>*@
@*<input asp-for="seriale_commessa" class="form-control" />*@
@Html.HiddenFor(x => x.seriale_commessa)
@Html.DisplayFor(model => model.seriale_commessa)
<label asp-for="seriale_commessa" class="control-label"></label>
<input asp-for="seriale_commessa" class="form-control" />
<span asp-validation-for="seriale_commessa" class="text-danger"></span>
</div>
<div class="form-group">
@*<label asp-for="data_rapportino" class="control-label"></label>*@
@*<input asp-for="data_rapportino" class="form-control" />*@
@Html.HiddenFor(x => x.data_rapportino)
@Html.DisplayFor(model => model.data_rapportino)
<label asp-for="data_rapportino" class="control-label"></label>
<input asp-for="data_rapportino" class="form-control" />
<span asp-validation-for="data_rapportino" class="text-danger"></span>
</div>
<div class="form-group">
@*<label asp-for="ora_ini_rapportino" class="control-label"></label>*@
@*<input asp-for="ora_ini_rapportino" class="form-control" />*@
@Html.HiddenFor(x => x.ora_ini_rapportino)
@Html.DisplayFor(model => model.ora_ini_rapportino)
<label asp-for="ora_ini_rapportino" class="control-label"></label>
<input asp-for="ora_ini_rapportino" class="form-control" />
<span asp-validation-for="ora_ini_rapportino" class="text-danger"></span>
</div>
<div class="form-group">
@*<label asp-for="min_ini_rapportino" class="control-label"></label>*@
@*<input asp-for="min_ini_rapportino" class="form-control" />*@
@Html.HiddenFor(x => x.min_ini_rapportino)
@Html.DisplayFor(model => model.min_ini_rapportino)
<label asp-for="min_ini_rapportino" class="control-label"></label>
<input asp-for="min_ini_rapportino" class="form-control" />
<span asp-validation-for="min_ini_rapportino" class="text-danger"></span>
</div>
<div class="form-group">
@*<label asp-for="ora_fin_rapportino" class="control-label"></label>*@
@*<input asp-for="ora_fin_rapportino" class="form-control" />*@
@Html.HiddenFor(x => x.ora_fin_rapportino)
@Html.DisplayFor(model => model.ora_fin_rapportino)
<label asp-for="ora_fin_rapportino" class="control-label"></label>
<input asp-for="ora_fin_rapportino" class="form-control" />
<span asp-validation-for="ora_fin_rapportino" class="text-danger"></span>
</div>
<div class="form-group">
@*<label asp-for="min_fin_rapportino" class="control-label"></label>*@
@*<input asp-for="min_fin_rapportino" class="form-control" />*@
@Html.HiddenFor(x => x.min_fin_rapportino)
@Html.DisplayFor(model => model.min_fin_rapportino)
<label asp-for="min_fin_rapportino" class="control-label"></label>
<input asp-for="min_fin_rapportino" class="form-control" />
<span asp-validation-for="min_fin_rapportino" class="text-danger"></span>
</div>
<div class="form-group">
@*<label asp-for="codice_chiusura_1" class="control-label"></label>*@
@*@Html.DropDownListFor(x => x.codice_chiusura_1,(IEnumerable<SelectListItem>)ViewBag.AllStockList,new {@class = "form-control"})*@
@Html.HiddenFor(x => x.codice_chiusura_1)
<label asp-for="codice_chiusura_1" class="control-label"></label>
@Html.DropDownListFor(x => x.codice_chiusura_1,(IEnumerable<SelectListItem>)ViewBag.Chiusure,new {@class = "form-control"})
@*@Html.HiddenFor(x => x.codice_chiusura_1)*@
<span asp-validation-for="codice_chiusura_1" class="text-danger"></span>
</div>
<div class="form-group">
@*<label asp-for="codice_chiusura_2" class="control-label"></label>*@
@*@Html.DropDownListFor(x => x.codice_chiusura_2,(IEnumerable<SelectListItem>)ViewBag.AllStockList,new {@class = "form-control"})*@
@Html.HiddenFor(x => x.codice_chiusura_2)
<label asp-for="codice_chiusura_2" class="control-label"></label>
@Html.DropDownListFor(x => x.codice_chiusura_2,(IEnumerable<SelectListItem>)ViewBag.Chiusure,new {@class = "form-control"})
@*@Html.HiddenFor(x => x.codice_chiusura_2)*@
<span asp-validation-for="codice_chiusura_2" class="text-danger"></span>
</div>
<div class="form-group">
@*<label asp-for="codice_chiusura_3" class="control-label"></label>*@
@*@Html.DropDownListFor(x => x.codice_chiusura_3,(IEnumerable<SelectListItem>)ViewBag.AllStockList,new {@class = "form-control"})*@
@Html.HiddenFor(x => x.codice_chiusura_3)
<label asp-for="codice_chiusura_3" class="control-label"></label>
@Html.DropDownListFor(x => x.codice_chiusura_3,(IEnumerable<SelectListItem>)ViewBag.Chiusure,new {@class = "form-control"})
@*@Html.HiddenFor(x => x.codice_chiusura_3)*@
<span asp-validation-for="codice_chiusura_3" class="text-danger"></span>
</div>
<div class="form-group">
@*<label asp-for="codice_chiusura_4" class="control-label"></label>*@
@*@Html.DropDownListFor(x => x.codice_chiusura_4,(IEnumerable<SelectListItem>)ViewBag.AllStockList,new {@class = "form-control"})*@
@Html.HiddenFor(x => x.codice_chiusura_4)
<label asp-for="codice_chiusura_4" class="control-label"></label>
@Html.DropDownListFor(x => x.codice_chiusura_4,(IEnumerable<SelectListItem>)ViewBag.Chiusure,new {@class = "form-control"})
@*@Html.HiddenFor(x => x.codice_chiusura_4)*@
<span asp-validation-for="codice_chiusura_4" class="text-danger"></span>
</div>
<div class="form-group">
@*<label asp-for="codice_chiusura_5" class="control-label"></label>*@
@*@Html.DropDownListFor(x => x.codice_chiusura_5,(IEnumerable<SelectListItem>)ViewBag.AllStockList,new {@class = "form-control"})*@
@Html.HiddenFor(x => x.codice_chiusura_5)
<label asp-for="codice_chiusura_5" class="control-label"></label>
@Html.DropDownListFor(x => x.codice_chiusura_5,(IEnumerable<SelectListItem>)ViewBag.Chiusure,new {@class = "form-control"})
@*@Html.HiddenFor(x => x.codice_chiusura_5)*@
<span asp-validation-for="codice_chiusura_5" class="text-danger"></span>
</div>
<div class="form-group">
@*<label asp-for="codice_chiusura_6" class="control-label"></label>*@
@*@Html.DropDownListFor(x => x.codice_chiusura_6,(IEnumerable<SelectListItem>)ViewBag.AllStockList,new {@class = "form-control"})*@
@Html.HiddenFor(x => x.codice_chiusura_6)
<label asp-for="codice_chiusura_6" class="control-label"></label>
@Html.DropDownListFor(x => x.codice_chiusura_6,(IEnumerable<SelectListItem>)ViewBag.Chiusure,new {@class = "form-control"})
@*@Html.HiddenFor(x => x.codice_chiusura_6)*@
<span asp-validation-for="codice_chiusura_6" class="text-danger"></span>
</div>
<div class="form-group">
@*<label asp-for="codice_chiusura_7" class="control-label"></label>*@
@*@Html.DropDownListFor(x => x.codice_chiusura_7,(IEnumerable<SelectListItem>)ViewBag.AllStockList,new {@class = "form-control"})*@
@Html.HiddenFor(x => x.codice_chiusura_7)
<label asp-for="codice_chiusura_7" class="control-label"></label>
@Html.DropDownListFor(x => x.codice_chiusura_7,(IEnumerable<SelectListItem>)ViewBag.Chiusure,new {@class = "form-control"})
@*@Html.HiddenFor(x => x.codice_chiusura_7)*@
<span asp-validation-for="codice_chiusura_7" class="text-danger"></span>
</div>
<div class="form-group">
@*<label asp-for="codice_chiusura_8" class="control-label"></label>*@
@*@Html.DropDownListFor(x => x.codice_chiusura_8,(IEnumerable<SelectListItem>)ViewBag.AllStockList,new {@class = "form-control"})*@
@Html.HiddenFor(x => x.codice_chiusura_8)
<label asp-for="codice_chiusura_8" class="control-label"></label>
@Html.DropDownListFor(x => x.codice_chiusura_8,(IEnumerable<SelectListItem>)ViewBag.Chiusure,new {@class = "form-control"})
@*@Html.HiddenFor(x => x.codice_chiusura_8)*@
<span asp-validation-for="codice_chiusura_8" class="text-danger"></span>
</div>
<div class="form-group">
@*<label asp-for="codice_chiusura_9" class="control-label"></label>*@
@*@Html.DropDownListFor(x => x.codice_chiusura_9,(IEnumerable<SelectListItem>)ViewBag.AllStockList,new {@class = "form-control"})*@
@Html.HiddenFor(x => x.codice_chiusura_9)
<label asp-for="codice_chiusura_9" class="control-label"></label>
@Html.DropDownListFor(x => x.codice_chiusura_9,(IEnumerable<SelectListItem>)ViewBag.Chiusure,new {@class = "form-control"})
@*@Html.HiddenFor(x => x.codice_chiusura_9)*@
<span asp-validation-for="codice_chiusura_9" class="text-danger"></span>
</div>
<div class="form-group">
@*<label asp-for="codice_chiusura_10" class="control-label"></label>*@
@*@Html.DropDownListFor(x => x.codice_chiusura_10,(IEnumerable<SelectListItem>)ViewBag.AllStockList,new {@class = "form-control"})*@
@Html.HiddenFor(x => x.codice_chiusura_10)
<label asp-for="codice_chiusura_10" class="control-label"></label>
@Html.DropDownListFor(x => x.codice_chiusura_10,(IEnumerable<SelectListItem>)ViewBag.Chiusure,new {@class = "form-control"})
@*@Html.HiddenFor(x => x.codice_chiusura_10)*@
<span asp-validation-for="codice_chiusura_10" class="text-danger"></span>
</div>
<div class="form-group">
@*<label asp-for="descrizione_intervento" class="control-label"></label>*@
@*<input asp-for="descrizione_intervento" class="form-control" />*@
<label asp-for="descrizione_intervento" class="control-label"></label>
<input asp-for="descrizione_intervento" class="form-control" />
@Html.HiddenFor(x => x.descrizione_intervento)
@Html.DisplayFor(model => model.descrizione_intervento)
<span asp-validation-for="descrizione_intervento" class="text-danger"></span>
</div>
<div class="form-group">
@*<label asp-for="stato_finale" class="control-label"></label>*@
@*<input asp-for="stato_finale" class="form-control" />*@
<label asp-for="stato_finale" class="control-label"></label>
<input asp-for="stato_finale" class="form-control" />
@Html.HiddenFor(x => x.stato_finale)
@Html.DisplayFor(model => model.stato_finale)
<span asp-validation-for="stato_finale" class="text-danger"></span>
</div>
<div class="form-group">
@*<label asp-for="generato" class="control-label"></label>*@
@*<label asp-for="generato" class="control-label"></label>*
@*<input asp-for="generato" class="form-control" />*@
@Html.HiddenFor(x => x.generato)
@Html.DisplayFor(model => model.generato)
@ -183,7 +169,8 @@
</div>
<div class="form-group">
<label asp-for="codice_tecnico" class="control-label"></label>
<input asp-for="codice_tecnico" class="form-control" />
@*<input asp-for="codice_tecnico" class="form-control" />*@
@Html.DropDownListFor(x => x.codice_tecnico,(IEnumerable<SelectListItem>)ViewBag.Tecnici,new {@class = "form-control"})
<span asp-validation-for="codice_tecnico" class="text-danger"></span>
</div>
<div class="form-group">

View File

@ -58,108 +58,118 @@
<span asp-validation-for="seriale_commessa" class="text-danger"></span>
</div>
<div class="form-group">
@*<label asp-for="data_rapportino" class="control-label"></label>*@
@*<input asp-for="data_rapportino" class="form-control" />*@
@Html.HiddenFor(x => x.data_rapportino)
@Html.DisplayFor(model => model.data_rapportino)
<label asp-for="data_rapportino" class="control-label"></label>
<input asp-for="data_rapportino" class="form-control" />
@*@Html.HiddenFor(x => x.data_rapportino)*@
@*@Html.DisplayFor(model => model.data_rapportino)*@
<span asp-validation-for="data_rapportino" class="text-danger"></span>
</div>
<div class="form-group">
@*<label asp-for="ora_ini_rapportino" class="control-label"></label>*@
@*<input asp-for="ora_ini_rapportino" class="form-control" />*@
@Html.HiddenFor(x => x.ora_ini_rapportino)
@Html.DisplayFor(model => model.ora_ini_rapportino)
<label asp-for="ora_ini_rapportino" class="control-label"></label>
<input asp-for="ora_ini_rapportino" class="form-control" />
@*@Html.HiddenFor(x => x.ora_ini_rapportino)*@
@*@Html.DisplayFor(model => model.ora_ini_rapportino)*@
<span asp-validation-for="ora_ini_rapportino" class="text-danger"></span>
</div>
<div class="form-group">
@*<label asp-for="min_ini_rapportino" class="control-label"></label>*@
@*<input asp-for="min_ini_rapportino" class="form-control" />*@
@Html.HiddenFor(x => x.min_ini_rapportino)
@Html.DisplayFor(model => model.min_ini_rapportino)
<label asp-for="min_ini_rapportino" class="control-label"></label>
<input asp-for="min_ini_rapportino" class="form-control" />
@*@Html.HiddenFor(x => x.min_ini_rapportino)*@
@*@Html.DisplayFor(model => model.min_ini_rapportino)*@
<span asp-validation-for="min_ini_rapportino" class="text-danger"></span>
</div>
<div class="form-group">
@*<label asp-for="ora_fin_rapportino" class="control-label"></label>*@
@*<input asp-for="ora_fin_rapportino" class="form-control" />*@
@Html.HiddenFor(x => x.ora_fin_rapportino)
@Html.DisplayFor(model => model.ora_fin_rapportino)
<label asp-for="ora_fin_rapportino" class="control-label"></label>
<input asp-for="ora_fin_rapportino" class="form-control" />
@*@Html.HiddenFor(x => x.ora_fin_rapportino)*@
@*@Html.DisplayFor(model => model.ora_fin_rapportino)*@
<span asp-validation-for="ora_fin_rapportino" class="text-danger"></span>
</div>
<div class="form-group">
@*<label asp-for="min_fin_rapportino" class="control-label"></label>*@
@*<input asp-for="min_fin_rapportino" class="form-control" />*@
@Html.HiddenFor(x => x.min_fin_rapportino)
@Html.DisplayFor(model => model.min_fin_rapportino)
<label asp-for="min_fin_rapportino" class="control-label"></label>
<input asp-for="min_fin_rapportino" class="form-control" />
@*@Html.HiddenFor(x => x.min_fin_rapportino)*@
@*@Html.DisplayFor(model => model.min_fin_rapportino)*@
<span asp-validation-for="min_fin_rapportino" class="text-danger"></span>
</div>
<div class="form-group">
@*<label asp-for="codice_chiusura_1" class="control-label"></label>*@
@*<input asp-for="codice_chiusura_1" class="form-control" />*@
@Html.HiddenFor(x => x.codice_chiusura_1)
@Html.DisplayFor(model => model.codice_chiusura_1)
@Html.DropDownListFor(x => x.codice_chiusura_1,(IEnumerable<SelectListItem>)ViewBag.Chiusure,new {@class = "form-control"})
@*@Html.HiddenFor(x => x.codice_chiusura_1)*@
@*@Html.DisplayFor(model => model.codice_chiusura_1)*@
<span asp-validation-for="codice_chiusura_1" class="text-danger"></span>
</div>
<div class="form-group">
@*<label asp-for="codice_chiusura_2" class="control-label"></label>*@
@*<input asp-for="codice_chiusura_2" class="form-control" />*@
@Html.HiddenFor(x => x.codice_chiusura_2)
@Html.DisplayFor(model => model.codice_chiusura_2)
@Html.DropDownListFor(x => x.codice_chiusura_2,(IEnumerable<SelectListItem>)ViewBag.Chiusure,new {@class = "form-control"})
@*@Html.HiddenFor(x => x.codice_chiusura_2)*@
@*@Html.DisplayFor(model => model.codice_chiusura_2)*@
<span asp-validation-for="codice_chiusura_2" class="text-danger"></span>
</div>
<div class="form-group">
@*<label asp-for="codice_chiusura_3" class="control-label"></label>*@
@*<input asp-for="codice_chiusura_3" class="form-control" />*@
@Html.HiddenFor(x => x.codice_chiusura_3)
@Html.DisplayFor(model => model.codice_chiusura_3)
@Html.DropDownListFor(x => x.codice_chiusura_3,(IEnumerable<SelectListItem>)ViewBag.Chiusure,new {@class = "form-control"})
@*@Html.HiddenFor(x => x.codice_chiusura_3)*@
@*@Html.DisplayFor(model => model.codice_chiusura_3)*@
<span asp-validation-for="codice_chiusura_3" class="text-danger"></span>
</div>
<div class="form-group">
@*<label asp-for="codice_chiusura_4" class="control-label"></label>*@
@*<input asp-for="codice_chiusura_4" class="form-control" />*@
@Html.HiddenFor(x => x.codice_chiusura_4)
@Html.DisplayFor(model => model.codice_chiusura_4)
@Html.DropDownListFor(x => x.codice_chiusura_4,(IEnumerable<SelectListItem>)ViewBag.Chiusure,new {@class = "form-control"})
@*@Html.HiddenFor(x => x.codice_chiusura_4)*@
@*@Html.DisplayFor(model => model.codice_chiusura_4)*@
<span asp-validation-for="codice_chiusura_4" class="text-danger"></span>
</div>
<div class="form-group">
@*<label asp-for="codice_chiusura_5" class="control-label"></label>*@
@*<input asp-for="codice_chiusura_5" class="form-control" />*@
@Html.HiddenFor(x => x.codice_chiusura_5)
@Html.DisplayFor(model => model.codice_chiusura_5)
@Html.DropDownListFor(x => x.codice_chiusura_5,(IEnumerable<SelectListItem>)ViewBag.Chiusure,new {@class = "form-control"})
@*@Html.HiddenFor(x => x.codice_chiusura_5)*@
@*@Html.DisplayFor(model => model.codice_chiusura_5)*@
<span asp-validation-for="codice_chiusura_5" class="text-danger"></span>
</div>
<div class="form-group">
@*<label asp-for="codice_chiusura_6" class="control-label"></label>*@
@*<input asp-for="codice_chiusura_6" class="form-control" />*@
@Html.HiddenFor(x => x.codice_chiusura_6)
@Html.DisplayFor(model => model.codice_chiusura_6)
@Html.DropDownListFor(x => x.codice_chiusura_6,(IEnumerable<SelectListItem>)ViewBag.Chiusure,new {@class = "form-control"})
@*@Html.HiddenFor(x => x.codice_chiusura_6)*@
@*@Html.DisplayFor(model => model.codice_chiusura_6)*@
<span asp-validation-for="codice_chiusura_6" class="text-danger"></span>
</div>
<div class="form-group">
@*<label asp-for="codice_chiusura_7" class="control-label"></label>*@
@*<input asp-for="codice_chiusura_7" class="form-control" />*@
@Html.HiddenFor(x => x.codice_chiusura_7)
@Html.DisplayFor(model => model.codice_chiusura_7)
@Html.DropDownListFor(x => x.codice_chiusura_7,(IEnumerable<SelectListItem>)ViewBag.Chiusure,new {@class = "form-control"})
@*@Html.HiddenFor(x => x.codice_chiusura_7)*@
@*@Html.DisplayFor(model => model.codice_chiusura_7)*@
<span asp-validation-for="codice_chiusura_7" class="text-danger"></span>
</div>
<div class="form-group">
@*<label asp-for="codice_chiusura_8" class="control-label"></label>*@
@*<input asp-for="codice_chiusura_8" class="form-control" />*@
@Html.HiddenFor(x => x.codice_chiusura_8)
@Html.DisplayFor(model => model.codice_chiusura_8)
@Html.DropDownListFor(x => x.codice_chiusura_8,(IEnumerable<SelectListItem>)ViewBag.Chiusure,new {@class = "form-control"})
@*@Html.HiddenFor(x => x.codice_chiusura_8)*@
@*@Html.DisplayFor(model => model.codice_chiusura_8)*@
<span asp-validation-for="codice_chiusura_8" class="text-danger"></span>
</div>
<div class="form-group">
@*<label asp-for="codice_chiusura_9" class="control-label"></label>*@
@*<input asp-for="codice_chiusura_9" class="form-control" />*@
@Html.HiddenFor(x => x.codice_chiusura_9)
@Html.DisplayFor(model => model.codice_chiusura_9)
@Html.DropDownListFor(x => x.codice_chiusura_9,(IEnumerable<SelectListItem>)ViewBag.Chiusure,new {@class = "form-control"})
@*@Html.HiddenFor(x => x.codice_chiusura_9)*@
@*@Html.DisplayFor(model => model.codice_chiusura_9)*@
<span asp-validation-for="codice_chiusura_9" class="text-danger"></span>
</div>
<div class="form-group">
@*<label asp-for="codice_chiusura_10" class="control-label"></label>*@
@*<input asp-for="codice_chiusura_10" class="form-control" />*@
@Html.HiddenFor(x => x.codice_chiusura_10)
@Html.DisplayFor(model => model.codice_chiusura_10)
@Html.DropDownListFor(x => x.codice_chiusura_10,(IEnumerable<SelectListItem>)ViewBag.Chiusure,new {@class = "form-control"})
@*@Html.HiddenFor(x => x.codice_chiusura_10)*@
@*@Html.DisplayFor(model => model.codice_chiusura_10)*@
<span asp-validation-for="codice_chiusura_10" class="text-danger"></span>
</div>
<div class="form-group">

View File

@ -29,247 +29,247 @@
<tr>
<th>
@* @Html.DisplayNameFor(model => model.seriale_rapportino) *@
SERIALE RAPPORTINO
Seriale rapportino
</th>
<th>
@* @Html.DisplayNameFor(model => model.tipo_rapportino) *@
TIPO RAPPORTINI
Tipo rapportino
</th>
<th>
@* @Html.DisplayNameFor(model => model.azienda_impianto) *@
AZIENDA
Azienda
</th>
<th>
@* @Html.DisplayNameFor(model => model.codice_impianto) *@
CODICE IMPIANTO
Codice impianto
</th>
<th>
@* @Html.DisplayNameFor(model => model.azienda_chiamata) *@
AZ. CHIAMATA
Az. chiamata
</th>
<th>
@* @Html.DisplayNameFor(model => model.seriale_chiamata) *@
SERIALE CHIAMATA
Seriale chiamata
</th>
<th>
@* @Html.DisplayNameFor(model => model.seriale_commessa) *@
SERIALE COMMESSA
Seriale commessa
</th>
<th>
@* @Html.DisplayNameFor(model => model.data_rapportino) *@
DATA RAPPORTINO
Data rapportino
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.ora_ini_rapportino) *@
ORA INIZIO
Ora inizio
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.min_ini_rapportino) *@
MINUTO INIZIO
Minuto inzio
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.ora_fin_rapportino) *@
ORA FINE
Ora fine
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.min_fin_rapportino) *@
MINUTO FINE
Minuto fine
</th>
<th>
<th hidden>
@* @Html.DisplayNameFor(model => model.codice_chiusura_1) *@
CODICE CHIUSURA 1
Codice chiusura 1
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.codice_chiusura_2) *@
CODICE CHIUSURA 2
Codice chiusura 2
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.codice_chiusura_3) *@
CODICE CHIUSURA 3
Codice chiusura 3
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.codice_chiusura_4) *@
CODICE CHIUSURA 4
Codice chiusura 4
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.codice_chiusura_5) *@
CODICE CHIUSURA 5
Codice chiusura 5
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.codice_chiusura_6) *@
CODICE CHIUSURA 6
Codice chiusura 6
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.codice_chiusura_7) *@
CODICE CHIUSURA 7
Codice chiusura 7
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.codice_chiusura_8) *@
CODICE CHIUSURA 8
Codice chiusura 8
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.codice_chiusura_9) *@
CODICE CHIUSURA 9
Codice chiusura 9
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.codice_chiusura_10) *@
CODICE CHIUSURA 10
Codice chiusura 10
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.descrizione_intervento) *@
DESC. INTERVENTO
desc. Intervento
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.stato_finale) *@
STATO
Stato
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.generato) *@
GENERATO
Generato
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.azienda_tecnico) *@
AZ. TECNICO
Az. Tecnico
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.codice_tecnico) *@
COD. TECNICO
Cod. Tecnico
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.rifiutata) *@
RIFIUTATA
Rifiutata
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.firma) *@
FIRMA
Firma
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.incarico) *@
INCARICO
Incarico
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.data_validita) *@
DATA VALIDITA'
Data validità
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.immagine) *@
IMMAGINE
Immagine
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.ser_buono) *@
SERIALE BUONO
Seriale buono
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.data_effettiva) *@
DATA EFFETTIVA
Data effettiva
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.codice_intervento) *@
CODICE INTERVENTO
Codice intervento
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.difetti_riscontrati) *@
DIFETTI
Difetti
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.lavoro_eseguito) *@
LAVORO
Lavoro
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.esito_intervento) *@
ESITO
Esito
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.note_intervento) *@
NOTE
Note
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.nuovo_contratto) *@
NUOVO CONTRATTO
Nuovo contratto
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.ore_lavoro) *@
ORE LAVORO
Ore lavoro
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.causale) *@
CAUSALE
Causale
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.materiale) *@
MATERIALE
Materiale
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.diritto_chiamata) *@
DIRITTO CHIAMATA
Diritto chiamata
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.manodopera) *@
MANODOPERA
Manodopera
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.spese_viaggio) *@
SPESE VIAGGIO
Spese viaggio
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.pagamento) *@
PAGAMENTO
Pagamento
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.anticipo) *@
ANTICIPO
Anticipo
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.totale) *@
TOTALE
Totale
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.note_pagamento) *@
NOTE PAGAMENTO
Note pagamento
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.tipo_intervento) *@
TIPO INTERVENTO
Tipo intervento
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.rafoto) *@
FOTO 1
Foto 1
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.rafoto2) *@
FOTO 2
Foto 2
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.rafoto3) *@
FOTO 3
Foto 3
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.rafoto4) *@
FOTO 4
Foto 4
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.rafoto5) *@
FOTO 5
Foto 5
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.rafoto6) *@
FOTO 6
Foto 6
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.rafoto7) *@
FOTO 7
Foto 7
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.rafoto8) *@
FOTO 8
Foto 8
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.rafoto9) *@
FOTO 9
Foto 9
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.rafoto10) *@
FOTO 10
Foto 10
</th>
<th></th>
</tr>

View File

@ -33,39 +33,39 @@
</th>
<th>
@* @Html.DisplayNameFor(model => model.tccodice) *@
CODICE
Codice
</th>
<th>
@* @Html.DisplayNameFor(model => model.tcdescri) *@
DESCRIZIONE
Descrizione
</th>
<th>
@* @Html.DisplayNameFor(model => model.tctelef1) *@
TEL.
Tel.
</th>
<th>
@* @Html.DisplayNameFor(model => model.tcuser) *@
UTENTE
Utente
</th>
<th>
@* @Html.DisplayNameFor(model => model.tcpwd) *@
PASSWORD
Password
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.tccoor) *@
COSTO ORDINARIO
Costo ordinario
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.tccono) *@
COSTO NOTTURNO
Costo notturno
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.tccost) *@
COSTO STRAORDINARIO
Costo straordinario
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.tccofe) *@
COSTO FESTIVO
Costo festivo
</th>
<th></th>
</tr>