Compare commits

...

2 Commits

11 changed files with 930 additions and 539 deletions

View File

@ -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

View File

@ -5,12 +5,132 @@
Layout = "~/Views/Shared/_LayoutAreaRiservata.cshtml";
}
<div class="agy-project-wrapper agy-project-page-wrapper">
<div class="container">
<form asp-action="Create">
<div asp-validation-summary="ModelOnly" class="text-danger"></div>
<div class="table-responsive">
<table class="table table-bordered table-striped table-hover align-middle">
<thead class="table-primary">
<tr>
<th scope="col">&nbsp;</th>
<th scope="col">&nbsp;</th>
</tr>
</thead>
<tr>
<div asp-validation-summary="ModelOnly" class="text-danger"></div>
<input asp-for="antipcon" type="hidden" id="antipcon" value="C" name="antipcon" />
@Html.ValidationSummary(false, "", new { @class = "text-danger" })
<td class="fw-bold fs-5"><span class="badge bg-secondary">@Html.DisplayNameFor(model => model.andescri)</span></td>
<td>
<input asp-for="andescri" class="agy-form-field require" placeholder="Ragione sociale" />
<span asp-validation-for="andescri" class="text-danger"></span>
</td>
</tr>
<tr>
<td class="fw-bold fs-5"><span class="badge bg-secondary">@Html.DisplayNameFor(model => model.ancodfis)</span></td>
<td>
<input asp-for="ancodfis" class="agy-form-field require" placeholder="Data" />
<span asp-validation-for="ancodfis" class="text-danger"></span>
</td>
</tr>
<tr>
<td class="fw-bold fs-5"><span class="badge bg-secondary">@Html.DisplayNameFor(model => model.anpariva)</span></td>
<td>
<input asp-for="anpariva" class="agy-form-field require" placeholder="Partita Iva" />
<span asp-validation-for="anpariva" class="text-danger"></span>
</td>
</tr>
<tr>
<td class="fw-bold fs-5"><span class="badge bg-secondary">@Html.DisplayNameFor(model => model.anindiri)</span></td>
<td>
<input asp-for="anindiri" class="agy-form-field require" placeholder="Indirizzo" />
<span asp-validation-for="anindiri" class="text-danger"></span>
</td>
</tr>
<tr>
<td class="fw-bold fs-5"><span class="badge bg-secondary">@Html.DisplayNameFor(model => model.antelefo)</span></td>
<td>
<input asp-for="antelefo" class="agy-form-field require" placeholder="Telefono" />
<span asp-validation-for="antelefo" class="text-danger"></span>
</td>
</tr>
<tr>
<td class="fw-bold fs-5"><span class="badge bg-secondary">@Html.DisplayNameFor(model => model.annumcel)</span></td>
<td>
<input asp-for="annumcel" class="agy-form-field require" placeholder="Cellulare" />
<span asp-validation-for="annumcel" class="text-danger"></span>
</td>
</tr>
<tr>
<td class="fw-bold fs-5"><span class="badge bg-secondary">@Html.DisplayNameFor(model => model.an_email)</span></td>
<td>
<input asp-for="an_email" class="agy-form-field require" placeholder="Email" />
<span asp-validation-for="an_email" class="text-danger"></span>
</td>
</tr>
<tr>
<td class="fw-bold fs-5"><span class="badge bg-secondary">@Html.DisplayNameFor(model => model.an_empec)</span></td>
<td>
<input asp-for="an_empec" class="agy-form-field require" placeholder="PEC" />
<span asp-validation-for="an_empec" class="text-danger"></span>
</td>
</tr>
<td colspan="2">
<input type="submit" value="Salva" class="agy-btn submitForm" />
<a asp-action="Index" value="Torna alla lista" class="agy-btn submitForm">Torna alla lista</a>
</td>
</tr>
</table>
</div>
@Html.HiddenFor(x => x.andtobso)
@Html.HiddenFor(x => x.annumlis)
@Html.HiddenFor(x => x.ancodice)
</form>
</div>
</div>
@section Scripts {
@{
await Html.RenderPartialAsync("_ValidationScriptsPartial");
}
}
@* @model VirtualTask.Models.Anag
@{
ViewData["Title"] = "Nuovo cliente";
Layout = "~/Views/Shared/_LayoutAreaRiservata.cshtml";
}
<div class="agy-project-wrapper agy-project-page-wrapper">
<div class="container">
<div class="row">
<div class="row" style="float:left; width:50%;">
<div class="col-md-8">
<form asp-action="Create">
<form asp-action="Create">
<div asp-validation-summary="ModelOnly" class="text-danger"></div>
<div class="table-responsive">
<table class="table table-bordered table-striped table-hover align-middle">
<thead class="table-primary">
<tr>
<th scope="col">&nbsp;</th>
<th scope="col">&nbsp;</th>
</tr>
</thead>
<div asp-validation-summary="ModelOnly" class="text-danger"></div>
<input asp-for="antipcon" type="hidden" id="antipcon" value="C" name="antipcon" />
@Html.ValidationSummary(false, "", new { @class = "text-danger" })
@ -84,7 +204,7 @@
</div>
<div>
@* <a asp-action="Index">Torna alla lista</a> *@
<a asp-action="Index">Torna alla lista</a>
</div>
@section Scripts {
@{
@ -93,4 +213,4 @@
}
</div>
</div>
</div>
</div> *@

View File

@ -5,6 +5,97 @@
Layout = "~/Views/Shared/_LayoutAreaRiservata.cshtml";
}
<div class="agy-project-wrapper agy-project-page-wrapper">
<div class="container">
<p class="text-center text-muted mb-4 fs-5">
Sei sicuro di voler eliminare questo cliente?<br />
<strong>Questa operazione non può essere annullata.</strong>
</p>
<div class="table-responsive">
<table class="table table-bordered table-striped table-hover align-middle">
<thead class="table-primary">
<tr>
<th scope="col">&nbsp;</th>
<th scope="col">&nbsp;</th>
</tr>
</thead>
<tbody>
<tr>
<td class="fw-bold fs-5">
<span class="badge bg-secondary">@Html.DisplayNameFor(model => model.antipcon)</span>
</td>
<td>@Html.DisplayFor(model => model.antipcon)</td>
</tr>
<tr>
<td class="fw-bold fs-5">
<span class="badge bg-secondary">@Html.DisplayNameFor(model => model.ancodice)</span>
</td>
<td>@Html.DisplayFor(model => model.ancodice)</td>
</tr>
<tr>
<td class="fw-bold fs-5">
<span class="badge bg-secondary">@Html.DisplayNameFor(model => model.andescri)</span>
</td>
<td>@Html.DisplayFor(model => model.andescri)</td>
</tr>
<tr>
<td class="fw-bold fs-5">
<span class="badge bg-secondary">@Html.DisplayNameFor(model => model.anpariva)</span>
</td>
<td>@Html.DisplayFor(model => model.anpariva)</td>
</tr>
<tr>
<td class="fw-bold fs-5">
<span class="badge bg-secondary">@Html.DisplayNameFor(model => model.anindiri)</span>
</td>
<td>@Html.DisplayFor(model => model.anindiri)</td>
</tr>
<tr>
<td class="fw-bold fs-5">
<span class="badge bg-secondary">@Html.DisplayNameFor(model => model.antelefo)</span>
</td>
<td>@Html.DisplayFor(model => model.antelefo)</td>
</tr>
<tr>
<td class="fw-bold fs-5">
<span class="badge bg-secondary">@Html.DisplayNameFor(model => model.annumcel)</span>
</td>
<td>@Html.DisplayFor(model => model.annumcel)</td>
</tr>
<tr>
<td class="fw-bold fs-5">
<span class="badge bg-secondary">@Html.DisplayNameFor(model => model.an_email)</span>
</td>
<td>@Html.DisplayFor(model => model.an_email)</td>
</tr>
<tr>
<td class="fw-bold fs-5">
<span class="badge bg-secondary">@Html.DisplayNameFor(model => model.an_empec)</span>
</td>
<td>@Html.DisplayFor(model => model.an_empec)</td>
</tr>
</tbody>
</table>
</div>
<form asp-action="DeleteConfirmed">
<input type="submit" value="Elimina" class="agy-btn submitForm" />
<input type="hidden" id="id" value=@Html.DisplayFor(model => model.ancodice) name="id" />
<a asp-action="Index" value="Torna alla lista" class="agy-btn submitForm">Torna alla lista</a>
</form>
</div>
</div>
@* @model VirtualTask.Models.Anag
@{
ViewData["Title"] = "Elimina cliente";
Layout = "~/Views/Shared/_LayoutAreaRiservata.cshtml";
}
<div class="agy-project-wrapper agy-project-page-wrapper">
<div class="container">
<div class="row">
@ -50,4 +141,4 @@
</form>
</div>
</div>
</div>
</div> *@

