private static void InternalDoOpen()
        {
            StockOpenCloseProcess.DoOpen();
            FutureOpenCloseProcess.DoOpen();

            DoCacheOrder();
        }
Example #2
0
        protected override void GlobalProcess(ScheduleEventArgs args)
        {
            if (args.TimeType != Entity.Contants.Types.TradingTimeType.Open)
            {
                return;
            }
            try
            {
                //1.分红之前提交内存数据
                MemoryDataManager.End();

                StockOpenCloseProcess.DoMelonCutting();
            }
            catch (Exception ex)
            {
                LogHelper.WriteError("现货分红处理异常", ex);
            }
            try
            {
                //重新加载一次
                MemoryDataManager.Start();
            }
            catch (Exception ex)
            {
                LogHelper.WriteError("现货分红加载内存异常", ex);
            }
            //=============
        }
Example #3
0
        protected override void GlobalProcess(ScheduleEventArgs args)
        {
            if (args.TimeType != Entity.Contants.Types.TradingTimeType.MatchEndWork)
            {
                return;
            }

            //update 李健华 2009-12-15=====因为有关内存表的数据,所以在这里盘后清算时不作多线程操作
            //Thread stockCloseThread = new Thread(StockOpenCloseProcess.DoClose);
            //stockCloseThread.Start();
            StockOpenCloseProcess.DoClose();
            //=============
        }
Example #4
0
 protected override void GlobalProcess(ScheduleEventArgs args)
 {
     if (args.TimeType != Entity.Contants.Types.TradingTimeType.MacthBeginWork)
     {
         return;
     }
     try
     {
         StockOpenCloseProcess.DoOpen();
     }
     catch (Exception ex)
     {
         LogHelper.WriteError("现货开市处理异常", ex);
     }
 }
 private static void InternalDoClose()
 {
     StockOpenCloseProcess.DoClose();
     FutureOpenCloseProcess.DoClose();
 }