From 07c4e1f6afb982a7a72255798476296d1302922a Mon Sep 17 00:00:00 2001 From: michele Date: Fri, 20 Oct 2023 14:38:39 +0200 Subject: [PATCH] Michele: dropdown rappnew --- Controllers/Rapp_NewController.cs | 2 +- Views/Rapp_New/Edit.cshtml | 82 +++++++++++++++++++------------ 2 files changed, 52 insertions(+), 32 deletions(-) diff --git a/Controllers/Rapp_NewController.cs b/Controllers/Rapp_NewController.cs index a2a1bc6..ea619cd 100644 --- a/Controllers/Rapp_NewController.cs +++ b/Controllers/Rapp_NewController.cs @@ -193,7 +193,7 @@ namespace VirtualTask.Controllers return RedirectToAction("Error"); } - ViewBag.Chisure = GetCodChiusura(); + ViewBag.Chiusure = GetCodChiusura(); return View(rapp); } diff --git a/Views/Rapp_New/Edit.cshtml b/Views/Rapp_New/Edit.cshtml index db15db0..5ec0036 100644 --- a/Views/Rapp_New/Edit.cshtml +++ b/Views/Rapp_New/Edit.cshtml @@ -93,7 +93,7 @@
- @**@ + @**@ @Html.DropDownListFor(x => x.codice_chiusura_1,(IEnumerable)ViewBag.Chiusure,new {@class = "form-control"}) @*@Html.HiddenFor(x => x.codice_chiusura_1)*@ @@ -101,7 +101,7 @@
- @**@ + @**@ @Html.DropDownListFor(x => x.codice_chiusura_2,(IEnumerable)ViewBag.Chiusure,new {@class = "form-control"}) @*@Html.HiddenFor(x => x.codice_chiusura_2)*@ @@ -109,7 +109,7 @@
- @**@ + @**@ @Html.DropDownListFor(x => x.codice_chiusura_3,(IEnumerable)ViewBag.Chiusure,new {@class = "form-control"}) @*@Html.HiddenFor(x => x.codice_chiusura_3)*@ @@ -117,7 +117,7 @@
- @**@ + @**@ @Html.DropDownListFor(x => x.codice_chiusura_4,(IEnumerable)ViewBag.Chiusure,new {@class = "form-control"}) @*@Html.HiddenFor(x => x.codice_chiusura_4)*@ @@ -125,7 +125,7 @@
- @**@ + @**@ @Html.DropDownListFor(x => x.codice_chiusura_5,(IEnumerable)ViewBag.Chiusure,new {@class = "form-control"}) @*@Html.HiddenFor(x => x.codice_chiusura_5)*@ @@ -133,7 +133,7 @@
- @**@ + @**@ @Html.DropDownListFor(x => x.codice_chiusura_6,(IEnumerable)ViewBag.Chiusure,new {@class = "form-control"}) @*@Html.HiddenFor(x => x.codice_chiusura_6)*@ @@ -141,7 +141,7 @@
- @**@ + @**@ @Html.DropDownListFor(x => x.codice_chiusura_7,(IEnumerable)ViewBag.Chiusure,new {@class = "form-control"}) @*@Html.HiddenFor(x => x.codice_chiusura_7)*@ @@ -149,7 +149,7 @@
- @**@ + @**@ @Html.DropDownListFor(x => x.codice_chiusura_8,(IEnumerable)ViewBag.Chiusure,new {@class = "form-control"}) @*@Html.HiddenFor(x => x.codice_chiusura_8)*@ @@ -157,7 +157,7 @@
- @**@ + @**@ @Html.DropDownListFor(x => x.codice_chiusura_9,(IEnumerable)ViewBag.Chiusure,new {@class = "form-control"}) @*@Html.HiddenFor(x => x.codice_chiusura_9)*@ @@ -165,7 +165,7 @@
- @**@ + @**@ @Html.DropDownListFor(x => x.codice_chiusura_10,(IEnumerable)ViewBag.Chiusure,new {@class = "form-control"}) @*@Html.HiddenFor(x => x.codice_chiusura_10)*@ @@ -173,7 +173,7 @@
- @**@ + @**@ @Html.HiddenFor(x => x.descrizione_intervento) @Html.DisplayFor(model => model.descrizione_intervento) @@ -338,53 +338,73 @@
- - + @**@ + @**@ + @Html.HiddenFor(x => x.rafoto) + @Html.DisplayFor(model => model.rafoto)
- - + @**@ + @**@ + @Html.HiddenFor(x => x.rafoto2) + @Html.DisplayFor(model => model.rafoto2)
- - + @**@ + @**@ + @Html.HiddenFor(x => x.rafoto3) + @Html.DisplayFor(model => model.rafoto3)
- - + @**@ + @**@ + @Html.HiddenFor(x => x.rafoto4) + @Html.DisplayFor(model => model.rafoto4)
- - + @**@ + @**@ + @Html.HiddenFor(x => x.rafoto5) + @Html.DisplayFor(model => model.rafoto5)
- - + @**@ + @**@ + @Html.HiddenFor(x => x.rafoto6) + @Html.DisplayFor(model => model.rafoto6)
- - + @**@ + @**@ + @Html.HiddenFor(x => x.rafoto7) + @Html.DisplayFor(model => model.rafoto7)
- - + @**@ + @**@ + @Html.HiddenFor(x => x.rafoto8) + @Html.DisplayFor(model => model.rafoto8)
- - + @**@ + @**@ + @Html.HiddenFor(x => x.rafoto9) + @Html.DisplayFor(model => model.rafoto9)
- - + @**@ + @**@ + @Html.HiddenFor(x => x.rafoto10) + @Html.DisplayFor(model => model.rafoto10)