diff --git a/Controllers/TecniciController.cs b/Controllers/TecniciController.cs index ad62b54..6321f7a 100644 --- a/Controllers/TecniciController.cs +++ b/Controllers/TecniciController.cs @@ -273,14 +273,14 @@ namespace VirtualTask.Controllers //step 1 prima controllo che le credenziali di login non siano già presenti. //per fare questo chiamo il metodo api tecniciListAll - Controllo c = isLoginPresente(tecnico.tcuser, tecnico.tcpwd, helper); - if (c.isPresente) - { - ModelState.AddModelError("tcuser", "Login già utilizzata. Scegliere un nome utente differente"); - } + //Controllo c = isLoginPresente(tecnico.tcuser, tecnico.tcpwd, helper); + //if (c.isPresente) + //{ + // ModelState.AddModelError("tcuser", "Login già utilizzata. Scegliere un nome utente differente"); + //} - if (!c.isPresente) - { + //if (!c.isPresente) + //{ tecnico.tccodazi = tenant; apiUrl = helper.GetStringValue("apiUrl"); @@ -306,12 +306,12 @@ namespace VirtualTask.Controllers helper.SetStringValue("errMsg", errMes); return RedirectToAction("Error"); } - //return View(tecnico); - } - else - { - return View(tecnico); - } + //return View(tecnico); + //} + //else + //{ + // return View(tecnico); + //} } #endregion EDIT diff --git a/Views/Anag/Create.cshtml b/Views/Anag/Create.cshtml index a5f7800..7cbe803 100644 --- a/Views/Anag/Create.cshtml +++ b/Views/Anag/Create.cshtml @@ -5,12 +5,132 @@ Layout = "~/Views/Shared/_LayoutAreaRiservata.cshtml"; } + +
+
+
+
+
+ + + + + + + + +
+ + @Html.ValidationSummary(false, "", new { @class = "text-danger" }) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
  
@Html.DisplayNameFor(model => model.andescri) + + +
@Html.DisplayNameFor(model => model.ancodfis) + + +
@Html.DisplayNameFor(model => model.anpariva) + + +
@Html.DisplayNameFor(model => model.anindiri) + + +
@Html.DisplayNameFor(model => model.antelefo) + + +
@Html.DisplayNameFor(model => model.annumcel) + + +
@Html.DisplayNameFor(model => model.an_email) + + +
@Html.DisplayNameFor(model => model.an_empec) + + +
+ + Torna alla lista +
+
+ + + @Html.HiddenFor(x => x.andtobso) + @Html.HiddenFor(x => x.annumlis) + @Html.HiddenFor(x => x.ancodice) + +
+
+
+ + +@section Scripts { + @{ + await Html.RenderPartialAsync("_ValidationScriptsPartial"); + } +} + + + +@* @model VirtualTask.Models.Anag + +@{ + ViewData["Title"] = "Nuovo cliente"; + Layout = "~/Views/Shared/_LayoutAreaRiservata.cshtml"; +} +
-
-
-
-
+ +
+
+ + + + + + +
@Html.ValidationSummary(false, "", new { @class = "text-danger" }) @@ -84,7 +204,7 @@ @section Scripts { @{ @@ -93,4 +213,4 @@ } - \ No newline at end of file + *@ \ No newline at end of file diff --git a/Views/Anag/Delete.cshtml b/Views/Anag/Delete.cshtml index de56dc0..cd3b766 100644 --- a/Views/Anag/Delete.cshtml +++ b/Views/Anag/Delete.cshtml @@ -5,6 +5,97 @@ Layout = "~/Views/Shared/_LayoutAreaRiservata.cshtml"; } +
+
+ +

+ Sei sicuro di voler eliminare questo cliente?
+ Questa operazione non può essere annullata. +

+ +
+
  
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
  
