Пример #1
0
        public static DataTable Get_SendEmail_MainCard()
        {
            string    maxUpdateDT = null;
            DataTable table       = new DataTable();

            if (string.IsNullOrEmpty(_updateDateTime) == false)
            {
                maxUpdateDT     = _updateDateTime;
                _updateDateTime = null;
            }
            else
            {
                maxUpdateDT = _dataAccess.Get_Max_UpdateTime_SendEmail(SMS_TYPE_Main);
            }
            if (string.IsNullOrEmpty(maxUpdateDT) == false)
            {
                try
                {
                    long MaxUpdateTime = long.Parse(maxUpdateDT);
                }
                catch (Exception ex)
                {
                    classSendEmailLogWriter.WriteLog("Error Get_SendEmail_MainCard(), " + ex.Message);
                    return(null);
                }
                if (maxUpdateDT != null)
                {
                    table = _dataAccess.GetSendEmail_MaiCard(maxUpdateDT);
                }
            }

            return(table);
        }