private static DataTable Get_ThuNo_TatToan_IPP() { string maxUpdateDT = null; DataTable table = new DataTable(); if (string.IsNullOrEmpty(_updateDateTime) == false) { maxUpdateDT = _updateDateTime; _updateDateTime = null; } else { maxUpdateDT = _dataAccess.Get_Max_UpdateTime(SMS_TYPE); } if (string.IsNullOrEmpty(maxUpdateDT) == false) { try { long maxUpdateTime = long.Parse(maxUpdateDT); } catch (Exception ex) { classThuNoTatToanIPPLogWriter.WriteLog("Error Get_ThuNo_TatToan_IPP(), " + ex.Message); return(null); } table = _dataAccess.GetThuNoTatToanIPP(maxUpdateDT); } return(table); }
private static DataTable Get_GDMCDebit() { DataTable table = new DataTable(); try { string maxUpdateDT = null; table.Rows.Clear(); if (string.IsNullOrEmpty(_updateDateTime) == false) { maxUpdateDT = _updateDateTime; _updateDateTime = null; } else { maxUpdateDT = _dataAccess.Get_Max_UpdateTime(SMS_TYPE);//hoannd change 20/04/2015 } if (maxUpdateDT != null)//hoannd add 17/04/2015 { table = _dataAccess.GetGDMCDebit(maxUpdateDT); } return(table); } catch (Exception ex) { classGDMCDebitLogWriter.WriteLog("Error Get_GDMCDebit() 1, " + ex.Message); table.Rows.Clear(); return(table); } }
private static DataTable Get_GDTangTien() { string maxUpdateDT = null; DataTable table = new DataTable(); if (string.IsNullOrEmpty(_updateDateTime) == false) { maxUpdateDT = _updateDateTime; _updateDateTime = null; } else { maxUpdateDT = _dataAccess.Get_Max_UpdateTime(SMS_TYPE); //DataTable updateTime = _dataAccess.Get_Max_OutBal_UpdateTime(SMS_TYPE); //if (updateTime.Rows.Count == 1 || updateTime.Rows.Count == 2) // maxUpdateDT = updateTime.Rows[0].ItemArray[0].ToString(); } if (string.IsNullOrEmpty(maxUpdateDT) == false) { try { long maxUpdateTime = long.Parse(maxUpdateDT); } catch (Exception ex) { classGDTangTienLogWriter.WriteLog("Error Get_GDTangTien(), " + ex.Message); return(null); } if (maxUpdateDT != null) { table = _dataAccess.GetGDTangTien(maxUpdateDT); } } return(table); }
public static DataTable Get_KichHoatThe() { string maxUpdateDT = null; DataTable table = new DataTable(); if (string.IsNullOrEmpty(_updateDataTime) == false) { maxUpdateDT = _updateDataTime; _updateDataTime = null; } else { maxUpdateDT = _dataAccess.Get_Max_UpdateTime(SMS_TYPE); } if (string.IsNullOrEmpty(maxUpdateDT) == false) { try { long MaxUpdateTime = long.Parse(maxUpdateDT); } catch (Exception ex) { classKichHoatTheLogWriter.WriteLog("Error Get_KichHoatThe(), " + ex.Message); return(null); } if (maxUpdateDT != null) { table = _dataAccess.GetKichHoatThe(maxUpdateDT); } } return(table); }
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); } }