| | |
| | | var taskForm = _service.GetByID(input.ID); |
| | | if (taskForm == null) |
| | | { |
| | | throw YOops.Oh(eResultCode.Alert, ErrorCodes.D001, $"ID:{input.ID} 数据不存在"); |
| | | throw YOops.Oh(eResultCode.Alert, InternalErrorCodes.D001, $"ID:{input.ID} 数据不存在"); |
| | | } |
| | | var equipment = new Yw.Service.Equipment().GetByID(taskForm.EquipmentID); |
| | | var taskLogList = new Service.RepairTaskLog().GetByFormID(input.ID); |
| | |
| | | var taskForm = _service.GetByID(input.ID); |
| | | if (taskForm == null) |
| | | { |
| | | throw YOops.Oh(eResultCode.Alert, ErrorCodes.D001, $"ID:{input.ID} 数据不存在"); |
| | | throw YOops.Oh(eResultCode.Alert, InternalErrorCodes.D001, $"ID:{input.ID} 数据不存在"); |
| | | } |
| | | if (taskForm.FormStatus != eTaskStatus.Assigned) |
| | | { |
| | | throw YOops.Oh(eResultCode.Alert, ErrorCodes.V001, $"ID:{input.ID} 表单状态错误"); |
| | | throw YOops.Oh(eResultCode.Alert, InternalErrorCodes.V001, $"ID:{input.ID} 表单状态错误"); |
| | | } |
| | | var equipment = new Yw.Service.Equipment().GetByID(taskForm.EquipmentID); |
| | | var taskLogList = new Service.RepairTaskLog().GetByFormID(input.ID); |
| | |
| | | var taskForm = _service.GetByID(input.ID); |
| | | if (taskForm == null) |
| | | { |
| | | throw YOops.Oh(eResultCode.Alert, ErrorCodes.D001, $"ID:{input.ID} 数据不存在"); |
| | | throw YOops.Oh(eResultCode.Alert, InternalErrorCodes.D001, $"ID:{input.ID} 数据不存在"); |
| | | } |
| | | if (taskForm.FormStatus < eTaskStatus.Received || taskForm.FormStatus >= eTaskStatus.Finished) |
| | | { |
| | | throw YOops.Oh(eResultCode.Alert, ErrorCodes.V001, $"ID:{input.ID} 表单状态错误"); |
| | | throw YOops.Oh(eResultCode.Alert, InternalErrorCodes.V001, $"ID:{input.ID} 表单状态错误"); |
| | | } |
| | | var equipment = new Yw.Service.Equipment().GetByID(taskForm.EquipmentID); |
| | | var taskLogList = new Service.RepairTaskLog().GetByFormID(input.ID); |
| | |
| | | var taskForm = _service.GetByID(input.ID); |
| | | if (taskForm == null) |
| | | { |
| | | throw YOops.Oh(eResultCode.Alert, ErrorCodes.D001, $"ID:{input.ID} 数据不存在"); |
| | | throw YOops.Oh(eResultCode.Alert, InternalErrorCodes.D001, $"ID:{input.ID} 数据不存在"); |
| | | } |
| | | if (taskForm.FormStatus < eTaskStatus.Finished) |
| | | { |
| | | throw YOops.Oh(eResultCode.Alert, ErrorCodes.V001, $"ID:{input.ID} 表单状态错误"); |
| | | throw YOops.Oh(eResultCode.Alert, InternalErrorCodes.V001, $"ID:{input.ID} 表单状态错误"); |
| | | } |
| | | var equipment = new Yw.Service.Equipment().GetByID(taskForm.EquipmentID); |
| | | var taskLogList = new Service.RepairTaskLog().GetByFormID(input.ID); |