Aggiunto try/catch recupero dati x singola macchina... x evitare errore novi impianti...
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -213,7 +213,7 @@ namespace MoonPro.WebUserControls
|
||||
{
|
||||
int minuti = SteamWare.memLayer.ML.confReadInt("keepAliveMin");
|
||||
// controllo se il keep alive è oltre il termine...
|
||||
DateTime lastKA = DateTime.Now.AddMinutes(- minuti);
|
||||
DateTime lastKA = DateTime.Now.AddMinutes(-minuti);
|
||||
try
|
||||
{
|
||||
lastKA = tabKeepAlive.FindByIdxMacchina(IdxMacchina).DataOraServer;
|
||||
@@ -257,12 +257,17 @@ namespace MoonPro.WebUserControls
|
||||
/// </summary>
|
||||
private void retrieveData()
|
||||
{
|
||||
// popolazione tabelle
|
||||
tabMacchine = MapoDb.DataLayer.obj.taMacchine.GetData();
|
||||
tabStatoMacchine = MapoDb.DataLayer.obj.taStatoMacchine.GetData();
|
||||
tabAnagStati = MapoDb.DataLayer.obj.taAnagStati.GetData();
|
||||
//tabKanban = taKanban.GetData();
|
||||
tabKeepAlive = MapoDb.DataLayer.obj.taKeepAlive.GetData();
|
||||
try
|
||||
{
|
||||
// popolazione tabelle
|
||||
tabMacchine = MapoDb.DataLayer.obj.taMacchine.GetData();
|
||||
tabStatoMacchine = MapoDb.DataLayer.obj.taStatoMacchine.GetData();
|
||||
tabAnagStati = MapoDb.DataLayer.obj.taAnagStati.GetData();
|
||||
//tabKanban = taKanban.GetData();
|
||||
tabKeepAlive = MapoDb.DataLayer.obj.taKeepAlive.GetData();
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
Reference in New Issue
Block a user