tolta tab idxStato...

This commit is contained in:
Samuele E. Locatelli
2018-02-05 17:45:36 +01:00
parent e66f409aed
commit a21e263778
@@ -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;
/// <summary>
@@ -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
{