添加分割保存状态
This commit is contained in:
@@ -12091,6 +12091,11 @@
|
||||
影像标记
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:IRaCIS.Core.Application.Service.Reading.Dto.ReadingQuestionTrialView.ImageMarkTypeEnum">
|
||||
<summary>
|
||||
影像标记类型
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:IRaCIS.Core.Application.Service.Reading.Dto.ReadingQuestionTrialView.ImageTool">
|
||||
<summary>
|
||||
影像工具
|
||||
@@ -15268,6 +15273,13 @@
|
||||
<param name="segmentationId"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:IRaCIS.Core.Application.Service.SegmentationService.ChangeSegmentationSavedStatus(IRaCIS.Core.Application.ViewModel.ChangeSegmentationSavedStatusInDto)">
|
||||
<summary>
|
||||
修改分割组的保存状态
|
||||
</summary>
|
||||
<param name="inDto"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:IRaCIS.Core.Application.Service.SegmentationService.GetSegmentList(IRaCIS.Core.Application.ViewModel.SegmentQuery)">
|
||||
<summary>
|
||||
获取分割
|
||||
@@ -17039,17 +17051,17 @@
|
||||
</member>
|
||||
<member name="F:IRaCIS.Core.Application.ViewModel.AccessToDialogueEnum.Question">
|
||||
<summary>
|
||||
质疑
|
||||
����
|
||||
</summary>
|
||||
</member>
|
||||
<member name="F:IRaCIS.Core.Application.ViewModel.AccessToDialogueEnum.Consistency">
|
||||
<summary>
|
||||
一致性核查
|
||||
һ���Ժ˲�
|
||||
</summary>
|
||||
</member>
|
||||
<member name="T:IRaCIS.Core.Application.ViewModel.CopyFrontAuditConfigItemDto">
|
||||
<summary>
|
||||
复制
|
||||
����
|
||||
</summary>
|
||||
</member>
|
||||
<member name="T:IRaCIS.Core.Application.ViewModel.SystemNoticeView">
|
||||
@@ -17827,6 +17839,26 @@
|
||||
任务类型
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:IRaCIS.Core.Application.ViewModel.ChangeSegmentationSavedStatusInDto.IsSaved">
|
||||
<summary>
|
||||
是否保存
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:IRaCIS.Core.Application.ViewModel.SegmentationAddOrEdit.IsSaved">
|
||||
<summary>
|
||||
是否保存
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:IRaCIS.Core.Application.ViewModel.SegmentBindingView.SegmentationName">
|
||||
<summary>
|
||||
分割分组名称
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:IRaCIS.Core.Application.ViewModel.SegmentBindingView.SegmentName">
|
||||
<summary>
|
||||
SegmentName
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:IRaCIS.Core.Application.ViewModel.SegmentAddOrEdit.SegmentJson">
|
||||
<summary>
|
||||
分割的Json
|
||||
|
||||
@@ -19,6 +19,16 @@ public class SegmentationView : SegmentationAddOrEdit
|
||||
}
|
||||
|
||||
|
||||
public class ChangeSegmentationSavedStatusInDto
|
||||
{
|
||||
public Guid Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否保存
|
||||
/// </summary>
|
||||
public bool IsSaved { get; set; } = false;
|
||||
}
|
||||
|
||||
public class SegmentationAddOrEdit
|
||||
{
|
||||
public Guid? Id { get; set; }
|
||||
@@ -40,7 +50,12 @@ public class SegmentationAddOrEdit
|
||||
public Guid TrialId { get; set; }
|
||||
|
||||
public Guid VisitTaskId { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 是否保存
|
||||
/// </summary>
|
||||
public bool IsSaved { get; set; } = false;
|
||||
}
|
||||
|
||||
public class SegmentationQuery:PageInput
|
||||
{
|
||||
|
||||
@@ -93,6 +93,23 @@ public class SegmentationService(IRepository<Segmentation> _segmentationReposito
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 修改分割组的保存状态
|
||||
/// </summary>
|
||||
/// <param name="inDto"></param>
|
||||
/// <returns></returns>
|
||||
[HttpPost]
|
||||
public async Task<IResponseOutput> ChangeSegmentationSavedStatus(ChangeSegmentationSavedStatusInDto inDto)
|
||||
{
|
||||
await _segmentationRepository.UpdatePartialFromQueryAsync(x => x.Id == inDto.Id, t => new Segmentation
|
||||
{
|
||||
IsSaved = inDto.IsSaved
|
||||
});
|
||||
await _segmentationRepository.SaveChangesAsync();
|
||||
return ResponseOutput.Ok();
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 获取分割
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user