This commit is contained in:
2022-07-06 17:07:04 +08:00
parent 2c92fafd81
commit 0c858b51e9
4 changed files with 22 additions and 15 deletions
@@ -198,13 +198,13 @@ namespace IRaCIS.Core.Application.Service
SubjectCode = c.Subject.Code,
TrialSiteCode = c.Subject.TrialSite.TrialSiteCode,
RelationDoctorUserList = c.SameVisitTaskList/*Where(t=>t.ReadingTaskState == ReadingTaskState.HaveSigned && t.TaskState == TaskState.Effect)*/.Select(c => new UserSimpleInfo()
{
FullName = c.DoctorUser.FullName,
UserCode = c.DoctorUser.UserCode,
UserId = c.DoctorUser.Id,
UserName = c.DoctorUser.UserName
}).ToList(),
//RelationDoctorUserList = c.SameVisitTaskList/*Where(t=>t.ReadingTaskState == ReadingTaskState.HaveSigned && t.TaskState == TaskState.Effect)*/.Select(c => new UserSimpleInfo()
//{
// FullName = c.DoctorUser.FullName,
// UserCode = c.DoctorUser.UserCode,
// UserId = c.DoctorUser.Id,
// UserName = c.DoctorUser.UserName
//}).ToList(),
IsHaveGeneratedTask = c.Subject.SubjectVisitTaskList.Any(t => t.IsAnalysisCreate && t.DoctorUserId == doctorUserId && t.TaskConsistentRuleId == filterObj.Id),
@@ -1303,15 +1303,21 @@ namespace IRaCIS.Core.Application.Service
switch (influenceTask.ReadingCategory)
{
case ReadingCategory.Visit:
break;
case ReadingCategory.Global:
case ReadingCategory.Judge:
break;
case ReadingCategory.Oncology:
if (influenceTask.ReadingTaskState == ReadingTaskState.HaveSigned)
{
influenceTask.TaskState = TaskState.HaveReturned;
}
else
{
influenceTask.TaskState = TaskState.Adbandon;
}
break;
case ReadingCategory.Judge:
default:
throw new BusinessValidationFailedException("不支持回退任务类型");
@@ -1328,6 +1334,7 @@ namespace IRaCIS.Core.Application.Service
influenceTask.AllocateTime = null;
influenceTask.TaskAllocationState = TaskAllocationState.NotAllocate;
break;
case ReadingCategory.Global:
case ReadingCategory.Judge:
case ReadingCategory.Oncology: