Пример #1
0
        public DateTime updateTime;            //发送成功时候的时间

        public TaskRecord(TASKSTAT_T taskRecordStat, SingleTask singleTask, ForkLiftWrapper forkLiftWrapper = null)
        {
            this.forkLiftWrapper = forkLiftWrapper;
            this.taskRecordStat  = taskRecordStat;
            this.singleTask      = singleTask;
            this.taskRecordName  = singleTask.taskName;
        }
Пример #2
0
 /// <summary>
 /// 添加任务记录
 /// </summary>
 public void addTaskRecord(TASKSTAT_T stat, SingleTask st)
 {
     /*TaskRecord tr = new TaskRecord();
      * tr.taskRecordStat = taskRecordStat;
      * tr.singleTask = st;
      * tr.taskRecordName = st.taskName;*/
     DBDao.getDao().InsertTaskRecord(stat, st);
 }
Пример #3
0
        public void setSingleTaskByTaskName(string taskName)
        {
            SingleTask st = DBDao.getDao().SelectSingleTaskByName(taskName);

            Console.WriteLine("TaskRecord taskName = " + taskName);
            if (st != null)
            {
                this.singleTask = st;
            }
            else
            {
                Console.WriteLine("TaskRecord Set Name error");
            }
        }
Пример #4
0
 /// <summary>
 /// 根据相关条件移除任务 包括更新任务列表 删除数据库
 /// </summary>
 public void removeTaskRecord(SingleTask st, TASKSTAT_T taskRecordStat)
 {
     DBDao.getDao().RemoveTaskRecord(st, taskRecordStat);
 }