chiamate
This commit is contained in:
parent
446702600b
commit
59098b1df1
@ -59,7 +59,7 @@ namespace VirtualTask.Controllers
|
|||||||
{
|
{
|
||||||
string data = response.Content.ReadAsStringAsync().Result;
|
string data = response.Content.ReadAsStringAsync().Result;
|
||||||
modelList = JsonConvert.DeserializeObject<List<Impianto>>(data);
|
modelList = JsonConvert.DeserializeObject<List<Impianto>>(data);
|
||||||
modelList = modelList.Where(s => !string.IsNullOrEmpty(s.imcodimp) && s.imcodazi.Equals(tenant2)).ToList();
|
modelList = modelList.Where(s => !string.IsNullOrEmpty(s.imcodimp) && s.imcodazi.Equals(tenant2) && s.imfinatt==null).ToList();
|
||||||
|
|
||||||
if (!string.IsNullOrEmpty(searchString))
|
if (!string.IsNullOrEmpty(searchString))
|
||||||
{
|
{
|
||||||
|
|||||||
@ -14,7 +14,7 @@ namespace VirtualTask.Models
|
|||||||
[Display(Name = "Seriale")]
|
[Display(Name = "Seriale")]
|
||||||
public string? chserial { get; set; }
|
public string? chserial { get; set; }
|
||||||
|
|
||||||
[Display(Name = "Codice esercizio")]
|
[Display(Name = "Anno esercizio")]
|
||||||
public string? chcodese { get; set; }
|
public string? chcodese { get; set; }
|
||||||
|
|
||||||
[Display(Name = "Tipo")]
|
[Display(Name = "Tipo")]
|
||||||
@ -26,6 +26,7 @@ namespace VirtualTask.Models
|
|||||||
|
|
||||||
[Display(Name = "Data")]
|
[Display(Name = "Data")]
|
||||||
[DisplayFormat(DataFormatString = "{0:dd/MM/yyyy}")]
|
[DisplayFormat(DataFormatString = "{0:dd/MM/yyyy}")]
|
||||||
|
|
||||||
public DateTime? chdata { get; set; }
|
public DateTime? chdata { get; set; }
|
||||||
|
|
||||||
[Display(Name = "Cod. Impianto")]
|
[Display(Name = "Cod. Impianto")]
|
||||||
|
|||||||
@ -101,5 +101,7 @@ namespace VirtualTask.Models
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public DateTime? imfinatt { get; set; }
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -60,6 +60,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<input type="submit" value="Salva" class="agy-btn submitForm" />
|
<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>
|
</div>
|
||||||
@Html.HiddenFor(x => x.chcodazi)
|
@Html.HiddenFor(x => x.chcodazi)
|
||||||
@Html.HiddenFor(x => x.chserial)
|
@Html.HiddenFor(x => x.chserial)
|
||||||
@ -81,9 +82,7 @@
|
|||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
|
||||||
<a asp-action="Index">Torna alla lista</a>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
@section Scripts {
|
@section Scripts {
|
||||||
@{
|
@{
|
||||||
|
|||||||
@ -49,13 +49,16 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-lg-6 col-md-6 col-sm-12 col-12"> </div>
|
<div class="col-lg-6 col-md-6 col-sm-12 col-12"> </div>
|
||||||
|
<div class="col-md-10">
|
||||||
<form asp-action="DeleteConfirmed">
|
<form asp-action="DeleteConfirmed">
|
||||||
<input type="submit" value="Elimina" class="agy-btn submitForm" />
|
<input type="submit" value="Elimina" class="agy-btn submitForm" />
|
||||||
<input type="hidden" id="id" value=@Html.DisplayFor(model => model.chserial) name="id" />
|
<input type="hidden" id="id" value=@Html.DisplayFor(model => model.chserial) name="id" />
|
||||||
<div>
|
|
||||||
<a asp-action="Index">Torna alla lista</a>
|
@*<a asp-action="Index">Torna alla lista</a>*@
|
||||||
</div>
|
<a asp-action="Index" value="Torna alla lista" class="agy-btn submitForm">Torna alla lista</a>
|
||||||
|
|
||||||
</form>
|
</form>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -27,7 +27,8 @@
|
|||||||
<div class="col-lg-6 col-md-6 col-sm-12 col-12"> </div>
|
<div class="col-lg-6 col-md-6 col-sm-12 col-12"> </div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<h5><label asp-for="chcodese" class="agy-client-quote"></label></h5>
|
<h5><label asp-for="chcodese" class="agy-client-quote"></label></h5>
|
||||||
<input asp-for="chcodese" class="agy-form-field require" placeholder="Esercizio" />
|
@Html.HiddenFor(x => x.chcodese)
|
||||||
|
@Html.DisplayFor(model => model.chcodese)
|
||||||
<span asp-validation-for="chcodese" class="text-danger"></span>
|
<span asp-validation-for="chcodese" class="text-danger"></span>
|
||||||
</div>
|
</div>
|
||||||
@Html.HiddenFor(x => x.chtipo)
|
@Html.HiddenFor(x => x.chtipo)
|
||||||
@ -40,7 +41,8 @@
|
|||||||
<div class="col-lg-6 col-md-6 col-sm-12 col-12"> </div>
|
<div class="col-lg-6 col-md-6 col-sm-12 col-12"> </div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<h5><label asp-for="chdata" class="agy-client-quote"></label></h5>
|
<h5><label asp-for="chdata" class="agy-client-quote"></label></h5>
|
||||||
<input asp-for="chdata" class="agy-form-field require" placeholder="Data" />
|
<input asp-for="chdata" class="agy-form-field require" placeholder="Data" />
|
||||||
|
|
||||||
<span asp-validation-for="chdata" class="text-danger"></span>
|
<span asp-validation-for="chdata" class="text-danger"></span>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-lg-6 col-md-6 col-sm-12 col-12"> </div>
|
<div class="col-lg-6 col-md-6 col-sm-12 col-12"> </div>
|
||||||
@ -89,6 +91,7 @@
|
|||||||
<div class="col-lg-6 col-md-6 col-sm-12 col-12"> </div>
|
<div class="col-lg-6 col-md-6 col-sm-12 col-12"> </div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<input type="submit" value="Salva" class="agy-btn submitForm" />
|
<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>
|
</div>
|
||||||
|
|
||||||
@Html.HiddenFor(x => x.chora)
|
@Html.HiddenFor(x => x.chora)
|
||||||
@ -141,7 +144,8 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<a asp-action="Index">Torna alla lista</a>
|
@* <a asp-action="Index">Torna alla lista</a>*@
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
@section Scripts {
|
@section Scripts {
|
||||||
@{
|
@{
|
||||||
|
|||||||
@ -92,18 +92,29 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
<td>
|
<td>
|
||||||
<a href="@Url.Action("Edit", "Chiamate", new { id=item.chserial })" title="Modifica" class="links">
|
@{
|
||||||
<img alt="Modifica" src="@Url.Content("~/assets/images/icons8-modificare-64.png")" style="width:30px;height:30px;">
|
string _url_edit = @Url.Action("Edit", "Chiamate", new { id = item.chserial });
|
||||||
</a>
|
|
||||||
|
|
if (string.IsNullOrEmpty(item.ic) || string.IsNullOrEmpty(item.ser_buono_chiu))
|
||||||
|
{
|
||||||
|
<a href="@_url_edit" title="Modifica" class="links">
|
||||||
|
<img alt="Modifica" src="~/assets/images/icons8-modificare-64.png" style="width:30px;height:30px;">
|
||||||
|
</a>
|
||||||
|
}
|
||||||
|
}
|
||||||
<a href="@Url.Action("Details", "Chiamate", new { id=item.chserial })" title="Dettaglio" class="links" >
|
<a href="@Url.Action("Details", "Chiamate", new { id=item.chserial })" title="Dettaglio" class="links" >
|
||||||
<img alt="Dettaglio" src="@Url.Content("~/assets/images/icons8-visualizza-file-64.png")" style="width:30px;height:30px;">
|
<img alt="Dettaglio" src="@Url.Content("~/assets/images/icons8-visualizza-file-64.png")" style="width:30px;height:30px;">
|
||||||
</a>
|
</a>
|
||||||
|
|
@{
|
||||||
<a href="@Url.Action("Delete", "Chiamate", new { id=item.chserial })" title="Elimina" class="links" >
|
string _url_del = @Url.Action("Delete", "Chiamate", new { id = item.chserial });
|
||||||
<img alt="Elimina" src="@Url.Content("~/assets/images/icons8-elimina-50.png")" style="width:30px;height:30px;">
|
|
||||||
</a>
|
|
||||||
|
|
||||||
|
if (string.IsNullOrEmpty(item.ic) || string.IsNullOrEmpty(item.ser_buono_chiu))
|
||||||
|
{
|
||||||
|
<a href="@_url_del" title="Elimina" class="links">
|
||||||
|
<img alt="Elimina" src="~/assets/images/icons8-elimina-50.png" style="width:30px;height:30px;">
|
||||||
|
</a>
|
||||||
|
}
|
||||||
|
}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
}
|
}
|
||||||
|
|||||||
@ -13,7 +13,7 @@
|
|||||||
|
|
||||||
//TEST
|
//TEST
|
||||||
"rootUrlApi": "http://testapi.poloinformatico.it:9001/api/Polo/",
|
"rootUrlApi": "http://testapi.poloinformatico.it:9001/api/Polo/",
|
||||||
"rootWebLoghi": "C:\\SORGENTI\\_publish\\wwwroot\\VIRTU\\",
|
"rootWebLoghi": "C:\\SORGENTI\\ApiPolo\\ApiPolo\\wwwroot\\VIRTU\\",
|
||||||
"rootUrlApi2": "http://testapi.poloinformatico.it:9001/VIRTU/",
|
"rootUrlApi2": "http://testapi.poloinformatico.it:9001/VIRTU/",
|
||||||
|
|
||||||
"mittenteMail": "info@virtualtask.it",
|
"mittenteMail": "info@virtualtask.it",
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user