View File

@ -1,18 +1,149 @@
@model VirtualTask.Models.Chiusure
@{
ViewData["Title"] = "Nuova chiusura";
Layout = "~/Views/Shared/_LayoutAreaRiservata.cshtml";
}
<div class="agy-project-wrapper agy-project-page-wrapper">
<div class="container">
<form asp-action="Create">
<div asp-validation-summary="ModelOnly" class="text-danger"></div>
<div class="table-responsive">
<table class="table table-bordered table-striped table-hover align-middle">
<thead class="table-primary">
<tr>
<th scope="col" style="width: 30%;">Campo</th>
<th scope="col">Valore</th>
</tr>
</thead>
<tbody>
<!-- Codice -->
<tr>
<td class="fw-bold fs-5">
<span class="badge bg-secondary">@Html.DisplayNameFor(model => model.cccodice)</span>
</td>
<td>
<input asp-for="cccodice" class="agy-form-field require" placeholder="Codice" />
<span asp-validation-for="cccodice" class="text-danger"></span>
</td>
</tr>
<!-- Descrizione -->
<tr>
<td class="fw-bold fs-5">
<span class="badge bg-secondary">@Html.DisplayNameFor(model => model.ccdescr)</span>
</td>
<td>
<input asp-for="ccdescr" class="agy-form-field require" placeholder="Descrizione" />
<span asp-validation-for="ccdescr" class="text-danger"></span>
</td>
</tr>
<!-- Telefono -->
<tr>
<td class="fw-bold fs-5">
<span class="badge bg-secondary">@Html.DisplayNameFor(model => model.ccdessup)</span>
</td>
<td>
<input asp-for="ccdessup" class="agy-form-field require" placeholder="Testo del rapportino (desc. sup.)" />
<span asp-validation-for="ccdessup" class="text-danger"></span>
</td>
</tr>
@* Eventuali campi aggiuntivi (se vuoi visualizzarli, basta togliere d-none) *@
<tr class="d-none">
<td colspan="2">
@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)
</td>
</tr>
</tbody>
</table>
</div>
<div class="form-group mt-3">
<input type="submit" value="Salva" class="agy-btn submitForm" />
<a asp-action="Index" class="agy-btn submitForm">Torna alla lista</a>
</div>
</form>
@section Scripts {
@{
await Html.RenderPartialAsync("_ValidationScriptsPartial");
}
}
</div>
</div>
@* @model VirtualTask.Models.Chiusure
@{
ViewData["Title"] = "Nuova chiusura";
Layout = "~/Views/Shared/_LayoutAreaRiservata.cshtml";
}
<div class="agy-project-wrapper agy-project-page-wrapper">
<div class="container">
<div class="row">
<div class="row">
<div class="col-md-4">
<form asp-action="Create">
<div asp-validation-summary="ModelOnly" class="text-danger"></div>
<form asp-action="Create">
<div asp-validation-summary="ModelOnly" class="text-danger"></div>
<div class="table-responsive">
<table class="table table-bordered table-striped table-hover align-middle">
<thead class="table-primary">
<tr>
<th scope="col" style="width: 30%;">Campo</th>
<th scope="col">Valore</th>
</tr>
</thead>
<tbody>
<tr>
<td class="fw-bold fs-5">
<span class="badge bg-secondary">@Html.DisplayNameFor(model => model.cccodice)</span>
</td>
<td>
<input asp-for="cccodice" class="agy-form-field require" placeholder="Codice" />
<span asp-validation-for="cccodice" class="text-danger"></span>
</td>
</tr>
<tr>
<td class="fw-bold fs-5">
<span class="badge bg-secondary">@Html.DisplayNameFor(model => model.ccdescr)</span>
</td>
<td>
<input asp-for="ccdescr" class="agy-form-field require" placeholder="Descrizione" />
<span asp-validation-for="ccdescr" class="text-danger"></span>
</td>
</tr>
<tr>
<td class="fw-bold fs-5">
<span class="badge bg-secondary">@Html.DisplayNameFor(model => model.ccdessup)</span>
</td>
<td>
<input asp-for="ccdescr" class="agy-form-field require" placeholder="Testo del rapportino (desc. sup.)" />
<span asp-validation-for="ccdescr" class="text-danger"></span>
</td>
</tr>
</tbody>
<div class="form-group">
<h5><label asp-for="cccodice" class="agy-client-quote"></label></h5>
<input asp-for="cccodice" class="agy-form-field require" placeholder="Codice" />
@ -58,7 +189,7 @@
</div>
<div>
@* <a asp-action="Index">Torna alla lista</a> *@
<a asp-action="Index">Torna alla lista</a>
</div>
@section Scripts {
@ -72,4 +203,4 @@
<hr />
*@

View File

@ -5,9 +5,70 @@
Layout = "~/Views/Shared/_LayoutAreaRiservata.cshtml";
}
@* <h1>Elimina codice chiusura</h1>
<div class="agy-project-wrapper agy-project-page-wrapper">
<div class="container">
<h3>Vuoi eliminare il codice di chiusura?</h3> *@
<p class="text-center text-muted mb-4 fs-5">
Sei sicuro di voler eliminare questa chiusura?<br />
<strong>Questa operazione non può essere annullata.</strong>
</p>
<div class="table-responsive">
<table class="table table-bordered table-striped table-hover align-middle">
<thead class="table-primary">
<tr>
<th scope="col">&nbsp;</th>
<th scope="col">&nbsp;</th>
</tr>
</thead>
<tbody>
<tr>
<td class="fw-bold fs-5">
<span class="badge bg-secondary">@Html.DisplayNameFor(model => model.cccodazi)</span>
</td>
<td>@Html.DisplayFor(model => model.cccodazi)</td>
</tr>
<tr>
<td class="fw-bold fs-5">
<span class="badge bg-secondary">@Html.DisplayNameFor(model => model.cccodice)</span>
</td>
<td>@Html.DisplayFor(model => model.cccodice)</td>
</tr>
<tr>
<td class="fw-bold fs-5">
<span class="badge bg-secondary">@Html.DisplayNameFor(model => model.ccdescr)</span>
</td>
<td>@Html.DisplayFor(model => model.ccdescr)</td>
</tr>
<tr>
<td class="fw-bold fs-5">
<span class="badge bg-secondary">@Html.DisplayNameFor(model => model.ccdessup)</span>
</td>
<td>@Html.DisplayFor(model => model.ccdessup)</td>
</tr>
</tbody>
</table>
</div>
<form asp-action="DeleteConfirmed">
<input type="submit" value="Elimina" class="agy-btn submitForm" />
<input type="hidden" id="id" value=@Html.DisplayFor(model => model.cccodice) name="id" />
<a asp-action="Index" value="Torna alla lista" class="agy-btn submitForm">Torna alla lista</a>
</form>
</div>
</div>
@* @model VirtualTask.Models.Chiusure
@{
ViewData["Title"] = "Elimina chiusura";
Layout = "~/Views/Shared/_LayoutAreaRiservata.cshtml";
}
<h1>Elimina codice chiusura</h1>
<h3>Vuoi eliminare il codice di chiusura?</h3>
<div class="agy-project-wrapper agy-project-page-wrapper">
<div class="container">
<div class="row">
@ -35,4 +96,4 @@
</div>
</div>
</div>
</div>
</div> *@

