This commit is contained in:
Marco Audiffredi 2023-10-19 12:18:12 +02:00
parent 4cb6fc7ddf
commit ed1d9f5818
5 changed files with 23 additions and 5 deletions

View File

@ -351,7 +351,7 @@ namespace VirtualTask.Controllers
SessionHelper helper = new SessionHelper(this);
token = helper.GetStringValue("tok");
apiUrl = helper.GetStringValue("apiUrl");
urlBase = apiUrl + "impiantiList";
urlBase = apiUrl + "impiantiListMngr";
urlBase = urlBase + "?token=" + token;
Uri baseAddress = new Uri(urlBase);
client = new HttpClient();

View File

@ -56,5 +56,7 @@ namespace VirtualTask.Models
[Display(Name = "DATA CANCELLAZIONE")]
/// <summary> cliente eliminato </summary>
public DateTime? andtobso { get; set; }
}
}

View File

@ -49,6 +49,16 @@ namespace VirtualTask.Models
[Display(Name = "STATO")]
public string? chstato { get; set; }
[Display(Name = "Rifiutata")]
public string? rif { get; set; }
[Display(Name = "In carico")]
public string? ic { get; set; }
[Display(Name = "Chiuso")]
public string? ser_buono_chiu { get; set; }
#region non visualizzati
public int? chora { get; set; }
public int? chmin { get; set; }

View File

@ -40,12 +40,12 @@
</div>
<div class="form-group">
<label asp-for="chcodimp" class="control-label"></label>
<input asp-for="chcodimp" class="form-control" />
@Html.DropDownListFor(x => x.chcodimp,(IEnumerable<SelectListItem>)ViewBag.Impianti, new {@class = "form-control"})
<span asp-validation-for="chcodimp" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="chtchiam" class="control-label"></label>
<input asp-for="chtchiam" class="form-control" />
@Html.DropDownListFor(x => x.chtchiam,(IEnumerable<SelectListItem>)ViewBag.Tecnici, new {@class = "form-control"})
<span asp-validation-for="chtchiam" class="text-danger"></span>
</div>
<div class="form-group">
@ -65,7 +65,7 @@
</div>
<div class="form-group">
<label asp-for="chcodseg" class="control-label"></label>
<input asp-for="chcodseg" class="form-control" />
@Html.DropDownListFor(x => x.chcodseg,(IEnumerable<SelectListItem>)ViewBag.CodiciSegnalazione, new {@class = "form-control"})
<span asp-validation-for="chcodseg" class="text-danger"></span>
</div>
<div class="form-group">
@ -73,6 +73,7 @@
<input asp-for="chnote" class="form-control" />
<span asp-validation-for="chnote" class="text-danger"></span>
</div>
@Html.HiddenFor(x => x.chora)
@Html.HiddenFor(x => x.chmin)
@Html.HiddenFor(x => x.chopins)

View File

@ -29,6 +29,9 @@
<th>Impianto</th>
<th>Tecnico</th>
<th>Stato</th>
<th>R</th>
<th>IC</th>
<th>C</th>
<th></th>
</tr>
</thead>
@ -57,7 +60,9 @@
</td>
<td>@Html.DisplayFor(modelItem => item.chstato) - @Html.DisplayFor(modelItem => item.descStato)</td>
<td>@Html.DisplayFor(modelItem => item.rif)</td>
<td>@Html.DisplayFor(modelItem => item.ic)</td>
<td>@Html.DisplayFor(modelItem => item.ser_buono_chiu)</td>
<td>
@Html.ActionLink("Modifica", "Edit", new { id=item.chserial }) |