任务修改
parent
9dcdb96d14
commit
cbefc3854e
|
@ -286,10 +286,21 @@ namespace IRaCIS.Core.Application.Service
|
|||
|
||||
foreach (var reReadingVisitTask in generateTaskCommand.ReReadingTaskList)
|
||||
{
|
||||
reReadingVisitTask.OriginalReReadingId = reReadingVisitTask.Id;
|
||||
reReadingVisitTask.Id = Guid.Empty;
|
||||
reReadingVisitTask. Code = currentMaxCodeInt + 1;
|
||||
reReadingVisitTask.TaskCode = AppSettings.GetCodeStr(currentMaxCodeInt + 1, nameof(VisitTask));
|
||||
//reReadingVisitTask.OriginalReReadingId = reReadingVisitTask.Id;
|
||||
//reReadingVisitTask.Id = Guid.Empty;
|
||||
//reReadingVisitTask. Code = currentMaxCodeInt + 1;
|
||||
//reReadingVisitTask.TaskCode = AppSettings.GetCodeStr(currentMaxCodeInt + 1, nameof(VisitTask));
|
||||
|
||||
await _visitTaskRepository.AddAsync(new VisitTask()
|
||||
{
|
||||
OriginalReReadingId=reReadingVisitTask.Id,
|
||||
Code = currentMaxCodeInt + 1,
|
||||
TaskCode = AppSettings.GetCodeStr(currentMaxCodeInt + 1, nameof(VisitTask)),
|
||||
AllocateTime=DateTime.Now,
|
||||
DoctorUserId= reReadingVisitTask.DoctorUserId
|
||||
|
||||
});
|
||||
|
||||
|
||||
//是否增加任务类别
|
||||
|
||||
|
@ -297,7 +308,6 @@ namespace IRaCIS.Core.Application.Service
|
|||
|
||||
_provider.Set<int>($"{trialId}_{StaticData.CacheKey.TaskMaxCode}", currentMaxCodeInt + 1, TimeSpan.FromMinutes(30));
|
||||
|
||||
await _visitTaskRepository.AddAsync(reReadingVisitTask);
|
||||
}
|
||||
|
||||
break;
|
||||
|
|
|
@ -904,11 +904,14 @@ namespace IRaCIS.Core.Application.Service
|
|||
{
|
||||
if(task.ReadingTaskState==ReadingTaskState.WaitReading || task.ReadingTaskState == ReadingTaskState.Reading)
|
||||
{
|
||||
|
||||
task.JudgeVisitTask.ReadingTaskState = ReadingTaskState.HaveCanceled;
|
||||
}
|
||||
else
|
||||
{
|
||||
task.JudgeVisitTask.IsJudgeTaskReturn = true;
|
||||
|
||||
task.JudgeVisitTask.ReadingTaskState = ReadingTaskState.HaveReturned;
|
||||
|
||||
//task.JudgeVisitTask.IsJudgeTaskReturn = true;
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
@ -37,8 +37,7 @@ namespace IRaCIS.Core.Domain.Share
|
|||
//已分配
|
||||
Allocated = 2,
|
||||
|
||||
//已取消
|
||||
HaveCanceled=3
|
||||
|
||||
}
|
||||
|
||||
public enum Arm
|
||||
|
@ -101,7 +100,12 @@ namespace IRaCIS.Core.Domain.Share
|
|||
|
||||
Reading = 1,
|
||||
|
||||
HaveSigned=2
|
||||
HaveSigned = 2,
|
||||
|
||||
// 裁判任务,没做,或者做了没签名 已取消
|
||||
HaveCanceled = 3,
|
||||
|
||||
HaveReturned = 4
|
||||
}
|
||||
|
||||
//
|
||||
|
@ -109,8 +113,10 @@ namespace IRaCIS.Core.Domain.Share
|
|||
{
|
||||
Default = 0,
|
||||
|
||||
//IR 申请
|
||||
DocotorApply = 1,
|
||||
|
||||
//PM 申请
|
||||
TrialGroupApply = 2
|
||||
}
|
||||
|
||||
|
|
|
@ -134,8 +134,11 @@ namespace IRaCIS.Core.Domain.Models
|
|||
|
||||
public TaskAllocationRule DoctorTaskAllocationRule { get; set; }
|
||||
|
||||
|
||||
//裁判任务已读,但是回退了 暂时废弃
|
||||
public bool IsJudgeTaskReturn { get; set; }
|
||||
|
||||
|
||||
//是否回退过
|
||||
public bool IsReturned { get; set; }
|
||||
|
||||
|
|
|
@ -330,13 +330,13 @@ namespace IRaCIS.Core.Domain.Models
|
|||
|
||||
public bool IsFollowJudgeTaskAutoAssign { get; set; }
|
||||
|
||||
public TaskAllocateDefaultState FollowJudgeTaskAutoAssignDefaultState { get; set; }
|
||||
public TaskAllocateDefaultState FollowJudgeTaskAutoAssignDefaultState { get; set; } = TaskAllocateDefaultState.Allocated;
|
||||
|
||||
//后续访视自动分配默认状态
|
||||
public TaskAllocateDefaultState FollowVisitAutoAssignDefaultState { get; set; }
|
||||
public TaskAllocateDefaultState FollowVisitAutoAssignDefaultState { get; set; } = TaskAllocateDefaultState.Allocated;
|
||||
|
||||
//后续全局自动分配默认状态
|
||||
public TaskAllocateDefaultState FollowGlobalVisitAutoAssignDefaultState { get; set; }
|
||||
public TaskAllocateDefaultState FollowGlobalVisitAutoAssignDefaultState { get; set; } = TaskAllocateDefaultState.Allocated;
|
||||
|
||||
//读片任务显示规则
|
||||
|
||||
|
|
Loading…
Reference in New Issue