Aggiunta data osolescenza in articoli
This commit is contained in:
parent
b99fbbd77f
commit
f06dfba2cc
@ -59,7 +59,7 @@ namespace VirtualTask.Controllers
|
||||
{
|
||||
string data = response.Content.ReadAsStringAsync().Result;
|
||||
modelList = JsonConvert.DeserializeObject<List<Articoli>>(data);
|
||||
//modelList = modelList.Where(x => x.tcdatobs == null).ToList();
|
||||
modelList = modelList.Where(x => x.DataObso == null).ToList();
|
||||
|
||||
if (!string.IsNullOrEmpty(searchString))
|
||||
{
|
||||
@ -218,7 +218,7 @@ namespace VirtualTask.Controllers
|
||||
else
|
||||
{
|
||||
errMes = response.Content.ReadAsStringAsync().Result;
|
||||
helper.SetStringValue("errMsg", errMes);
|
||||
helper.SetStringValue("errMsg", errMes);
|
||||
return RedirectToAction("Error");
|
||||
}
|
||||
|
||||
@ -301,10 +301,11 @@ namespace VirtualTask.Controllers
|
||||
[HttpPost, ActionName("DeleteConfirmed")]
|
||||
public IActionResult DeleteConfirmed(string id)
|
||||
{
|
||||
SessionHelper helper = new SessionHelper(this);
|
||||
SessionHelper helper = new SessionHelper(this);
|
||||
|
||||
token = helper.GetStringValue("tok");
|
||||
|
||||
|
||||
apiUrl = helper.GetStringValue("apiUrl");
|
||||
admin = helper.GetStringValue("admin");
|
||||
ViewBag.Admin = admin;
|
||||
|
||||
@ -63,5 +63,7 @@ namespace VirtualTask.Models
|
||||
|
||||
[Display(Name = "Descrizione suppl.")]
|
||||
public string? Desc_sup { get; set; }
|
||||
public DateTime? DataObso { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@ -46,7 +46,6 @@
|
||||
<table class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th hidden>Azienda</th>
|
||||
<th>Cod. Articolo</th>
|
||||
<th>Descrizione</th>
|
||||
<th>Quantità</th>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user