modifiche per impedire cancellazione della commessa generica
This commit is contained in:
parent
84beb51404
commit
dacd064324
@ -193,6 +193,7 @@ namespace VirtualTask.Controllers
|
|||||||
anagCommImp.comm.ladeslav = "COMM_GEN_" + model.ancodice;
|
anagCommImp.comm.ladeslav = "COMM_GEN_" + model.ancodice;
|
||||||
anagCommImp.comm.lacodcli = model.ancodice;
|
anagCommImp.comm.lacodcli = model.ancodice;
|
||||||
anagCommImp.comm.lacodimp = anagCommImp.imp.imcodimp;
|
anagCommImp.comm.lacodimp = anagCommImp.imp.imcodimp;
|
||||||
|
anagCommImp.comm.lacomgen = "S";
|
||||||
|
|
||||||
string data = JsonConvert.SerializeObject(anagCommImp);
|
string data = JsonConvert.SerializeObject(anagCommImp);
|
||||||
StringContent content = new StringContent(data, Encoding.UTF8, "application/json");
|
StringContent content = new StringContent(data, Encoding.UTF8, "application/json");
|
||||||
|
|||||||
@ -1,4 +1,6 @@
|
|||||||
namespace VirtualTask.Models
|
using System.ComponentModel.DataAnnotations;
|
||||||
|
|
||||||
|
namespace VirtualTask.Models
|
||||||
{
|
{
|
||||||
//CLASSE PER LA LISTA
|
//CLASSE PER LA LISTA
|
||||||
public class CommesseVT
|
public class CommesseVT
|
||||||
@ -37,5 +39,7 @@
|
|||||||
public string? imcodcap { get; set; }
|
public string? imcodcap { get; set; }
|
||||||
/// <summary>provincia</summary>
|
/// <summary>provincia</summary>
|
||||||
public string? improvin { get; set; }
|
public string? improvin { get; set; }
|
||||||
|
/// <summary>flag commessa generica cliente</summary>
|
||||||
|
public string? lacomgen { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -33,5 +33,9 @@ namespace VirtualTask.Models
|
|||||||
[Display(Name = "Cod. Impianto")]
|
[Display(Name = "Cod. Impianto")]
|
||||||
public string? lacodimp { get; set; }
|
public string? lacodimp { get; set; }
|
||||||
|
|
||||||
|
[Display(Name = "Commessa cliente generica")]
|
||||||
|
[StringLength(1)]
|
||||||
|
public string? lacomgen { get; set; }
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -31,6 +31,7 @@ namespace VirtualTask.Models
|
|||||||
public string? seriale_commessa { get; set; }
|
public string? seriale_commessa { get; set; }
|
||||||
|
|
||||||
[Display(Name = "DATA RAPPORTINO")]
|
[Display(Name = "DATA RAPPORTINO")]
|
||||||
|
[DisplayFormat(DataFormatString = "{0:dd/MM/yyyy}")]
|
||||||
public DateTime data_rapportino { get; set; }
|
public DateTime data_rapportino { get; set; }
|
||||||
|
|
||||||
[Display(Name = "ORA INIZIO")]
|
[Display(Name = "ORA INIZIO")]
|
||||||
|
|||||||
@ -45,6 +45,9 @@
|
|||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
<b>@Html.DisplayNameFor(model => model.lacodimp)</b> @Html.DisplayFor(model => model.lacodimp)
|
<b>@Html.DisplayNameFor(model => model.lacodimp)</b> @Html.DisplayFor(model => model.lacodimp)
|
||||||
</div>
|
</div>
|
||||||
|
<div class="col-md-10">
|
||||||
|
<b>@Html.DisplayNameFor(model => model.lacomgen)</b> @Html.DisplayFor(model => model.lacomgen)
|
||||||
|
</div>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<a asp-action="Index" value="Torna alla lista" class="agy-btn submitForm">Torna alla lista</a>
|
<a asp-action="Index" value="Torna alla lista" class="agy-btn submitForm">Torna alla lista</a>
|
||||||
|
|||||||
@ -109,14 +109,22 @@
|
|||||||
<a href="@Url.Action("Edit", "CommesseVT", new { id=item.laserial })" title="Modifica" class="links">
|
<a href="@Url.Action("Edit", "CommesseVT", new { id=item.laserial })" title="Modifica" class="links">
|
||||||
<img alt="Modifica" src="@Url.Content("~/assets/images/icons8-modificare-64.png")" style="width:30px;height:30px;">
|
<img alt="Modifica" src="@Url.Content("~/assets/images/icons8-modificare-64.png")" style="width:30px;height:30px;">
|
||||||
</a>
|
</a>
|
||||||
|
|
|
||||||
<a href="@Url.Action("Details", "CommesseVT", new { id=item.laserial })" title="Dettaglio" class="links">
|
<a href="@Url.Action("Details", "CommesseVT", new { id=item.laserial })" 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", "CommesseVT", new { id=item.laserial })" title="Elimina" class="links">
|
string _url_del = @Url.Action("Delete", "CommesseVT", new { id = item.laserial });
|
||||||
<img alt="Elimina" src="@Url.Content("~/assets/images/icons8-elimina-50.png")" style="width:30px;height:30px;">
|
string flagComGen = string.Empty;
|
||||||
</a>
|
flagComGen = string.IsNullOrEmpty(item.lacomgen) ? "N" : item.lacomgen;
|
||||||
|
|
||||||
|
if (!flagComGen.Equals("S"))
|
||||||
|
{
|
||||||
|
<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>
|
||||||
}
|
}
|
||||||
|
|||||||
@ -7,14 +7,14 @@
|
|||||||
},
|
},
|
||||||
"ApplicationInsights": {
|
"ApplicationInsights": {
|
||||||
//PRODUZIONE
|
//PRODUZIONE
|
||||||
"rootUrlApi": "https://api.poloinformatico.it:9000/api/Polo/",
|
//"rootUrlApi": "https://api.poloinformatico.it:9000/api/Polo/",
|
||||||
"rootWebLoghi": "C:\\ZAPIPOLO\\api_polo\\wwwroot\\VIRTU\\",
|
//"rootWebLoghi": "C:\\ZAPIPOLO\\api_polo\\wwwroot\\VIRTU\\",
|
||||||
"rootUrlApi2": "https://api.poloinformatico.it:9000/VIRTU/",
|
//"rootUrlApi2": "https://api.poloinformatico.it:9000/VIRTU/",
|
||||||
|
|
||||||
//TEST
|
//TEST
|
||||||
//"rootUrlApi": "http://testapi.poloinformatico.it:9001/api/Polo/",
|
"rootUrlApi": "http://testapi.poloinformatico.it:9001/api/Polo/",
|
||||||
//"rootWebLoghi": "C:\\SORGENTI\\ApiPolo\\ApiPolo\\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",
|
||||||
"nomeMail": "Supporto Virtual Task",
|
"nomeMail": "Supporto Virtual Task",
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user