From a21e263778a33a0789d9a7f65bbd73b62569e4d6 Mon Sep 17 00:00:00 2001 From: "Samuele E. Locatelli" Date: Mon, 5 Feb 2018 17:45:36 +0100 Subject: [PATCH] tolta tab idxStato... --- MP-Site/WebUserControls/mod_statoMacchina.ascx.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/MP-Site/WebUserControls/mod_statoMacchina.ascx.cs b/MP-Site/WebUserControls/mod_statoMacchina.ascx.cs index 58193a18..167eb29b 100644 --- a/MP-Site/WebUserControls/mod_statoMacchina.ascx.cs +++ b/MP-Site/WebUserControls/mod_statoMacchina.ascx.cs @@ -18,7 +18,6 @@ namespace MoonPro.WebUserControls protected bool _linkActive = true; protected DS_ProdTempi.MappaStatoExplDataTable tabMSE; - protected DS_applicazione.StatoMacchineDataTable tabStatoMacchine; protected DS_applicazione.AnagraficaStatiDataTable tabAnagStati; protected DS_applicazione.KeepAliveDataTable tabKeepAlive; /// @@ -68,7 +67,6 @@ namespace MoonPro.WebUserControls // popolazione tabelle tabMSE = MapoDb.DataLayer.obj.taMSE.getByIdxMacchina(IdxMacchina); - tabStatoMacchine = MapoDb.DataLayer.obj.taStatoMacchine.GetData(); tabAnagStati = MapoDb.DataLayer.obj.taAnagStati.GetData(); tabKeepAlive = MapoDb.DataLayer.obj.taKeepAlive.GetData(); } @@ -129,7 +127,8 @@ namespace MoonPro.WebUserControls string cauFermo = "nd"; try { - cauFermo = tabAnagStati.FindByIdxStato(Convert.ToInt32(tabStatoMacchine.FindByIdxMacchina(IdxMacchina).IdxStato)).Descrizione; + cauFermo = tabAnagStati.FindByIdxStato(tabMSE[0].idxStato).Descrizione; + //cauFermo = tabAnagStati.FindByIdxStato(Convert.ToInt32(tabStatoMacchine.FindByIdxMacchina(IdxMacchina).IdxStato)).Descrizione; } catch {