+ @Html.DisplayNameFor(model => model.antipcon) + @Html.DisplayFor(model => model.antipcon)
+ @Html.DisplayNameFor(model => model.ancodice) + @Html.DisplayFor(model => model.ancodice)
+ @Html.DisplayNameFor(model => model.andescri) + @Html.DisplayFor(model => model.andescri)
+ @Html.DisplayNameFor(model => model.anpariva) + @Html.DisplayFor(model => model.anpariva)
+ @Html.DisplayNameFor(model => model.anindiri) + @Html.DisplayFor(model => model.anindiri)
+ @Html.DisplayNameFor(model => model.antelefo) + @Html.DisplayFor(model => model.antelefo)
+ @Html.DisplayNameFor(model => model.annumcel) + @Html.DisplayFor(model => model.annumcel)
+ @Html.DisplayNameFor(model => model.an_email) + @Html.DisplayFor(model => model.an_email)
+ @Html.DisplayNameFor(model => model.an_empec) + @Html.DisplayFor(model => model.an_empec)
+
+ + + + model.ancodice) name="id" /> + Torna alla lista +
+
+
+ + +@* @model VirtualTask.Models.Anag + +@{ + ViewData["Title"] = "Elimina cliente"; + Layout = "~/Views/Shared/_LayoutAreaRiservata.cshtml"; +} +
@@ -50,4 +141,4 @@
-
\ No newline at end of file +
*@ \ No newline at end of file diff --git a/Views/Chiusure/Create.cshtml b/Views/Chiusure/Create.cshtml index 308e75e..9efc524 100644 --- a/Views/Chiusure/Create.cshtml +++ b/Views/Chiusure/Create.cshtml @@ -1,18 +1,149 @@ @model VirtualTask.Models.Chiusure +@{ + ViewData["Title"] = "Nuova chiusura"; + Layout = "~/Views/Shared/_LayoutAreaRiservata.cshtml"; +} + +
+
+ +
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + @* Eventuali campi aggiuntivi (se vuoi visualizzarli, basta togliere d-none) *@ + + + + +
CampoValore
+ @Html.DisplayNameFor(model => model.cccodice) + + + +
+ @Html.DisplayNameFor(model => model.ccdescr) + + + +
+ @Html.DisplayNameFor(model => model.ccdessup) + + + +
+ @Html.HiddenFor(x => x.cccodazi) + @Html.HiddenFor(x => x.ccflfatt) + @Html.HiddenFor(x => x.ccflrep) + @Html.HiddenFor(x => x.cctipcod) + @Html.HiddenFor(x => x.ccgruppo) + @Html.HiddenFor(x => x.ccimpint) + @Html.HiddenFor(x => x.ccimpman) + @Html.HiddenFor(x => x.ccserint) + @Html.HiddenFor(x => x.ccserman) + @Html.HiddenFor(x => x.ccnumore) + @Html.HiddenFor(x => x.ccperman) + @Html.HiddenFor(x => x.corecom) + @Html.HiddenFor(x => x.codtobso) + @Html.HiddenFor(x => x.ccriapre) + @Html.HiddenFor(x => x.ccchiint) + @Html.HiddenFor(x => x.ccrapabi) + @Html.HiddenFor(x => x.ccrapobb) +
+
+ + +
+ + @section Scripts { + @{ + await Html.RenderPartialAsync("_ValidationScriptsPartial"); + } + } +
+
+ + +@* @model VirtualTask.Models.Chiusure + @{ ViewData["Title"] = "Nuova chiusura"; Layout = "~/Views/Shared/_LayoutAreaRiservata.cshtml"; }
-
-
-
-
-
+ +
+
+ + + + + + + + + + + + + + + + + + + + +
@@ -58,7 +189,7 @@
@section Scripts { @@ -72,4 +203,4 @@
- + *@ diff --git a/Views/Chiusure/Delete.cshtml b/Views/Chiusure/Delete.cshtml index 90aa645..b302512 100644 --- a/Views/Chiusure/Delete.cshtml +++ b/Views/Chiusure/Delete.cshtml @@ -5,9 +5,70 @@ Layout = "~/Views/Shared/_LayoutAreaRiservata.cshtml"; } -@*

Elimina codice chiusura

+
+
-

Vuoi eliminare il codice di chiusura?

*@ +

+ Sei sicuro di voler eliminare questa chiusura?
+ Questa operazione non può essere annullata. +

+ +
+
CampoValore
+ @Html.DisplayNameFor(model => model.cccodice) + + + +
+ @Html.DisplayNameFor(model => model.ccdescr) + + + +
+ @Html.DisplayNameFor(model => model.ccdessup) + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
  
+ @Html.DisplayNameFor(model => model.cccodazi) + @Html.DisplayFor(model => model.cccodazi)
+ @Html.DisplayNameFor(model => model.cccodice) + @Html.DisplayFor(model => model.cccodice)
+ @Html.DisplayNameFor(model => model.ccdescr) + @Html.DisplayFor(model => model.ccdescr)
+ @Html.DisplayNameFor(model => model.ccdessup) + @Html.DisplayFor(model => model.ccdessup)
+
+ + + + model.cccodice) name="id" /> + Torna alla lista +
+
+
+ + +@* @model VirtualTask.Models.Chiusure + +@{ + ViewData["Title"] = "Elimina chiusura"; + Layout = "~/Views/Shared/_LayoutAreaRiservata.cshtml"; +} + +

Elimina codice chiusura

+ +

Vuoi eliminare il codice di chiusura?