View File

@ -5,6 +5,94 @@
Layout = "~/Views/Shared/_LayoutAreaRiservata.cshtml";
}
<div class="agy-project-wrapper agy-project-page-wrapper">
<div class="container">
<form asp-action="Create">
<div asp-validation-summary="ModelOnly" class="text-danger"></div>
<div class="table-responsive">
<table class="table table-bordered table-striped table-hover align-middle">
<thead class="table-primary">
<tr>
<th scope="col" style="width: 30%;">Campo</th>
<th scope="col">Valore</th>
</tr>
</thead>
<tbody>
<tr>
<td class="fw-bold fs-5">
<span class="badge bg-secondary">@Html.DisplayNameFor(model => model.cscodice)</span>
</td>
<td>
<input asp-for="cscodice" class="agy-form-field require" placeholder="Codice" />
<span asp-validation-for="cscodice" class="text-danger"></span>
</td>
</tr>
<tr>
<td class="fw-bold fs-5">
<span class="badge bg-secondary">@Html.DisplayNameFor(model => model.csdescr)</span>
</td>
<td>
<input asp-for="csdescr" class="agy-form-field require" placeholder="Descrizione" />
<span asp-validation-for="csdescr" class="text-danger"></span>
</td>
</tr>
<tr>
<td class="fw-bold fs-5">
<span class="badge bg-secondary">@Html.DisplayNameFor(model => model.csferimp)</span>
</td>
<td>
<input asp-for="csferimp" class="agy-form-field require" placeholder="Fermo impianto" />
<span asp-validation-for="csferimp" class="text-danger"></span>
</td>
</tr>
<tr>
<td class="fw-bold fs-5">
<span class="badge bg-secondary">@Html.DisplayNameFor(model => model.cstipseg)</span>
</td>
<td>
<input asp-for="cstipseg" class="agy-form-field require" placeholder="Tipo segnalazione" />
<span asp-validation-for="cstipseg" class="text-danger"></span>
</td>
</tr>
@* Eventuali campi aggiuntivi (se vuoi visualizzarli, basta togliere d-none) *@
<tr class="d-none">
<td colspan="2">
@Html.HiddenFor(x => x.cscodazi)
@Html.HiddenFor(x => x.csferimp)
@Html.HiddenFor(x => x.cstipseg)
@Html.HiddenFor(x => x.DataObso)
</td>
</tr>
</tbody>
</table>
</div>
<div class="form-group mt-3">
<input type="submit" value="Salva" class="agy-btn submitForm" />
<a asp-action="Index" class="agy-btn submitForm">Torna alla lista</a>
</div>
</form>
@section Scripts {
@{
await Html.RenderPartialAsync("_ValidationScriptsPartial");
}
}
</div>
</div>
@* @model VirtualTask.Models.CodiceSegnalazione
@{
ViewData["Title"] = "Nuovo codice segnalazione";
Layout = "~/Views/Shared/_LayoutAreaRiservata.cshtml";
}
<div class="agy-project-wrapper agy-project-page-wrapper">
<div class="container">
<div class="row">
@ -25,16 +113,16 @@
<span asp-validation-for="csdescr" class="text-danger"></span>
</div>
<div class="col-lg-6 col-md-6 col-sm-12 col-12">&nbsp;</div>
<div class="form-group">
<div class="form-group"> *@
@* <h5><label asp-for="csferimp" class="control-label"></label></h5> *@
@* <input asp-for="csferimp" class="form-control" /> *@
<span asp-validation-for="csferimp" class="text-danger"></span>
@* <span asp-validation-for="csferimp" class="text-danger"></span>
</div>
<div class="col-lg-6 col-md-6 col-sm-12 col-12">&nbsp;</div>
<div class="form-group">
<div class="form-group"> *@
@* <h5><label asp-for="cstipseg" class="control-label"></label></h5> *@
@* <input asp-for="cstipseg" class="form-control" /> *@
<span asp-validation-for="cstipseg" class="text-danger"></span>
@* <span asp-validation-for="cstipseg" class="text-danger"></span>
</div>
<div class="col-lg-6 col-md-6 col-sm-12 col-12">&nbsp;</div>
@ -58,4 +146,4 @@
}
</div>
</div>
</div>
</div> *@

View File

