private void CheckRescueOperation(object sender, ElapsedEventArgs e)
        {
            if (isChecking)
            {
                return;
            }

            bool isConnect = DaoUtil.TestConnection();

            if (!isConnect)
            {
                return;
            }

            isChecking = true;

            List <BD_RescueTableInfo> ooList = LoadResuceObject();

            if (!Utils.IsNullOrEmpty(ooList))
            {
                foreach (var ro in ooList)
                {
                    DoResuce(ro);
                }
            }
            else
            {
                DeleteAllFile();
            }

            isChecking = false;
        }
        /// <summary>
        /// 开始启动,进行初始化
        /// </summary>
        public static bool Start(ref string errMsg)
        {
            if (scheduler != null)
            {
                if (scheduler.IsStarted)
                {
                    return(true);
                }
            }

            //DaoUtil.Initialize();
            //删除正常退出标志
            //DaoUtil.DeleteNormalFlag();
            bool isConnectionOk = DaoUtil.TestConnection();

            if (!isConnectionOk)
            {
                errMsg = "无法连接数据库,请检查配置文件!";
                LogHelper.WriteDebug("ScheduleManager.Start" + errMsg);
                return(false);
            }

            stockOpenJob   = new StockOpenProcessJob();
            stockCloseJob  = new StockCloseProcessJob();
            futureOpenJob  = new FutureOpenProcessJob();
            futureCloseJob = new FutureCloseProcessJob();

            stockMelonCutting = new StockMelonCuttingJob();
            try
            {
                //启动内存表管理器
                //MemoryDataManager.Start();

                //===回推故障数据导入 Start===
                FailureRecoveryFactory.QHReaderToDB();
                FailureRecoveryFactory.XHReaderToDB();
                FailureRecoveryFactory.HKReaderToDB();
                //===回推故障数据导入 End===

                ISchedulerFactory schedFact = new StdSchedulerFactory();
                scheduler = schedFact.GetScheduler();

                MCService.CommonPara.Reset();
                MCService.CommonPara.Initialize();

                InitializeTriggers();

                LogHelper.WriteInfo("ScheduleManager.Start");
                scheduler.Start();

                DoOpenProcess();
                DoCloseProcess();

                #region 已经在DoOpenProcess中期货中有执行不再处理
                ////add 2010-03-16 添加对期货的清算判断,如果发现前一日没有清算完成则设置期货是否清算异常系统暂停交易,使用期台不能下单
                //DateTime ReckoningDateTime;
                //bool isReckoning = false;
                //isReckoning = StatusTableChecker.IsFutureReckoningFaultRecovery(out ReckoningDateTime, out errMsg);
                //if (isReckoning)
                //{
                //    IList<CM_BreedClass> list = MCService.CommonPara.GetAllBreedClass();
                //    foreach (var item in list)
                //    {
                //        if (item.BreedClassTypeID.Value == (int)GTA.VTS.Common.CommonObject.Types.BreedClassTypeEnum.CommodityFuture ||
                //            item.BreedClassTypeID.Value == (int)GTA.VTS.Common.CommonObject.Types.BreedClassTypeEnum.StockIndexFuture)
                //        {
                //            IsFutureReckoningErrorStopTrade = true;
                //            break;
                //        }
                //    }
                //}
                #endregion
                //==================

                IsStartSuccess = true;
            }
            catch (Exception ex)
            {
                LogHelper.WriteInfo("ScheduleManger start failure!");
                LogHelper.WriteError(ex.ToString(), ex);

                IsStartSuccess = false;
                return(false);
            }

            LogHelper.WriteInfo("ScheduleManger start success!");
            return(true);
        }