/// <summary> /// 二楼退库单据,产生任务,任务明细,更新货位错误标志, 返回任务ID。 /// </summary> /// /// <returns>TaskID</returns> public string CreateCancelBillInTask(string TaskID,string BillNo) { using (PersistentManager pm = new PersistentManager()) { BillDao dao = new BillDao(); string strTaskID = dao.CreateCancelBillInTask(TaskID, BillNo); TaskDao tdao = new TaskDao(); tdao.InsertTaskDetail(strTaskID); tdao.UpdateTaskState(strTaskID, "1");//更新任务开始执行 return strTaskID; } }
/// <summary> /// 更新任务状态 /// </summary> /// <param name="TaskID"></param> /// <param name="state"></param> public void UpdateTaskState(string TaskID, string state) { using (PersistentManager pm = new PersistentManager()) { TaskDao dao = new TaskDao(); dao.UpdateTaskState(TaskID, state); } }