Пример #1
0
        private static DataTable Get_Thu_No_Fail(string due_date)
        {
            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)
                {
                    classThuNoFailLogWriter.WriteLog("Error Get_Thu_No_Fail(), " + ex.Message);
                    return(null);
                }
                if (maxUpdateDT != null)
                {
                    table = _dataAccess.GetThuNoFail(due_date, maxUpdateDT);
                }
            }
            return(table);
        }