diff --git a/IRaCIS.Core.Application/Service/Allocation/VisitTaskHelpeService.cs b/IRaCIS.Core.Application/Service/Allocation/VisitTaskHelpeService.cs index 113dcffb1..2c055e3b5 100644 --- a/IRaCIS.Core.Application/Service/Allocation/VisitTaskHelpeService.cs +++ b/IRaCIS.Core.Application/Service/Allocation/VisitTaskHelpeService.cs @@ -717,12 +717,12 @@ namespace IRaCIS.Core.Application.Service ReadingCategory = ReadingCategory.Judge, VisitTaskNum = firstTask.VisitTaskNum + ReadingCommon.TaskNumDic[ReadingCategory.Judge], TrialId = firstTask.TrialId, - TaskBlindName = firstTask.TaskName, Code = currentMaxCodeInt + 1, SourceSubjectVisitId = firstTask.SourceSubjectVisitId, SouceReadModuleId = firstTask.SouceReadModuleId, TaskCode = AppSettings.GetCodeStr(currentMaxCodeInt + 1, nameof(VisitTask)), TaskState = TaskState.Effect, + DoctorUserId = subjectUser == null ? null : subjectUser.DoctorUserId, TaskAllocationState = subjectUser == null ? TaskAllocationState.NotAllocate : TaskAllocationState.Allocated, AllocateTime = subjectUser == null ? null : DateTime.Now, @@ -763,10 +763,12 @@ namespace IRaCIS.Core.Application.Service IsUrgent = item.IsUrgent, VisitTaskNum = item.VisitNum + ReadingCommon.TaskNumDic[ReadingCategory.Global], TaskName = item.ReadingName, - DoctorUserId = originalTaskInfo.DoctorUserId, ArmEnum = originalTaskInfo.ArmEnum,//特殊 + + DoctorUserId = originalTaskInfo.DoctorUserId, AllocateTime = DateTime.Now, TaskAllocationState = TaskAllocationState.Allocated, + Code = currentMaxCodeInt + 1, TaskBlindName = item.ReadingName, SouceReadModuleId = item.ReadModuleId, @@ -794,6 +796,8 @@ namespace IRaCIS.Core.Application.Service TaskBlindName = item.ReadingName, TaskCode = AppSettings.GetCodeStr(currentMaxCodeInt + 1, nameof(VisitTask)), ReadingCategory = item.ReadingCategory + + }); singleTask.AllocateTime = DateTime.Now;