增加影响状态
parent
b844290a8e
commit
5ec4c620ba
|
@ -1320,6 +1320,7 @@ namespace IRaCIS.Core.Application.Service.Allocation
|
||||||
throw new BusinessValidationFailedException("不支持重阅的任务类型");
|
throw new BusinessValidationFailedException("不支持重阅的任务类型");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region 这里时影响其他的任务 不包括申请的任务 申请的任务,在上面会统一处理
|
#region 这里时影响其他的任务 不包括申请的任务 申请的任务,在上面会统一处理
|
||||||
|
@ -1378,7 +1379,6 @@ namespace IRaCIS.Core.Application.Service.Allocation
|
||||||
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);
|
||||||
|
|
||||||
|
@ -1391,7 +1391,6 @@ namespace IRaCIS.Core.Application.Service.Allocation
|
||||||
{
|
{
|
||||||
judgeTask.TaskState = TaskState.Adbandon;
|
judgeTask.TaskState = TaskState.Adbandon;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -1926,33 +1925,82 @@ namespace IRaCIS.Core.Application.Service.Allocation
|
||||||
{
|
{
|
||||||
|
|
||||||
if (isReReading)
|
if (isReReading)
|
||||||
|
{
|
||||||
|
|
||||||
|
|
||||||
|
if (_userInfo.UserTypeEnumInt == (int)UserTypeEnum.ProjectManager)
|
||||||
{
|
{
|
||||||
//有序
|
//有序
|
||||||
if (trialConfig.IsReadingTaskViewInOrder)
|
if (trialConfig.IsReadingTaskViewInOrder)
|
||||||
{
|
{
|
||||||
|
if (influenceTask.ReadingTaskState == ReadingTaskState.HaveSigned)
|
||||||
if (_userInfo.UserTypeEnumInt == (int)UserTypeEnum.ProjectManager)
|
|
||||||
{
|
{
|
||||||
|
influenceTask.OPtType = ReReadingOrBackOptType.Return;
|
||||||
}
|
}
|
||||||
if (_userInfo.UserTypeEnumInt == (int)UserTypeEnum.SPM|| _userInfo.UserTypeEnumInt == (int)UserTypeEnum.CPM)
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
//无序
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (_userInfo.UserTypeEnumInt == (int)UserTypeEnum.ProjectManager)
|
influenceTask.OPtType = ReReadingOrBackOptType.Abandon;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
|
if (influenceTask.ReadingTaskState == ReadingTaskState.HaveSigned)
|
||||||
|
{
|
||||||
|
influenceTask.OPtType = ReReadingOrBackOptType.Return;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
influenceTask.OPtType = ReReadingOrBackOptType.Abandon;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (_userInfo.UserTypeEnumInt == (int)UserTypeEnum.SPM || _userInfo.UserTypeEnumInt == (int)UserTypeEnum.CPM)
|
if (_userInfo.UserTypeEnumInt == (int)UserTypeEnum.SPM || _userInfo.UserTypeEnumInt == (int)UserTypeEnum.CPM)
|
||||||
{
|
{
|
||||||
|
//有序
|
||||||
|
if (trialConfig.IsReadingTaskViewInOrder)
|
||||||
|
{
|
||||||
|
//申请的访视 要不是重阅重置,要不就是失效 不会存在取消分配
|
||||||
|
if (influenceTask.ReadingCategory == ReadingCategory.Visit && influenceTask.VisitTaskNum != filterObj.VisitTaskNum)
|
||||||
|
{
|
||||||
|
if (influenceTask.ReadingTaskState == ReadingTaskState.HaveSigned)
|
||||||
|
{
|
||||||
|
influenceTask.OPtType = ReReadingOrBackOptType.Return;
|
||||||
|
}
|
||||||
|
else if (influenceTask.ReadingTaskState == ReadingTaskState.Reading)
|
||||||
|
{
|
||||||
|
influenceTask.OPtType = ReReadingOrBackOptType.Abandon;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
influenceTask.OPtType = ReReadingOrBackOptType.CancelAssign;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if (influenceTask.ReadingTaskState == ReadingTaskState.HaveSigned)
|
||||||
|
{
|
||||||
|
influenceTask.OPtType = ReReadingOrBackOptType.Return;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
influenceTask.OPtType = ReReadingOrBackOptType.Abandon;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if (influenceTask.ReadingTaskState == ReadingTaskState.HaveSigned)
|
||||||
|
{
|
||||||
|
influenceTask.OPtType = ReReadingOrBackOptType.Return;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
influenceTask.OPtType = ReReadingOrBackOptType.Abandon;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
//PM退回
|
//PM退回
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue