| | |
| | | _taskRepository = taskRepository; |
| | | } |
| | | |
| | | public void AddTaskExecuteDetail(int taskId, string description = "") |
| | | public void AddTaskExecuteDetail(Dt_Task task, string description = "") |
| | | { |
| | | try |
| | | { |
| | | bool isNormal = true; |
| | | Dt_Task task = _taskRepository.QueryFirst(x => x.TaskNum == taskId); |
| | | Dt_Task taskExist = _taskRepository.QueryFirst(x => x.TaskNum == task.TaskNum); |
| | | if (task == null) return; |
| | | int taskNum = task.TaskNum; |
| | | int taskState = task.TaskState; |
| | |
| | | IsManual = App.User?.UserId > 0, |
| | | IsNormal = isNormal, |
| | | TaskNum = taskNum, |
| | | TaskId = taskId, |
| | | TaskId = taskExist.TaskId, |
| | | TaskState = taskState, |
| | | Description = description, |
| | | CurrentAddress = task.CurrentAddress, |