From bd93ee15655713c58f2bade7f47f8cc92be3e83c Mon Sep 17 00:00:00 2001 From: "Samuele E. Locatelli" Date: Fri, 27 Jun 2025 16:10:37 +0200 Subject: [PATCH] Update land x riduzione eventi remoterebootlog alla scrittura di nuovo record --- MP-IO/Controllers/IOBController.cs | 9 +- MapoDb/DS_applicazione.Designer.cs | 245 +++++++++++++++++------------ MapoDb/DS_applicazione.xsd | 63 +++++--- MapoDb/DS_applicazione.xss | 62 ++++---- MapoDb/MapoDb.cs | 12 +- 5 files changed, 227 insertions(+), 164 deletions(-) diff --git a/MP-IO/Controllers/IOBController.cs b/MP-IO/Controllers/IOBController.cs index 68595d3e..46dcb254 100644 --- a/MP-IO/Controllers/IOBController.cs +++ b/MP-IO/Controllers/IOBController.cs @@ -2105,9 +2105,12 @@ namespace MP_IO.Controllers // esempio GWMS } - /// Salva MAC adress + IP dopo il reboot - /// GET: IOB/sendReboot/SIMUL_05?mac=18:C0:4D:37:3C:8C IP - /// del Gateway + /// + /// Salva MAC adress + IP dopo il reboot + /// GET: IOB/sendReboot/SIMUL_05?mac=18:C0:4D:37:3C:8C + /// + /// IP del Gateway + /// public string sendReboot(string id, string mac) { string answ = "NO"; diff --git a/MapoDb/DS_applicazione.Designer.cs b/MapoDb/DS_applicazione.Designer.cs index 134cebca..e9e431b5 100644 --- a/MapoDb/DS_applicazione.Designer.cs +++ b/MapoDb/DS_applicazione.Designer.cs @@ -1,10 +1,10 @@ //------------------------------------------------------------------------------ // -// This code was generated by a tool. -// Runtime Version:4.0.30319.42000 +// Il codice è stato generato da uno strumento. +// Versione runtime:4.0.30319.42000 // -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. +// Le modifiche apportate a questo file possono provocare un comportamento non corretto e andranno perse se +// il codice viene rigenerato. // //------------------------------------------------------------------------------ @@ -12084,7 +12084,7 @@ namespace MapoDb { return ((string)(this[this.tableMacchine.CodMacchinaColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'CodMacchina\' in table \'Macchine\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'CodMacchina\' nella tabella \'Macchine\' è DBNull.", e); } } set { @@ -12100,7 +12100,7 @@ namespace MapoDb { return ((string)(this[this.tableMacchine.NomeColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'Nome\' in table \'Macchine\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'Nome\' nella tabella \'Macchine\' è DBNull.", e); } } set { @@ -12116,7 +12116,7 @@ namespace MapoDb { return ((string)(this[this.tableMacchine.DescrizioneColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'Descrizione\' in table \'Macchine\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'Descrizione\' nella tabella \'Macchine\' è DBNull.", e); } } set { @@ -12132,7 +12132,7 @@ namespace MapoDb { return ((string)(this[this.tableMacchine.NoteColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'Note\' in table \'Macchine\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'Note\' nella tabella \'Macchine\' è DBNull.", e); } } set { @@ -12148,7 +12148,7 @@ namespace MapoDb { return ((string)(this[this.tableMacchine.urlColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'url\' in table \'Macchine\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'url\' nella tabella \'Macchine\' è DBNull.", e); } } set { @@ -12164,7 +12164,7 @@ namespace MapoDb { return ((string)(this[this.tableMacchine.locazioneColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'locazione\' in table \'Macchine\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'locazione\' nella tabella \'Macchine\' è DBNull.", e); } } set { @@ -12469,7 +12469,7 @@ namespace MapoDb { return ((global::System.DateTime)(this[this.tableStatoMacchine.InizioStatoColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'InizioStato\' in table \'StatoMacchine\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'InizioStato\' nella tabella \'StatoMacchine\' è DBNull.", e); } } set { @@ -12485,7 +12485,7 @@ namespace MapoDb { return ((string)(this[this.tableStatoMacchine.ValueColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'Value\' in table \'StatoMacchine\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'Value\' nella tabella \'StatoMacchine\' è DBNull.", e); } } set { @@ -12501,7 +12501,7 @@ namespace MapoDb { return ((double)(this[this.tableStatoMacchine.TempoCicloBaseColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'TempoCicloBase\' in table \'StatoMacchine\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'TempoCicloBase\' nella tabella \'StatoMacchine\' è DBNull.", e); } } set { @@ -12517,7 +12517,7 @@ namespace MapoDb { return ((int)(this[this.tableStatoMacchine.PzPalletProdColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'PzPalletProd\' in table \'StatoMacchine\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'PzPalletProd\' nella tabella \'StatoMacchine\' è DBNull.", e); } } set { @@ -12533,7 +12533,7 @@ namespace MapoDb { return ((int)(this[this.tableStatoMacchine.MatrOprColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'MatrOpr\' in table \'StatoMacchine\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'MatrOpr\' nella tabella \'StatoMacchine\' è DBNull.", e); } } set { @@ -12549,7 +12549,7 @@ namespace MapoDb { return ((string)(this[this.tableStatoMacchine.palletColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'pallet\' in table \'StatoMacchine\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'pallet\' nella tabella \'StatoMacchine\' è DBNull.", e); } } set { @@ -12565,7 +12565,7 @@ namespace MapoDb { return ((string)(this[this.tableStatoMacchine.CodArticoloColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'CodArticolo\' in table \'StatoMacchine\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'CodArticolo\' nella tabella \'StatoMacchine\' è DBNull.", e); } } set { @@ -12724,7 +12724,7 @@ namespace MapoDb { return ((string)(this[this.tableAnagraficaStati.DescrizioneColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'Descrizione\' in table \'AnagraficaStati\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'Descrizione\' nella tabella \'AnagraficaStati\' è DBNull.", e); } } set { @@ -12740,7 +12740,7 @@ namespace MapoDb { return ((string)(this[this.tableAnagraficaStati.SemaforoColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'Semaforo\' in table \'AnagraficaStati\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'Semaforo\' nella tabella \'AnagraficaStati\' è DBNull.", e); } } set { @@ -12756,7 +12756,7 @@ namespace MapoDb { return ((int)(this[this.tableAnagraficaStati.PrioritaColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'Priorita\' in table \'AnagraficaStati\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'Priorita\' nella tabella \'AnagraficaStati\' è DBNull.", e); } } set { @@ -12772,7 +12772,7 @@ namespace MapoDb { return ((string)(this[this.tableAnagraficaStati.ClasseTempoColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'ClasseTempo\' in table \'AnagraficaStati\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'ClasseTempo\' nella tabella \'AnagraficaStati\' è DBNull.", e); } } set { @@ -12788,7 +12788,7 @@ namespace MapoDb { return ((bool)(this[this.tableAnagraficaStati.ShowArticoloColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'ShowArticolo\' in table \'AnagraficaStati\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'ShowArticolo\' nella tabella \'AnagraficaStati\' è DBNull.", e); } } set { @@ -12945,7 +12945,7 @@ namespace MapoDb { return ((string)(this[this.tableEventList.ValueColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'Value\' in table \'EventList\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'Value\' nella tabella \'EventList\' è DBNull.", e); } } set { @@ -12961,7 +12961,7 @@ namespace MapoDb { return ((int)(this[this.tableEventList.MatrOprColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'MatrOpr\' in table \'EventList\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'MatrOpr\' nella tabella \'EventList\' è DBNull.", e); } } set { @@ -12977,7 +12977,7 @@ namespace MapoDb { return ((string)(this[this.tableEventList.palletColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'pallet\' in table \'EventList\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'pallet\' nella tabella \'EventList\' è DBNull.", e); } } set { @@ -12993,7 +12993,7 @@ namespace MapoDb { return ((string)(this[this.tableEventList.CodArticoloColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'CodArticolo\' in table \'EventList\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'CodArticolo\' nella tabella \'EventList\' è DBNull.", e); } } set { @@ -13116,7 +13116,7 @@ namespace MapoDb { return ((string)(this[this.tableAnagraficaEventi.NomeColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'Nome\' in table \'AnagraficaEventi\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'Nome\' nella tabella \'AnagraficaEventi\' è DBNull.", e); } } set { @@ -13225,7 +13225,7 @@ namespace MapoDb { return ((global::System.DateTime)(this[this.tableDiarioDiBordo.FineStatoColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'FineStato\' in table \'DiarioDiBordo\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'FineStato\' nella tabella \'DiarioDiBordo\' è DBNull.", e); } } set { @@ -13252,7 +13252,7 @@ namespace MapoDb { return ((double)(this[this.tableDiarioDiBordo.DurataMinutiColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'DurataMinuti\' in table \'DiarioDiBordo\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'DurataMinuti\' nella tabella \'DiarioDiBordo\' è DBNull.", e); } } set { @@ -13268,7 +13268,7 @@ namespace MapoDb { return ((string)(this[this.tableDiarioDiBordo.ValueColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'Value\' in table \'DiarioDiBordo\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'Value\' nella tabella \'DiarioDiBordo\' è DBNull.", e); } } set { @@ -13284,7 +13284,7 @@ namespace MapoDb { return ((double)(this[this.tableDiarioDiBordo.TempoCicloBaseColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'TempoCicloBase\' in table \'DiarioDiBordo\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'TempoCicloBase\' nella tabella \'DiarioDiBordo\' è DBNull.", e); } } set { @@ -13300,7 +13300,7 @@ namespace MapoDb { return ((int)(this[this.tableDiarioDiBordo.PzPalletProdColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'PzPalletProd\' in table \'DiarioDiBordo\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'PzPalletProd\' nella tabella \'DiarioDiBordo\' è DBNull.", e); } } set { @@ -13316,7 +13316,7 @@ namespace MapoDb { return ((int)(this[this.tableDiarioDiBordo.MatrOprColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'MatrOpr\' in table \'DiarioDiBordo\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'MatrOpr\' nella tabella \'DiarioDiBordo\' è DBNull.", e); } } set { @@ -13332,7 +13332,7 @@ namespace MapoDb { return ((string)(this[this.tableDiarioDiBordo.palletColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'pallet\' in table \'DiarioDiBordo\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'pallet\' nella tabella \'DiarioDiBordo\' è DBNull.", e); } } set { @@ -13348,7 +13348,7 @@ namespace MapoDb { return ((string)(this[this.tableDiarioDiBordo.CodArticoloColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'CodArticolo\' in table \'DiarioDiBordo\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'CodArticolo\' nella tabella \'DiarioDiBordo\' è DBNull.", e); } } set { @@ -13541,7 +13541,8 @@ namespace MapoDb { return ((int)(this[this.tableTransizioneEventi.IdxTipoEventoColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'IdxTipoEvento\' in table \'TransizioneEventi\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'IdxTipoEvento\' nella tabella \'TransizioneEventi\' è DBNul" + + "l.", e); } } set { @@ -13557,7 +13558,7 @@ namespace MapoDb { return ((string)(this[this.tableTransizioneEventi.text2showColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'text2show\' in table \'TransizioneEventi\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'text2show\' nella tabella \'TransizioneEventi\' è DBNull.", e); } } set { @@ -13573,7 +13574,8 @@ namespace MapoDb { return ((string)(this[this.tableTransizioneEventi.descrComandoColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'descrComando\' in table \'TransizioneEventi\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'descrComando\' nella tabella \'TransizioneEventi\' è DBNull" + + ".", e); } } set { @@ -13662,7 +13664,7 @@ namespace MapoDb { return ((global::System.DateTime)(this[this.tableKeepAlive.DataOraServerColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'DataOraServer\' in table \'KeepAlive\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'DataOraServer\' nella tabella \'KeepAlive\' è DBNull.", e); } } set { @@ -13678,7 +13680,7 @@ namespace MapoDb { return ((global::System.DateTime)(this[this.tableKeepAlive.DataOraMacchinaColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'DataOraMacchina\' in table \'KeepAlive\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'DataOraMacchina\' nella tabella \'KeepAlive\' è DBNull.", e); } } set { @@ -13694,7 +13696,7 @@ namespace MapoDb { return ((global::System.DateTime)(this[this.tableKeepAlive.DataOraStartColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'DataOraStart\' in table \'KeepAlive\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'DataOraStart\' nella tabella \'KeepAlive\' è DBNull.", e); } } set { @@ -13831,8 +13833,8 @@ namespace MapoDb { return ((string)(this[this.tableFamigliaTipoIngressi.DescrizioneIngressoColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'DescrizioneIngresso\' in table \'FamigliaTipoIngressi\' is DBN" + - "ull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'DescrizioneIngresso\' nella tabella \'FamigliaTipoIngressi" + + "\' è DBNull.", e); } } set { @@ -13930,7 +13932,8 @@ namespace MapoDb { return ((int)(this[this.tableTransizioneIngressi.IdxTipoEventoColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'IdxTipoEvento\' in table \'TransizioneIngressi\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'IdxTipoEvento\' nella tabella \'TransizioneIngressi\' è DBN" + + "ull.", e); } } set { @@ -14017,7 +14020,7 @@ namespace MapoDb { return ((string)(this[this.tableAnagraficaOperatori.CognomeColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'Cognome\' in table \'AnagraficaOperatori\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'Cognome\' nella tabella \'AnagraficaOperatori\' è DBNull.", e); } } set { @@ -14033,7 +14036,7 @@ namespace MapoDb { return ((string)(this[this.tableAnagraficaOperatori.NomeColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'Nome\' in table \'AnagraficaOperatori\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'Nome\' nella tabella \'AnagraficaOperatori\' è DBNull.", e); } } set { @@ -14049,7 +14052,7 @@ namespace MapoDb { return ((bool)(this[this.tableAnagraficaOperatori.isAdminColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'isAdmin\' in table \'AnagraficaOperatori\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'isAdmin\' nella tabella \'AnagraficaOperatori\' è DBNull.", e); } } set { @@ -14065,7 +14068,7 @@ namespace MapoDb { return ((string)(this[this.tableAnagraficaOperatori.authKeyColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'authKey\' in table \'AnagraficaOperatori\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'authKey\' nella tabella \'AnagraficaOperatori\' è DBNull.", e); } } set { @@ -14188,7 +14191,8 @@ namespace MapoDb { return ((string)(this[this.tableAnagraficaOperatori2ins.CognomeColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'Cognome\' in table \'AnagraficaOperatori2ins\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'Cognome\' nella tabella \'AnagraficaOperatori2ins\' è DBNul" + + "l.", e); } } set { @@ -14204,7 +14208,7 @@ namespace MapoDb { return ((string)(this[this.tableAnagraficaOperatori2ins.NomeColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'Nome\' in table \'AnagraficaOperatori2ins\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'Nome\' nella tabella \'AnagraficaOperatori2ins\' è DBNull.", e); } } set { @@ -14270,7 +14274,7 @@ namespace MapoDb { return ((bool)(this[this.tableDatiMacchine.palletChangeColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'palletChange\' in table \'DatiMacchine\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'palletChange\' nella tabella \'DatiMacchine\' è DBNull.", e); } } set { @@ -14286,7 +14290,7 @@ namespace MapoDb { return ((string)(this[this.tableDatiMacchine.serialPortColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'serialPort\' in table \'DatiMacchine\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'serialPort\' nella tabella \'DatiMacchine\' è DBNull.", e); } } set { @@ -14302,7 +14306,7 @@ namespace MapoDb { return ((int)(this[this.tableDatiMacchine.refreshPeriodColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'refreshPeriod\' in table \'DatiMacchine\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'refreshPeriod\' nella tabella \'DatiMacchine\' è DBNull.", e); } } set { @@ -14318,7 +14322,7 @@ namespace MapoDb { return ((bool)(this[this.tableDatiMacchine.simulazioneColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'simulazione\' in table \'DatiMacchine\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'simulazione\' nella tabella \'DatiMacchine\' è DBNull.", e); } } set { @@ -14334,7 +14338,7 @@ namespace MapoDb { return ((bool)(this[this.tableDatiMacchine.simplePalletColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'simplePallet\' in table \'DatiMacchine\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'simplePallet\' nella tabella \'DatiMacchine\' è DBNull.", e); } } set { @@ -14350,7 +14354,7 @@ namespace MapoDb { return ((bool)(this[this.tableDatiMacchine.insEnabledColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'insEnabled\' in table \'DatiMacchine\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'insEnabled\' nella tabella \'DatiMacchine\' è DBNull.", e); } } set { @@ -14377,7 +14381,7 @@ namespace MapoDb { return ((string)(this[this.tableDatiMacchine.CodArticolo_AColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'CodArticolo_A\' in table \'DatiMacchine\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'CodArticolo_A\' nella tabella \'DatiMacchine\' è DBNull.", e); } } set { @@ -14393,7 +14397,7 @@ namespace MapoDb { return ((string)(this[this.tableDatiMacchine.CodArticolo_BColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'CodArticolo_B\' in table \'DatiMacchine\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'CodArticolo_B\' nella tabella \'DatiMacchine\' è DBNull.", e); } } set { @@ -14564,7 +14568,8 @@ namespace MapoDb { return ((global::System.DateTime)(this[this.tableMicroStatoMacchina.InizioStatoColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'InizioStato\' in table \'MicroStatoMacchina\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'InizioStato\' nella tabella \'MicroStatoMacchina\' è DBNull" + + ".", e); } } set { @@ -14580,7 +14585,7 @@ namespace MapoDb { return ((string)(this[this.tableMicroStatoMacchina.ValueColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'Value\' in table \'MicroStatoMacchina\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'Value\' nella tabella \'MicroStatoMacchina\' è DBNull.", e); } } set { @@ -14646,7 +14651,7 @@ namespace MapoDb { return ((string)(this[this.tableLinkMenuJQM.TipoLinkColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'TipoLink\' in table \'LinkMenuJQM\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'TipoLink\' nella tabella \'LinkMenuJQM\' è DBNull.", e); } } set { @@ -14662,7 +14667,7 @@ namespace MapoDb { return ((int)(this[this.tableLinkMenuJQM.ordineColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'ordine\' in table \'LinkMenuJQM\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'ordine\' nella tabella \'LinkMenuJQM\' è DBNull.", e); } } set { @@ -14678,7 +14683,7 @@ namespace MapoDb { return ((string)(this[this.tableLinkMenuJQM.TestoColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'Testo\' in table \'LinkMenuJQM\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'Testo\' nella tabella \'LinkMenuJQM\' è DBNull.", e); } } set { @@ -14694,7 +14699,7 @@ namespace MapoDb { return ((string)(this[this.tableLinkMenuJQM.NavigateUrlColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'NavigateUrl\' in table \'LinkMenuJQM\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'NavigateUrl\' nella tabella \'LinkMenuJQM\' è DBNull.", e); } } set { @@ -14710,7 +14715,7 @@ namespace MapoDb { return ((string)(this[this.tableLinkMenuJQM.iconaColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'icona\' in table \'LinkMenuJQM\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'icona\' nella tabella \'LinkMenuJQM\' è DBNull.", e); } } set { @@ -14823,7 +14828,7 @@ namespace MapoDb { return ((string)(this[this.tableRemoteRebootLog.IPv4Column])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'IPv4\' in table \'RemoteRebootLog\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'IPv4\' nella tabella \'RemoteRebootLog\' è DBNull.", e); } } set { @@ -14839,7 +14844,7 @@ namespace MapoDb { return ((string)(this[this.tableRemoteRebootLog.AgentColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'Agent\' in table \'RemoteRebootLog\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'Agent\' nella tabella \'RemoteRebootLog\' è DBNull.", e); } } set { @@ -14855,7 +14860,7 @@ namespace MapoDb { return ((global::System.DateTime)(this[this.tableRemoteRebootLog.DataOraBootColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'DataOraBoot\' in table \'RemoteRebootLog\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'DataOraBoot\' nella tabella \'RemoteRebootLog\' è DBNull.", e); } } set { @@ -14933,7 +14938,7 @@ namespace MapoDb { return ((string)(this[this.tableParetoDurate.IdxMacchinaColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'IdxMacchina\' in table \'ParetoDurate\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'IdxMacchina\' nella tabella \'ParetoDurate\' è DBNull.", e); } } set { @@ -14949,7 +14954,7 @@ namespace MapoDb { return ((global::System.DateTime)(this[this.tableParetoDurate.InizioStatoColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'InizioStato\' in table \'ParetoDurate\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'InizioStato\' nella tabella \'ParetoDurate\' è DBNull.", e); } } set { @@ -14965,7 +14970,7 @@ namespace MapoDb { return ((global::System.DateTime)(this[this.tableParetoDurate.FineStatoColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'FineStato\' in table \'ParetoDurate\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'FineStato\' nella tabella \'ParetoDurate\' è DBNull.", e); } } set { @@ -14992,7 +14997,7 @@ namespace MapoDb { return ((int)(this[this.tableParetoDurate.DurataMinutiColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'DurataMinuti\' in table \'ParetoDurate\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'DurataMinuti\' nella tabella \'ParetoDurate\' è DBNull.", e); } } set { @@ -15115,7 +15120,7 @@ namespace MapoDb { return ((global::System.DateTime)(this[this.tableSignalLog.dtEveColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'dtEve\' in table \'SignalLog\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'dtEve\' nella tabella \'SignalLog\' è DBNull.", e); } } set { @@ -15213,7 +15218,7 @@ namespace MapoDb { return ((bool)(this[this.tableAnagArticoli.FlagIsNewColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'FlagIsNew\' in table \'AnagArticoli\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'FlagIsNew\' nella tabella \'AnagArticoli\' è DBNull.", e); } } set { @@ -15289,7 +15294,7 @@ namespace MapoDb { return ((string)(this[this.tableMSFD.codmacchinaColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'codmacchina\' in table \'MSFD\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'codmacchina\' nella tabella \'MSFD\' è DBNull.", e); } } set { @@ -15305,7 +15310,7 @@ namespace MapoDb { return ((bool)(this[this.tableMSFD.palletChangeColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'palletChange\' in table \'MSFD\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'palletChange\' nella tabella \'MSFD\' è DBNull.", e); } } set { @@ -15321,7 +15326,7 @@ namespace MapoDb { return ((string)(this[this.tableMSFD.CodArticolo_AColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'CodArticolo_A\' in table \'MSFD\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'CodArticolo_A\' nella tabella \'MSFD\' è DBNull.", e); } } set { @@ -15337,7 +15342,7 @@ namespace MapoDb { return ((string)(this[this.tableMSFD.CodArticolo_BColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'CodArticolo_B\' in table \'MSFD\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'CodArticolo_B\' nella tabella \'MSFD\' è DBNull.", e); } } set { @@ -15353,7 +15358,7 @@ namespace MapoDb { return ((bool)(this[this.tableMSFD.simplePalletColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'simplePallet\' in table \'MSFD\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'simplePallet\' nella tabella \'MSFD\' è DBNull.", e); } } set { @@ -15369,7 +15374,7 @@ namespace MapoDb { return ((bool)(this[this.tableMSFD.insEnabledColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'insEnabled\' in table \'MSFD\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'insEnabled\' nella tabella \'MSFD\' è DBNull.", e); } } set { @@ -15385,7 +15390,7 @@ namespace MapoDb { return ((bool)(this[this.tableMSFD.sLogEnabledColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'sLogEnabled\' in table \'MSFD\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'sLogEnabled\' nella tabella \'MSFD\' è DBNull.", e); } } set { @@ -15401,7 +15406,7 @@ namespace MapoDb { return ((int)(this[this.tableMSFD.IdxFamigliaIngressoColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'IdxFamigliaIngresso\' in table \'MSFD\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'IdxFamigliaIngresso\' nella tabella \'MSFD\' è DBNull.", e); } } set { @@ -15417,7 +15422,7 @@ namespace MapoDb { return ((int)(this[this.tableMSFD.MultiColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'Multi\' in table \'MSFD\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'Multi\' nella tabella \'MSFD\' è DBNull.", e); } } set { @@ -15433,7 +15438,7 @@ namespace MapoDb { return ((int)(this[this.tableMSFD.BitFiltColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'BitFilt\' in table \'MSFD\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'BitFilt\' nella tabella \'MSFD\' è DBNull.", e); } } set { @@ -15449,7 +15454,7 @@ namespace MapoDb { return ((int)(this[this.tableMSFD.MaxValColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'MaxVal\' in table \'MSFD\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'MaxVal\' nella tabella \'MSFD\' è DBNull.", e); } } set { @@ -15465,7 +15470,7 @@ namespace MapoDb { return ((int)(this[this.tableMSFD.BSRColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'BSR\' in table \'MSFD\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'BSR\' nella tabella \'MSFD\' è DBNull.", e); } } set { @@ -15481,7 +15486,7 @@ namespace MapoDb { return ((bool)(this[this.tableMSFD.ExplodeBitColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'ExplodeBit\' in table \'MSFD\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'ExplodeBit\' nella tabella \'MSFD\' è DBNull.", e); } } set { @@ -15497,7 +15502,7 @@ namespace MapoDb { return ((int)(this[this.tableMSFD.NumBitColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'NumBit\' in table \'MSFD\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'NumBit\' nella tabella \'MSFD\' è DBNull.", e); } } set { @@ -15513,7 +15518,7 @@ namespace MapoDb { return ((int)(this[this.tableMSFD.IdxMicroStatoColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'IdxMicroStato\' in table \'MSFD\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'IdxMicroStato\' nella tabella \'MSFD\' è DBNull.", e); } } set { @@ -15529,7 +15534,7 @@ namespace MapoDb { return ((int)(this[this.tableMSFD.IdxFamigliaColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'IdxFamiglia\' in table \'MSFD\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'IdxFamiglia\' nella tabella \'MSFD\' è DBNull.", e); } } set { @@ -15545,7 +15550,7 @@ namespace MapoDb { return ((int)(this[this.tableMSFD.IdxStatoColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'IdxStato\' in table \'MSFD\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'IdxStato\' nella tabella \'MSFD\' è DBNull.", e); } } set { @@ -15561,7 +15566,7 @@ namespace MapoDb { return ((string)(this[this.tableMSFD.lastValColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'lastVal\' in table \'MSFD\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'lastVal\' nella tabella \'MSFD\' è DBNull.", e); } } set { @@ -15577,7 +15582,7 @@ namespace MapoDb { return ((string)(this[this.tableMSFD.CodArticoloColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'CodArticolo\' in table \'MSFD\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'CodArticolo\' nella tabella \'MSFD\' è DBNull.", e); } } set { @@ -15593,7 +15598,7 @@ namespace MapoDb { return ((double)(this[this.tableMSFD.TempoCicloBaseColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'TempoCicloBase\' in table \'MSFD\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'TempoCicloBase\' nella tabella \'MSFD\' è DBNull.", e); } } set { @@ -15609,7 +15614,7 @@ namespace MapoDb { return ((int)(this[this.tableMSFD.PzPalletProdColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'PzPalletProd\' in table \'MSFD\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'PzPalletProd\' nella tabella \'MSFD\' è DBNull.", e); } } set { @@ -15625,7 +15630,7 @@ namespace MapoDb { return ((int)(this[this.tableMSFD.MatrOprColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'MatrOpr\' in table \'MSFD\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'MatrOpr\' nella tabella \'MSFD\' è DBNull.", e); } } set { @@ -15641,7 +15646,7 @@ namespace MapoDb { return ((string)(this[this.tableMSFD.palletColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'pallet\' in table \'MSFD\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'pallet\' nella tabella \'MSFD\' è DBNull.", e); } } set { @@ -15657,7 +15662,7 @@ namespace MapoDb { return ((string)(this[this.tableMSFD.CodMaccArticoloColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'CodMaccArticolo\' in table \'MSFD\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'CodMaccArticolo\' nella tabella \'MSFD\' è DBNull.", e); } } set { @@ -16267,7 +16272,7 @@ namespace MapoDb { return ((string)(this[this.tableDiarioDichiarazioni.CognNomeColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'CognNome\' in table \'DiarioDichiarazioni\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'CognNome\' nella tabella \'DiarioDichiarazioni\' è DBNull.", e); } } set { @@ -16283,7 +16288,7 @@ namespace MapoDb { return ((string)(this[this.tableDiarioDichiarazioni.CssClassColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'CssClass\' in table \'DiarioDichiarazioni\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'CssClass\' nella tabella \'DiarioDichiarazioni\' è DBNull.", e); } } set { @@ -16470,7 +16475,7 @@ namespace MapoDb { return ((int)(this[this.tableAlarmLog.ReqNotifyColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'ReqNotify\' in table \'AlarmLog\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'ReqNotify\' nella tabella \'AlarmLog\' è DBNull.", e); } } set { @@ -16486,7 +16491,7 @@ namespace MapoDb { return ((int)(this[this.tableAlarmLog.ReqAckColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'ReqAck\' in table \'AlarmLog\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'ReqAck\' nella tabella \'AlarmLog\' è DBNull.", e); } } set { @@ -27521,7 +27526,7 @@ SELECT idxReboot, IdxMacchina, IPv4, Agent, DataOraBoot, macAddr FROM RemoteRebo [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 = 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 dbo.RemoteRebootLog"; @@ -27538,6 +27543,12 @@ SELECT idxReboot, IdxMacchina, IPv4, Agent, DataOraBoot, macAddr FROM RemoteRebo 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_RRL_KeepLatest"; + 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("@num2keep", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -27832,6 +27843,34 @@ SELECT idxReboot, IdxMacchina, IPv4, Agent, DataOraBoot, macAddr FROM RemoteRebo public virtual int Update(string IdxMacchina, string IPv4, string Agent, global::System.Nullable DataOraBoot, string macAddr, int Original_idxReboot, string Original_IdxMacchina, string Original_IPv4, string Original_Agent, global::System.Nullable Original_DataOraBoot, string Original_macAddr) { return this.Update(IdxMacchina, IPv4, Agent, DataOraBoot, macAddr, Original_idxReboot, Original_IdxMacchina, Original_IPv4, Original_Agent, Original_DataOraBoot, Original_macAddr, Original_idxReboot); } + + [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 KeepLatest(global::System.Nullable num2keep) { + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[3]; + if ((num2keep.HasValue == true)) { + command.Parameters[1].Value = ((int)(num2keep.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; + } } /// diff --git a/MapoDb/DS_applicazione.xsd b/MapoDb/DS_applicazione.xsd index e78c8e9b..2902c889 100644 --- a/MapoDb/DS_applicazione.xsd +++ b/MapoDb/DS_applicazione.xsd @@ -2229,6 +2229,17 @@ SELECT idxReboot, IdxMacchina, IPv4, Agent, DataOraBoot, macAddr FROM RemoteRebo + + + + dbo.stp_RRL_KeepLatest + + + + + + + @@ -3033,7 +3044,7 @@ FROM v_AlarmLog - + DELETE FROM [dbo].[FluxLog] WHERE (([IdxMacchina] = @Original_IdxMacchina) AND ([dtEvento] = @Original_dtEvento) AND ([CodFlux] = @Original_CodFlux) AND ([Valore] = @Original_Valore) AND ([Cnt] = @Original_Cnt)) @@ -3091,7 +3102,7 @@ SELECT IdxMacchina, dtEvento, CodFlux, Valore, Cnt FROM FluxLog WHERE (CodFlux = - + dbo.stp_getArtDecNum @@ -3986,17 +3997,17 @@ SELECT IdxMacchina, dtEvento, CodFlux, Valore, Cnt FROM FluxLog WHERE (CodFlux = - + - + - + @@ -4137,33 +4148,33 @@ SELECT IdxMacchina, dtEvento, CodFlux, Valore, Cnt FROM FluxLog WHERE (CodFlux = - + - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/MapoDb/DS_applicazione.xss b/MapoDb/DS_applicazione.xss index 856ee01b..22f53ab3 100644 --- a/MapoDb/DS_applicazione.xss +++ b/MapoDb/DS_applicazione.xss @@ -4,42 +4,42 @@ Changes to this file may cause incorrect behavior and will be lost if the code is regenerated. --> - + - - - - - + + + + + - + - - - - + + + + - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + - + 456 @@ -247,7 +247,7 @@ - + 1285 @@ -267,7 +267,7 @@ - + 933 @@ -331,7 +331,7 @@ - + 627 diff --git a/MapoDb/MapoDb.cs b/MapoDb/MapoDb.cs index 160cb690..4a24405b 100644 --- a/MapoDb/MapoDb.cs +++ b/MapoDb/MapoDb.cs @@ -46,7 +46,14 @@ namespace MapoDb public MapoDb() { AvviaTabAdapt(); + // aggiungo una copia dei valori config correnti... + DataLayer man = new DataLayer(); + listConfig = man.taConfig.GetData(); } + /// + /// Valori config da tabella corrente + /// + private DS_Utility.ConfigDataTable listConfig = new DS_Utility.ConfigDataTable(); #endregion Public Constructors @@ -658,7 +665,7 @@ namespace MapoDb } /// - /// Registra un evento di RemoteReboot sulla tabella + /// Registra un evento di RemoteReboot sulla tabella ed effettua pulizia dei duplicati /// /// /// @@ -667,6 +674,9 @@ namespace MapoDb public void scriviRemoteReboot(string IdxMacchina, string IPv4, string agent, string macAddr) { taRRL.Insert(IdxMacchina, IPv4, agent, DateTime.Now, macAddr); + // chiama stored x ripulire dati + int num2keep = 5; + taRRL.KeepLatest(num2keep); } ///