@@ -35,4 +96,4 @@
-
\ No newline at end of file +
*@ \ No newline at end of file diff --git a/Views/CodSegna/Create.cshtml b/Views/CodSegna/Create.cshtml index 7417c1f..4087850 100644 --- a/Views/CodSegna/Create.cshtml +++ b/Views/CodSegna/Create.cshtml @@ -5,6 +5,94 @@ Layout = "~/Views/Shared/_LayoutAreaRiservata.cshtml"; } +
+
+ +
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + @* Eventuali campi aggiuntivi (se vuoi visualizzarli, basta togliere d-none) *@ + + + + +
CampoValore
+ @Html.DisplayNameFor(model => model.cscodice) + + + +
+ @Html.DisplayNameFor(model => model.csdescr) + + + +
+ @Html.DisplayNameFor(model => model.csferimp) + + + +
+ @Html.DisplayNameFor(model => model.cstipseg) + + + +
+ @Html.HiddenFor(x => x.cscodazi) + @Html.HiddenFor(x => x.csferimp) + @Html.HiddenFor(x => x.cstipseg) + @Html.HiddenFor(x => x.DataObso) +
+
+ + +
+ + @section Scripts { + @{ + await Html.RenderPartialAsync("_ValidationScriptsPartial"); + } + } +
+
+ + + +@* @model VirtualTask.Models.CodiceSegnalazione + +@{ + ViewData["Title"] = "Nuovo codice segnalazione"; + Layout = "~/Views/Shared/_LayoutAreaRiservata.cshtml"; +} +
@@ -25,16 +113,16 @@
 
-
+
*@ @*
*@ @* *@ - + @*
 
-
+
*@ @*
*@ @* *@ - +@*
 
@@ -58,4 +146,4 @@ }
-
+
*@ diff --git a/Views/CodSegna/Delete.cshtml b/Views/CodSegna/Delete.cshtml index 50fdd82..d5d306a 100644 --- a/Views/CodSegna/Delete.cshtml +++ b/Views/CodSegna/Delete.cshtml @@ -4,15 +4,66 @@ ViewData["Title"] = "Elimina codice segnalazione"; Layout = "~/Views/Shared/_LayoutAreaRiservata.cshtml"; } - -
-
-
-
-
- @Html.DisplayNameFor(model => model.cscodice)   @Html.DisplayFor(model => model.cscodice) + +

+ Sei sicuro di voler eliminare questo Codice segnalazione?
+ Questa operazione non può essere annullata. +

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
  
+ @Html.DisplayNameFor(model => model.cscodice) + @Html.DisplayFor(model => model.cscodice)
+ @Html.DisplayNameFor(model => model.csdescr) + @Html.DisplayFor(model => model.csdescr)
+ @Html.DisplayNameFor(model => model.csferimp) + @Html.DisplayFor(model => model.csferimp)
+ @Html.DisplayNameFor(model => model.cscodazi) + @Html.DisplayFor(model => model.cscodazi)
+ @Html.DisplayNameFor(model => model.cstipseg) + @Html.DisplayFor(model => model.cstipseg)
+
+ +
+ + model.cscodice) name="id" /> + Torna alla lista +
+
+
+@* @Html.DisplayNameFor(model => model.cscodice)   @Html.DisplayFor(model => model.cscodice)
@Html.DisplayNameFor(model => model.csdescr)   @Html.DisplayFor(model => model.csdescr) @@ -41,7 +92,7 @@
-
+
*@ @* @model VirtualTask.Models.CodiceSegnalazione *@ diff --git a/Views/CodSegna/Edit.cshtml b/Views/CodSegna/Edit.cshtml index 155290a..71c6852 100644 --- a/Views/CodSegna/Edit.cshtml +++ b/Views/CodSegna/Edit.cshtml @@ -7,59 +7,93 @@
-
-
-
-
-
 
-
-
- @Html.HiddenFor(x => x.cscodice) - @Html.DisplayFor(model => model.cscodice) - -
-
 
-
-
- - -
-
 
-
- @Html.HiddenFor(x => x.csferimp) - @Html.HiddenFor(model => model.csferimp) - @*
*@ - @* *@ - -
-
 
-
- @*
*@ - @Html.HiddenFor(x => x.cscodazi) - @Html.HiddenFor(model => model.cscodazi) - -
-
 
-
- @*
*@ - @* *@ - @Html.HiddenFor(x => x.cstipseg) - @Html.HiddenFor(model => model.cstipseg) - -
- -
 
-
+ + +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
CampoValore
+ @Html.DisplayNameFor(model => model.cscodice) + + @Html.HiddenFor(x => x.cscodice) + @Html.DisplayFor(model => model.cscodice) +
+ @Html.DisplayNameFor(model => model.csdescr) + + + +
+ @Html.DisplayNameFor(model => model.csferimp) + + @Html.HiddenFor(x => x.csferimp) + @Html.DisplayFor(model => model.csferimp) +
+ @Html.DisplayNameFor(model => model.cscodazi) + + @Html.HiddenFor(x => x.cscodazi) + @Html.DisplayFor(model => model.cscodazi) +
+ @Html.DisplayNameFor(model => model.cstipseg) + + @Html.HiddenFor(x => x.cstipseg) + @Html.DisplayFor(model => model.cstipseg) +
+
+ + + + + @section Scripts { + @{ + await Html.RenderPartialAsync("_ValidationScriptsPartial"); + } + } +
+
+ + @*
 
*@ + @* - @* @Html.HiddenFor(x => x.cscodazi) *@ - - +
*@ +@*
-
+ *@ @*