Exemple #1
0
        public static string GetDataUpdatedDate(DataRow row)
        {
            string tag = "[Utilities][GetDataUpdatedDate]";

            if (row == null)
            {
                return("-2");
            }

            try
            {
                DateTime lastItem = row.Field <DateTime>("UpdatedDate");

                return(lastItem.ToString("MMddyyyy HH:mm:ss.fff"));
            }
            catch (Exception ex)
            {
                LogHelpers.WriteException(tag, ex.ToString());
                return("-3");
            }
        }
Exemple #2
0
        private void StartUpdateSiteVisitors()
        {
            string tag = __tag + "[StartUpdateSiteVisitors]";

            LogHelpers.WriteStatus(tag, "Start...");

            try
            {
                var result = SiteVisitorsDAL.UpdateSiteVisitors();
                if (result.Code < 0)
                {
                    LogHelpers.WriteError(tag, result.ErrorMessage);
                }
            }
            catch (Exception ex)
            {
                LogHelpers.WriteException(tag, ex.ToString());
            }
            finally
            {
                LogHelpers.WriteStatus(tag, "End.");
            }
        }
Exemple #3
0
        private void StartGetMenuName(int _menuId)
        {
            string tag = __tag + "[StartGetMenuName]";

            LogHelpers.WriteStatus(tag, "menuId: " + _menuId.ToString(), "Start...");

            try
            {
                var result = MenuDAL.GetMenuName(_menuId);
                if (result.Code < 0)
                {
                    LogHelpers.WriteError(tag, result.ErrorMessage);

                    return;
                }

                lbContentHeader.InnerText = result.Data.ToString();
            }
            catch (Exception ex)
            {
                LogHelpers.WriteException(tag, ex.Message);
            }
        }