添加分割保存状态

Test_IRC_Net8
he 2026-03-30 10:54:09 +08:00
parent 3f9e506d09
commit 25f62a35ee
7 changed files with 22144 additions and 4 deletions

View File

@ -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>
质疑
<EFBFBD><EFBFBD><EFBFBD><EFBFBD>
</summary>
</member>
<member name="F:IRaCIS.Core.Application.ViewModel.AccessToDialogueEnum.Consistency">
<summary>
一致性核查
һ<EFBFBD><EFBFBD><EFBFBD>Ժ˲<EFBFBD>
</summary>
</member>
<member name="T:IRaCIS.Core.Application.ViewModel.CopyFrontAuditConfigItemDto">
<summary>
复制
<EFBFBD><EFBFBD><EFBFBD><EFBFBD>
</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

View File

@ -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
{

View File

@ -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>

View File

@ -55,5 +55,10 @@ public class Segmentation : BaseFullDeleteAuditEntity
[MaxLength]
public string SEGUrl { get; set; } = string.Empty;
/// <summary>
/// 是否保存
/// </summary>
public bool IsSaved { get; set; } = false;
}

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,38 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace IRaCIS.Core.Infra.EFCore.Migrations
{
/// <inheritdoc />
public partial class SegmentationSaved : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<bool>(
name: "IsSaved",
table: "Segmentation",
type: "bit",
nullable: false,
defaultValue: false);
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropForeignKey(
name: "FK_SegmentBinding_Segment_SegmentId",
table: "SegmentBinding");
migrationBuilder.DropForeignKey(
name: "FK_SegmentBinding_Segmentation_SegmentationId",
table: "SegmentBinding");
migrationBuilder.DropColumn(
name: "IsSaved",
table: "Segmentation");
}
}
}

View File

@ -9402,6 +9402,9 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
b.Property<bool>("IsDeleted")
.HasColumnType("bit");
b.Property<bool>("IsSaved")
.HasColumnType("bit");
b.Property<string>("SEGUrl")
.IsRequired()
.HasColumnType("nvarchar(max)");
@ -19097,7 +19100,23 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.HasOne("IRaCIS.Core.Domain.Models.Segment", "Segment")
.WithMany()
.HasForeignKey("SegmentId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.HasOne("IRaCIS.Core.Domain.Models.Segmentation", "Segmentation")
.WithMany()
.HasForeignKey("SegmentationId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.Navigation("CreateUserRole");
b.Navigation("Segment");
b.Navigation("Segmentation");
});
modelBuilder.Entity("IRaCIS.Core.Domain.Models.Segmentation", b =>