修改
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
46704d5299
commit
9fbee7e0c9
|
|
@ -227,7 +227,8 @@ namespace IRaCIS.Core.Application.Service
|
|||
|
||||
if (await _visitTaskRepository.AnyAsync(x => x.TrialReadingCriterionId == readingPeriodSet.TrialReadingCriterionId && readModuleIds.Contains(x.SouceReadModuleId ?? default(Guid))
|
||||
&& x.TrialReadingCriterionId == readingPeriodSet.TrialReadingCriterionId
|
||||
&& x.ReadingTaskState == ReadingTaskState.HaveSigned && x.TaskState == TaskState.Effect))
|
||||
//&& x.ReadingTaskState == ReadingTaskState.HaveSigned
|
||||
&& x.TaskState == TaskState.Effect))
|
||||
{
|
||||
//---当前标准阅片已生成任务并且阅片完成,撤销失败。
|
||||
throw new BusinessValidationFailedException(_localizer["ReadingPeriodSet_TaskCompletedCannotRevoke"]);
|
||||
|
|
@ -239,8 +240,9 @@ namespace IRaCIS.Core.Application.Service
|
|||
if ( criterionInfo.IsArbitrationReading&& criterionInfo.ArbitrationRule== ArbitrationRule.Reading &&
|
||||
await _visitTaskRepository.AnyAsync(x => x.TrialReadingCriterionId == readingPeriodSet.TrialReadingCriterionId && visitIds.Contains(x.SourceSubjectVisitId ?? default(Guid))
|
||||
&& x.TrialReadingCriterionId == readingPeriodSet.TrialReadingCriterionId
|
||||
&& x.ReadingCategory== ReadingCategory.Judge
|
||||
&& x.ReadingTaskState == ReadingTaskState.HaveSigned && x.TaskState == TaskState.Effect) )
|
||||
&& x.ReadingCategory== ReadingCategory.Judge &&
|
||||
// x.ReadingTaskState == ReadingTaskState.HaveSigned &&
|
||||
x.TaskState == TaskState.Effect) )
|
||||
{
|
||||
//---当前标准阅片已生成任务并且阅片完成,撤销失败。
|
||||
throw new BusinessValidationFailedException(_localizer["ReadingPeriodSet_TaskCompletedCannotRevoke"]);
|
||||
|
|
@ -712,8 +714,8 @@ namespace IRaCIS.Core.Application.Service
|
|||
SiteIds = inDto.SiteIds,
|
||||
});
|
||||
|
||||
if (await _readingPeriodSetRepository.AnyAsync(x => x.Id != inDto.TrialReadingCriterionId && x.IsTakeEffect != ReadingPeriodStatus.Revocation
|
||||
&& x.TrialId == inDto.TrialId && x.ReadingPeriodName == inDto.ReadingPeriodName && x.TrialReadingCriterionId == inDto.TrialReadingCriterionId))
|
||||
if (await _readingPeriodSetRepository.AnyAsync(x => x.Id != inDto.ReadingPeriodSetId && x.IsTakeEffect != ReadingPeriodStatus.Revocation
|
||||
&& x.TrialId == inDto.TrialId && x.ReadingPeriodName == inDto.ReadingPeriodName && x.TrialReadingCriterionId == inDto.TrialReadingCriterionId))
|
||||
{
|
||||
|
||||
throw new BusinessValidationFailedException(_localizer["ReadingPeriodSet_NameDup"]);
|
||||
|
|
|
|||
Loading…
Reference in New Issue