public static ScheduleProductionInstruction getScheduleInstruction() { if (scheduleProductionInstruction == null) { scheduleProductionInstruction = new ScheduleProductionInstruction(); } return(scheduleProductionInstruction); }
/// <summary> /// 开启调度任务,检测数据库待执行的任务,将任务有效率 /// </summary> public void startShedule() { if (scheduleTask) { ThreadFactory.newBackgroudThread(new ThreadStart(ScheduleProductionTask.getScheduleTask().sheduleTask)).Start(); } if (scheduleInstruction) { ThreadFactory.newBackgroudThread(new ThreadStart(ScheduleProductionInstruction.getScheduleInstruction().scheduleInstruction)).Start(); } }