diff --git a/GIM_dataLayer/DS_applicazione.xsd b/GIM_dataLayer/DS_applicazione.xsd index 3b74705..6b440cf 100644 --- a/GIM_dataLayer/DS_applicazione.xsd +++ b/GIM_dataLayer/DS_applicazione.xsd @@ -1968,6 +1968,7 @@ FROM v_mtzProgExp + @@ -2466,7 +2467,7 @@ FROM v_mtzProgExp - + @@ -2551,7 +2552,7 @@ FROM v_mtzProgExp - + @@ -2576,7 +2577,7 @@ FROM v_mtzProgExp - + @@ -2610,7 +2611,7 @@ FROM v_mtzProgExp - + @@ -2696,7 +2697,7 @@ FROM v_mtzProgExp - + @@ -2780,13 +2781,14 @@ FROM v_mtzProgExp - + + @@ -2900,22 +2902,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 16fe69c..6d26b3c 100644 --- a/GIM_dataLayer/DS_applicazione.xss +++ b/GIM_dataLayer/DS_applicazione.xss @@ -31,7 +31,7 @@ - + diff --git a/GIM_dataLayer/DS_applicazione1.Designer.cs b/GIM_dataLayer/DS_applicazione1.Designer.cs index 6cf1b9e..2a2e2d0 100644 --- a/GIM_dataLayer/DS_applicazione1.Designer.cs +++ b/GIM_dataLayer/DS_applicazione1.Designer.cs @@ -10360,6 +10360,8 @@ namespace GIM_dataLayer { private global::System.Data.DataColumn columnscadNat; + private global::System.Data.DataColumn columnidxPending; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public MtzProg_ScadenzeDataTable() { @@ -10425,6 +10427,14 @@ namespace GIM_dataLayer { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public global::System.Data.DataColumn idxPendingColumn { + get { + return this.columnidxPending; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] [global::System.ComponentModel.Browsable(false)] @@ -10462,13 +10472,14 @@ namespace GIM_dataLayer { [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] - public MtzProg_ScadenzeRow AddMtzProg_ScadenzeRow(int idxIntPro, System.DateTime lastOne, System.DateTime scadProg, System.DateTime scadNat) { + public MtzProg_ScadenzeRow AddMtzProg_ScadenzeRow(int idxIntPro, System.DateTime lastOne, System.DateTime scadProg, System.DateTime scadNat, int idxPending) { MtzProg_ScadenzeRow rowMtzProg_ScadenzeRow = ((MtzProg_ScadenzeRow)(this.NewRow())); object[] columnValuesArray = new object[] { idxIntPro, lastOne, scadProg, - scadNat}; + scadNat, + idxPending}; rowMtzProg_ScadenzeRow.ItemArray = columnValuesArray; this.Rows.Add(rowMtzProg_ScadenzeRow); return rowMtzProg_ScadenzeRow; @@ -10495,6 +10506,7 @@ namespace GIM_dataLayer { this.columnlastOne = base.Columns["lastOne"]; this.columnscadProg = base.Columns["scadProg"]; this.columnscadNat = base.Columns["scadNat"]; + this.columnidxPending = base.Columns["idxPending"]; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -10508,10 +10520,13 @@ namespace GIM_dataLayer { base.Columns.Add(this.columnscadProg); this.columnscadNat = new global::System.Data.DataColumn("scadNat", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnscadNat); + this.columnidxPending = new global::System.Data.DataColumn("idxPending", typeof(int), null, global::System.Data.MappingType.Element); + base.Columns.Add(this.columnidxPending); this.columnidxIntPro.ReadOnly = true; this.columnlastOne.ReadOnly = true; this.columnscadProg.ReadOnly = true; this.columnscadNat.ReadOnly = true; + this.columnidxPending.ReadOnly = true; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -15434,6 +15449,22 @@ namespace GIM_dataLayer { } } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public int idxPending { + get { + try { + return ((int)(this[this.tableMtzProg_Scadenze.idxPendingColumn])); + } + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("Il valore della colonna \'idxPending\' nella tabella \'MtzProg_Scadenze\' รจ DBNull.", e); + } + } + set { + this[this.tableMtzProg_Scadenze.idxPendingColumn] = value; + } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] public bool IsidxIntProNull() { @@ -15481,6 +15512,18 @@ namespace GIM_dataLayer { public void SetscadNatNull() { this[this.tableMtzProg_Scadenze.scadNatColumn] = global::System.Convert.DBNull; } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public bool IsidxPendingNull() { + return this.IsNull(this.tableMtzProg_Scadenze.idxPendingColumn); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] + public void SetidxPendingNull() { + this[this.tableMtzProg_Scadenze.idxPendingColumn] = global::System.Convert.DBNull; + } } /// @@ -25872,6 +25915,7 @@ namespace GIM_dataLayer.DS_applicazioneTableAdapters { tableMapping.ColumnMappings.Add("lastOne", "lastOne"); tableMapping.ColumnMappings.Add("scadProg", "scadProg"); tableMapping.ColumnMappings.Add("scadNat", "scadNat"); + tableMapping.ColumnMappings.Add("idxPending", "idxPending"); this._adapter.TableMappings.Add(tableMapping); } diff --git a/GIM_dataLayer/TA_app.cs b/GIM_dataLayer/TA_app.cs index 39f01bf..d8606a8 100644 --- a/GIM_dataLayer/TA_app.cs +++ b/GIM_dataLayer/TA_app.cs @@ -8,221 +8,224 @@ using SteamWare; /// public class TA_app { - #region table adapters + #region table adapters - public GIM_dataLayer.DS_applicazioneTableAdapters.LogUpdateDbTableAdapter taLogUpdate; - public GIM_dataLayer.DS_applicazioneTableAdapters.AnagImpiantiTableAdapter taImpianti; - public GIM_dataLayer.DS_applicazioneTableAdapters.v_macchineTableAdapter taMacchine; - public GIM_dataLayer.DS_applicazioneTableAdapters.v_selFamMaccTableAdapter taMacc2Fam; - public GIM_dataLayer.DS_applicazioneTableAdapters.v_intervExpTableAdapter taInterventiMtz; - public GIM_dataLayer.DS_applicazioneTableAdapters.AnagStatiTableAdapter taStati; - public GIM_dataLayer.DS_applicazioneTableAdapters.AnagPrioritaTableAdapter taPrior; - public GIM_dataLayer.DS_applicazioneTableAdapters.InterventoOpMtzTableAdapter taIntOpMtz; - public GIM_dataLayer.DS_applicazioneTableAdapters.v_mtzProgExpTableAdapter taMtzPro; - public GIM_dataLayer.DS_applicazioneTableAdapters.CalendFesteFerieTableAdapter taCalFF; - public GIM_dataLayer.DS_applicazioneTableAdapters.OreAperturaSettTableAdapter taOreApert; - public GIM_dataLayer.DS_applicazioneTableAdapters.FiltroImpiantiTableAdapter taFiltImp; - public GIM_dataLayer.DS_applicazioneTableAdapters.FiltroMacchineTableAdapter taFiltMac; - public GIM_dataLayer.DS_applicazioneTableAdapters.FiltroStatiTableAdapter taFiltSta; - public GIM_dataLayer.DS_applicazioneTableAdapters.AnagCausaliTableAdapter taAnagCau; - public GIM_dataLayer.DS_applicazioneTableAdapters.ImpiegoRisorseTableAdapter taImpRis; - public GIM_dataLayer.DS_applicazioneTableAdapters.v_allDataTableAdapter taAllData; - public GIM_dataLayer.DS_applicazioneTableAdapters.ElencoIntervExtTableAdapter taElencoIntExt; - public GIM_dataLayer.DS_MagTableAdapters.AnagItemsTableAdapter taAnagItem; - public GIM_dataLayer.DS_MagTableAdapters.AnagLocazioniTableAdapter taAnagLoc; - public GIM_dataLayer.DS_MagTableAdapters.AnagTagsTableAdapter taAnagTags; - public GIM_dataLayer.DS_MagTableAdapters.MagRicTableAdapter taMagRic; - public GIM_dataLayer.DS_MagTableAdapters.MovMagRicTableAdapter taMovMag; - public GIM_dataLayer.DS_MagTableAdapters.SinonimiTagTableAdapter taSinTag; - public GIM_dataLayer.DS_MagTableAdapters.StatoMagTableAdapter taStatoMag; - public GIM_dataLayer.DS_MagTableAdapters.Tag2ItemTableAdapter taTag2Item; - public GIM_dataLayer.DS_MagTableAdapters.Tag2MaccTableAdapter taTag2Macc; - public GIM_dataLayer.DS_utilityTableAdapters.v_elencoImpiantiMacchineTableAdapter taElencoImpMacch; - public GIM_dataLayer.DS_utilityTableAdapters.v_elencoIntervFiltTableAdapter taElencoIntFilt; - public GIM_dataLayer.DS_utilityTableAdapters.sp_elencoIntMTBF_MTTRTableAdapter taElenco_MTBF_MTTR; - public GIM_dataLayer.DS_utilityTableAdapters.v_selImpiantiTableAdapter taSelImpianti; - public GIM_dataLayer.DS_utilityTableAdapters.v_selMacchineTableAdapter taSelMacchine; - public GIM_dataLayer.DS_utilityTableAdapters.v_selOperMtzTableAdapter taSelMatrOp; - public GIM_dataLayer.DS_utilityTableAdapters.v_selCodRicAmmTableAdapter taSelCRA; + public GIM_dataLayer.DS_applicazioneTableAdapters.LogUpdateDbTableAdapter taLogUpdate; + public GIM_dataLayer.DS_applicazioneTableAdapters.AnagImpiantiTableAdapter taImpianti; + public GIM_dataLayer.DS_applicazioneTableAdapters.v_macchineTableAdapter taMacchine; + public GIM_dataLayer.DS_applicazioneTableAdapters.v_selFamMaccTableAdapter taMacc2Fam; + public GIM_dataLayer.DS_applicazioneTableAdapters.v_intervExpTableAdapter taInterventiMtz; + public GIM_dataLayer.DS_applicazioneTableAdapters.AnagStatiTableAdapter taStati; + public GIM_dataLayer.DS_applicazioneTableAdapters.AnagPrioritaTableAdapter taPrior; + public GIM_dataLayer.DS_applicazioneTableAdapters.InterventoOpMtzTableAdapter taIntOpMtz; + public GIM_dataLayer.DS_applicazioneTableAdapters.v_mtzProgExpTableAdapter taMtzPro; + public GIM_dataLayer.DS_applicazioneTableAdapters.CalendFesteFerieTableAdapter taCalFF; + public GIM_dataLayer.DS_applicazioneTableAdapters.OreAperturaSettTableAdapter taOreApert; + public GIM_dataLayer.DS_applicazioneTableAdapters.FiltroImpiantiTableAdapter taFiltImp; + public GIM_dataLayer.DS_applicazioneTableAdapters.FiltroMacchineTableAdapter taFiltMac; + public GIM_dataLayer.DS_applicazioneTableAdapters.FiltroStatiTableAdapter taFiltSta; + public GIM_dataLayer.DS_applicazioneTableAdapters.AnagCausaliTableAdapter taAnagCau; + public GIM_dataLayer.DS_applicazioneTableAdapters.ImpiegoRisorseTableAdapter taImpRis; + public GIM_dataLayer.DS_applicazioneTableAdapters.v_allDataTableAdapter taAllData; + public GIM_dataLayer.DS_applicazioneTableAdapters.ElencoIntervExtTableAdapter taElencoIntExt; + public GIM_dataLayer.DS_applicazioneTableAdapters.MtzProg_ScadenzeTableAdapter taScadenze; + public GIM_dataLayer.DS_MagTableAdapters.AnagItemsTableAdapter taAnagItem; + public GIM_dataLayer.DS_MagTableAdapters.AnagLocazioniTableAdapter taAnagLoc; + public GIM_dataLayer.DS_MagTableAdapters.AnagTagsTableAdapter taAnagTags; + public GIM_dataLayer.DS_MagTableAdapters.MagRicTableAdapter taMagRic; + public GIM_dataLayer.DS_MagTableAdapters.MovMagRicTableAdapter taMovMag; + public GIM_dataLayer.DS_MagTableAdapters.SinonimiTagTableAdapter taSinTag; + public GIM_dataLayer.DS_MagTableAdapters.StatoMagTableAdapter taStatoMag; + public GIM_dataLayer.DS_MagTableAdapters.Tag2ItemTableAdapter taTag2Item; + public GIM_dataLayer.DS_MagTableAdapters.Tag2MaccTableAdapter taTag2Macc; + public GIM_dataLayer.DS_utilityTableAdapters.v_elencoImpiantiMacchineTableAdapter taElencoImpMacch; + public GIM_dataLayer.DS_utilityTableAdapters.v_elencoIntervFiltTableAdapter taElencoIntFilt; + public GIM_dataLayer.DS_utilityTableAdapters.sp_elencoIntMTBF_MTTRTableAdapter taElenco_MTBF_MTTR; + public GIM_dataLayer.DS_utilityTableAdapters.v_selImpiantiTableAdapter taSelImpianti; + public GIM_dataLayer.DS_utilityTableAdapters.v_selMacchineTableAdapter taSelMacchine; + public GIM_dataLayer.DS_utilityTableAdapters.v_selOperMtzTableAdapter taSelMatrOp; + public GIM_dataLayer.DS_utilityTableAdapters.v_selCodRicAmmTableAdapter taSelCRA; - #endregion + #endregion - /// - /// effettua setup dei connection strings da web.config della singola applicazione - /// - protected virtual void setupConnectionString() - { - // connections del db - string connString = memLayer.ML.confReadString("AppConnectionString"); - taLogUpdate.Connection.ConnectionString = connString; - taImpianti.Connection.ConnectionString = connString; - taMacchine.Connection.ConnectionString = connString; - taSelImpianti.Connection.ConnectionString = connString; - taSelMacchine.Connection.ConnectionString = connString; - taMacc2Fam.Connection.ConnectionString = connString; - taInterventiMtz.Connection.ConnectionString = connString; - taStati.Connection.ConnectionString = connString; - taPrior.Connection.ConnectionString = connString; - taIntOpMtz.Connection.ConnectionString = connString; - taMtzPro.Connection.ConnectionString = connString; - taElencoImpMacch.Connection.ConnectionString = connString; - taElencoIntFilt.Connection.ConnectionString = connString; - taElenco_MTBF_MTTR.Connection.ConnectionString = connString; - taCalFF.Connection.ConnectionString = connString; - taOreApert.Connection.ConnectionString = connString; - taFiltImp.Connection.ConnectionString = connString; - taFiltMac.Connection.ConnectionString = connString; - taFiltSta.Connection.ConnectionString = connString; - taAnagCau.Connection.ConnectionString = connString; - taSelMatrOp.Connection.ConnectionString = connString; - taSelCRA.Connection.ConnectionString = connString; - taImpRis.Connection.ConnectionString = connString; - taAllData.Connection.ConnectionString = connString; - taElencoIntExt.Connection.ConnectionString = connString; - taAnagItem.Connection.ConnectionString = connString; - taAnagLoc.Connection.ConnectionString = connString; - taAnagTags.Connection.ConnectionString = connString; - taMagRic.Connection.ConnectionString = connString; - taMovMag.Connection.ConnectionString = connString; - taSinTag.Connection.ConnectionString = connString; - taStatoMag.Connection.ConnectionString = connString; - taTag2Item.Connection.ConnectionString = connString; - taTag2Macc.Connection.ConnectionString = connString; - } - protected TA_app() - { - initTA(); - setupConnectionString(); - } + /// + /// effettua setup dei connection strings da web.config della singola applicazione + /// + protected virtual void setupConnectionString() + { + // connections del db + string connString = memLayer.ML.confReadString("AppConnectionString"); + taLogUpdate.Connection.ConnectionString = connString; + taImpianti.Connection.ConnectionString = connString; + taMacchine.Connection.ConnectionString = connString; + taSelImpianti.Connection.ConnectionString = connString; + taSelMacchine.Connection.ConnectionString = connString; + taMacc2Fam.Connection.ConnectionString = connString; + taInterventiMtz.Connection.ConnectionString = connString; + taStati.Connection.ConnectionString = connString; + taPrior.Connection.ConnectionString = connString; + taIntOpMtz.Connection.ConnectionString = connString; + taMtzPro.Connection.ConnectionString = connString; + taElencoImpMacch.Connection.ConnectionString = connString; + taElencoIntFilt.Connection.ConnectionString = connString; + taElenco_MTBF_MTTR.Connection.ConnectionString = connString; + taCalFF.Connection.ConnectionString = connString; + taOreApert.Connection.ConnectionString = connString; + taFiltImp.Connection.ConnectionString = connString; + taFiltMac.Connection.ConnectionString = connString; + taFiltSta.Connection.ConnectionString = connString; + taAnagCau.Connection.ConnectionString = connString; + taSelMatrOp.Connection.ConnectionString = connString; + taSelCRA.Connection.ConnectionString = connString; + taImpRis.Connection.ConnectionString = connString; + taAllData.Connection.ConnectionString = connString; + taElencoIntExt.Connection.ConnectionString = connString; + taScadenze.Connection.ConnectionString = connString; + taAnagItem.Connection.ConnectionString = connString; + taAnagLoc.Connection.ConnectionString = connString; + taAnagTags.Connection.ConnectionString = connString; + taMagRic.Connection.ConnectionString = connString; + taMovMag.Connection.ConnectionString = connString; + taSinTag.Connection.ConnectionString = connString; + taStatoMag.Connection.ConnectionString = connString; + taTag2Item.Connection.ConnectionString = connString; + taTag2Macc.Connection.ConnectionString = connString; + } + protected TA_app() + { + initTA(); + setupConnectionString(); + } - private void initTA() - { - // avvio table adapters - taLogUpdate = new GIM_dataLayer.DS_applicazioneTableAdapters.LogUpdateDbTableAdapter(); - taImpianti = new GIM_dataLayer.DS_applicazioneTableAdapters.AnagImpiantiTableAdapter(); - taMacchine = new GIM_dataLayer.DS_applicazioneTableAdapters.v_macchineTableAdapter(); - taSelImpianti = new GIM_dataLayer.DS_utilityTableAdapters.v_selImpiantiTableAdapter(); - taSelMacchine = new GIM_dataLayer.DS_utilityTableAdapters.v_selMacchineTableAdapter(); - taMacc2Fam = new GIM_dataLayer.DS_applicazioneTableAdapters.v_selFamMaccTableAdapter(); - taInterventiMtz = new GIM_dataLayer.DS_applicazioneTableAdapters.v_intervExpTableAdapter(); - taStati = new GIM_dataLayer.DS_applicazioneTableAdapters.AnagStatiTableAdapter(); - taPrior = new GIM_dataLayer.DS_applicazioneTableAdapters.AnagPrioritaTableAdapter(); - taIntOpMtz = new GIM_dataLayer.DS_applicazioneTableAdapters.InterventoOpMtzTableAdapter(); - taMtzPro = new GIM_dataLayer.DS_applicazioneTableAdapters.v_mtzProgExpTableAdapter(); - taElencoImpMacch = new GIM_dataLayer.DS_utilityTableAdapters.v_elencoImpiantiMacchineTableAdapter(); - taElencoIntFilt = new GIM_dataLayer.DS_utilityTableAdapters.v_elencoIntervFiltTableAdapter(); - taElenco_MTBF_MTTR = new GIM_dataLayer.DS_utilityTableAdapters.sp_elencoIntMTBF_MTTRTableAdapter(); - taCalFF = new GIM_dataLayer.DS_applicazioneTableAdapters.CalendFesteFerieTableAdapter(); - taOreApert = new GIM_dataLayer.DS_applicazioneTableAdapters.OreAperturaSettTableAdapter(); - taFiltImp = new GIM_dataLayer.DS_applicazioneTableAdapters.FiltroImpiantiTableAdapter(); - taFiltMac = new GIM_dataLayer.DS_applicazioneTableAdapters.FiltroMacchineTableAdapter(); - taFiltSta = new GIM_dataLayer.DS_applicazioneTableAdapters.FiltroStatiTableAdapter(); - taAnagCau = new GIM_dataLayer.DS_applicazioneTableAdapters.AnagCausaliTableAdapter(); - taSelMatrOp = new GIM_dataLayer.DS_utilityTableAdapters.v_selOperMtzTableAdapter(); - taSelCRA= new GIM_dataLayer.DS_utilityTableAdapters.v_selCodRicAmmTableAdapter(); - taImpRis = new GIM_dataLayer.DS_applicazioneTableAdapters.ImpiegoRisorseTableAdapter(); - taAllData = new GIM_dataLayer.DS_applicazioneTableAdapters.v_allDataTableAdapter(); - taElencoIntExt = new GIM_dataLayer.DS_applicazioneTableAdapters.ElencoIntervExtTableAdapter(); - taAnagItem = new GIM_dataLayer.DS_MagTableAdapters.AnagItemsTableAdapter(); - taAnagLoc = new GIM_dataLayer.DS_MagTableAdapters.AnagLocazioniTableAdapter(); - taAnagTags = new GIM_dataLayer.DS_MagTableAdapters.AnagTagsTableAdapter(); - taMagRic = new GIM_dataLayer.DS_MagTableAdapters.MagRicTableAdapter(); - taMovMag = new GIM_dataLayer.DS_MagTableAdapters.MovMagRicTableAdapter(); - taSinTag = new GIM_dataLayer.DS_MagTableAdapters.SinonimiTagTableAdapter(); - taStatoMag = new GIM_dataLayer.DS_MagTableAdapters.StatoMagTableAdapter(); - taTag2Item = new GIM_dataLayer.DS_MagTableAdapters.Tag2ItemTableAdapter(); - taTag2Macc = new GIM_dataLayer.DS_MagTableAdapters.Tag2MaccTableAdapter(); - } + private void initTA() + { + // avvio table adapters + taLogUpdate = new GIM_dataLayer.DS_applicazioneTableAdapters.LogUpdateDbTableAdapter(); + taImpianti = new GIM_dataLayer.DS_applicazioneTableAdapters.AnagImpiantiTableAdapter(); + taMacchine = new GIM_dataLayer.DS_applicazioneTableAdapters.v_macchineTableAdapter(); + taSelImpianti = new GIM_dataLayer.DS_utilityTableAdapters.v_selImpiantiTableAdapter(); + taSelMacchine = new GIM_dataLayer.DS_utilityTableAdapters.v_selMacchineTableAdapter(); + taMacc2Fam = new GIM_dataLayer.DS_applicazioneTableAdapters.v_selFamMaccTableAdapter(); + taInterventiMtz = new GIM_dataLayer.DS_applicazioneTableAdapters.v_intervExpTableAdapter(); + taStati = new GIM_dataLayer.DS_applicazioneTableAdapters.AnagStatiTableAdapter(); + taPrior = new GIM_dataLayer.DS_applicazioneTableAdapters.AnagPrioritaTableAdapter(); + taIntOpMtz = new GIM_dataLayer.DS_applicazioneTableAdapters.InterventoOpMtzTableAdapter(); + taMtzPro = new GIM_dataLayer.DS_applicazioneTableAdapters.v_mtzProgExpTableAdapter(); + taElencoImpMacch = new GIM_dataLayer.DS_utilityTableAdapters.v_elencoImpiantiMacchineTableAdapter(); + taElencoIntFilt = new GIM_dataLayer.DS_utilityTableAdapters.v_elencoIntervFiltTableAdapter(); + taElenco_MTBF_MTTR = new GIM_dataLayer.DS_utilityTableAdapters.sp_elencoIntMTBF_MTTRTableAdapter(); + taCalFF = new GIM_dataLayer.DS_applicazioneTableAdapters.CalendFesteFerieTableAdapter(); + taOreApert = new GIM_dataLayer.DS_applicazioneTableAdapters.OreAperturaSettTableAdapter(); + taFiltImp = new GIM_dataLayer.DS_applicazioneTableAdapters.FiltroImpiantiTableAdapter(); + taFiltMac = new GIM_dataLayer.DS_applicazioneTableAdapters.FiltroMacchineTableAdapter(); + taFiltSta = new GIM_dataLayer.DS_applicazioneTableAdapters.FiltroStatiTableAdapter(); + taAnagCau = new GIM_dataLayer.DS_applicazioneTableAdapters.AnagCausaliTableAdapter(); + taSelMatrOp = new GIM_dataLayer.DS_utilityTableAdapters.v_selOperMtzTableAdapter(); + taSelCRA = new GIM_dataLayer.DS_utilityTableAdapters.v_selCodRicAmmTableAdapter(); + taImpRis = new GIM_dataLayer.DS_applicazioneTableAdapters.ImpiegoRisorseTableAdapter(); + taAllData = new GIM_dataLayer.DS_applicazioneTableAdapters.v_allDataTableAdapter(); + taElencoIntExt = new GIM_dataLayer.DS_applicazioneTableAdapters.ElencoIntervExtTableAdapter(); + taScadenze = new GIM_dataLayer.DS_applicazioneTableAdapters.MtzProg_ScadenzeTableAdapter(); + taAnagItem = new GIM_dataLayer.DS_MagTableAdapters.AnagItemsTableAdapter(); + taAnagLoc = new GIM_dataLayer.DS_MagTableAdapters.AnagLocazioniTableAdapter(); + taAnagTags = new GIM_dataLayer.DS_MagTableAdapters.AnagTagsTableAdapter(); + taMagRic = new GIM_dataLayer.DS_MagTableAdapters.MagRicTableAdapter(); + taMovMag = new GIM_dataLayer.DS_MagTableAdapters.MovMagRicTableAdapter(); + taSinTag = new GIM_dataLayer.DS_MagTableAdapters.SinonimiTagTableAdapter(); + taStatoMag = new GIM_dataLayer.DS_MagTableAdapters.StatoMagTableAdapter(); + taTag2Item = new GIM_dataLayer.DS_MagTableAdapters.Tag2ItemTableAdapter(); + taTag2Macc = new GIM_dataLayer.DS_MagTableAdapters.Tag2MaccTableAdapter(); + } - /// - /// Singleton - /// - public static TA_app obj = new TA_app(); - /// - /// restituisce versione corrente del db applicativo - /// - public int appDB_act + /// + /// Singleton + /// + public static TA_app obj = new TA_app(); + /// + /// restituisce versione corrente del db applicativo + /// + public int appDB_act + { + get { - get - { - int answ = -1; - try - { - answ = (int)taLogUpdate.getDbVers(); - } - catch - { - logger.lg.scriviLog("Errore recupero versione DB applicativo GIM!", tipoLog.EXCEPTION); - } - return answ; - } + int answ = -1; + try + { + answ = (int)taLogUpdate.getDbVers(); + } + catch + { + logger.lg.scriviLog("Errore recupero versione DB applicativo GIM!", tipoLog.EXCEPTION); + } + return answ; } - /// - /// restituisce versione corrente del db vocabolario - /// - public int vocDB_act + } + /// + /// restituisce versione corrente del db vocabolario + /// + public int vocDB_act + { + get { - get - { - int answ = -1; - try - { - answ = (int)DataWrap.DW.taLogVoc.getDbVers(); - } - catch - { - logger.lg.scriviLog("Errore recupero versione DB Vocabolario!", tipoLog.EXCEPTION); - } - return answ; - } + int answ = -1; + try + { + answ = (int)DataWrap.DW.taLogVoc.getDbVers(); + } + catch + { + logger.lg.scriviLog("Errore recupero versione DB Vocabolario!", tipoLog.EXCEPTION); + } + return answ; } - /// - /// restituisce versione corrente del db anagrafica - /// - public int anaDB_act + } + /// + /// restituisce versione corrente del db anagrafica + /// + public int anaDB_act + { + get { - get - { - int answ = -1; - try - { - answ = answ = (int)DataWrap.DW.taLogAna.getDbVers(); - } - catch - { - logger.lg.scriviLog("Errore recupero versione DB Anagrafica!", tipoLog.EXCEPTION); - } - return answ; - } + int answ = -1; + try + { + answ = answ = (int)DataWrap.DW.taLogAna.getDbVers(); + } + catch + { + logger.lg.scriviLog("Errore recupero versione DB Anagrafica!", tipoLog.EXCEPTION); + } + return answ; } - /// - /// restituisce versione richiesta per il db applicativo - /// - public int appDB_req + } + /// + /// restituisce versione richiesta per il db applicativo + /// + public int appDB_req + { + get { - get - { - return memLayer.ML.confReadInt("dbAppVers"); - } + return memLayer.ML.confReadInt("dbAppVers"); } - /// - /// restituisce versione richiesta per il db vocabolario - /// - public int vocDB_req + } + /// + /// restituisce versione richiesta per il db vocabolario + /// + public int vocDB_req + { + get { - get - { - return memLayer.ML.confReadInt("dbVocabVers"); - } + return memLayer.ML.confReadInt("dbVocabVers"); } - /// - /// restituisce versione richiesta per il db anagrafica - /// - public int anaDB_req + } + /// + /// restituisce versione richiesta per il db anagrafica + /// + public int anaDB_req + { + get { - get - { - return memLayer.ML.confReadInt("dbAuthVers"); - } + return memLayer.ML.confReadInt("dbAuthVers"); } + } } \ No newline at end of file diff --git a/GIM_site/WebUserControls/mod_nextMtzPro.ascx b/GIM_site/WebUserControls/mod_nextMtzPro.ascx index e107142..0fd5709 100644 --- a/GIM_site/WebUserControls/mod_nextMtzPro.ascx +++ b/GIM_site/WebUserControls/mod_nextMtzPro.ascx @@ -9,7 +9,7 @@
- + <%: traduci("doReschedule") %> <%----%> diff --git a/GIM_site/WebUserControls/mod_nextMtzPro.ascx.cs b/GIM_site/WebUserControls/mod_nextMtzPro.ascx.cs index 5618cb1..968d180 100644 --- a/GIM_site/WebUserControls/mod_nextMtzPro.ascx.cs +++ b/GIM_site/WebUserControls/mod_nextMtzPro.ascx.cs @@ -5,6 +5,7 @@ using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using SteamWare; +using GIM_dataLayer; namespace GIM_site.WebUserControls { @@ -46,5 +47,21 @@ namespace GIM_site.WebUserControls bool answ = !(scadProg.Equals(scadNat)); return answ; } + + protected void btnReschedule_Click(object sender, EventArgs e) + { + // richiesto riallineamento date: eseguo! + DS_applicazione.MtzProg_ScadenzeDataTable tab = TA_app.obj.taScadenze.GetData(idxIntPro); + try + { + if(tab.Rows.Count > 0) + { + mtzProgr.obj.taMtzPend.updDataScad(tab[0].idxPending, tab[0].scadNat); + frmView.DataBind(); + } + } + catch + { } + } } } \ No newline at end of file