From 5559f0579968a144d5fd4316b3379be0e4658e01 Mon Sep 17 00:00:00 2001 From: Marco Audiffredi Date: Fri, 27 Sep 2024 12:30:45 +0200 Subject: [PATCH] Maschera chiamate restyle --- Models/Chiamate.cs | 3 + Views/Chiamate/Index.cshtml | 332 +++++++++++++++++------------------- 2 files changed, 161 insertions(+), 174 deletions(-) diff --git a/Models/Chiamate.cs b/Models/Chiamate.cs index 1dfdc9e..4835a29 100644 --- a/Models/Chiamate.cs +++ b/Models/Chiamate.cs @@ -235,5 +235,8 @@ namespace VirtualTask.Models return st; } } + + public string? andescri { get; set; } + public string? ancodice { get; set; } } } diff --git a/Views/Chiamate/Index.cshtml b/Views/Chiamate/Index.cshtml index dd74187..4b7d2da 100644 --- a/Views/Chiamate/Index.cshtml +++ b/Views/Chiamate/Index.cshtml @@ -7,12 +7,49 @@ ViewData["Title"] = "Chiamate"; Layout = "~/Views/Shared/_LayoutAreaRiservata.cshtml"; string da = string.Empty; + string a = string.Empty; if (!string.IsNullOrEmpty( (string)ViewBag.Da)) { da = ViewBag.Da; } + if (!string.IsNullOrEmpty((string)ViewBag.A)) + { + a = ViewBag.A; + } } +
@@ -57,7 +94,7 @@ Data a: @* @Html.TextBox("dataFin", null, new { type = "date", @class = "agy-form-field require" })*@ - + Stato: @@ -81,94 +118,136 @@
 
- - - - @* *@ - @* *@ - - - - - - - - - - - - - @foreach (var item in Model) - { - - @Html.HiddenFor(modelItem => item.chserial) - @Html.HiddenFor(modelItem => item.chcodese) +
+
CHIAMATE
+
-
- - +
SerialeEsercizioNumeroData appuntamentoImpiantoTecnicoStatoRICBuono
- @Html.DisplayFor(modelItem => item.numIntero) - - @Html.DisplayFor(modelItem => item.chdata) - - @Html.DisplayFor(modelItem => item.chcodimp) - @Html.DisplayFor(modelItem => item.indirizzoBreve) -
+ + - + + + + + + + + + + + + + + @foreach (var item in Model) + { + + @Html.HiddenFor(modelItem => item.chserial) + @Html.HiddenFor(modelItem => item.chcodese) - - - + + + + + - @{ + + + - // string link = string.Empty; + @{ + + // string link = string.Empty; - if (!string.IsNullOrEmpty(item.ser_buono_chiu)) - { - // link = "http://testapi.poloinformatico.it:9001/VIRTU/"; - // link = link + item.ser_buono_chiu + ".jpg"; - // - - } - else - { - - } - } - - + + } + else + { + + } } - } - - Dettaglio - - @{ - string _url_del = @Url.Action("Delete", "Chiamate", new { id = item.chserial }); - if (string.IsNullOrEmpty(item.ic) || string.IsNullOrEmpty(item.ser_buono_chiu)) - { - - Elimina + - - } - -
- @Html.DisplayFor(modelItem => item.chtchiam) - @Html.DisplayFor(modelItem => item.tcdescri) - #DataImpiantoClienteTecnico RICBuono
@Html.DisplayFor(modelItem => item.chstato) - @Html.DisplayFor(modelItem => item.descStato)@Html.DisplayFor(modelItem => item.rif)@Html.DisplayFor(modelItem => item.ic) + @Html.DisplayFor(modelItem => item.numIntero) + + @Html.DisplayFor(modelItem => item.chdata) + + @Html.DisplayFor(modelItem => item.chcodimp) - @Html.DisplayFor(modelItem => item.indirizzoBreve) + + @Html.DisplayFor(modelItem => item.andescri) + + @Html.DisplayFor(modelItem => item.chtchiam) - @Html.DisplayFor(modelItem => item.tcdescri) + + @* @Html.DisplayFor(modelItem => item.chstato) - @Html.DisplayFor(modelItem => item.descStato)*@ + @{ + if (!string.IsNullOrEmpty(item.chstato) && item.chstato.Equals("B")) + { + + } + if (!string.IsNullOrEmpty(item.chstato) && item.chstato.Equals("C")) + { + + + } + if (!string.IsNullOrEmpty(item.chstato) && item.chstato.Equals("Z")) + { + + } + if (!string.IsNullOrEmpty(item.chstato) && item.chstato.Equals("S")) + { + + } + } + @Html.DisplayFor(modelItem => item.rif)@Html.DisplayFor(modelItem => item.ic)@item.ser_buono_chiu@item.ser_buono_chiu - @{ - string _url_edit = @Url.Action("Edit", "Chiamate", new { id = item.chserial }); - - if (string.IsNullOrEmpty(item.ic) || string.IsNullOrEmpty(item.ser_buono_chiu)) - { - - Modifica - + if (!string.IsNullOrEmpty(item.ser_buono_chiu)) + { + // link = "http://testapi.poloinformatico.it:9001/VIRTU/"; + // link = link + item.ser_buono_chiu + ".jpg"; + // @item.ser_buono_chiu@item.ser_buono_chiu + @{ + string _url_edit = @Url.Action("Edit", "Chiamate", new { id = item.chserial }); + + if (string.IsNullOrEmpty(item.ic) || string.IsNullOrEmpty(item.ser_buono_chiu)) + { + + Modifica + + } + } + + Dettaglio - } - } -
+ @{ + string _url_del = @Url.Action("Delete", "Chiamate", new { id = item.chserial }); + + if (string.IsNullOrEmpty(item.ic) || string.IsNullOrEmpty(item.ser_buono_chiu)) + { + + Elimina + + } + } + + + } + + + +
+
+
 
+
+
 Da assegnare 
+
 Assegnata 
+
 Chiusa 
+
 Sospesa 
+
+ + + + +