| | |
| | | active = steps.IndexOf(TaskState) + 1; |
| | | |
| | | } |
| | | string curradd = task.CurrentAddress; |
| | | string nextadd = task.NextAddress; |
| | | content = WebResponseContent.Instance.OK(data: new { active, list,curradd, nextadd }); |
| | | if (task == null) |
| | | { |
| | | string curradd = task_h.CurrentAddress; |
| | | string nextadd = task_h.NextAddress; |
| | | string rgvtasktype = task_h.RGVTaskType.ToString(); |
| | | content = WebResponseContent.Instance.OK(data: new { active, list, curradd, nextadd, rgvtasktype }); |
| | | } |
| | | else |
| | | { |
| | | string curradd = task.CurrentAddress; |
| | | string nextadd = task.NextAddress; |
| | | string rgvtasktype = task.RGVTaskType.ToString(); |
| | | content = WebResponseContent.Instance.OK(data: new { active, list, curradd, nextadd, rgvtasktype }); |
| | | } |
| | | } |
| | | catch (Exception ex) |
| | | { |