public static DataTable Get_Inf_Terminal() { DataTable table = new DataTable(); try { string maxUpdatetime = null; if (string.IsNullOrEmpty(updatedatatimeTer) == false) { maxUpdatetime = updatedatatimeTer; updatedatatimeTer = null; } else { string max_time = null; max_time = dataAccess.Get_Max_UpdateTime_Ter(); if (max_time != null) { maxUpdatetime = max_time.ToString(); } } if (string.IsNullOrEmpty(maxUpdatetime) == false) { long MaxUpdateTime_T = long.Parse(maxUpdatetime); table = dataAccess.Get_inf_ter(maxUpdatetime); } return(table); } catch (Exception ex) { classUpdateTerminalLogWriter.WriteLog("Error Get_Inf_Terminal(), " + ex.Message); table.Clear(); return(table); } }