From 08f1998e61f7f0c2820bebb93c62c21e57234f8f Mon Sep 17 00:00:00 2001
From: he <109787524@qq.com>
Date: Thu, 13 Mar 2025 15:22:40 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../IRaCIS.Core.Application.xml | 7 +++++
.../TrialSiteUser/DTO/TrialViewModel.cs | 5 ++++
.../TrialSiteUser/TrialConfigService.cs | 27 +++++++++++++++++++
3 files changed, 39 insertions(+)
diff --git a/IRaCIS.Core.Application/IRaCIS.Core.Application.xml b/IRaCIS.Core.Application/IRaCIS.Core.Application.xml
index d0278393a..59ed289c2 100644
--- a/IRaCIS.Core.Application/IRaCIS.Core.Application.xml
+++ b/IRaCIS.Core.Application/IRaCIS.Core.Application.xml
@@ -17452,6 +17452,13 @@
+
+
+ 修改项目的StudyNameList
+
+
+
+
访视 质疑状态 触发修改
diff --git a/IRaCIS.Core.Application/Service/TrialSiteUser/DTO/TrialViewModel.cs b/IRaCIS.Core.Application/Service/TrialSiteUser/DTO/TrialViewModel.cs
index ac1d53ad9..8fae897d5 100644
--- a/IRaCIS.Core.Application/Service/TrialSiteUser/DTO/TrialViewModel.cs
+++ b/IRaCIS.Core.Application/Service/TrialSiteUser/DTO/TrialViewModel.cs
@@ -235,7 +235,12 @@ namespace IRaCIS.Application.Contracts
public int Status { get; set; }
}
+ public class UpdateTrialStudyNameListInDto
+ {
+ public Guid TrialId { get; set; }
+ public List StudyNameList { get; set; } = new List();
+ }
public class TrialExtraConfig
{
#region QC 影像下载
diff --git a/IRaCIS.Core.Application/Service/TrialSiteUser/TrialConfigService.cs b/IRaCIS.Core.Application/Service/TrialSiteUser/TrialConfigService.cs
index 62f95650d..cb863c591 100644
--- a/IRaCIS.Core.Application/Service/TrialSiteUser/TrialConfigService.cs
+++ b/IRaCIS.Core.Application/Service/TrialSiteUser/TrialConfigService.cs
@@ -1384,5 +1384,32 @@ namespace IRaCIS.Core.Application
return new TrialPacsInfo() { Ip = optionsMonitor.CurrentValue.IP, Port = optionsMonitor.CurrentValue.Port, TrialCalledAE = $"EI{trialCode}" };
}
+
+ ///
+ /// 修改项目的StudyNameList
+ ///
+ ///
+ ///
+ [HttpPost]
+ public async Task UpdateTrialStudyNameList(UpdateTrialStudyNameListInDto inDto)
+ {
+
+
+ var studyNameList = await _trialRepository.Where(x=> x.Id == inDto.TrialId).Select(x=>x.StudyNameList).FirstOrDefaultAsync();
+
+ studyNameList = studyNameList.Where(x => x.IsChoose).ToList();
+ inDto.StudyNameList.ForEach(x =>
+ {
+ if (studyNameList.Any(y => y.Name == x.Name && y.EnName == x.EnName))
+ {
+ x.IsChoose = true;
+ }
+
+ });
+
+ await _trialRepository.BatchUpdateNoTrackingAsync(x => x.Id == inDto.TrialId, x => new Trial() { StudyNameList = inDto.StudyNameList });
+
+ return ResponseOutput.Ok();
+ }
}
}