@ -4,15 +4,66 @@
ViewData["Title"] = "Elimina codice segnalazione";
Layout = "~/Views/Shared/_LayoutAreaRiservata.cshtml";
}
<div class="agy-project-wrapper agy-project-page-wrapper">
<div class="container">
<div class="row">
<div class="row">
<div class="col-md-4">
<div class="col-md-10">
<b>@Html.DisplayNameFor(model => model.cscodice)</b>&nbsp;&nbsp;&nbsp;@Html.DisplayFor(model => model.cscodice)
<p class="text-center text-muted mb-4 fs-5">
Sei sicuro di voler eliminare questo Codice segnalazione?<br />
<strong>Questa operazione non può essere annullata.</strong>
</p>
<div class="table-responsive">
<table class="table table-bordered table-striped table-hover align-middle">
<thead class="table-primary">
<tr>
<th scope="col">&nbsp;</th>
<th scope="col">&nbsp;</th>
</tr>
</thead>
<tbody>
<tr>
<td class="fw-bold fs-5">
<span class="badge bg-secondary">@Html.DisplayNameFor(model => model.cscodice)</span>
</td>
<td>@Html.DisplayFor(model => model.cscodice)</td>
</tr>
<tr>
<td class="fw-bold fs-5">
<span class="badge bg-secondary">@Html.DisplayNameFor(model => model.csdescr)</span>
</td>
<td>@Html.DisplayFor(model => model.csdescr)</td>
</tr>
<tr>
<td class="fw-bold fs-5">
<span class="badge bg-secondary">@Html.DisplayNameFor(model => model.csferimp)</span>
</td>
<td>@Html.DisplayFor(model => model.csferimp)</td>
</tr>
<tr>
<td class="fw-bold fs-5">
<span class="badge bg-secondary">@Html.DisplayNameFor(model => model.cscodazi)</span>
</td>
<td>@Html.DisplayFor(model => model.cscodazi)</td>
</tr>
<tr>
<td class="fw-bold fs-5">
<span class="badge bg-secondary">@Html.DisplayNameFor(model => model.cstipseg)</span>
</td>
<td>@Html.DisplayFor(model => model.cstipseg)</td>
</tr>
</tbody>
</tbody>
</table>
</div>
<form asp-action="DeleteConfirmed">
<input type="submit" value="Elimina" class="agy-btn submitForm" />
<input type="hidden" id="id" value=@Html.DisplayFor(model => model.cscodice) name="id" />
<a asp-action="Index" value="Torna alla lista" class="agy-btn submitForm">Torna alla lista</a>
</form>
</div>
</div>
@* <b>@Html.DisplayNameFor(model => model.cscodice)</b>&nbsp;&nbsp;&nbsp;@Html.DisplayFor(model => model.cscodice)
</div>
<div class="col-md-10">
<b>@Html.DisplayNameFor(model => model.csdescr)</b>&nbsp;&nbsp;&nbsp;@Html.DisplayFor(model => model.csdescr)
@ -41,7 +92,7 @@
</div>
</div>
</div>
</div>
</div> *@
@* @model VirtualTask.Models.CodiceSegnalazione *@

View File

