临床数据签名 增加逻辑: 当前临床数据状态不是已核查状态,不允许签名!

Test.EIImageViewer
{872297557@qq.com} 2023-01-16 11:55:56 +08:00
parent 8e22284833
commit 40bb3897f1
2 changed files with 10 additions and 1 deletions

View File

@ -7,6 +7,7 @@ using IRaCIS.Core.Application.Service.Inspection.DTO;
using Panda.DynamicWebApi.Attributes;
using Microsoft.Extensions.DependencyInjection;
using System.Linq.Expressions;
using IRaCIS.Core.Infrastructure;
namespace IRaCIS.Application.Services
{
@ -261,8 +262,14 @@ namespace IRaCIS.Application.Services
public async Task<IResponseOutput> ReadClinicalDataSign(ReadingClinicalDataSignIndto inDto)
{
var data = await _readingClinicalDataRepository.FirstOrDefaultAsync(t => t.Id == inDto.ReadingClinicalDataId);
if (data.ReadingClinicalDataState == ReadingClinicalDataStatus.HaveChecked)
{
throw new BusinessValidationFailedException("当前临床数据状态不是已核查状态,不允许签名!");
}
data.IsSign = true;
data.ReadingClinicalDataState = ReadingClinicalDataStatus.HaveSigned;

View File

@ -414,7 +414,9 @@ namespace IRaCIS.Core.Infra.EFCore.Common
ObjectRelationParentId = entity.TrialCriterionId,
ExtraIndentification=extraIdentification
ObjectRelationParentId2 = entity.OrganInfoId,
ExtraIndentification =extraIdentification
});
}