S-95
parent
fd25c99609
commit
f4c8d6c999
|
@ -8,6 +8,7 @@ using IRaCIS.Core.Application.Service;
|
||||||
using IRaCIS.Core.Application.ViewModel;
|
using IRaCIS.Core.Application.ViewModel;
|
||||||
using IRaCIS.Core.Infrastructure;
|
using IRaCIS.Core.Infrastructure;
|
||||||
using IRaCIS.Core.Application.Filter;
|
using IRaCIS.Core.Application.Filter;
|
||||||
|
using IRaCIS.Core.Domain.Models;
|
||||||
|
|
||||||
namespace IRaCIS.Application.Services
|
namespace IRaCIS.Application.Services
|
||||||
{
|
{
|
||||||
|
@ -118,6 +119,13 @@ namespace IRaCIS.Application.Services
|
||||||
[HttpPost]
|
[HttpPost]
|
||||||
public async Task<bool> ChangeCutOffVisit(ChangeCutOffVisitInDto inDto)
|
public async Task<bool> ChangeCutOffVisit(ChangeCutOffVisitInDto inDto)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
if (await _readModuleRepository.AnyAsync(x => x.Id == inDto.Id && x.IsCRCConfirm))
|
||||||
|
{
|
||||||
|
//---CRC已经确认临床数据 不允许编辑
|
||||||
|
throw new BusinessValidationFailedException(_localizer["ReadModule_CRCConfirmCanNtoEdit"]);
|
||||||
|
}
|
||||||
|
|
||||||
await _readModuleRepository.UpdatePartialFromQueryAsync(x => x.Id == inDto.Id, x => new ReadModule() {
|
await _readModuleRepository.UpdatePartialFromQueryAsync(x => x.Id == inDto.Id, x => new ReadModule() {
|
||||||
SubjectVisitId=inDto.SubjectVisitIdId,
|
SubjectVisitId=inDto.SubjectVisitIdId,
|
||||||
ModuleName=inDto.Name,
|
ModuleName=inDto.Name,
|
||||||
|
|
Loading…
Reference in New Issue