@ -7,59 +7,93 @@
<div class="agy-project-wrapper agy-project-page-wrapper">
<div class="container">
<div class="row">
<div class="col-md-4">
<form asp-action="Edit">
<div asp-validation-summary="ModelOnly" class="text-danger"></div>
<div class="col-lg-6 col-md-6 col-sm-12 col-12">&nbsp;</div>
<div class="form-group">
<h5><label asp-for="cscodice" class="agy-client-quote"></label></h5>
@Html.HiddenFor(x => x.cscodice)
@Html.DisplayFor(model => model.cscodice)
<span asp-validation-for="cscodice" class="text-danger"></span>
</div>
<div class="col-lg-6 col-md-6 col-sm-12 col-12">&nbsp;</div>
<div class="form-group">
<h5><label asp-for="csdescr" class="agy-client-quote"></label></h5>
<input asp-for="csdescr" class="agy-form-field require" class="form-control" />
<span asp-validation-for="csdescr" class="text-danger"></span>
</div>
<div class="col-lg-6 col-md-6 col-sm-12 col-12">&nbsp;</div>
<div class="form-group">
@Html.HiddenFor(x => x.csferimp)
@Html.HiddenFor(model => model.csferimp)
@* <h5><label asp-for="csferimp" class="agy-client-quote"></label></h5> *@
@* <input asp-for="csferimp" class="agy-form-field require" class="form-control" /> *@
<span asp-validation-for="csferimp" class="text-danger"></span>
</div>
<div class="col-lg-6 col-md-6 col-sm-12 col-12">&nbsp;</div>
<div class="form-group">
@* <h5><label asp-for="cscodazi" class="agy-client-quote"></label></h5> *@
@Html.HiddenFor(x => x.cscodazi)
@Html.HiddenFor(model => model.cscodazi)
<span asp-validation-for="cscodazi" class="text-danger"></span>
</div>
<div class="col-lg-6 col-md-6 col-sm-12 col-12">&nbsp;</div>
<div class="form-group">
@* <h5><label asp-for="cstipseg" class="agy-client-quote"></label></h5> *@
@* <input asp-for="cstipseg" class="agy-form-field require" class="form-control" /> *@
@Html.HiddenFor(x => x.cstipseg)
@Html.HiddenFor(model => model.cstipseg)
<span asp-validation-for="cstipseg" class="text-danger"></span>
</div>
<div class="col-lg-6 col-md-6 col-sm-12 col-12">&nbsp;</div>
<div class="form-group">
<form asp-action="Edit">
<div asp-validation-summary="ModelOnly" class="text-danger"></div>
<div class="table-responsive">
<table class="table table-bordered table-striped table-hover align-middle">
<thead class="table-primary">
<tr>
<th scope="col" style="width: 30%;">Campo</th>
<th scope="col">Valore</th>
</tr>
</thead>
<tbody>
<tr>
<td class="fw-bold fs-5">
<span class="badge bg-secondary">@Html.DisplayNameFor(model => model.cscodice)</span>
</td>
<td>
@Html.HiddenFor(x => x.cscodice)
@Html.DisplayFor(model => model.cscodice)
</td>
</tr>
<tr>
<td class="fw-bold fs-5">
<span class="badge bg-secondary">@Html.DisplayNameFor(model => model.csdescr)</span>
</td>
<td>
<input asp-for="csdescr" class="agy-form-field require" placeholder="Descrizione" />
<span asp-validation-for="csdescr" class="text-danger"></span>
</td>
</tr>
<tr>
<td class="fw-bold fs-5">
<span class="badge bg-secondary">@Html.DisplayNameFor(model => model.csferimp)</span>
</td>
<td>
@Html.HiddenFor(x => x.csferimp)
@Html.DisplayFor(model => model.csferimp)
</td>
</tr>
<tr>
<td class="fw-bold fs-5">
<span class="badge bg-secondary">@Html.DisplayNameFor(model => model.cscodazi)</span>
</td>
<td>
@Html.HiddenFor(x => x.cscodazi)
@Html.DisplayFor(model => model.cscodazi)
</td>
</tr>
<tr>
<td class="fw-bold fs-5">
<span class="badge bg-secondary">@Html.DisplayNameFor(model => model.cstipseg)</span>
</td>
<td>
@Html.HiddenFor(x => x.cstipseg)
@Html.DisplayFor(model => model.cstipseg)
</td>
</tr>
</tbody>
</tbody>
</table>
</div>
<div class="form-group mt-3">
<input type="submit" value="Salva" class="agy-btn submitForm" />
<a asp-action="Index" class="agy-btn submitForm">Torna alla lista</a>
</div>
</form>
@section Scripts {
@{
await Html.RenderPartialAsync("_ValidationScriptsPartial");
}
}
</div>
</div>
@* <div class="col-lg-6 col-md-6 col-sm-12 col-12">&nbsp;</div> *@
@* <div class="form-group">
<input type="submit" value="Salva" class="agy-btn submitForm" />
<a asp-action="Index" value="Torna alla lista" class="agy-btn submitForm">Torna alla lista</a>
</div>
@* @Html.HiddenFor(x => x.cscodazi) *@
</form>
</div> *@
@* </form>
</div>
</div>
</div>
</div>
</div> *@
@* <script type="text/javascript">
$(function () {

View File

@ -1,177 +1,113 @@
@model VirtualTask.Models.Tecnici
@{
ViewData["Title"] = "Nuovo";
ViewData["Title"] = "Nuovo tecnico";
Layout = "~/Views/Shared/_LayoutAreaRiservata.cshtml";
}
<div class="agy-project-wrapper agy-project-page-wrapper">
<div class="container">
<div class="row">
<div class="row">
<div class="col-md-4">
<form asp-action="Create">
<div asp-validation-summary="ModelOnly" class="text-danger"></div>
<div class="form-group">
<h5><label asp-for="tccodice" class="agy-client-quote"></label></h5>
<input asp-for="tccodice" class="agy-form-field require" placeholder="Codice" />
<span asp-validation-for="tccodice" class="text-danger"></span>
</div>
<div class="col-lg-6 col-md-6 col-sm-12 col-12">&nbsp;</div>
<div class="form-group">
<h5><label asp-for="tcdescri" class="agy-client-quote"></label></h5>
<input asp-for="tcdescri" class="agy-form-field require" placeholder="Descrizione" />
<span asp-validation-for="tcdescri" class="text-danger"></span>
</div>
<div class="col-lg-6 col-md-6 col-sm-12 col-12">&nbsp;</div>
<div class="form-group">
<h5><label asp-for="tctelef1" class="agy-client-quote"></label></h5>
<input asp-for="tctelef1" class="agy-form-field require" placeholder="Tel." />
<span asp-validation-for="tctelef1" class="text-danger"></span>
</div>
<div class="col-lg-6 col-md-6 col-sm-12 col-12">&nbsp;</div>
<div class="form-group">
<h5><label asp-for="tcuser" class="agy-client-quote"></label></h5>
<input asp-for="tcuser" class="agy-form-field require" placeholder="Utente" />
<span asp-validation-for="tcuser" class="text-danger"></span>
</div>
<div class="col-lg-6 col-md-6 col-sm-12 col-12">&nbsp;</div>
<div class="form-group">
<h5><label asp-for="tcpwd" class="agy-client-quote"></label></h5>
<input asp-for="tcpwd" class="agy-form-field require" placeholder="Password" />
<span asp-validation-for="tcpwd" class="text-danger"></span>
</div>
<div class="col-lg-6 col-md-6 col-sm-12 col-12">&nbsp;</div>
<div class="form-group">
<h5><label asp-for="tccoor" class="agy-client-quote"></label></h5>
<input asp-for="tccoor_input" class="agy-form-field require" placeholder="Costo orario" />
<span asp-validation-for="tccoor" class="text-danger"></span>
</div>
@* <div class="col-lg-6 col-md-6 col-sm-12 col-12">&nbsp;</div>
<div class="form-group">
<h5><label asp-for="tccono" class="agy-client-quote"></label></h5>
<input asp-for="tccono" class="agy-form-field require" placeholder="Costo notturno" />
<span asp-validation-for="tccono" class="text-danger"></span>
</div>
<div class="col-lg-6 col-md-6 col-sm-12 col-12">&nbsp;</div>
<div class="form-group">
<h5><label asp-for="tccost" class="agy-client-quote"></label></h5>
<input asp-for="tccost" class="agy-form-field require" placeholder="Costo straordinario" />
<span asp-validation-for="tccost" class="text-danger"></span>
</div>
<div class="col-lg-6 col-md-6 col-sm-12 col-12">&nbsp;</div>
<div class="form-group">
<h5><label asp-for="tccofe" class="agy-client-quote"></label></h5>
<input asp-for="tccofe" class="agy-form-field require" placeholder="Costo festivo" />
<span asp-validation-for="tccofe" class="text-danger"></span>
</div>
*@
<div class="col-lg-6 col-md-6 col-sm-12 col-12">&nbsp;</div>
<div class="form-group">
<input type="submit" value="Salva" class="agy-btn submitForm" />
<a asp-action="Index" value="Torna alla lista" class="agy-btn submitForm">Torna alla lista</a>
</div>
@Html.HiddenFor(x => x.tccodice)
@Html.HiddenFor(x => x.tcdescri)
@Html.HiddenFor(x => x.tctelef1)
@Html.HiddenFor(x => x.tcuser)
@Html.HiddenFor(x => x.tcpwd)
@Html.HiddenFor(x => x.tccoor)
@Html.HiddenFor(x => x.tccono)
@Html.HiddenFor(x => x.tccost)
@Html.HiddenFor(x => x.tccofe)
</form>
</div>
</div>
<div>
@* <a asp-action="Index">Torna alla lista</a> *@
</div>
@section Scripts {
@{
await Html.RenderPartialAsync("_ValidationScriptsPartial");
}
}
</div>
</div>
</div>
@* <h1>Nuovo tecnico</h1>
<h4 hidden>Tecnici</h4>
<hr />
<div class="row">
<div class="col-md-4">
<form asp-action="Create">
<div asp-validation-summary="ModelOnly" class="text-danger"></div> *@
@* <div class="form-group">
<label asp-for="tccodazi" class="control-label"></label>
<input asp-for="tccodazi" class="form-control" />
<span asp-validation-for="tccodazi" class="text-danger"></span>
</div> *@
@* @Html.HiddenFor(x => x.tccodazi)
<div class="form-group">
<label asp-for="tccodice" class="control-label"></label>
<input asp-for="tccodice" class="form-control" />
<span asp-validation-for="tccodice" class="text-danger"></span>
<div asp-validation-summary="ModelOnly" class="text-danger"></div>
<div class="table-responsive">
<table class="table table-bordered table-striped table-hover align-middle">
<thead class="table-primary">
<tr>
<th scope="col" style="width: 30%;">Campo</th>
<th scope="col">Valore</th>
</tr>
</thead>
<tbody>
<!-- Codice -->
<tr>
<td class="fw-bold fs-5">
<span class="badge bg-secondary">@Html.DisplayNameFor(model => model.tccodice)</span>
</td>
<td>
<input asp-for="tccodice" class="agy-form-field require" placeholder="Codice" />
<span asp-validation-for="tccodice" class="text-danger"></span>
</td>
</tr>
<!-- Descrizione -->
<tr>
<td class="fw-bold fs-5">
<span class="badge bg-secondary">@Html.DisplayNameFor(model => model.tcdescri)</span>
</td>
<td>
<input asp-for="tcdescri" class="agy-form-field require" placeholder="Descrizione" />
<span asp-validation-for="tcdescri" class="text-danger"></span>
</td>
</tr>
<!-- Telefono -->
<tr>
<td class="fw-bold fs-5">
<span class="badge bg-secondary">@Html.DisplayNameFor(model => model.tctelef1)</span>
</td>
<td>
<input asp-for="tctelef1" class="agy-form-field require" placeholder="Telefono" />
<span asp-validation-for="tctelef1" class="text-danger"></span>
</td>
</tr>
<!-- Utente -->
<tr>
<td class="fw-bold fs-5">
<span class="badge bg-secondary">@Html.DisplayNameFor(model => model.tcuser)</span>
</td>
<td>
<input asp-for="tcuser" class="agy-form-field require" placeholder="Utente" />
<span asp-validation-for="tcuser" class="text-danger"></span>
</td>
</tr>
<!-- Password -->
<tr>
<td class="fw-bold fs-5">
<span class="badge bg-secondary">@Html.DisplayNameFor(model => model.tcpwd)</span>
</td>
<td>
<input asp-for="tcpwd" class="agy-form-field require" placeholder="Password" />
<span asp-validation-for="tcpwd" class="text-danger"></span>
</td>
</tr>
<!-- Costo orario -->
<tr>
<td class="fw-bold fs-5">
<span class="badge bg-secondary">@Html.DisplayNameFor(model => model.tccoor)</span>
</td>
<td>
<input asp-for="tccoor" class="agy-form-field require" placeholder="Costo orario" />
<span asp-validation-for="tccoor" class="text-danger"></span>
</td>
</tr>
@* Eventuali campi aggiuntivi (se vuoi visualizzarli, basta togliere d-none) *@
<tr class="d-none">
<td colspan="2">
@Html.HiddenFor(x => x.tccono)
@Html.HiddenFor(x => x.tccost)
@Html.HiddenFor(x => x.tccofe)
</td>
</tr>
</tbody>
</table>
</div>
<div class="form-group">
<label asp-for="tcdescri" class="control-label"></label>
<input asp-for="tcdescri" class="form-control" />
<span asp-validation-for="tcdescri" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="tctelef1" class="control-label"></label>
<input asp-for="tctelef1" class="form-control" />
<span asp-validation-for="tctelef1" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="tcuser" class="control-label"></label>
<input asp-for="tcuser" class="form-control" />
<span asp-validation-for="tcuser" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="tcpwd" class="control-label"></label>
<input asp-for="tcpwd" class="form-control" />
<span asp-validation-for="tcpwd" class="text-danger"></span>
</div> *@
@*<div class="form-group">
<label asp-for="tccoor" class="control-label"></label>
<input asp-for="tccoor" class="form-control" />
<span asp-validation-for="tccoor" class="text-danger"></span>
</div>*@
@* @Html.HiddenFor(x => x.tccoor) *@
@*<div class="form-group">
<label asp-for="tccono" class="control-label"></label>
<input asp-for="tccono" class="form-control" />
<span asp-validation-for="tccono" class="text-danger"></span>
</div>*@
@* @Html.HiddenFor(x => x.tccono) *@
@*<div class="form-group">
<label asp-for="tccost" class="control-label"></label>
<input asp-for="tccost" class="form-control" />
<span asp-validation-for="tccost" class="text-danger"></span>
</div>*@
@* @Html.HiddenFor(x => x.tccost) *@
@*<div class="form-group">
<label asp-for="tccofe" class="control-label"></label>
<input asp-for="tccofe" class="form-control" />
<span asp-validation-for="tccofe" class="text-danger"></span>
</div>*@
@* @Html.HiddenFor(x => x.tccofe)
<div class="form-group">
<input type="submit" value="Salva" class="btn btn-primary" />
<div class="form-group mt-3">
<input type="submit" value="Salva" class="agy-btn submitForm" />
<a asp-action="Index" class="agy-btn submitForm">Torna alla lista</a>
</div>
</form>
@section Scripts {
@{
await Html.RenderPartialAsync("_ValidationScriptsPartial");
}
}
</div>
</div>
<div>
<a asp-action="Index">Torna indietro</a>
</div>
@section Scripts {
@{await Html.RenderPartialAsync("_ValidationScriptsPartial");}
} *@

View File

@ -1,132 +1,77 @@
@model VirtualTask.Models.Tecnici
@{
ViewData["Title"] = "Elimina";
ViewData["Title"] = "Elimina tecnico";
Layout = "~/Views/Shared/_LayoutAreaRiservata.cshtml";
}
<div class ="agy-project-wrapper agy-project-page-wrapper">
<div class="agy-project-wrapper agy-project-page-wrapper">
<div class="container">
<div class="row">
<div class="row">
<div class="col-md-4">
<div class="col-md-10">
<b>@Html.DisplayNameFor(model => model.tccodazi)</b>&nbsp;&nbsp;&nbsp;@Html.DisplayFor(model => model.tccodazi)
</div>
<div class="col-md-10">
<b>@Html.DisplayNameFor(model => model.tccodice)</b>&nbsp;&nbsp;&nbsp;@Html.DisplayFor(model => model.tccodice)
</div>
<div class="col-md-10">
<b>@Html.DisplayNameFor(model => model.tcdescri)</b>&nbsp;&nbsp;&nbsp;@Html.DisplayFor(model => model.tcdescri)
</div>
<div class="col-md-10">
<b>@Html.DisplayNameFor(model => model.tctelef1)</b>&nbsp;&nbsp;&nbsp;@Html.DisplayFor(model => model.tctelef1)
</div>
<div class="col-md-10">
<b>@Html.DisplayNameFor(model => model.tcuser)</b>&nbsp;&nbsp;&nbsp;@Html.DisplayFor(model => model.tcuser)
</div>
<div class="col-md-10">
<b>@Html.DisplayNameFor(model => model.tcpwd)</b>&nbsp;&nbsp;&nbsp;@Html.DisplayFor(model => model.tcpwd)
</div>
<div class="col-md-10" hidden>
<b>@Html.DisplayNameFor(model => model.tccoor)</b>&nbsp;&nbsp;&nbsp;@Html.DisplayFor(model => model.tccoor)
</div>
<div class="col-md-10" hidden>
<b>@Html.DisplayNameFor(model => model.tccono)</b>&nbsp;&nbsp;&nbsp;@Html.DisplayFor(model => model.tccono)
</div>
<div class="col-md-10" hidden>
<b>@Html.DisplayNameFor(model => model.tccost)</b>&nbsp;&nbsp;&nbsp;@Html.DisplayFor(model => model.tccost)
</div>
<div class="col-md-10" hidden>
<b>@Html.DisplayNameFor(model => model.tccofe)</b>&nbsp;&nbsp;&nbsp;@Html.DisplayFor(model => model.tccofe)
</div>
</div>
<div class="col-lg-6 col-md-6 col-sm-12 col-12">&nbsp;</div>
<form asp-action="DeleteConfirmed">
<input type="submit" value="Elimina" class="agy-btn submitForm" />
<input type="hidden" id="id" value=@Html.DisplayFor(model => model.tccodice) name="id" />
<a asp-action="Index" value="Torna alla lista" class="agy-btn submitForm">Torna alla lista</a>
</form>
</div>
<p class="text-center text-muted mb-4 fs-5">
Sei sicuro di voler eliminare questo tecnico?<br />
<strong>Questa operazione non può essere annullata.</strong>
</p>
<div class="table-responsive">
<table class="table table-bordered table-striped table-hover align-middle">
<thead class="table-primary">
<tr>
<th scope="col">&nbsp;</th>
<th scope="col">&nbsp;</th>
</tr>
</thead>
<tbody>
<tr>
<td class="fw-bold fs-5">
<span class="badge bg-secondary">@Html.DisplayNameFor(model => model.tccodazi)</span>
</td>
<td>@Html.DisplayFor(model => model.tccodazi)</td>
</tr>
<tr>
<td class="fw-bold fs-5">
<span class="badge bg-secondary">@Html.DisplayNameFor(model => model.tccodice)</span>
</td>
<td>@Html.DisplayFor(model => model.tccodice)</td>
</tr>
<tr>
<td class="fw-bold fs-5">
<span class="badge bg-secondary">@Html.DisplayNameFor(model => model.tcdescri)</span>
</td>
<td>@Html.DisplayFor(model => model.tcdescri)</td>
</tr>
<tr>
<td class="fw-bold fs-5">
<span class="badge bg-secondary">@Html.DisplayNameFor(model => model.tctelef1)</span>
</td>
<td>@Html.DisplayFor(model => model.tctelef1)</td>
</tr>
<tr>
<td class="fw-bold fs-5">
<span class="badge bg-secondary">@Html.DisplayNameFor(model => model.tcuser)</span>
</td>
<td>@Html.DisplayFor(model => model.tcuser)</td>
</tr>
<tr>
<td class="fw-bold fs-5">
<span class="badge bg-secondary">@Html.DisplayNameFor(model => model.tcpwd)</span>
</td>
<td>@Html.DisplayFor(model => model.tcpwd)</td>
</tr>
<tr>
<td class="fw-bold fs-5">
<span class="badge bg-secondary">@Html.DisplayNameFor(model => model.tccoor)</span>
</td>
<td>@Html.DisplayFor(model => model.tccoor)</td>
</tr>
</tbody>
</table>
</div>
<form asp-action="DeleteConfirmed">
<input type="submit" value="Elimina" class="agy-btn submitForm" />
<input type="hidden" id="id" value=@Html.DisplayFor(model => model.tccodice) name="id" />
<a asp-action="Index" value="Torna alla lista" class="agy-btn submitForm">Torna alla lista</a>
</form>
</div>
</div>
@*
<h1>Elimina tecnico</h1>
<h3>Vuoi eliminare il tecnico?</h3>
<div>
<h4>Tecnici</h4>
<hr />
<dl class="row">
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.tccodazi)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.tccodazi)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.tccodice)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.tccodice)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.tcdescri)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.tcdescri)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.tctelef1)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.tctelef1)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.tcuser)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.tcuser)
</dd>
<dt class = "col-sm-2">
@Html.DisplayNameFor(model => model.tcpwd)
</dt>
<dd class = "col-sm-10">
@Html.DisplayFor(model => model.tcpwd)
</dd>
<dt class="col-sm-2" hidden>
@Html.DisplayNameFor(model => model.tccoor)
</dt>
<dd class="col-sm-10" hidden>
@Html.DisplayFor(model => model.tccoor)
</dd>
<dt class="col-sm-2" hidden>
@Html.DisplayNameFor(model => model.tccono)
</dt>
<dd class="col-sm-10" hidden>
@Html.DisplayFor(model => model.tccono)
</dd>
<dt class="col-sm-2" hidden>
@Html.DisplayNameFor(model => model.tccost)
</dt>
<dd class="col-sm-10" hidden>
@Html.DisplayFor(model => model.tccost)
</dd>
<dt class="col-sm-2" hidden>
@Html.DisplayNameFor(model => model.tccofe)
</dt>
<dd class = "col-sm-10" hidden>
@Html.DisplayFor(model => model.tccofe)
</dd>
</dl>
<form asp-action="DeleteConfirmed">
<input type="submit" value="Delete" class="btn btn-danger" /> |
<input type="hidden" id="id" value=@Html.DisplayFor(model => model.tccodice) name="id" />
<a asp-action="Index">Back to List</a>
</form>
</div>
*@

