PM 申请重阅流程

Uat_Study
hang 2022-07-18 10:35:26 +08:00
parent a24625f304
commit 60501a5e11
1 changed files with 17 additions and 9 deletions

View File

@ -1096,6 +1096,17 @@ namespace IRaCIS.Core.Application.Service
if (visitTaskReReadingAppply.RequestReReadingType == RequestReReadingType.TrialGroupApply && (_userInfo.UserTypeEnumInt == (int)UserTypeEnum.SPM || _userInfo.UserTypeEnumInt == (int)UserTypeEnum.CPM))
{
// 不管有序 无序 都会 回退访视
if (origenalTask.ReadingCategory == ReadingCategory.Visit)
{
//执行类似一致性核查回退流程
await VisitBackAsync(origenalTask.SourceSubjectVisitId);
}
else
{
throw new BusinessValidationFailedException("仅允许同意访视类型的任务重阅");
}
//有序阅片
if (trialConfig.IsReadingTaskViewInOrder)
{
@ -1196,12 +1207,7 @@ namespace IRaCIS.Core.Application.Service
}
// 不管有序 无序 都会 回退访视
if (origenalTask.ReadingCategory == ReadingCategory.Visit)
{
//执行类似一致性核查回退流程
await VisitBackAsync(origenalTask.SourceSubjectVisitId);
}
}
//IR申请 PM 审批 注意这里有一致性分析的申请同意 不会回退访视,在此要生成影响的访视任务
@ -1345,6 +1351,7 @@ namespace IRaCIS.Core.Application.Service
if (origenalTask.ReadingCategory == ReadingCategory.Visit && origenalTask.JudgeVisitTaskId != null)
{
//裁判任务是否已阅片完成
var judgeTask = await _visitTaskRepository.FirstOrDefaultAsync(t => t.Id == origenalTask.JudgeVisitTaskId);
@ -1360,6 +1367,7 @@ namespace IRaCIS.Core.Application.Service
}
// 不管是访视还是裁判 都会立马产生的新任务并分配出去
await _visitTaskCommonService.AddTaskAsync(new GenerateTaskCommand()
{