public ActionResult AggiornaMaster(int IdSPMaster, string Codice, string Descrizione, string Task, string AreaProduzione, string Lista) { Codice = Codice.ToUpper(); Descrizione = Descrizione.ToUpper(); Task = Task.ToUpper(); AreaProduzione = AreaProduzione.ToUpper(); ElementoMaster[] elementiLista = JSonSerializer.Deserialize <ElementoMaster[]>(Lista); string messaggio = MPIntranet.Business.SchedeProcesso.SPMaster.SalvaMaster(IdSPMaster, Codice, Descrizione, AreaProduzione, Task, elementiLista, ConnectedUser.ToUpper()); return(Content(messaggio)); }
public ActionResult AggiornaSchedaProcesso(int IdSPScheda, int IdSPMaster, string Codice, string Descrizione, string Task, string AreaProduzione, string Anagrafica, string Controlli, string Obbligatori) { Codice = Codice.ToUpper(); Descrizione = Descrizione.ToUpper(); Task = Task.ToUpper(); AreaProduzione = AreaProduzione.ToUpper(); Anagrafica = Anagrafica.ToUpper(); ElementoScheda[] elementiScheda = JSonSerializer.Deserialize <ElementoScheda[]>(Controlli); ElementoScheda[] elementiObbligatoriScheda = JSonSerializer.Deserialize <ElementoScheda[]>(Obbligatori); //if (!Item.VerificaEsistenzaItem(Anagrafica)) // return Content("Scheda non salvata - Anagrafica non presente in Business Central"); string messaggio = SpScheda.SalvaScheda(IdSPScheda, IdSPMaster, Anagrafica, Codice, Descrizione, AreaProduzione, Task, elementiScheda.ToList(), elementiObbligatoriScheda.ToList(), ConnectedUser.ToUpper()); return(Content(messaggio)); }
public ActionResult AggiornaControllo(int IdSPControllo, string Codice, string Descrizione, string Tipo, string Lista) { Codice = Codice.ToUpper(); Descrizione = Descrizione.ToUpper(); Tipo = Tipo.ToUpper(); ElementoLista[] elementiLista = JSonSerializer.Deserialize <ElementoLista[]>(Lista); string messaggio = SPControllo.SalvaControllo(IdSPControllo, Codice, Descrizione, Tipo, 0, 0, 0, elementiLista, ConnectedUser.ToUpper()); return(Content(messaggio)); }