View File

@ -1,179 +1,113 @@
@model VirtualTask.Models.Tecnici
@{
ViewData["Title"] = "Modifica";
ViewData["Title"] = "Modifica tecnico";
Layout = "~/Views/Shared/_LayoutAreaRiservata.cshtml";
}
<div class="agy-project-wrapper agy-project-page-wrapper">
<div class="container">
<div class="row">
<div class="row">
<div class="col-md-4">
<form asp-action="Edit">
<div asp-validation-summary="ModelOnly" class="text-danger"></div>
<div class="form-group" >
<h5><label asp-for="tccodice" class="agy-client-quote"></label></h5>
@* <input asp-for="tccodice" class="agy-form-field require" placeholder="Codice" /> *@
@Html.HiddenFor(x => x.tccodice)
@Html.DisplayFor(model => model.tccodice)
<span asp-validation-for="tccodice" class="text-danger"></span>
</div>
<div class="col-lg-6 col-md-6 col-sm-12 col-12">&nbsp;</div>
<div class="form-group">
<h5><label asp-for="tcdescri" class="agy-client-quote"></label></h5>
<input asp-for="tcdescri" class="agy-form-field require" placeholder="Descrizione" />
<span asp-validation-for="tcdescri" class="text-danger"></span>
</div>
<div class="col-lg-6 col-md-6 col-sm-12 col-12">&nbsp;</div>
<div class="form-group">
<h5><label asp-for="tctelef1" class="agy-client-quote"></label></h5>
<input asp-for="tctelef1" class="agy-form-field require" placeholder="Tel." />
<span asp-validation-for="tctelef1" class="text-danger"></span>
</div>
<div class="col-lg-6 col-md-6 col-sm-12 col-12">&nbsp;</div>
<div class="form-group">
<h5><label asp-for="tcuser" class="agy-client-quote"></label></h5>
<input asp-for="tcuser" class="agy-form-field require" placeholder="Utente" />
<span asp-validation-for="tcuser" class="text-danger"></span>
</div>
<div class="col-lg-6 col-md-6 col-sm-12 col-12">&nbsp;</div>
<div class="form-group">
<h5><label asp-for="tcpwd" class="agy-client-quote"></label></h5>
<input asp-for="tcpwd" class="agy-form-field require" placeholder="Password" />
<span asp-validation-for="tcpwd" class="text-danger"></span>
</div>
<div class="col-lg-6 col-md-6 col-sm-12 col-12">&nbsp;</div>
<div class="form-group">
<h5><label asp-for="tccoor" class="agy-client-quote"></label></h5>
<input asp-for="tccoor_input" class="agy-form-field require" placeholder="Costo ordinario" />
<span asp-validation-for="tccoor" class="text-danger"></span>
</div>
@* <div class="col-lg-6 col-md-6 col-sm-12 col-12">&nbsp;</div>
<div class="form-group">
<h5><label asp-for="tccono" class="agy-client-quote"></label></h5>
<input asp-for="tccono" class="agy-form-field require" placeholder="Costo notturno" />
<span asp-validation-for="tccono" class="text-danger"></span>
</div>
<div class="col-lg-6 col-md-6 col-sm-12 col-12">&nbsp;</div>
<div class="form-group">
<h5><label asp-for="tccost" class="agy-client-quote"></label></h5>
<input asp-for="tccost" class="agy-form-field require" placeholder="Costo straordinario" />
<span asp-validation-for="tccost" class="text-danger"></span>
</div>
<div class="col-lg-6 col-md-6 col-sm-12 col-12">&nbsp;</div>
<div class="form-group">
<h5><label asp-for="tccofe" class="agy-client-quote"></label></h5>
<input asp-for="tccofe" class="agy-form-field require" placeholder="Costo festivo" />
<span asp-validation-for="tccofe" class="text-danger"></span>
</div> *@
<div class="col-lg-6 col-md-6 col-sm-12 col-12">&nbsp;</div>
<div class="form-group">
<input type="submit" value="Salva" class="agy-btn submitForm" />
<a asp-action="Index" value="Torna alla lista" class="agy-btn submitForm">Torna alla lista</a>
</div>
@Html.HiddenFor(x => x.tccono)
@Html.HiddenFor(x => x.tccost)
@Html.HiddenFor(x => x.tccofe)
</form>
</div>
</div>
<div>
@* <a asp-action="Index">Torna alla lista</a> *@
</div>
@section Scripts {
@{
await Html.RenderPartialAsync("_ValidationScriptsPartial");
}
}
</div>
</div>
</div>
<hr />
@*
<h1>Modifica tecnico</h1>
<h4 hidden>Tecnici</h4>
<hr />
<div class="row">
<div class="col-md-4">
<form asp-action="Edit">
<div asp-validation-summary="ModelOnly" class="text-danger"></div> *@
@* <div class="form-group">
<label asp-for="tccodazi" class="control-label"></label>
<input asp-for="tccodazi" class="form-control" />
<span asp-validation-for="tccodazi" class="text-danger"></span>
</div> *@
@* @Html.HiddenFor(x => x.tccodazi) *@
@* <div class="form-group"> *@
@* <label asp-for="tccodice" class="control-label"></label> *@
@*<input asp-for="tccodice" class="form-control" />*@
@* @Html.HiddenFor(x => x.tccodice)
@Html.DisplayFor(model => model.tccodice)
<span asp-validation-for="tccodice" class="text-danger"></span>
<div asp-validation-summary="ModelOnly" class="text-danger"></div>
<div class="table-responsive">
<table class="table table-bordered table-striped table-hover align-middle">
<thead class="table-primary">
<tr>
<th scope="col" style="width: 30%;">Campo</th>
<th scope="col">Valore</th>
</tr>
</thead>
<tbody>
<!-- Codice -->
<tr>
<td class="fw-bold fs-5">
<span class="badge bg-secondary">@Html.DisplayNameFor(model => model.tccodice)</span>
</td>
<td>
@Html.HiddenFor(x => x.tccodice)
@Html.DisplayFor(model => model.tccodice)
</td>
</tr>
<!-- Descrizione -->
<tr>
<td class="fw-bold fs-5">
<span class="badge bg-secondary">@Html.DisplayNameFor(model => model.tcdescri)</span>
</td>
<td>
<input asp-for="tcdescri" class="agy-form-field require" placeholder="Descrizione" />
<span asp-validation-for="tcdescri" class="text-danger"></span>
</td>
</tr>
<!-- Telefono -->
<tr>
<td class="fw-bold fs-5">
<span class="badge bg-secondary">@Html.DisplayNameFor(model => model.tctelef1)</span>
</td>
<td>
<input asp-for="tctelef1" class="agy-form-field require" placeholder="Telefono" />
<span asp-validation-for="tctelef1" class="text-danger"></span>
</td>
</tr>
<!-- Utente -->
<tr>
<td class="fw-bold fs-5">
<span class="badge bg-secondary">@Html.DisplayNameFor(model => model.tcuser)</span>
</td>
<td>
@Html.HiddenFor(x => x.tcuser)
@Html.DisplayFor(model => model.tcuser)
</td>
</tr>
<!-- Password -->
<tr>
<td class="fw-bold fs-5">
<span class="badge bg-secondary">@Html.DisplayNameFor(model => model.tcpwd)</span>
</td>
<td>
<input asp-for="tcpwd" class="agy-form-field require" placeholder="Password" />
<span asp-validation-for="tcpwd" class="text-danger"></span>
</td>
</tr>
<!-- Costo ordinario -->
<tr>
<td class="fw-bold fs-5">
<span class="badge bg-secondary">@Html.DisplayNameFor(model => model.tccoor)</span>
</td>
<td>
<input asp-for="tccoor" class="agy-form-field require" placeholder="Costo ordinario" />
<span asp-validation-for="tccoor" class="text-danger"></span>
</td>
</tr>
@* Campi aggiuntivi (nascosti nel layout originale) *@
<tr class="d-none">
<td colspan="2">
@Html.HiddenFor(x => x.tccono)
@Html.HiddenFor(x => x.tccost)
@Html.HiddenFor(x => x.tccofe)
</td>
</tr>
</tbody>
</table>
</div>
<div class="form-group">
<label asp-for="tcdescri" class="control-label"></label>
<input asp-for="tcdescri" class="form-control" />
<span asp-validation-for="tcdescri" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="tctelef1" class="control-label"></label>
<input asp-for="tctelef1" class="form-control" />
<span asp-validation-for="tctelef1" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="tcuser" class="control-label"></label>
<input asp-for="tcuser" class="form-control" />
<span asp-validation-for="tcuser" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="tcpwd" class="control-label"></label>
<input asp-for="tcpwd" class="form-control" />
<span asp-validation-for="tcpwd" class="text-danger"></span>
</div> *@
@*<div class="form-group">
<label asp-for="tccoor" class="control-label"></label>
<input asp-for="tccoor" class="form-control" />
<span asp-validation-for="tccoor" class="text-danger"></span>
</div>*@
@* @Html.HiddenFor(x => x.tccoor) *@
@*<div class="form-group">
<label asp-for="tccono" class="control-label"></label>
<input asp-for="tccono" class="form-control" />
<span asp-validation-for="tccono" class="text-danger"></span>
</div>*@
@* @Html.HiddenFor(x => x.tccono) *@
@*<div class="form-group">
<label asp-for="tccost" class="control-label"></label>
<input asp-for="tccost" class="form-control" />
<span asp-validation-for="tccost" class="text-danger"></span>
</div>*@
@* @Html.HiddenFor(x => x.tccost) *@
@*<div class="form-group">
<label asp-for="tccofe" class="control-label"></label>
<input asp-for="tccofe" class="form-control" />
<span asp-validation-for="tccofe" class="text-danger"></span>
</div>*@
@* @Html.HiddenFor(x => x.tccofe)
<div class="form-group">
<input type="submit" value="Salva" class="btn btn-primary" />
<div class="form-group mt-3">
<input type="submit" value="Salva" class="agy-btn submitForm" />
<a asp-action="Index" class="agy-btn submitForm">Torna alla lista</a>
</div>
</form>
@section Scripts {
@{
await Html.RenderPartialAsync("_ValidationScriptsPartial");
}
}
</div>
</div>
<div>
<a asp-action="Index">Torna indietro</a>
</div>
@section Scripts {
@{await Html.RenderPartialAsync("_ValidationScriptsPartial");}
} *@