diff --git a/MP-IO/Controllers/IOBController.cs b/MP-IO/Controllers/IOBController.cs index 257c52e3..591352c7 100644 --- a/MP-IO/Controllers/IOBController.cs +++ b/MP-IO/Controllers/IOBController.cs @@ -1,9 +1,11 @@ -using MapoDb; +using MagData; +using MapoDb; using MapoSDK; using Newtonsoft.Json; using SteamWare; using System; using System.Collections.Generic; +using System.Globalization; using System.IO; using System.Web.Mvc; @@ -71,6 +73,31 @@ namespace MP_IO.Controllers return answ; } + /// + /// Chiude ODL x macchina: + /// + /// GET: IOB/closeODL/SIMUL_03?idxOdl=123 + /// + /// id macchina + /// idx dell'ODL da chiudere + /// bool esecuzione + public bool closeODL(string id, int idxOdl) + { + bool answ = false; + + // init obj DataLayer + DataLayer DataLayerObj = new DataLayer(); + try + { + // recupero dati macchina... + DataLayerObj.taODL.forceClose(idxOdl, id); + answ = true; + } + catch + { } + return answ; + } + // GET: IOB/enabled/SIMUL_03 public string enabled(string id) { @@ -167,6 +194,46 @@ namespace MP_IO.Controllers return answ; } + /// + /// Sistema ODL giornalieri x impianto indicato, andando a generare 1 ODL giornaliero x ogni + /// giornata dall'ultimo ODL aperto alla data corrente + /// es: http://url_site/MP/IO/IOB/fixDailyOdl/SIMUL_03 + /// + /// + /// + public string fixDailyOdl(string id) + { + string answ = ""; + // attenzione! poiché nell'URL il carattere "#" viene filtrato ci aspettiamo il + // carattere "|" che poi trasformiamo ora in "#" + id = id.Replace("|", "#"); + // chiamo metodo redis/db... + try + { + DataLayer DataLayerObj = new DataLayer(); + // recupero ultimo ODL macchina... + var lastOdlStarted = DataLayerObj.taODL.getLastByMacc(id); + if (lastOdlStarted != null && lastOdlStarted.Count > 0) + { + // calcolo data ultimo avviato e cheido dal giorno dopo... + DateTime dtFrom = lastOdlStarted[0].DataInizio.AddDays(1); + DateTime dtTo = DateTime.Today; + if (dtTo >= dtFrom) + { + string codArt = lastOdlStarted[0].CodArticolo; + // chiamo la stored x sistemare gli ODL + DataLayerObj.taODL.AutoDayGener(id, dtFrom, dtTo, codArt); + } + answ = "OK"; + } + } + catch (Exception exc) + { + logger.lg.scriviLog($"Eccezione in recupero fixDailyOdl{Environment.NewLine}{exc}", tipoLog.EXCEPTION); + } + return answ; + } + // GET: IOB/flog/SIMUL_03?flux=PROG&valore=P0001&dtEve=20161223180600000&dtCurr=20161223180600000&cnt=999 public string flog(string id, string flux, string valore, string dtEve, string dtCurr, string cnt) { @@ -320,7 +387,7 @@ namespace MP_IO.Controllers /// Esito chiamata (OK/vuoto) public string forceSplitOdl(string id) { - // attenzione! poiché nell'URL il carattere "#" fiene filtrato ci aspettiamo il + // attenzione! poiché nell'URL il carattere "#" viene filtrato ci aspettiamo il // carattere "|" che poi trasformiamo ora in "#" id = id.Replace("|", "#"); DataLayer DataLayerObj = new DataLayer(); @@ -338,7 +405,7 @@ namespace MP_IO.Controllers /// Esito chiamata (OK/vuoto) public string forceSplitOdlFull(string id, bool doConfirm, bool qtyFromLast, int? roundStep, string keyRichiesta = "") { - // attenzione! poiché nell'URL il carattere "#" fiene filtrato ci aspettiamo il + // attenzione! poiché nell'URL il carattere "#" viene filtrato ci aspettiamo il // carattere "|" che poi trasformiamo ora in "#" id = id.Replace("|", "#"); DataLayer DataLayerObj = new DataLayer(); @@ -349,6 +416,74 @@ namespace MP_IO.Controllers return DataLayerObj.AutoStartOdl(id, doConfirm, qtyFromLast, (int)roundStep, keyRichiesta); } + /// + /// Avvia PODL indicato + /// - se esistesse un ODL da altro PODL --> chiude + /// - se fosse già in essere ODL collegato --> lascia aperto + /// - se fosse chiuso ODL collegato --> duplica PODL e poi avvia nuovo ODL. + /// + /// GET: IOB/forceStartPOdl/SIMUL_03?idxPODL=123 + /// + /// + /// idx del PDL da avviare + /// Esito chiamata (OK/vuoto) + public string forceStartPOdl(string id, int idxPODL) + { + // attenzione! poiché nell'URL il carattere "#" viene filtrato ci aspettiamo il + // carattere "|" che poi trasformiamo ora in "#" + id = id.Replace("|", "#"); + DataLayer DataLayerObj = new DataLayer(); + return DataLayerObj.ForceStartPOdl(id, idxPODL, true); + } + + /// + /// Recupera elenco articoli dei PODL correnti: + /// + /// GET: IOB/getArtCurrPODL + /// + /// Json contenente lista oggetti ARTICOLI serializzati + public string getArtCurrPODL() + { + string answ = ""; + + // init obj DataLayer + DataLayer DataLayerObj = new DataLayer(); + try + { + // recupero dati macchina... + var elencoArt = DataLayerObj.taAnagArt.getByCurrPODL(); + + answ = JsonConvert.SerializeObject(elencoArt); + } + catch + { } + return answ; + } + + /// + /// Recupera elenco articoli USATI: + /// + /// GET: IOB/getArtUsed + /// + /// Json contenente lista oggetti ARTICOLI serializzati + public string getArtUsed() + { + string answ = ""; + + // init obj DataLayer + DataLayer DataLayerObj = new DataLayer(); + try + { + // recupero dati macchina... + var elencoArt = DataLayerObj.taAnagArt.getUsed(); + + answ = JsonConvert.SerializeObject(elencoArt); + } + catch + { } + return answ; + } + /// /// Recupera COUNTER x macchina: /// @@ -404,7 +539,7 @@ namespace MP_IO.Controllers /// Json contenente la riga di stato macchina public string getCurrData(string id) { - // attenzione! poiché nell'URL il carattere "#" fiene filtrato ci aspettiamo il + // attenzione! poiché nell'URL il carattere "#" viene filtrato ci aspettiamo il // carattere "|" che poi trasformiamo ora in "#" id = id.Replace("|", "#"); string answ = ""; @@ -457,7 +592,7 @@ namespace MP_IO.Controllers /// public string getCurrOdlRow(string id) { - // attenzione! poiché nell'URL il carattere "#" fiene filtrato ci aspettiamo il + // attenzione! poiché nell'URL il carattere "#" viene filtrato ci aspettiamo il // carattere "|" che poi trasformiamo ora in "#" id = id.Replace("|", "#"); string answ = ""; @@ -484,7 +619,7 @@ namespace MP_IO.Controllers /// public string getCurrOdlStart(string id) { - // attenzione! poiché nell'URL il carattere "#" fiene filtrato ci aspettiamo il + // attenzione! poiché nell'URL il carattere "#" viene filtrato ci aspettiamo il // carattere "|" che poi trasformiamo ora in "#" id = id.Replace("|", "#"); DateTime answ = new DateTime(DateTime.Now.Year - 1, 12, 31); @@ -506,6 +641,36 @@ namespace MP_IO.Controllers return answ.ToString("yyyy-MM-dd HH:mm:ss"); } + /// + /// Recupera DATI PODL correnti x macchina: + /// + /// GET: IOB/getCurrPODL/SIMUL_03 + /// + /// id macchina, se "" mostra tutto + /// Json contenente lista oggetti PODL serializzati + public string getCurrPODL(string id) + { + // attenzione! poiché nell'URL il carattere "#" viene filtrato ci aspettiamo il + // carattere "|" che poi trasformiamo ora in "#" + if (!string.IsNullOrEmpty(id)) + { + id = id.Replace("|", "#"); + } + string answ = ""; + + // init obj DataLayer + DataLayer DataLayerObj = new DataLayer(); + try + { + // recupero dati macchina... + var elencoOdl = DataLayerObj.taPODL.getByMaccArt(id, "", "", true); + answ = JsonConvert.SerializeObject(elencoOdl); + } + catch + { } + return answ; + } + /// /// Restituisce intera riga dello stato di macchina... /// GET: IOB/getCurrStatoRow/SIMUL_01 @@ -514,7 +679,7 @@ namespace MP_IO.Controllers /// public string getCurrStatoRow(string id) { - // attenzione! poiché nell'URL il carattere "#" fiene filtrato ci aspettiamo il + // attenzione! poiché nell'URL il carattere "#" viene filtrato ci aspettiamo il // carattere "|" che poi trasformiamo ora in "#" id = id.Replace("|", "#"); string answ = ""; @@ -582,7 +747,7 @@ namespace MP_IO.Controllers /// public int getIdlePeriod(string id) { - // attenzione! poiché nell'URL il carattere "#" fiene filtrato ci aspettiamo il + // attenzione! poiché nell'URL il carattere "#" viene filtrato ci aspettiamo il // carattere "|" che poi trasformiamo ora in "#" id = id.Replace("|", "#"); int answ = 0; @@ -634,6 +799,150 @@ namespace MP_IO.Controllers return answ; } + /// + /// Recupera elenco articoli USATI per ultimi: + /// - quelli dei PODL correnti + /// - quelli degli ultimi n (DOSS_LastArt in config) ODL lavorati + /// + /// GET: IOB/getArtByMacc + /// + /// Json contenente lista oggetti ARTICOLI serializzati + public string getLastArtByMacc(string id) + { + string answ = ""; + + // init obj DataLayer + DataLayer DataLayerObj = new DataLayer(); + try + { + // recupero dati macchina... + var elencoArt = DataLayerObj.taAnagArt.getLastByMacc(id); + + answ = JsonConvert.SerializeObject(elencoArt); + } + catch + { } + return answ; + } + + /// + /// Recupera DATI dell'ultimo dossier dato articolo: + /// + /// GET: IOB/getLastDossArt/cod_articolo + /// + /// codice articolo, se vuoto --> non fa nulla + /// Json contenente lista oggetti DOSSIER serializzati + public string getLastDossArt(string id) + { + string answ = ""; + // attenzione! poiché nell'URL il carattere "#" viene filtrato ci aspettiamo il + // carattere "|" che poi trasformiamo ora in "#" + if (string.IsNullOrEmpty(id)) + { + answ = "N.A."; + } + else + { + id = id.Replace("|", "#"); + + // init obj DataLayer + DataLayer DataLayerObj = new DataLayer(); + try + { + // recupero dati macchina... + var elencoDoss = DataLayerObj.taDOSS.getLastByArt(id); + + answ = JsonConvert.SerializeObject(elencoDoss); + } + catch + { } + } + return answ; + } + + /// + /// Recupera DATI dell'ultimo dossier dato articolo: + /// + /// GET: IOB/getLastDossArt/cod_articolo + /// + /// codice articolo, se vuoto --> non fa nulla + /// Json contenente lista oggetti DOSSIER serializzati + public string getLastDossByMacc(string id) + { + string answ = ""; + // attenzione! poiché nell'URL il carattere "#" viene filtrato ci aspettiamo il + // carattere "|" che poi trasformiamo ora in "#" + if (string.IsNullOrEmpty(id)) + { + answ = "N.A."; + } + else + { + id = id.Replace("|", "#"); + + // init obj DataLayer + DataLayer DataLayerObj = new DataLayer(); + try + { + // recupero dati macchina... + var elencoDoss = DataLayerObj.taDOSS.getLastByMacc(id); + + answ = JsonConvert.SerializeObject(elencoDoss); + } + catch + { } + } + return answ; + } + + /// + /// Recupera DATI dell'ultimo dossier dato PODL correnti: + /// + /// GET: IOB/getLastDossPODL + /// + /// Json contenente lista oggetti DOSSIER serializzati + public string getLastDossPODL() + { + string answ = ""; + + // init obj DataLayer + DataLayer DataLayerObj = new DataLayer(); + try + { + // recupero dati macchina... + var elencoDoss = DataLayerObj.taDOSS.getLastByPODL(); + + answ = JsonConvert.SerializeObject(elencoDoss); + } + catch + { } + return answ; + } + + /// + /// Recupera elenco ListValues data tabella: + /// + /// GET: IOB/getListValByTable + /// + /// nome tabella x cui filtrare risultati, se "" mostra tutto + /// Json contenente lista oggetti ListValue serializzati + public string getListValByTable(string id) + { + string answ = ""; + + // init obj DataLayer + DataLayer DataLayerObj = new DataLayer(); + try + { + // recupero dati macchina... + var elencoOdl = DataLayerObj.taListVal.getByTableField(id, "*"); + answ = JsonConvert.SerializeObject(elencoOdl); + } + catch + { } + return answ; + } + /// /// Restituisce dati di associazione tra macchina, device IOB chiamante e sue info /// @@ -739,6 +1048,71 @@ namespace MP_IO.Controllers return answ; } + /// + /// Recupera ODL x macchina e data, se + di 1 quello di durata maggiore: + /// + /// GET: IOB/getOdlAtDate/SIMUL_03 + /// + /// IdxMacchina + /// DataRiferimento, formato yyyyMMdd (8 cifre) + /// + public string getOdlAtDate(string id, string dateRif) + { + string answ = ""; + // attenzione! poiché nell'URL il carattere "#" viene filtrato ci aspettiamo il + // carattere "|" che poi trasformiamo ora in "#" + id = id.Replace("|", "#"); + // converto la data in formato dateTime... e ottengo intervallo data indicata da + // mezzanotte a 23:59:59... + CultureInfo provider = CultureInfo.InvariantCulture; + DateTime dtFrom = DateTime.Today; + bool fatto = DateTime.TryParseExact(dateRif, "yyyyMMdd", provider, DateTimeStyles.None, out dtFrom); + if (fatto) + { + // data fine giorno dopo + DateTime dtTo = dtFrom.AddDays(1); + // cerco ODL alla data (validi) + DataLayer DataLayerObj = new DataLayer(); + DS_ProdTempi.ODLDataTable odlList = DataLayerObj.taODL.getByMacchinaPeriodoNoNull(id, dtFrom, dtTo); + // se non trovo aumento ricerca all'indietro... + int maxTry = 14; + while (odlList.Count == 0 && maxTry > 0) + { + dtFrom = dtFrom.AddDays(-1); + odlList = DataLayerObj.taODL.getByMacchinaPeriodoNoNull(id, dtFrom, dtTo); + maxTry++; + } + int idxOdl = 0; + // se > 1 --> prendo il + durevole + if (odlList.Count > 1) + { + double maxPeriod = 0; + foreach (var item in odlList) + { + DateTime dtStart = item.DataInizio > dtFrom ? item.DataInizio : dtFrom; + DateTime dtEnd = item.DataFine < dtTo ? item.DataFine : dtTo; + double currPeriod = dtEnd.Subtract(dtStart).TotalMinutes; + if (currPeriod > maxPeriod) + { + maxPeriod = currPeriod; + idxOdl = item.IdxODL; + } + } + } + else if (odlList.Count == 1) + { + idxOdl = odlList[0].IdxODL; + } + else + { + // cerco ODL prendendo qualche gg prima... + } + // conversione! + answ = $"{idxOdl}"; + } + return answ; + } + /// /// Recupera TASK richiesto x macchina: /// @@ -926,6 +1300,7 @@ namespace MP_IO.Controllers if (content != "") { DataLayer DataLayerObj = new DataLayer(); + MagDataLayer DataLayerMagObj = new MagDataLayer(); // deserializzo come un dictionary generico di oggetti rawDataType/string List receivedData = new List(); // procedo a deserializzare in blocco l'oggetto... @@ -948,7 +1323,6 @@ namespace MP_IO.Controllers { // per ora salvo su REDIS ultimo x tipo DataLayerObj.lastRawTrasfData = JsonConvert.SerializeObject(item.mesContent); - //DataLayerObj.lastRawTrasfData = item.mesContent; // !!! FixMe ToDo fare deserializzazione e salvataggio su MongoDB // salvataggio su tab RawTrasf su DB IS @@ -956,15 +1330,36 @@ namespace MP_IO.Controllers // in base al tipo processo... switch (item.mesType) { - case rawTransfType.ND: - break; - case rawTransfType.IcoelBatch: break; case rawTransfType.IcoelVarInfo: break; + case rawTransfType.RegGiacenze: + // elenco ODL da svuotare preventivamente x insert... + List listOdl = new List(); + // processo scrittura giacenze... processo 1:1 record di RegGiacenze + List recData = new List(); + foreach (var singleRow in item.mesContent) + { + var listGiac = JsonConvert.DeserializeObject(singleRow.Value.ToString()); + recData.Add(listGiac); + if (!listOdl.Contains(listGiac.IdxODL)) + { + listOdl.Add(listGiac.IdxODL); + } + } + // svuoto le giacenze degli ODL oggetto di import... + bool fatto = DataLayerMagObj.resetRegGiacByOdl(listOdl); + if (fatto) + { + // invio x salvare + fatto = DataLayerMagObj.salvaRegGiac(recData); + } + break; + + case rawTransfType.ND: default: break; } @@ -1035,7 +1430,7 @@ namespace MP_IO.Controllers } else { - logger.lg.scriviLog($"remTask2Exe: impossibile riconoscere il comando {taskName} come uno deitipi ammessi, NON aggiunto", tipoLog.ERROR); + logger.lg.scriviLog($"remTask2Exe: impossibile riconoscere il comando {taskName} come uno dei tipi ammessi, NON rimosso", tipoLog.ERROR); } answ = getTask2Exe(id); } @@ -1442,23 +1837,17 @@ namespace MP_IO.Controllers return answ; } - //[HttpPost] - //public string takeFlogSnapshot(string id, int maxSec) - //{ - // string answ = ""; - // string caller = "takeFlogSnapshot(id)"; - - // answ = doSaveFLSnapshot(id, maxSec, caller); - // return answ; - //} - - [HttpPost] + // GET: IOB/takeFlogSnapshot/SIMUL_03 public string takeFlogSnapshot(string id) { string answ = ""; - string caller = "takeFlogSnapshot(id)"; + string caller = $"takeFlogSnapshot({id})"; - answ = doSaveFLSnapshot(id, 10, caller); + DateTime adesso = DateTime.Now; + DateTime dtEnd = adesso; + DateTime dtStart = adesso.AddDays(-1); + //effettuo chiamata! + answ = doSaveFLSnapshot(id, dtStart, dtEnd, caller); return answ; } @@ -1666,18 +2055,18 @@ namespace MP_IO.Controllers /// /// /// - private static string doSaveFLSnapshot(string id, int maxSec, string caller) + private static string doSaveFLSnapshot(string id, DateTime dtStart, DateTime dtEnd, string caller) { string answ; DateTime dataOraEvento = DateTime.Now; if (memLayer.ML.CRI("_logLevel") > 6) { - logger.lg.scriviLog($"{caller} | Richiesta snapshot dati FluxLog macchina: idxMacchina: {id} ", tipoLog.INFO); + logger.lg.scriviLog($"{caller} | Richiesta snapshot dati FluxLog macchina: idxMacchina: {id} | periodo: {dtStart} - {dtEnd}", tipoLog.INFO); } try { DataLayer DataLayerObj = new DataLayer(); - answ = DataLayerObj.takeFlogSnapshot(id, maxSec); + answ = DataLayerObj.takeFlogSnapshotLast(id, dtStart, dtEnd); } catch (Exception exc) { diff --git a/MP-IO/MP-IO.csproj b/MP-IO/MP-IO.csproj index fdc7116a..c0d9166c 100644 --- a/MP-IO/MP-IO.csproj +++ b/MP-IO/MP-IO.csproj @@ -385,6 +385,10 @@ + + {973245E4-02C0-4ED1-A81B-1727C5F4CA59} + MagData + {4617a665-d6e3-4ceb-a689-ce2eecd45713} MapoDb diff --git a/MP-IO/Web.config b/MP-IO/Web.config index 290d86fe..695bcb77 100644 --- a/MP-IO/Web.config +++ b/MP-IO/Web.config @@ -35,7 +35,8 @@ - + + diff --git a/MP-TAB/Allarmi.aspx.cs b/MP-TAB/Allarmi.aspx.cs index 81e88f3e..f7caa30a 100644 --- a/MP-TAB/Allarmi.aspx.cs +++ b/MP-TAB/Allarmi.aspx.cs @@ -1,33 +1,20 @@ using System; -using System.Collections.Generic; -using System.Linq; -using System.Web; using System.Web.UI; -using System.Web.UI.WebControls; namespace MoonProTablet { public partial class Allarmi : System.Web.UI.Page { + #region Protected Methods + protected void Page_Load(object sender, EventArgs e) { -#if false - mod_controlliProd.eh_newVal += Mod_controlliProd_eh_newVal; - mod_controlliProd.eh_reset += Mod_controlliProd_eh_reset; -#endif + if (!Page.IsPostBack) + { + mod_dettMacchina1.doUpdate(); + } } -#if false - private void Mod_controlliProd_eh_reset(object sender, EventArgs e) - { - mod_elencoControlli.doUpdate(); - } - - private void Mod_controlliProd_eh_newVal(object sender, EventArgs e) - { - // ricarica pagina... - Response.Redirect(devicesAuthProxy.pagCorrente); - } -#endif + #endregion Protected Methods } } \ No newline at end of file diff --git a/MP-TAB/Commenti.aspx.cs b/MP-TAB/Commenti.aspx.cs index 3e999451..3113b4a1 100644 --- a/MP-TAB/Commenti.aspx.cs +++ b/MP-TAB/Commenti.aspx.cs @@ -4,6 +4,38 @@ namespace MoonProTablet { public partial class Commenti : BasePage { + #region Public Methods + + public override void Dispose() + { + mod_insComm1.eh_newVal -= mod_insComm1_eh_newVal; + mod_insComm1.eh_reset -= mod_insComm1_eh_reset; + mod_insComm1.eh_inserting -= mod_insComm1_eh_inserting; + mod_commenti1.eh_reqEdit -= mod_commenti1_eh_reqEdit; + mod_fermate1.eh_reqEdit -= mod_fermate1_eh_reqEdit; + base.Dispose(); + } + + #endregion Public Methods + + #region Protected Methods + + protected void Page_Load(object sender, EventArgs e) + { + if (!Page.IsPostBack) + { + mod_dettMacchina1.doUpdate(); + } + Session["TipoLink"] = "EditMacch"; + mod_insComm1.eh_newVal += mod_insComm1_eh_newVal; + mod_insComm1.eh_reset += mod_insComm1_eh_reset; + mod_insComm1.eh_inserting += mod_insComm1_eh_inserting; + mod_commenti1.eh_reqEdit += mod_commenti1_eh_reqEdit; + mod_fermate1.eh_reqEdit += mod_fermate1_eh_reqEdit; + } + + #endregion Protected Methods + #region Private Methods /// @@ -34,7 +66,8 @@ namespace MoonProTablet private void mod_fermate1_eh_reqEdit(object sender, EventArgs e) { - // avendo in sessione inizio fermata DEVO andare a pagina DichFermi, in modalità "ritroso", precompilare data/ora ed eventuale descizione... + // avendo in sessione inizio fermata DEVO andare a pagina DichFermi, in modalità + // "ritroso", precompilare data/ora ed eventuale descizione... Response.Redirect("Fermate.aspx"); } @@ -59,19 +92,5 @@ namespace MoonProTablet } #endregion Private Methods - - #region Protected Methods - - protected void Page_Load(object sender, EventArgs e) - { - Session["TipoLink"] = "EditMacch"; - mod_insComm1.eh_newVal += mod_insComm1_eh_newVal; - mod_insComm1.eh_reset += mod_insComm1_eh_reset; - mod_insComm1.eh_inserting += mod_insComm1_eh_inserting; - mod_commenti1.eh_reqEdit += mod_commenti1_eh_reqEdit; - mod_fermate1.eh_reqEdit += mod_fermate1_eh_reqEdit; - } - - #endregion Protected Methods } } \ No newline at end of file diff --git a/MP-TAB/Controlli.aspx.cs b/MP-TAB/Controlli.aspx.cs index 95ef97d2..7be6554f 100644 --- a/MP-TAB/Controlli.aspx.cs +++ b/MP-TAB/Controlli.aspx.cs @@ -1,30 +1,49 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Web; +using SteamWare; +using System; using System.Web.UI; -using System.Web.UI.WebControls; -using SteamWare; namespace MoonProTablet { public partial class Controlli : BasePage { + #region Public Methods + + public override void Dispose() + { + mod_controlliProd.eh_newVal -= Mod_controlliProd_eh_newVal; + mod_controlliProd.eh_reset -= Mod_controlliProd_eh_reset; + base.Dispose(); + } + + #endregion Public Methods + + #region Protected Methods + protected void Page_Load(object sender, EventArgs e) { + if (!Page.IsPostBack) + { + mod_dettMacchina1.doUpdate(); + } mod_controlliProd.eh_newVal += Mod_controlliProd_eh_newVal; mod_controlliProd.eh_reset += Mod_controlliProd_eh_reset; } + #endregion Protected Methods + + #region Private Methods + + private void Mod_controlliProd_eh_newVal(object sender, EventArgs e) + { + // ricarica pagina... + Response.Redirect(devicesAuthProxy.pagCorrente); + } + private void Mod_controlliProd_eh_reset(object sender, EventArgs e) { mod_elencoControlli.doUpdate(); } - private void Mod_controlliProd_eh_newVal(object sender, EventArgs e) - { - // ricarica pagina... - Response.Redirect(devicesAuthProxy.pagCorrente); - } + #endregion Private Methods } } \ No newline at end of file diff --git a/MP-TAB/DettaglioMacchina.aspx.cs b/MP-TAB/DettaglioMacchina.aspx.cs index 94a74509..a5f1da13 100644 --- a/MP-TAB/DettaglioMacchina.aspx.cs +++ b/MP-TAB/DettaglioMacchina.aspx.cs @@ -6,8 +6,44 @@ namespace MoonProTablet { public partial class DettaglioMacchina : BasePage { + #region Public Methods + + public override void Dispose() + { + mod_confProd1.eh_newVal -= mod_confProd1_eh_newVal; + mod_confProd1.eh_reset -= mod_confProd1_eh_reset; + mod_confProd1.eh_doUpdate -= Mod_confProd1_eh_doUpdate; ; + base.Dispose(); + } + + #endregion Public Methods + + #region Protected Methods + + protected void Page_Load(object sender, EventArgs e) + { + if (!Page.IsPostBack) + { + mod_dettMacchina1.doUpdate(); + memLayer.ML.setSessionVal("TipoLink", "DetMacc"); + hlScarti.Visible = enableScarti; + hlControlli.Visible = enableControlli; + cmp_goPrint.Visible = enableMagPrint; + } + mod_confProd1.eh_newVal += mod_confProd1_eh_newVal; + mod_confProd1.eh_reset += mod_confProd1_eh_reset; + mod_confProd1.eh_doUpdate += Mod_confProd1_eh_doUpdate; ; + } + + #endregion Protected Methods + #region Private Methods + private void Mod_confProd1_eh_doUpdate(object sender, EventArgs e) + { + mod_dettMacchina1.doUpdate(); + } + private void mod_confProd1_eh_newVal(object sender, EventArgs e) { } @@ -17,32 +53,5 @@ namespace MoonProTablet } #endregion Private Methods - - #region Protected Methods - - protected void Page_Load(object sender, EventArgs e) - { - if (!Page.IsPostBack) - { - memLayer.ML.setSessionVal("TipoLink", "DetMacc"); - hlScarti.Visible = enableScarti; - hlControlli.Visible = enableControlli; - cmp_goPrint.Visible = enableMagPrint; - } - mod_confProd1.eh_newVal += mod_confProd1_eh_newVal; - mod_confProd1.eh_reset += mod_confProd1_eh_reset; - } - - /// - /// evento timer - /// - /// - /// - protected void Timer1_Tick(object sender, EventArgs e) - { - mod_dettMacchina1.doUpdate(); - } - - #endregion Protected Methods } } \ No newline at end of file diff --git a/MP-TAB/Fermate.aspx.cs b/MP-TAB/Fermate.aspx.cs index 2f2665ca..83dbc756 100644 --- a/MP-TAB/Fermate.aspx.cs +++ b/MP-TAB/Fermate.aspx.cs @@ -4,12 +4,27 @@ using System.Web.UI; namespace MoonProTablet { - public partial class Fermate : System.Web.UI.Page + public partial class Fermate : BasePage { + #region Public Methods + + public override void Dispose() + { + mod_dichiarazione1.eh_newVal -= new EventHandler(mod_dichiarazione1_eh_newVal); + mod_insComm.eh_inserting -= mod_insComm1_eh_inserting; + mod_insComm.eh_reset -= mod_insComm1_eh_reset; + base.Dispose(); + } + + #endregion Public Methods + + #region Protected Methods + protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { + mod_dettMacchina1.doUpdate(); Session["TipoLink"] = "EditMacch"; // se c'è una data/ora in sessione la imposto... if (memLayer.ML.isInSessionObject("inizioStato")) @@ -29,19 +44,16 @@ namespace MoonProTablet mod_insComm.eh_reset += mod_insComm1_eh_reset; } - void mod_insComm1_eh_reset(object sender, EventArgs e) - { - } + #endregion Protected Methods + + #region Private Methods - void mod_insComm1_eh_inserting(object sender, EventArgs e) - { - } /// /// chiama udpate x evento in controller dichiarazioni /// /// /// - void mod_dichiarazione1_eh_newVal(object sender, EventArgs e) + private void mod_dichiarazione1_eh_newVal(object sender, EventArgs e) { mod_dettMacchina1.doUpdate(); // controllo: se è "aperto" ins dichiarazione metto pure quella... @@ -58,5 +70,15 @@ namespace MoonProTablet Response.Redirect("Commenti.aspx"); } } + + private void mod_insComm1_eh_inserting(object sender, EventArgs e) + { + } + + private void mod_insComm1_eh_reset(object sender, EventArgs e) + { + } + + #endregion Private Methods } } \ No newline at end of file diff --git a/MP-TAB/IOB-info.aspx.cs b/MP-TAB/IOB-info.aspx.cs index 5e642e95..4ab19830 100644 --- a/MP-TAB/IOB-info.aspx.cs +++ b/MP-TAB/IOB-info.aspx.cs @@ -8,20 +8,6 @@ namespace MoonProTablet { public partial class IOB_info : BasePage { - #region Protected Fields - - protected IOB_data _IobFeeder; - - #endregion Protected Fields - - //public string IdxMacchina - //{ - // get - // { - // return idxMacchina; - // } - //} - #region Public Properties /// @@ -37,6 +23,25 @@ namespace MoonProTablet #endregion Public Properties + #region Protected Fields + + protected IOB_data _IobFeeder; + + #endregion Protected Fields + + #region Protected Methods + + protected void Page_Load(object sender, EventArgs e) + { + if (!Page.IsPostBack) + { + mod_dettMacchina1.doUpdate(); + } + reloadIobData(); + } + + #endregion Protected Methods + #region Private Methods /// @@ -66,14 +71,5 @@ namespace MoonProTablet } #endregion Private Methods - - #region Protected Methods - - protected void Page_Load(object sender, EventArgs e) - { - reloadIobData(); - } - - #endregion Protected Methods } } \ No newline at end of file diff --git a/MP-TAB/ODL.aspx b/MP-TAB/ODL.aspx index bbbd76e7..aee21183 100644 --- a/MP-TAB/ODL.aspx +++ b/MP-TAB/ODL.aspx @@ -30,7 +30,7 @@ Fix ODL - +
@@ -38,4 +38,6 @@
- \ No newline at end of file + + + diff --git a/MP-TAB/ODL.aspx.cs b/MP-TAB/ODL.aspx.cs index e56b9b85..3d9f73d9 100644 --- a/MP-TAB/ODL.aspx.cs +++ b/MP-TAB/ODL.aspx.cs @@ -220,16 +220,32 @@ namespace MoonProTablet { if (!Page.IsPostBack) { + mod_dettMacchina1.doUpdate(); + dtTimerOdlInt.Interval = memLayer.ML.CRI("dtTimerOdlInt"); checkAll(); - if (isMulti) - { - mod_dettMacchina1.doUpdate(); - } } fixDisplaySlave(); mod_ODL1.eh_reqUpdate += Mod_ODL1_eh_reqUpdate; } + public override void Dispose() + { + mod_ODL1.eh_reqUpdate -= Mod_ODL1_eh_reqUpdate; + base.Dispose(); + } + + /// + /// timeout scaduto + /// + /// + /// + protected void Timer1_Tick(object sender, EventArgs e) + { + // effettuo verifica attrezzabilità ODL + checkAll(); + mod_dettMacchina1.doUpdate(); + } + #endregion Protected Methods } } \ No newline at end of file diff --git a/MP-TAB/ODL.aspx.designer.cs b/MP-TAB/ODL.aspx.designer.cs index 55c96416..be37d3e1 100644 --- a/MP-TAB/ODL.aspx.designer.cs +++ b/MP-TAB/ODL.aspx.designer.cs @@ -1,10 +1,10 @@ //------------------------------------------------------------------------------ -// -// Codice generato da uno strumento. +// +// This code was generated by a tool. // -// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se -// il codice viene rigenerato. -// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// //------------------------------------------------------------------------------ namespace MoonProTablet @@ -15,120 +15,129 @@ namespace MoonProTablet { /// - /// Controllo mod_dettMacchina1. + /// mod_dettMacchina1 control. /// /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. /// protected global::MoonProTablet.WebUserControls.mod_dettMacchina mod_dettMacchina1; /// - /// Controllo divSelMacc. + /// divSelMacc control. /// /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. /// protected global::System.Web.UI.HtmlControls.HtmlGenericControl divSelMacc; /// - /// Controllo ddlSubMacc. + /// ddlSubMacc control. /// /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. /// protected global::System.Web.UI.WebControls.DropDownList ddlSubMacc; /// - /// Controllo ods. + /// ods control. /// /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. /// protected global::System.Web.UI.WebControls.ObjectDataSource ods; /// - /// Controllo divWarn. + /// divWarn control. /// /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. /// protected global::System.Web.UI.HtmlControls.HtmlGenericControl divWarn; /// - /// Controllo lblWarningHead. + /// lblWarningHead control. /// /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. /// protected global::System.Web.UI.WebControls.Label lblWarningHead; /// - /// Controllo lblWarningBody. + /// lblWarningBody control. /// /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. /// protected global::System.Web.UI.WebControls.Label lblWarningBody; /// - /// Controllo lblNumPz2Conf. + /// lblNumPz2Conf control. /// /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. /// protected global::System.Web.UI.WebControls.Label lblNumPz2Conf; /// - /// Controllo divPz2Conf. + /// divPz2Conf control. /// /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. /// protected global::System.Web.UI.HtmlControls.HtmlGenericControl divPz2Conf; /// - /// Controllo lbtFixOdl. + /// lbtFixOdl control. /// /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. /// protected global::System.Web.UI.WebControls.LinkButton lbtFixOdl; /// - /// Controllo cmp_SlaveMachine. + /// cmp_SlaveMachine control. /// /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. /// protected global::MoonProTablet.WebUserControls.cmp_SlaveMachine cmp_SlaveMachine; /// - /// Controllo mod_ODL1. + /// mod_ODL1 control. /// /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. /// protected global::MoonProTablet.WebUserControls.mod_ODL mod_ODL1; /// - /// Controllo mod_directLinks. + /// mod_directLinks control. /// /// - /// Campo generato automaticamente. - /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind. + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. /// protected global::MoonProTablet.WebUserControls.mod_directLinks mod_directLinks; + + /// + /// dtTimerOdlInt control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.Timer dtTimerOdlInt; } } diff --git a/MP-TAB/PianoProd.aspx.cs b/MP-TAB/PianoProd.aspx.cs index d702384e..1341fc39 100644 --- a/MP-TAB/PianoProd.aspx.cs +++ b/MP-TAB/PianoProd.aspx.cs @@ -1,27 +1,21 @@ -using SteamWare; -using System; +using System; using System.Web.UI; namespace MoonProTablet { public partial class PianoProd : BasePage { + #region Protected Methods + protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { + mod_dettMacchina1.doUpdate(); Session["TipoLink"] = "DetMacc"; } } - void mod_confProd1_eh_reset(object sender, EventArgs e) - { - } - - void mod_confProd1_eh_newVal(object sender, EventArgs e) - { - } - /// /// evento timer /// @@ -31,5 +25,19 @@ namespace MoonProTablet { mod_dettMacchina1.doUpdate(); } + + #endregion Protected Methods + + #region Private Methods + + private void mod_confProd1_eh_newVal(object sender, EventArgs e) + { + } + + private void mod_confProd1_eh_reset(object sender, EventArgs e) + { + } + + #endregion Private Methods } } \ No newline at end of file diff --git a/MP-TAB/Scarti.aspx.cs b/MP-TAB/Scarti.aspx.cs index 9b5d3535..0f5703fb 100644 --- a/MP-TAB/Scarti.aspx.cs +++ b/MP-TAB/Scarti.aspx.cs @@ -1,22 +1,40 @@ using System; -using System.Collections.Generic; -using System.Linq; -using System.Web; using System.Web.UI; -using System.Web.UI.WebControls; namespace MoonProTablet { - public partial class Scarti : BasePage - { - protected void Page_Load(object sender, EventArgs e) + public partial class Scarti : BasePage { - mod_regScarti1.eh_newVal += Mod_regScarti1_eh_newVal; - } + #region Public Methods - private void Mod_regScarti1_eh_newVal(object sender, EventArgs e) - { - mod_elencoScarti.doUpdate(); + public override void Dispose() + { + mod_regScarti1.eh_newVal -= Mod_regScarti1_eh_newVal; + base.Dispose(); + } + + #endregion Public Methods + + #region Protected Methods + + protected void Page_Load(object sender, EventArgs e) + { + if (!Page.IsPostBack) + { + mod_dettMacchina1.doUpdate(); + } + mod_regScarti1.eh_newVal += Mod_regScarti1_eh_newVal; + } + + #endregion Protected Methods + + #region Private Methods + + private void Mod_regScarti1_eh_newVal(object sender, EventArgs e) + { + mod_elencoScarti.doUpdate(); + } + + #endregion Private Methods } - } } \ No newline at end of file diff --git a/MP-TAB/SendParameters.aspx.cs b/MP-TAB/SendParameters.aspx.cs index 747e7847..0ec1d54a 100644 --- a/MP-TAB/SendParameters.aspx.cs +++ b/MP-TAB/SendParameters.aspx.cs @@ -11,7 +11,10 @@ namespace MoonProTablet { protected void Page_Load(object sender, EventArgs e) { - + if (!Page.IsPostBack) + { + mod_dettMacchina.doUpdate(); + } } } } \ No newline at end of file diff --git a/MP-TAB/SheetTech.aspx.cs b/MP-TAB/SheetTech.aspx.cs index 953418c1..af47f682 100644 --- a/MP-TAB/SheetTech.aspx.cs +++ b/MP-TAB/SheetTech.aspx.cs @@ -1,16 +1,27 @@ -using MapoDb; -using SteamWare; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Web; +using System; using System.Web.UI; -using System.Web.UI.WebControls; namespace MoonProTablet { public partial class SheetTech : BasePage { + #region Protected Methods + + protected void Page_Load(object sender, EventArgs e) + { + if (!Page.IsPostBack) + { + mod_dettMacchina.doUpdate(); + setArticolo(); + cmp_disabled.title = "Scheda Tecnica"; + cmp_disabled.subtitle = "Funzionalità disattivata"; + cmp_disabled.message = "Gestione schede tecniche di attrezzaggio, collaudo e verifica procedure di setup. Il modulo opzionale è attivabile su richiesta."; + } + checkModuleEnabled(); + } + + #endregion Protected Methods + #region Private Methods private void checkModuleEnabled() @@ -37,21 +48,5 @@ namespace MoonProTablet } #endregion Private Methods - - #region Protected Methods - - protected void Page_Load(object sender, EventArgs e) - { - if (!Page.IsPostBack) - { - setArticolo(); - cmp_disabled.title = "Scheda Tecnica"; - cmp_disabled.subtitle = "Funzionalità disattivata"; - cmp_disabled.message = "Gestione schede tecniche di attrezzaggio, collaudo e verifica procedure di setup. Il modulo opzionale è attivabile su richiesta."; - } - checkModuleEnabled(); - } - - #endregion Protected Methods } } \ No newline at end of file diff --git a/MP-TAB/Turni.aspx.cs b/MP-TAB/Turni.aspx.cs index 55811659..470d1031 100644 --- a/MP-TAB/Turni.aspx.cs +++ b/MP-TAB/Turni.aspx.cs @@ -1,19 +1,26 @@ -using SteamWare; -using System; +using System; using System.Web.UI; namespace MoonProTablet { public partial class Turni : BasePage { + #region Protected Methods + protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { + mod_dettMacchina1.doUpdate(); Session["TipoLink"] = "EditMacch"; } mod_turni1.eh_updated += Mod_turni1_eh_updated; } + + #endregion Protected Methods + + #region Private Methods + /// /// Aggiorno visualizzzazione x update /// @@ -23,5 +30,7 @@ namespace MoonProTablet { mod_dettTurni.DataBind(); } + + #endregion Private Methods } } \ No newline at end of file diff --git a/MP-TAB/WebUserControls/BaseUserControl.cs b/MP-TAB/WebUserControls/BaseUserControl.cs index 75bc7d9e..ca0643e5 100644 --- a/MP-TAB/WebUserControls/BaseUserControl.cs +++ b/MP-TAB/WebUserControls/BaseUserControl.cs @@ -149,6 +149,23 @@ namespace MoonProTablet.WebUserControls } } + public DateTime inizioOdl + { + get + { + DateTime answ = DateTime.Now.AddYears(-1); + if (idxOdl > 0) + { + var odlDetail = getCurrOdlRow(); + if (odlDetail != null) + { + answ = odlDetail.DataInizio; + } + } + return answ; + } + } + public string keyRichiesta { get @@ -156,10 +173,15 @@ namespace MoonProTablet.WebUserControls string answ = ""; if (idxOdl > 0) { - var odlDetail = DataLayerObj.currODLRowTab(idxMacchina); - if (odlDetail != null && odlDetail.Rows.Count > 0) + //var odlDetail = DataLayerObj.currODLRowTab(idxMacchina); + //if (odlDetail != null && odlDetail.Rows.Count > 0) + //{ + // answ = odlDetail[0].KeyRichiesta; + //} + var odlDetail = getCurrOdlRow(); + if (odlDetail != null) { - answ = odlDetail[0].KeyRichiesta; + answ = odlDetail.KeyRichiesta; } } return answ; @@ -256,6 +278,20 @@ namespace MoonProTablet.WebUserControls return answ; } + public DS_ProdTempi.ODLRow getCurrOdlRow() + { + DS_ProdTempi.ODLRow answ = null; + if (idxOdl > 0) + { + DS_ProdTempi.ODLDataTable odlDetail = DataLayerObj.currODLRowTab(idxMacchina); + if (odlDetail != null && odlDetail.Rows.Count > 0) + { + answ = odlDetail[0]; + } + } + return answ; + } + /// /// url completo immagine icona /// diff --git a/MP-TAB/WebUserControls/mod_ODL.ascx.cs b/MP-TAB/WebUserControls/mod_ODL.ascx.cs index 9c1e3fd4..da976aeb 100644 --- a/MP-TAB/WebUserControls/mod_ODL.ascx.cs +++ b/MP-TAB/WebUserControls/mod_ODL.ascx.cs @@ -3,6 +3,7 @@ using MapoSDK; using SteamWare; using System; using System.Text; +using System.Web.Routing; using System.Web.UI; using System.Web.UI.WebControls; @@ -465,7 +466,10 @@ namespace MoonProTablet.WebUserControls else { rigaStato = selData.mng.rigaStato(idxMacchinaFix); - inAttr = (rigaStato.IdxStato == 2); + if (rigaStato != null) + { + inAttr = (rigaStato.IdxStato == 2); + } } } catch (Exception exc) @@ -1197,6 +1201,7 @@ namespace MoonProTablet.WebUserControls processaEvento(idxMacchinaFix, idxEvento, sb.ToString(), idxODL_curr); // indico INIZIO SETUP su REDIS come EXE della macchina... string ts = string.Format("{0:yyMMdd}T{0:HHmmss.fff}Z", DateTime.Now); + string outData = $"TS:{ts}|MATR:{DataLayerObj.MatrOpr}|ODL:{idxODL_curr}"; // aggiungo articolo, commessa, richiesta pezzi... try { @@ -1205,11 +1210,14 @@ namespace MoonProTablet.WebUserControls string setPzCommVal = $"{datiODL.NumPezzi}"; string setCommVal = $"ODL{datiODL.IdxODL:00000000}"; // FIXME TODO: scrivere come sotto? testare valvital x linea LASCO - DataLayerObj.addTask4Machine(idxMacchinaFix, taskType.startSetup, $"TS:{ts}|MATR:{DataLayerObj.MatrOpr}|ODL:{idxODL_curr}"); + DataLayerObj.addTask4Machine(idxMacchinaFix, taskType.startSetup, outData); DataLayerObj.addTask4Machine(idxMacchinaFix, taskType.setArt, setArtVal); - DataLayerObj.addTask4Machine(idxMacchinaFix, taskType.setPzComm, setPzCommVal); DataLayerObj.addTask4Machine(idxMacchinaFix, taskType.setComm, setCommVal); - DataLayerObj.addTask4Machine(idxMacchinaFix, taskType.setParameter, "setArt"); + DataLayerObj.addTask4Machine(idxMacchinaFix, taskType.setPzComm, setPzCommVal); + DataLayerObj.updateMachineParameter(idxMacchinaFix, "setArt", setArtVal); + DataLayerObj.updateMachineParameter(idxMacchinaFix, "setComm", setCommVal); + DataLayerObj.updateMachineParameter(idxMacchinaFix, "setPzComm", setPzCommVal); + DataLayerObj.addTask4Machine(idxMacchinaFix, taskType.setParameter, "ForceUpdate"); // li aggiungo ANCHE sui PLC slave se ci sono... if (isMaster) { @@ -1217,19 +1225,16 @@ namespace MoonProTablet.WebUserControls var slaveList = DataLayerObj.taM2S.getByMaster(idxMacchina); foreach (var machine in slaveList) { - // non funziona usato metodo aggiunta task "classico"... -#if false - // aggiungo i 3 valori - DataLayerObj.updateMachineParameter(machine.IdxMacchinaSlave, "setArt", setArtVal); - DataLayerObj.updateMachineParameter(machine.IdxMacchinaSlave, "setPzComm", setPzCommVal); - DataLayerObj.updateMachineParameter(machine.IdxMacchinaSlave, "setComm", setCommVal); -#endif - - DataLayerObj.addTask4Machine(machine.IdxMacchinaSlave, taskType.startSetup, $"TS:{ts}|MATR: {DataLayerObj.MatrOpr}| Master Machine: {idxMacchinaFix}"); + outData = $"TS:{ts}|MATR:{DataLayerObj.MatrOpr}|Master Machine: {idxMacchinaFix}"; + // invio chiusura attrezzaggio + DataLayerObj.addTask4Machine(machine.IdxMacchinaSlave, taskType.startSetup, outData); DataLayerObj.addTask4Machine(machine.IdxMacchinaSlave, taskType.setArt, setArtVal); - DataLayerObj.addTask4Machine(machine.IdxMacchinaSlave, taskType.setPzComm, setPzCommVal); DataLayerObj.addTask4Machine(machine.IdxMacchinaSlave, taskType.setComm, setCommVal); - DataLayerObj.addTask4Machine(machine.IdxMacchinaSlave, taskType.setParameter, "setArt"); + DataLayerObj.addTask4Machine(machine.IdxMacchinaSlave, taskType.setPzComm, setPzCommVal); + DataLayerObj.updateMachineParameter(machine.IdxMacchinaSlave, "setArt", setArtVal); + DataLayerObj.updateMachineParameter(machine.IdxMacchinaSlave, "setComm", setCommVal); + DataLayerObj.updateMachineParameter(machine.IdxMacchinaSlave, "setPzComm", setPzCommVal); + DataLayerObj.addTask4Machine(machine.IdxMacchinaSlave, taskType.setParameter, "ForceUpdate"); } } } @@ -1352,6 +1357,17 @@ namespace MoonProTablet.WebUserControls // se è master --> chiamo update child! if (isMaster) { + // calcolo gli slave... + var slaveList = DataLayerObj.taM2S.getByMaster(idxMacchina); + foreach (var machine in slaveList) + { + // invio chiusura attrezzaggio + ts = string.Format("{0:yyMMdd}T{0:HHmmss.fff}Z", DateTime.Now); + string outData = $"TS:{ts}|MATR:{DataLayerObj.MatrOpr}|ODL:{idxODLStart}"; + DataLayerObj.addTask4Machine(machine.IdxMacchinaSlave, taskType.fixStopSetup, outData); + } + + // sistemo gli ODL DataLayerObj.taODL.fixMachineSlave(idxMacchina, 30, 1); } // se c'è gestione SchedaTecnica --> chiamo procedura update x lotti diff --git a/MP-TAB/WebUserControls/mod_confProd.ascx b/MP-TAB/WebUserControls/mod_confProd.ascx index 033117c2..05539683 100644 --- a/MP-TAB/WebUserControls/mod_confProd.ascx +++ b/MP-TAB/WebUserControls/mod_confProd.ascx @@ -91,7 +91,12 @@
Dati Globali ODL
-
Inizio ODL --> <%: dtReqUpdate.ToString() %>
+
+ Periodo ODL calcolato: + [dtInizio] + - + [dtFine] +
@@ -137,4 +142,5 @@
-
\ No newline at end of file +
+ diff --git a/MP-TAB/WebUserControls/mod_confProd.ascx.cs b/MP-TAB/WebUserControls/mod_confProd.ascx.cs index dddbd7e5..6288bdcf 100644 --- a/MP-TAB/WebUserControls/mod_confProd.ascx.cs +++ b/MP-TAB/WebUserControls/mod_confProd.ascx.cs @@ -35,8 +35,96 @@ namespace MoonProTablet.WebUserControls #endregion Public Events + #region Public Properties + + /// + /// restituisce css disabled SE odl NON OK... + /// + public string cssBtnConf + { + get + { + return odlOk ? "" : "disabled"; + } + } + + /// + /// Data-Ora ultimo update valori produzione + /// + public DateTime dtReqUpdate + { + get + { + DateTime answ = DateTime.Now; + DateTime.TryParse(hfDtReqUpdate.Value, out answ); + return answ; + } + set + { + hfDtReqUpdate.Value = $"{value}"; + } + } + + /// + /// Verifica ODL OK (ovvero caricato x macchina...) + /// + public bool odlOk + { + get + { + bool answ = true; + // se ODL > 0 è ok!!! + answ = (idxOdl > 0); + return answ; + } + } + + #endregion Public Properties + + #region Public Methods + + /// + /// Aggiorno valori produzione alla data richiesta... + /// + /// + public void doUpdate() + { + datiProdAct = DataLayerObj.taStatoProd.GetData(idxMacchinaSel, dtReqUpdate)[0]; + // aggiorno visualizzazione... + numPzProdotti = datiProdAct.PzTotODL; + numPz2Rec = datiProdAct.Pz2RecTot; + numPzScaConf = datiProdAct.PzConfScarto; + numPzBuoniConf = datiProdAct.PzConfBuoni; + numPzProdotti2Rec = datiProdAct.Pz2RecTot; + numPzScarto2Rec = datiProdAct.Pz2RecScarto; + dtInizio = inizioOdl; + dtFine = dtReqUpdate; + reportUpdate(); + } + + #endregion Public Methods + #region Protected Properties + protected DateTime dtFine + { + set + { + lblFine.Text = value.ToString(); + } + } + + /// + /// Numero pezzi PRODOTTI da ultima conferma + /// + protected DateTime dtInizio + { + set + { + lblInizio.Text = value.ToString(); + } + } + /// /// Numero pezzi PRODOTTI da ultima conferma /// @@ -105,7 +193,8 @@ namespace MoonProTablet.WebUserControls /// /// Numero pezzi PRODOTTI da registrare - /// da ultima conferma + ///
+ /// da ultima conferma protected int numPzProdotti2Rec { set @@ -173,51 +262,135 @@ namespace MoonProTablet.WebUserControls #endregion Protected Properties - #region Public Properties + #region Protected Methods + + protected void ddlSubMacc_DataBound(object sender, EventArgs e) + { + // se ho in memoria un valore LO REIMPOSTO... + if (!string.IsNullOrEmpty(subMaccSel)) + { + // se è una SUB machcina (contiene "#") + if (subMaccSel.Contains("#")) + { + // provo a preselezionare... + try + { + ddlSubMacc.SelectedValue = subMaccSel; + } + catch + { } + } + // altrimenti salvo! + else + { + subMaccSel = ddlSubMacc.SelectedValue; + } + } + } + + protected void ddlSubMacc_SelectedIndexChanged(object sender, EventArgs e) + { + subMaccSel = ddlSubMacc.SelectedValue; + // salvo ODL + DataLayerObj.taMSE.getByIdxMaccAndSub(idxMacchinaSel, subMaccSel); + //altri controlli + checkAll(); + } /// - /// restituisce css disabled SE odl NON OK... + /// salvo produzione /// - public string cssBtnConf + /// + /// + protected void lbtSalva_Click(object sender, EventArgs e) { - get + // effettua conferma con conf da DB del tipo (giorni / turni / periodo + bool fatto = effettuaConfermaProd(); + // refresh tabella dati tablet... + DataLayerObj.taMSE.forceRecalc(0, idxMacchinaSel); + // mostro output + lblOut.Text = string.Format("Confermata la produzione per {0} pezzi! (+{1} pz scarto) alle {2:yyyy-MM-dd HH:mm:ss}", numPzConfermati, numPzScarto2Rec, dtReqUpdate); + // cambio button conferma... + switchBtnConferma(!txtNumPezzi.Enabled); + // sollevo evento! + if (eh_newVal != null) { - return odlOk ? "" : "disabled"; + eh_newVal(this, new EventArgs()); + } + dtReqUpdate = DateTime.Now; + doUpdate(); + } + + /// + /// cambio stato visibilità pannello e testo button + /// + /// + /// + protected void lbtShowConfProd_Click(object sender, EventArgs e) + { + showInnov = !showInnov; + switchBtnConferma(showInnov); + } + + /// + /// caricamento pagina + /// + /// + /// + protected void Page_Load(object sender, EventArgs e) + { + if (!Page.IsPostBack) + { + checkAll(); + if (isMulti) + { + // sollevo evento! + if (eh_reset != null) + { + eh_reset(this, new EventArgs()); + } + } } } /// - /// Data-Ora ultimo update valori produzione + /// Update pz lasciati --> aggiorno! /// - public DateTime dtReqUpdate + /// + /// + protected void txtNumLasciati_TextChanged(object sender, EventArgs e) { - get - { - DateTime answ = DateTime.Now; - DateTime.TryParse(memLayer.ML.StringSessionObj("dtReqUpdate"), out answ); - return answ; - } - set - { - memLayer.ML.setSessionVal("dtReqUpdate", value); - } + lblOut.Text = ""; + updatePzBuoni(); } /// - /// Verifica ODL OK (ovvero caricato x macchina...) + /// update post modifica pz buoni /// - public bool odlOk + /// + /// + protected void txtNumPezzi_TextChanged(object sender, EventArgs e) { - get - { - bool answ = true; - // se ODL > 0 è ok!!! - answ = (idxOdl > 0); - return answ; - } + lblOut.Text = ""; + updatePzBuoni(); } - #endregion Public Properties + /// + /// ODL correntemente sulla macchina + /// - cerca in Redis (TTL 5 sec) + /// - altrimenti recupera da DB... + /// + protected void updateOdl() + { + // userò ODL del turno + int answ = 0; + // cerco da redis... + int.TryParse(DataLayerObj.currODL(idxMacchinaSel, true), out answ); + // salvo! + idxOdl = answ; + } + + #endregion Protected Methods #region Private Methods @@ -255,7 +428,8 @@ namespace MoonProTablet.WebUserControls } /// - /// Registra conferma produzione in modalità nuova (con rettifica pezzi lasciati) o legacy (con anticipo periodo) + /// Registra conferma produzione in modalità nuova (con rettifica pezzi lasciati) o legacy + /// (con anticipo periodo) /// private bool effettuaConfermaProd() { @@ -273,7 +447,7 @@ namespace MoonProTablet.WebUserControls } /// - /// Se la machcina è MULTI --> mostro selettore + /// Se la machcina è MULTI --> mostro selettore /// private void fixSelMacc() { @@ -373,155 +547,5 @@ namespace MoonProTablet.WebUserControls } #endregion Private Methods - - #region Protected Methods - - protected void ddlSubMacc_DataBound(object sender, EventArgs e) - { - // se ho in memoria un valore LO REIMPOSTO... - if (!string.IsNullOrEmpty(subMaccSel)) - { - // se è una SUB machcina (contiene "#") - if (subMaccSel.Contains("#")) - { - // provo a preselezionare... - try - { - ddlSubMacc.SelectedValue = subMaccSel; - } - catch - { } - } - // altrimenti salvo! - else - { - subMaccSel = ddlSubMacc.SelectedValue; - } - } - } - - protected void ddlSubMacc_SelectedIndexChanged(object sender, EventArgs e) - { - subMaccSel = ddlSubMacc.SelectedValue; - // salvo ODL - DataLayerObj.taMSE.getByIdxMaccAndSub(idxMacchinaSel, subMaccSel); - //altri controlli - checkAll(); - } - - /// - /// salvo produzione - /// - /// - /// - protected void lbtSalva_Click(object sender, EventArgs e) - { - // effettua conferma con conf da DB del tipo (giorni / turni / periodo - bool fatto = effettuaConfermaProd(); - // refresh tabella dati tablet... - DataLayerObj.taMSE.forceRecalc(0, idxMacchinaSel); - // mostro output - lblOut.Text = string.Format("Confermata la produzione per {0} pezzi! (+{1} pz scarto) alle {2:yyyy-MM-dd HH:mm:ss}", numPzConfermati, numPzScarto2Rec, dtReqUpdate); - // cambio button conferma... - switchBtnConferma(!txtNumPezzi.Enabled); - // sollevo evento! - if (eh_newVal != null) - { - eh_newVal(this, new EventArgs()); - } - dtReqUpdate = DateTime.Now; - doUpdate(); - } - - /// - /// cambio stato visibilità pannello e testo button - /// - /// - /// - protected void lbtShowConfProd_Click(object sender, EventArgs e) - { - showInnov = !showInnov; - switchBtnConferma(showInnov); - } - - /// - /// caricamento pagina - /// - /// - /// - protected void Page_Load(object sender, EventArgs e) - { - if (!Page.IsPostBack) - { - checkAll(); - if (isMulti) - { - // sollevo evento! - if (eh_reset != null) - { - eh_reset(this, new EventArgs()); - } - } - } - } - - /// - /// Update pz lasciati --> aggiorno! - /// - /// - /// - protected void txtNumLasciati_TextChanged(object sender, EventArgs e) - { - lblOut.Text = ""; - updatePzBuoni(); - } - - /// - /// update post modifica pz buoni - /// - /// - /// - protected void txtNumPezzi_TextChanged(object sender, EventArgs e) - { - lblOut.Text = ""; - updatePzBuoni(); - } - - /// - /// ODL correntemente sulla macchina - /// - cerca in Redis (TTL 5 sec) - /// - altrimenti recupera da DB... - /// - protected void updateOdl() - { - // userò ODL del turno - int answ = 0; - // cerco da redis... - int.TryParse(DataLayerObj.currODL(idxMacchinaSel, true), out answ); - // salvo! - idxOdl = answ; - } - - #endregion Protected Methods - - #region Public Methods - - /// - /// Aggiorno valori produzione alla data richiesta... - /// - /// - public void doUpdate() - { - datiProdAct = DataLayerObj.taStatoProd.GetData(idxMacchinaSel, dtReqUpdate)[0]; - // aggiorno visualizzazione... - numPzProdotti = datiProdAct.PzTotODL; - numPz2Rec = datiProdAct.Pz2RecTot; - numPzScaConf = datiProdAct.PzConfScarto; - numPzBuoniConf = datiProdAct.PzConfBuoni; - numPzProdotti2Rec = datiProdAct.Pz2RecTot; - numPzScarto2Rec = datiProdAct.Pz2RecScarto; - } - - #endregion Public Methods } } \ No newline at end of file diff --git a/MP-TAB/WebUserControls/mod_confProd.ascx.designer.cs b/MP-TAB/WebUserControls/mod_confProd.ascx.designer.cs index f719d59f..89a61148 100644 --- a/MP-TAB/WebUserControls/mod_confProd.ascx.designer.cs +++ b/MP-TAB/WebUserControls/mod_confProd.ascx.designer.cs @@ -203,6 +203,24 @@ namespace MoonProTablet.WebUserControls /// protected global::System.Web.UI.UpdateProgress updtRicerca; + /// + /// lblInizio control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label lblInizio; + + /// + /// lblFine control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label lblFine; + /// /// lblPz2RecTot control. /// @@ -247,5 +265,14 @@ namespace MoonProTablet.WebUserControls /// To modify move field declaration from designer file to code-behind file. /// protected global::System.Web.UI.WebControls.Label lblOut; + + /// + /// hfDtReqUpdate control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.HiddenField hfDtReqUpdate; } } diff --git a/MP-TAB/WebUserControls/mod_dettMacchina.ascx b/MP-TAB/WebUserControls/mod_dettMacchina.ascx index 22b49e45..08bf7ef5 100644 --- a/MP-TAB/WebUserControls/mod_dettMacchina.ascx +++ b/MP-TAB/WebUserControls/mod_dettMacchina.ascx @@ -24,11 +24,18 @@
-
+
+
+ + +   + + +
@@ -66,8 +73,8 @@ - - + + - \ No newline at end of file + diff --git a/MP-TAB/WebUserControls/mod_dettMacchina.ascx.cs b/MP-TAB/WebUserControls/mod_dettMacchina.ascx.cs index 3d02c507..ac9d6a54 100644 --- a/MP-TAB/WebUserControls/mod_dettMacchina.ascx.cs +++ b/MP-TAB/WebUserControls/mod_dettMacchina.ascx.cs @@ -35,46 +35,6 @@ namespace MoonProTablet.WebUserControls #endregion Public Properties - #region Protected Methods - - /// - /// caricamento pagina - /// - /// - /// - protected void Page_Load(object sender, EventArgs e) - { - if (!Page.IsPostBack) - { - dmTimer.Interval = memLayer.ML.CRI("dtTimerInt"); - } - // controllo se ho dett macchina altrimenti ritorno a pagina generale... - if (idxMacchina == "") - { - Response.Redirect("~/MappaStato.aspx"); - } - } - - /// - /// timeout scaduto - /// - /// - /// - protected void Timer1_Tick(object sender, EventArgs e) - { - // sollevo evento! - if (eh_reqRemoveModal != null) - { - eh_reqRemoveModal(this, new EventArgs()); - } - // update - doUpdate(); - //ScriptManager.RegisterStartupScript(Page, GetType(), "temp", "", false); - ScriptManager.RegisterStartupScript(Page, GetType(), "temp", "", false); - } - - #endregion Protected Methods - #region Public Methods /// @@ -173,5 +133,45 @@ namespace MoonProTablet.WebUserControls } #endregion Public Methods + + #region Protected Methods + + /// + /// caricamento pagina + /// + /// + /// + protected void Page_Load(object sender, EventArgs e) + { + if (!Page.IsPostBack) + { + dmTimer.Interval = memLayer.ML.CRI("dtTimerInt"); + } + // controllo se ho dett macchina altrimenti ritorno a pagina generale... + if (idxMacchina == "") + { + Response.Redirect("~/MappaStato.aspx"); + } + } + + /// + /// timeout scaduto + /// + /// + /// + protected void Timer1_Tick(object sender, EventArgs e) + { + // update + doUpdate(); + // sollevo evento! + if (eh_reqRemoveModal != null) + { + eh_reqRemoveModal(this, new EventArgs()); + } + // 2022.09.28 forse NON necessario... + //ScriptManager.RegisterStartupScript(Page, GetType(), "temp", "", false); + } + + #endregion Protected Methods } } \ No newline at end of file diff --git a/MP-TAB/WebUserControls/mod_dettaglioProd.ascx.cs b/MP-TAB/WebUserControls/mod_dettaglioProd.ascx.cs index 2acc2d21..3fd909c6 100644 --- a/MP-TAB/WebUserControls/mod_dettaglioProd.ascx.cs +++ b/MP-TAB/WebUserControls/mod_dettaglioProd.ascx.cs @@ -6,6 +6,34 @@ namespace MoonProTablet.WebUserControls { public partial class mod_dettaglioProd : BaseUserControl { + #region Protected Methods + + /// + /// caricamento pagina + /// + /// + /// + protected void Page_Load(object sender, EventArgs e) + { + if (!Page.IsPostBack) + { + if (enableSchedaTecnica) + { + checkLottiOdl(); + } + } + try + { + popolaLabels(); + } + catch (Exception exc) + { + logger.lg.scriviLog($"Eccezione in popolaLablels:{Environment.NewLine}{exc}"); + } + } + + #endregion Protected Methods + #region Private Methods private void checkLottiOdl() @@ -132,33 +160,5 @@ namespace MoonProTablet.WebUserControls } #endregion Private Methods - - #region Protected Methods - - /// - /// caricamento pagina - /// - /// - /// - protected void Page_Load(object sender, EventArgs e) - { - if (!Page.IsPostBack) - { - if (enableSchedaTecnica) - { - checkLottiOdl(); - } - } - try - { - popolaLabels(); - } - catch (Exception exc) - { - logger.lg.scriviLog($"Eccezione in popolaLablels:{Environment.NewLine}{exc}"); - } - } - - #endregion Protected Methods } } \ No newline at end of file diff --git a/MP-TAB/WebUserControls/mod_sendParameters.ascx.cs b/MP-TAB/WebUserControls/mod_sendParameters.ascx.cs index f70bd955..44c68545 100644 --- a/MP-TAB/WebUserControls/mod_sendParameters.ascx.cs +++ b/MP-TAB/WebUserControls/mod_sendParameters.ascx.cs @@ -1,5 +1,6 @@ using MapoDb; using MapoSDK; +using NLog; using SteamWare; using System; using System.Collections; @@ -42,7 +43,15 @@ namespace MoonProTablet.WebUserControls /// public List GetParameters() { - List dcList = DataLayerObj.getCurrObjItems(idxMacchina); + List dcList = new List(); + try + { + dcList = DataLayerObj.getCurrObjItems(idxMacchina); + } + catch(Exception exc) + { + logger.lg.scriviLog($"Eccezione in GetParameters{Environment.NewLine}{exc}", tipoLog.EXCEPTION); + } return dcList; } diff --git a/MagData/DS_Mag.Designer.cs b/MagData/DS_Mag.Designer.cs index f3c81b04..4777201c 100644 --- a/MagData/DS_Mag.Designer.cs +++ b/MagData/DS_Mag.Designer.cs @@ -46,6 +46,8 @@ namespace MagData { private AnagDestinClientiDataTable tableAnagDestinClienti; + private RegGiacenzeDataTable tableRegGiacenze; + private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema; [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -107,6 +109,9 @@ namespace MagData { if ((ds.Tables["AnagDestinClienti"] != null)) { base.Tables.Add(new AnagDestinClientiDataTable(ds.Tables["AnagDestinClienti"])); } + if ((ds.Tables["RegGiacenze"] != null)) { + base.Tables.Add(new RegGiacenzeDataTable(ds.Tables["RegGiacenze"])); + } this.DataSetName = ds.DataSetName; this.Prefix = ds.Prefix; this.Namespace = ds.Namespace; @@ -235,6 +240,16 @@ namespace MagData { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] + public RegGiacenzeDataTable RegGiacenze { + get { + return this.tableRegGiacenze; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] [global::System.ComponentModel.BrowsableAttribute(true)] @@ -335,6 +350,9 @@ namespace MagData { if ((ds.Tables["AnagDestinClienti"] != null)) { base.Tables.Add(new AnagDestinClientiDataTable(ds.Tables["AnagDestinClienti"])); } + if ((ds.Tables["RegGiacenze"] != null)) { + base.Tables.Add(new RegGiacenzeDataTable(ds.Tables["RegGiacenze"])); + } this.DataSetName = ds.DataSetName; this.Prefix = ds.Prefix; this.Namespace = ds.Namespace; @@ -434,6 +452,12 @@ namespace MagData { this.tableAnagDestinClienti.InitVars(); } } + this.tableRegGiacenze = ((RegGiacenzeDataTable)(base.Tables["RegGiacenze"])); + if ((initTable == true)) { + if ((this.tableRegGiacenze != null)) { + this.tableRegGiacenze.InitVars(); + } + } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -466,6 +490,8 @@ namespace MagData { base.Tables.Add(this.tableMacchine); this.tableAnagDestinClienti = new AnagDestinClientiDataTable(); base.Tables.Add(this.tableAnagDestinClienti); + this.tableRegGiacenze = new RegGiacenzeDataTable(); + base.Tables.Add(this.tableRegGiacenze); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -534,6 +560,12 @@ namespace MagData { return false; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + private bool ShouldSerializeRegGiacenze() { + return false; + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) { @@ -622,6 +654,9 @@ namespace MagData { [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] public delegate void AnagDestinClientiRowChangeEventHandler(object sender, AnagDestinClientiRowChangeEvent e); + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public delegate void RegGiacenzeRowChangeEventHandler(object sender, RegGiacenzeRowChangeEvent e); + /// ///Represents the strongly named DataTable class. /// @@ -5193,6 +5228,424 @@ namespace MagData { } } + /// + ///Represents the strongly named DataTable class. + /// + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class RegGiacenzeDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnIdxRG; + + private global::System.Data.DataColumn columnIdxOdl; + + private global::System.Data.DataColumn columnIdentRG; + + private global::System.Data.DataColumn columnProduct; + + private global::System.Data.DataColumn columnVariety; + + private global::System.Data.DataColumn columnSupplier; + + private global::System.Data.DataColumn columnExtDoc; + + private global::System.Data.DataColumn columnDateRif; + + private global::System.Data.DataColumn columnQtyTot; + + private global::System.Data.DataColumn columnNumPack; + + private global::System.Data.DataColumn columnNotes; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public RegGiacenzeDataTable() { + this.TableName = "RegGiacenze"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + internal RegGiacenzeDataTable(global::System.Data.DataTable table) { + this.TableName = table.TableName; + if ((table.CaseSensitive != table.DataSet.CaseSensitive)) { + this.CaseSensitive = table.CaseSensitive; + } + if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) { + this.Locale = table.Locale; + } + if ((table.Namespace != table.DataSet.Namespace)) { + this.Namespace = table.Namespace; + } + this.Prefix = table.Prefix; + this.MinimumCapacity = table.MinimumCapacity; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + protected RegGiacenzeDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : + base(info, context) { + this.InitVars(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public global::System.Data.DataColumn IdxRGColumn { + get { + return this.columnIdxRG; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public global::System.Data.DataColumn IdxOdlColumn { + get { + return this.columnIdxOdl; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public global::System.Data.DataColumn IdentRGColumn { + get { + return this.columnIdentRG; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public global::System.Data.DataColumn ProductColumn { + get { + return this.columnProduct; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public global::System.Data.DataColumn VarietyColumn { + get { + return this.columnVariety; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public global::System.Data.DataColumn SupplierColumn { + get { + return this.columnSupplier; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public global::System.Data.DataColumn ExtDocColumn { + get { + return this.columnExtDoc; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public global::System.Data.DataColumn DateRifColumn { + get { + return this.columnDateRif; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public global::System.Data.DataColumn QtyTotColumn { + get { + return this.columnQtyTot; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public global::System.Data.DataColumn NumPackColumn { + get { + return this.columnNumPack; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public global::System.Data.DataColumn NotesColumn { + get { + return this.columnNotes; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + public int Count { + get { + return this.Rows.Count; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public RegGiacenzeRow this[int index] { + get { + return ((RegGiacenzeRow)(this.Rows[index])); + } + } + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public event RegGiacenzeRowChangeEventHandler RegGiacenzeRowChanging; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public event RegGiacenzeRowChangeEventHandler RegGiacenzeRowChanged; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public event RegGiacenzeRowChangeEventHandler RegGiacenzeRowDeleting; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public event RegGiacenzeRowChangeEventHandler RegGiacenzeRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public void AddRegGiacenzeRow(RegGiacenzeRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public RegGiacenzeRow AddRegGiacenzeRow(int IdxOdl, string IdentRG, string Product, string Variety, string Supplier, string ExtDoc, System.DateTime DateRif, double QtyTot, int NumPack, string Notes) { + RegGiacenzeRow rowRegGiacenzeRow = ((RegGiacenzeRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + null, + IdxOdl, + IdentRG, + Product, + Variety, + Supplier, + ExtDoc, + DateRif, + QtyTot, + NumPack, + Notes}; + rowRegGiacenzeRow.ItemArray = columnValuesArray; + this.Rows.Add(rowRegGiacenzeRow); + return rowRegGiacenzeRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public RegGiacenzeRow FindByIdxRG(int IdxRG) { + return ((RegGiacenzeRow)(this.Rows.Find(new object[] { + IdxRG}))); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public override global::System.Data.DataTable Clone() { + RegGiacenzeDataTable cln = ((RegGiacenzeDataTable)(base.Clone())); + cln.InitVars(); + return cln; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + protected override global::System.Data.DataTable CreateInstance() { + return new RegGiacenzeDataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + internal void InitVars() { + this.columnIdxRG = base.Columns["IdxRG"]; + this.columnIdxOdl = base.Columns["IdxOdl"]; + this.columnIdentRG = base.Columns["IdentRG"]; + this.columnProduct = base.Columns["Product"]; + this.columnVariety = base.Columns["Variety"]; + this.columnSupplier = base.Columns["Supplier"]; + this.columnExtDoc = base.Columns["ExtDoc"]; + this.columnDateRif = base.Columns["DateRif"]; + this.columnQtyTot = base.Columns["QtyTot"]; + this.columnNumPack = base.Columns["NumPack"]; + this.columnNotes = base.Columns["Notes"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + private void InitClass() { + this.columnIdxRG = new global::System.Data.DataColumn("IdxRG", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnIdxRG); + this.columnIdxOdl = new global::System.Data.DataColumn("IdxOdl", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnIdxOdl); + this.columnIdentRG = new global::System.Data.DataColumn("IdentRG", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnIdentRG); + this.columnProduct = new global::System.Data.DataColumn("Product", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnProduct); + this.columnVariety = new global::System.Data.DataColumn("Variety", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnVariety); + this.columnSupplier = new global::System.Data.DataColumn("Supplier", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnSupplier); + this.columnExtDoc = new global::System.Data.DataColumn("ExtDoc", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnExtDoc); + this.columnDateRif = new global::System.Data.DataColumn("DateRif", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnDateRif); + this.columnQtyTot = new global::System.Data.DataColumn("QtyTot", typeof(double), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnQtyTot); + this.columnNumPack = new global::System.Data.DataColumn("NumPack", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnNumPack); + this.columnNotes = new global::System.Data.DataColumn("Notes", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnNotes); + this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { + this.columnIdxRG}, true)); + this.columnIdxRG.AutoIncrement = true; + this.columnIdxRG.AutoIncrementSeed = -1; + this.columnIdxRG.AutoIncrementStep = -1; + this.columnIdxRG.AllowDBNull = false; + this.columnIdxRG.ReadOnly = true; + this.columnIdxRG.Unique = true; + this.columnIdxOdl.AllowDBNull = false; + this.columnIdentRG.AllowDBNull = false; + this.columnIdentRG.MaxLength = 250; + this.columnProduct.AllowDBNull = false; + this.columnProduct.MaxLength = 50; + this.columnVariety.AllowDBNull = false; + this.columnVariety.MaxLength = 50; + this.columnSupplier.AllowDBNull = false; + this.columnSupplier.MaxLength = 50; + this.columnExtDoc.AllowDBNull = false; + this.columnExtDoc.MaxLength = 50; + this.columnDateRif.AllowDBNull = false; + this.columnQtyTot.AllowDBNull = false; + this.columnNumPack.AllowDBNull = false; + this.columnNotes.AllowDBNull = false; + this.columnNotes.MaxLength = 500; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public RegGiacenzeRow NewRegGiacenzeRow() { + return ((RegGiacenzeRow)(this.NewRow())); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { + return new RegGiacenzeRow(builder); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + protected override global::System.Type GetRowType() { + return typeof(RegGiacenzeRow); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanged(e); + if ((this.RegGiacenzeRowChanged != null)) { + this.RegGiacenzeRowChanged(this, new RegGiacenzeRowChangeEvent(((RegGiacenzeRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanging(e); + if ((this.RegGiacenzeRowChanging != null)) { + this.RegGiacenzeRowChanging(this, new RegGiacenzeRowChangeEvent(((RegGiacenzeRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleted(e); + if ((this.RegGiacenzeRowDeleted != null)) { + this.RegGiacenzeRowDeleted(this, new RegGiacenzeRowChangeEvent(((RegGiacenzeRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleting(e); + if ((this.RegGiacenzeRowDeleting != null)) { + this.RegGiacenzeRowDeleting(this, new RegGiacenzeRowChangeEvent(((RegGiacenzeRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public void RemoveRegGiacenzeRow(RegGiacenzeRow row) { + this.Rows.Remove(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) { + global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType(); + global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence(); + DS_Mag ds = new DS_Mag(); + global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny(); + any1.Namespace = "http://www.w3.org/2001/XMLSchema"; + any1.MinOccurs = new decimal(0); + any1.MaxOccurs = decimal.MaxValue; + any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any1); + global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny(); + any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"; + any2.MinOccurs = new decimal(1); + any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any2); + global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute1.Name = "namespace"; + attribute1.FixedValue = ds.Namespace; + type.Attributes.Add(attribute1); + global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute2.Name = "tableTypeName"; + attribute2.FixedValue = "RegGiacenzeDataTable"; + type.Attributes.Add(attribute2); + type.Particle = sequence; + global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable(); + if (xs.Contains(dsSchema.TargetNamespace)) { + global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream(); + global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream(); + try { + global::System.Xml.Schema.XmlSchema schema = null; + dsSchema.Write(s1); + for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) { + schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current)); + s2.SetLength(0); + schema.Write(s2); + if ((s1.Length == s2.Length)) { + s1.Position = 0; + s2.Position = 0; + for (; ((s1.Position != s1.Length) + && (s1.ReadByte() == s2.ReadByte())); ) { + ; + } + if ((s1.Position == s1.Length)) { + return type; + } + } + } + } + finally { + if ((s1 != null)) { + s1.Close(); + } + if ((s2 != null)) { + s2.Close(); + } + } + } + xs.Add(dsSchema); + return type; + } + } + /// ///Represents strongly named DataRow class. /// @@ -7348,6 +7801,142 @@ namespace MagData { } } + /// + ///Represents strongly named DataRow class. + /// + public partial class RegGiacenzeRow : global::System.Data.DataRow { + + private RegGiacenzeDataTable tableRegGiacenze; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + internal RegGiacenzeRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tableRegGiacenze = ((RegGiacenzeDataTable)(this.Table)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public int IdxRG { + get { + return ((int)(this[this.tableRegGiacenze.IdxRGColumn])); + } + set { + this[this.tableRegGiacenze.IdxRGColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public int IdxOdl { + get { + return ((int)(this[this.tableRegGiacenze.IdxOdlColumn])); + } + set { + this[this.tableRegGiacenze.IdxOdlColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public string IdentRG { + get { + return ((string)(this[this.tableRegGiacenze.IdentRGColumn])); + } + set { + this[this.tableRegGiacenze.IdentRGColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public string Product { + get { + return ((string)(this[this.tableRegGiacenze.ProductColumn])); + } + set { + this[this.tableRegGiacenze.ProductColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public string Variety { + get { + return ((string)(this[this.tableRegGiacenze.VarietyColumn])); + } + set { + this[this.tableRegGiacenze.VarietyColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public string Supplier { + get { + return ((string)(this[this.tableRegGiacenze.SupplierColumn])); + } + set { + this[this.tableRegGiacenze.SupplierColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public string ExtDoc { + get { + return ((string)(this[this.tableRegGiacenze.ExtDocColumn])); + } + set { + this[this.tableRegGiacenze.ExtDocColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public System.DateTime DateRif { + get { + return ((global::System.DateTime)(this[this.tableRegGiacenze.DateRifColumn])); + } + set { + this[this.tableRegGiacenze.DateRifColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public double QtyTot { + get { + return ((double)(this[this.tableRegGiacenze.QtyTotColumn])); + } + set { + this[this.tableRegGiacenze.QtyTotColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public int NumPack { + get { + return ((int)(this[this.tableRegGiacenze.NumPackColumn])); + } + set { + this[this.tableRegGiacenze.NumPackColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public string Notes { + get { + return ((string)(this[this.tableRegGiacenze.NotesColumn])); + } + set { + this[this.tableRegGiacenze.NotesColumn] = value; + } + } + } + /// ///Row event argument class /// @@ -7721,6 +8310,40 @@ namespace MagData { } } } + + /// + ///Row event argument class + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public class RegGiacenzeRowChangeEvent : global::System.EventArgs { + + private RegGiacenzeRow eventRow; + + private global::System.Data.DataRowAction eventAction; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public RegGiacenzeRowChangeEvent(RegGiacenzeRow row, global::System.Data.DataRowAction action) { + this.eventRow = row; + this.eventAction = action; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public RegGiacenzeRow Row { + get { + return this.eventRow; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public global::System.Data.DataRowAction Action { + get { + return this.eventAction; + } + } + } } } namespace MagData.DS_MagTableAdapters { @@ -11769,6 +12392,314 @@ SELECT CodCliente, CodDestinazione, DescDestinazione, Indirizzo, Cap, Localita, } } + /// + ///Represents the connection and commands used to retrieve and save data. + /// + [global::System.ComponentModel.DesignerCategoryAttribute("code")] + [global::System.ComponentModel.ToolboxItem(true)] + [global::System.ComponentModel.DataObjectAttribute(true)] + [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" + + ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public partial class RegGiacenzeTableAdapter : global::System.ComponentModel.Component { + + private global::System.Data.SqlClient.SqlDataAdapter _adapter; + + private global::System.Data.SqlClient.SqlConnection _connection; + + private global::System.Data.SqlClient.SqlTransaction _transaction; + + private global::System.Data.SqlClient.SqlCommand[] _commandCollection; + + private bool _clearBeforeFill; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public RegGiacenzeTableAdapter() { + this.ClearBeforeFill = true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter { + get { + if ((this._adapter == null)) { + this.InitAdapter(); + } + return this._adapter; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + internal global::System.Data.SqlClient.SqlConnection Connection { + get { + if ((this._connection == null)) { + this.InitConnection(); + } + return this._connection; + } + set { + this._connection = value; + if ((this.Adapter.InsertCommand != null)) { + this.Adapter.InsertCommand.Connection = value; + } + if ((this.Adapter.DeleteCommand != null)) { + this.Adapter.DeleteCommand.Connection = value; + } + if ((this.Adapter.UpdateCommand != null)) { + this.Adapter.UpdateCommand.Connection = value; + } + for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { + if ((this.CommandCollection[i] != null)) { + ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value; + } + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + internal global::System.Data.SqlClient.SqlTransaction Transaction { + get { + return this._transaction; + } + set { + this._transaction = value; + for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { + this.CommandCollection[i].Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.DeleteCommand != null))) { + this.Adapter.DeleteCommand.Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.InsertCommand != null))) { + this.Adapter.InsertCommand.Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.UpdateCommand != null))) { + this.Adapter.UpdateCommand.Transaction = this._transaction; + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + protected global::System.Data.SqlClient.SqlCommand[] CommandCollection { + get { + if ((this._commandCollection == null)) { + this.InitCommandCollection(); + } + return this._commandCollection; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public bool ClearBeforeFill { + get { + return this._clearBeforeFill; + } + set { + this._clearBeforeFill = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + private void InitAdapter() { + this._adapter = new global::System.Data.SqlClient.SqlDataAdapter(); + global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping(); + tableMapping.SourceTable = "Table"; + tableMapping.DataSetTable = "RegGiacenze"; + tableMapping.ColumnMappings.Add("IdxRG", "IdxRG"); + tableMapping.ColumnMappings.Add("IdxOdl", "IdxOdl"); + tableMapping.ColumnMappings.Add("IdentRG", "IdentRG"); + tableMapping.ColumnMappings.Add("Product", "Product"); + tableMapping.ColumnMappings.Add("Variety", "Variety"); + tableMapping.ColumnMappings.Add("Supplier", "Supplier"); + tableMapping.ColumnMappings.Add("ExtDoc", "ExtDoc"); + tableMapping.ColumnMappings.Add("DateRif", "DateRif"); + tableMapping.ColumnMappings.Add("QtyTot", "QtyTot"); + tableMapping.ColumnMappings.Add("NumPack", "NumPack"); + tableMapping.ColumnMappings.Add("Notes", "Notes"); + this._adapter.TableMappings.Add(tableMapping); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + private void InitConnection() { + this._connection = new global::System.Data.SqlClient.SqlConnection(); + this._connection.ConnectionString = global::MagData.Properties.Settings.Default.MoonPro_MAGConnectionString; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + private void InitCommandCollection() { + this._commandCollection = new global::System.Data.SqlClient.SqlCommand[3]; + this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[0].Connection = this.Connection; + this._commandCollection[0].CommandText = "SELECT *\r\nFROM RegGiacenze"; + this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; + this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[1].Connection = this.Connection; + this._commandCollection[1].CommandText = "dbo.stp_RG_DeleteByOdl"; + this._commandCollection[1].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxOdl", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[2].Connection = this.Connection; + this._commandCollection[2].CommandText = "dbo.stp_RG_InsertQuery"; + this._commandCollection[2].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxOdl", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdentRG", global::System.Data.SqlDbType.NVarChar, 250, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Product", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Variety", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Supplier", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ExtDoc", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DateRif", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@QtyTot", global::System.Data.SqlDbType.Float, 8, global::System.Data.ParameterDirection.Input, 53, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NumPack", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Notes", global::System.Data.SqlDbType.NVarChar, 500, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)] + public virtual int Fill(DS_Mag.RegGiacenzeDataTable dataTable) { + this.Adapter.SelectCommand = this.CommandCollection[0]; + if ((this.ClearBeforeFill == true)) { + dataTable.Clear(); + } + int returnValue = this.Adapter.Fill(dataTable); + return returnValue; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)] + public virtual DS_Mag.RegGiacenzeDataTable GetData() { + this.Adapter.SelectCommand = this.CommandCollection[0]; + DS_Mag.RegGiacenzeDataTable dataTable = new DS_Mag.RegGiacenzeDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int DeleteByOdl(global::System.Nullable IdxOdl) { + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[1]; + if ((IdxOdl.HasValue == true)) { + command.Parameters[1].Value = ((int)(IdxOdl.Value)); + } + else { + command.Parameters[1].Value = global::System.DBNull.Value; + } + global::System.Data.ConnectionState previousConnectionState = command.Connection.State; + if (((command.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + command.Connection.Open(); + } + int returnValue; + try { + returnValue = command.ExecuteNonQuery(); + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + command.Connection.Close(); + } + } + return returnValue; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int InsertQuery(global::System.Nullable IdxOdl, string IdentRG, string Product, string Variety, string Supplier, string ExtDoc, global::System.Nullable DateRif, global::System.Nullable QtyTot, global::System.Nullable NumPack, string Notes) { + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[2]; + if ((IdxOdl.HasValue == true)) { + command.Parameters[1].Value = ((int)(IdxOdl.Value)); + } + else { + command.Parameters[1].Value = global::System.DBNull.Value; + } + if ((IdentRG == null)) { + command.Parameters[2].Value = global::System.DBNull.Value; + } + else { + command.Parameters[2].Value = ((string)(IdentRG)); + } + if ((Product == null)) { + command.Parameters[3].Value = global::System.DBNull.Value; + } + else { + command.Parameters[3].Value = ((string)(Product)); + } + if ((Variety == null)) { + command.Parameters[4].Value = global::System.DBNull.Value; + } + else { + command.Parameters[4].Value = ((string)(Variety)); + } + if ((Supplier == null)) { + command.Parameters[5].Value = global::System.DBNull.Value; + } + else { + command.Parameters[5].Value = ((string)(Supplier)); + } + if ((ExtDoc == null)) { + command.Parameters[6].Value = global::System.DBNull.Value; + } + else { + command.Parameters[6].Value = ((string)(ExtDoc)); + } + if ((DateRif.HasValue == true)) { + command.Parameters[7].Value = ((System.DateTime)(DateRif.Value)); + } + else { + command.Parameters[7].Value = global::System.DBNull.Value; + } + if ((QtyTot.HasValue == true)) { + command.Parameters[8].Value = ((double)(QtyTot.Value)); + } + else { + command.Parameters[8].Value = global::System.DBNull.Value; + } + if ((NumPack.HasValue == true)) { + command.Parameters[9].Value = ((int)(NumPack.Value)); + } + else { + command.Parameters[9].Value = global::System.DBNull.Value; + } + if ((Notes == null)) { + command.Parameters[10].Value = global::System.DBNull.Value; + } + else { + command.Parameters[10].Value = ((string)(Notes)); + } + global::System.Data.ConnectionState previousConnectionState = command.Connection.State; + if (((command.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + command.Connection.Open(); + } + int returnValue; + try { + returnValue = command.ExecuteNonQuery(); + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + command.Connection.Close(); + } + } + return returnValue; + } + } + /// ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios /// diff --git a/MagData/DS_Mag.xsd b/MagData/DS_Mag.xsd index f8d31969..f87307a4 100644 --- a/MagData/DS_Mag.xsd +++ b/MagData/DS_Mag.xsd @@ -912,6 +912,65 @@ SELECT CodCliente, CodDestinazione, DescDestinazione, Indirizzo, Cap, Localita, + + + + + + SELECT * +FROM RegGiacenze + + + + + + + + + + + + + + + + + + + + + + + dbo.stp_RG_DeleteByOdl + + + + + + + + + + + dbo.stp_RG_InsertQuery + + + + + + + + + + + + + + + + + + @@ -1376,7 +1435,7 @@ SELECT CodCliente, CodDestinazione, DescDestinazione, Indirizzo, Cap, Localita, - + @@ -1567,6 +1626,59 @@ SELECT CodCliente, CodDestinazione, DescDestinazione, Indirizzo, Cap, Localita, + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -1615,5 +1727,9 @@ SELECT CodCliente, CodDestinazione, DescDestinazione, Indirizzo, Cap, Localita, + + + + \ No newline at end of file diff --git a/MagData/DS_Mag.xss b/MagData/DS_Mag.xss index 87bd3297..7f9120e0 100644 --- a/MagData/DS_Mag.xss +++ b/MagData/DS_Mag.xss @@ -6,17 +6,18 @@ --> - - - - - - - - - - - + + + + + + + + + + + + \ No newline at end of file diff --git a/MagData/MagData.csproj b/MagData/MagData.csproj index 81bfb0d3..d8e4ece1 100644 --- a/MagData/MagData.csproj +++ b/MagData/MagData.csproj @@ -268,6 +268,12 @@ + + + {D07211B6-CF67-4C7F-8040-5B8C3B12BB4B} + MapoSDK + + diff --git a/MagData/MagDataLayer.cs b/MagData/MagDataLayer.cs index 14aac3a8..70e1456e 100644 --- a/MagData/MagDataLayer.cs +++ b/MagData/MagDataLayer.cs @@ -1,4 +1,5 @@ -using Newtonsoft.Json; +using MapoSDK; +using Newtonsoft.Json; using SteamWare.IO; using SteamWare.Reports; using System; @@ -54,6 +55,7 @@ namespace MagData public DS_PackListTableAdapters.OrdersListTableAdapter taOList; public DS_ReportTableAdapters.PrintJobQueueTableAdapter taPJQ; public DS_PackListTableAdapters.PackListTableAdapter taPList; + public DS_MagTableAdapters.RegGiacenzeTableAdapter taRegGia; public DS_ReportTableAdapters.stp_prt_ReportPackListTableAdapter taRepPL; public DS_ReportTableAdapters.stp_prt_ReportPackListFullTableAdapter taRepPLFull; @@ -238,139 +240,6 @@ namespace MagData #endregion Public Properties - #region Private Methods - - /// - /// Verifica esistenza record da NOME CODA stampa + tipoDoc + chiave... - /// - /// - /// - /// - /// - private bool checkDoc(string printQueue, tipoDocumento tipoDoc, string keyParam) - { - bool answ = false; - reportRichiesto tipoReport = reportRichiesto.ND; - - // se ho un TIPO DOC --> cerco - if (tipoDoc != tipoDocumento.docND) - { - //cerco in setup queueConf - var repConf = reportConfRedis.Find(a => a.name == $"{tipoDoc}"); - if (repConf != null) - { - try - { - tipoReport = (reportRichiesto)Enum.Parse(typeof(reportRichiesto), repConf.template.Replace(".rdlc", "")); - } - catch - { } - } - } - // se non trovato esplicitamente - if (tipoReport == reportRichiesto.ND) - { - //cerco in setup queueConf - var coda = queueConfRedis.Find(a => a.name == printQueue); - if (coda != null) - { - try - { - tipoReport = (reportRichiesto)Enum.Parse(typeof(reportRichiesto), coda.template.Replace(".rdlc", "")); - } - catch - { } - } - } - // ricerco! - switch (tipoReport) - { - case reportRichiesto.CartellinoFinitiOdette: - var tabFiniti = taCFOdette.GetData(keyParam); - answ = tabFiniti.Count > 0; - break; - - case reportRichiesto.CartellinoPedane: - var tabPedane = taCPed.GetData(keyParam); - answ = tabPedane.Count > 0; - break; - - case reportRichiesto.CartellinoSemilavorati: - var tabSemilav = taCSemil.GetData(keyParam); - answ = tabSemilav.Count > 0; - break; - - case reportRichiesto.ReportPackList: - var tabPackList = taRepPL.GetData(keyParam, false); - answ = tabPackList.Count > 0; - break; - - case reportRichiesto.ReportPackListFull: - var tabPackListFull = taRepPLFull.GetData(keyParam, false); - answ = tabPackListFull.Count > 0; - break; - - default: - break; - } - return answ; - } - - private void initTA() - { - // reports - taPJQ = new DS_ReportTableAdapters.PrintJobQueueTableAdapter(); - taCFOdette = new DS_ReportTableAdapters.stp_prt_CartellinoFinitiOdetteTableAdapter(); - taCPed = new DS_ReportTableAdapters.stp_prt_CartellinoPedaneTableAdapter(); - taCSemil = new DS_ReportTableAdapters.stp_prt_CartellinoSemilavoratiTableAdapter(); - taRepPL = new DS_ReportTableAdapters.stp_prt_ReportPackListTableAdapter(); - taRepPLFull = new DS_ReportTableAdapters.stp_prt_ReportPackListFullTableAdapter(); - - taAA = new DS_MagTableAdapters.AnagArtTableAdapter(); - taAA2C = new DS_MagTableAdapters.AnagArticoli2ClientiTableAdapter(); - taACF = new DS_MagTableAdapters.AnagClientiTableAdapter(); - taADC= new DS_MagTableAdapters.AnagDestinClientiTableAdapter(); - taEA2U = new DS_MagTableAdapters.ElencoAL2UDCTableAdapter(); - taEAL = new DS_MagTableAdapters.ElencoALTableAdapter(); - taEL = new DS_MagTableAdapters.ElencoLottiTableAdapter(); - taEP2Q = new DS_MagTableAdapters.Elencopost2QueueTableAdapter(); - taEUdc = new DS_MagTableAdapters.ElencoUdcTableAdapter(); - taODL = new DS_MagTableAdapters.ODLTableAdapter(); - - taEOL = new DS_PackListTableAdapters.ExtOrdersListTableAdapter(); - taOList = new DS_PackListTableAdapters.OrdersListTableAdapter(); - taPList = new DS_PackListTableAdapters.PackListTableAdapter(); - } - - private void setupConnString() - { - string connString = memLayer.ML.CRS("MagDataConnectionString"); - // reports - taPJQ.Connection.ConnectionString = connString; - taCFOdette.Connection.ConnectionString = connString; - taCPed.Connection.ConnectionString = connString; - taCSemil.Connection.ConnectionString = connString; - taRepPL.Connection.ConnectionString = connString; - taRepPLFull.Connection.ConnectionString = connString; - - taAA.Connection.ConnectionString = connString; - taAA2C.Connection.ConnectionString = connString; - taACF.Connection.ConnectionString = connString; - taADC.Connection.ConnectionString = connString; - taEA2U.Connection.ConnectionString = connString; - taEAL.Connection.ConnectionString = connString; - taEL.Connection.ConnectionString = connString; - taEP2Q.Connection.ConnectionString = connString; - taEUdc.Connection.ConnectionString = connString; - taODL.Connection.ConnectionString = connString; - - taEOL.Connection.ConnectionString = connString; - taOList.Connection.ConnectionString = connString; - taPList.Connection.ConnectionString = connString; - } - - #endregion Private Methods - #region Public Methods /// @@ -501,11 +370,59 @@ namespace MagData return answ; } + /// + /// Esegue svuotamento giacenze dato elenco ODL... + /// + /// + /// + public bool resetRegGiacByOdl(List listODL) + { + bool fatto = false; + if (listODL.Count > 0) + { + foreach (var item in listODL) + { + taRegGia.DeleteByOdl(item); + fatto = true; + } + } + else + { + fatto = true; + } + return fatto; + } + + /// + /// Esegue salvataggio records giacenze... + /// + /// + /// + public bool salvaRegGiac(List listGiacenze) + { + bool fatto = false; + if (listGiacenze.Count > 0) + { + foreach (var item in listGiacenze) + { + taRegGia.InsertQuery(item.IdxODL, item.IdentRG, item.Product, item.Variety, item.Supplier, item.ExtDoc, item.DateRif, item.QtyTot, item.NumPack, item.Notes); + fatto = true; + } + } + else + { + fatto = true; + } + return fatto; + } + /// /// effettua la stampa di un documento /// /// Codice UNIVOCO del documento - /// stampante specifica (da postazione o std da web.config, a cura dell'utente + /// + /// stampante specifica (da postazione o std da web.config, a cura dell'utente + /// /// Tipo documento richiesto /// IP del chiamante /// @@ -536,5 +453,140 @@ namespace MagData } #endregion Public Methods + + #region Private Methods + + /// + /// Verifica esistenza record da NOME CODA stampa + tipoDoc + chiave... + /// + /// + /// + /// + /// + private bool checkDoc(string printQueue, tipoDocumento tipoDoc, string keyParam) + { + bool answ = false; + reportRichiesto tipoReport = reportRichiesto.ND; + + // se ho un TIPO DOC --> cerco + if (tipoDoc != tipoDocumento.docND) + { + //cerco in setup queueConf + var repConf = reportConfRedis.Find(a => a.name == $"{tipoDoc}"); + if (repConf != null) + { + try + { + tipoReport = (reportRichiesto)Enum.Parse(typeof(reportRichiesto), repConf.template.Replace(".rdlc", "")); + } + catch + { } + } + } + // se non trovato esplicitamente + if (tipoReport == reportRichiesto.ND) + { + //cerco in setup queueConf + var coda = queueConfRedis.Find(a => a.name == printQueue); + if (coda != null) + { + try + { + tipoReport = (reportRichiesto)Enum.Parse(typeof(reportRichiesto), coda.template.Replace(".rdlc", "")); + } + catch + { } + } + } + // ricerco! + switch (tipoReport) + { + case reportRichiesto.CartellinoFinitiOdette: + var tabFiniti = taCFOdette.GetData(keyParam); + answ = tabFiniti.Count > 0; + break; + + case reportRichiesto.CartellinoPedane: + var tabPedane = taCPed.GetData(keyParam); + answ = tabPedane.Count > 0; + break; + + case reportRichiesto.CartellinoSemilavorati: + var tabSemilav = taCSemil.GetData(keyParam); + answ = tabSemilav.Count > 0; + break; + + case reportRichiesto.ReportPackList: + var tabPackList = taRepPL.GetData(keyParam, false); + answ = tabPackList.Count > 0; + break; + + case reportRichiesto.ReportPackListFull: + var tabPackListFull = taRepPLFull.GetData(keyParam, false); + answ = tabPackListFull.Count > 0; + break; + + default: + break; + } + return answ; + } + + private void initTA() + { + // reports + taPJQ = new DS_ReportTableAdapters.PrintJobQueueTableAdapter(); + taCFOdette = new DS_ReportTableAdapters.stp_prt_CartellinoFinitiOdetteTableAdapter(); + taCPed = new DS_ReportTableAdapters.stp_prt_CartellinoPedaneTableAdapter(); + taCSemil = new DS_ReportTableAdapters.stp_prt_CartellinoSemilavoratiTableAdapter(); + taRepPL = new DS_ReportTableAdapters.stp_prt_ReportPackListTableAdapter(); + taRepPLFull = new DS_ReportTableAdapters.stp_prt_ReportPackListFullTableAdapter(); + + taAA = new DS_MagTableAdapters.AnagArtTableAdapter(); + taAA2C = new DS_MagTableAdapters.AnagArticoli2ClientiTableAdapter(); + taACF = new DS_MagTableAdapters.AnagClientiTableAdapter(); + taADC = new DS_MagTableAdapters.AnagDestinClientiTableAdapter(); + taEA2U = new DS_MagTableAdapters.ElencoAL2UDCTableAdapter(); + taEAL = new DS_MagTableAdapters.ElencoALTableAdapter(); + taEL = new DS_MagTableAdapters.ElencoLottiTableAdapter(); + taEP2Q = new DS_MagTableAdapters.Elencopost2QueueTableAdapter(); + taEUdc = new DS_MagTableAdapters.ElencoUdcTableAdapter(); + taODL = new DS_MagTableAdapters.ODLTableAdapter(); + taRegGia = new DS_MagTableAdapters.RegGiacenzeTableAdapter(); + + taEOL = new DS_PackListTableAdapters.ExtOrdersListTableAdapter(); + taOList = new DS_PackListTableAdapters.OrdersListTableAdapter(); + taPList = new DS_PackListTableAdapters.PackListTableAdapter(); + } + + private void setupConnString() + { + string connString = memLayer.ML.CRS("MagDataConnectionString"); + // reports + taPJQ.Connection.ConnectionString = connString; + taCFOdette.Connection.ConnectionString = connString; + taCPed.Connection.ConnectionString = connString; + taCSemil.Connection.ConnectionString = connString; + taRepPL.Connection.ConnectionString = connString; + taRepPLFull.Connection.ConnectionString = connString; + + taAA.Connection.ConnectionString = connString; + taAA2C.Connection.ConnectionString = connString; + taACF.Connection.ConnectionString = connString; + taADC.Connection.ConnectionString = connString; + taEA2U.Connection.ConnectionString = connString; + taEAL.Connection.ConnectionString = connString; + taEL.Connection.ConnectionString = connString; + taEP2Q.Connection.ConnectionString = connString; + taEUdc.Connection.ConnectionString = connString; + taODL.Connection.ConnectionString = connString; + taRegGia.Connection.ConnectionString = connString; + + taEOL.Connection.ConnectionString = connString; + taOList.Connection.ConnectionString = connString; + taPList.Connection.ConnectionString = connString; + } + + #endregion Private Methods } } \ No newline at end of file diff --git a/MapoDb/DS_DossPar.Designer.cs b/MapoDb/DS_DossPar.Designer.cs new file mode 100644 index 00000000..fea382cc --- /dev/null +++ b/MapoDb/DS_DossPar.Designer.cs @@ -0,0 +1,1658 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +#pragma warning disable 1591 + +namespace MapoDb { + + + /// + ///Represents a strongly typed in-memory cache of data. + /// + [global::System.Serializable()] + [global::System.ComponentModel.DesignerCategoryAttribute("code")] + [global::System.ComponentModel.ToolboxItem(true)] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedDataSetSchema")] + [global::System.Xml.Serialization.XmlRootAttribute("DS_DossPar")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")] + public partial class DS_DossPar : global::System.Data.DataSet { + + private DossiersDataTable tableDossiers; + + private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public DS_DossPar() { + this.BeginInit(); + this.InitClass(); + global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged); + base.Tables.CollectionChanged += schemaChangedHandler; + base.Relations.CollectionChanged += schemaChangedHandler; + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + protected DS_DossPar(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : + base(info, context, false) { + if ((this.IsBinarySerialized(info, context) == true)) { + this.InitVars(false); + global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler1 = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged); + this.Tables.CollectionChanged += schemaChangedHandler1; + this.Relations.CollectionChanged += schemaChangedHandler1; + return; + } + string strSchema = ((string)(info.GetValue("XmlSchema", typeof(string)))); + if ((this.DetermineSchemaSerializationMode(info, context) == global::System.Data.SchemaSerializationMode.IncludeSchema)) { + global::System.Data.DataSet ds = new global::System.Data.DataSet(); + ds.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema))); + if ((ds.Tables["Dossiers"] != null)) { + base.Tables.Add(new DossiersDataTable(ds.Tables["Dossiers"])); + } + this.DataSetName = ds.DataSetName; + this.Prefix = ds.Prefix; + this.Namespace = ds.Namespace; + this.Locale = ds.Locale; + this.CaseSensitive = ds.CaseSensitive; + this.EnforceConstraints = ds.EnforceConstraints; + this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add); + this.InitVars(); + } + else { + this.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema))); + } + this.GetSerializationData(info, context); + global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged); + base.Tables.CollectionChanged += schemaChangedHandler; + this.Relations.CollectionChanged += schemaChangedHandler; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] + public DossiersDataTable Dossiers { + get { + return this.tableDossiers; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + [global::System.ComponentModel.BrowsableAttribute(true)] + [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Visible)] + public override global::System.Data.SchemaSerializationMode SchemaSerializationMode { + get { + return this._schemaSerializationMode; + } + set { + this._schemaSerializationMode = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)] + public new global::System.Data.DataTableCollection Tables { + get { + return base.Tables; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)] + public new global::System.Data.DataRelationCollection Relations { + get { + return base.Relations; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + protected override void InitializeDerivedDataSet() { + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public override global::System.Data.DataSet Clone() { + DS_DossPar cln = ((DS_DossPar)(base.Clone())); + cln.InitVars(); + cln.SchemaSerializationMode = this.SchemaSerializationMode; + return cln; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + protected override bool ShouldSerializeTables() { + return false; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + protected override bool ShouldSerializeRelations() { + return false; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + protected override void ReadXmlSerializable(global::System.Xml.XmlReader reader) { + if ((this.DetermineSchemaSerializationMode(reader) == global::System.Data.SchemaSerializationMode.IncludeSchema)) { + this.Reset(); + global::System.Data.DataSet ds = new global::System.Data.DataSet(); + ds.ReadXml(reader); + if ((ds.Tables["Dossiers"] != null)) { + base.Tables.Add(new DossiersDataTable(ds.Tables["Dossiers"])); + } + this.DataSetName = ds.DataSetName; + this.Prefix = ds.Prefix; + this.Namespace = ds.Namespace; + this.Locale = ds.Locale; + this.CaseSensitive = ds.CaseSensitive; + this.EnforceConstraints = ds.EnforceConstraints; + this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add); + this.InitVars(); + } + else { + this.ReadXml(reader); + this.InitVars(); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + protected override global::System.Xml.Schema.XmlSchema GetSchemaSerializable() { + global::System.IO.MemoryStream stream = new global::System.IO.MemoryStream(); + this.WriteXmlSchema(new global::System.Xml.XmlTextWriter(stream, null)); + stream.Position = 0; + return global::System.Xml.Schema.XmlSchema.Read(new global::System.Xml.XmlTextReader(stream), null); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + internal void InitVars() { + this.InitVars(true); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + internal void InitVars(bool initTable) { + this.tableDossiers = ((DossiersDataTable)(base.Tables["Dossiers"])); + if ((initTable == true)) { + if ((this.tableDossiers != null)) { + this.tableDossiers.InitVars(); + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + private void InitClass() { + this.DataSetName = "DS_DossPar"; + this.Prefix = ""; + this.Namespace = "http://tempuri.org/DS_DossPar.xsd"; + this.EnforceConstraints = true; + this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema; + this.tableDossiers = new DossiersDataTable(); + base.Tables.Add(this.tableDossiers); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + private bool ShouldSerializeDossiers() { + return false; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) { + if ((e.Action == global::System.ComponentModel.CollectionChangeAction.Remove)) { + this.InitVars(); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedDataSetSchema(global::System.Xml.Schema.XmlSchemaSet xs) { + DS_DossPar ds = new DS_DossPar(); + global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType(); + global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence(); + global::System.Xml.Schema.XmlSchemaAny any = new global::System.Xml.Schema.XmlSchemaAny(); + any.Namespace = ds.Namespace; + sequence.Items.Add(any); + type.Particle = sequence; + global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable(); + if (xs.Contains(dsSchema.TargetNamespace)) { + global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream(); + global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream(); + try { + global::System.Xml.Schema.XmlSchema schema = null; + dsSchema.Write(s1); + for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) { + schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current)); + s2.SetLength(0); + schema.Write(s2); + if ((s1.Length == s2.Length)) { + s1.Position = 0; + s2.Position = 0; + for (; ((s1.Position != s1.Length) + && (s1.ReadByte() == s2.ReadByte())); ) { + ; + } + if ((s1.Position == s1.Length)) { + return type; + } + } + } + } + finally { + if ((s1 != null)) { + s1.Close(); + } + if ((s2 != null)) { + s2.Close(); + } + } + } + xs.Add(dsSchema); + return type; + } + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public delegate void DossiersRowChangeEventHandler(object sender, DossiersRowChangeEvent e); + + /// + ///Represents the strongly named DataTable class. + /// + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class DossiersDataTable : global::System.Data.TypedTableBase { + + private global::System.Data.DataColumn columnIdxDossier; + + private global::System.Data.DataColumn columnIdxMacchina; + + private global::System.Data.DataColumn columnDtRif; + + private global::System.Data.DataColumn columnIdxODL; + + private global::System.Data.DataColumn columnCodArticolo; + + private global::System.Data.DataColumn columnDataType; + + private global::System.Data.DataColumn columnValore; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public DossiersDataTable() { + this.TableName = "Dossiers"; + this.BeginInit(); + this.InitClass(); + this.EndInit(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + internal DossiersDataTable(global::System.Data.DataTable table) { + this.TableName = table.TableName; + if ((table.CaseSensitive != table.DataSet.CaseSensitive)) { + this.CaseSensitive = table.CaseSensitive; + } + if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) { + this.Locale = table.Locale; + } + if ((table.Namespace != table.DataSet.Namespace)) { + this.Namespace = table.Namespace; + } + this.Prefix = table.Prefix; + this.MinimumCapacity = table.MinimumCapacity; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + protected DossiersDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : + base(info, context) { + this.InitVars(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public global::System.Data.DataColumn IdxDossierColumn { + get { + return this.columnIdxDossier; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public global::System.Data.DataColumn IdxMacchinaColumn { + get { + return this.columnIdxMacchina; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public global::System.Data.DataColumn DtRifColumn { + get { + return this.columnDtRif; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public global::System.Data.DataColumn IdxODLColumn { + get { + return this.columnIdxODL; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public global::System.Data.DataColumn CodArticoloColumn { + get { + return this.columnCodArticolo; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public global::System.Data.DataColumn DataTypeColumn { + get { + return this.columnDataType; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public global::System.Data.DataColumn ValoreColumn { + get { + return this.columnValore; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + public int Count { + get { + return this.Rows.Count; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public DossiersRow this[int index] { + get { + return ((DossiersRow)(this.Rows[index])); + } + } + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public event DossiersRowChangeEventHandler DossiersRowChanging; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public event DossiersRowChangeEventHandler DossiersRowChanged; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public event DossiersRowChangeEventHandler DossiersRowDeleting; + + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public event DossiersRowChangeEventHandler DossiersRowDeleted; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public void AddDossiersRow(DossiersRow row) { + this.Rows.Add(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public DossiersRow AddDossiersRow(string IdxMacchina, System.DateTime DtRif, int IdxODL, string CodArticolo, string DataType, string Valore) { + DossiersRow rowDossiersRow = ((DossiersRow)(this.NewRow())); + object[] columnValuesArray = new object[] { + null, + IdxMacchina, + DtRif, + IdxODL, + CodArticolo, + DataType, + Valore}; + rowDossiersRow.ItemArray = columnValuesArray; + this.Rows.Add(rowDossiersRow); + return rowDossiersRow; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public DossiersRow FindByIdxDossier(int IdxDossier) { + return ((DossiersRow)(this.Rows.Find(new object[] { + IdxDossier}))); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public override global::System.Data.DataTable Clone() { + DossiersDataTable cln = ((DossiersDataTable)(base.Clone())); + cln.InitVars(); + return cln; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + protected override global::System.Data.DataTable CreateInstance() { + return new DossiersDataTable(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + internal void InitVars() { + this.columnIdxDossier = base.Columns["IdxDossier"]; + this.columnIdxMacchina = base.Columns["IdxMacchina"]; + this.columnDtRif = base.Columns["DtRif"]; + this.columnIdxODL = base.Columns["IdxODL"]; + this.columnCodArticolo = base.Columns["CodArticolo"]; + this.columnDataType = base.Columns["DataType"]; + this.columnValore = base.Columns["Valore"]; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + private void InitClass() { + this.columnIdxDossier = new global::System.Data.DataColumn("IdxDossier", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnIdxDossier); + this.columnIdxMacchina = new global::System.Data.DataColumn("IdxMacchina", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnIdxMacchina); + this.columnDtRif = new global::System.Data.DataColumn("DtRif", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnDtRif); + this.columnIdxODL = new global::System.Data.DataColumn("IdxODL", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnIdxODL); + this.columnCodArticolo = new global::System.Data.DataColumn("CodArticolo", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnCodArticolo); + this.columnDataType = new global::System.Data.DataColumn("DataType", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnDataType); + this.columnValore = new global::System.Data.DataColumn("Valore", typeof(string), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnValore); + this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] { + this.columnIdxDossier}, true)); + this.columnIdxDossier.AutoIncrement = true; + this.columnIdxDossier.AutoIncrementSeed = -1; + this.columnIdxDossier.AutoIncrementStep = -1; + this.columnIdxDossier.AllowDBNull = false; + this.columnIdxDossier.ReadOnly = true; + this.columnIdxDossier.Unique = true; + this.columnIdxMacchina.AllowDBNull = false; + this.columnIdxMacchina.MaxLength = 50; + this.columnDtRif.AllowDBNull = false; + this.columnIdxODL.AllowDBNull = false; + this.columnCodArticolo.AllowDBNull = false; + this.columnCodArticolo.MaxLength = 50; + this.columnDataType.AllowDBNull = false; + this.columnDataType.MaxLength = 50; + this.columnValore.AllowDBNull = false; + this.columnValore.MaxLength = 2147483647; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public DossiersRow NewDossiersRow() { + return ((DossiersRow)(this.NewRow())); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { + return new DossiersRow(builder); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + protected override global::System.Type GetRowType() { + return typeof(DossiersRow); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanged(e); + if ((this.DossiersRowChanged != null)) { + this.DossiersRowChanged(this, new DossiersRowChangeEvent(((DossiersRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowChanging(e); + if ((this.DossiersRowChanging != null)) { + this.DossiersRowChanging(this, new DossiersRowChangeEvent(((DossiersRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleted(e); + if ((this.DossiersRowDeleted != null)) { + this.DossiersRowDeleted(this, new DossiersRowChangeEvent(((DossiersRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { + base.OnRowDeleting(e); + if ((this.DossiersRowDeleting != null)) { + this.DossiersRowDeleting(this, new DossiersRowChangeEvent(((DossiersRow)(e.Row)), e.Action)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public void RemoveDossiersRow(DossiersRow row) { + this.Rows.Remove(row); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) { + global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType(); + global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence(); + DS_DossPar ds = new DS_DossPar(); + global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny(); + any1.Namespace = "http://www.w3.org/2001/XMLSchema"; + any1.MinOccurs = new decimal(0); + any1.MaxOccurs = decimal.MaxValue; + any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any1); + global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny(); + any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"; + any2.MinOccurs = new decimal(1); + any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; + sequence.Items.Add(any2); + global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute1.Name = "namespace"; + attribute1.FixedValue = ds.Namespace; + type.Attributes.Add(attribute1); + global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute(); + attribute2.Name = "tableTypeName"; + attribute2.FixedValue = "DossiersDataTable"; + type.Attributes.Add(attribute2); + type.Particle = sequence; + global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable(); + if (xs.Contains(dsSchema.TargetNamespace)) { + global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream(); + global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream(); + try { + global::System.Xml.Schema.XmlSchema schema = null; + dsSchema.Write(s1); + for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) { + schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current)); + s2.SetLength(0); + schema.Write(s2); + if ((s1.Length == s2.Length)) { + s1.Position = 0; + s2.Position = 0; + for (; ((s1.Position != s1.Length) + && (s1.ReadByte() == s2.ReadByte())); ) { + ; + } + if ((s1.Position == s1.Length)) { + return type; + } + } + } + } + finally { + if ((s1 != null)) { + s1.Close(); + } + if ((s2 != null)) { + s2.Close(); + } + } + } + xs.Add(dsSchema); + return type; + } + } + + /// + ///Represents strongly named DataRow class. + /// + public partial class DossiersRow : global::System.Data.DataRow { + + private DossiersDataTable tableDossiers; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + internal DossiersRow(global::System.Data.DataRowBuilder rb) : + base(rb) { + this.tableDossiers = ((DossiersDataTable)(this.Table)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public int IdxDossier { + get { + return ((int)(this[this.tableDossiers.IdxDossierColumn])); + } + set { + this[this.tableDossiers.IdxDossierColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public string IdxMacchina { + get { + return ((string)(this[this.tableDossiers.IdxMacchinaColumn])); + } + set { + this[this.tableDossiers.IdxMacchinaColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public System.DateTime DtRif { + get { + return ((global::System.DateTime)(this[this.tableDossiers.DtRifColumn])); + } + set { + this[this.tableDossiers.DtRifColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public int IdxODL { + get { + return ((int)(this[this.tableDossiers.IdxODLColumn])); + } + set { + this[this.tableDossiers.IdxODLColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public string CodArticolo { + get { + return ((string)(this[this.tableDossiers.CodArticoloColumn])); + } + set { + this[this.tableDossiers.CodArticoloColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public string DataType { + get { + return ((string)(this[this.tableDossiers.DataTypeColumn])); + } + set { + this[this.tableDossiers.DataTypeColumn] = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public string Valore { + get { + return ((string)(this[this.tableDossiers.ValoreColumn])); + } + set { + this[this.tableDossiers.ValoreColumn] = value; + } + } + } + + /// + ///Row event argument class + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public class DossiersRowChangeEvent : global::System.EventArgs { + + private DossiersRow eventRow; + + private global::System.Data.DataRowAction eventAction; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public DossiersRowChangeEvent(DossiersRow row, global::System.Data.DataRowAction action) { + this.eventRow = row; + this.eventAction = action; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public DossiersRow Row { + get { + return this.eventRow; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public global::System.Data.DataRowAction Action { + get { + return this.eventAction; + } + } + } + } +} +namespace MapoDb.DS_DossParTableAdapters { + + + /// + ///Represents the connection and commands used to retrieve and save data. + /// + [global::System.ComponentModel.DesignerCategoryAttribute("code")] + [global::System.ComponentModel.ToolboxItem(true)] + [global::System.ComponentModel.DataObjectAttribute(true)] + [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" + + ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public partial class DossiersTableAdapter : global::System.ComponentModel.Component { + + private global::System.Data.SqlClient.SqlDataAdapter _adapter; + + private global::System.Data.SqlClient.SqlConnection _connection; + + private global::System.Data.SqlClient.SqlTransaction _transaction; + + private global::System.Data.SqlClient.SqlCommand[] _commandCollection; + + private bool _clearBeforeFill; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public DossiersTableAdapter() { + this.ClearBeforeFill = true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter { + get { + if ((this._adapter == null)) { + this.InitAdapter(); + } + return this._adapter; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + internal global::System.Data.SqlClient.SqlConnection Connection { + get { + if ((this._connection == null)) { + this.InitConnection(); + } + return this._connection; + } + set { + this._connection = value; + if ((this.Adapter.InsertCommand != null)) { + this.Adapter.InsertCommand.Connection = value; + } + if ((this.Adapter.DeleteCommand != null)) { + this.Adapter.DeleteCommand.Connection = value; + } + if ((this.Adapter.UpdateCommand != null)) { + this.Adapter.UpdateCommand.Connection = value; + } + for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { + if ((this.CommandCollection[i] != null)) { + ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value; + } + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + internal global::System.Data.SqlClient.SqlTransaction Transaction { + get { + return this._transaction; + } + set { + this._transaction = value; + for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { + this.CommandCollection[i].Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.DeleteCommand != null))) { + this.Adapter.DeleteCommand.Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.InsertCommand != null))) { + this.Adapter.InsertCommand.Transaction = this._transaction; + } + if (((this.Adapter != null) + && (this.Adapter.UpdateCommand != null))) { + this.Adapter.UpdateCommand.Transaction = this._transaction; + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + protected global::System.Data.SqlClient.SqlCommand[] CommandCollection { + get { + if ((this._commandCollection == null)) { + this.InitCommandCollection(); + } + return this._commandCollection; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public bool ClearBeforeFill { + get { + return this._clearBeforeFill; + } + set { + this._clearBeforeFill = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + private void InitAdapter() { + this._adapter = new global::System.Data.SqlClient.SqlDataAdapter(); + global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping(); + tableMapping.SourceTable = "Table"; + tableMapping.DataSetTable = "Dossiers"; + tableMapping.ColumnMappings.Add("IdxDossier", "IdxDossier"); + tableMapping.ColumnMappings.Add("IdxMacchina", "IdxMacchina"); + tableMapping.ColumnMappings.Add("DtRif", "DtRif"); + tableMapping.ColumnMappings.Add("IdxODL", "IdxODL"); + tableMapping.ColumnMappings.Add("CodArticolo", "CodArticolo"); + tableMapping.ColumnMappings.Add("DataType", "DataType"); + tableMapping.ColumnMappings.Add("Valore", "Valore"); + this._adapter.TableMappings.Add(tableMapping); + this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.DeleteCommand.Connection = this.Connection; + this._adapter.DeleteCommand.CommandText = @"DELETE FROM [Dossiers] WHERE (([IdxDossier] = @Original_IdxDossier) AND ([IdxMacchina] = @Original_IdxMacchina) AND ([DtRif] = @Original_DtRif) AND ([IdxODL] = @Original_IdxODL) AND ([CodArticolo] = @Original_CodArticolo) AND ([DataType] = @Original_DataType))"; + this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxDossier", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxDossier", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxMacchina", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxMacchina", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DtRif", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DtRif", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxODL", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxODL", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodArticolo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodArticolo", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DataType", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataType", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.InsertCommand.Connection = this.Connection; + this._adapter.InsertCommand.CommandText = @"INSERT INTO [Dossiers] ([IdxMacchina], [DtRif], [IdxODL], [CodArticolo], [DataType], [Valore]) VALUES (@IdxMacchina, @DtRif, @IdxODL, @CodArticolo, @DataType, @Valore); +SELECT IdxDossier, IdxMacchina, DtRif, IdxODL, CodArticolo, DataType, Valore FROM Dossiers WHERE (IdxDossier = SCOPE_IDENTITY())"; + this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchina", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxMacchina", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DtRif", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DtRif", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxODL", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxODL", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodArticolo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodArticolo", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataType", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataType", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Valore", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Valore", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand(); + this._adapter.UpdateCommand.Connection = this.Connection; + this._adapter.UpdateCommand.CommandText = @"UPDATE [Dossiers] SET [IdxMacchina] = @IdxMacchina, [DtRif] = @DtRif, [IdxODL] = @IdxODL, [CodArticolo] = @CodArticolo, [DataType] = @DataType, [Valore] = @Valore WHERE (([IdxDossier] = @Original_IdxDossier) AND ([IdxMacchina] = @Original_IdxMacchina) AND ([DtRif] = @Original_DtRif) AND ([IdxODL] = @Original_IdxODL) AND ([CodArticolo] = @Original_CodArticolo) AND ([DataType] = @Original_DataType)); +SELECT IdxDossier, IdxMacchina, DtRif, IdxODL, CodArticolo, DataType, Valore FROM Dossiers WHERE (IdxDossier = @IdxDossier)"; + this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text; + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchina", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxMacchina", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DtRif", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DtRif", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxODL", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxODL", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodArticolo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodArticolo", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataType", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataType", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Valore", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Valore", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxDossier", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxDossier", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxMacchina", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxMacchina", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DtRif", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DtRif", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxODL", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxODL", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodArticolo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodArticolo", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DataType", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataType", global::System.Data.DataRowVersion.Original, false, null, "", "", "")); + this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxDossier", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "IdxDossier", global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + private void InitConnection() { + this._connection = new global::System.Data.SqlClient.SqlConnection(); + this._connection.ConnectionString = global::MapoDb.Properties.Settings.Default.MoonProConnectionString; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + private void InitCommandCollection() { + this._commandCollection = new global::System.Data.SqlClient.SqlCommand[4]; + this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[0].Connection = this.Connection; + this._commandCollection[0].CommandText = "SELECT *\r\nFROM Dossiers"; + this._commandCollection[0].CommandType = global::System.Data.CommandType.Text; + this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[1].Connection = this.Connection; + this._commandCollection[1].CommandText = "dbo.stp_DOSS_getLastByArt"; + this._commandCollection[1].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodArticolo", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[2].Connection = this.Connection; + this._commandCollection[2].CommandText = "dbo.stp_DOSS_getLastByMacch"; + this._commandCollection[2].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchina", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[3].Connection = this.Connection; + this._commandCollection[3].CommandText = "dbo.stp_DOSS_getLastByPODL"; + this._commandCollection[3].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)] + public virtual int Fill(DS_DossPar.DossiersDataTable dataTable) { + this.Adapter.SelectCommand = this.CommandCollection[0]; + if ((this.ClearBeforeFill == true)) { + dataTable.Clear(); + } + int returnValue = this.Adapter.Fill(dataTable); + return returnValue; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)] + public virtual DS_DossPar.DossiersDataTable GetData() { + this.Adapter.SelectCommand = this.CommandCollection[0]; + DS_DossPar.DossiersDataTable dataTable = new DS_DossPar.DossiersDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] + public virtual DS_DossPar.DossiersDataTable getLastByArt(string CodArticolo) { + this.Adapter.SelectCommand = this.CommandCollection[1]; + if ((CodArticolo == null)) { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = ((string)(CodArticolo)); + } + DS_DossPar.DossiersDataTable dataTable = new DS_DossPar.DossiersDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] + public virtual DS_DossPar.DossiersDataTable getLastByMacc(string IdxMacchina) { + this.Adapter.SelectCommand = this.CommandCollection[2]; + if ((IdxMacchina == null)) { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = ((string)(IdxMacchina)); + } + DS_DossPar.DossiersDataTable dataTable = new DS_DossPar.DossiersDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] + public virtual DS_DossPar.DossiersDataTable getLastByPODL() { + this.Adapter.SelectCommand = this.CommandCollection[3]; + DS_DossPar.DossiersDataTable dataTable = new DS_DossPar.DossiersDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(DS_DossPar.DossiersDataTable dataTable) { + return this.Adapter.Update(dataTable); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(DS_DossPar dataSet) { + return this.Adapter.Update(dataSet, "Dossiers"); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(global::System.Data.DataRow dataRow) { + return this.Adapter.Update(new global::System.Data.DataRow[] { + dataRow}); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int Update(global::System.Data.DataRow[] dataRows) { + return this.Adapter.Update(dataRows); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)] + public virtual int Delete(int Original_IdxDossier, string Original_IdxMacchina, System.DateTime Original_DtRif, int Original_IdxODL, string Original_CodArticolo, string Original_DataType) { + this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_IdxDossier)); + if ((Original_IdxMacchina == null)) { + throw new global::System.ArgumentNullException("Original_IdxMacchina"); + } + else { + this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_IdxMacchina)); + } + this.Adapter.DeleteCommand.Parameters[2].Value = ((System.DateTime)(Original_DtRif)); + this.Adapter.DeleteCommand.Parameters[3].Value = ((int)(Original_IdxODL)); + if ((Original_CodArticolo == null)) { + throw new global::System.ArgumentNullException("Original_CodArticolo"); + } + else { + this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_CodArticolo)); + } + if ((Original_DataType == null)) { + throw new global::System.ArgumentNullException("Original_DataType"); + } + else { + this.Adapter.DeleteCommand.Parameters[5].Value = ((string)(Original_DataType)); + } + global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State; + if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.DeleteCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.DeleteCommand.Connection.Close(); + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)] + public virtual int Insert(string IdxMacchina, System.DateTime DtRif, int IdxODL, string CodArticolo, string DataType, string Valore) { + if ((IdxMacchina == null)) { + throw new global::System.ArgumentNullException("IdxMacchina"); + } + else { + this.Adapter.InsertCommand.Parameters[0].Value = ((string)(IdxMacchina)); + } + this.Adapter.InsertCommand.Parameters[1].Value = ((System.DateTime)(DtRif)); + this.Adapter.InsertCommand.Parameters[2].Value = ((int)(IdxODL)); + if ((CodArticolo == null)) { + throw new global::System.ArgumentNullException("CodArticolo"); + } + else { + this.Adapter.InsertCommand.Parameters[3].Value = ((string)(CodArticolo)); + } + if ((DataType == null)) { + throw new global::System.ArgumentNullException("DataType"); + } + else { + this.Adapter.InsertCommand.Parameters[4].Value = ((string)(DataType)); + } + if ((Valore == null)) { + throw new global::System.ArgumentNullException("Valore"); + } + else { + this.Adapter.InsertCommand.Parameters[5].Value = ((string)(Valore)); + } + global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State; + if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.InsertCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.InsertCommand.Connection.Close(); + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)] + public virtual int Update(string IdxMacchina, System.DateTime DtRif, int IdxODL, string CodArticolo, string DataType, string Valore, int Original_IdxDossier, string Original_IdxMacchina, System.DateTime Original_DtRif, int Original_IdxODL, string Original_CodArticolo, string Original_DataType, int IdxDossier) { + if ((IdxMacchina == null)) { + throw new global::System.ArgumentNullException("IdxMacchina"); + } + else { + this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(IdxMacchina)); + } + this.Adapter.UpdateCommand.Parameters[1].Value = ((System.DateTime)(DtRif)); + this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(IdxODL)); + if ((CodArticolo == null)) { + throw new global::System.ArgumentNullException("CodArticolo"); + } + else { + this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(CodArticolo)); + } + if ((DataType == null)) { + throw new global::System.ArgumentNullException("DataType"); + } + else { + this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(DataType)); + } + if ((Valore == null)) { + throw new global::System.ArgumentNullException("Valore"); + } + else { + this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Valore)); + } + this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(Original_IdxDossier)); + if ((Original_IdxMacchina == null)) { + throw new global::System.ArgumentNullException("Original_IdxMacchina"); + } + else { + this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Original_IdxMacchina)); + } + this.Adapter.UpdateCommand.Parameters[8].Value = ((System.DateTime)(Original_DtRif)); + this.Adapter.UpdateCommand.Parameters[9].Value = ((int)(Original_IdxODL)); + if ((Original_CodArticolo == null)) { + throw new global::System.ArgumentNullException("Original_CodArticolo"); + } + else { + this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(Original_CodArticolo)); + } + if ((Original_DataType == null)) { + throw new global::System.ArgumentNullException("Original_DataType"); + } + else { + this.Adapter.UpdateCommand.Parameters[11].Value = ((string)(Original_DataType)); + } + this.Adapter.UpdateCommand.Parameters[12].Value = ((int)(IdxDossier)); + global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State; + if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + this.Adapter.UpdateCommand.Connection.Open(); + } + try { + int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery(); + return returnValue; + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + this.Adapter.UpdateCommand.Connection.Close(); + } + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)] + public virtual int Update(string IdxMacchina, System.DateTime DtRif, int IdxODL, string CodArticolo, string DataType, string Valore, int Original_IdxDossier, string Original_IdxMacchina, System.DateTime Original_DtRif, int Original_IdxODL, string Original_CodArticolo, string Original_DataType) { + return this.Update(IdxMacchina, DtRif, IdxODL, CodArticolo, DataType, Valore, Original_IdxDossier, Original_IdxMacchina, Original_DtRif, Original_IdxODL, Original_CodArticolo, Original_DataType, Original_IdxDossier); + } + } + + /// + ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios + /// + [global::System.ComponentModel.DesignerCategoryAttribute("code")] + [global::System.ComponentModel.ToolboxItem(true)] + [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerDesigner, Microsoft.VSD" + + "esigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapterManager")] + public partial class TableAdapterManager : global::System.ComponentModel.Component { + + private UpdateOrderOption _updateOrder; + + private DossiersTableAdapter _dossiersTableAdapter; + + private bool _backupDataSetBeforeUpdate; + + private global::System.Data.IDbConnection _connection; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public UpdateOrderOption UpdateOrder { + get { + return this._updateOrder; + } + set { + this._updateOrder = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" + + "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" + + "a", "System.Drawing.Design.UITypeEditor")] + public DossiersTableAdapter DossiersTableAdapter { + get { + return this._dossiersTableAdapter; + } + set { + this._dossiersTableAdapter = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public bool BackupDataSetBeforeUpdate { + get { + return this._backupDataSetBeforeUpdate; + } + set { + this._backupDataSetBeforeUpdate = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + public global::System.Data.IDbConnection Connection { + get { + if ((this._connection != null)) { + return this._connection; + } + if (((this._dossiersTableAdapter != null) + && (this._dossiersTableAdapter.Connection != null))) { + return this._dossiersTableAdapter.Connection; + } + return null; + } + set { + this._connection = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + [global::System.ComponentModel.Browsable(false)] + public int TableAdapterInstanceCount { + get { + int count = 0; + if ((this._dossiersTableAdapter != null)) { + count = (count + 1); + } + return count; + } + } + + /// + ///Update rows in top-down order. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + private int UpdateUpdatedRows(DS_DossPar dataSet, global::System.Collections.Generic.List allChangedRows, global::System.Collections.Generic.List allAddedRows) { + int result = 0; + if ((this._dossiersTableAdapter != null)) { + global::System.Data.DataRow[] updatedRows = dataSet.Dossiers.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent); + updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows); + if (((updatedRows != null) + && (0 < updatedRows.Length))) { + result = (result + this._dossiersTableAdapter.Update(updatedRows)); + allChangedRows.AddRange(updatedRows); + } + } + return result; + } + + /// + ///Insert rows in top-down order. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + private int UpdateInsertedRows(DS_DossPar dataSet, global::System.Collections.Generic.List allAddedRows) { + int result = 0; + if ((this._dossiersTableAdapter != null)) { + global::System.Data.DataRow[] addedRows = dataSet.Dossiers.Select(null, null, global::System.Data.DataViewRowState.Added); + if (((addedRows != null) + && (0 < addedRows.Length))) { + result = (result + this._dossiersTableAdapter.Update(addedRows)); + allAddedRows.AddRange(addedRows); + } + } + return result; + } + + /// + ///Delete rows in bottom-up order. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + private int UpdateDeletedRows(DS_DossPar dataSet, global::System.Collections.Generic.List allChangedRows) { + int result = 0; + if ((this._dossiersTableAdapter != null)) { + global::System.Data.DataRow[] deletedRows = dataSet.Dossiers.Select(null, null, global::System.Data.DataViewRowState.Deleted); + if (((deletedRows != null) + && (0 < deletedRows.Length))) { + result = (result + this._dossiersTableAdapter.Update(deletedRows)); + allChangedRows.AddRange(deletedRows); + } + } + return result; + } + + /// + ///Remove inserted rows that become updated rows after calling TableAdapter.Update(inserted rows) first + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + private global::System.Data.DataRow[] GetRealUpdatedRows(global::System.Data.DataRow[] updatedRows, global::System.Collections.Generic.List allAddedRows) { + if (((updatedRows == null) + || (updatedRows.Length < 1))) { + return updatedRows; + } + if (((allAddedRows == null) + || (allAddedRows.Count < 1))) { + return updatedRows; + } + global::System.Collections.Generic.List realUpdatedRows = new global::System.Collections.Generic.List(); + for (int i = 0; (i < updatedRows.Length); i = (i + 1)) { + global::System.Data.DataRow row = updatedRows[i]; + if ((allAddedRows.Contains(row) == false)) { + realUpdatedRows.Add(row); + } + } + return realUpdatedRows.ToArray(); + } + + /// + ///Update all changes to the dataset. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public virtual int UpdateAll(DS_DossPar dataSet) { + if ((dataSet == null)) { + throw new global::System.ArgumentNullException("dataSet"); + } + if ((dataSet.HasChanges() == false)) { + return 0; + } + if (((this._dossiersTableAdapter != null) + && (this.MatchTableAdapterConnection(this._dossiersTableAdapter.Connection) == false))) { + throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" + + "tring."); + } + global::System.Data.IDbConnection workConnection = this.Connection; + if ((workConnection == null)) { + throw new global::System.ApplicationException("TableAdapterManager contains no connection information. Set each TableAdapterMana" + + "ger TableAdapter property to a valid TableAdapter instance."); + } + bool workConnOpened = false; + if (((workConnection.State & global::System.Data.ConnectionState.Broken) + == global::System.Data.ConnectionState.Broken)) { + workConnection.Close(); + } + if ((workConnection.State == global::System.Data.ConnectionState.Closed)) { + workConnection.Open(); + workConnOpened = true; + } + global::System.Data.IDbTransaction workTransaction = workConnection.BeginTransaction(); + if ((workTransaction == null)) { + throw new global::System.ApplicationException("The transaction cannot begin. The current data connection does not support transa" + + "ctions or the current state is not allowing the transaction to begin."); + } + global::System.Collections.Generic.List allChangedRows = new global::System.Collections.Generic.List(); + global::System.Collections.Generic.List allAddedRows = new global::System.Collections.Generic.List(); + global::System.Collections.Generic.List adaptersWithAcceptChangesDuringUpdate = new global::System.Collections.Generic.List(); + global::System.Collections.Generic.Dictionary revertConnections = new global::System.Collections.Generic.Dictionary(); + int result = 0; + global::System.Data.DataSet backupDataSet = null; + if (this.BackupDataSetBeforeUpdate) { + backupDataSet = new global::System.Data.DataSet(); + backupDataSet.Merge(dataSet); + } + try { + // ---- Prepare for update ----------- + // + if ((this._dossiersTableAdapter != null)) { + revertConnections.Add(this._dossiersTableAdapter, this._dossiersTableAdapter.Connection); + this._dossiersTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection)); + this._dossiersTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction)); + if (this._dossiersTableAdapter.Adapter.AcceptChangesDuringUpdate) { + this._dossiersTableAdapter.Adapter.AcceptChangesDuringUpdate = false; + adaptersWithAcceptChangesDuringUpdate.Add(this._dossiersTableAdapter.Adapter); + } + } + // + //---- Perform updates ----------- + // + if ((this.UpdateOrder == UpdateOrderOption.UpdateInsertDelete)) { + result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows)); + result = (result + this.UpdateInsertedRows(dataSet, allAddedRows)); + } + else { + result = (result + this.UpdateInsertedRows(dataSet, allAddedRows)); + result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows)); + } + result = (result + this.UpdateDeletedRows(dataSet, allChangedRows)); + // + //---- Commit updates ----------- + // + workTransaction.Commit(); + if ((0 < allAddedRows.Count)) { + global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count]; + allAddedRows.CopyTo(rows); + for (int i = 0; (i < rows.Length); i = (i + 1)) { + global::System.Data.DataRow row = rows[i]; + row.AcceptChanges(); + } + } + if ((0 < allChangedRows.Count)) { + global::System.Data.DataRow[] rows = new System.Data.DataRow[allChangedRows.Count]; + allChangedRows.CopyTo(rows); + for (int i = 0; (i < rows.Length); i = (i + 1)) { + global::System.Data.DataRow row = rows[i]; + row.AcceptChanges(); + } + } + } + catch (global::System.Exception ex) { + workTransaction.Rollback(); + // ---- Restore the dataset ----------- + if (this.BackupDataSetBeforeUpdate) { + global::System.Diagnostics.Debug.Assert((backupDataSet != null)); + dataSet.Clear(); + dataSet.Merge(backupDataSet); + } + else { + if ((0 < allAddedRows.Count)) { + global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count]; + allAddedRows.CopyTo(rows); + for (int i = 0; (i < rows.Length); i = (i + 1)) { + global::System.Data.DataRow row = rows[i]; + row.AcceptChanges(); + row.SetAdded(); + } + } + } + throw ex; + } + finally { + if (workConnOpened) { + workConnection.Close(); + } + if ((this._dossiersTableAdapter != null)) { + this._dossiersTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._dossiersTableAdapter])); + this._dossiersTableAdapter.Transaction = null; + } + if ((0 < adaptersWithAcceptChangesDuringUpdate.Count)) { + global::System.Data.Common.DataAdapter[] adapters = new System.Data.Common.DataAdapter[adaptersWithAcceptChangesDuringUpdate.Count]; + adaptersWithAcceptChangesDuringUpdate.CopyTo(adapters); + for (int i = 0; (i < adapters.Length); i = (i + 1)) { + global::System.Data.Common.DataAdapter adapter = adapters[i]; + adapter.AcceptChangesDuringUpdate = true; + } + } + } + return result; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + protected virtual void SortSelfReferenceRows(global::System.Data.DataRow[] rows, global::System.Data.DataRelation relation, bool childFirst) { + global::System.Array.Sort(rows, new SelfReferenceComparer(relation, childFirst)); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + protected virtual bool MatchTableAdapterConnection(global::System.Data.IDbConnection inputConnection) { + if ((this._connection != null)) { + return true; + } + if (((this.Connection == null) + || (inputConnection == null))) { + return true; + } + if (string.Equals(this.Connection.ConnectionString, inputConnection.ConnectionString, global::System.StringComparison.Ordinal)) { + return true; + } + return false; + } + + /// + ///Update Order Option + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public enum UpdateOrderOption { + + InsertUpdateDelete = 0, + + UpdateInsertDelete = 1, + } + + /// + ///Used to sort self-referenced table's rows + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + private class SelfReferenceComparer : object, global::System.Collections.Generic.IComparer { + + private global::System.Data.DataRelation _relation; + + private int _childFirst; + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + internal SelfReferenceComparer(global::System.Data.DataRelation relation, bool childFirst) { + this._relation = relation; + if (childFirst) { + this._childFirst = -1; + } + else { + this._childFirst = 1; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + private global::System.Data.DataRow GetRoot(global::System.Data.DataRow row, out int distance) { + global::System.Diagnostics.Debug.Assert((row != null)); + global::System.Data.DataRow root = row; + distance = 0; + + global::System.Collections.Generic.IDictionary traversedRows = new global::System.Collections.Generic.Dictionary(); + traversedRows[row] = row; + + global::System.Data.DataRow parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default); + for ( + ; ((parent != null) + && (traversedRows.ContainsKey(parent) == false)); + ) { + distance = (distance + 1); + root = parent; + traversedRows[parent] = parent; + parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default); + } + + if ((distance == 0)) { + traversedRows.Clear(); + traversedRows[row] = row; + parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original); + for ( + ; ((parent != null) + && (traversedRows.ContainsKey(parent) == false)); + ) { + distance = (distance + 1); + root = parent; + traversedRows[parent] = parent; + parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original); + } + } + + return root; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + public int Compare(global::System.Data.DataRow row1, global::System.Data.DataRow row2) { + if (object.ReferenceEquals(row1, row2)) { + return 0; + } + if ((row1 == null)) { + return -1; + } + if ((row2 == null)) { + return 1; + } + + int distance1 = 0; + global::System.Data.DataRow root1 = this.GetRoot(row1, out distance1); + + int distance2 = 0; + global::System.Data.DataRow root2 = this.GetRoot(row2, out distance2); + + if (object.ReferenceEquals(root1, root2)) { + return (this._childFirst * distance1.CompareTo(distance2)); + } + else { + global::System.Diagnostics.Debug.Assert(((root1.Table != null) + && (root2.Table != null))); + if ((root1.Table.Rows.IndexOf(root1) < root2.Table.Rows.IndexOf(root2))) { + return -1; + } + else { + return 1; + } + } + } + } + } +} + +#pragma warning restore 1591 \ No newline at end of file diff --git a/MapoDb/DS_DossPar.xsc b/MapoDb/DS_DossPar.xsc new file mode 100644 index 00000000..05b01991 --- /dev/null +++ b/MapoDb/DS_DossPar.xsc @@ -0,0 +1,9 @@ + + + + + \ No newline at end of file diff --git a/MapoDb/DS_DossPar.xsd b/MapoDb/DS_DossPar.xsd new file mode 100644 index 00000000..c65893be --- /dev/null +++ b/MapoDb/DS_DossPar.xsd @@ -0,0 +1,166 @@ + + + + + + + + + + + + + + + DELETE FROM [Dossiers] WHERE (([IdxDossier] = @Original_IdxDossier) AND ([IdxMacchina] = @Original_IdxMacchina) AND ([DtRif] = @Original_DtRif) AND ([IdxODL] = @Original_IdxODL) AND ([CodArticolo] = @Original_CodArticolo) AND ([DataType] = @Original_DataType)) + + + + + + + + + + + + + INSERT INTO [Dossiers] ([IdxMacchina], [DtRif], [IdxODL], [CodArticolo], [DataType], [Valore]) VALUES (@IdxMacchina, @DtRif, @IdxODL, @CodArticolo, @DataType, @Valore); +SELECT IdxDossier, IdxMacchina, DtRif, IdxODL, CodArticolo, DataType, Valore FROM Dossiers WHERE (IdxDossier = SCOPE_IDENTITY()) + + + + + + + + + + + + + SELECT * +FROM Dossiers + + + + + + UPDATE [Dossiers] SET [IdxMacchina] = @IdxMacchina, [DtRif] = @DtRif, [IdxODL] = @IdxODL, [CodArticolo] = @CodArticolo, [DataType] = @DataType, [Valore] = @Valore WHERE (([IdxDossier] = @Original_IdxDossier) AND ([IdxMacchina] = @Original_IdxMacchina) AND ([DtRif] = @Original_DtRif) AND ([IdxODL] = @Original_IdxODL) AND ([CodArticolo] = @Original_CodArticolo) AND ([DataType] = @Original_DataType)); +SELECT IdxDossier, IdxMacchina, DtRif, IdxODL, CodArticolo, DataType, Valore FROM Dossiers WHERE (IdxDossier = @IdxDossier) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + dbo.stp_DOSS_getLastByArt + + + + + + + + + + + dbo.stp_DOSS_getLastByMacch + + + + + + + + + + + dbo.stp_DOSS_getLastByPODL + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/MapoDb/DS_DossPar.xss b/MapoDb/DS_DossPar.xss new file mode 100644 index 00000000..0b6e46d6 --- /dev/null +++ b/MapoDb/DS_DossPar.xss @@ -0,0 +1,12 @@ + + + + + + + + \ No newline at end of file diff --git a/MapoDb/DS_ProdTempi.xsd b/MapoDb/DS_ProdTempi.xsd index e2934be5..6941e8eb 100644 --- a/MapoDb/DS_ProdTempi.xsd +++ b/MapoDb/DS_ProdTempi.xsd @@ -255,6 +255,20 @@ FROM v_ODL_exp ORDER BY IdxODL DESC + + + + dbo.stp_ODL_AutoDayGener + + + + + + + + + + @@ -335,6 +349,18 @@ FROM v_ODL_exp ORDER BY IdxODL DESC + + + + dbo.stp_ODL_forceClose + + + + + + + + @@ -440,7 +466,7 @@ FROM v_ODL_exp ORDER BY IdxODL DESC - + dbo.stp_ODL_inizioSetup @@ -456,7 +482,7 @@ FROM v_ODL_exp ORDER BY IdxODL DESC - + dbo.stp_ODL_inizioSetupPromessa @@ -472,7 +498,7 @@ FROM v_ODL_exp ORDER BY IdxODL DESC - + dbo.stp_ODL_inizioSetupPromessaPostuma @@ -485,7 +511,7 @@ FROM v_ODL_exp ORDER BY IdxODL DESC - + dbo.stp_ODL_insertProvv @@ -501,7 +527,7 @@ FROM v_ODL_exp ORDER BY IdxODL DESC - + dbo.stp_ODL_insertQuery @@ -519,7 +545,7 @@ FROM v_ODL_exp ORDER BY IdxODL DESC - + dbo.stp_ODL_insPostumo @@ -542,7 +568,7 @@ FROM v_ODL_exp ORDER BY IdxODL DESC - + dbo.stp_ODL_split @@ -560,7 +586,7 @@ FROM v_ODL_exp ORDER BY IdxODL DESC - + dbo.stp_ODL_updateQta @@ -573,7 +599,7 @@ FROM v_ODL_exp ORDER BY IdxODL DESC - + dbo.stp_ODL_update @@ -593,7 +619,7 @@ FROM v_ODL_exp ORDER BY IdxODL DESC - + dbo.stp_ODL_updateSetup @@ -716,6 +742,27 @@ SELECT CodArticolo, Disegno, DescArticolo, CurrRev, ProdRev, FlagIsNew, Tipo FRO + + + + dbo.stp_ART_getByCurrPODL + + + + + + + + + + dbo.stp_ART_getLastByMacch + + + + + + + diff --git a/MapoDb/DS_ProdTempi.xss b/MapoDb/DS_ProdTempi.xss index b45a15b5..df8a76ab 100644 --- a/MapoDb/DS_ProdTempi.xss +++ b/MapoDb/DS_ProdTempi.xss @@ -4,17 +4,17 @@ Changes to this file may cause incorrect behavior and will be lost if the code is regenerated. --> - + - + - + @@ -28,7 +28,7 @@ - + diff --git a/MapoDb/DS_ProdTempi1.Designer.cs b/MapoDb/DS_ProdTempi1.Designer.cs index 16f80254..c52824e4 100644 --- a/MapoDb/DS_ProdTempi1.Designer.cs +++ b/MapoDb/DS_ProdTempi1.Designer.cs @@ -17519,7 +17519,7 @@ SELECT IdxMacchina, CodArticolo, DataOraRif, TCMedio, PzProd FROM TempiCicloRile [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] private void InitCommandCollection() { - this._commandCollection = new global::System.Data.SqlClient.SqlCommand[28]; + this._commandCollection = new global::System.Data.SqlClient.SqlCommand[30]; this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[0].Connection = this.Connection; this._commandCollection[0].CommandText = "SELECT *\r\nFROM v_ODL_exp ORDER BY IdxODL DESC"; @@ -17535,227 +17535,243 @@ SELECT IdxMacchina, CodArticolo, DataOraRif, TCMedio, PzProd FROM TempiCicloRile this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Approvato", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[2] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[2].Connection = this.Connection; - this._commandCollection[2].CommandText = "dbo.stp_ODL_AutoStart"; + this._commandCollection[2].CommandText = "dbo.stp_ODL_AutoDayGener"; this._commandCollection[2].CommandType = global::System.Data.CommandType.StoredProcedure; this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxODL", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MatrOpr", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchina", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TCRichAttr", global::System.Data.SqlDbType.Decimal, 9, global::System.Data.ParameterDirection.Input, 18, 8, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PzPallet", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Note", global::System.Data.SqlDbType.NVarChar, 2500, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@StartNewOdl", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@QtyRich", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@KeyRichiesta", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchina", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataInizio", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataFine", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodArticolo", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[3] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[3].Connection = this.Connection; - this._commandCollection[3].CommandText = "dbo.stp_ODL_clearSetup"; + this._commandCollection[3].CommandText = "dbo.stp_ODL_AutoStart"; this._commandCollection[3].CommandType = global::System.Data.CommandType.StoredProcedure; this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxODL", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MatrOpr", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchina", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TCRichAttr", global::System.Data.SqlDbType.Decimal, 9, global::System.Data.ParameterDirection.Input, 18, 8, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PzPallet", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Note", global::System.Data.SqlDbType.NVarChar, 2500, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@StartNewOdl", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@QtyRich", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@KeyRichiesta", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[4] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[4].Connection = this.Connection; - this._commandCollection[4].CommandText = "dbo.stp_ODL_deleteQuery"; + this._commandCollection[4].CommandText = "dbo.stp_ODL_clearSetup"; this._commandCollection[4].CommandType = global::System.Data.CommandType.StoredProcedure; this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxODL", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxODL", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchina", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[5] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[5].Connection = this.Connection; - this._commandCollection[5].CommandText = "dbo.stp_ODL_dividiDaAltraTav"; + this._commandCollection[5].CommandText = "dbo.stp_ODL_deleteQuery"; this._commandCollection[5].CommandType = global::System.Data.CommandType.StoredProcedure; this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxODL", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MatrOpr", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchinaTo", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxODL", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[6] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[6].Connection = this.Connection; - this._commandCollection[6].CommandText = "dbo.stp_ODL_fineProd"; + this._commandCollection[6].CommandText = "dbo.stp_ODL_dividiDaAltraTav"; this._commandCollection[6].CommandType = global::System.Data.CommandType.StoredProcedure; this._commandCollection[6].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[6].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxODL", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[6].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchina", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[6].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MatrOpr", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[6].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchinaTo", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[7] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[7].Connection = this.Connection; - this._commandCollection[7].CommandText = "dbo.stp_ODL_fixMachineSlave"; + this._commandCollection[7].CommandText = "dbo.stp_ODL_fineProd"; this._commandCollection[7].CommandType = global::System.Data.CommandType.StoredProcedure; this._commandCollection[7].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[7].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxODL", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[7].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchina", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[7].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NumDayPrev", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[7].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DoInsert", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[8] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[8].Connection = this.Connection; - this._commandCollection[8].CommandText = "dbo.stp_ODL_getByCodArt"; + this._commandCollection[8].CommandText = "dbo.stp_ODL_fixMachineSlave"; this._commandCollection[8].CommandType = global::System.Data.CommandType.StoredProcedure; this._commandCollection[8].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[8].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodArticolo", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[8].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchina", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[8].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NumDayPrev", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[8].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DoInsert", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[9] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[9].Connection = this.Connection; - this._commandCollection[9].CommandText = "dbo.stp_ODL_getByIdx"; + this._commandCollection[9].CommandText = "dbo.stp_ODL_forceClose"; this._commandCollection[9].CommandType = global::System.Data.CommandType.StoredProcedure; this._commandCollection[9].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[9].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxODL", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[9].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@onlyUnused", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[9].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxODL", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[9].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchina", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[10] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[10].Connection = this.Connection; - this._commandCollection[10].CommandText = "dbo.stp_ODL_getByMacchina"; + this._commandCollection[10].CommandText = "dbo.stp_ODL_getByCodArt"; this._commandCollection[10].CommandType = global::System.Data.CommandType.StoredProcedure; this._commandCollection[10].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[10].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchina", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[10].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodArticolo", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[11] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[11].Connection = this.Connection; - this._commandCollection[11].CommandText = "dbo.stp_ODL_getByMacchinaCodArt"; + this._commandCollection[11].CommandText = "dbo.stp_ODL_getByIdx"; this._commandCollection[11].CommandType = global::System.Data.CommandType.StoredProcedure; this._commandCollection[11].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[11].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodArticolo", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[11].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchina", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[11].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxODL", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[11].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@onlyUnused", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[12] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[12].Connection = this.Connection; - this._commandCollection[12].CommandText = "dbo.stp_ODL_getByMacchinaPeriodo"; + this._commandCollection[12].CommandText = "dbo.stp_ODL_getByMacchina"; this._commandCollection[12].CommandType = global::System.Data.CommandType.StoredProcedure; this._commandCollection[12].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[12].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchina", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[12].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@dataFrom", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[12].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@dataTo", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[13] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[13].Connection = this.Connection; - this._commandCollection[13].CommandText = "dbo.stp_ODL_getByMacchinaPeriodoNoNull"; + this._commandCollection[13].CommandText = "dbo.stp_ODL_getByMacchinaCodArt"; this._commandCollection[13].CommandType = global::System.Data.CommandType.StoredProcedure; this._commandCollection[13].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[13].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodArticolo", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[13].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchina", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[13].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@dataFrom", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[13].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@dataTo", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[14] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[14].Connection = this.Connection; - this._commandCollection[14].CommandText = "dbo.stp_ODL_getLastByMacchina"; + this._commandCollection[14].CommandText = "dbo.stp_ODL_getByMacchinaPeriodo"; this._commandCollection[14].CommandType = global::System.Data.CommandType.StoredProcedure; this._commandCollection[14].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[14].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchina", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[14].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@dataFrom", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[14].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@dataTo", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[15] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[15].Connection = this.Connection; - this._commandCollection[15].CommandText = "dbo.stp_ODL_getLastByMacchinaNum"; + this._commandCollection[15].CommandText = "dbo.stp_ODL_getByMacchinaPeriodoNoNull"; this._commandCollection[15].CommandType = global::System.Data.CommandType.StoredProcedure; this._commandCollection[15].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[15].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchina", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[15].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@numRec", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[15].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@dataFrom", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[15].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@dataTo", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[16] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[16].Connection = this.Connection; - this._commandCollection[16].CommandText = "dbo.stp_ODL_needAppr"; + this._commandCollection[16].CommandText = "dbo.stp_ODL_getLastByMacchina"; this._commandCollection[16].CommandType = global::System.Data.CommandType.StoredProcedure; this._commandCollection[16].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[16].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchina", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[17] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[17].Connection = this.Connection; - this._commandCollection[17].CommandText = "dbo.stp_ODL_inizioSetup"; + this._commandCollection[17].CommandText = "dbo.stp_ODL_getLastByMacchinaNum"; this._commandCollection[17].CommandType = global::System.Data.CommandType.StoredProcedure; this._commandCollection[17].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[17].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxODL", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[17].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MatrOpr", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[17].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchina", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[17].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TCRichAttr", global::System.Data.SqlDbType.Decimal, 9, global::System.Data.ParameterDirection.Input, 18, 8, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[17].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PzPallet", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[17].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Note", global::System.Data.SqlDbType.NVarChar, 2500, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[17].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@numRec", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[18] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[18].Connection = this.Connection; - this._commandCollection[18].CommandText = "dbo.stp_ODL_inizioSetupPromessa"; + this._commandCollection[18].CommandText = "dbo.stp_ODL_needAppr"; this._commandCollection[18].CommandType = global::System.Data.CommandType.StoredProcedure; this._commandCollection[18].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[18].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxPromessa", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[18].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MatrOpr", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[18].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchina", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[18].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TCRichAttr", global::System.Data.SqlDbType.Decimal, 9, global::System.Data.ParameterDirection.Input, 18, 8, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[18].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PzPallet", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[18].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Note", global::System.Data.SqlDbType.NVarChar, 2500, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[19] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[19].Connection = this.Connection; - this._commandCollection[19].CommandText = "dbo.stp_ODL_inizioSetupPromessaPostuma"; + this._commandCollection[19].CommandText = "dbo.stp_ODL_inizioSetup"; this._commandCollection[19].CommandType = global::System.Data.CommandType.StoredProcedure; this._commandCollection[19].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[19].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxPromessa", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[19].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxODL", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[19].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MatrOpr", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[19].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchina", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[19].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TCRichAttr", global::System.Data.SqlDbType.Decimal, 9, global::System.Data.ParameterDirection.Input, 18, 8, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[19].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PzPallet", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[19].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Note", global::System.Data.SqlDbType.NVarChar, 2500, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[20] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[20].Connection = this.Connection; - this._commandCollection[20].CommandText = "dbo.stp_ODL_insertProvv"; + this._commandCollection[20].CommandText = "dbo.stp_ODL_inizioSetupPromessa"; this._commandCollection[20].CommandType = global::System.Data.CommandType.StoredProcedure; this._commandCollection[20].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[20].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodArticolo", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[20].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxPromessa", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[20].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MatrOpr", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[20].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchina", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[20].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NumPezzi", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[20].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TCAssegnato", global::System.Data.SqlDbType.Decimal, 9, global::System.Data.ParameterDirection.Input, 18, 8, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[20].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TCRichAttr", global::System.Data.SqlDbType.Decimal, 9, global::System.Data.ParameterDirection.Input, 18, 8, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[20].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PzPallet", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[20].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Note", global::System.Data.SqlDbType.NVarChar, 2500, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[21] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[21].Connection = this.Connection; - this._commandCollection[21].CommandText = "dbo.stp_ODL_insertQuery"; + this._commandCollection[21].CommandText = "dbo.stp_ODL_inizioSetupPromessaPostuma"; this._commandCollection[21].CommandType = global::System.Data.CommandType.StoredProcedure; this._commandCollection[21].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[21].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodArticolo", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[21].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxPromessa", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[21].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MatrOpr", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[21].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchina", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[21].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NumPezzi", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[21].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TCAssegnato", global::System.Data.SqlDbType.Decimal, 9, global::System.Data.ParameterDirection.Input, 18, 8, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[21].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PzPallet", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[21].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ToAs400", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[21].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CommessaAs400", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[22] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[22].Connection = this.Connection; - this._commandCollection[22].CommandText = "dbo.stp_ODL_insPostumo"; + this._commandCollection[22].CommandText = "dbo.stp_ODL_insertProvv"; this._commandCollection[22].CommandType = global::System.Data.CommandType.StoredProcedure; this._commandCollection[22].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[22].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxODL", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[22].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodArticolo", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[22].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MatrOpr", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[22].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchina", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[22].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NumPezzi", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[22].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TCAssegnato", global::System.Data.SqlDbType.Decimal, 9, global::System.Data.ParameterDirection.Input, 18, 8, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[22].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Note", global::System.Data.SqlDbType.NVarChar, 2500, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[23] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[23].Connection = this.Connection; - this._commandCollection[23].CommandText = "dbo.stp_ODL_reopenOdlMacc"; + this._commandCollection[23].CommandText = "dbo.stp_ODL_insertQuery"; this._commandCollection[23].CommandType = global::System.Data.CommandType.StoredProcedure; this._commandCollection[23].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[23].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodArticolo", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[23].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MatrOpr", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[23].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchina", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[23].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NumPezzi", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[23].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TCAssegnato", global::System.Data.SqlDbType.Decimal, 9, global::System.Data.ParameterDirection.Input, 18, 8, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[23].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PzPallet", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[23].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ToAs400", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[23].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CommessaAs400", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[24] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[24].Connection = this.Connection; - this._commandCollection[24].CommandText = "dbo.stp_ODL_split"; + this._commandCollection[24].CommandText = "dbo.stp_ODL_insPostumo"; this._commandCollection[24].CommandType = global::System.Data.CommandType.StoredProcedure; this._commandCollection[24].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[24].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxODL", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[24].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MatrOpr", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[24].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchina", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[24].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TCRichAttr", global::System.Data.SqlDbType.Decimal, 9, global::System.Data.ParameterDirection.Input, 18, 8, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[24].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PzPallet", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[24].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Note", global::System.Data.SqlDbType.NVarChar, 2500, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[24].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@StartNewOdl", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[24].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@QtyRich", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[25] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[25].Connection = this.Connection; - this._commandCollection[25].CommandText = "dbo.stp_ODL_updateQta"; + this._commandCollection[25].CommandText = "dbo.stp_ODL_reopenOdlMacc"; this._commandCollection[25].CommandType = global::System.Data.CommandType.StoredProcedure; this._commandCollection[25].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[25].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NumPezzi", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[25].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PzPallet", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[25].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxODL", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[25].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchina", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[26] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[26].Connection = this.Connection; - this._commandCollection[26].CommandText = "dbo.stp_ODL_update"; + this._commandCollection[26].CommandText = "dbo.stp_ODL_split"; this._commandCollection[26].CommandType = global::System.Data.CommandType.StoredProcedure; this._commandCollection[26].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[26].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodArticolo", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[26].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxODL", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[26].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MatrOpr", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[26].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchina", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[26].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NumPezzi", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[26].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TCAssegnato", global::System.Data.SqlDbType.Decimal, 9, global::System.Data.ParameterDirection.Input, 18, 8, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[26].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TCRichAttr", global::System.Data.SqlDbType.Decimal, 9, global::System.Data.ParameterDirection.Input, 18, 8, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[26].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PzPallet", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[26].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataInizio", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[26].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataFine", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[26].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Note", global::System.Data.SqlDbType.NVarChar, 2500, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[26].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxODL", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[26].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@StartNewOdl", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[26].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@QtyRich", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[27] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[27].Connection = this.Connection; - this._commandCollection[27].CommandText = "dbo.stp_ODL_updateSetup"; + this._commandCollection[27].CommandText = "dbo.stp_ODL_updateQta"; this._commandCollection[27].CommandType = global::System.Data.CommandType.StoredProcedure; this._commandCollection[27].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[27].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxODL", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[27].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MatrOpr", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[27].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TCRichAttr", global::System.Data.SqlDbType.Decimal, 9, global::System.Data.ParameterDirection.Input, 18, 8, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[27].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NumPezzi", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[27].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PzPallet", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[27].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Note", global::System.Data.SqlDbType.NVarChar, 2500, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[27].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxODL", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[28] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[28].Connection = this.Connection; + this._commandCollection[28].CommandText = "dbo.stp_ODL_update"; + this._commandCollection[28].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[28].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[28].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodArticolo", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[28].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MatrOpr", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[28].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchina", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[28].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NumPezzi", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[28].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TCAssegnato", global::System.Data.SqlDbType.Decimal, 9, global::System.Data.ParameterDirection.Input, 18, 8, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[28].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PzPallet", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[28].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataInizio", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[28].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataFine", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[28].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Note", global::System.Data.SqlDbType.NVarChar, 2500, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[28].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxODL", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[29] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[29].Connection = this.Connection; + this._commandCollection[29].CommandText = "dbo.stp_ODL_updateSetup"; + this._commandCollection[29].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[29].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[29].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxODL", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[29].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MatrOpr", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[29].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TCRichAttr", global::System.Data.SqlDbType.Decimal, 9, global::System.Data.ParameterDirection.Input, 18, 8, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[29].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PzPallet", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[29].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Note", global::System.Data.SqlDbType.NVarChar, 2500, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -17787,7 +17803,7 @@ SELECT IdxMacchina, CodArticolo, DataOraRif, TCMedio, PzProd FROM TempiCicloRile [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] public virtual DS_ProdTempi.ODLDataTable getByCodArt(string CodArticolo) { - this.Adapter.SelectCommand = this.CommandCollection[8]; + this.Adapter.SelectCommand = this.CommandCollection[10]; if ((CodArticolo == null)) { this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; } @@ -17804,7 +17820,7 @@ SELECT IdxMacchina, CodArticolo, DataOraRif, TCMedio, PzProd FROM TempiCicloRile [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] public virtual DS_ProdTempi.ODLDataTable getByIdx(global::System.Nullable IdxODL, global::System.Nullable onlyUnused) { - this.Adapter.SelectCommand = this.CommandCollection[9]; + this.Adapter.SelectCommand = this.CommandCollection[11]; if ((IdxODL.HasValue == true)) { this.Adapter.SelectCommand.Parameters[1].Value = ((int)(IdxODL.Value)); } @@ -17827,7 +17843,7 @@ SELECT IdxMacchina, CodArticolo, DataOraRif, TCMedio, PzProd FROM TempiCicloRile [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] public virtual DS_ProdTempi.ODLDataTable getByMacchina(string IdxMacchina) { - this.Adapter.SelectCommand = this.CommandCollection[10]; + this.Adapter.SelectCommand = this.CommandCollection[12]; if ((IdxMacchina == null)) { this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; } @@ -17844,7 +17860,7 @@ SELECT IdxMacchina, CodArticolo, DataOraRif, TCMedio, PzProd FROM TempiCicloRile [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] public virtual DS_ProdTempi.ODLDataTable getByMacchinaArticolo(string CodArticolo, string IdxMacchina) { - this.Adapter.SelectCommand = this.CommandCollection[11]; + this.Adapter.SelectCommand = this.CommandCollection[13]; if ((CodArticolo == null)) { this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; } @@ -17867,7 +17883,7 @@ SELECT IdxMacchina, CodArticolo, DataOraRif, TCMedio, PzProd FROM TempiCicloRile [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] public virtual DS_ProdTempi.ODLDataTable getByMacchinaPeriodo(string IdxMacchina, global::System.Nullable dataFrom, global::System.Nullable dataTo) { - this.Adapter.SelectCommand = this.CommandCollection[12]; + this.Adapter.SelectCommand = this.CommandCollection[14]; if ((IdxMacchina == null)) { this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; } @@ -17896,7 +17912,7 @@ SELECT IdxMacchina, CodArticolo, DataOraRif, TCMedio, PzProd FROM TempiCicloRile [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] public virtual DS_ProdTempi.ODLDataTable getByMacchinaPeriodoNoNull(string IdxMacchina, global::System.Nullable dataFrom, global::System.Nullable dataTo) { - this.Adapter.SelectCommand = this.CommandCollection[13]; + this.Adapter.SelectCommand = this.CommandCollection[15]; if ((IdxMacchina == null)) { this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; } @@ -17925,7 +17941,7 @@ SELECT IdxMacchina, CodArticolo, DataOraRif, TCMedio, PzProd FROM TempiCicloRile [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] public virtual DS_ProdTempi.ODLDataTable getLastByMacc(string IdxMacchina) { - this.Adapter.SelectCommand = this.CommandCollection[14]; + this.Adapter.SelectCommand = this.CommandCollection[16]; if ((IdxMacchina == null)) { this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; } @@ -17942,7 +17958,7 @@ SELECT IdxMacchina, CodArticolo, DataOraRif, TCMedio, PzProd FROM TempiCicloRile [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] public virtual DS_ProdTempi.ODLDataTable getLastByMaccNum(string IdxMacchina, global::System.Nullable numRec) { - this.Adapter.SelectCommand = this.CommandCollection[15]; + this.Adapter.SelectCommand = this.CommandCollection[17]; if ((IdxMacchina == null)) { this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; } @@ -17965,7 +17981,7 @@ SELECT IdxMacchina, CodArticolo, DataOraRif, TCMedio, PzProd FROM TempiCicloRile [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] public virtual DS_ProdTempi.ODLDataTable getNeedAppr() { - this.Adapter.SelectCommand = this.CommandCollection[16]; + this.Adapter.SelectCommand = this.CommandCollection[18]; DS_ProdTempi.ODLDataTable dataTable = new DS_ProdTempi.ODLDataTable(); this.Adapter.Fill(dataTable); return dataTable; @@ -17976,7 +17992,7 @@ SELECT IdxMacchina, CodArticolo, DataOraRif, TCMedio, PzProd FROM TempiCicloRile [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] public virtual DS_ProdTempi.ODLDataTable reopenGetLast(string IdxMacchina) { - this.Adapter.SelectCommand = this.CommandCollection[23]; + this.Adapter.SelectCommand = this.CommandCollection[25]; if ((IdxMacchina == null)) { this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; } @@ -18037,8 +18053,54 @@ SELECT IdxMacchina, CodArticolo, DataOraRif, TCMedio, PzProd FROM TempiCicloRile [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - public virtual int autoStart(global::System.Nullable idxODL, global::System.Nullable MatrOpr, string IdxMacchina, global::System.Nullable TCRichAttr, global::System.Nullable PzPallet, string Note, global::System.Nullable StartNewOdl, global::System.Nullable QtyRich, string KeyRichiesta) { + public virtual int AutoDayGener(string IdxMacchina, global::System.Nullable DataInizio, global::System.Nullable DataFine, string CodArticolo) { global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[2]; + if ((IdxMacchina == null)) { + command.Parameters[1].Value = global::System.DBNull.Value; + } + else { + command.Parameters[1].Value = ((string)(IdxMacchina)); + } + if ((DataInizio.HasValue == true)) { + command.Parameters[2].Value = ((System.DateTime)(DataInizio.Value)); + } + else { + command.Parameters[2].Value = global::System.DBNull.Value; + } + if ((DataFine.HasValue == true)) { + command.Parameters[3].Value = ((System.DateTime)(DataFine.Value)); + } + else { + command.Parameters[3].Value = global::System.DBNull.Value; + } + if ((CodArticolo == null)) { + command.Parameters[4].Value = global::System.DBNull.Value; + } + else { + command.Parameters[4].Value = ((string)(CodArticolo)); + } + global::System.Data.ConnectionState previousConnectionState = command.Connection.State; + if (((command.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + command.Connection.Open(); + } + int returnValue; + try { + returnValue = command.ExecuteNonQuery(); + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + command.Connection.Close(); + } + } + return returnValue; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int autoStart(global::System.Nullable idxODL, global::System.Nullable MatrOpr, string IdxMacchina, global::System.Nullable TCRichAttr, global::System.Nullable PzPallet, string Note, global::System.Nullable StartNewOdl, global::System.Nullable QtyRich, string KeyRichiesta) { + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[3]; if ((idxODL.HasValue == true)) { command.Parameters[1].Value = ((int)(idxODL.Value)); } @@ -18114,7 +18176,7 @@ SELECT IdxMacchina, CodArticolo, DataOraRif, TCMedio, PzProd FROM TempiCicloRile [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] public virtual int clearSetup(global::System.Nullable idxODL, string IdxMacchina) { - global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[3]; + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[4]; if ((idxODL.HasValue == true)) { command.Parameters[1].Value = ((int)(idxODL.Value)); } @@ -18149,7 +18211,7 @@ SELECT IdxMacchina, CodArticolo, DataOraRif, TCMedio, PzProd FROM TempiCicloRile [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, false)] public virtual int DeleteQuery(global::System.Nullable Original_IdxODL) { - global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[4]; + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[5]; if ((Original_IdxODL.HasValue == true)) { command.Parameters[1].Value = ((int)(Original_IdxODL.Value)); } @@ -18177,7 +18239,7 @@ SELECT IdxMacchina, CodArticolo, DataOraRif, TCMedio, PzProd FROM TempiCicloRile [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] public virtual int dividiDaAltraTav(global::System.Nullable idxODL, global::System.Nullable MatrOpr, string IdxMacchinaTo) { - global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[5]; + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[6]; if ((idxODL.HasValue == true)) { command.Parameters[1].Value = ((int)(idxODL.Value)); } @@ -18217,7 +18279,7 @@ SELECT IdxMacchina, CodArticolo, DataOraRif, TCMedio, PzProd FROM TempiCicloRile [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] public virtual int fineProd(global::System.Nullable idxODL, string IdxMacchina) { - global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[6]; + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[7]; if ((idxODL.HasValue == true)) { command.Parameters[1].Value = ((int)(idxODL.Value)); } @@ -18251,7 +18313,7 @@ SELECT IdxMacchina, CodArticolo, DataOraRif, TCMedio, PzProd FROM TempiCicloRile [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] public virtual int fixMachineSlave(string IdxMacchina, global::System.Nullable NumDayPrev, global::System.Nullable DoInsert) { - global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[7]; + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[8]; if ((IdxMacchina == null)) { command.Parameters[1].Value = global::System.DBNull.Value; } @@ -18287,11 +18349,45 @@ SELECT IdxMacchina, CodArticolo, DataOraRif, TCMedio, PzProd FROM TempiCicloRile return returnValue; } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int forceClose(global::System.Nullable idxODL, string IdxMacchina) { + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[9]; + if ((idxODL.HasValue == true)) { + command.Parameters[1].Value = ((int)(idxODL.Value)); + } + else { + command.Parameters[1].Value = global::System.DBNull.Value; + } + if ((IdxMacchina == null)) { + command.Parameters[2].Value = global::System.DBNull.Value; + } + else { + command.Parameters[2].Value = ((string)(IdxMacchina)); + } + global::System.Data.ConnectionState previousConnectionState = command.Connection.State; + if (((command.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + command.Connection.Open(); + } + int returnValue; + try { + returnValue = command.ExecuteNonQuery(); + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + command.Connection.Close(); + } + } + return returnValue; + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] public virtual int inizioSetup(global::System.Nullable idxODL, global::System.Nullable MatrOpr, string IdxMacchina, global::System.Nullable TCRichAttr, global::System.Nullable PzPallet, string Note) { - global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[17]; + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[19]; if ((idxODL.HasValue == true)) { command.Parameters[1].Value = ((int)(idxODL.Value)); } @@ -18349,7 +18445,7 @@ SELECT IdxMacchina, CodArticolo, DataOraRif, TCMedio, PzProd FROM TempiCicloRile [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] public virtual int inizioSetupPromessa(global::System.Nullable idxPromessa, global::System.Nullable MatrOpr, string IdxMacchina, global::System.Nullable TCRichAttr, global::System.Nullable PzPallet, string Note) { - global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[18]; + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[20]; if ((idxPromessa.HasValue == true)) { command.Parameters[1].Value = ((int)(idxPromessa.Value)); } @@ -18407,7 +18503,7 @@ SELECT IdxMacchina, CodArticolo, DataOraRif, TCMedio, PzProd FROM TempiCicloRile [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] public virtual int inizioSetupPromessaPostuma(global::System.Nullable idxPromessa, global::System.Nullable MatrOpr, string IdxMacchina) { - global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[19]; + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[21]; if ((idxPromessa.HasValue == true)) { command.Parameters[1].Value = ((int)(idxPromessa.Value)); } @@ -18447,7 +18543,7 @@ SELECT IdxMacchina, CodArticolo, DataOraRif, TCMedio, PzProd FROM TempiCicloRile [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] public virtual int insertProvv(string CodArticolo, global::System.Nullable MatrOpr, string IdxMacchina, global::System.Nullable NumPezzi, global::System.Nullable TCAssegnato, string Note) { - global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[20]; + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[22]; if ((CodArticolo == null)) { command.Parameters[1].Value = global::System.DBNull.Value; } @@ -18506,7 +18602,7 @@ SELECT IdxMacchina, CodArticolo, DataOraRif, TCMedio, PzProd FROM TempiCicloRile [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, false)] public virtual int InsertQuery(string CodArticolo, global::System.Nullable MatrOpr, string IdxMacchina, global::System.Nullable NumPezzi, global::System.Nullable TCAssegnato, global::System.Nullable PzPallet, global::System.Nullable ToAs400, string CommessaAs400) { - global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[21]; + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[23]; if ((CodArticolo == null)) { command.Parameters[1].Value = global::System.DBNull.Value; } @@ -18576,7 +18672,7 @@ SELECT IdxMacchina, CodArticolo, DataOraRif, TCMedio, PzProd FROM TempiCicloRile [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] public virtual int insPostumo(global::System.Nullable idxODL, string IdxMacchina) { - global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[22]; + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[24]; if ((idxODL.HasValue == true)) { command.Parameters[1].Value = ((int)(idxODL.Value)); } @@ -18610,7 +18706,7 @@ SELECT IdxMacchina, CodArticolo, DataOraRif, TCMedio, PzProd FROM TempiCicloRile [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] public virtual int splitODL(global::System.Nullable idxODL, global::System.Nullable MatrOpr, string IdxMacchina, global::System.Nullable TCRichAttr, global::System.Nullable PzPallet, string Note, global::System.Nullable StartNewOdl, global::System.Nullable QtyRich) { - global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[24]; + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[26]; if ((idxODL.HasValue == true)) { command.Parameters[1].Value = ((int)(idxODL.Value)); } @@ -18680,7 +18776,7 @@ SELECT IdxMacchina, CodArticolo, DataOraRif, TCMedio, PzProd FROM TempiCicloRile [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] public virtual int updateQta(global::System.Nullable NumPezzi, global::System.Nullable PzPallet, global::System.Nullable Original_IdxODL) { - global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[25]; + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[27]; if ((NumPezzi.HasValue == true)) { command.Parameters[1].Value = ((int)(NumPezzi.Value)); } @@ -18721,7 +18817,7 @@ SELECT IdxMacchina, CodArticolo, DataOraRif, TCMedio, PzProd FROM TempiCicloRile [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, false)] public virtual int UpdateQuery(string CodArticolo, global::System.Nullable MatrOpr, string IdxMacchina, global::System.Nullable NumPezzi, global::System.Nullable TCAssegnato, global::System.Nullable PzPallet, global::System.Nullable DataInizio, global::System.Nullable DataFine, string Note, global::System.Nullable Original_IdxODL) { - global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[26]; + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[28]; if ((CodArticolo == null)) { command.Parameters[1].Value = global::System.DBNull.Value; } @@ -18803,7 +18899,7 @@ SELECT IdxMacchina, CodArticolo, DataOraRif, TCMedio, PzProd FROM TempiCicloRile [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] public virtual int updateSetup(global::System.Nullable idxODL, global::System.Nullable MatrOpr, global::System.Nullable TCRichAttr, global::System.Nullable PzPallet, string Note) { - global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[27]; + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[29]; if ((idxODL.HasValue == true)) { command.Parameters[1].Value = ((int)(idxODL.Value)); } @@ -19035,7 +19131,7 @@ SELECT CodArticolo, Disegno, DescArticolo, CurrRev, ProdRev, FlagIsNew, Tipo FRO [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] private void InitCommandCollection() { - this._commandCollection = new global::System.Data.SqlClient.SqlCommand[9]; + this._commandCollection = new global::System.Data.SqlClient.SqlCommand[11]; this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[0].Connection = this.Connection; this._commandCollection[0].CommandText = "SELECT * FROM v_AnagArticoli"; @@ -19061,43 +19157,54 @@ SELECT CodArticolo, Disegno, DescArticolo, CurrRev, ProdRev, FlagIsNew, Tipo FRO this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodArticolo", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[4] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[4].Connection = this.Connection; - this._commandCollection[4].CommandText = "dbo.stp_ART_getPaged"; + this._commandCollection[4].CommandText = "dbo.stp_ART_getByCurrPODL"; this._commandCollection[4].CommandType = global::System.Data.CommandType.StoredProcedure; this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@maximumRows", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@startRowIndex", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@orderByCol", global::System.Data.SqlDbType.NVarChar, 250, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@searchVal", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@tipo", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[5] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[5].Connection = this.Connection; - this._commandCollection[5].CommandText = "dbo.stp_ART_getUsed"; + this._commandCollection[5].CommandText = "dbo.stp_ART_getLastByMacch"; this._commandCollection[5].CommandType = global::System.Data.CommandType.StoredProcedure; this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchina", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[6] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[6].Connection = this.Connection; - this._commandCollection[6].CommandText = "dbo.stp_ART_rowCount"; + this._commandCollection[6].CommandText = "dbo.stp_ART_getPaged"; this._commandCollection[6].CommandType = global::System.Data.CommandType.StoredProcedure; this._commandCollection[6].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[6].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@maximumRows", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[6].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@startRowIndex", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[6].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@orderByCol", global::System.Data.SqlDbType.NVarChar, 250, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[6].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@searchVal", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[6].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@tipo", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[7] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[7].Connection = this.Connection; - this._commandCollection[7].CommandText = "dbo.stp_ART_setNewRev"; + this._commandCollection[7].CommandText = "dbo.stp_ART_getUsed"; this._commandCollection[7].CommandType = global::System.Data.CommandType.StoredProcedure; this._commandCollection[7].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[7].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodArticolo", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[8] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[8].Connection = this.Connection; - this._commandCollection[8].CommandText = "dbo.stp_ART_update"; + this._commandCollection[8].CommandText = "dbo.stp_ART_rowCount"; this._commandCollection[8].CommandType = global::System.Data.CommandType.StoredProcedure; this._commandCollection[8].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[8].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodArticolo", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[8].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DescArticolo", global::System.Data.SqlDbType.NVarChar, 250, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[8].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CurrRev", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[8].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodArticolo", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[8].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Disegno", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[8].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Tipo", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[8].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@searchVal", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[8].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@tipo", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[9] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[9].Connection = this.Connection; + this._commandCollection[9].CommandText = "dbo.stp_ART_setNewRev"; + this._commandCollection[9].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[9].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[9].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodArticolo", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[10] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[10].Connection = this.Connection; + this._commandCollection[10].CommandText = "dbo.stp_ART_update"; + this._commandCollection[10].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[10].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[10].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodArticolo", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[10].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DescArticolo", global::System.Data.SqlDbType.NVarChar, 250, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[10].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CurrRev", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[10].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodArticolo", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[10].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Disegno", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[10].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Tipo", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -19145,8 +19252,36 @@ SELECT CodArticolo, Disegno, DescArticolo, CurrRev, ProdRev, FlagIsNew, Tipo FRO [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] - public virtual DS_ProdTempi.AnagArticoliDataTable getPaged(global::System.Nullable maximumRows, global::System.Nullable startRowIndex, string orderByCol, string searchVal, string tipo) { + public virtual DS_ProdTempi.AnagArticoliDataTable getByCurrPODL() { this.Adapter.SelectCommand = this.CommandCollection[4]; + DS_ProdTempi.AnagArticoliDataTable dataTable = new DS_ProdTempi.AnagArticoliDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] + public virtual DS_ProdTempi.AnagArticoliDataTable getLastByMacc(string IdxMacchina) { + this.Adapter.SelectCommand = this.CommandCollection[5]; + if ((IdxMacchina == null)) { + this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value; + } + else { + this.Adapter.SelectCommand.Parameters[1].Value = ((string)(IdxMacchina)); + } + DS_ProdTempi.AnagArticoliDataTable dataTable = new DS_ProdTempi.AnagArticoliDataTable(); + this.Adapter.Fill(dataTable); + return dataTable; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] + public virtual DS_ProdTempi.AnagArticoliDataTable getPaged(global::System.Nullable maximumRows, global::System.Nullable startRowIndex, string orderByCol, string searchVal, string tipo) { + this.Adapter.SelectCommand = this.CommandCollection[6]; if ((maximumRows.HasValue == true)) { this.Adapter.SelectCommand.Parameters[1].Value = ((int)(maximumRows.Value)); } @@ -19187,7 +19322,7 @@ SELECT CodArticolo, Disegno, DescArticolo, CurrRev, ProdRev, FlagIsNew, Tipo FRO [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)] public virtual DS_ProdTempi.AnagArticoliDataTable getUsed() { - this.Adapter.SelectCommand = this.CommandCollection[5]; + this.Adapter.SelectCommand = this.CommandCollection[7]; DS_ProdTempi.AnagArticoliDataTable dataTable = new DS_ProdTempi.AnagArticoliDataTable(); this.Adapter.Fill(dataTable); return dataTable; @@ -19532,7 +19667,7 @@ SELECT CodArticolo, Disegno, DescArticolo, CurrRev, ProdRev, FlagIsNew, Tipo FRO [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] public virtual object rowCount(string searchVal, string tipo) { - global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[6]; + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[8]; if ((searchVal == null)) { command.Parameters[1].Value = global::System.DBNull.Value; } @@ -19572,7 +19707,7 @@ SELECT CodArticolo, Disegno, DescArticolo, CurrRev, ProdRev, FlagIsNew, Tipo FRO [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] public virtual int setNewRev(string Original_CodArticolo) { - global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[7]; + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[9]; if ((Original_CodArticolo == null)) { command.Parameters[1].Value = global::System.DBNull.Value; } @@ -19600,7 +19735,7 @@ SELECT CodArticolo, Disegno, DescArticolo, CurrRev, ProdRev, FlagIsNew, Tipo FRO [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] public virtual int updateQry(string Original_CodArticolo, string DescArticolo, string CurrRev, string CodArticolo, string Disegno, string Tipo) { - global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[8]; + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[10]; if ((Original_CodArticolo == null)) { command.Parameters[1].Value = global::System.DBNull.Value; } diff --git a/MapoDb/DS_applicazione.Designer.cs b/MapoDb/DS_applicazione.Designer.cs index f62bc355..aa72e55f 100644 --- a/MapoDb/DS_applicazione.Designer.cs +++ b/MapoDb/DS_applicazione.Designer.cs @@ -28802,7 +28802,7 @@ SELECT IdxMacchina, dtEvento, CodFlux, Valore, Cnt FROM FluxLog WHERE (CodFlux = [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] private void InitCommandCollection() { - this._commandCollection = new global::System.Data.SqlClient.SqlCommand[7]; + this._commandCollection = new global::System.Data.SqlClient.SqlCommand[8]; this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[0].Connection = this.Connection; this._commandCollection[0].CommandText = "SELECT * FROM dbo.FluxLog"; @@ -28865,6 +28865,14 @@ SELECT IdxMacchina, dtEvento, CodFlux, Valore, Cnt FROM FluxLog WHERE (CodFlux = this._commandCollection[6].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[6].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchina", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[6].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MaxSec", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[7] = new global::System.Data.SqlClient.SqlCommand(); + this._commandCollection[7].Connection = this.Connection; + this._commandCollection[7].CommandText = "dbo.stp_FL_TakeSnapshotLast"; + this._commandCollection[7].CommandType = global::System.Data.CommandType.StoredProcedure; + this._commandCollection[7].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[7].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxMacchina", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[7].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DtMin", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[7].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DtMax", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -29343,6 +29351,46 @@ SELECT IdxMacchina, dtEvento, CodFlux, Valore, Cnt FROM FluxLog WHERE (CodFlux = } return returnValue; } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int TakeSnapshotLast(string IdxMacchina, global::System.Nullable DtMin, global::System.Nullable DtMax) { + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[7]; + if ((IdxMacchina == null)) { + command.Parameters[1].Value = global::System.DBNull.Value; + } + else { + command.Parameters[1].Value = ((string)(IdxMacchina)); + } + if ((DtMin.HasValue == true)) { + command.Parameters[2].Value = ((System.DateTime)(DtMin.Value)); + } + else { + command.Parameters[2].Value = global::System.DBNull.Value; + } + if ((DtMax.HasValue == true)) { + command.Parameters[3].Value = ((System.DateTime)(DtMax.Value)); + } + else { + command.Parameters[3].Value = global::System.DBNull.Value; + } + global::System.Data.ConnectionState previousConnectionState = command.Connection.State; + if (((command.Connection.State & global::System.Data.ConnectionState.Open) + != global::System.Data.ConnectionState.Open)) { + command.Connection.Open(); + } + int returnValue; + try { + returnValue = command.ExecuteNonQuery(); + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + command.Connection.Close(); + } + } + return returnValue; + } } /// diff --git a/MapoDb/DS_applicazione.xsd b/MapoDb/DS_applicazione.xsd index 1d3d9084..cda05192 100644 --- a/MapoDb/DS_applicazione.xsd +++ b/MapoDb/DS_applicazione.xsd @@ -2623,6 +2623,19 @@ SELECT IdxMacchina, dtEvento, CodFlux, Valore, Cnt FROM FluxLog WHERE (CodFlux = + + + + dbo.stp_FL_TakeSnapshotLast + + + + + + + + + @@ -3844,46 +3857,46 @@ FROM v_AlarmLog - + - - - - + + + + - + - - - + + + - - + + - - - + + + @@ -4020,33 +4033,33 @@ FROM v_AlarmLog - + - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/MapoDb/DataLayer.cs b/MapoDb/DataLayer.cs index fe85fa4b..77d66bfa 100644 --- a/MapoDb/DataLayer.cs +++ b/MapoDb/DataLayer.cs @@ -6,6 +6,7 @@ using System.Collections.Generic; using System.Data; using System.Data.SqlClient; using System.Globalization; +using System.Linq; using System.Reflection; using System.Threading; @@ -58,6 +59,8 @@ namespace MapoDb public DS_applicazioneTableAdapters.DiarioDichiarazioniTableAdapter taDiarioDich; + public DS_DossParTableAdapters.DossiersTableAdapter taDOSS; + public DS_applicazioneTableAdapters.EventListTableAdapter taEventi; public DS_applicazioneTableAdapters.FluxLogTableAdapter taFL; @@ -68,6 +71,8 @@ namespace MapoDb public DS_applicazioneTableAdapters.KeepAliveTableAdapter taKeepAlive; + public DS_UtilityTableAdapters.v_selListValTableAdapter taListVal; + public DS_ProdTempiTableAdapters.Macchine2SlaveTableAdapter taM2S; public DS_applicazioneTableAdapters.MacchineTableAdapter taMacchine; @@ -292,7 +297,16 @@ namespace MapoDb /// public static string currOdlRowHash(string idxMacchina) { - return mHash(string.Format("CurrOdlRow:{0}", idxMacchina)); + return mHash($"CurrOdlRow:{idxMacchina}"); + } + /// + /// Hash dati PODL ROW x la macchina specificata + /// + /// + /// + public static string getPOdlRowHash(int idxPODL) + { + return mHash($"PODLRow:{idxPODL}"); } /// @@ -480,6 +494,15 @@ namespace MapoDb { return mHash($"VetoOdlMacc:{idxMacchina}"); } + /// + /// Hash x VETO force Start PODL la macchina specificata + /// + /// + /// + public static string vetoForceStartPOdlMaccHash(string idxMacchina) + { + return mHash($"VetoStartPOdlMacc:{idxMacchina}"); + } /// /// verifica se sia da reinviare un task alla macchina dall'elenco di quelli salvati (in @@ -756,8 +779,11 @@ namespace MapoDb { // invio task caricamento dati ODL addTask4Machine(idxMacchina, taskType.setArt, setArtVal); - addTask4Machine(idxMacchina, taskType.setPzComm, setPzCommVal); addTask4Machine(idxMacchina, taskType.setComm, setCommVal); + addTask4Machine(idxMacchina, taskType.setPzComm, setPzCommVal); + updateMachineParameter(idxMacchina, "setArt", setArtVal); + updateMachineParameter(idxMacchina, "setComm", setCommVal); + updateMachineParameter(idxMacchina, "setPzComm", setPzCommVal); } catch { } @@ -770,15 +796,26 @@ namespace MapoDb // se è una master richiamo fix x child... if (isMaster(idxMacchina)) { + string ts = ""; + string outData = ""; taODL.fixMachineSlave(idxMacchina, 30, 1); // ciclo su ogni slave la gestione reinvio pezzi -->calcolo gli slave... var slaveList = taM2S.getByMaster(idxMacchina); foreach (var machine in slaveList) { + // invio chiusura attrezzaggio + ts = string.Format("{0:yyMMdd}T{0:HHmmss.fff}Z", DateTime.Now); + outData = $"TS:{ts}|MATR:{MatrOpr}|ODL:{newOdl}"; + addTask4Machine(machine.IdxMacchinaSlave, taskType.fixStopSetup, outData); + // invio task caricamento dati ODL addTask4Machine(machine.IdxMacchinaSlave, taskType.setArt, setArtVal); - addTask4Machine(machine.IdxMacchinaSlave, taskType.setPzComm, setPzCommVal); addTask4Machine(machine.IdxMacchinaSlave, taskType.setComm, setCommVal); + addTask4Machine(machine.IdxMacchinaSlave, taskType.setPzComm, setPzCommVal); + + updateMachineParameter(machine.IdxMacchinaSlave, "setArt", setArtVal); + updateMachineParameter(machine.IdxMacchinaSlave, "setComm", setCommVal); + updateMachineParameter(machine.IdxMacchinaSlave, "setPzComm", setPzCommVal); } } } @@ -1190,17 +1227,18 @@ namespace MapoDb { DS_ProdTempi.ODLDataTable answTab = null; string rCall = ""; + string rKey = currOdlRowHash(idxMacchina); if (memLayer.ML.CRB("IOB_RedEnab")) { saveCallRec("hasODL_row"); try { - rCall = memLayer.ML.getRSV(currOdlRowHash(idxMacchina)); + rCall = memLayer.ML.getRSV(rKey); if (!string.IsNullOrEmpty(rCall)) { answTab = JsonConvert.DeserializeObject(rCall); } - else + if (answTab == null || answTab.Count == 0) { // istanzio un NUOVO oggetto lettura MapoDb connDb = new MapoDb(); @@ -1208,7 +1246,7 @@ namespace MapoDb // salvo in redis... rCall = JsonConvert.SerializeObject(answTab); int currOdlRowCacheDur = memLayer.ML.CRI("currOdlRowCacheDur"); - memLayer.ML.setRSV(currOdlRowHash(idxMacchina), rCall, currOdlRowCacheDur); + memLayer.ML.setRSV(rKey, rCall, currOdlRowCacheDur); } } catch (Exception exc) @@ -1225,6 +1263,48 @@ namespace MapoDb return answTab; } + /// + /// Restituisce il valore dell'intera RIGA PODL data chiave (da redis o da DB se non trovata...) + /// + /// IDX della PODL + /// + public DS_ProdTempi.PromesseODLDataTable getPODLRowTab(int idxPODL) + { + DS_ProdTempi.PromesseODLDataTable answTab = null; + string rCall = ""; + string rKey = getPOdlRowHash(idxPODL); + if (memLayer.ML.CRB("IOB_RedEnab")) + { + saveCallRec("hasPODL_row"); + try + { + rCall = memLayer.ML.getRSV(rKey); + if (!string.IsNullOrEmpty(rCall)) + { + answTab = JsonConvert.DeserializeObject(rCall); + } + if (answTab == null || answTab.Count == 0) + { + answTab = taPODL.getByKey(idxPODL); + + // salvo in redis... + rCall = JsonConvert.SerializeObject(answTab); + int currOdlRowCacheDur = memLayer.ML.CRI("currOdlRowCacheDur"); + memLayer.ML.setRSV(rKey, rCall, currOdlRowCacheDur); + } + } + catch (Exception exc) + { + logger.lg.scriviLog($"Eccezione in recupero getPODLRowTab{Environment.NewLine}{exc}", tipoLog.EXCEPTION); + } + } + else + { + answTab = taPODL.getByKey(idxPODL); + } + return answTab; + } + /// /// Restituisce il valore dell'intera RIGA stato macchina corrente (da redis o da DB se non trovata...) /// @@ -1369,6 +1449,295 @@ namespace MapoDb return fatto; } + /// Effettua force Start PODL + /// [CurrProdStatus = 1] se fosse già in essere ODL collegato --> lascia aperto + /// [CurrProdStatus = 2] se esistesse un ODL da altro PODL x diverso articolo/fase --> chiude vecchio x poi far partire nuovo + /// [CurrProdStatus = 3] se fosse chiuso ODL collegato --> duplica PODL e poi avvia nuovo ODL + /// [CurrProdStatus = 4] se fosse già in essere ODL non collegato --> lascia aperto e collego + /// + /// macchina IDX PODL da + /// processare effettuare conferma qty STEP x cui + /// arrotondare la quantità prox ODL (corrente come riferimento) + public string ForceStartPOdl(string idxMacchina, int idxPODL, bool doConfirm) + { + string answ = "KO"; + int CurrProdStatus = 0; + string sIdxODL = ""; + string redKey = vetoForceStartPOdlMaccHash(idxMacchina); + // verifico NON CI SIA un veto a NUOVI split... 30 sec di default... + string rawData = memLayer.ML.getRSV(redKey); + if (string.IsNullOrEmpty(rawData)) + { + // registro VETO x altri split... 30sec + memLayer.ML.setRSV(redKey, $"Inizio FORCE START PODL: {idxPODL} | {DateTime.Now}", 30); + // calcolo la qta da gestire + int qtyConf = 0; + if (doConfirm) + { + DS_ProdTempi.stp_PzProd_getByMacchinaRow rigaProd; + try + { + rigaProd = taPzProd2conf.GetData(idxMacchina)[0]; + qtyConf = rigaProd.pezziNonConfermati; + } + catch (Exception exc) + { + logger.lg.scriviLog($"Errore recupero pezzi da confermare per la macchina {idxMacchina}{Environment.NewLine}{exc}", tipoLog.ERROR); + } + } + + // proseguo + DS_ProdTempi.ODLDataTable currODLData = null; + DS_ProdTempi.PromesseODLDataTable reqPODLData = null; + DS_ProdTempi.ODLRow OdlRow = null; + DS_ProdTempi.PromesseODLRow POdlRow = null; + // metodo principale... + try + { + sIdxODL = getCurrODL(idxMacchina); + // recupero dati da PODL + reqPODLData = getPODLRowTab(idxPODL); + // recupero ODL corrente... + currODLData = currODLRowTab(idxMacchina); + + // procedo SOLO SE ho trovato un PODL + if (reqPODLData != null && reqPODLData.Rows.Count > 0) + { + POdlRow = reqPODLData[0]; + // prima cosa: verifico se sia un PODL libero (idxODL==0) + if (reqPODLData[0].IdxODL == 0) + { + if (currODLData != null && currODLData.Count > 0) + { + OdlRow = currODLData[0]; + // verifico ODL corrente, se compatibili... + if (OdlRow.CodArticolo == POdlRow.CodArticolo && OdlRow.KeyRichiesta == POdlRow.KeyRichiesta && OdlRow.IdxMacchina == POdlRow.IdxMacchina) + { + // compatibili --> caso 4 + CurrProdStatus = 4; + } + else + { + // anche qui chiusura ed avvio + CurrProdStatus = 2; + } + } + else + { + CurrProdStatus = 2; + } + } + // altrimenti se PODL già associato + else + { + // se trovo qualcosa come ODL + if (currODLData != null && currODLData.Count > 0) + { + OdlRow = currODLData[0]; + // se è quello già associato + if ($"{reqPODLData[0].IdxODL}" == sIdxODL) + { + // non devo fare nulla + CurrProdStatus = 1; + } + else + { + // altrimenti devo clonare + CurrProdStatus = 3; + } + } + else + { + // anche in questo caso devo clonare PODL + CurrProdStatus = 3; + } + } + } + else + { + logger.lg.scriviLog($"Errore in ForceStartPOdl: non trovato PODL per idxPODL{idxPODL}", tipoLog.ERROR); + } + + // OVVIAMENTE solo se ho POdlRow... + if (POdlRow != null) + { + switch (CurrProdStatus) + { + case 1: + // --> non tocco nulla PODL/ODL + logger.lg.scriviLog($"Richiesto ForceStartPOdl, caso 1 | PODL {idxPODL} | ODL {sIdxODL} | nessun intervento", tipoLog.INFO); + break; + case 2: + // eventuale chiusura vecchio ODL + if (currODLData.Count > 0) + { + doCloseCurrODL(idxMacchina, doConfirm, qtyConf, currODLData, DateTime.Now); + } + // avvio PODL: creo nuovo ODL da promessa ed associo + taODL.inizioSetupPromessa(idxPODL, MatrOpr, POdlRow.IdxMacchina, POdlRow.TCAssegnato, POdlRow.PzPallet, POdlRow.Note); + // fix (invio ) dati ODL + Thread.Sleep(1000); + answ = saveOdlData(idxMacchina, currODLData, reqPODLData); + + break; + case 3: + // eventuale chiusura vecchio ODL + if (currODLData.Count > 0) + { + doCloseCurrODL(idxMacchina, doConfirm, qtyConf, currODLData, DateTime.Now); + } + // duplico PODL... inserisco nuovo record... + taPODL.insertQuery(POdlRow.KeyRichiesta, POdlRow.KeyBCode, true, POdlRow.CodArticolo, POdlRow.CodGruppo, POdlRow.IdxMacchina, POdlRow.NumPezzi, POdlRow.TCAssegnato, POdlRow.DueDate, POdlRow.Priorita, POdlRow.PzPallet, POdlRow.Note); + // recupero odl attivabili... + var podlList = taPODL.getByCodArt(POdlRow.CodArticolo, true); + // cerco quello che ha la stessa fase/macchina e + recente... + var lastPodl = podlList.Where(x => x.KeyRichiesta == POdlRow.KeyRichiesta && x.IdxMacchina == POdlRow.IdxMacchina).OrderByDescending(x => x.idxPromessa).FirstOrDefault(); + int newPODL = lastPodl != null ? lastPodl.idxPromessa : POdlRow.idxPromessa; + // avvio (nuovo) PODL + taODL.inizioSetupPromessa(idxPODL, MatrOpr, POdlRow.IdxMacchina, POdlRow.TCAssegnato, POdlRow.PzPallet, POdlRow.Note); + // fix (invio ) dati ODL + Thread.Sleep(1000); + answ = saveOdlData(idxMacchina, currODLData, reqPODLData); + + break; + case 4: + // --> registro in PODL e non tocco ODL + + break; + default: + break; + } + } + else + { } + } + catch (Exception exc) + { + logger.lg.scriviLog($"Eccezione in ForceStartPOdl{Environment.NewLine}{exc}", tipoLog.EXCEPTION); + } + } + else + { + logger.lg.scriviLog($"VETO ATTIVO | Richiesto ForceStartPOdl per impianto {idxMacchina} | impossibile procedere"); + } + return answ; + } + + private string saveOdlData(string idxMacchina, DS_ProdTempi.ODLDataTable currODLData, DS_ProdTempi.PromesseODLDataTable reqPODLData) + { + string answ; + // recupera ODL macchina + var newOdl = currODL(idxMacchina, true); + // attendo 1000 msec + // registro fine ODL (idxTipoEv = 1) + int idxEvento = 1; + logger.lg.scriviLog($"Invio evento ODL-forced start per macchina {idxMacchina}, evento {idxEvento}, articolo {currODLData[0].CodArticolo}", tipoLog.INFO); + var resCmd = scriviRigaEventoBarcode(idxMacchina, idxEvento, currODLData[0].CodArticolo, "ODL-FORFCE-START"); + // invio eventi setup a macchina.... + string setArtVal = $"{currODLData[0].CodArticolo}"; + string setPzCommVal = $"{reqPODLData[0].NumPezzi}"; + string setCommVal = $"ODL{newOdl}"; + if (!string.IsNullOrEmpty(reqPODLData[0].KeyRichiesta)) + { + setCommVal = $"{reqPODLData[0].KeyRichiesta} ODL{newOdl}"; + } + try + { + // invio task caricamento dati ODL + addTask4Machine(idxMacchina, taskType.setArt, setArtVal); + addTask4Machine(idxMacchina, taskType.setComm, setCommVal); + addTask4Machine(idxMacchina, taskType.setPzComm, setPzCommVal); + updateMachineParameter(idxMacchina, "setArt", setArtVal); + updateMachineParameter(idxMacchina, "setComm", setCommVal); + updateMachineParameter(idxMacchina, "setPzComm", setPzCommVal); + } + catch + { } + // chiamo refresh MSE + taMSE.forceRecalc(0, idxMacchina); + // resetto stato macchina... + memLayer.ML.redDelKey(currStatoMaccHash(idxMacchina)); + answ = "OK"; + logger.lg.scriviLog($"Effettuato reset e ricalcoli x split ODL per macchina {idxMacchina}", tipoLog.INFO); + // se è una master richiamo fix x child... + if (isMaster(idxMacchina)) + { + string ts = ""; + string outData = ""; + taODL.fixMachineSlave(idxMacchina, 30, 1); + // ciclo su ogni slave la gestione reinvio pezzi -->calcolo gli slave... + var slaveList = taM2S.getByMaster(idxMacchina); + foreach (var machine in slaveList) + { + // invio chiusura attrezzaggio + ts = string.Format("{0:yyMMdd}T{0:HHmmss.fff}Z", DateTime.Now); + outData = $"TS:{ts}|MATR:{MatrOpr}|ODL:{newOdl}"; + addTask4Machine(machine.IdxMacchinaSlave, taskType.fixStopSetup, outData); + + // invio task caricamento dati ODL + addTask4Machine(machine.IdxMacchinaSlave, taskType.setArt, setArtVal); + addTask4Machine(machine.IdxMacchinaSlave, taskType.setComm, setCommVal); + addTask4Machine(machine.IdxMacchinaSlave, taskType.setPzComm, setPzCommVal); + + updateMachineParameter(machine.IdxMacchinaSlave, "setArt", setArtVal); + updateMachineParameter(machine.IdxMacchinaSlave, "setComm", setCommVal); + updateMachineParameter(machine.IdxMacchinaSlave, "setPzComm", setPzCommVal); + } + } + + return answ; + } + + private bool doCloseCurrODL(string idxMacchina, bool doConfirm, int qtyConf, DS_ProdTempi.ODLDataTable currODLData, DateTime adesso) + { + bool fatto = false; + // registro un evento di inizio attrezzaggio (idxTipoEv = 2) + int idxEvento = 2; + logger.lg.scriviLog($"Invio evento CHIUSURA ODL per macchina {idxMacchina}, evento {idxEvento}, articolo {currODLData[0].CodArticolo}, qty confermata {qtyConf}", tipoLog.INFO); + + // chiudo ALTRO ODL + inputComandoMapo resCmd = scriviRigaEventoBarcode(idxMacchina, idxEvento, currODLData[0].CodArticolo, "ODL-CLOSE", 0, "", adesso, adesso); + if (doConfirm) + { + // attendo 100 msec + Thread.Sleep(100); + adesso = DateTime.Now; + // chiamo conferma produzione... + try + { + string chiamata = confRett ? "confermaProdMacchinaFull" : "confermaProdMacchina"; + logger.lg.scriviLog($"Chiamata a {chiamata} con parametri {currODLData[0].IdxMacchina} |{MatrOpr} | {DateTime.Now.AddDays(-10)} | {DateTime.Now} | {qtyConf} | 0 | 1 | {DateTime.Now} | false", tipoLog.INFO); + string idxMacchinaSel = currODLData[0].IdxMacchina; + if (confRett) + { + // confermo al netto dei pezzi lasciati... + fatto = confermaProdMacchinaFull(idxMacchinaSel, memLayer.ML.CRI("modoConfProd"), qtyConf, 0, 0, adesso); + } + else + { + fatto = confermaProdMacchina(idxMacchinaSel, memLayer.ML.CRI("modoConfProd"), qtyConf, 0, adesso); + } + if (!fatto) + { + logger.lg.scriviLog($"ERRORE in chiamata {chiamata}", tipoLog.ERROR); + } + } + catch (Exception exc) + { + logger.lg.scriviLog($"Eccezione in ConfermaProduzione{Environment.NewLine}{exc}", tipoLog.EXCEPTION); + } + } + // attendo 100 msec + Thread.Sleep(100); + // chiamo chiusura + MapoDbObj.taODL.forceClose(currODLData[0].IdxODL, idxMacchina); + // elimino eventuale ODL precedente... + string rKey = memLayer.ML.redHash($"ODL:{idxMacchina}"); + memLayer.ML.setRSV(rKey, ""); + fatto = true; + return fatto; + } + /// /// GET elenco parametri correnti x IOB /// @@ -1388,7 +1757,7 @@ namespace MapoDb } catch (Exception exc) { - logger.lg.scriviLog($"Eccezione in deserializzazione getIobCurrParam{Environment.NewLine}{exc}"); + logger.lg.scriviLog($"Eccezione in deserializzazione getCurrObjItems{Environment.NewLine}{exc}"); } } return actValues; @@ -1420,7 +1789,7 @@ namespace MapoDb } catch (Exception exc) { - logger.lg.scriviLog($"Eccezione in deserializzazione getIobCurrParam{Environment.NewLine}{exc}"); + logger.lg.scriviLog($"Eccezione in deserializzazione getCurrObjItemsPendigWrite{Environment.NewLine}{exc}"); } } return writeValues; @@ -1875,7 +2244,7 @@ namespace MapoDb DateTime dataOraEvento = DateTime.Now; DateTime dtEvento, dtCorrente; // controllo: se ho valori dt x evento e orario DIVERSI per acquisitore IOB calcolo - // dataOraEvento corretto + // dataOraEvento corretto if (dtEve != dtCurr) { Int64 delta = 0; @@ -1974,7 +2343,7 @@ namespace MapoDb DateTime dataOraEvento = DateTime.Now; DateTime dtEvento, dtCorrente; // controllo: se ho valori dt x evento e orario DIVERSI per acquisitore IOB calcolo - // dataOraEvento corretto + // dataOraEvento corretto if (dtEve != dtCurr) { // delta è un calcolo MOLTO approssimativo della differenza temporale... @@ -2309,7 +2678,7 @@ namespace MapoDb DateTime dataOraEvento = DateTime.Now; DateTime dtEvento, dtCorrente; // controllo: se ho valori dt x evento e orario DIVERSI per acquisitore IOB calcolo - // dataOraEvento corretto + // dataOraEvento corretto if (dtEve != dtCurr) { Int64 delta = 0; @@ -3398,7 +3767,7 @@ namespace MapoDb } /// - /// Effettua chaimata DB x snapshot del FluxLog della macchina richiesta (insieme set ultimi dati) + /// Effettua chiamata DB x snapshot del FluxLog della macchina richiesta (insieme set ultimi dati) /// /// IdxMacchina /// @@ -3427,6 +3796,35 @@ namespace MapoDb return answ; } + /// + /// Effettua chiamata DB x snapshot del FluxLog della macchina richiesta (insieme set ultimi dati) + /// + /// IdxMacchina + /// DT start x effettuare snapshot + /// DT end x effettuare snapshot + /// + public string takeFlogSnapshotLast(string id, DateTime dtMin, DateTime dtMax) + { + string answ = "ND"; + // instanzio un nuovo oggetto MapoDb + MapoDb connDb = new MapoDb(); + // scrivo keep alive!!! (se necessario, altrimenti è in cache...) + connDb.scriviKeepAlive(id, DateTime.Now); + + try + { + // ora chiamo la stored di duplicazione + DataLayer DLMan = new DataLayer(); + DLMan.taFL.TakeSnapshotLast(id, dtMin, dtMax); + answ = "OK"; + } + catch (Exception exc) + { + logger.lg.scriviLog($"TakeSnapshotLast:{Environment.NewLine}{exc}", tipoLog.EXCEPTION); + } + return answ; + } + /// /// Aggiornamento parametro per macchina /// @@ -3557,11 +3955,13 @@ namespace MapoDb taDatiProdMacchPer = new DS_ProdTempiTableAdapters.stp_repDonati_getDatiProdMacchinaPeriodoTableAdapter(); taDatiStatoMacch = new DS_ProdTempiTableAdapters.stp_repDonati_getLastStatoDurataMacchinaTableAdapter(); taDiarioDich = new DS_applicazioneTableAdapters.DiarioDichiarazioniTableAdapter(); + taDOSS = new DS_DossParTableAdapters.DossiersTableAdapter(); taEventi = new DS_applicazioneTableAdapters.EventListTableAdapter(); taFL = new DS_applicazioneTableAdapters.FluxLogTableAdapter(); taIS_TrDati = new DS_IntServTableAdapters.TransitoDatiTableAdapter(); taIstK = new DS_IntServTableAdapters.IstanzeKITTableAdapter(); taKeepAlive = new DS_applicazioneTableAdapters.KeepAliveTableAdapter(); + taListVal = new DS_UtilityTableAdapters.v_selListValTableAdapter(); taM2S = new DS_ProdTempiTableAdapters.Macchine2SlaveTableAdapter(); taMacchine = new DS_applicazioneTableAdapters.MacchineTableAdapter(); taMacParams = new DS_PlanTableAdapters.MachineParamsTableAdapter(); @@ -3627,11 +4027,13 @@ namespace MapoDb taDatiProdMacchPer.Connection.ConnectionString = connectionString; taDatiStatoMacch.Connection.ConnectionString = connectionString; taDiarioDich.Connection.ConnectionString = connectionString; + taDOSS.Connection.ConnectionString = connectionString; taEventi.Connection.ConnectionString = connectionString; taFL.Connection.ConnectionString = connectionString; taIS_TrDati.Connection.ConnectionString = connectionStringIS; taIstK.Connection.ConnectionString = connectionStringIS; taKeepAlive.Connection.ConnectionString = connectionString; + taListVal.Connection.ConnectionString = connectionString; taM2S.Connection.ConnectionString = connectionString; taMacchine.Connection.ConnectionString = connectionString; taMacParams.Connection.ConnectionString = connectionStringES3; diff --git a/MapoDb/MapoDb.csproj b/MapoDb/MapoDb.csproj index 6369ad57..1884a6ad 100644 --- a/MapoDb/MapoDb.csproj +++ b/MapoDb/MapoDb.csproj @@ -225,6 +225,11 @@ True DS_Arca.xsd + + True + True + DS_DossPar.xsd + True True @@ -312,6 +317,17 @@ DS_Arca.xsd + + DS_DossPar.xsd + + + MSDataSetGenerator + DS_DossPar.Designer.cs + Designer + + + DS_DossPar.xsd + DS_IntServ.xsd diff --git a/MapoSDK/Enums.cs b/MapoSDK/Enums.cs index 744e2006..d3e28016 100644 --- a/MapoSDK/Enums.cs +++ b/MapoSDK/Enums.cs @@ -197,7 +197,12 @@ namespace MapoSDK /// /// Icoel: Variety + layout info relative /// - IcoelVarInfo + IcoelVarInfo, + + /// + /// Info tipo tabella RegGiacenze (MAG) + /// + RegGiacenze } /// diff --git a/MapoSDK/MapoSDK.csproj b/MapoSDK/MapoSDK.csproj index b4dff43d..72a42cbe 100644 --- a/MapoSDK/MapoSDK.csproj +++ b/MapoSDK/MapoSDK.csproj @@ -70,6 +70,7 @@ Component + diff --git a/MapoSDK/Objects.cs b/MapoSDK/Objects.cs index f0ddf9e0..b86777f5 100644 --- a/MapoSDK/Objects.cs +++ b/MapoSDK/Objects.cs @@ -496,6 +496,27 @@ namespace MapoSDK #endregion Public Properties } + /// + /// Tracciato RegGiacenze x insert da IOB + /// + public class RegGiacenze + { + #region Public Properties + + public DateTime DateRif { get; set; } = DateTime.Today; + public string ExtDoc { get; set; } = ""; + public string IdentRG { get; set; } = ""; + public int IdxODL { get; set; } = 0; + public string Notes { get; set; } = ""; + public int NumPack { get; set; } = 0; + public string Product { get; set; } = ""; + public double QtyTot { get; set; } = 0; + public string Supplier { get; set; } = ""; + public string Variety { get; set; } = ""; + + #endregion Public Properties + } + public class StCheckOverride { #region Public Properties diff --git a/MapoSDK/WharehouseData.cs b/MapoSDK/WharehouseData.cs new file mode 100644 index 00000000..32ea3705 --- /dev/null +++ b/MapoSDK/WharehouseData.cs @@ -0,0 +1,29 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; + +namespace MapoSDK +{ + /// + /// Classi generiche x gestioen oggetti Magazzino (Wharehouse) + /// + public class WharehouseData + { + + public class BatchRec + { + public string Ident { get; set; } = "NA"; + public string Product { get; set; } = "Prod"; + public string Variety { get; set; } = "Var"; + public string Supplier { get; set; } = "Suppl"; + public string Notes { get; set; } = "Notes"; + public string ExtDoc { get; set; } = "Doc"; + + public DateTime DateRif { get; set; } = DateTime.Today; + + public double QtyTot { get; set; } = 0; + public int NumPack { get; set; } = 0; + } + } +} diff --git a/REST_test/Insomnia_MP_IO.json b/REST_test/Insomnia_MP_IO.json index 0f0c32b0..7c0c3c54 100644 --- a/REST_test/Insomnia_MP_IO.json +++ b/REST_test/Insomnia_MP_IO.json @@ -1 +1 @@ -{"_type":"export","__export_format":4,"__export_date":"2022-02-28T18:41:30.783Z","__export_source":"insomnia.desktop.app:v2021.7.2","resources":[{"_id":"req_18c7546d80a74c019f71980710c3a765","parentId":"fld_cde081c45fe24e268c98db0c9c60d5be","modified":1573490149972,"created":1573400234158,"url":"{{ BASE_URL }}/IOB/getObjItems/SIMUL_01","name":"Get All Items","description":"","method":"GET","body":{},"parameters":[],"headers":[],"authentication":{},"metaSortKey":-1572688535038.5,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"fld_cde081c45fe24e268c98db0c9c60d5be","parentId":"wrk_6eaf0a20123c480295db476860d8f716","modified":1573404868724,"created":1573400229143,"name":"MP-IO parametri","description":"","environment":{},"environmentPropertyOrder":null,"metaSortKey":-1573400229143,"_type":"request_group"},{"_id":"wrk_6eaf0a20123c480295db476860d8f716","parentId":null,"modified":1573489541008,"created":1572685869137,"name":"MP-IO","description":"","scope":"design","_type":"workspace"},{"_id":"req_5d8f4dc26a944a6cb6ffe55ec6e57415","parentId":"fld_cde081c45fe24e268c98db0c9c60d5be","modified":1573404368579,"created":1573402488180,"url":"{{ BASE_URL }}/IOB/getObjItems2Write/SIMUL_01","name":"Get All Items 2 write","description":"","method":"GET","body":{},"parameters":[],"headers":[],"authentication":{},"metaSortKey":-1572688535032.25,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_b7f013c98aa344c2a7ceb01d915c6e65","parentId":"fld_cde081c45fe24e268c98db0c9c60d5be","modified":1646043545119,"created":1573400285659,"url":"{{ BASE_URL }}/IOB/setObjItems/SIMUL_01","name":"Add All Items","description":"","method":"POST","body":{"mimeType":"application/json","text":"[\n\t{\n\t\t\"uid\": \"setArt\",\n\t\t\"name\": \"Articolo\",\n\t\t\"value\": \"ART000123\",\n\t\t\"lastRead\": \"{% now 'iso-8601', '' %}\",\n\t\t\"writable\": true\n\t},\n\t{\n\t\t\"uid\": \"setComm\",\n\t\t\"name\": \"Commessa\",\n\t\t\"value\": \"COMM000002\",\n\t\t\"lastRead\": \"{% now 'iso-8601', '' %}\",\n\t\t\"writable\": true\n\t},\n\t{\n\t\t\"uid\": \"TEMP_01\",\n\t\t\"name\": \"Temperatura 01\",\n\t\t\"value\": \"9\",\n\t\t\"lastRead\": \"{% now 'iso-8601', '' %}\"\n\t},\n\t{\n\t\t\"uid\": \"PRESS_01\",\n\t\t\"name\": \"Pressione 01\",\n\t\t\"value\": \"9\",\n\t\t\"lastRead\": \"{% now 'iso-8601', '' %}\"\n\t}\n]\n"},"parameters":[],"headers":[{"id":"pair_d9894ec846994bcda341092cd0263f08","name":"Content-Type","value":"application/json"}],"authentication":{},"metaSortKey":-1572688535007.25,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_47f2f4e7facc465893880458e1c9f077","parentId":"fld_cde081c45fe24e268c98db0c9c60d5be","modified":1639827351229,"created":1573400470873,"url":"{{ BASE_URL }}/IOB/upsertObjItems/SIMUL_01","name":"Add Some Item","description":"","method":"POST","body":{"mimeType":"application/json","text":"[\n\t{\n\t\t\"uid\": \"setComm\",\n\t\t\"name\": \"Commessa\",\n\t\t\"value\": \"\",\n\t\t\"reqValue\": \"COMM000003\",\n\t\t\"lastRequest\": \"{% now 'iso-8601', '' %}\",\n\t\t\"writable\": true\n\t}\n]"},"parameters":[],"headers":[{"id":"pair_d9894ec846994bcda341092cd0263f08","name":"Content-Type","value":"application/json"}],"authentication":{},"metaSortKey":-1572688534982.25,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_73c9276d0eec46b19011f9f6868e20c6","parentId":"fld_d8d2ad76cbd44eda870135968c48db24","modified":1639827348830,"created":1574522588204,"url":"{{ BASE_URL }}/IOB/saveDataItems/SIMUL_01","name":"Send DataItems","description":"","method":"POST","body":{"mimeType":"application/json","text":"[{\n\t\"uuid\": \"AVAIL\",\n\t\"Category\": 1,\n\t\"Name\": null,\n\t\"Type\": \"AVAILABILITY\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"STATUS\",\n\t\"Category\": 1,\n\t\"Name\": null,\n\t\"Type\": \"ACTUATOR_STATE\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"ACC_TIME\",\n\t\"Category\": 2,\n\t\"Name\": \"[s] Tempo macchina in potenza\",\n\t\"Type\": \"ACCUMULATED_TIME\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"ACC_TIME_WORK\",\n\t\"Category\": 2,\n\t\"Name\": \"[s] Tempo macchina in movimento\",\n\t\"Type\": \"ACCUMULATED_TIME\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"CLOCK\",\n\t\"Category\": 2,\n\t\"Name\": null,\n\t\"Type\": \"CLOCK_TIME\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"POWER\",\n\t\"Category\": 1,\n\t\"Name\": null,\n\t\"Type\": \"POWER_STATE\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"OperatorId\",\n\t\"Category\": 1,\n\t\"Name\": \"ID Operatore\",\n\t\"Type\": \"MESSAGE\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"FUNCT_MODE\",\n\t\"Category\": 1,\n\t\"Name\": null,\n\t\"Type\": \"MESSAGE\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"USER_ACTION\",\n\t\"Category\": 1,\n\t\"Name\": null,\n\t\"Type\": \"MESSAGE\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"TESTING_DATA\",\n\t\"Category\": 1,\n\t\"Name\": null,\n\t\"Type\": \"MESSAGE\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"PROTECTION_STATUS\",\n\t\"Category\": 1,\n\t\"Name\": \"Stato protezioni\",\n\t\"Type\": \"ACTUATOR_STATE\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"UNK_STATUS\",\n\t\"Category\": 1,\n\t\"Name\": \"Stati sconosciuti\",\n\t\"Type\": \"MESSAGE\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"UNK_STROBE\",\n\t\"Category\": 1,\n\t\"Name\": \"Strobes sconosciuti\",\n\t\"Type\": \"MESSAGE\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"CNC\",\n\t\"Category\": 0,\n\t\"Name\": null,\n\t\"Type\": \"SYSTEM\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"PLC\",\n\t\"Category\": 0,\n\t\"Name\": null,\n\t\"Type\": \"LOGIC_PROGRAM\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"MTC_asset_chg\",\n\t\"Category\": 1,\n\t\"Name\": null,\n\t\"Type\": \"ASSET_CHANGED\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"MTC_asset_rem\",\n\t\"Category\": 1,\n\t\"Name\": null,\n\t\"Type\": \"ASSET_REMOVED\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"Axis_01_PosAct\",\n\t\"Category\": 2,\n\t\"Name\": \"[mm] Quota attuale\",\n\t\"Type\": \"POSITION\",\n\t\"SubType\": \"ACTUAL\",\n\t\"Units\": \"MILLIMETER\"\n}, {\n\t\"uuid\": \"Axis_01_PosTgt\",\n\t\"Category\": 2,\n\t\"Name\": \"[mm] Quota target\",\n\t\"Type\": \"POSITION\",\n\t\"SubType\": \"TARGET\",\n\t\"Units\": \"MILLIMETER\"\n}, {\n\t\"uuid\": \"Axis_01_Load\",\n\t\"Category\": 2,\n\t\"Name\": \"[%] Carico\",\n\t\"Type\": \"LOAD\",\n\t\"SubType\": null,\n\t\"Units\": \"PERCENT\"\n}, {\n\t\"uuid\": \"Axis_01_FeedAct\",\n\t\"Category\": 2,\n\t\"Name\": \"[mm/min] Feedrate\",\n\t\"Type\": \"AXIS_FEEDRATE\",\n\t\"SubType\": \"ACTUAL\",\n\t\"Units\": \"MILLIMETER/SECOND\"\n}, {\n\t\"uuid\": \"Axis_01_FeedOver\",\n\t\"Category\": 2,\n\t\"Name\": \"[%] Feed Override\",\n\t\"Type\": \"AXIS_FEEDRATE\",\n\t\"SubType\": \"OVERRIDE\",\n\t\"Units\": \"PERCENT\"\n}, {\n\t\"uuid\": \"Axis_01_AccTime\",\n\t\"Category\": 2,\n\t\"Name\": \"[s] Tempo utilizzo\",\n\t\"Type\": \"ACCUMULATED_TIME\",\n\t\"SubType\": null,\n\t\"Units\": \"SECOND\"\n}, {\n\t\"uuid\": \"Axis_01_DistDone\",\n\t\"Category\": 2,\n\t\"Name\": \"[m] Distanza totale percorsa\",\n\t\"Type\": \"LENGTH\",\n\t\"SubType\": null,\n\t\"Units\": \"COUNT\"\n}, {\n\t\"uuid\": \"Axis_01_InvDDone\",\n\t\"Category\": 2,\n\t\"Name\": \"[#] Numero inversioni\",\n\t\"Type\": \"MESSAGE\",\n\t\"SubType\": null,\n\t\"Units\": \"COUNT\"\n}, {\n\t\"uuid\": \"Axis_01_MainProc\",\n\t\"Category\": 1,\n\t\"Name\": \"[#] Processo di appartenenza\",\n\t\"Type\": \"MESSAGE\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"Axis_01_IsMast\",\n\t\"Category\": 1,\n\t\"Name\": \"[0/1] Master/Slave\",\n\t\"Type\": \"MESSAGE\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"Axis_01_MastId\",\n\t\"Category\": 1,\n\t\"Name\": \"[#] ID Asse master\",\n\t\"Type\": \"MESSAGE\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"Axis_01_Dir\",\n\t\"Category\": 1,\n\t\"Name\": \"[-/+] Direzione\",\n\t\"Type\": \"DIRECTION\",\n\t\"SubType\": \"LINEAR\",\n\t\"Units\": null\n}, {\n\t\"uuid\": \"Axis_01_AlarmCNC\",\n\t\"Category\": 0,\n\t\"Name\": \"Allarmi CN\",\n\t\"Type\": \"SYSTEM\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"Axis_01_AlarmPLC\",\n\t\"Category\": 0,\n\t\"Name\": \"Allarmi PLC\",\n\t\"Type\": \"LOGIC_PROGRAM\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"Axis_02_PosAct\",\n\t\"Category\": 2,\n\t\"Name\": \"[mm] Quota attuale\",\n\t\"Type\": \"POSITION\",\n\t\"SubType\": \"ACTUAL\",\n\t\"Units\": \"MILLIMETER\"\n}, {\n\t\"uuid\": \"Axis_02_PosTgt\",\n\t\"Category\": 2,\n\t\"Name\": \"[mm] Quota target\",\n\t\"Type\": \"POSITION\",\n\t\"SubType\": \"TARGET\",\n\t\"Units\": \"MILLIMETER\"\n}, {\n\t\"uuid\": \"Axis_02_Load\",\n\t\"Category\": 2,\n\t\"Name\": \"[%] Carico\",\n\t\"Type\": \"LOAD\",\n\t\"SubType\": null,\n\t\"Units\": \"PERCENT\"\n}, {\n\t\"uuid\": \"Axis_02_FeedAct\",\n\t\"Category\": 2,\n\t\"Name\": \"[mm/min] Feedrate\",\n\t\"Type\": \"AXIS_FEEDRATE\",\n\t\"SubType\": \"ACTUAL\",\n\t\"Units\": \"MILLIMETER/SECOND\"\n}, {\n\t\"uuid\": \"Axis_02_FeedOver\",\n\t\"Category\": 2,\n\t\"Name\": \"[%] Feed Override\",\n\t\"Type\": \"AXIS_FEEDRATE\",\n\t\"SubType\": \"OVERRIDE\",\n\t\"Units\": \"PERCENT\"\n}, {\n\t\"uuid\": \"Axis_02_AccTime\",\n\t\"Category\": 2,\n\t\"Name\": \"[s] Tempo utilizzo\",\n\t\"Type\": \"ACCUMULATED_TIME\",\n\t\"SubType\": null,\n\t\"Units\": \"SECOND\"\n}, {\n\t\"uuid\": \"Axis_02_DistDone\",\n\t\"Category\": 2,\n\t\"Name\": \"[m] Distanza totale percorsa\",\n\t\"Type\": \"LENGTH\",\n\t\"SubType\": null,\n\t\"Units\": \"COUNT\"\n}, {\n\t\"uuid\": \"Axis_02_InvDDone\",\n\t\"Category\": 2,\n\t\"Name\": \"[#] Numero inversioni\",\n\t\"Type\": \"MESSAGE\",\n\t\"SubType\": null,\n\t\"Units\": \"COUNT\"\n}, {\n\t\"uuid\": \"Axis_02_MainProc\",\n\t\"Category\": 1,\n\t\"Name\": \"[#] Processo di appartenenza\",\n\t\"Type\": \"MESSAGE\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"Axis_02_IsMast\",\n\t\"Category\": 1,\n\t\"Name\": \"[0/1] Master/Slave\",\n\t\"Type\": \"MESSAGE\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"Axis_02_MastId\",\n\t\"Category\": 1,\n\t\"Name\": \"[#] ID Asse master\",\n\t\"Type\": \"MESSAGE\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"Axis_02_Dir\",\n\t\"Category\": 1,\n\t\"Name\": \"[-/+] Direzione\",\n\t\"Type\": \"DIRECTION\",\n\t\"SubType\": \"LINEAR\",\n\t\"Units\": null\n}, {\n\t\"uuid\": \"Axis_02_AlarmCNC\",\n\t\"Category\": 0,\n\t\"Name\": \"Allarmi CN\",\n\t\"Type\": \"SYSTEM\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"Axis_02_AlarmPLC\",\n\t\"Category\": 0,\n\t\"Name\": \"Allarmi PLC\",\n\t\"Type\": \"LOGIC_PROGRAM\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"Axis_03_PosAct\",\n\t\"Category\": 2,\n\t\"Name\": \"[mm] Quota attuale\",\n\t\"Type\": \"POSITION\",\n\t\"SubType\": \"ACTUAL\",\n\t\"Units\": \"MILLIMETER\"\n}, {\n\t\"uuid\": \"Axis_03_PosTgt\",\n\t\"Category\": 2,\n\t\"Name\": \"[mm] Quota target\",\n\t\"Type\": \"POSITION\",\n\t\"SubType\": \"TARGET\",\n\t\"Units\": \"MILLIMETER\"\n}, {\n\t\"uuid\": \"Axis_03_Load\",\n\t\"Category\": 2,\n\t\"Name\": \"[%] Carico\",\n\t\"Type\": \"LOAD\",\n\t\"SubType\": null,\n\t\"Units\": \"PERCENT\"\n}, {\n\t\"uuid\": \"Axis_03_FeedAct\",\n\t\"Category\": 2,\n\t\"Name\": \"[mm/min] Feedrate\",\n\t\"Type\": \"AXIS_FEEDRATE\",\n\t\"SubType\": \"ACTUAL\",\n\t\"Units\": \"MILLIMETER/SECOND\"\n}, {\n\t\"uuid\": \"Axis_03_FeedOver\",\n\t\"Category\": 2,\n\t\"Name\": \"[%] Feed Override\",\n\t\"Type\": \"AXIS_FEEDRATE\",\n\t\"SubType\": \"OVERRIDE\",\n\t\"Units\": \"PERCENT\"\n}, {\n\t\"uuid\": \"Axis_03_AccTime\",\n\t\"Category\": 2,\n\t\"Name\": \"[s] Tempo utilizzo\",\n\t\"Type\": \"ACCUMULATED_TIME\",\n\t\"SubType\": null,\n\t\"Units\": \"SECOND\"\n}, {\n\t\"uuid\": \"Axis_03_DistDone\",\n\t\"Category\": 2,\n\t\"Name\": \"[m] Distanza totale percorsa\",\n\t\"Type\": \"LENGTH\",\n\t\"SubType\": null,\n\t\"Units\": \"COUNT\"\n}, {\n\t\"uuid\": \"Axis_03_InvDDone\",\n\t\"Category\": 2,\n\t\"Name\": \"[#] Numero inversioni\",\n\t\"Type\": \"MESSAGE\",\n\t\"SubType\": null,\n\t\"Units\": \"COUNT\"\n}, {\n\t\"uuid\": \"Axis_03_MainProc\",\n\t\"Category\": 1,\n\t\"Name\": \"[#] Processo di appartenenza\",\n\t\"Type\": \"MESSAGE\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"Axis_03_IsMast\",\n\t\"Category\": 1,\n\t\"Name\": \"[0/1] Master/Slave\",\n\t\"Type\": \"MESSAGE\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"Axis_03_MastId\",\n\t\"Category\": 1,\n\t\"Name\": \"[#] ID Asse master\",\n\t\"Type\": \"MESSAGE\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"Axis_03_Dir\",\n\t\"Category\": 1,\n\t\"Name\": \"[-/+] Direzione\",\n\t\"Type\": \"DIRECTION\",\n\t\"SubType\": \"LINEAR\",\n\t\"Units\": null\n}, {\n\t\"uuid\": \"Axis_03_AlarmCNC\",\n\t\"Category\": 0,\n\t\"Name\": \"Allarmi CN\",\n\t\"Type\": \"SYSTEM\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"Axis_03_AlarmPLC\",\n\t\"Category\": 0,\n\t\"Name\": \"Allarmi PLC\",\n\t\"Type\": \"LOGIC_PROGRAM\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"Axis_04_PosAct\",\n\t\"Category\": 2,\n\t\"Name\": \"[°] Quota attuale\",\n\t\"Type\": \"ANGLE\",\n\t\"SubType\": \"ACTUAL\",\n\t\"Units\": \"DEGREE\"\n}, {\n\t\"uuid\": \"Axis_04_PosTgt\",\n\t\"Category\": 2,\n\t\"Name\": \"[°] Quota target\",\n\t\"Type\": \"ANGLE\",\n\t\"SubType\": \"TARGET\",\n\t\"Units\": \"DEGREE\"\n}, {\n\t\"uuid\": \"Axis_04_Load\",\n\t\"Category\": 2,\n\t\"Name\": \"[%] Carico\",\n\t\"Type\": \"LOAD\",\n\t\"SubType\": null,\n\t\"Units\": \"PERCENT\"\n}, {\n\t\"uuid\": \"Axis_04_FeedAct\",\n\t\"Category\": 2,\n\t\"Name\": \"[°/min] Feedrate\",\n\t\"Type\": \"ROTARY_VELOCITY\",\n\t\"SubType\": \"ACTUAL\",\n\t\"Units\": \"REVOLUTION/MINUTE\"\n}, {\n\t\"uuid\": \"Axis_04_FeedOver\",\n\t\"Category\": 2,\n\t\"Name\": \"[%] Feed Override\",\n\t\"Type\": \"ROTARY_VELOCITY\",\n\t\"SubType\": \"OVERRIDE\",\n\t\"Units\": \"PERCENT\"\n}, {\n\t\"uuid\": \"Axis_04_AccTime\",\n\t\"Category\": 2,\n\t\"Name\": \"[s] Tempo utilizzo\",\n\t\"Type\": \"ACCUMULATED_TIME\",\n\t\"SubType\": null,\n\t\"Units\": \"SECOND\"\n}, {\n\t\"uuid\": \"Axis_04_DistDone\",\n\t\"Category\": 2,\n\t\"Name\": \"[rev] Rivoluzioni\",\n\t\"Type\": \"LENGTH\",\n\t\"SubType\": null,\n\t\"Units\": \"COUNT\"\n}, {\n\t\"uuid\": \"Axis_04_InvDDone\",\n\t\"Category\": 2,\n\t\"Name\": \"[#] Numero inversioni\",\n\t\"Type\": \"MESSAGE\",\n\t\"SubType\": null,\n\t\"Units\": \"COUNT\"\n}, {\n\t\"uuid\": \"Axis_04_MainProc\",\n\t\"Category\": 1,\n\t\"Name\": \"[#] Processo di appartenenza\",\n\t\"Type\": \"MESSAGE\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"Axis_04_IsMast\",\n\t\"Category\": 1,\n\t\"Name\": \"[0/1] Master/Slave\",\n\t\"Type\": \"MESSAGE\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"Axis_04_MastId\",\n\t\"Category\": 1,\n\t\"Name\": \"[#] ID Asse master\",\n\t\"Type\": \"MESSAGE\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"Axis_04_Dir\",\n\t\"Category\": 1,\n\t\"Name\": \"[-/+] Direzione\",\n\t\"Type\": \"DIRECTION\",\n\t\"SubType\": \"ROTARY\",\n\t\"Units\": null\n}, {\n\t\"uuid\": \"Axis_04_AlarmCNC\",\n\t\"Category\": 0,\n\t\"Name\": \"Allarmi CN\",\n\t\"Type\": \"SYSTEM\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"Axis_04_AlarmPLC\",\n\t\"Category\": 0,\n\t\"Name\": \"Allarmi PLC\",\n\t\"Type\": \"LOGIC_PROGRAM\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"Axis_05_PosAct\",\n\t\"Category\": 2,\n\t\"Name\": \"[°] Quota attuale\",\n\t\"Type\": \"ANGLE\",\n\t\"SubType\": \"ACTUAL\",\n\t\"Units\": \"DEGREE\"\n}, {\n\t\"uuid\": \"Axis_05_PosTgt\",\n\t\"Category\": 2,\n\t\"Name\": \"[°] Quota target\",\n\t\"Type\": \"ANGLE\",\n\t\"SubType\": \"TARGET\",\n\t\"Units\": \"DEGREE\"\n}, {\n\t\"uuid\": \"Axis_05_Load\",\n\t\"Category\": 2,\n\t\"Name\": \"[%] Carico\",\n\t\"Type\": \"LOAD\",\n\t\"SubType\": null,\n\t\"Units\": \"PERCENT\"\n}, {\n\t\"uuid\": \"Axis_05_FeedAct\",\n\t\"Category\": 2,\n\t\"Name\": \"[°/min] Feedrate\",\n\t\"Type\": \"ROTARY_VELOCITY\",\n\t\"SubType\": \"ACTUAL\",\n\t\"Units\": \"REVOLUTION/MINUTE\"\n}, {\n\t\"uuid\": \"Axis_05_FeedOver\",\n\t\"Category\": 2,\n\t\"Name\": \"[%] Feed Override\",\n\t\"Type\": \"ROTARY_VELOCITY\",\n\t\"SubType\": \"OVERRIDE\",\n\t\"Units\": \"PERCENT\"\n}, {\n\t\"uuid\": \"Axis_05_AccTime\",\n\t\"Category\": 2,\n\t\"Name\": \"[s] Tempo utilizzo\",\n\t\"Type\": \"ACCUMULATED_TIME\",\n\t\"SubType\": null,\n\t\"Units\": \"SECOND\"\n}, {\n\t\"uuid\": \"Axis_05_DistDone\",\n\t\"Category\": 2,\n\t\"Name\": \"[rev] Rivoluzioni\",\n\t\"Type\": \"LENGTH\",\n\t\"SubType\": null,\n\t\"Units\": \"COUNT\"\n}, {\n\t\"uuid\": \"Axis_05_InvDDone\",\n\t\"Category\": 2,\n\t\"Name\": \"[#] Numero inversioni\",\n\t\"Type\": \"MESSAGE\",\n\t\"SubType\": null,\n\t\"Units\": \"COUNT\"\n}, {\n\t\"uuid\": \"Axis_05_MainProc\",\n\t\"Category\": 1,\n\t\"Name\": \"[#] Processo di appartenenza\",\n\t\"Type\": \"MESSAGE\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"Axis_05_IsMast\",\n\t\"Category\": 1,\n\t\"Name\": \"[0/1] Master/Slave\",\n\t\"Type\": \"MESSAGE\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"Axis_05_MastId\",\n\t\"Category\": 1,\n\t\"Name\": \"[#] ID Asse master\",\n\t\"Type\": \"MESSAGE\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"Axis_05_Dir\",\n\t\"Category\": 1,\n\t\"Name\": \"[-/+] Direzione\",\n\t\"Type\": \"DIRECTION\",\n\t\"SubType\": \"ROTARY\",\n\t\"Units\": null\n}, {\n\t\"uuid\": \"Axis_05_AlarmCNC\",\n\t\"Category\": 0,\n\t\"Name\": \"Allarmi CN\",\n\t\"Type\": \"SYSTEM\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"Axis_05_AlarmPLC\",\n\t\"Category\": 0,\n\t\"Name\": \"Allarmi PLC\",\n\t\"Type\": \"LOGIC_PROGRAM\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"Axis_06_PosAct\",\n\t\"Category\": 2,\n\t\"Name\": \"[mm] Quota attuale\",\n\t\"Type\": \"POSITION\",\n\t\"SubType\": \"ACTUAL\",\n\t\"Units\": \"MILLIMETER\"\n}, {\n\t\"uuid\": \"Axis_06_PosTgt\",\n\t\"Category\": 2,\n\t\"Name\": \"[mm] Quota target\",\n\t\"Type\": \"POSITION\",\n\t\"SubType\": \"TARGET\",\n\t\"Units\": \"MILLIMETER\"\n}, {\n\t\"uuid\": \"Axis_06_Load\",\n\t\"Category\": 2,\n\t\"Name\": \"[%] Carico\",\n\t\"Type\": \"LOAD\",\n\t\"SubType\": null,\n\t\"Units\": \"PERCENT\"\n}, {\n\t\"uuid\": \"Axis_06_FeedAct\",\n\t\"Category\": 2,\n\t\"Name\": \"[mm/min] Feedrate\",\n\t\"Type\": \"AXIS_FEEDRATE\",\n\t\"SubType\": \"ACTUAL\",\n\t\"Units\": \"MILLIMETER/SECOND\"\n}, {\n\t\"uuid\": \"Axis_06_FeedOver\",\n\t\"Category\": 2,\n\t\"Name\": \"[%] Feed Override\",\n\t\"Type\": \"AXIS_FEEDRATE\",\n\t\"SubType\": \"OVERRIDE\",\n\t\"Units\": \"PERCENT\"\n}, {\n\t\"uuid\": \"Axis_06_AccTime\",\n\t\"Category\": 2,\n\t\"Name\": \"[s] Tempo utilizzo\",\n\t\"Type\": \"ACCUMULATED_TIME\",\n\t\"SubType\": null,\n\t\"Units\": \"SECOND\"\n}, {\n\t\"uuid\": \"Axis_06_DistDone\",\n\t\"Category\": 2,\n\t\"Name\": \"[m] Distanza totale percorsa\",\n\t\"Type\": \"LENGTH\",\n\t\"SubType\": null,\n\t\"Units\": \"COUNT\"\n}, {\n\t\"uuid\": \"Axis_06_InvDDone\",\n\t\"Category\": 2,\n\t\"Name\": \"[#] Numero inversioni\",\n\t\"Type\": \"MESSAGE\",\n\t\"SubType\": null,\n\t\"Units\": \"COUNT\"\n}, {\n\t\"uuid\": \"Axis_06_MainProc\",\n\t\"Category\": 1,\n\t\"Name\": \"[#] Processo di appartenenza\",\n\t\"Type\": \"MESSAGE\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"Axis_06_IsMast\",\n\t\"Category\": 1,\n\t\"Name\": \"[0/1] Master/Slave\",\n\t\"Type\": \"MESSAGE\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"Axis_06_MastId\",\n\t\"Category\": 1,\n\t\"Name\": \"[#] ID Asse master\",\n\t\"Type\": \"MESSAGE\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"Axis_06_Dir\",\n\t\"Category\": 1,\n\t\"Name\": \"[-/+] Direzione\",\n\t\"Type\": \"DIRECTION\",\n\t\"SubType\": \"LINEAR\",\n\t\"Units\": null\n}, {\n\t\"uuid\": \"Axis_06_AlarmCNC\",\n\t\"Category\": 0,\n\t\"Name\": \"Allarmi CN\",\n\t\"Type\": \"SYSTEM\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"Axis_06_AlarmPLC\",\n\t\"Category\": 0,\n\t\"Name\": \"Allarmi PLC\",\n\t\"Type\": \"LOGIC_PROGRAM\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"Message\",\n\t\"Category\": 1,\n\t\"Name\": \"Segnalazioni\",\n\t\"Type\": \"MESSAGE\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"E_STOP\",\n\t\"Category\": 1,\n\t\"Name\": \"Stato emergenze\",\n\t\"Type\": \"EMERGENCY_STOP\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"Path_01_Type\",\n\t\"Category\": 1,\n\t\"Name\": \"Lavoro/Asservimento\",\n\t\"Type\": \"MESSAGE\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"Path_01_ActiveAxes\",\n\t\"Category\": 1,\n\t\"Name\": \"Assi attivi\",\n\t\"Type\": \"ACTIVE_AXES\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"Path_01_CodG_Act\",\n\t\"Category\": 1,\n\t\"Name\": \"Codici G\",\n\t\"Type\": \"MESSAGE\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"Path_01_SubMode\",\n\t\"Category\": 1,\n\t\"Name\": \"Modo secondario\",\n\t\"Type\": \"MESSAGE\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"Path_01_PartId\",\n\t\"Category\": 1,\n\t\"Name\": \"Pezzo corrente\",\n\t\"Type\": \"PART_ID\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"Path_01_PZ_TOT\",\n\t\"Category\": 1,\n\t\"Name\": \"Pezzi prodotti\",\n\t\"Type\": \"PART_COUNT\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"Path_01_Cod_M\",\n\t\"Category\": 1,\n\t\"Name\": \"Codici M\",\n\t\"Type\": \"MESSAGE\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"Path_01_Cod_S\",\n\t\"Category\": 1,\n\t\"Name\": \"Codici S\",\n\t\"Type\": \"MESSAGE\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"Path_01_Cod_T\",\n\t\"Category\": 1,\n\t\"Name\": \"Codici T\",\n\t\"Type\": \"MESSAGE\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"Path_01_RUN_MODE\",\n\t\"Category\": 1,\n\t\"Name\": \"Modo operativo\",\n\t\"Type\": \"CONTROLLER_MODE\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"Path_01_EXE_MODE\",\n\t\"Category\": 1,\n\t\"Name\": \"Stato esecuzione\",\n\t\"Type\": \"EXECUTION\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"Path_01_CurrProg\",\n\t\"Category\": 1,\n\t\"Name\": \"Programma corrente\",\n\t\"Type\": \"PROGRAM\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"Path_01_CurrProg_RowNum\",\n\t\"Category\": 1,\n\t\"Name\": \"Riga attuale\",\n\t\"Type\": \"LINE\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"Path_01_FeedRate\",\n\t\"Category\": 2,\n\t\"Name\": \"[mm/min] Feedrate\",\n\t\"Type\": \"PATH_FEEDRATE\",\n\t\"SubType\": \"ACTUAL\",\n\t\"Units\": \"MILLIMETER/SECOND\"\n}, {\n\t\"uuid\": \"Path_01_FeedOverr\",\n\t\"Category\": 2,\n\t\"Name\": \"[%] WORK Override\",\n\t\"Type\": \"PATH_FEEDRATE\",\n\t\"SubType\": \"OVERRIDE\",\n\t\"Units\": \"PERCENT\"\n}, {\n\t\"uuid\": \"Path_01_RapidOverr\",\n\t\"Category\": 2,\n\t\"Name\": \"[%] RAPID Override\",\n\t\"Type\": \"PATH_FEEDRATE\",\n\t\"SubType\": \"OVERRIDE\",\n\t\"Units\": \"PERCENT\"\n}, {\n\t\"uuid\": \"Path_01_PosActX\",\n\t\"Category\": 2,\n\t\"Name\": \"[mm] UNITA' OPERATRICE: Posizione X\",\n\t\"Type\": \"PATH_POSITION\",\n\t\"SubType\": \"ACTUAL\",\n\t\"Units\": \"MILLIMETER\"\n}, {\n\t\"uuid\": \"Path_01_PosActY\",\n\t\"Category\": 2,\n\t\"Name\": \"[mm] UNITA' OPERATRICE: Posizione Y\",\n\t\"Type\": \"PATH_POSITION\",\n\t\"SubType\": \"ACTUAL\",\n\t\"Units\": \"MILLIMETER\"\n}, {\n\t\"uuid\": \"Path_01_PosActZ\",\n\t\"Category\": 2,\n\t\"Name\": \"[mm] UNITA' OPERATRICE: Posizione Z\",\n\t\"Type\": \"PATH_POSITION\",\n\t\"SubType\": \"ACTUAL\",\n\t\"Units\": \"MILLIMETER\"\n}, {\n\t\"uuid\": \"Path_01_PosActI\",\n\t\"Category\": 2,\n\t\"Name\": \"[°] UNITA' OPERATRICE: Angolo I\",\n\t\"Type\": \"ANGLE\",\n\t\"SubType\": \"ACTUAL\",\n\t\"Units\": \"DEGREE\"\n}, {\n\t\"uuid\": \"Path_01_PosActJ\",\n\t\"Category\": 2,\n\t\"Name\": \"[°] UNITA' OPERATRICE: Angolo J\",\n\t\"Type\": \"ANGLE\",\n\t\"SubType\": \"ACTUAL\",\n\t\"Units\": \"DEGREE\"\n}, {\n\t\"uuid\": \"Path_01_PosActK\",\n\t\"Category\": 2,\n\t\"Name\": \"[°] UNITA' OPERATRICE: Angolo K\",\n\t\"Type\": \"ANGLE\",\n\t\"SubType\": \"ACTUAL\",\n\t\"Units\": \"DEGREE\"\n}, {\n\t\"uuid\": \"Path_01_AlarmCNC\",\n\t\"Category\": 0,\n\t\"Name\": null,\n\t\"Type\": \"SYSTEM\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"Path_01_AlarmPLC\",\n\t\"Category\": 0,\n\t\"Name\": null,\n\t\"Type\": \"LOGIC_PROGRAM\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"UnOp_01_Type\",\n\t\"Category\": 2,\n\t\"Name\": \"Tipologia testa\",\n\t\"Type\": \"MESSAGE\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"UnOp_01_Speed\",\n\t\"Category\": 2,\n\t\"Name\": \"[RPM] SPEED Attuale\",\n\t\"Type\": \"PATH_FEEDRATE\",\n\t\"SubType\": \"ACTUAL\",\n\t\"Units\": \"MILLIMETER/SECOND\"\n}, {\n\t\"uuid\": \"UnOp_01_SpeedOverr\",\n\t\"Category\": 2,\n\t\"Name\": \"[%] SPEED Override\",\n\t\"Type\": \"PATH_FEEDRATE\",\n\t\"SubType\": \"OVERRIDE\",\n\t\"Units\": \"PERCENT\"\n}, {\n\t\"uuid\": \"UnOp_01_ToolId\",\n\t\"Category\": 1,\n\t\"Name\": \"ID Utensile in mandrino\",\n\t\"Type\": \"TOOL_ASSET_ID\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"UnOp_01_NumCU\",\n\t\"Category\": 1,\n\t\"Name\": \"[#] Cambi Utensile effettuati\",\n\t\"Type\": \"COUNT\",\n\t\"SubType\": null,\n\t\"Units\": \"COUNT\"\n}, {\n\t\"uuid\": \"UnOp_01_Status\",\n\t\"Category\": 1,\n\t\"Name\": \"Stato\",\n\t\"Type\": \"ACTUATOR_STATE\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"UnOp_01_VitaRes\",\n\t\"Category\": 1,\n\t\"Name\": \"Vita residua utensile in mandrino\",\n\t\"Type\": \"COUNT\",\n\t\"SubType\": null,\n\t\"Units\": \"COUNT\"\n}, {\n\t\"uuid\": \"UnOp_01_VitaResType\",\n\t\"Category\": 1,\n\t\"Name\": \"Tipo vita residua utensile in mandrino\",\n\t\"Type\": \"MESSAGE\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"UnOp_01_Load\",\n\t\"Category\": 2,\n\t\"Name\": \"[%] Carico\",\n\t\"Type\": \"LOAD\",\n\t\"SubType\": null,\n\t\"Units\": \"PERCENT\"\n}, {\n\t\"uuid\": \"UnOp_01_AccTime\",\n\t\"Category\": 2,\n\t\"Name\": \"[krev] Rivoluzioni\",\n\t\"Type\": \"COUNT\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"VacPump_01_Status\",\n\t\"Category\": 1,\n\t\"Name\": \"Stato\",\n\t\"Type\": \"ACTUATOR_STATE\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"VacPump_01_WrkTime\",\n\t\"Category\": 2,\n\t\"Name\": \"[s] Tempo utilizzo\",\n\t\"Type\": \"ACCUMULATED_TIME\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"VacPump_02_Status\",\n\t\"Category\": 1,\n\t\"Name\": \"Stato\",\n\t\"Type\": \"ACTUATOR_STATE\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"VacPump_02_WrkTime\",\n\t\"Category\": 2,\n\t\"Name\": \"[s] Tempo utilizzo\",\n\t\"Type\": \"ACCUMULATED_TIME\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"VacAct_01_Count\",\n\t\"Category\": 1,\n\t\"Name\": \"[#] Commutazioni\",\n\t\"Type\": \"COUNT\",\n\t\"SubType\": null,\n\t\"Units\": \"COUNT\"\n}, {\n\t\"uuid\": \"VacAct_02_Count\",\n\t\"Category\": 1,\n\t\"Name\": \"[#] Commutazioni\",\n\t\"Type\": \"COUNT\",\n\t\"SubType\": null,\n\t\"Units\": \"COUNT\"\n}, {\n\t\"uuid\": \"Cooler_01_Status\",\n\t\"Category\": 1,\n\t\"Name\": \"Stato\",\n\t\"Type\": \"ACTUATOR_STATE\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"Cooler_02_Status\",\n\t\"Category\": 1,\n\t\"Name\": \"Stato\",\n\t\"Type\": \"ACTUATOR_STATE\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"Lubro_01_Num\",\n\t\"Category\": 1,\n\t\"Name\": \"[#] Attivazioni\",\n\t\"Type\": \"COUNT\",\n\t\"SubType\": null,\n\t\"Units\": \"COUNT\"\n}, {\n\t\"uuid\": \"Lubro_02_Num\",\n\t\"Category\": 1,\n\t\"Name\": \"[#] Attivazioni\",\n\t\"Type\": \"COUNT\",\n\t\"SubType\": null,\n\t\"Units\": \"COUNT\"\n}, {\n\t\"uuid\": \"Press_01_Value\",\n\t\"Category\": 2,\n\t\"Name\": \"[Pa] Pressione 1\",\n\t\"Type\": \"PRESSURE\",\n\t\"SubType\": null,\n\t\"Units\": \"PASCAL\"\n}]"},"parameters":[],"headers":[{"id":"pair_d9894ec846994bcda341092cd0263f08","name":"Content-Type","value":"application/json"}],"authentication":{},"metaSortKey":-1572877837397.75,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"fld_d8d2ad76cbd44eda870135968c48db24","parentId":"wrk_6eaf0a20123c480295db476860d8f716","modified":1574522582759,"created":1574522566792,"name":"MP-IO-MTC","description":"","environment":{},"environmentPropertyOrder":null,"metaSortKey":-1573051967979.5,"_type":"request_group"},{"_id":"req_18bb232ec88f45688acf5a7ffa5451da","parentId":"fld_2fceb1e93d704ea39b9dbaf6f9173ca9","modified":1572703715107,"created":1572688410657,"url":"{{ BASE_URL }}/IOB/enabled/SIMUL_01","name":"Test IOB enabled","description":"","method":"GET","body":{},"parameters":[],"headers":[],"authentication":{},"metaSortKey":-1572688535076,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"fld_2fceb1e93d704ea39b9dbaf6f9173ca9","parentId":"wrk_6eaf0a20123c480295db476860d8f716","modified":1572703706816,"created":1572703706816,"name":"MP-IO","description":"","environment":{},"environmentPropertyOrder":null,"metaSortKey":-1572703706816,"_type":"request_group"},{"_id":"req_9b12b7b086c94eb3bf19ef19c28088b2","parentId":"fld_2fceb1e93d704ea39b9dbaf6f9173ca9","modified":1572703717867,"created":1572688376619,"url":"{{ BASE_URL }}/IOB","name":"Test MP-IO alive","description":"","method":"GET","body":{},"parameters":[],"headers":[],"authentication":{},"metaSortKey":-1572688535051,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_253c3deea8bf47969dd45dd6a529a2b0","parentId":"fld_2fceb1e93d704ea39b9dbaf6f9173ca9","modified":1646069711911,"created":1572688535026,"url":"{{ BASE_URL }}/IOB/flogJson/SIMUL_01","name":"Send FLog Json","description":"","method":"POST","body":{"mimeType":"application/json","text":"{\n\t\"fluxData\":\n\t[\n\t\t{\n\t\t\"flux\": \"test\",\n\t\t\"valore\": \"valore_10\",\n\t\t\"dtEve\": \"2019-11-02 11:01:00\",\n\t\t\"dtCurr\": \"2019-11-02 11:02:00\",\n\t\t\"cnt\": 10\n\t\t},\n\t\t{\n\t\t\t\"flux\": \"test\",\n\t\t\t\"valore\": \"valore_11\",\n\t\t\t\"dtEve\": \"2019-11-02 11:01:01\",\n\t\t\t\"dtCurr\": \"2019-11-02 11:02:00\",\n\t\t\t\"cnt\": 11\n\t\t},\n\t\t{\n\t\t\"flux\": \"test\",\n\t\t\"valore\": \"valore_12\",\n\t\t\"dtEve\": \"2019-11-02 11:01:02\",\n\t\t\"dtCurr\": \"2019-11-02 11:02:00\",\n\t\t\"cnt\": 12\n\t\t},\n\t\t{\n\t\t\t\"flux\": \"test\",\n\t\t\t\"valore\": \"valore_13\",\n\t\t\t\"dtEve\": \"2019-11-02 11:02:03\",\n\t\t\"dtCurr\": \"2019-11-02 11:02:00\",\n\t\t\t\"cnt\": 13\n\t\t},\n\t\t{\n\t\t\"flux\": \"test\",\n\t\t\"valore\": \"valore_14\",\n\t\t\"dtEve\": \"2019-11-02 11:02:04\",\n\t\t\"dtCurr\": \"2019-11-02 11:02:00\",\n\t\t\"cnt\": 14\n\t\t},\n\t\t{\n\t\t\t\"flux\": \"test\",\n\t\t\t\"valore\": \"valore_15\",\n\t\t\t\"dtEve\": \"2019-11-02 11:02:05\",\n\t\t\t\"dtCurr\": \"2019-11-02 11:02:00\",\n\t\t\t\"cnt\": 15\n\t\t},\n\t\t{\n\t\t\"flux\": \"test\",\n\t\t\"valore\": \"valore_16\",\n\t\t\"dtEve\": \"2019-11-02 11:01:06\",\n\t\t\"dtCurr\": \"2019-11-02 11:02:00\",\n\t\t\"cnt\": 16\n\t\t},\n\t\t{\n\t\t\t\"flux\": \"test\",\n\t\t\t\"valore\": \"valore_17\",\n\t\t\t\"dtEve\": \"2019-11-02 11:01:07\",\n\t\t\t\"dtCurr\": \"2019-11-02 11:02:00\",\n\t\t\t\"cnt\": 17\n\t\t},\n\t\t{\n\t\t\"flux\": \"test\",\n\t\t\"valore\": \"valore_18\",\n\t\t\"dtEve\": \"2019-11-02 11:01:08\",\n\t\t\"dtCurr\": \"2019-11-02 11:02:00\",\n\t\t\"cnt\": 18\n\t\t},\n\t\t{\n\t\t\t\"flux\": \"test\",\n\t\t\t\"valore\": \"valore_19\",\n\t\t\t\"dtEve\": \"2019-11-02 11:01:09\",\n\t\t \"dtCurr\": \"2019-11-02 11:02:00\",\n\t\t\t\"cnt\": 19\n\t\t},\n\t\t{\n\t\t\t\"flux\": \"test\",\n\t\t\t\"valore\": \"valore_20\",\n\t\t\t\"dtEve\": \"2019-11-02 11:01:10\",\n\t\t \"dtCurr\": \"2019-11-02 11:02:00\",\n\t\t\t\"cnt\": 20\n\t\t}\n\t]\n}\n"},"parameters":[],"headers":[{"id":"pair_d9894ec846994bcda341092cd0263f08","name":"Content-Type","value":"application/json"}],"authentication":{},"metaSortKey":-1572688535026,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_3a849f55973d43d8bb7308b52e487a20","parentId":"fld_2fceb1e93d704ea39b9dbaf6f9173ca9","modified":1646044470162,"created":1572703720426,"url":"{{ BASE_URL }}/IOB/liveJson/SIMUL_01","name":"Send LiveIOB Json","description":"","method":"POST","body":{"mimeType":"application/json","text":"{\n\t\"dataList\":\n\t[\n\t\t{\n\t\t\"key\": \"temp_01\",\n\t\t\"value\": \"20.8\"\n\t\t},\n\t\t{\n\t\t\"key\": \"temp_2\",\n\t\t\"value\": \"21.8\"\n\t\t},\n\t\t{\n\t\t\"key\": \"speed_01\",\n\t\t\"value\": \"5000\"\n\t\t},\n\t\t{\n\t\t\"key\": \"speed_02\",\n\t\t\"value\": \"248\"\n\t\t},\n\t\t{\n\t\t\"key\": \"param_01\",\n\t\t\"value\": \"120.8\"\n\t\t},\n\t\t{\n\t\t\"key\": \"param_02\",\n\t\t\"value\": \"170.8\"\n\t\t}\n\t]\n}\n"},"parameters":[],"headers":[{"id":"pair_d9894ec846994bcda341092cd0263f08","name":"Content-Type","value":"application/json"}],"authentication":{},"metaSortKey":-1572688534976,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_8b9bfe3a5fe24f1aa19da4d9cbf24d08","parentId":"fld_2fceb1e93d704ea39b9dbaf6f9173ca9","modified":1646073627622,"created":1646069719097,"url":"{{ BASE_URL }}/IOB/ulogJson/SIMUL_01","name":"Send ULog Json","description":"","method":"POST","body":{"mimeType":"application/json","text":"{\n\t\"fluxData\":\n\t[\n\t\t{\n\t\t\t\"flux\": \"DI\",\n\t\t\t\"valore\": \"User Login - Steamware User\",\n\t\t\t\"dtEve\": \"2022-02-28 11:00:30\",\n\t\t\t\"dtCurr\": \"2022-02-28 11:02:00\",\n\t\t\t\"cnt\": 9,\n\t\t\t\"matrOpr\": 1,\n\t\t\t\"label\": \"UserLogin\"\n\t\t},\n\t\t{\n\t\t\t\"flux\": \"DI\",\n\t\t\t\"valore\": \"Dichiarazione di prova\",\n\t\t\t\"dtEve\": \"2022-02-28 11:01:00\",\n\t\t\t\"dtCurr\": \"2022-02-28 11:02:00\",\n\t\t\t\"cnt\": 10,\n\t\t\t\"matrOpr\": 1,\n\t\t\t\"label\": \"Note\"\n\t\t},\n\t\t{\n\t\t\t\"flux\": \"RC\",\n\t\t\t\"valore\": \"\",\n\t\t\t\"dtEve\": \"2022-02-28 11:01:01\",\n\t\t\t\"dtCurr\": \"2022-02-28 11:02:00\",\n\t\t\t\"cnt\": 11,\n\t\t\t\"matrOpr\": 1,\n\t\t\t\"valNum\": 1\n\t\t},\n\t\t{\n\t\t\t\"flux\": \"RC\",\n\t\t\t\"valore\": \"SIM Controllo fallito\",\n\t\t\t\"dtEve\": \"2022-02-28 11:01:31\",\n\t\t\t\"dtCurr\": \"2022-02-28 11:02:00\",\n\t\t\t\"cnt\": 12,\n\t\t\t\"matrOpr\": 1,\n\t\t\t\"valNum\": 0\n\t\t},\n\t\t{\n\t\t\t\"flux\": \"RS\",\n\t\t\t\"valore\": \"SIM Scarto 01\",\n\t\t\t\"dtEve\": \"2022-02-28 11:01:05\",\n\t\t\t\"dtCurr\": \"2022-02-28 11:02:00\",\n\t\t\t\"cnt\": 13,\n\t\t\t\"matrOpr\": 1,\n\t\t\t\"label\": \"01\",\n\t\t\t\"valNum\": 1\n\t\t},\n\t\t{\n\t\t\t\"flux\": \"RS\",\n\t\t\t\"valore\": \"SIM Scarto 02\",\n\t\t\t\"dtEve\": \"2022-02-28 11:01:15\",\n\t\t\t\"dtCurr\": \"2022-02-28 11:02:00\",\n\t\t\t\"cnt\": 15,\n\t\t\t\"matrOpr\": 1,\n\t\t\t\"label\": \"02\",\n\t\t\t\"valNum\": 2\n\t\t}\n\t]\n}"},"parameters":[],"headers":[{"id":"pair_d9894ec846994bcda341092cd0263f08","name":"Content-Type","value":"application/json"}],"authentication":{},"metaSortKey":-1572688534926,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"env_8740e20e8e8bb2003e5230773ef23271182ab751","parentId":"wrk_6eaf0a20123c480295db476860d8f716","modified":1572703437306,"created":1572685869222,"name":"Base Environment","data":{},"dataPropertyOrder":{},"color":null,"isPrivate":false,"metaSortKey":1572685869222,"_type":"environment"},{"_id":"jar_8740e20e8e8bb2003e5230773ef23271182ab751","parentId":"wrk_6eaf0a20123c480295db476860d8f716","modified":1572685869231,"created":1572685869231,"name":"Default Jar","cookies":[],"_type":"cookie_jar"},{"_id":"spc_e6fdb813e3494001a0a09f18637637be","parentId":"wrk_6eaf0a20123c480295db476860d8f716","modified":1627050532237,"created":1627050532237,"fileName":"MP-IO","contents":"","contentType":"yaml","_type":"api_spec"},{"_id":"env_c05a8868c4934cdfa10f3a5cb0ebcb5d","parentId":"env_8740e20e8e8bb2003e5230773ef23271182ab751","modified":1646044384156,"created":1572703420555,"name":"DEV","data":{"BASE_URL":"http://localhost:20967/"},"dataPropertyOrder":{"&":["BASE_URL"]},"color":null,"isPrivate":false,"metaSortKey":1572703420555,"_type":"environment"},{"_id":"env_e66bedb2f2ce4168aa67be58ee2e3c04","parentId":"env_8740e20e8e8bb2003e5230773ef23271182ab751","modified":1573471837403,"created":1573471806261,"name":"IIS01","data":{"BASE_URL":"http://IIS01/MP/IO/"},"dataPropertyOrder":{"&":["BASE_URL"]},"color":null,"isPrivate":false,"metaSortKey":1573471806261,"_type":"environment"},{"_id":"env_1c2b1769eca04bb5800dd430d9548b42","parentId":"env_8740e20e8e8bb2003e5230773ef23271182ab751","modified":1573471896689,"created":1573471844550,"name":"IIS02","data":{"BASE_URL":"http://IIS02/MP/IO/"},"dataPropertyOrder":{"&":["BASE_URL"]},"color":null,"isPrivate":false,"metaSortKey":1573471844550,"_type":"environment"}]} \ No newline at end of file +{"_type":"export","__export_format":4,"__export_date":"2022-11-29T18:02:18.844Z","__export_source":"insomnia.desktop.app:v2022.6.0","resources":[{"_id":"req_18c7546d80a74c019f71980710c3a765","parentId":"fld_cde081c45fe24e268c98db0c9c60d5be","modified":1573490149972,"created":1573400234158,"url":"{{ BASE_URL }}/IOB/getObjItems/SIMUL_01","name":"Get All Items","description":"","method":"GET","body":{},"parameters":[],"headers":[],"authentication":{},"metaSortKey":-1572688535038.5,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"fld_cde081c45fe24e268c98db0c9c60d5be","parentId":"wrk_6eaf0a20123c480295db476860d8f716","modified":1573404868724,"created":1573400229143,"name":"MP-IO parametri","description":"","environment":{},"environmentPropertyOrder":null,"metaSortKey":-1573400229143,"_type":"request_group"},{"_id":"wrk_6eaf0a20123c480295db476860d8f716","parentId":null,"modified":1573489541008,"created":1572685869137,"name":"MP-IO","description":"","scope":"design","_type":"workspace"},{"_id":"req_5d8f4dc26a944a6cb6ffe55ec6e57415","parentId":"fld_cde081c45fe24e268c98db0c9c60d5be","modified":1573404368579,"created":1573402488180,"url":"{{ BASE_URL }}/IOB/getObjItems2Write/SIMUL_01","name":"Get All Items 2 write","description":"","method":"GET","body":{},"parameters":[],"headers":[],"authentication":{},"metaSortKey":-1572688535032.25,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_b7f013c98aa344c2a7ceb01d915c6e65","parentId":"fld_cde081c45fe24e268c98db0c9c60d5be","modified":1657198832659,"created":1573400285659,"url":"{{ BASE_URL }}/IOB/setObjItems/SIMUL_01","name":"Add All Items","description":"","method":"POST","body":{"mimeType":"application/json","text":"[\n\t{\n\t\t\"uid\": \"setArt\",\n\t\t\"name\": \"Articolo\",\n\t\t\"value\": \"ART000123\",\n\t\t\"lastRead\": \"{% now 'iso-8601', '' %}\",\n\t\t\"writable\": true\n\t},\n\t{\n\t\t\"uid\": \"setComm\",\n\t\t\"name\": \"Commessa\",\n\t\t\"value\": \"COMM000002\",\n\t\t\"lastRead\": \"{% now 'iso-8601', '' %}\",\n\t\t\"writable\": true\n\t},\n\t{\n\t\t\"uid\": \"TEMP_01\",\n\t\t\"name\": \"Temperatura 01\",\n\t\t\"value\": \"9\",\n\t\t\"lastRead\": \"{% now 'iso-8601', '' %}\"\n\t},\n\t{\n\t\t\"uid\": \"PRESS_01\",\n\t\t\"name\": \"Pressione 01\",\n\t\t\"value\": \"9\",\n\t\t\"lastRead\": \"{% now 'iso-8601', '' %}\"\n\t}\n]\n"},"parameters":[],"headers":[{"id":"pair_d9894ec846994bcda341092cd0263f08","name":"Content-Type","value":"application/json"}],"authentication":{},"metaSortKey":-1572688535007.25,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_47f2f4e7facc465893880458e1c9f077","parentId":"fld_cde081c45fe24e268c98db0c9c60d5be","modified":1657198830313,"created":1573400470873,"url":"{{ BASE_URL }}/IOB/upsertObjItems/SIMUL_01","name":"Add Some Item","description":"","method":"POST","body":{"mimeType":"application/json","text":"[\n\t{\n\t\t\"uid\": \"setComm\",\n\t\t\"name\": \"Commessa\",\n\t\t\"value\": \"\",\n\t\t\"reqValue\": \"COMM000003\",\n\t\t\"lastRequest\": \"{% now 'iso-8601', '' %}\",\n\t\t\"writable\": true\n\t}\n]"},"parameters":[],"headers":[{"id":"pair_d9894ec846994bcda341092cd0263f08","name":"Content-Type","value":"application/json"}],"authentication":{},"metaSortKey":-1572688534982.25,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_1db8943d9ce74172aa0c9c2b536cc1ab","parentId":"fld_acf754fe816646b5bc43b9657fe9d2a7","modified":1669731503886,"created":1664982160752,"url":"{{ BASE_URL }}/IOB/getCurrPODL/SIMUL_01","name":"Get curr PODL","description":"","method":"GET","body":{},"parameters":[],"headers":[],"authentication":{},"metaSortKey":-1572688535038.5,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"fld_acf754fe816646b5bc43b9657fe9d2a7","parentId":"wrk_6eaf0a20123c480295db476860d8f716","modified":1664982160747,"created":1664982160747,"name":"MP-IO PODL-DOSSIER","description":"","environment":{},"environmentPropertyOrder":null,"metaSortKey":-1573231731968.5,"_type":"request_group"},{"_id":"req_36a91f58368b4db98792b76d850b40ed","parentId":"fld_acf754fe816646b5bc43b9657fe9d2a7","modified":1665163635996,"created":1665163630473,"url":"{{ BASE_URL }}/IOB/getListValByTable/PODL","name":"Get ListVal PODL","description":"","method":"GET","body":{},"parameters":[],"headers":[],"authentication":{},"metaSortKey":-1572688535036.5469,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":true,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_f58d5cdb884044209ac7a15af66a412a","parentId":"fld_acf754fe816646b5bc43b9657fe9d2a7","modified":1665149522574,"created":1665149297526,"url":"{{ BASE_URL }}/IOB/getLastDossByMacc/SIMUL_01","name":"Get DOSS last by Macc","description":"","method":"GET","body":{},"parameters":[],"headers":[],"authentication":{},"metaSortKey":-1572688535036.1562,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":true,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_db67e58a9e8b4b9db33bb9cb99e7cd4b","parentId":"fld_acf754fe816646b5bc43b9657fe9d2a7","modified":1665075165801,"created":1665075158847,"url":"{{ BASE_URL }}/IOB/getCurrPODL/","name":"Get curr PODL (ALL)","description":"","method":"GET","body":{},"parameters":[],"headers":[],"authentication":{},"metaSortKey":-1572688535035.375,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_7f3f9a1d035149259c306c215137e08b","parentId":"fld_acf754fe816646b5bc43b9657fe9d2a7","modified":1665127481832,"created":1665126908538,"url":"{{ BASE_URL }}/IOB/getArtCurrPODL","name":"Get ART by CurrODL","description":"","method":"GET","body":{},"parameters":[],"headers":[],"authentication":{},"metaSortKey":-1572688535034.5938,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_9659721d667c49fcacbbf4e28313c2cb","parentId":"fld_acf754fe816646b5bc43b9657fe9d2a7","modified":1665127491077,"created":1665127488279,"url":"{{ BASE_URL }}/IOB/getArtUsed","name":"Get ART used","description":"","method":"GET","body":{},"parameters":[],"headers":[],"authentication":{},"metaSortKey":-1572688535033.4219,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_2c0f5944140e4e4eb367c7e31b7f71a9","parentId":"fld_acf754fe816646b5bc43b9657fe9d2a7","modified":1664982227256,"created":1664982160769,"url":"{{ BASE_URL }}/IOB/getLastDossArt/NCC_1701D","name":"Get Last DOSS by ART","description":"","method":"GET","body":{},"parameters":[],"headers":[],"authentication":{},"metaSortKey":-1572688535032.25,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_eca298670f414669b4bd2813179c15ff","parentId":"fld_acf754fe816646b5bc43b9657fe9d2a7","modified":1664982246524,"created":1664982242873,"url":"{{ BASE_URL }}/IOB/getLastDossPODL","name":"Get Last DOSS by PODL","description":"","method":"GET","body":{},"parameters":[],"headers":[],"authentication":{},"metaSortKey":-1572688535029.125,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_aa5356d4b4b4456a871233ba0738f115","parentId":"fld_acf754fe816646b5bc43b9657fe9d2a7","modified":1665391005684,"created":1665390990441,"url":"{{ BASE_URL }}/IOB/takeFlogSnapshot/SIMUL_01","name":"Take Snapshot","description":"","method":"GET","body":{},"parameters":[],"headers":[],"authentication":{},"metaSortKey":-1572688534979.125,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":true,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_73c9276d0eec46b19011f9f6868e20c6","parentId":"fld_d8d2ad76cbd44eda870135968c48db24","modified":1653313059862,"created":1574522588204,"url":"{{ BASE_URL }}/IOB/saveDataItems/SIMUL_01","name":"Send DataItems","description":"","method":"POST","body":{"mimeType":"application/json","text":"[{\n\t\"uuid\": \"AVAIL\",\n\t\"Category\": 1,\n\t\"Name\": null,\n\t\"Type\": \"AVAILABILITY\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"STATUS\",\n\t\"Category\": 1,\n\t\"Name\": null,\n\t\"Type\": \"ACTUATOR_STATE\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"ACC_TIME\",\n\t\"Category\": 2,\n\t\"Name\": \"[s] Tempo macchina in potenza\",\n\t\"Type\": \"ACCUMULATED_TIME\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"ACC_TIME_WORK\",\n\t\"Category\": 2,\n\t\"Name\": \"[s] Tempo macchina in movimento\",\n\t\"Type\": \"ACCUMULATED_TIME\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"CLOCK\",\n\t\"Category\": 2,\n\t\"Name\": null,\n\t\"Type\": \"CLOCK_TIME\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"POWER\",\n\t\"Category\": 1,\n\t\"Name\": null,\n\t\"Type\": \"POWER_STATE\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"OperatorId\",\n\t\"Category\": 1,\n\t\"Name\": \"ID Operatore\",\n\t\"Type\": \"MESSAGE\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"FUNCT_MODE\",\n\t\"Category\": 1,\n\t\"Name\": null,\n\t\"Type\": \"MESSAGE\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"USER_ACTION\",\n\t\"Category\": 1,\n\t\"Name\": null,\n\t\"Type\": \"MESSAGE\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"TESTING_DATA\",\n\t\"Category\": 1,\n\t\"Name\": null,\n\t\"Type\": \"MESSAGE\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"PROTECTION_STATUS\",\n\t\"Category\": 1,\n\t\"Name\": \"Stato protezioni\",\n\t\"Type\": \"ACTUATOR_STATE\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"UNK_STATUS\",\n\t\"Category\": 1,\n\t\"Name\": \"Stati sconosciuti\",\n\t\"Type\": \"MESSAGE\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"UNK_STROBE\",\n\t\"Category\": 1,\n\t\"Name\": \"Strobes sconosciuti\",\n\t\"Type\": \"MESSAGE\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"CNC\",\n\t\"Category\": 0,\n\t\"Name\": null,\n\t\"Type\": \"SYSTEM\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"PLC\",\n\t\"Category\": 0,\n\t\"Name\": null,\n\t\"Type\": \"LOGIC_PROGRAM\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"MTC_asset_chg\",\n\t\"Category\": 1,\n\t\"Name\": null,\n\t\"Type\": \"ASSET_CHANGED\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"MTC_asset_rem\",\n\t\"Category\": 1,\n\t\"Name\": null,\n\t\"Type\": \"ASSET_REMOVED\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"Axis_01_PosAct\",\n\t\"Category\": 2,\n\t\"Name\": \"[mm] Quota attuale\",\n\t\"Type\": \"POSITION\",\n\t\"SubType\": \"ACTUAL\",\n\t\"Units\": \"MILLIMETER\"\n}, {\n\t\"uuid\": \"Axis_01_PosTgt\",\n\t\"Category\": 2,\n\t\"Name\": \"[mm] Quota target\",\n\t\"Type\": \"POSITION\",\n\t\"SubType\": \"TARGET\",\n\t\"Units\": \"MILLIMETER\"\n}, {\n\t\"uuid\": \"Axis_01_Load\",\n\t\"Category\": 2,\n\t\"Name\": \"[%] Carico\",\n\t\"Type\": \"LOAD\",\n\t\"SubType\": null,\n\t\"Units\": \"PERCENT\"\n}, {\n\t\"uuid\": \"Axis_01_FeedAct\",\n\t\"Category\": 2,\n\t\"Name\": \"[mm/min] Feedrate\",\n\t\"Type\": \"AXIS_FEEDRATE\",\n\t\"SubType\": \"ACTUAL\",\n\t\"Units\": \"MILLIMETER/SECOND\"\n}, {\n\t\"uuid\": \"Axis_01_FeedOver\",\n\t\"Category\": 2,\n\t\"Name\": \"[%] Feed Override\",\n\t\"Type\": \"AXIS_FEEDRATE\",\n\t\"SubType\": \"OVERRIDE\",\n\t\"Units\": \"PERCENT\"\n}, {\n\t\"uuid\": \"Axis_01_AccTime\",\n\t\"Category\": 2,\n\t\"Name\": \"[s] Tempo utilizzo\",\n\t\"Type\": \"ACCUMULATED_TIME\",\n\t\"SubType\": null,\n\t\"Units\": \"SECOND\"\n}, {\n\t\"uuid\": \"Axis_01_DistDone\",\n\t\"Category\": 2,\n\t\"Name\": \"[m] Distanza totale percorsa\",\n\t\"Type\": \"LENGTH\",\n\t\"SubType\": null,\n\t\"Units\": \"COUNT\"\n}, {\n\t\"uuid\": \"Axis_01_InvDDone\",\n\t\"Category\": 2,\n\t\"Name\": \"[#] Numero inversioni\",\n\t\"Type\": \"MESSAGE\",\n\t\"SubType\": null,\n\t\"Units\": \"COUNT\"\n}, {\n\t\"uuid\": \"Axis_01_MainProc\",\n\t\"Category\": 1,\n\t\"Name\": \"[#] Processo di appartenenza\",\n\t\"Type\": \"MESSAGE\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"Axis_01_IsMast\",\n\t\"Category\": 1,\n\t\"Name\": \"[0/1] Master/Slave\",\n\t\"Type\": \"MESSAGE\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"Axis_01_MastId\",\n\t\"Category\": 1,\n\t\"Name\": \"[#] ID Asse master\",\n\t\"Type\": \"MESSAGE\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"Axis_01_Dir\",\n\t\"Category\": 1,\n\t\"Name\": \"[-/+] Direzione\",\n\t\"Type\": \"DIRECTION\",\n\t\"SubType\": \"LINEAR\",\n\t\"Units\": null\n}, {\n\t\"uuid\": \"Axis_01_AlarmCNC\",\n\t\"Category\": 0,\n\t\"Name\": \"Allarmi CN\",\n\t\"Type\": \"SYSTEM\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"Axis_01_AlarmPLC\",\n\t\"Category\": 0,\n\t\"Name\": \"Allarmi PLC\",\n\t\"Type\": \"LOGIC_PROGRAM\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"Axis_02_PosAct\",\n\t\"Category\": 2,\n\t\"Name\": \"[mm] Quota attuale\",\n\t\"Type\": \"POSITION\",\n\t\"SubType\": \"ACTUAL\",\n\t\"Units\": \"MILLIMETER\"\n}, {\n\t\"uuid\": \"Axis_02_PosTgt\",\n\t\"Category\": 2,\n\t\"Name\": \"[mm] Quota target\",\n\t\"Type\": \"POSITION\",\n\t\"SubType\": \"TARGET\",\n\t\"Units\": \"MILLIMETER\"\n}, {\n\t\"uuid\": \"Axis_02_Load\",\n\t\"Category\": 2,\n\t\"Name\": \"[%] Carico\",\n\t\"Type\": \"LOAD\",\n\t\"SubType\": null,\n\t\"Units\": \"PERCENT\"\n}, {\n\t\"uuid\": \"Axis_02_FeedAct\",\n\t\"Category\": 2,\n\t\"Name\": \"[mm/min] Feedrate\",\n\t\"Type\": \"AXIS_FEEDRATE\",\n\t\"SubType\": \"ACTUAL\",\n\t\"Units\": \"MILLIMETER/SECOND\"\n}, {\n\t\"uuid\": \"Axis_02_FeedOver\",\n\t\"Category\": 2,\n\t\"Name\": \"[%] Feed Override\",\n\t\"Type\": \"AXIS_FEEDRATE\",\n\t\"SubType\": \"OVERRIDE\",\n\t\"Units\": \"PERCENT\"\n}, {\n\t\"uuid\": \"Axis_02_AccTime\",\n\t\"Category\": 2,\n\t\"Name\": \"[s] Tempo utilizzo\",\n\t\"Type\": \"ACCUMULATED_TIME\",\n\t\"SubType\": null,\n\t\"Units\": \"SECOND\"\n}, {\n\t\"uuid\": \"Axis_02_DistDone\",\n\t\"Category\": 2,\n\t\"Name\": \"[m] Distanza totale percorsa\",\n\t\"Type\": \"LENGTH\",\n\t\"SubType\": null,\n\t\"Units\": \"COUNT\"\n}, {\n\t\"uuid\": \"Axis_02_InvDDone\",\n\t\"Category\": 2,\n\t\"Name\": \"[#] Numero inversioni\",\n\t\"Type\": \"MESSAGE\",\n\t\"SubType\": null,\n\t\"Units\": \"COUNT\"\n}, {\n\t\"uuid\": \"Axis_02_MainProc\",\n\t\"Category\": 1,\n\t\"Name\": \"[#] Processo di appartenenza\",\n\t\"Type\": \"MESSAGE\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"Axis_02_IsMast\",\n\t\"Category\": 1,\n\t\"Name\": \"[0/1] Master/Slave\",\n\t\"Type\": \"MESSAGE\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"Axis_02_MastId\",\n\t\"Category\": 1,\n\t\"Name\": \"[#] ID Asse master\",\n\t\"Type\": \"MESSAGE\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"Axis_02_Dir\",\n\t\"Category\": 1,\n\t\"Name\": \"[-/+] Direzione\",\n\t\"Type\": \"DIRECTION\",\n\t\"SubType\": \"LINEAR\",\n\t\"Units\": null\n}, {\n\t\"uuid\": \"Axis_02_AlarmCNC\",\n\t\"Category\": 0,\n\t\"Name\": \"Allarmi CN\",\n\t\"Type\": \"SYSTEM\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"Axis_02_AlarmPLC\",\n\t\"Category\": 0,\n\t\"Name\": \"Allarmi PLC\",\n\t\"Type\": \"LOGIC_PROGRAM\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"Axis_03_PosAct\",\n\t\"Category\": 2,\n\t\"Name\": \"[mm] Quota attuale\",\n\t\"Type\": \"POSITION\",\n\t\"SubType\": \"ACTUAL\",\n\t\"Units\": \"MILLIMETER\"\n}, {\n\t\"uuid\": \"Axis_03_PosTgt\",\n\t\"Category\": 2,\n\t\"Name\": \"[mm] Quota target\",\n\t\"Type\": \"POSITION\",\n\t\"SubType\": \"TARGET\",\n\t\"Units\": \"MILLIMETER\"\n}, {\n\t\"uuid\": \"Axis_03_Load\",\n\t\"Category\": 2,\n\t\"Name\": \"[%] Carico\",\n\t\"Type\": \"LOAD\",\n\t\"SubType\": null,\n\t\"Units\": \"PERCENT\"\n}, {\n\t\"uuid\": \"Axis_03_FeedAct\",\n\t\"Category\": 2,\n\t\"Name\": \"[mm/min] Feedrate\",\n\t\"Type\": \"AXIS_FEEDRATE\",\n\t\"SubType\": \"ACTUAL\",\n\t\"Units\": \"MILLIMETER/SECOND\"\n}, {\n\t\"uuid\": \"Axis_03_FeedOver\",\n\t\"Category\": 2,\n\t\"Name\": \"[%] Feed Override\",\n\t\"Type\": \"AXIS_FEEDRATE\",\n\t\"SubType\": \"OVERRIDE\",\n\t\"Units\": \"PERCENT\"\n}, {\n\t\"uuid\": \"Axis_03_AccTime\",\n\t\"Category\": 2,\n\t\"Name\": \"[s] Tempo utilizzo\",\n\t\"Type\": \"ACCUMULATED_TIME\",\n\t\"SubType\": null,\n\t\"Units\": \"SECOND\"\n}, {\n\t\"uuid\": \"Axis_03_DistDone\",\n\t\"Category\": 2,\n\t\"Name\": \"[m] Distanza totale percorsa\",\n\t\"Type\": \"LENGTH\",\n\t\"SubType\": null,\n\t\"Units\": \"COUNT\"\n}, {\n\t\"uuid\": \"Axis_03_InvDDone\",\n\t\"Category\": 2,\n\t\"Name\": \"[#] Numero inversioni\",\n\t\"Type\": \"MESSAGE\",\n\t\"SubType\": null,\n\t\"Units\": \"COUNT\"\n}, {\n\t\"uuid\": \"Axis_03_MainProc\",\n\t\"Category\": 1,\n\t\"Name\": \"[#] Processo di appartenenza\",\n\t\"Type\": \"MESSAGE\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"Axis_03_IsMast\",\n\t\"Category\": 1,\n\t\"Name\": \"[0/1] Master/Slave\",\n\t\"Type\": \"MESSAGE\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"Axis_03_MastId\",\n\t\"Category\": 1,\n\t\"Name\": \"[#] ID Asse master\",\n\t\"Type\": \"MESSAGE\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"Axis_03_Dir\",\n\t\"Category\": 1,\n\t\"Name\": \"[-/+] Direzione\",\n\t\"Type\": \"DIRECTION\",\n\t\"SubType\": \"LINEAR\",\n\t\"Units\": null\n}, {\n\t\"uuid\": \"Axis_03_AlarmCNC\",\n\t\"Category\": 0,\n\t\"Name\": \"Allarmi CN\",\n\t\"Type\": \"SYSTEM\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"Axis_03_AlarmPLC\",\n\t\"Category\": 0,\n\t\"Name\": \"Allarmi PLC\",\n\t\"Type\": \"LOGIC_PROGRAM\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"Axis_04_PosAct\",\n\t\"Category\": 2,\n\t\"Name\": \"[°] Quota attuale\",\n\t\"Type\": \"ANGLE\",\n\t\"SubType\": \"ACTUAL\",\n\t\"Units\": \"DEGREE\"\n}, {\n\t\"uuid\": \"Axis_04_PosTgt\",\n\t\"Category\": 2,\n\t\"Name\": \"[°] Quota target\",\n\t\"Type\": \"ANGLE\",\n\t\"SubType\": \"TARGET\",\n\t\"Units\": \"DEGREE\"\n}, {\n\t\"uuid\": \"Axis_04_Load\",\n\t\"Category\": 2,\n\t\"Name\": \"[%] Carico\",\n\t\"Type\": \"LOAD\",\n\t\"SubType\": null,\n\t\"Units\": \"PERCENT\"\n}, {\n\t\"uuid\": \"Axis_04_FeedAct\",\n\t\"Category\": 2,\n\t\"Name\": \"[°/min] Feedrate\",\n\t\"Type\": \"ROTARY_VELOCITY\",\n\t\"SubType\": \"ACTUAL\",\n\t\"Units\": \"REVOLUTION/MINUTE\"\n}, {\n\t\"uuid\": \"Axis_04_FeedOver\",\n\t\"Category\": 2,\n\t\"Name\": \"[%] Feed Override\",\n\t\"Type\": \"ROTARY_VELOCITY\",\n\t\"SubType\": \"OVERRIDE\",\n\t\"Units\": \"PERCENT\"\n}, {\n\t\"uuid\": \"Axis_04_AccTime\",\n\t\"Category\": 2,\n\t\"Name\": \"[s] Tempo utilizzo\",\n\t\"Type\": \"ACCUMULATED_TIME\",\n\t\"SubType\": null,\n\t\"Units\": \"SECOND\"\n}, {\n\t\"uuid\": \"Axis_04_DistDone\",\n\t\"Category\": 2,\n\t\"Name\": \"[rev] Rivoluzioni\",\n\t\"Type\": \"LENGTH\",\n\t\"SubType\": null,\n\t\"Units\": \"COUNT\"\n}, {\n\t\"uuid\": \"Axis_04_InvDDone\",\n\t\"Category\": 2,\n\t\"Name\": \"[#] Numero inversioni\",\n\t\"Type\": \"MESSAGE\",\n\t\"SubType\": null,\n\t\"Units\": \"COUNT\"\n}, {\n\t\"uuid\": \"Axis_04_MainProc\",\n\t\"Category\": 1,\n\t\"Name\": \"[#] Processo di appartenenza\",\n\t\"Type\": \"MESSAGE\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"Axis_04_IsMast\",\n\t\"Category\": 1,\n\t\"Name\": \"[0/1] Master/Slave\",\n\t\"Type\": \"MESSAGE\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"Axis_04_MastId\",\n\t\"Category\": 1,\n\t\"Name\": \"[#] ID Asse master\",\n\t\"Type\": \"MESSAGE\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"Axis_04_Dir\",\n\t\"Category\": 1,\n\t\"Name\": \"[-/+] Direzione\",\n\t\"Type\": \"DIRECTION\",\n\t\"SubType\": \"ROTARY\",\n\t\"Units\": null\n}, {\n\t\"uuid\": \"Axis_04_AlarmCNC\",\n\t\"Category\": 0,\n\t\"Name\": \"Allarmi CN\",\n\t\"Type\": \"SYSTEM\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"Axis_04_AlarmPLC\",\n\t\"Category\": 0,\n\t\"Name\": \"Allarmi PLC\",\n\t\"Type\": \"LOGIC_PROGRAM\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"Axis_05_PosAct\",\n\t\"Category\": 2,\n\t\"Name\": \"[°] Quota attuale\",\n\t\"Type\": \"ANGLE\",\n\t\"SubType\": \"ACTUAL\",\n\t\"Units\": \"DEGREE\"\n}, {\n\t\"uuid\": \"Axis_05_PosTgt\",\n\t\"Category\": 2,\n\t\"Name\": \"[°] Quota target\",\n\t\"Type\": \"ANGLE\",\n\t\"SubType\": \"TARGET\",\n\t\"Units\": \"DEGREE\"\n}, {\n\t\"uuid\": \"Axis_05_Load\",\n\t\"Category\": 2,\n\t\"Name\": \"[%] Carico\",\n\t\"Type\": \"LOAD\",\n\t\"SubType\": null,\n\t\"Units\": \"PERCENT\"\n}, {\n\t\"uuid\": \"Axis_05_FeedAct\",\n\t\"Category\": 2,\n\t\"Name\": \"[°/min] Feedrate\",\n\t\"Type\": \"ROTARY_VELOCITY\",\n\t\"SubType\": \"ACTUAL\",\n\t\"Units\": \"REVOLUTION/MINUTE\"\n}, {\n\t\"uuid\": \"Axis_05_FeedOver\",\n\t\"Category\": 2,\n\t\"Name\": \"[%] Feed Override\",\n\t\"Type\": \"ROTARY_VELOCITY\",\n\t\"SubType\": \"OVERRIDE\",\n\t\"Units\": \"PERCENT\"\n}, {\n\t\"uuid\": \"Axis_05_AccTime\",\n\t\"Category\": 2,\n\t\"Name\": \"[s] Tempo utilizzo\",\n\t\"Type\": \"ACCUMULATED_TIME\",\n\t\"SubType\": null,\n\t\"Units\": \"SECOND\"\n}, {\n\t\"uuid\": \"Axis_05_DistDone\",\n\t\"Category\": 2,\n\t\"Name\": \"[rev] Rivoluzioni\",\n\t\"Type\": \"LENGTH\",\n\t\"SubType\": null,\n\t\"Units\": \"COUNT\"\n}, {\n\t\"uuid\": \"Axis_05_InvDDone\",\n\t\"Category\": 2,\n\t\"Name\": \"[#] Numero inversioni\",\n\t\"Type\": \"MESSAGE\",\n\t\"SubType\": null,\n\t\"Units\": \"COUNT\"\n}, {\n\t\"uuid\": \"Axis_05_MainProc\",\n\t\"Category\": 1,\n\t\"Name\": \"[#] Processo di appartenenza\",\n\t\"Type\": \"MESSAGE\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"Axis_05_IsMast\",\n\t\"Category\": 1,\n\t\"Name\": \"[0/1] Master/Slave\",\n\t\"Type\": \"MESSAGE\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"Axis_05_MastId\",\n\t\"Category\": 1,\n\t\"Name\": \"[#] ID Asse master\",\n\t\"Type\": \"MESSAGE\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"Axis_05_Dir\",\n\t\"Category\": 1,\n\t\"Name\": \"[-/+] Direzione\",\n\t\"Type\": \"DIRECTION\",\n\t\"SubType\": \"ROTARY\",\n\t\"Units\": null\n}, {\n\t\"uuid\": \"Axis_05_AlarmCNC\",\n\t\"Category\": 0,\n\t\"Name\": \"Allarmi CN\",\n\t\"Type\": \"SYSTEM\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"Axis_05_AlarmPLC\",\n\t\"Category\": 0,\n\t\"Name\": \"Allarmi PLC\",\n\t\"Type\": \"LOGIC_PROGRAM\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"Axis_06_PosAct\",\n\t\"Category\": 2,\n\t\"Name\": \"[mm] Quota attuale\",\n\t\"Type\": \"POSITION\",\n\t\"SubType\": \"ACTUAL\",\n\t\"Units\": \"MILLIMETER\"\n}, {\n\t\"uuid\": \"Axis_06_PosTgt\",\n\t\"Category\": 2,\n\t\"Name\": \"[mm] Quota target\",\n\t\"Type\": \"POSITION\",\n\t\"SubType\": \"TARGET\",\n\t\"Units\": \"MILLIMETER\"\n}, {\n\t\"uuid\": \"Axis_06_Load\",\n\t\"Category\": 2,\n\t\"Name\": \"[%] Carico\",\n\t\"Type\": \"LOAD\",\n\t\"SubType\": null,\n\t\"Units\": \"PERCENT\"\n}, {\n\t\"uuid\": \"Axis_06_FeedAct\",\n\t\"Category\": 2,\n\t\"Name\": \"[mm/min] Feedrate\",\n\t\"Type\": \"AXIS_FEEDRATE\",\n\t\"SubType\": \"ACTUAL\",\n\t\"Units\": \"MILLIMETER/SECOND\"\n}, {\n\t\"uuid\": \"Axis_06_FeedOver\",\n\t\"Category\": 2,\n\t\"Name\": \"[%] Feed Override\",\n\t\"Type\": \"AXIS_FEEDRATE\",\n\t\"SubType\": \"OVERRIDE\",\n\t\"Units\": \"PERCENT\"\n}, {\n\t\"uuid\": \"Axis_06_AccTime\",\n\t\"Category\": 2,\n\t\"Name\": \"[s] Tempo utilizzo\",\n\t\"Type\": \"ACCUMULATED_TIME\",\n\t\"SubType\": null,\n\t\"Units\": \"SECOND\"\n}, {\n\t\"uuid\": \"Axis_06_DistDone\",\n\t\"Category\": 2,\n\t\"Name\": \"[m] Distanza totale percorsa\",\n\t\"Type\": \"LENGTH\",\n\t\"SubType\": null,\n\t\"Units\": \"COUNT\"\n}, {\n\t\"uuid\": \"Axis_06_InvDDone\",\n\t\"Category\": 2,\n\t\"Name\": \"[#] Numero inversioni\",\n\t\"Type\": \"MESSAGE\",\n\t\"SubType\": null,\n\t\"Units\": \"COUNT\"\n}, {\n\t\"uuid\": \"Axis_06_MainProc\",\n\t\"Category\": 1,\n\t\"Name\": \"[#] Processo di appartenenza\",\n\t\"Type\": \"MESSAGE\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"Axis_06_IsMast\",\n\t\"Category\": 1,\n\t\"Name\": \"[0/1] Master/Slave\",\n\t\"Type\": \"MESSAGE\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"Axis_06_MastId\",\n\t\"Category\": 1,\n\t\"Name\": \"[#] ID Asse master\",\n\t\"Type\": \"MESSAGE\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"Axis_06_Dir\",\n\t\"Category\": 1,\n\t\"Name\": \"[-/+] Direzione\",\n\t\"Type\": \"DIRECTION\",\n\t\"SubType\": \"LINEAR\",\n\t\"Units\": null\n}, {\n\t\"uuid\": \"Axis_06_AlarmCNC\",\n\t\"Category\": 0,\n\t\"Name\": \"Allarmi CN\",\n\t\"Type\": \"SYSTEM\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"Axis_06_AlarmPLC\",\n\t\"Category\": 0,\n\t\"Name\": \"Allarmi PLC\",\n\t\"Type\": \"LOGIC_PROGRAM\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"Message\",\n\t\"Category\": 1,\n\t\"Name\": \"Segnalazioni\",\n\t\"Type\": \"MESSAGE\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"E_STOP\",\n\t\"Category\": 1,\n\t\"Name\": \"Stato emergenze\",\n\t\"Type\": \"EMERGENCY_STOP\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"Path_01_Type\",\n\t\"Category\": 1,\n\t\"Name\": \"Lavoro/Asservimento\",\n\t\"Type\": \"MESSAGE\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"Path_01_ActiveAxes\",\n\t\"Category\": 1,\n\t\"Name\": \"Assi attivi\",\n\t\"Type\": \"ACTIVE_AXES\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"Path_01_CodG_Act\",\n\t\"Category\": 1,\n\t\"Name\": \"Codici G\",\n\t\"Type\": \"MESSAGE\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"Path_01_SubMode\",\n\t\"Category\": 1,\n\t\"Name\": \"Modo secondario\",\n\t\"Type\": \"MESSAGE\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"Path_01_PartId\",\n\t\"Category\": 1,\n\t\"Name\": \"Pezzo corrente\",\n\t\"Type\": \"PART_ID\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"Path_01_PZ_TOT\",\n\t\"Category\": 1,\n\t\"Name\": \"Pezzi prodotti\",\n\t\"Type\": \"PART_COUNT\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"Path_01_Cod_M\",\n\t\"Category\": 1,\n\t\"Name\": \"Codici M\",\n\t\"Type\": \"MESSAGE\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"Path_01_Cod_S\",\n\t\"Category\": 1,\n\t\"Name\": \"Codici S\",\n\t\"Type\": \"MESSAGE\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"Path_01_Cod_T\",\n\t\"Category\": 1,\n\t\"Name\": \"Codici T\",\n\t\"Type\": \"MESSAGE\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"Path_01_RUN_MODE\",\n\t\"Category\": 1,\n\t\"Name\": \"Modo operativo\",\n\t\"Type\": \"CONTROLLER_MODE\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"Path_01_EXE_MODE\",\n\t\"Category\": 1,\n\t\"Name\": \"Stato esecuzione\",\n\t\"Type\": \"EXECUTION\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"Path_01_CurrProg\",\n\t\"Category\": 1,\n\t\"Name\": \"Programma corrente\",\n\t\"Type\": \"PROGRAM\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"Path_01_CurrProg_RowNum\",\n\t\"Category\": 1,\n\t\"Name\": \"Riga attuale\",\n\t\"Type\": \"LINE\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"Path_01_FeedRate\",\n\t\"Category\": 2,\n\t\"Name\": \"[mm/min] Feedrate\",\n\t\"Type\": \"PATH_FEEDRATE\",\n\t\"SubType\": \"ACTUAL\",\n\t\"Units\": \"MILLIMETER/SECOND\"\n}, {\n\t\"uuid\": \"Path_01_FeedOverr\",\n\t\"Category\": 2,\n\t\"Name\": \"[%] WORK Override\",\n\t\"Type\": \"PATH_FEEDRATE\",\n\t\"SubType\": \"OVERRIDE\",\n\t\"Units\": \"PERCENT\"\n}, {\n\t\"uuid\": \"Path_01_RapidOverr\",\n\t\"Category\": 2,\n\t\"Name\": \"[%] RAPID Override\",\n\t\"Type\": \"PATH_FEEDRATE\",\n\t\"SubType\": \"OVERRIDE\",\n\t\"Units\": \"PERCENT\"\n}, {\n\t\"uuid\": \"Path_01_PosActX\",\n\t\"Category\": 2,\n\t\"Name\": \"[mm] UNITA' OPERATRICE: Posizione X\",\n\t\"Type\": \"PATH_POSITION\",\n\t\"SubType\": \"ACTUAL\",\n\t\"Units\": \"MILLIMETER\"\n}, {\n\t\"uuid\": \"Path_01_PosActY\",\n\t\"Category\": 2,\n\t\"Name\": \"[mm] UNITA' OPERATRICE: Posizione Y\",\n\t\"Type\": \"PATH_POSITION\",\n\t\"SubType\": \"ACTUAL\",\n\t\"Units\": \"MILLIMETER\"\n}, {\n\t\"uuid\": \"Path_01_PosActZ\",\n\t\"Category\": 2,\n\t\"Name\": \"[mm] UNITA' OPERATRICE: Posizione Z\",\n\t\"Type\": \"PATH_POSITION\",\n\t\"SubType\": \"ACTUAL\",\n\t\"Units\": \"MILLIMETER\"\n}, {\n\t\"uuid\": \"Path_01_PosActI\",\n\t\"Category\": 2,\n\t\"Name\": \"[°] UNITA' OPERATRICE: Angolo I\",\n\t\"Type\": \"ANGLE\",\n\t\"SubType\": \"ACTUAL\",\n\t\"Units\": \"DEGREE\"\n}, {\n\t\"uuid\": \"Path_01_PosActJ\",\n\t\"Category\": 2,\n\t\"Name\": \"[°] UNITA' OPERATRICE: Angolo J\",\n\t\"Type\": \"ANGLE\",\n\t\"SubType\": \"ACTUAL\",\n\t\"Units\": \"DEGREE\"\n}, {\n\t\"uuid\": \"Path_01_PosActK\",\n\t\"Category\": 2,\n\t\"Name\": \"[°] UNITA' OPERATRICE: Angolo K\",\n\t\"Type\": \"ANGLE\",\n\t\"SubType\": \"ACTUAL\",\n\t\"Units\": \"DEGREE\"\n}, {\n\t\"uuid\": \"Path_01_AlarmCNC\",\n\t\"Category\": 0,\n\t\"Name\": null,\n\t\"Type\": \"SYSTEM\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"Path_01_AlarmPLC\",\n\t\"Category\": 0,\n\t\"Name\": null,\n\t\"Type\": \"LOGIC_PROGRAM\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"UnOp_01_Type\",\n\t\"Category\": 2,\n\t\"Name\": \"Tipologia testa\",\n\t\"Type\": \"MESSAGE\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"UnOp_01_Speed\",\n\t\"Category\": 2,\n\t\"Name\": \"[RPM] SPEED Attuale\",\n\t\"Type\": \"PATH_FEEDRATE\",\n\t\"SubType\": \"ACTUAL\",\n\t\"Units\": \"MILLIMETER/SECOND\"\n}, {\n\t\"uuid\": \"UnOp_01_SpeedOverr\",\n\t\"Category\": 2,\n\t\"Name\": \"[%] SPEED Override\",\n\t\"Type\": \"PATH_FEEDRATE\",\n\t\"SubType\": \"OVERRIDE\",\n\t\"Units\": \"PERCENT\"\n}, {\n\t\"uuid\": \"UnOp_01_ToolId\",\n\t\"Category\": 1,\n\t\"Name\": \"ID Utensile in mandrino\",\n\t\"Type\": \"TOOL_ASSET_ID\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"UnOp_01_NumCU\",\n\t\"Category\": 1,\n\t\"Name\": \"[#] Cambi Utensile effettuati\",\n\t\"Type\": \"COUNT\",\n\t\"SubType\": null,\n\t\"Units\": \"COUNT\"\n}, {\n\t\"uuid\": \"UnOp_01_Status\",\n\t\"Category\": 1,\n\t\"Name\": \"Stato\",\n\t\"Type\": \"ACTUATOR_STATE\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"UnOp_01_VitaRes\",\n\t\"Category\": 1,\n\t\"Name\": \"Vita residua utensile in mandrino\",\n\t\"Type\": \"COUNT\",\n\t\"SubType\": null,\n\t\"Units\": \"COUNT\"\n}, {\n\t\"uuid\": \"UnOp_01_VitaResType\",\n\t\"Category\": 1,\n\t\"Name\": \"Tipo vita residua utensile in mandrino\",\n\t\"Type\": \"MESSAGE\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"UnOp_01_Load\",\n\t\"Category\": 2,\n\t\"Name\": \"[%] Carico\",\n\t\"Type\": \"LOAD\",\n\t\"SubType\": null,\n\t\"Units\": \"PERCENT\"\n}, {\n\t\"uuid\": \"UnOp_01_AccTime\",\n\t\"Category\": 2,\n\t\"Name\": \"[krev] Rivoluzioni\",\n\t\"Type\": \"COUNT\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"VacPump_01_Status\",\n\t\"Category\": 1,\n\t\"Name\": \"Stato\",\n\t\"Type\": \"ACTUATOR_STATE\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"VacPump_01_WrkTime\",\n\t\"Category\": 2,\n\t\"Name\": \"[s] Tempo utilizzo\",\n\t\"Type\": \"ACCUMULATED_TIME\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"VacPump_02_Status\",\n\t\"Category\": 1,\n\t\"Name\": \"Stato\",\n\t\"Type\": \"ACTUATOR_STATE\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"VacPump_02_WrkTime\",\n\t\"Category\": 2,\n\t\"Name\": \"[s] Tempo utilizzo\",\n\t\"Type\": \"ACCUMULATED_TIME\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"VacAct_01_Count\",\n\t\"Category\": 1,\n\t\"Name\": \"[#] Commutazioni\",\n\t\"Type\": \"COUNT\",\n\t\"SubType\": null,\n\t\"Units\": \"COUNT\"\n}, {\n\t\"uuid\": \"VacAct_02_Count\",\n\t\"Category\": 1,\n\t\"Name\": \"[#] Commutazioni\",\n\t\"Type\": \"COUNT\",\n\t\"SubType\": null,\n\t\"Units\": \"COUNT\"\n}, {\n\t\"uuid\": \"Cooler_01_Status\",\n\t\"Category\": 1,\n\t\"Name\": \"Stato\",\n\t\"Type\": \"ACTUATOR_STATE\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"Cooler_02_Status\",\n\t\"Category\": 1,\n\t\"Name\": \"Stato\",\n\t\"Type\": \"ACTUATOR_STATE\",\n\t\"SubType\": null,\n\t\"Units\": null\n}, {\n\t\"uuid\": \"Lubro_01_Num\",\n\t\"Category\": 1,\n\t\"Name\": \"[#] Attivazioni\",\n\t\"Type\": \"COUNT\",\n\t\"SubType\": null,\n\t\"Units\": \"COUNT\"\n}, {\n\t\"uuid\": \"Lubro_02_Num\",\n\t\"Category\": 1,\n\t\"Name\": \"[#] Attivazioni\",\n\t\"Type\": \"COUNT\",\n\t\"SubType\": null,\n\t\"Units\": \"COUNT\"\n}, {\n\t\"uuid\": \"Press_01_Value\",\n\t\"Category\": 2,\n\t\"Name\": \"[Pa] Pressione 1\",\n\t\"Type\": \"PRESSURE\",\n\t\"SubType\": null,\n\t\"Units\": \"PASCAL\"\n}]"},"parameters":[],"headers":[{"id":"pair_d9894ec846994bcda341092cd0263f08","name":"Content-Type","value":"application/json"}],"authentication":{},"metaSortKey":-1572877837397.75,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"fld_d8d2ad76cbd44eda870135968c48db24","parentId":"wrk_6eaf0a20123c480295db476860d8f716","modified":1574522582759,"created":1574522566792,"name":"MP-IO-MTC","description":"","environment":{},"environmentPropertyOrder":null,"metaSortKey":-1573051967979.5,"_type":"request_group"},{"_id":"req_49c304f221414895909527bd15006bbb","parentId":"fld_2fceb1e93d704ea39b9dbaf6f9173ca9","modified":1669731564950,"created":1669731519033,"url":"{{ BASE_URL }}/IOB/getCurrODL/SIMUL_01","name":"Get curr ODL","description":"","method":"GET","body":{},"parameters":[],"headers":[],"authentication":{},"metaSortKey":-1572688535126,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"fld_2fceb1e93d704ea39b9dbaf6f9173ca9","parentId":"wrk_6eaf0a20123c480295db476860d8f716","modified":1572703706816,"created":1572703706816,"name":"MP-IO","description":"","environment":{},"environmentPropertyOrder":null,"metaSortKey":-1572703706816,"_type":"request_group"},{"_id":"req_8581aca74b54400dac738aedab6ac351","parentId":"fld_2fceb1e93d704ea39b9dbaf6f9173ca9","modified":1669731611207,"created":1669731602311,"url":"{{ BASE_URL }}/IOB/getCurrODL/BAG_TL_01","name":"Get curr ODL bis","description":"","method":"GET","body":{},"parameters":[],"headers":[],"authentication":{},"metaSortKey":-1572688535119.75,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_b010f9d8ac8d49729b7133d88b91ad15","parentId":"fld_2fceb1e93d704ea39b9dbaf6f9173ca9","modified":1669731575844,"created":1669731544786,"url":"{{ BASE_URL }}/IOB/getCurrPODL/SIMUL_01","name":"Get curr PODL","description":"","method":"GET","body":{},"parameters":[],"headers":[],"authentication":{},"metaSortKey":-1572688535113.5,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_18bb232ec88f45688acf5a7ffa5451da","parentId":"fld_2fceb1e93d704ea39b9dbaf6f9173ca9","modified":1572703715107,"created":1572688410657,"url":"{{ BASE_URL }}/IOB/enabled/SIMUL_01","name":"Test IOB enabled","description":"","method":"GET","body":{},"parameters":[],"headers":[],"authentication":{},"metaSortKey":-1572688535076,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_9b12b7b086c94eb3bf19ef19c28088b2","parentId":"fld_2fceb1e93d704ea39b9dbaf6f9173ca9","modified":1572703717867,"created":1572688376619,"url":"{{ BASE_URL }}/IOB","name":"Test MP-IO alive","description":"","method":"GET","body":{},"parameters":[],"headers":[],"authentication":{},"metaSortKey":-1572688535051,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_5bbf1b31a22f482483e06238bc34699c","parentId":"fld_2fceb1e93d704ea39b9dbaf6f9173ca9","modified":1666170696986,"created":1666116982730,"url":"{{ BASE_URL }}/IOB/getTask2Exe/SIMUL_01","name":"MP-IO getTask2exe","description":"","method":"GET","body":{},"parameters":[],"headers":[],"authentication":{},"metaSortKey":-1572688535044.75,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_253c3deea8bf47969dd45dd6a529a2b0","parentId":"fld_2fceb1e93d704ea39b9dbaf6f9173ca9","modified":1669710511144,"created":1572688535026,"url":"{{ BASE_URL }}/IOB/flogJson/SIMUL_01","name":"Send FLog Json","description":"","method":"POST","body":{"mimeType":"application/json","text":"{\n\t\"fluxData\":\n\t[\n\t\t{\n\t\t\"flux\": \"test\",\n\t\t\"valore\": \"valore_10\",\n\t\t\"dtEve\": \"2019-11-02 11:01:00\",\n\t\t\"dtCurr\": \"2019-11-02 11:02:00\",\n\t\t\"cnt\": 10\n\t\t},\n\t\t{\n\t\t\t\"flux\": \"test\",\n\t\t\t\"valore\": \"valore_11\",\n\t\t\t\"dtEve\": \"2019-11-02 11:01:01\",\n\t\t\t\"dtCurr\": \"2019-11-02 11:02:00\",\n\t\t\t\"cnt\": 11\n\t\t},\n\t\t{\n\t\t\"flux\": \"test\",\n\t\t\"valore\": \"valore_12\",\n\t\t\"dtEve\": \"2019-11-02 11:01:02\",\n\t\t\"dtCurr\": \"2019-11-02 11:02:00\",\n\t\t\"cnt\": 12\n\t\t},\n\t\t{\n\t\t\t\"flux\": \"test\",\n\t\t\t\"valore\": \"valore_13\",\n\t\t\t\"dtEve\": \"2019-11-02 11:02:03\",\n\t\t\"dtCurr\": \"2019-11-02 11:02:00\",\n\t\t\t\"cnt\": 13\n\t\t},\n\t\t{\n\t\t\"flux\": \"test\",\n\t\t\"valore\": \"valore_14\",\n\t\t\"dtEve\": \"2019-11-02 11:02:04\",\n\t\t\"dtCurr\": \"2019-11-02 11:02:00\",\n\t\t\"cnt\": 14\n\t\t},\n\t\t{\n\t\t\t\"flux\": \"test\",\n\t\t\t\"valore\": \"valore_15\",\n\t\t\t\"dtEve\": \"2019-11-02 11:02:05\",\n\t\t\t\"dtCurr\": \"2019-11-02 11:02:00\",\n\t\t\t\"cnt\": 15\n\t\t},\n\t\t{\n\t\t\"flux\": \"test\",\n\t\t\"valore\": \"valore_16\",\n\t\t\"dtEve\": \"2019-11-02 11:01:06\",\n\t\t\"dtCurr\": \"2019-11-02 11:02:00\",\n\t\t\"cnt\": 16\n\t\t},\n\t\t{\n\t\t\t\"flux\": \"test\",\n\t\t\t\"valore\": \"valore_17\",\n\t\t\t\"dtEve\": \"2019-11-02 11:01:07\",\n\t\t\t\"dtCurr\": \"2019-11-02 11:02:00\",\n\t\t\t\"cnt\": 17\n\t\t},\n\t\t{\n\t\t\"flux\": \"test\",\n\t\t\"valore\": \"valore_18\",\n\t\t\"dtEve\": \"2019-11-02 11:01:08\",\n\t\t\"dtCurr\": \"2019-11-02 11:02:00\",\n\t\t\"cnt\": 18\n\t\t},\n\t\t{\n\t\t\t\"flux\": \"test\",\n\t\t\t\"valore\": \"valore_19\",\n\t\t\t\"dtEve\": \"2019-11-02 11:01:09\",\n\t\t \"dtCurr\": \"2019-11-02 11:02:00\",\n\t\t\t\"cnt\": 19\n\t\t},\n\t\t{\n\t\t\t\"flux\": \"test\",\n\t\t\t\"valore\": \"valore_20\",\n\t\t\t\"dtEve\": \"2019-11-02 11:01:10\",\n\t\t \"dtCurr\": \"2019-11-02 11:02:00\",\n\t\t\t\"cnt\": 20\n\t\t}\n\t]\n}\n"},"parameters":[],"headers":[{"id":"pair_d9894ec846994bcda341092cd0263f08","name":"Content-Type","value":"application/json"}],"authentication":{},"metaSortKey":-1572688535026,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_3a849f55973d43d8bb7308b52e487a20","parentId":"fld_2fceb1e93d704ea39b9dbaf6f9173ca9","modified":1669710512005,"created":1572703720426,"url":"{{ BASE_URL }}/IOB/liveJson/SIMUL_01","name":"Send LiveIOB Json","description":"","method":"POST","body":{"mimeType":"application/json","text":"{\n\t\"dataList\":\n\t[\n\t\t{\n\t\t\"key\": \"temp_01\",\n\t\t\"value\": \"20.8\"\n\t\t},\n\t\t{\n\t\t\"key\": \"temp_2\",\n\t\t\"value\": \"21.8\"\n\t\t},\n\t\t{\n\t\t\"key\": \"speed_01\",\n\t\t\"value\": \"5000\"\n\t\t},\n\t\t{\n\t\t\"key\": \"speed_02\",\n\t\t\"value\": \"248\"\n\t\t},\n\t\t{\n\t\t\"key\": \"param_01\",\n\t\t\"value\": \"120.8\"\n\t\t},\n\t\t{\n\t\t\"key\": \"param_02\",\n\t\t\"value\": \"170.8\"\n\t\t}\n\t]\n}\n"},"parameters":[],"headers":[{"id":"pair_d9894ec846994bcda341092cd0263f08","name":"Content-Type","value":"application/json"}],"authentication":{},"metaSortKey":-1572688534976,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_8b9bfe3a5fe24f1aa19da4d9cbf24d08","parentId":"fld_2fceb1e93d704ea39b9dbaf6f9173ca9","modified":1669710514912,"created":1646069719097,"url":"{{ BASE_URL }}/IOB/ulogJson/SIMUL_01","name":"Send ULog Json","description":"","method":"POST","body":{"mimeType":"application/json","text":"{\n\t\"fluxData\":\n\t[\n\t\t{\n\t\t\t\"flux\": \"DI\",\n\t\t\t\"valore\": \"User Login - Steamware User\",\n\t\t\t\"dtEve\": \"2022-02-28 11:00:30\",\n\t\t\t\"dtCurr\": \"2022-02-28 11:02:00\",\n\t\t\t\"cnt\": 9,\n\t\t\t\"matrOpr\": 1,\n\t\t\t\"label\": \"UserLogin\"\n\t\t},\n\t\t{\n\t\t\t\"flux\": \"DI\",\n\t\t\t\"valore\": \"Dichiarazione di prova\",\n\t\t\t\"dtEve\": \"2022-02-28 11:01:00\",\n\t\t\t\"dtCurr\": \"2022-02-28 11:02:00\",\n\t\t\t\"cnt\": 10,\n\t\t\t\"matrOpr\": 1,\n\t\t\t\"label\": \"Note\"\n\t\t},\n\t\t{\n\t\t\t\"flux\": \"RC\",\n\t\t\t\"valore\": \"\",\n\t\t\t\"dtEve\": \"2022-02-28 11:01:01\",\n\t\t\t\"dtCurr\": \"2022-02-28 11:02:00\",\n\t\t\t\"cnt\": 11,\n\t\t\t\"matrOpr\": 1,\n\t\t\t\"valNum\": 1\n\t\t},\n\t\t{\n\t\t\t\"flux\": \"RC\",\n\t\t\t\"valore\": \"SIM Controllo fallito\",\n\t\t\t\"dtEve\": \"2022-02-28 11:01:31\",\n\t\t\t\"dtCurr\": \"2022-02-28 11:02:00\",\n\t\t\t\"cnt\": 12,\n\t\t\t\"matrOpr\": 1,\n\t\t\t\"valNum\": 0\n\t\t},\n\t\t{\n\t\t\t\"flux\": \"RS\",\n\t\t\t\"valore\": \"SIM Scarto 01\",\n\t\t\t\"dtEve\": \"2022-02-28 11:01:05\",\n\t\t\t\"dtCurr\": \"2022-02-28 11:02:00\",\n\t\t\t\"cnt\": 13,\n\t\t\t\"matrOpr\": 1,\n\t\t\t\"label\": \"01\",\n\t\t\t\"valNum\": 1\n\t\t},\n\t\t{\n\t\t\t\"flux\": \"RS\",\n\t\t\t\"valore\": \"SIM Scarto 02\",\n\t\t\t\"dtEve\": \"2022-02-28 11:01:15\",\n\t\t\t\"dtCurr\": \"2022-02-28 11:02:00\",\n\t\t\t\"cnt\": 15,\n\t\t\t\"matrOpr\": 1,\n\t\t\t\"label\": \"02\",\n\t\t\t\"valNum\": 2\n\t\t}\n\t]\n}"},"parameters":[],"headers":[{"id":"pair_d9894ec846994bcda341092cd0263f08","name":"Content-Type","value":"application/json"}],"authentication":{},"metaSortKey":-1572688534926,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_5e199f4f47f5480c8a65836ff3278455","parentId":"fld_2fceb1e93d704ea39b9dbaf6f9173ca9","modified":1669713559792,"created":1653312485596,"url":"{{ BASE_URL }}/IOB/rawTransfJson/GIACO_ICOEL","name":"Send RawTransfJson","description":"","method":"POST","body":{"mimeType":"application/json","text":"[\n\t{\n\t\"mesType\": \"IcoelBatch\", \n\t\"mesContent\": {\n\t\t\"1\": {\n\t\t\t\"AvoidLayoutChange\": true,\n\t\t\t\"AvoidSavingOldLayouts\": false,\n\t\t\t\"Comments\": [\"\", \"\", \"\"],\n\t\t\t\"EndTime\": \"0001-01-01T00:00:00\",\n\t\t\t\"GrowerCode\": \"CSE\",\n\t\t\t\"Id\": 21,\n\t\t\t\"IsFinalized\": false,\n\t\t\t\"LaneGroups\": [{\n\t\t\t\t\"Lanes\": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24],\n\t\t\t\t\"Name\": \"Sinistra\"\n\t\t\t}, {\n\t\t\t\t\"Lanes\": [],\n\t\t\t\t\"Name\": \"Destra\"\n\t\t\t}],\n\t\t\t\"LayoutId\": \"aba2ac90-d835-46ee-bc3d-2cfbad76287d\",\n\t\t\t\"LayoutName\": \"New Layout\",\n\t\t\t\"Name\": \"Batch 78\",\n\t\t\t\"OverrideLayoutConflicts\": true,\n\t\t\t\"SampleName\": \"\",\n\t\t\t\"SizingProfileName\": \"\",\n\t\t\t\"StartTime\": \"2022-05-21T12:40:21.6522013+02:00\",\n\t\t\t\"TotallingVariety\": \"Default\",\n\t\t\t\"TotallingVarietyCode\": \"\",\n\t\t\t\"VarietyId\": \"48529fd1-742a-432f-814d-a54c8030a80c\",\n\t\t\t\"VarietyName\": \"Bigarreaux\",\n\t\t\t\"VisionMap\": 3\n\t\t},\n\t\t\"2\": {\n\t\t\t\"AvoidLayoutChange\": true,\n\t\t\t\"AvoidSavingOldLayouts\": false,\n\t\t\t\"Comments\": [\"\", \"\", \"\"],\n\t\t\t\"EndTime\": \"0001-01-01T00:00:00\",\n\t\t\t\"GrowerCode\": \"CSE\",\n\t\t\t\"Id\": 21,\n\t\t\t\"IsFinalized\": false,\n\t\t\t\"LaneGroups\": [{\n\t\t\t\t\"Lanes\": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24],\n\t\t\t\t\"Name\": \"Sinistra\"\n\t\t\t}, {\n\t\t\t\t\"Lanes\": [],\n\t\t\t\t\"Name\": \"Destra\"\n\t\t\t}],\n\t\t\t\"LayoutId\": \"aba2ac90-d835-46ee-bc3d-2cfbad76287d\",\n\t\t\t\"LayoutName\": \"New Layout\",\n\t\t\t\"Name\": \"Batch 78\",\n\t\t\t\"OverrideLayoutConflicts\": true,\n\t\t\t\"SampleName\": \"\",\n\t\t\t\"SizingProfileName\": \"\",\n\t\t\t\"StartTime\": \"2022-05-21T12:40:21.6522013+02:00\",\n\t\t\t\"TotallingVariety\": \"Default\",\n\t\t\t\"TotallingVarietyCode\": \"\",\n\t\t\t\"VarietyId\": \"48529fd1-742a-432f-814d-a54c8030a80c\",\n\t\t\t\"VarietyName\": \"Bigarreaux\",\n\t\t\t\"VisionMap\": 3\n\t\t}\n\t}\n}\n]"},"parameters":[],"headers":[{"id":"pair_d9894ec846994bcda341092cd0263f08","name":"Content-Type","value":"application/json"}],"authentication":{},"metaSortKey":-1570661841168.5,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_c20f1ba494aa46c6b8ea7a7d9fad7d05","parentId":"fld_2fceb1e93d704ea39b9dbaf6f9173ca9","modified":1669713561638,"created":1653328411117,"url":"{{ BASE_URL }}/IOB/rawTransfJson/GIACO_ICOEL","name":"Send RawTransfJson 2","description":"","method":"POST","body":{"mimeType":"application/json","text":"[\n\t{\n\t\"dataRif\": \"2022-05-23T19:51:48.9674938+02:00\",\n\t\"mesContent\": {\n\t\t\"1\": {\n\t\t\t\"AvoidLayoutChange\": true,\n\t\t\t\"AvoidSavingOldLayouts\": false,\n\t\t\t\"Comments\": [\"\", \"\", \"\"],\n\t\t\t\"EndTime\": \"0001-01-01T00:00:00\",\n\t\t\t\"GrowerCode\": \"CSE\",\n\t\t\t\"Id\": 28,\n\t\t\t\"IsFinalized\": false,\n\t\t\t\"LaneGroups\": [{\n\t\t\t\t\"Lanes\": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24],\n\t\t\t\t\"Name\": \"Sinistra\"\n\t\t\t}, {\n\t\t\t\t\"Lanes\": [],\n\t\t\t\t\"Name\": \"Destra\"\n\t\t\t}],\n\t\t\t\"LayoutId\": \"aba2ac90-d835-46ee-bc3d-2cfbad76287d\",\n\t\t\t\"LayoutName\": \"New Layout\",\n\t\t\t\"Name\": \"Lotto 85\",\n\t\t\t\"OverrideLayoutConflicts\": true,\n\t\t\t\"SampleName\": \"\",\n\t\t\t\"SizingProfileName\": \"\",\n\t\t\t\"StartTime\": \"2022-05-23T16:52:13.2473589+02:00\",\n\t\t\t\"TotallingVariety\": \"Default\",\n\t\t\t\"TotallingVarietyCode\": \"\",\n\t\t\t\"VarietyId\": \"48529fd1-742a-432f-814d-a54c8030a80c\",\n\t\t\t\"VarietyName\": \"Bigarreaux\",\n\t\t\t\"VisionMap\": 3\n\t\t},\n\t\t\"2\": {\n\t\t\t\"AvoidLayoutChange\": true,\n\t\t\t\"AvoidSavingOldLayouts\": false,\n\t\t\t\"Comments\": [\"\", \"\", \"\"],\n\t\t\t\"EndTime\": \"0001-01-01T00:00:00\",\n\t\t\t\"GrowerCode\": \"CSE\",\n\t\t\t\"Id\": 28,\n\t\t\t\"IsFinalized\": false,\n\t\t\t\"LaneGroups\": [{\n\t\t\t\t\"Lanes\": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24],\n\t\t\t\t\"Name\": \"Sinistra\"\n\t\t\t}, {\n\t\t\t\t\"Lanes\": [],\n\t\t\t\t\"Name\": \"Destra\"\n\t\t\t}],\n\t\t\t\"LayoutId\": \"aba2ac90-d835-46ee-bc3d-2cfbad76287d\",\n\t\t\t\"LayoutName\": \"New Layout\",\n\t\t\t\"Name\": \"Lotto 85\",\n\t\t\t\"OverrideLayoutConflicts\": true,\n\t\t\t\"SampleName\": \"\",\n\t\t\t\"SizingProfileName\": \"\",\n\t\t\t\"StartTime\": \"2022-05-23T16:52:13.2473589+02:00\",\n\t\t\t\"TotallingVariety\": \"Default\",\n\t\t\t\"TotallingVarietyCode\": \"\",\n\t\t\t\"VarietyId\": \"48529fd1-742a-432f-814d-a54c8030a80c\",\n\t\t\t\"VarietyName\": \"Bigarreaux\",\n\t\t\t\"VisionMap\": 3\n\t\t}\n\t},\n\t\"mesType\": \"IcoelBatch\"\n\t},\n\t{\n\t\"dataRif\": \"2022-05-23T19:51:48.9674938+02:00\",\n\t\"mesContent\": {\n\t\t\"1\": {\n\t\t\t\"AvoidLayoutChange\": true,\n\t\t\t\"AvoidSavingOldLayouts\": false,\n\t\t\t\"Comments\": [\"\", \"\", \"\"],\n\t\t\t\"EndTime\": \"0001-01-01T00:00:00\",\n\t\t\t\"GrowerCode\": \"CSE\",\n\t\t\t\"Id\": 28,\n\t\t\t\"IsFinalized\": false,\n\t\t\t\"LaneGroups\": [{\n\t\t\t\t\"Lanes\": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24],\n\t\t\t\t\"Name\": \"Sinistra\"\n\t\t\t}, {\n\t\t\t\t\"Lanes\": [],\n\t\t\t\t\"Name\": \"Destra\"\n\t\t\t}],\n\t\t\t\"LayoutId\": \"aba2ac90-d835-46ee-bc3d-2cfbad76287d\",\n\t\t\t\"LayoutName\": \"New Layout\",\n\t\t\t\"Name\": \"Lotto 85\",\n\t\t\t\"OverrideLayoutConflicts\": true,\n\t\t\t\"SampleName\": \"\",\n\t\t\t\"SizingProfileName\": \"\",\n\t\t\t\"StartTime\": \"2022-05-23T16:52:13.2473589+02:00\",\n\t\t\t\"TotallingVariety\": \"Default\",\n\t\t\t\"TotallingVarietyCode\": \"\",\n\t\t\t\"VarietyId\": \"48529fd1-742a-432f-814d-a54c8030a80c\",\n\t\t\t\"VarietyName\": \"Bigarreaux\",\n\t\t\t\"VisionMap\": 3\n\t\t},\n\t\t\"2\": {\n\t\t\t\"AvoidLayoutChange\": true,\n\t\t\t\"AvoidSavingOldLayouts\": false,\n\t\t\t\"Comments\": [\"\", \"\", \"\"],\n\t\t\t\"EndTime\": \"0001-01-01T00:00:00\",\n\t\t\t\"GrowerCode\": \"CSE\",\n\t\t\t\"Id\": 28,\n\t\t\t\"IsFinalized\": false,\n\t\t\t\"LaneGroups\": [{\n\t\t\t\t\"Lanes\": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24],\n\t\t\t\t\"Name\": \"Sinistra\"\n\t\t\t}, {\n\t\t\t\t\"Lanes\": [],\n\t\t\t\t\"Name\": \"Destra\"\n\t\t\t}],\n\t\t\t\"LayoutId\": \"aba2ac90-d835-46ee-bc3d-2cfbad76287d\",\n\t\t\t\"LayoutName\": \"New Layout\",\n\t\t\t\"Name\": \"Lotto 85\",\n\t\t\t\"OverrideLayoutConflicts\": true,\n\t\t\t\"SampleName\": \"\",\n\t\t\t\"SizingProfileName\": \"\",\n\t\t\t\"StartTime\": \"2022-05-23T16:52:13.2473589+02:00\",\n\t\t\t\"TotallingVariety\": \"Default\",\n\t\t\t\"TotallingVarietyCode\": \"\",\n\t\t\t\"VarietyId\": \"48529fd1-742a-432f-814d-a54c8030a80c\",\n\t\t\t\"VarietyName\": \"Bigarreaux\",\n\t\t\t\"VisionMap\": 3\n\t\t}\n\t},\n\t\"mesType\": \"IcoelBatch\"\n\t}\n]"},"parameters":[],"headers":[{"id":"pair_d9894ec846994bcda341092cd0263f08","name":"Content-Type","value":"application/json"}],"authentication":{},"metaSortKey":-1569648494289.75,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_196d4d162e3c4b0d8f09b64630c68354","parentId":"fld_2fceb1e93d704ea39b9dbaf6f9173ca9","modified":1669710577748,"created":1657198918612,"url":"{{ BASE_URL }}/IOB/rawTransfJson/GIACO_ICOEL","name":"Send RawTransfJson 3","description":"","method":"POST","body":{"mimeType":"application/json","text":"[\n\t{\n\t\"dataRif\": \"2022-05-23T19:51:48.9674938+02:00\",\n\t\"mesContent\": {\n\t\t\"test\":\"data\"\n\t},\n\t\"mesType\": \"IcoelBatch\"\n\t}\n]"},"parameters":[],"headers":[{"id":"pair_d9894ec846994bcda341092cd0263f08","name":"Content-Type","value":"application/json"}],"authentication":{},"metaSortKey":-1569141820850.375,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_dd8a225868c74c75a0f04e9fafc6504f","parentId":"fld_2fceb1e93d704ea39b9dbaf6f9173ca9","modified":1663577208603,"created":1663577161793,"url":"{{ BASE_URL }}/IOB/takeFlogSnapshot/SIMUL_01","name":"Take FL Snapshot","description":"","method":"POST","body":{},"parameters":[],"headers":[],"authentication":{},"metaSortKey":-1569141820800.375,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_1629039e944940e68c1ad6858fa5ac86","parentId":"fld_ce2a7c30d21e4384b54896a36c397a3d","modified":1669728853571,"created":1669710554275,"url":"{{ BASE_URL }}/IOB/getOdlAtDate/SIMUL_01?dateRif=20221026","name":"Get ODL at date","description":"","method":"GET","body":{},"parameters":[],"headers":[],"authentication":{},"metaSortKey":-1569141820875.375,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"fld_ce2a7c30d21e4384b54896a36c397a3d","parentId":"fld_2fceb1e93d704ea39b9dbaf6f9173ca9","modified":1669710566195,"created":1669710490058,"name":"RegGiacenze","description":"","environment":{},"environmentPropertyOrder":null,"metaSortKey":-1569141820787.875,"_type":"request_group"},{"_id":"req_387e31b0e0854a31ae30e211135682db","parentId":"fld_ce2a7c30d21e4384b54896a36c397a3d","modified":1669735064977,"created":1669735045760,"url":"{{ BASE_URL }}/IOB/fixDailyOdl/BAG_TL_01","name":"Fix ODL Daily","description":"","method":"GET","body":{},"parameters":[],"headers":[],"authentication":{},"metaSortKey":-1569141820862.875,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_64fa5f91371349daa76de804a5cea000","parentId":"fld_ce2a7c30d21e4384b54896a36c397a3d","modified":1669728870934,"created":1669710599508,"url":"{{ BASE_URL }}/IOB/rawTransfJson/SIMUL_01","name":"Send Giac RawTransf","description":"","method":"POST","body":{"mimeType":"application/json","text":"[\n\t{\n\t\"dataRif\": \"2022-11-16T20:00:00.9674938+02:00\",\n\t\"mesContent\": {\n\t\t\"1\": {\n\t\t\t\"IdxODL\": 90937,\n\t\t\t\"IdentRG\":\t\"20220920.UVA.LUISA.COPPI\",\n\t\t\t\"Product\":\t\"UVA\",\n\t\t\t\"Variety\":\t\"LUISA\",\n\t\t\t\"Supplier\":\t\"COPPI\",\n\t\t\t\"ExtDoc\": \t\"TT111\",\n\t\t\t\"DateRif\":\t\"2022-09-20T00:00:00.000000+02:00\",\n\t\t\t\"QtyTot\":\t6050.0,\n\t\t\t\"NumPack\":\t550,\n\t\t\t\"Notes\":\t\"11x50x11\"\n\t\t},\n\t\t\"2\": {\n\t\t\t\"IdxODL\": 90937,\n\t\t\t\"IdentRG\":\t\"20220929.UVA.GIANT_PEARL.FLLI_GIACOVELLI\",\n\t\t\t\"Product\":\t\"UVA\",\n\t\t\t\"Variety\":\t\"GIANT PEARL\",\n\t\t\t\"Supplier\":\t\"F.LLI GIACOVELLI\",\n\t\t\t\"ExtDoc\": \t\"TT119\",\n\t\t\t\"DateRif\":\t\"2022-09-29T00:00:00.000000+02:00\",\n\t\t\t\"QtyTot\":\t6050.0,\n\t\t\t\"NumPack\":\t550,\n\t\t\t\"Notes\":\t\"11x50x11\"\n\t\t},\n\t\t\"3\": {\n\t\t\t\"IdxODL\": 90937,\n\t\t\t\"IdentRG\":\t\"20221012.UVA.SWEET_CEL.FLLI_GIACOVELLI\",\n\t\t\t\"Product\":\t\"UVA\",\n\t\t\t\"Variety\":\t\"SWEET CEL.\",\n\t\t\t\"Supplier\":\t\"F.LLI GIACOVELLI\",\n\t\t\t\"ExtDoc\": \t\"TT140\",\n\t\t\t\"DateRif\":\t\"2022-10-12T00:00:00.000000+02:00\",\n\t\t\t\"QtyTot\":\t550.0,\n\t\t\t\"NumPack\":\t50,\n\t\t\t\"Notes\":\t\"1x50x11\"\n\t\t}\n\t},\n\t\"mesType\": \"RegGiacenze\"\n\t}\n]"},"parameters":[],"headers":[{"id":"pair_d9894ec846994bcda341092cd0263f08","name":"Content-Type","value":"application/json"}],"authentication":{},"metaSortKey":-1569141820825.375,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"env_8740e20e8e8bb2003e5230773ef23271182ab751","parentId":"wrk_6eaf0a20123c480295db476860d8f716","modified":1572703437306,"created":1572685869222,"name":"Base Environment","data":{},"dataPropertyOrder":{},"color":null,"isPrivate":false,"metaSortKey":1572685869222,"_type":"environment"},{"_id":"jar_8740e20e8e8bb2003e5230773ef23271182ab751","parentId":"wrk_6eaf0a20123c480295db476860d8f716","modified":1572685869231,"created":1572685869231,"name":"Default Jar","cookies":[],"_type":"cookie_jar"},{"_id":"spc_e6fdb813e3494001a0a09f18637637be","parentId":"wrk_6eaf0a20123c480295db476860d8f716","modified":1627050532237,"created":1627050532237,"fileName":"MP-IO","contents":"","contentType":"yaml","_type":"api_spec"},{"_id":"env_c05a8868c4934cdfa10f3a5cb0ebcb5d","parentId":"env_8740e20e8e8bb2003e5230773ef23271182ab751","modified":1657195721258,"created":1572703420555,"name":"DEV","data":{"BASE_URL":"http://localhost:20967/"},"dataPropertyOrder":{"&":["BASE_URL"]},"color":null,"isPrivate":false,"metaSortKey":1572703420555,"_type":"environment"},{"_id":"env_e66bedb2f2ce4168aa67be58ee2e3c04","parentId":"env_8740e20e8e8bb2003e5230773ef23271182ab751","modified":1657195718320,"created":1573471806261,"name":"IIS01","data":{"BASE_URL":"http://iis01.egalware.com/MP/IO/"},"dataPropertyOrder":{"&":["BASE_URL"]},"color":null,"isPrivate":false,"metaSortKey":1573471806261,"_type":"environment"},{"_id":"env_1c2b1769eca04bb5800dd430d9548b42","parentId":"env_8740e20e8e8bb2003e5230773ef23271182ab751","modified":1657195719443,"created":1573471844550,"name":"IIS02","data":{"BASE_URL":"http://iis02.egalware.com/MP/IO/"},"dataPropertyOrder":{"&":["BASE_URL"]},"color":null,"isPrivate":false,"metaSortKey":1573471844550,"_type":"environment"},{"_id":"env_24a7d5ab5ede49b3ba6ca2fae1964cee","parentId":"env_8740e20e8e8bb2003e5230773ef23271182ab751","modified":1657195720083,"created":1657195687758,"name":"IIS03","data":{"BASE_URL":"http://iis03.egalware.com/MP/IO/"},"dataPropertyOrder":{"&":["BASE_URL"]},"color":null,"isPrivate":false,"metaSortKey":1595884971128.5,"_type":"environment"}]} \ No newline at end of file