Beispiel #1
0
 protected static IlcStatusData GetStatusData()
 {
     try
     {
         return(IlcWebDao.GetStatusData());
     }
     catch (Exception ex)
     {
         new ExceptionLogger().HandleException(ex);
         return(null);
     }
 }
        /// <summary>
        /// returns initial QuickCheck button disabled status
        /// </summary>
        /// <returns>disabled or not</returns>
        public static string GetInitialQuickCheckStatus()
        {
            string status = StatusHandler.GetServiceStatus();

            if (status != ConstExpressions.SERVICE_STATUS_STARTED)
            {
                return("Disabled");
            }

            IlcStatusData data = IlcWebDao.GetStatusData();

            return(data.currServiceState == ConstExpressions.WORK_STATUS_IDLE ? "" : "Disabled");
        }
Beispiel #3
0
        private static string GetServiceInfo()
        {
            IlcStatusData data = IlcWebDao.GetStatusData();

            string status = GetServiceStatus();

            if (status != ConstExpressions.SERVICE_STATUS_STARTED)
            {
                data.currServiceState = ConstExpressions.WORK_STATUS_IDLE;
            }

            return(string.Format("{0},{1},{2},{3}",
                                 status, data.lastCheckDate, data.currServiceState, DateTime.Now));
        }