示例#1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="no"></param>
 public void StopTask(int no)
 {
     lock (_ans)
     {
         F_ExcTask excTask = _taskList.Find(c => { return(c.NO == no); });
         if (excTask != null && _taskList.Contains(excTask))
         {
             LogFactory.LogAdd(LOGTYPE.FINISH, excTask.Id, excTask.GetTaskInfo(), "调度终止", excTask.GetTaskInfo());//任务完成日志
             PublicDataContorl.TaskIsSucc(excTask.NO);
             excTask.ISetTaskSuc();
             _taskList.Remove(excTask);
         }
     }
 }
示例#2
0
        /// <summary>
        /// 删除一个任务
        /// </summary>
        /// <param name="Id"></param>
        public void IDeletTask(string Id)
        {
            lock (_ans)
            {
                F_ExcTask exit = _taskList.Find(c => { return(c.Id == Id); });

                if (exit != null && _taskList.Contains(exit))
                {
                    LogFactory.LogAdd(LOGTYPE.FINISH, exit.Id, exit.GetTaskInfo(), "调度完成", exit.GetTaskInfo());//任务完成日志
                    PublicDataContorl.TaskIsSucc(exit.NO);
                    _taskList.Remove(exit);
                }
            }
        }
示例#3
0
        /// <summary>
        /// 删除一个任务
        /// </summary>
        /// <param name="Id"></param>
        public void IDeletTask(string Id)
        {
            lock (_ans)
            {
                F_ExcTask exit = _taskList.Find(c => { return(c.Id == Id); });

                if (exit != null && _taskList.Contains(exit))
                {
                    //LogFactory.LogFinish(exit.Id ,"调度完成",exit.GetTaskInfo());
                    LogFactory.LogAdd(LOGTYPE.FINISH, exit.Id, exit.GetAgvId(), "调度完成", exit.GetTaskInfo());//任务完成日志

                    _taskList.Remove(exit);
                }
            }
        }