修改拷贝表单

This commit is contained in:
2022-07-19 16:30:03 +08:00
parent 53377d743b
commit e72488e587
3 changed files with 11 additions and 7 deletions
@@ -459,6 +459,7 @@ namespace IRaCIS.Core.Application.ViewModel
public Guid TrialId { get; set; }
public bool IsCopyOrigenalForms { get; set; }
public bool IsCopyFollowForms { get; set; }
public RequestReReadingType RequestReReadingType { get; set; }
@@ -1084,6 +1084,7 @@ namespace IRaCIS.Core.Application.Service.Allocation
RequestReReadingTime = DateTime.Now,
RequestReReadingUserId = _userInfo.Id,
IsCopyOrigenalForms = applyReReadingCommand.IsCopyOrigenalForms,
IsCopyFollowForms=applyReReadingCommand.IsCopyFollowForms,
RequestReReadingReason = applyReReadingCommand.RequestReReadingReason,
RequestReReadingType = applyReReadingCommand.RequestReReadingType,
@@ -1363,7 +1364,7 @@ namespace IRaCIS.Core.Application.Service.Allocation
newTask.AllocateTime = DateTime.Now;
//拷贝表单
if (visitTaskReReadingAppply.IsCopyOrigenalForms)
if (visitTaskReReadingAppply.IsCopyFollowForms)
{
var list = _readingTaskQuestionAnswerRepository.Where(t => t.VisitTaskId == influenceTask.Id).ToList();
@@ -1457,10 +1458,10 @@ namespace IRaCIS.Core.Application.Service.Allocation
_ = _readingTaskQuestionAnswerRepository.AddRangeAsync(list).Result;
}
//else if (origenalTask.ReadingCategory == ReadingCategory.Global)
//{
else if (origenalTask.ReadingCategory == ReadingCategory.Global)
{
//}
}
//else if (origenalTask.ReadingCategory == ReadingCategory.Judge)
//{
// newTask.JudgeResultImagePath = origenalTask.JudgeResultImagePath;
@@ -1476,10 +1477,7 @@ namespace IRaCIS.Core.Application.Service.Allocation
//}
//else
//{
//}
}
}