PM 申请重阅流程
parent
a24625f304
commit
60501a5e11
|
@ -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 (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)
|
if (trialConfig.IsReadingTaskViewInOrder)
|
||||||
{
|
{
|
||||||
|
@ -1196,12 +1207,7 @@ namespace IRaCIS.Core.Application.Service
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// 不管有序 无序 都会 回退访视
|
|
||||||
if (origenalTask.ReadingCategory == ReadingCategory.Visit)
|
|
||||||
{
|
|
||||||
//执行类似一致性核查回退流程
|
|
||||||
await VisitBackAsync(origenalTask.SourceSubjectVisitId);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
//IR申请 PM 审批 注意这里有一致性分析的申请同意 不会回退访视,在此要生成影响的访视任务
|
//IR申请 PM 审批 注意这里有一致性分析的申请同意 不会回退访视,在此要生成影响的访视任务
|
||||||
|
@ -1345,6 +1351,7 @@ namespace IRaCIS.Core.Application.Service
|
||||||
if (origenalTask.ReadingCategory == ReadingCategory.Visit && origenalTask.JudgeVisitTaskId != null)
|
if (origenalTask.ReadingCategory == ReadingCategory.Visit && origenalTask.JudgeVisitTaskId != null)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
//裁判任务是否已阅片完成
|
//裁判任务是否已阅片完成
|
||||||
var judgeTask = await _visitTaskRepository.FirstOrDefaultAsync(t => t.Id == origenalTask.JudgeVisitTaskId);
|
var judgeTask = await _visitTaskRepository.FirstOrDefaultAsync(t => t.Id == origenalTask.JudgeVisitTaskId);
|
||||||
|
|
||||||
|
@ -1360,6 +1367,7 @@ namespace IRaCIS.Core.Application.Service
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// 不管是访视还是裁判 都会立马产生的新任务并分配出去
|
// 不管是访视还是裁判 都会立马产生的新任务并分配出去
|
||||||
await _visitTaskCommonService.AddTaskAsync(new GenerateTaskCommand()
|
await _visitTaskCommonService.AddTaskAsync(new GenerateTaskCommand()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue