Aggiunto try/catch recupero dati x singola macchina... x evitare errore novi impianti...

This commit is contained in:
Samuele E. Locatelli
2017-01-12 11:18:52 +01:00
parent 3b877be611
commit 592c078569
3 changed files with 12 additions and 7 deletions
Binary file not shown.
BIN
View File
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