diff --git a/.vs/WebGIM.sqlite b/.vs/WebGIM.sqlite index c83d452..84ec203 100644 Binary files a/.vs/WebGIM.sqlite and b/.vs/WebGIM.sqlite differ diff --git a/GIM_dataLayer/DS_applicazione.xsd b/GIM_dataLayer/DS_applicazione.xsd index 8d347d3..e5515f0 100644 --- a/GIM_dataLayer/DS_applicazione.xsd +++ b/GIM_dataLayer/DS_applicazione.xsd @@ -695,6 +695,28 @@ ORDER BY numIntMtz DESC + + + + dbo.stp_insRichiestaRicambi + + + + + + + + + + + + + + + + + + @@ -2396,7 +2418,7 @@ FROM v_mtzProgExp - + @@ -2481,7 +2503,7 @@ FROM v_mtzProgExp - + @@ -2506,7 +2528,7 @@ FROM v_mtzProgExp - + @@ -2540,7 +2562,7 @@ FROM v_mtzProgExp - + @@ -2626,7 +2648,7 @@ FROM v_mtzProgExp - + @@ -2820,22 +2842,22 @@ FROM v_mtzProgExp - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/GIM_dataLayer/DS_applicazione.xss b/GIM_dataLayer/DS_applicazione.xss index 48588e9..fa1dd53 100644 --- a/GIM_dataLayer/DS_applicazione.xss +++ b/GIM_dataLayer/DS_applicazione.xss @@ -4,7 +4,7 @@ Changes to this file may cause incorrect behavior and will be lost if the code is regenerated. --> - + @@ -13,7 +13,7 @@ - + @@ -92,7 +92,7 @@ 579 - 780 + 826 579 diff --git a/GIM_dataLayer/DS_applicazione1.Designer.cs b/GIM_dataLayer/DS_applicazione1.Designer.cs index 495e426..5d5db6d 100644 --- a/GIM_dataLayer/DS_applicazione1.Designer.cs +++ b/GIM_dataLayer/DS_applicazione1.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. // //------------------------------------------------------------------------------ @@ -10327,7 +10327,7 @@ namespace GIM_dataLayer { return ((global::System.DateTime)(this[this.tableLogUpdateDb.DataColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'Data\' in table \'LogUpdateDb\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'Data\' nella tabella \'LogUpdateDb\' è DBNull.", e); } } set { @@ -10381,7 +10381,8 @@ namespace GIM_dataLayer { return ((string)(this[this.tableAnagAmbitoGuasto.descrAmbitoGuastoColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'descrAmbitoGuasto\' in table \'AnagAmbitoGuasto\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'descrAmbitoGuasto\' nella tabella \'AnagAmbitoGuasto\' è DB" + + "Null.", e); } } set { @@ -10446,7 +10447,7 @@ namespace GIM_dataLayer { return ((string)(this[this.tableAnagPriorita.descrPrioritaColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'descrPriorita\' in table \'AnagPriorita\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'descrPriorita\' nella tabella \'AnagPriorita\' è DBNull.", e); } } set { @@ -10462,7 +10463,7 @@ namespace GIM_dataLayer { return ((string)(this[this.tableAnagPriorita.stileColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'stile\' in table \'AnagPriorita\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'stile\' nella tabella \'AnagPriorita\' è DBNull.", e); } } set { @@ -10539,7 +10540,7 @@ namespace GIM_dataLayer { return ((string)(this[this.tableAnagImpianti.codImpiantoColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'codImpianto\' in table \'AnagImpianti\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'codImpianto\' nella tabella \'AnagImpianti\' è DBNull.", e); } } set { @@ -10555,7 +10556,7 @@ namespace GIM_dataLayer { return ((string)(this[this.tableAnagImpianti.nomeImpiantoColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'nomeImpianto\' in table \'AnagImpianti\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'nomeImpianto\' nella tabella \'AnagImpianti\' è DBNull.", e); } } set { @@ -10571,7 +10572,7 @@ namespace GIM_dataLayer { return ((string)(this[this.tableAnagImpianti.tipoImpiantoColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'tipoImpianto\' in table \'AnagImpianti\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'tipoImpianto\' nella tabella \'AnagImpianti\' è DBNull.", e); } } set { @@ -10587,7 +10588,7 @@ namespace GIM_dataLayer { return ((global::System.DateTime)(this[this.tableAnagImpianti.funzDalColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'funzDal\' in table \'AnagImpianti\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'funzDal\' nella tabella \'AnagImpianti\' è DBNull.", e); } } set { @@ -10603,7 +10604,7 @@ namespace GIM_dataLayer { return ((global::System.DateTime)(this[this.tableAnagImpianti.funzAlColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'funzAl\' in table \'AnagImpianti\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'funzAl\' nella tabella \'AnagImpianti\' è DBNull.", e); } } set { @@ -10738,7 +10739,7 @@ namespace GIM_dataLayer { return ((int)(this[this.tablev_macchine.idxImpiantoColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'idxImpianto\' in table \'v_macchine\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'idxImpianto\' nella tabella \'v_macchine\' è DBNull.", e); } } set { @@ -10754,7 +10755,7 @@ namespace GIM_dataLayer { return ((string)(this[this.tablev_macchine.codMacchinaColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'codMacchina\' in table \'v_macchine\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'codMacchina\' nella tabella \'v_macchine\' è DBNull.", e); } } set { @@ -10770,7 +10771,7 @@ namespace GIM_dataLayer { return ((string)(this[this.tablev_macchine.nomeMacchinaColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'nomeMacchina\' in table \'v_macchine\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'nomeMacchina\' nella tabella \'v_macchine\' è DBNull.", e); } } set { @@ -10786,7 +10787,7 @@ namespace GIM_dataLayer { return ((string)(this[this.tablev_macchine.modelloColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'modello\' in table \'v_macchine\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'modello\' nella tabella \'v_macchine\' è DBNull.", e); } } set { @@ -10802,7 +10803,7 @@ namespace GIM_dataLayer { return ((string)(this[this.tablev_macchine.matricolaColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'matricola\' in table \'v_macchine\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'matricola\' nella tabella \'v_macchine\' è DBNull.", e); } } set { @@ -10818,7 +10819,7 @@ namespace GIM_dataLayer { return ((int)(this[this.tablev_macchine.annoColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'anno\' in table \'v_macchine\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'anno\' nella tabella \'v_macchine\' è DBNull.", e); } } set { @@ -10834,7 +10835,7 @@ namespace GIM_dataLayer { return ((double)(this[this.tablev_macchine.kgPesoColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'kgPeso\' in table \'v_macchine\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'kgPeso\' nella tabella \'v_macchine\' è DBNull.", e); } } set { @@ -10850,7 +10851,7 @@ namespace GIM_dataLayer { return ((double)(this[this.tablev_macchine.kwConsumoColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'kwConsumo\' in table \'v_macchine\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'kwConsumo\' nella tabella \'v_macchine\' è DBNull.", e); } } set { @@ -10866,7 +10867,7 @@ namespace GIM_dataLayer { return ((global::System.DateTime)(this[this.tablev_macchine.funzDalColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'funzDal\' in table \'v_macchine\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'funzDal\' nella tabella \'v_macchine\' è DBNull.", e); } } set { @@ -10882,7 +10883,7 @@ namespace GIM_dataLayer { return ((global::System.DateTime)(this[this.tablev_macchine.funzAlColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'funzAl\' in table \'v_macchine\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'funzAl\' nella tabella \'v_macchine\' è DBNull.", e); } } set { @@ -10898,7 +10899,7 @@ namespace GIM_dataLayer { return ((string)(this[this.tablev_macchine.descrImpiantoColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'descrImpianto\' in table \'v_macchine\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'descrImpianto\' nella tabella \'v_macchine\' è DBNull.", e); } } set { @@ -11116,7 +11117,7 @@ namespace GIM_dataLayer { return ((string)(this[this.tablev_selFamMacc.famigliaColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'famiglia\' in table \'v_selFamMacc\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'famiglia\' nella tabella \'v_selFamMacc\' è DBNull.", e); } } set { @@ -11132,7 +11133,7 @@ namespace GIM_dataLayer { return ((string)(this[this.tablev_selFamMacc.macchinaColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'macchina\' in table \'v_selFamMacc\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'macchina\' nella tabella \'v_selFamMacc\' è DBNull.", e); } } set { @@ -11220,7 +11221,7 @@ namespace GIM_dataLayer { return ((string)(this[this.tableAnagFamMacchine.nomeFamMacchColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'nomeFamMacch\' in table \'AnagFamMacchine\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'nomeFamMacch\' nella tabella \'AnagFamMacchine\' è DBNull.", e); } } set { @@ -11439,7 +11440,7 @@ namespace GIM_dataLayer { return ((global::System.DateTime)(this[this.tablev_intervExp.presaInCaricoColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'presaInCarico\' in table \'v_intervExp\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'presaInCarico\' nella tabella \'v_intervExp\' è DBNull.", e); } } set { @@ -11455,7 +11456,7 @@ namespace GIM_dataLayer { return ((global::System.DateTime)(this[this.tablev_intervExp.inizioInterventoColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'inizioIntervento\' in table \'v_intervExp\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'inizioIntervento\' nella tabella \'v_intervExp\' è DBNull.", e); } } set { @@ -11471,7 +11472,7 @@ namespace GIM_dataLayer { return ((global::System.DateTime)(this[this.tablev_intervExp.fineInterventoColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'fineIntervento\' in table \'v_intervExp\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'fineIntervento\' nella tabella \'v_intervExp\' è DBNull.", e); } } set { @@ -11487,7 +11488,8 @@ namespace GIM_dataLayer { return ((string)(this[this.tablev_intervExp.descrizioneInterventoColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'descrizioneIntervento\' in table \'v_intervExp\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'descrizioneIntervento\' nella tabella \'v_intervExp\' è DBN" + + "ull.", e); } } set { @@ -11514,7 +11516,7 @@ namespace GIM_dataLayer { return ((int)(this[this.tablev_intervExp.idxCausaleColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'idxCausale\' in table \'v_intervExp\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'idxCausale\' nella tabella \'v_intervExp\' è DBNull.", e); } } set { @@ -11530,7 +11532,8 @@ namespace GIM_dataLayer { return ((string)(this[this.tablev_intervExp.descrAmbitoGuastoColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'descrAmbitoGuasto\' in table \'v_intervExp\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'descrAmbitoGuasto\' nella tabella \'v_intervExp\' è DBNull." + + "", e); } } set { @@ -11546,7 +11549,7 @@ namespace GIM_dataLayer { return ((string)(this[this.tablev_intervExp.descrPrioritaColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'descrPriorita\' in table \'v_intervExp\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'descrPriorita\' nella tabella \'v_intervExp\' è DBNull.", e); } } set { @@ -11562,7 +11565,7 @@ namespace GIM_dataLayer { return ((string)(this[this.tablev_intervExp.descrTipoColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'descrTipo\' in table \'v_intervExp\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'descrTipo\' nella tabella \'v_intervExp\' è DBNull.", e); } } set { @@ -11578,7 +11581,7 @@ namespace GIM_dataLayer { return ((string)(this[this.tablev_intervExp.codImpiantoColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'codImpianto\' in table \'v_intervExp\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'codImpianto\' nella tabella \'v_intervExp\' è DBNull.", e); } } set { @@ -11594,7 +11597,7 @@ namespace GIM_dataLayer { return ((string)(this[this.tablev_intervExp.nomeImpiantoColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'nomeImpianto\' in table \'v_intervExp\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'nomeImpianto\' nella tabella \'v_intervExp\' è DBNull.", e); } } set { @@ -11610,7 +11613,7 @@ namespace GIM_dataLayer { return ((string)(this[this.tablev_intervExp.codMacchinaColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'codMacchina\' in table \'v_intervExp\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'codMacchina\' nella tabella \'v_intervExp\' è DBNull.", e); } } set { @@ -11626,7 +11629,7 @@ namespace GIM_dataLayer { return ((string)(this[this.tablev_intervExp.nomeMacchinaColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'nomeMacchina\' in table \'v_intervExp\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'nomeMacchina\' nella tabella \'v_intervExp\' è DBNull.", e); } } set { @@ -11642,7 +11645,7 @@ namespace GIM_dataLayer { return ((string)(this[this.tablev_intervExp.DescrStatoColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'DescrStato\' in table \'v_intervExp\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'DescrStato\' nella tabella \'v_intervExp\' è DBNull.", e); } } set { @@ -11658,7 +11661,7 @@ namespace GIM_dataLayer { return ((string)(this[this.tablev_intervExp.descrCausaleColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'descrCausale\' in table \'v_intervExp\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'descrCausale\' nella tabella \'v_intervExp\' è DBNull.", e); } } set { @@ -11674,7 +11677,7 @@ namespace GIM_dataLayer { return ((string)(this[this.tablev_intervExp.isFermoSiNoColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'isFermoSiNo\' in table \'v_intervExp\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'isFermoSiNo\' nella tabella \'v_intervExp\' è DBNull.", e); } } set { @@ -11690,7 +11693,7 @@ namespace GIM_dataLayer { return ((bool)(this[this.tablev_intervExp.scheduledColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'scheduled\' in table \'v_intervExp\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'scheduled\' nella tabella \'v_intervExp\' è DBNull.", e); } } set { @@ -12001,7 +12004,7 @@ namespace GIM_dataLayer { return ((string)(this[this.tableAnagTipoGuasto.descrTipoColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'descrTipo\' in table \'AnagTipoGuasto\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'descrTipo\' nella tabella \'AnagTipoGuasto\' è DBNull.", e); } } set { @@ -12066,7 +12069,7 @@ namespace GIM_dataLayer { return ((string)(this[this.tableAnagStati.DescrStatoColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'DescrStato\' in table \'AnagStati\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'DescrStato\' nella tabella \'AnagStati\' è DBNull.", e); } } set { @@ -12082,7 +12085,7 @@ namespace GIM_dataLayer { return ((string)(this[this.tableAnagStati.stileColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'stile\' in table \'AnagStati\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'stile\' nella tabella \'AnagStati\' è DBNull.", e); } } set { @@ -12170,7 +12173,7 @@ namespace GIM_dataLayer { return ((int)(this[this.tableInterventoOpMtz.durataMinutiColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'durataMinuti\' in table \'InterventoOpMtz\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'durataMinuti\' nella tabella \'InterventoOpMtz\' è DBNull.", e); } } set { @@ -12257,7 +12260,7 @@ namespace GIM_dataLayer { return ((int)(this[this.tableMtzProgPending.idxMacchinaColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'idxMacchina\' in table \'MtzProgPending\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'idxMacchina\' nella tabella \'MtzProgPending\' è DBNull.", e); } } set { @@ -12273,7 +12276,7 @@ namespace GIM_dataLayer { return ((global::System.DateTime)(this[this.tableMtzProgPending.dataColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'data\' in table \'MtzProgPending\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'data\' nella tabella \'MtzProgPending\' è DBNull.", e); } } set { @@ -12289,7 +12292,7 @@ namespace GIM_dataLayer { return ((string)(this[this.tableMtzProgPending.descrizioneColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'descrizione\' in table \'MtzProgPending\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'descrizione\' nella tabella \'MtzProgPending\' è DBNull.", e); } } set { @@ -12305,7 +12308,7 @@ namespace GIM_dataLayer { return ((int)(this[this.tableMtzProgPending.idxPrioritaColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'idxPriorita\' in table \'MtzProgPending\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'idxPriorita\' nella tabella \'MtzProgPending\' è DBNull.", e); } } set { @@ -12321,7 +12324,7 @@ namespace GIM_dataLayer { return ((bool)(this[this.tableMtzProgPending.isFermoColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'isFermo\' in table \'MtzProgPending\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'isFermo\' nella tabella \'MtzProgPending\' è DBNull.", e); } } set { @@ -12337,7 +12340,7 @@ namespace GIM_dataLayer { return ((int)(this[this.tableMtzProgPending.idxTipoColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'idxTipo\' in table \'MtzProgPending\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'idxTipo\' nella tabella \'MtzProgPending\' è DBNull.", e); } } set { @@ -12473,7 +12476,7 @@ namespace GIM_dataLayer { return ((int)(this[this.tableMtzProgrammata.idxMacchinaColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'idxMacchina\' in table \'MtzProgrammata\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'idxMacchina\' nella tabella \'MtzProgrammata\' è DBNull.", e); } } set { @@ -12489,7 +12492,7 @@ namespace GIM_dataLayer { return ((global::System.DateTime)(this[this.tableMtzProgrammata.inizioColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'inizio\' in table \'MtzProgrammata\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'inizio\' nella tabella \'MtzProgrammata\' è DBNull.", e); } } set { @@ -12505,7 +12508,7 @@ namespace GIM_dataLayer { return ((string)(this[this.tableMtzProgrammata.codFrequenzaColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'codFrequenza\' in table \'MtzProgrammata\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'codFrequenza\' nella tabella \'MtzProgrammata\' è DBNull.", e); } } set { @@ -12521,7 +12524,7 @@ namespace GIM_dataLayer { return ((int)(this[this.tableMtzProgrammata.cadenzaColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'cadenza\' in table \'MtzProgrammata\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'cadenza\' nella tabella \'MtzProgrammata\' è DBNull.", e); } } set { @@ -12537,7 +12540,7 @@ namespace GIM_dataLayer { return ((string)(this[this.tableMtzProgrammata.descrizioneColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'descrizione\' in table \'MtzProgrammata\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'descrizione\' nella tabella \'MtzProgrammata\' è DBNull.", e); } } set { @@ -12553,7 +12556,7 @@ namespace GIM_dataLayer { return ((int)(this[this.tableMtzProgrammata.idxPrioritaColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'idxPriorita\' in table \'MtzProgrammata\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'idxPriorita\' nella tabella \'MtzProgrammata\' è DBNull.", e); } } set { @@ -12569,7 +12572,7 @@ namespace GIM_dataLayer { return ((bool)(this[this.tableMtzProgrammata.isFermoColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'isFermo\' in table \'MtzProgrammata\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'isFermo\' nella tabella \'MtzProgrammata\' è DBNull.", e); } } set { @@ -12585,7 +12588,7 @@ namespace GIM_dataLayer { return ((int)(this[this.tableMtzProgrammata.idxTipoColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'idxTipo\' in table \'MtzProgrammata\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'idxTipo\' nella tabella \'MtzProgrammata\' è DBNull.", e); } } set { @@ -12745,7 +12748,7 @@ namespace GIM_dataLayer { return ((string)(this[this.tableCalendFesteFerie.descrizioneColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'descrizione\' in table \'CalendFesteFerie\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'descrizione\' nella tabella \'CalendFesteFerie\' è DBNull.", e); } } set { @@ -12799,7 +12802,7 @@ namespace GIM_dataLayer { return ((string)(this[this.tableOreAperturaSett.descrGiornoColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'descrGiorno\' in table \'OreAperturaSett\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'descrGiorno\' nella tabella \'OreAperturaSett\' è DBNull.", e); } } set { @@ -12815,7 +12818,7 @@ namespace GIM_dataLayer { return ((decimal)(this[this.tableOreAperturaSett.aperturaColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'apertura\' in table \'OreAperturaSett\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'apertura\' nella tabella \'OreAperturaSett\' è DBNull.", e); } } set { @@ -13036,7 +13039,7 @@ namespace GIM_dataLayer { return ((string)(this[this.tableAnagCausali.descrCausaleColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'descrCausale\' in table \'AnagCausali\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'descrCausale\' nella tabella \'AnagCausali\' è DBNull.", e); } } set { @@ -13052,7 +13055,7 @@ namespace GIM_dataLayer { return ((bool)(this[this.tableAnagCausali.attivaColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'attiva\' in table \'AnagCausali\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'attiva\' nella tabella \'AnagCausali\' è DBNull.", e); } } set { @@ -13129,7 +13132,7 @@ namespace GIM_dataLayer { return ((string)(this[this.tableAnagrOperMtz.CognomeColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'Cognome\' in table \'AnagrOperMtz\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'Cognome\' nella tabella \'AnagrOperMtz\' è DBNull.", e); } } set { @@ -13145,7 +13148,7 @@ namespace GIM_dataLayer { return ((string)(this[this.tableAnagrOperMtz.NomeColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'Nome\' in table \'AnagrOperMtz\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'Nome\' nella tabella \'AnagrOperMtz\' è DBNull.", e); } } set { @@ -13222,7 +13225,7 @@ namespace GIM_dataLayer { return ((int)(this[this.tablev_mtzProgExp.idxMacchinaColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'idxMacchina\' in table \'v_mtzProgExp\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'idxMacchina\' nella tabella \'v_mtzProgExp\' è DBNull.", e); } } set { @@ -13238,7 +13241,7 @@ namespace GIM_dataLayer { return ((string)(this[this.tablev_mtzProgExp.codImpiantoColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'codImpianto\' in table \'v_mtzProgExp\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'codImpianto\' nella tabella \'v_mtzProgExp\' è DBNull.", e); } } set { @@ -13254,7 +13257,7 @@ namespace GIM_dataLayer { return ((string)(this[this.tablev_mtzProgExp.nomeImpiantoColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'nomeImpianto\' in table \'v_mtzProgExp\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'nomeImpianto\' nella tabella \'v_mtzProgExp\' è DBNull.", e); } } set { @@ -13270,7 +13273,7 @@ namespace GIM_dataLayer { return ((string)(this[this.tablev_mtzProgExp.codMacchinaColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'codMacchina\' in table \'v_mtzProgExp\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'codMacchina\' nella tabella \'v_mtzProgExp\' è DBNull.", e); } } set { @@ -13286,7 +13289,7 @@ namespace GIM_dataLayer { return ((string)(this[this.tablev_mtzProgExp.nomeMacchinaColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'nomeMacchina\' in table \'v_mtzProgExp\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'nomeMacchina\' nella tabella \'v_mtzProgExp\' è DBNull.", e); } } set { @@ -13302,7 +13305,7 @@ namespace GIM_dataLayer { return ((global::System.DateTime)(this[this.tablev_mtzProgExp.inizioColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'inizio\' in table \'v_mtzProgExp\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'inizio\' nella tabella \'v_mtzProgExp\' è DBNull.", e); } } set { @@ -13318,7 +13321,7 @@ namespace GIM_dataLayer { return ((string)(this[this.tablev_mtzProgExp.codFrequenzaColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'codFrequenza\' in table \'v_mtzProgExp\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'codFrequenza\' nella tabella \'v_mtzProgExp\' è DBNull.", e); } } set { @@ -13334,7 +13337,7 @@ namespace GIM_dataLayer { return ((string)(this[this.tablev_mtzProgExp.frequenzaColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'frequenza\' in table \'v_mtzProgExp\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'frequenza\' nella tabella \'v_mtzProgExp\' è DBNull.", e); } } set { @@ -13350,7 +13353,7 @@ namespace GIM_dataLayer { return ((int)(this[this.tablev_mtzProgExp.cadenzaColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'cadenza\' in table \'v_mtzProgExp\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'cadenza\' nella tabella \'v_mtzProgExp\' è DBNull.", e); } } set { @@ -13366,7 +13369,7 @@ namespace GIM_dataLayer { return ((string)(this[this.tablev_mtzProgExp.descrizioneColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'descrizione\' in table \'v_mtzProgExp\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'descrizione\' nella tabella \'v_mtzProgExp\' è DBNull.", e); } } set { @@ -13382,7 +13385,7 @@ namespace GIM_dataLayer { return ((int)(this[this.tablev_mtzProgExp.idxPrioritaColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'idxPriorita\' in table \'v_mtzProgExp\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'idxPriorita\' nella tabella \'v_mtzProgExp\' è DBNull.", e); } } set { @@ -13398,7 +13401,7 @@ namespace GIM_dataLayer { return ((string)(this[this.tablev_mtzProgExp.descrPrioritaColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'descrPriorita\' in table \'v_mtzProgExp\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'descrPriorita\' nella tabella \'v_mtzProgExp\' è DBNull.", e); } } set { @@ -13414,7 +13417,7 @@ namespace GIM_dataLayer { return ((bool)(this[this.tablev_mtzProgExp.isFermoColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'isFermo\' in table \'v_mtzProgExp\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'isFermo\' nella tabella \'v_mtzProgExp\' è DBNull.", e); } } set { @@ -13430,7 +13433,7 @@ namespace GIM_dataLayer { return ((int)(this[this.tablev_mtzProgExp.idxTipoColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'idxTipo\' in table \'v_mtzProgExp\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'idxTipo\' nella tabella \'v_mtzProgExp\' è DBNull.", e); } } set { @@ -13446,7 +13449,7 @@ namespace GIM_dataLayer { return ((string)(this[this.tablev_mtzProgExp.descrTipoColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'descrTipo\' in table \'v_mtzProgExp\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'descrTipo\' nella tabella \'v_mtzProgExp\' è DBNull.", e); } } set { @@ -13484,7 +13487,7 @@ namespace GIM_dataLayer { return ((string)(this[this.tablev_mtzProgExp.descrCausaleColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'descrCausale\' in table \'v_mtzProgExp\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'descrCausale\' nella tabella \'v_mtzProgExp\' è DBNull.", e); } } set { @@ -13762,7 +13765,7 @@ namespace GIM_dataLayer { return ((decimal)(this[this.tableImpiegoRisorse.TotImportColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'TotImport\' in table \'ImpiegoRisorse\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'TotImport\' nella tabella \'ImpiegoRisorse\' è DBNull.", e); } } set { @@ -13919,7 +13922,7 @@ namespace GIM_dataLayer { return ((global::System.DateTime)(this[this.tablev_allData.dataLavColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'dataLav\' in table \'v_allData\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'dataLav\' nella tabella \'v_allData\' è DBNull.", e); } } set { @@ -13968,7 +13971,7 @@ namespace GIM_dataLayer { return ((string)(this[this.tablev_allData.codImpiantoColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'codImpianto\' in table \'v_allData\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'codImpianto\' nella tabella \'v_allData\' è DBNull.", e); } } set { @@ -13984,7 +13987,7 @@ namespace GIM_dataLayer { return ((string)(this[this.tablev_allData.nomeImpiantoColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'nomeImpianto\' in table \'v_allData\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'nomeImpianto\' nella tabella \'v_allData\' è DBNull.", e); } } set { @@ -14000,7 +14003,7 @@ namespace GIM_dataLayer { return ((string)(this[this.tablev_allData.codMacchinaColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'codMacchina\' in table \'v_allData\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'codMacchina\' nella tabella \'v_allData\' è DBNull.", e); } } set { @@ -14016,7 +14019,7 @@ namespace GIM_dataLayer { return ((string)(this[this.tablev_allData.nomeMacchinaColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'nomeMacchina\' in table \'v_allData\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'nomeMacchina\' nella tabella \'v_allData\' è DBNull.", e); } } set { @@ -14043,7 +14046,7 @@ namespace GIM_dataLayer { return ((global::System.DateTime)(this[this.tablev_allData.inizioInterventoColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'inizioIntervento\' in table \'v_allData\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'inizioIntervento\' nella tabella \'v_allData\' è DBNull.", e); } } set { @@ -14059,7 +14062,7 @@ namespace GIM_dataLayer { return ((global::System.DateTime)(this[this.tablev_allData.fineInterventoColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'fineIntervento\' in table \'v_allData\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'fineIntervento\' nella tabella \'v_allData\' è DBNull.", e); } } set { @@ -14075,7 +14078,8 @@ namespace GIM_dataLayer { return ((string)(this[this.tablev_allData.descrizioneInterventoColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'descrizioneIntervento\' in table \'v_allData\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'descrizioneIntervento\' nella tabella \'v_allData\' è DBNul" + + "l.", e); } } set { @@ -14091,7 +14095,7 @@ namespace GIM_dataLayer { return ((string)(this[this.tablev_allData.descrCausaleColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'descrCausale\' in table \'v_allData\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'descrCausale\' nella tabella \'v_allData\' è DBNull.", e); } } set { @@ -14107,7 +14111,7 @@ namespace GIM_dataLayer { return ((double)(this[this.tablev_allData.minErogatiColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'minErogati\' in table \'v_allData\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'minErogati\' nella tabella \'v_allData\' è DBNull.", e); } } set { @@ -14123,7 +14127,7 @@ namespace GIM_dataLayer { return ((decimal)(this[this.tablev_allData.ImportoTotColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'ImportoTot\' in table \'v_allData\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'ImportoTot\' nella tabella \'v_allData\' è DBNull.", e); } } set { @@ -14139,7 +14143,7 @@ namespace GIM_dataLayer { return ((double)(this[this.tablev_allData.durataMtzColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'durataMtz\' in table \'v_allData\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'durataMtz\' nella tabella \'v_allData\' è DBNull.", e); } } set { @@ -14155,7 +14159,7 @@ namespace GIM_dataLayer { return ((double)(this[this.tablev_allData.durataOffColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'durataOff\' in table \'v_allData\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'durataOff\' nella tabella \'v_allData\' è DBNull.", e); } } set { @@ -14226,7 +14230,7 @@ namespace GIM_dataLayer { return ((bool)(this[this.tablev_allData.scheduledColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'scheduled\' in table \'v_allData\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'scheduled\' nella tabella \'v_allData\' è DBNull.", e); } } set { @@ -14242,7 +14246,7 @@ namespace GIM_dataLayer { return ((string)(this[this.tablev_allData.AmbitoGuastoColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'AmbitoGuasto\' in table \'v_allData\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'AmbitoGuasto\' nella tabella \'v_allData\' è DBNull.", e); } } set { @@ -14464,7 +14468,7 @@ namespace GIM_dataLayer { return ((string)(this[this.tableElencoIntervExt.codImpiantoColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'codImpianto\' in table \'ElencoIntervExt\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'codImpianto\' nella tabella \'ElencoIntervExt\' è DBNull.", e); } } set { @@ -14480,7 +14484,7 @@ namespace GIM_dataLayer { return ((string)(this[this.tableElencoIntervExt.codMacchinaColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'codMacchina\' in table \'ElencoIntervExt\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'codMacchina\' nella tabella \'ElencoIntervExt\' è DBNull.", e); } } set { @@ -14496,7 +14500,7 @@ namespace GIM_dataLayer { return ((string)(this[this.tableElencoIntervExt.descrCausaleColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'descrCausale\' in table \'ElencoIntervExt\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'descrCausale\' nella tabella \'ElencoIntervExt\' è DBNull.", e); } } set { @@ -14523,8 +14527,8 @@ namespace GIM_dataLayer { return ((string)(this[this.tableElencoIntervExt.descrizioneInterventoColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'descrizioneIntervento\' in table \'ElencoIntervExt\' is DBNull" + - ".", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'descrizioneIntervento\' nella tabella \'ElencoIntervExt\' è" + + " DBNull.", e); } } set { @@ -14540,7 +14544,7 @@ namespace GIM_dataLayer { return ((double)(this[this.tableElencoIntervExt.durataMtzColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'durataMtz\' in table \'ElencoIntervExt\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'durataMtz\' nella tabella \'ElencoIntervExt\' è DBNull.", e); } } set { @@ -14556,7 +14560,7 @@ namespace GIM_dataLayer { return ((double)(this[this.tableElencoIntervExt.durataOffColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'durataOff\' in table \'ElencoIntervExt\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'durataOff\' nella tabella \'ElencoIntervExt\' è DBNull.", e); } } set { @@ -14572,7 +14576,8 @@ namespace GIM_dataLayer { return ((global::System.DateTime)(this[this.tableElencoIntervExt.fineInterventoColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'fineIntervento\' in table \'ElencoIntervExt\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'fineIntervento\' nella tabella \'ElencoIntervExt\' è DBNull" + + ".", e); } } set { @@ -14632,7 +14637,8 @@ namespace GIM_dataLayer { return ((global::System.DateTime)(this[this.tableElencoIntervExt.inizioInterventoColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'inizioIntervento\' in table \'ElencoIntervExt\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'inizioIntervento\' nella tabella \'ElencoIntervExt\' è DBNu" + + "ll.", e); } } set { @@ -14648,7 +14654,7 @@ namespace GIM_dataLayer { return ((double)(this[this.tableElencoIntervExt.minErogatiColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'minErogati\' in table \'ElencoIntervExt\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'minErogati\' nella tabella \'ElencoIntervExt\' è DBNull.", e); } } set { @@ -14664,7 +14670,7 @@ namespace GIM_dataLayer { return ((string)(this[this.tableElencoIntervExt.nomeImpiantoColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'nomeImpianto\' in table \'ElencoIntervExt\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'nomeImpianto\' nella tabella \'ElencoIntervExt\' è DBNull.", e); } } set { @@ -14680,7 +14686,7 @@ namespace GIM_dataLayer { return ((string)(this[this.tableElencoIntervExt.nomeMacchinaColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'nomeMacchina\' in table \'ElencoIntervExt\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'nomeMacchina\' nella tabella \'ElencoIntervExt\' è DBNull.", e); } } set { @@ -14729,7 +14735,7 @@ namespace GIM_dataLayer { return ((bool)(this[this.tableElencoIntervExt.scheduledColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'scheduled\' in table \'ElencoIntervExt\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'scheduled\' nella tabella \'ElencoIntervExt\' è DBNull.", e); } } set { @@ -14745,7 +14751,7 @@ namespace GIM_dataLayer { return ((decimal)(this[this.tableElencoIntervExt.totImpMatColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'totImpMat\' in table \'ElencoIntervExt\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'totImpMat\' nella tabella \'ElencoIntervExt\' è DBNull.", e); } } set { @@ -14761,7 +14767,7 @@ namespace GIM_dataLayer { return ((decimal)(this[this.tableElencoIntervExt.totQtaHRColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'totQtaHR\' in table \'ElencoIntervExt\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'totQtaHR\' nella tabella \'ElencoIntervExt\' è DBNull.", e); } } set { @@ -14777,7 +14783,8 @@ namespace GIM_dataLayer { return ((string)(this[this.tableElencoIntervExt.descrAmbitoGuastoColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'descrAmbitoGuasto\' in table \'ElencoIntervExt\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'descrAmbitoGuasto\' nella tabella \'ElencoIntervExt\' è DBN" + + "ull.", e); } } set { @@ -14793,7 +14800,7 @@ namespace GIM_dataLayer { return ((string)(this[this.tableElencoIntervExt.isExtColumn])); } catch (global::System.InvalidCastException e) { - throw new global::System.Data.StrongTypingException("The value for column \'isExt\' in table \'ElencoIntervExt\' is DBNull.", e); + throw new global::System.Data.StrongTypingException("Il valore della colonna \'isExt\' nella tabella \'ElencoIntervExt\' è DBNull.", e); } } set { @@ -18566,7 +18573,7 @@ namespace GIM_dataLayer.DS_applicazioneTableAdapters { [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] private void InitCommandCollection() { - this._commandCollection = new global::System.Data.SqlClient.SqlCommand[12]; + this._commandCollection = new global::System.Data.SqlClient.SqlCommand[13]; this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand(); this._commandCollection[0].Connection = this.Connection; this._commandCollection[0].CommandText = "SELECT *\r\nFROM v_intervExp\r\nORDER BY numIntMtz DESC"; @@ -18639,22 +18646,24 @@ namespace GIM_dataLayer.DS_applicazioneTableAdapters { this._commandCollection[8].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxStatoNew", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.InputOutput, 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_IntMtz_update"; + this._commandCollection[9].CommandText = "dbo.stp_insRichiestaRicambi"; 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_numIntMtz", 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("@idxStato", 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("@inizioIntervento", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[9].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@fineIntervento", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[9].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@isPreventivabile", 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("@descrizioneIntervento", global::System.Data.SqlDbType.NVarChar, 2500, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[9].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@richiesta", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[9].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@turnoLav", 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("@matr", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[9].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxPriorita", 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("@isFermo", 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("@isExt", 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("@idxAmbito", 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("@idxTipo", 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("@idxImpianto", 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.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("@descrizione", global::System.Data.SqlDbType.VarChar, 2500, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[9].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxCausale", 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("@scheduled", 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("@numIntMtz", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.InputOutput, 10, 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_IntMtz_updateFull"; + this._commandCollection[10].CommandText = "dbo.stp_IntMtz_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_numIntMtz", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); @@ -18663,25 +18672,40 @@ namespace GIM_dataLayer.DS_applicazioneTableAdapters { this._commandCollection[10].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@fineIntervento", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[10].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@isPreventivabile", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[10].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@descrizioneIntervento", global::System.Data.SqlDbType.NVarChar, 2500, 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("@matr", 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("@guasto", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[10].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@isFermo", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[10].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@isExt", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[10].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxImpianto", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 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.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[10].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxAmbito", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[10].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxPriorita", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[10].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@descrizione", global::System.Data.SqlDbType.NVarChar, 2500, 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("@idxTipo", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); this._commandCollection[10].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxCausale", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); - this._commandCollection[10].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@presaInCarico", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, 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_IntMtz_updateStato"; + this._commandCollection[11].CommandText = "dbo.stp_IntMtz_updateFull"; 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("@Original_numIntMtz", 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("@idxStato", 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("@inizioIntervento", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[11].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@fineIntervento", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[11].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@isPreventivabile", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[11].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@descrizioneIntervento", global::System.Data.SqlDbType.NVarChar, 2500, 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("@matr", 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("@guasto", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[11].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@isFermo", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[11].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@isExt", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[11].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxImpianto", 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("@idxMacchina", 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("@idxAmbito", 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("@idxPriorita", 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("@descrizione", global::System.Data.SqlDbType.NVarChar, 2500, 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("@idxTipo", 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("@idxCausale", 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("@presaInCarico", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, 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_IntMtz_updateStato"; + 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("@Original_numIntMtz", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", "")); + this._commandCollection[12].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxStato", 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()] @@ -19003,8 +19027,115 @@ namespace GIM_dataLayer.DS_applicazioneTableAdapters { [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] - public virtual int updateIntervento(global::System.Nullable Original_numIntMtz, global::System.Nullable idxStato, global::System.Nullable inizioIntervento, global::System.Nullable fineIntervento, global::System.Nullable isPreventivabile, string descrizioneIntervento, global::System.Nullable isFermo, global::System.Nullable isExt, global::System.Nullable idxAmbito, global::System.Nullable idxCausale) { + public virtual object stp_insRichiestaRicambi(global::System.Nullable richiesta, global::System.Nullable turnoLav, string matr, global::System.Nullable idxPriorita, global::System.Nullable isFermo, global::System.Nullable idxTipo, global::System.Nullable idxImpianto, global::System.Nullable idxMacchina, string descrizione, global::System.Nullable idxCausale, global::System.Nullable scheduled, ref global::System.Nullable numIntMtz) { global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[9]; + if ((richiesta.HasValue == true)) { + command.Parameters[1].Value = ((System.DateTime)(richiesta.Value)); + } + else { + command.Parameters[1].Value = global::System.DBNull.Value; + } + if ((turnoLav.HasValue == true)) { + command.Parameters[2].Value = ((int)(turnoLav.Value)); + } + else { + command.Parameters[2].Value = global::System.DBNull.Value; + } + if ((matr == null)) { + command.Parameters[3].Value = global::System.DBNull.Value; + } + else { + command.Parameters[3].Value = ((string)(matr)); + } + if ((idxPriorita.HasValue == true)) { + command.Parameters[4].Value = ((int)(idxPriorita.Value)); + } + else { + command.Parameters[4].Value = global::System.DBNull.Value; + } + if ((isFermo.HasValue == true)) { + command.Parameters[5].Value = ((bool)(isFermo.Value)); + } + else { + command.Parameters[5].Value = global::System.DBNull.Value; + } + if ((idxTipo.HasValue == true)) { + command.Parameters[6].Value = ((int)(idxTipo.Value)); + } + else { + command.Parameters[6].Value = global::System.DBNull.Value; + } + if ((idxImpianto.HasValue == true)) { + command.Parameters[7].Value = ((int)(idxImpianto.Value)); + } + else { + command.Parameters[7].Value = global::System.DBNull.Value; + } + if ((idxMacchina.HasValue == true)) { + command.Parameters[8].Value = ((int)(idxMacchina.Value)); + } + else { + command.Parameters[8].Value = global::System.DBNull.Value; + } + if ((descrizione == null)) { + command.Parameters[9].Value = global::System.DBNull.Value; + } + else { + command.Parameters[9].Value = ((string)(descrizione)); + } + if ((idxCausale.HasValue == true)) { + command.Parameters[10].Value = ((int)(idxCausale.Value)); + } + else { + command.Parameters[10].Value = global::System.DBNull.Value; + } + if ((scheduled.HasValue == true)) { + command.Parameters[11].Value = ((bool)(scheduled.Value)); + } + else { + command.Parameters[11].Value = global::System.DBNull.Value; + } + if ((numIntMtz.HasValue == true)) { + command.Parameters[12].Value = ((int)(numIntMtz.Value)); + } + else { + command.Parameters[12].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(); + } + object returnValue; + try { + returnValue = command.ExecuteScalar(); + } + finally { + if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) { + command.Connection.Close(); + } + } + if (((command.Parameters[12].Value == null) + || (command.Parameters[12].Value.GetType() == typeof(global::System.DBNull)))) { + numIntMtz = new global::System.Nullable(); + } + else { + numIntMtz = new global::System.Nullable(((int)(command.Parameters[12].Value))); + } + if (((returnValue == null) + || (returnValue.GetType() == typeof(global::System.DBNull)))) { + return null; + } + else { + return ((object)(returnValue)); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] + public virtual int updateIntervento(global::System.Nullable Original_numIntMtz, global::System.Nullable idxStato, global::System.Nullable inizioIntervento, global::System.Nullable fineIntervento, global::System.Nullable isPreventivabile, string descrizioneIntervento, global::System.Nullable isFermo, global::System.Nullable isExt, global::System.Nullable idxAmbito, global::System.Nullable idxCausale) { + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[10]; if ((Original_numIntMtz.HasValue == true)) { command.Parameters[1].Value = ((int)(Original_numIntMtz.Value)); } @@ -19104,7 +19235,7 @@ namespace GIM_dataLayer.DS_applicazioneTableAdapters { global::System.Nullable idxTipo, global::System.Nullable idxCausale, global::System.Nullable presaInCarico) { - global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[10]; + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[11]; if ((Original_numIntMtz.HasValue == true)) { command.Parameters[1].Value = ((int)(Original_numIntMtz.Value)); } @@ -19234,7 +19365,7 @@ namespace GIM_dataLayer.DS_applicazioneTableAdapters { [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] public virtual int updateStato(global::System.Nullable Original_numIntMtz, global::System.Nullable idxStato) { - global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[11]; + global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[12]; if ((Original_numIntMtz.HasValue == true)) { command.Parameters[1].Value = ((int)(Original_numIntMtz.Value)); } diff --git a/GIM_site/RegConsumoRic.aspx.cs b/GIM_site/RegConsumoRic.aspx.cs index b9967f9..fe3d127 100644 --- a/GIM_site/RegConsumoRic.aspx.cs +++ b/GIM_site/RegConsumoRic.aspx.cs @@ -130,12 +130,18 @@ namespace GIM_site int idxCausale = Convert.ToInt32(ddlCausale.SelectedValue); if (memLayer.ML.confReadInt("_logLevel") > 5) { - logger.lg.scriviLog(string.Format("sp_insRichiesta, valori: {0} | {1} | {2} | {3} | {4} | {5} | {6} | {7} | {8} | {9} | {10} | {11} | {12} | {13}", richiesta, dataLav, turno, matr, inizioGuasto, idxAmbito, idxPrior, isFermo, idxTipo, idxImpianto, idxMacchina, descrizione, idxCausale, false)); + logger.lg.scriviLog(string.Format("stp_insRichiestaRicambi, valori: {0} | {1} | {2} | {3} | {4} | {5} | {6} | {7} | {8} | {9} | {10}", richiesta, turno, matr, idxPrior, isFermo, idxTipo, idxImpianto, idxMacchina, descrizione, idxCausale, false)); } + //2017.04.21 + // nuovo metodo + TA_app.obj.taInterventiMtz.stp_insRichiestaRicambi(richiesta, turno, matr, idxPrior, isFermo, idxTipo, idxImpianto, idxMacchina, descrizione, idxCausale, false, ref numReq); + // vecchio metodo +#if false // stored inserimento! TA_app.obj.taInterventiMtz.sp_insRichiesta(richiesta, dataLav, turno, matr, inizioGuasto, idxAmbito, idxPrior, isFermo, idxTipo, idxImpianto, idxMacchina, descrizione, idxCausale, false, ref numReq); // porto intervento a CHIUSO... - TA_app.obj.taInterventiMtz.updateStato(numReq, 3); + TA_app.obj.taInterventiMtz.updateStato(numReq, 3); +#endif } catch (Exception exc) {