public static DataTable Get_NoQuaHan_IPP() { try { string month = DateTime.Now.AddMonths(-1).ToString("yyyyMM"); DataTable table = new DataTable(); string maxUpdateDT = null; if (string.IsNullOrEmpty(_updateDataTime) == false) { maxUpdateDT = _updateDataTime; _updateDataTime = null; } else { maxUpdateDT = _dataAccess.Get_Max_UpdateTime(SMS_TYPE_IPP); } if (string.IsNullOrEmpty(maxUpdateDT) == false) { try { long MaxUpdateTime = long.Parse(maxUpdateDT); } catch (Exception ex) { classNoQuaHanLogWriter.WriteLog("Error Get_NoQuaHan_IPP(), " + ex.Message); return(null); } if (maxUpdateDT != null) { table = _dataAccess.GetNoQuaHan_IPP(month, maxUpdateDT); } } return(table); } catch (Exception e) { classNoQuaHanLogWriter.WriteLog("Err Get_NoQuaHan_IPP(): " + e.ToString()); return(null); } }