public TaskexeBean getAndRemoveNextTaskexeBean() { TaskexeBean taskexeBean = getTaskexeTaskList().Dequeue(); if (!"Send".Equals(taskexeBean.getOpflag())) { TaskexeDao.getDao().sendTaskexeBean(taskexeBean); } return(taskexeBean); }
public TaskexeBean getNextTaskexeBean() { List <TaskexeBean> taskexeBeanList = TaskexeDao.getDao().getTaskexeTaskList(); if (taskexeBeanList == null || taskexeBeanList.Count <= 0) { return(null); } TaskexeBean taskexeBean = taskexeBeanList[0]; AGVLog.WriteSendInfo("下一个执行的任务ID:" + taskexeBean.getTaskid(), new StackFrame(true)); if (!"Send".Equals(taskexeBean.getOpflag())) { TaskexeDao.getDao().sendTaskexeBean(taskexeBean); } return(taskexeBean); }