修复bug
This commit is contained in:
@@ -129,7 +129,7 @@ namespace IRaCIS.Core.Application.ViewModel
|
||||
public Guid? Id { get; set; }
|
||||
public Guid TrialId { get; set; }
|
||||
|
||||
public Guid EnrollId { get; set; }
|
||||
//public Guid EnrollId { get; set; }
|
||||
|
||||
[NotDefault]
|
||||
public Guid DoctorUserId { get; set; }
|
||||
|
||||
@@ -154,14 +154,18 @@ namespace IRaCIS.Core.Application.Service
|
||||
|
||||
if (_taskAllocationRuleRepository.Where(t => t.TrialId == trialId && t.IsEnable && t.IsJudgeDoctor == false).Count() < 2)
|
||||
{
|
||||
throw new BusinessValidationFailedException("能参与读片的医生数量必须大于2,自动分配任务中止");
|
||||
//throw new BusinessValidationFailedException("能参与读片的医生数量必须>=2,自动分配任务中止");
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
|
||||
if (!(assignConfigList.Any(t => t.ArmEnum == Arm.DoubleReadingArm1) && allocateSubjectArmList.Any(t => t.ArmEnum == Arm.DoubleReadingArm2)))
|
||||
{
|
||||
throw new BusinessValidationFailedException("该受试者阅片医生未配置完成");
|
||||
//throw new BusinessValidationFailedException("该受试者阅片医生未配置完成");
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
#endregion
|
||||
@@ -394,7 +398,9 @@ namespace IRaCIS.Core.Application.Service
|
||||
{
|
||||
if (_taskAllocationRuleRepository.Where(t => t.TrialId == trialId && t.IsEnable).Count() < 2)
|
||||
{
|
||||
throw new BusinessValidationFailedException("能参与读片的医生数量必须大于2,自动分配任务中止");
|
||||
//throw new BusinessValidationFailedException("能参与读片的医生数量必须>=2,自动分配任务中止");
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
//配置了医生
|
||||
|
||||
Reference in New Issue
Block a user