Compare commits
2 Commits
59be897fd8
...
3c2701fe9d
| Author | SHA1 | Date |
|---|---|---|
|
|
3c2701fe9d | |
|
|
01058d42d3 |
|
|
@ -15149,6 +15149,66 @@
|
||||||
<param name="readModuleId"></param>
|
<param name="readModuleId"></param>
|
||||||
<returns></returns>
|
<returns></returns>
|
||||||
</member>
|
</member>
|
||||||
|
<member name="T:IRaCIS.Core.Application.Service.SegmentationService">
|
||||||
|
<summary>
|
||||||
|
分割
|
||||||
|
</summary>
|
||||||
|
<param name="_segmentationRepository"></param>
|
||||||
|
<param name="_mapper"></param>
|
||||||
|
<param name="_userInfo"></param>
|
||||||
|
<param name="_localizer"></param>
|
||||||
|
</member>
|
||||||
|
<member name="M:IRaCIS.Core.Application.Service.SegmentationService.#ctor(IRaCIS.Core.Infra.EFCore.IRepository{IRaCIS.Core.Domain.Models.Segmentation},IRaCIS.Core.Infra.EFCore.IRepository{IRaCIS.Core.Domain.Models.Segment},AutoMapper.IMapper,IRaCIS.Core.Domain.Share.IUserInfo,Microsoft.Extensions.Localization.IStringLocalizer)">
|
||||||
|
<summary>
|
||||||
|
分割
|
||||||
|
</summary>
|
||||||
|
<param name="_segmentationRepository"></param>
|
||||||
|
<param name="_mapper"></param>
|
||||||
|
<param name="_userInfo"></param>
|
||||||
|
<param name="_localizer"></param>
|
||||||
|
</member>
|
||||||
|
<member name="M:IRaCIS.Core.Application.Service.SegmentationService.GetSegmentationList(IRaCIS.Core.Application.ViewModel.SegmentationQuery)">
|
||||||
|
<summary>
|
||||||
|
获取分割组
|
||||||
|
</summary>
|
||||||
|
<param name="inQuery"></param>
|
||||||
|
<returns></returns>
|
||||||
|
</member>
|
||||||
|
<member name="M:IRaCIS.Core.Application.Service.SegmentationService.AddOrUpdateSegmentation(IRaCIS.Core.Application.ViewModel.SegmentationAddOrEdit)">
|
||||||
|
<summary>
|
||||||
|
新增修改分割组
|
||||||
|
</summary>
|
||||||
|
<param name="addOrEditSegmentation"></param>
|
||||||
|
<returns></returns>
|
||||||
|
</member>
|
||||||
|
<member name="M:IRaCIS.Core.Application.Service.SegmentationService.DeleteSegmentation(System.Guid)">
|
||||||
|
<summary>
|
||||||
|
删除分割组
|
||||||
|
</summary>
|
||||||
|
<param name="segmentationId"></param>
|
||||||
|
<returns></returns>
|
||||||
|
</member>
|
||||||
|
<member name="M:IRaCIS.Core.Application.Service.SegmentationService.GetSegmentList(IRaCIS.Core.Application.ViewModel.SegmentQuery)">
|
||||||
|
<summary>
|
||||||
|
获取分割
|
||||||
|
</summary>
|
||||||
|
<param name="inQuery"></param>
|
||||||
|
<returns></returns>
|
||||||
|
</member>
|
||||||
|
<member name="M:IRaCIS.Core.Application.Service.SegmentationService.AddOrUpdateSegment(IRaCIS.Core.Application.ViewModel.SegmentAddOrEdit)">
|
||||||
|
<summary>
|
||||||
|
新增修改分割
|
||||||
|
</summary>
|
||||||
|
<param name="addOrEditSegment"></param>
|
||||||
|
<returns></returns>
|
||||||
|
</member>
|
||||||
|
<member name="M:IRaCIS.Core.Application.Service.SegmentationService.DeleteSegment(System.Guid)">
|
||||||
|
<summary>
|
||||||
|
删除分割
|
||||||
|
</summary>
|
||||||
|
<param name="inQuery"></param>
|
||||||
|
<returns></returns>
|
||||||
|
</member>
|
||||||
<member name="T:IRaCIS.Core.Application.Service.ShortcutKeyService">
|
<member name="T:IRaCIS.Core.Application.Service.ShortcutKeyService">
|
||||||
<summary>
|
<summary>
|
||||||
快捷键服务
|
快捷键服务
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,92 @@
|
||||||
|
|
||||||
|
//--------------------------------------------------------------------
|
||||||
|
// 此代码由liquid模板自动生成 byzhouhang 20240909
|
||||||
|
// 生成时间 2026-03-10 05:44:27Z
|
||||||
|
// 对此文件的更改可能会导致不正确的行为,并且如果重新生成代码,这些更改将会丢失。
|
||||||
|
//--------------------------------------------------------------------
|
||||||
|
using System;
|
||||||
|
using IRaCIS.Core.Domain.Share;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
namespace IRaCIS.Core.Application.ViewModel;
|
||||||
|
|
||||||
|
public class SegmentView : SegmentAddOrEdit
|
||||||
|
{
|
||||||
|
|
||||||
|
public DateTime CreateTime { get; set; }
|
||||||
|
|
||||||
|
public DateTime UpdateTime { get; set; }
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public class SegmentAddOrEdit
|
||||||
|
{
|
||||||
|
public Guid? Id { get; set; }
|
||||||
|
|
||||||
|
public decimal? AvgValue { get; set; }
|
||||||
|
|
||||||
|
public string ColorRgb { get; set; }
|
||||||
|
|
||||||
|
public decimal? MTV { get; set; }
|
||||||
|
|
||||||
|
public decimal? MajorAxis { get; set; }
|
||||||
|
|
||||||
|
public decimal? MaxValue { get; set; }
|
||||||
|
|
||||||
|
public decimal? Median { get; set; }
|
||||||
|
|
||||||
|
public decimal? MinValue { get; set; }
|
||||||
|
|
||||||
|
public decimal? Peak { get; set; }
|
||||||
|
|
||||||
|
public int SegmentMumber { get; set; }
|
||||||
|
|
||||||
|
public string SegmentName { get; set; }
|
||||||
|
|
||||||
|
public Guid SegmentationId { get; set; }
|
||||||
|
|
||||||
|
public decimal? ShortAxis { get; set; }
|
||||||
|
|
||||||
|
public decimal? TLG { get; set; }
|
||||||
|
|
||||||
|
public decimal? Variance { get; set; }
|
||||||
|
|
||||||
|
public decimal? Volume { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class SegmentQuery:PageInput
|
||||||
|
{
|
||||||
|
public decimal? AvgValue { get; set; }
|
||||||
|
|
||||||
|
public string? ColorRgb { get; set; }
|
||||||
|
|
||||||
|
public decimal? MTV { get; set; }
|
||||||
|
|
||||||
|
public decimal? MajorAxis { get; set; }
|
||||||
|
|
||||||
|
public decimal? MaxValue { get; set; }
|
||||||
|
|
||||||
|
public decimal? Median { get; set; }
|
||||||
|
|
||||||
|
public decimal? MinValue { get; set; }
|
||||||
|
|
||||||
|
public decimal? Peak { get; set; }
|
||||||
|
|
||||||
|
public int? SegmentMumber { get; set; }
|
||||||
|
|
||||||
|
public string? SegmentName { get; set; }
|
||||||
|
|
||||||
|
public Guid? SegmentationId { get; set; }
|
||||||
|
|
||||||
|
public decimal? ShortAxis { get; set; }
|
||||||
|
|
||||||
|
public decimal? TLG { get; set; }
|
||||||
|
|
||||||
|
public decimal? Variance { get; set; }
|
||||||
|
|
||||||
|
public decimal? Volume { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -0,0 +1,68 @@
|
||||||
|
|
||||||
|
//--------------------------------------------------------------------
|
||||||
|
// 此代码由liquid模板自动生成 byzhouhang 20240909
|
||||||
|
// 生成时间 2026-03-10 06:17:31Z
|
||||||
|
// 对此文件的更改可能会导致不正确的行为,并且如果重新生成代码,这些更改将会丢失。
|
||||||
|
//--------------------------------------------------------------------
|
||||||
|
using System;
|
||||||
|
using IRaCIS.Core.Domain.Share;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
namespace IRaCIS.Core.Application.ViewModel;
|
||||||
|
|
||||||
|
public class SegmentationView : SegmentationAddOrEdit
|
||||||
|
{
|
||||||
|
|
||||||
|
public DateTime CreateTime { get; set; }
|
||||||
|
|
||||||
|
public DateTime UpdateTime { get; set; }
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public class SegmentationAddOrEdit
|
||||||
|
{
|
||||||
|
public Guid? Id { get; set; }
|
||||||
|
|
||||||
|
public string SEGUrl { get; set; }
|
||||||
|
|
||||||
|
public string SegmentationJson { get; set; }
|
||||||
|
|
||||||
|
public string SegmentationName { get; set; }
|
||||||
|
|
||||||
|
public Guid SeriesId { get; set; }
|
||||||
|
|
||||||
|
public Guid StudyId { get; set; }
|
||||||
|
|
||||||
|
public Guid SubjectId { get; set; }
|
||||||
|
|
||||||
|
public Guid SubjectVisitId { get; set; }
|
||||||
|
|
||||||
|
public Guid TrialId { get; set; }
|
||||||
|
|
||||||
|
public Guid VisitTaksId { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class SegmentationQuery:PageInput
|
||||||
|
{
|
||||||
|
public string? SEGUrl { get; set; }
|
||||||
|
|
||||||
|
public string? SegmentationJson { get; set; }
|
||||||
|
|
||||||
|
public string? SegmentationName { get; set; }
|
||||||
|
|
||||||
|
public Guid? SeriesId { get; set; }
|
||||||
|
|
||||||
|
public Guid? StudyId { get; set; }
|
||||||
|
|
||||||
|
public Guid? SubjectId { get; set; }
|
||||||
|
|
||||||
|
public Guid? SubjectVisitId { get; set; }
|
||||||
|
|
||||||
|
public Guid? TrialId { get; set; }
|
||||||
|
|
||||||
|
public Guid? VisitTaksId { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -0,0 +1,30 @@
|
||||||
|
|
||||||
|
//--------------------------------------------------------------------
|
||||||
|
// 此代码由liquid模板自动生成 byzhouhang 20240909
|
||||||
|
// 生成时间 2026-03-10 06:17:31Z
|
||||||
|
// 对此文件的更改可能会导致不正确的行为,并且如果重新生成代码,这些更改将会丢失。
|
||||||
|
//--------------------------------------------------------------------
|
||||||
|
using System;
|
||||||
|
using IRaCIS.Core.Infrastructure.Extention;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using IRaCIS.Core.Application.ViewModel;
|
||||||
|
namespace IRaCIS.Core.Application.Interfaces;
|
||||||
|
|
||||||
|
public interface ISegmentationService
|
||||||
|
{
|
||||||
|
|
||||||
|
Task<PageOutput<SegmentationView>> GetSegmentationList(SegmentationQuery inQuery);
|
||||||
|
|
||||||
|
Task<IResponseOutput> AddOrUpdateSegmentation(SegmentationAddOrEdit addOrEditSegmentation);
|
||||||
|
|
||||||
|
Task<IResponseOutput> DeleteSegmentation(Guid segmentationId);
|
||||||
|
|
||||||
|
|
||||||
|
Task<PageOutput<SegmentView>> GetSegmentList(SegmentQuery inQuery);
|
||||||
|
|
||||||
|
Task<IResponseOutput> AddOrUpdateSegment(SegmentAddOrEdit addOrEditSegment);
|
||||||
|
|
||||||
|
Task<IResponseOutput> DeleteSegment(Guid segmentId);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -0,0 +1,129 @@
|
||||||
|
|
||||||
|
//--------------------------------------------------------------------
|
||||||
|
// 此代码由liquid模板自动生成 byzhouhang 20240909
|
||||||
|
// 生成时间 2026-03-10 06:17:28Z
|
||||||
|
// 对此文件的更改可能会导致不正确的行为,并且如果重新生成代码,这些更改将会丢失。
|
||||||
|
//--------------------------------------------------------------------
|
||||||
|
using IRaCIS.Core.Domain.Models;
|
||||||
|
using Microsoft.AspNetCore.Mvc;
|
||||||
|
using IRaCIS.Core.Application.Interfaces;
|
||||||
|
using IRaCIS.Core.Application.ViewModel;
|
||||||
|
using IRaCIS.Core.Infrastructure.Extention;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using IRaCIS.Core.Infra.EFCore;
|
||||||
|
namespace IRaCIS.Core.Application.Service;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 分割
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="_segmentationRepository"></param>
|
||||||
|
/// <param name="_mapper"></param>
|
||||||
|
/// <param name="_userInfo"></param>
|
||||||
|
/// <param name="_localizer"></param>
|
||||||
|
[ ApiExplorerSettings(GroupName = "Reading")]
|
||||||
|
public class SegmentationService(IRepository<Segmentation> _segmentationRepository,
|
||||||
|
IRepository<Segment> _segmentRepository,
|
||||||
|
IMapper _mapper, IUserInfo _userInfo, IStringLocalizer _localizer): BaseService, ISegmentationService
|
||||||
|
{
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取分割组
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="inQuery"></param>
|
||||||
|
/// <returns></returns>
|
||||||
|
[HttpPost]
|
||||||
|
public async Task<PageOutput<SegmentationView>> GetSegmentationList(SegmentationQuery inQuery)
|
||||||
|
{
|
||||||
|
|
||||||
|
var segmentationQueryable =_segmentationRepository
|
||||||
|
.ProjectTo<SegmentationView>(_mapper.ConfigurationProvider);
|
||||||
|
|
||||||
|
var pageList= await segmentationQueryable.ToPagedListAsync(inQuery);
|
||||||
|
|
||||||
|
return pageList;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 新增修改分割组
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="addOrEditSegmentation"></param>
|
||||||
|
/// <returns></returns>
|
||||||
|
[HttpPost]
|
||||||
|
public async Task<IResponseOutput> AddOrUpdateSegmentation(SegmentationAddOrEdit addOrEditSegmentation)
|
||||||
|
{
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
var entity = await _segmentationRepository.InsertOrUpdateAsync(addOrEditSegmentation, true);
|
||||||
|
|
||||||
|
return ResponseOutput.Ok(entity.Id.ToString());
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 删除分割组
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="segmentationId"></param>
|
||||||
|
/// <returns></returns>
|
||||||
|
[HttpDelete("{segmentationId:guid}")]
|
||||||
|
public async Task<IResponseOutput> DeleteSegmentation(Guid segmentationId)
|
||||||
|
{
|
||||||
|
var success = await _segmentationRepository.DeleteFromQueryAsync(t => t.Id == segmentationId,true);
|
||||||
|
return ResponseOutput.Ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取分割
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="inQuery"></param>
|
||||||
|
/// <returns></returns>
|
||||||
|
[HttpPost]
|
||||||
|
public async Task<PageOutput<SegmentView>> GetSegmentList(SegmentQuery inQuery)
|
||||||
|
{
|
||||||
|
|
||||||
|
var segmentQueryable = _segmentRepository
|
||||||
|
.ProjectTo<SegmentView>(_mapper.ConfigurationProvider);
|
||||||
|
|
||||||
|
var pageList = await segmentQueryable.ToPagedListAsync(inQuery);
|
||||||
|
|
||||||
|
return pageList;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 新增修改分割
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="addOrEditSegment"></param>
|
||||||
|
/// <returns></returns>
|
||||||
|
[HttpPost]
|
||||||
|
public async Task<IResponseOutput> AddOrUpdateSegment(SegmentAddOrEdit addOrEditSegment)
|
||||||
|
{
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
var entity = await _segmentRepository.InsertOrUpdateAsync(addOrEditSegment, true);
|
||||||
|
|
||||||
|
return ResponseOutput.Ok(entity.Id.ToString());
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 删除分割
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="inQuery"></param>
|
||||||
|
/// <returns></returns>
|
||||||
|
[HttpDelete("{segmentId:guid}")]
|
||||||
|
public async Task<IResponseOutput> DeleteSegment(Guid segmentId)
|
||||||
|
{
|
||||||
|
var success = await _segmentRepository.DeleteFromQueryAsync(t => t.Id == segmentId, true);
|
||||||
|
return ResponseOutput.Ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -15,6 +15,16 @@ namespace IRaCIS.Core.Application.Service
|
||||||
//是否英文环境
|
//是否英文环境
|
||||||
var isEn_Us = false;
|
var isEn_Us = false;
|
||||||
|
|
||||||
|
// 在此处拷贝automapper 映射
|
||||||
|
|
||||||
|
CreateMap<Segment, SegmentView>();
|
||||||
|
CreateMap<Segment, SegmentAddOrEdit>().ReverseMap();
|
||||||
|
|
||||||
|
// 在此处拷贝automapper 映射
|
||||||
|
|
||||||
|
CreateMap<Segmentation, SegmentationView>();
|
||||||
|
CreateMap<Segmentation, SegmentationAddOrEdit>().ReverseMap();
|
||||||
|
|
||||||
CreateMap<ReadingQuestionTrial, ReadingReportDto>()
|
CreateMap<ReadingQuestionTrial, ReadingReportDto>()
|
||||||
.ForMember(d => d.QuestionId, u => u.MapFrom(s => s.Id));
|
.ForMember(d => d.QuestionId, u => u.MapFrom(s => s.Id));
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ using System.Numerics;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace IRaCIS.Core.Domain.Reading.Segment
|
namespace IRaCIS.Core.Domain.Models
|
||||||
{
|
{
|
||||||
|
|
||||||
[Comment("分割")]
|
[Comment("分割")]
|
||||||
|
|
|
||||||
|
|
@ -358,6 +358,11 @@ public class IRaCISDBContext : DbContext
|
||||||
|
|
||||||
#region Reading
|
#region Reading
|
||||||
|
|
||||||
|
public virtual DbSet<Segmentation> Segmentation { get; set; }
|
||||||
|
|
||||||
|
public virtual DbSet<Segment> Segment { get; set; }
|
||||||
|
|
||||||
|
|
||||||
public virtual DbSet<TrialCriterionKeyFile> TrialCriterionKeyFile { get; set; }
|
public virtual DbSet<TrialCriterionKeyFile> TrialCriterionKeyFile { get; set; }
|
||||||
|
|
||||||
public virtual DbSet<SystemCriterionKeyFile> SystemCriterionKeyFile { get; set; }
|
public virtual DbSet<SystemCriterionKeyFile> SystemCriterionKeyFile { get; set; }
|
||||||
|
|
|
||||||
21909
IRaCIS.Core.Infra.EFCore/Migrations/20260310053709_Segmentation.Designer.cs
generated
Normal file
21909
IRaCIS.Core.Infra.EFCore/Migrations/20260310053709_Segmentation.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
|
|
@ -0,0 +1,113 @@
|
||||||
|
using System;
|
||||||
|
using Microsoft.EntityFrameworkCore.Migrations;
|
||||||
|
|
||||||
|
#nullable disable
|
||||||
|
|
||||||
|
namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
|
{
|
||||||
|
/// <inheritdoc />
|
||||||
|
public partial class Segmentation : Migration
|
||||||
|
{
|
||||||
|
/// <inheritdoc />
|
||||||
|
protected override void Up(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.CreateTable(
|
||||||
|
name: "Segment",
|
||||||
|
columns: table => new
|
||||||
|
{
|
||||||
|
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||||
|
SegmentationId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||||
|
SegmentMumber = table.Column<int>(type: "int", nullable: false),
|
||||||
|
SegmentName = table.Column<string>(type: "nvarchar(400)", maxLength: 400, nullable: false),
|
||||||
|
ColorRgb = table.Column<string>(type: "nvarchar(400)", maxLength: 400, nullable: false),
|
||||||
|
AvgValue = table.Column<decimal>(type: "decimal(18,2)", precision: 18, scale: 2, nullable: true),
|
||||||
|
MaxValue = table.Column<decimal>(type: "decimal(18,2)", precision: 18, scale: 2, nullable: true),
|
||||||
|
MinValue = table.Column<decimal>(type: "decimal(18,2)", precision: 18, scale: 2, nullable: true),
|
||||||
|
Variance = table.Column<decimal>(type: "decimal(18,2)", precision: 18, scale: 2, nullable: true),
|
||||||
|
Median = table.Column<decimal>(type: "decimal(18,2)", precision: 18, scale: 2, nullable: true),
|
||||||
|
Volume = table.Column<decimal>(type: "decimal(18,2)", precision: 18, scale: 2, nullable: true),
|
||||||
|
MajorAxis = table.Column<decimal>(type: "decimal(18,2)", precision: 18, scale: 2, nullable: true),
|
||||||
|
ShortAxis = table.Column<decimal>(type: "decimal(18,2)", precision: 18, scale: 2, nullable: true),
|
||||||
|
Peak = table.Column<decimal>(type: "decimal(18,2)", precision: 18, scale: 2, nullable: true),
|
||||||
|
TLG = table.Column<decimal>(type: "decimal(18,2)", precision: 18, scale: 2, nullable: true),
|
||||||
|
MTV = table.Column<decimal>(type: "decimal(18,2)", precision: 18, scale: 2, nullable: true),
|
||||||
|
DeleteUserId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||||
|
IsDeleted = table.Column<bool>(type: "bit", nullable: false),
|
||||||
|
DeletedTime = table.Column<DateTime>(type: "datetime2", nullable: true),
|
||||||
|
CreateUserId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||||
|
CreateTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
||||||
|
UpdateUserId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||||
|
UpdateTime = table.Column<DateTime>(type: "datetime2", nullable: false)
|
||||||
|
},
|
||||||
|
constraints: table =>
|
||||||
|
{
|
||||||
|
table.PrimaryKey("PK_Segment", x => x.Id)
|
||||||
|
.Annotation("SqlServer:Clustered", false);
|
||||||
|
table.ForeignKey(
|
||||||
|
name: "FK_Segment_User_CreateUserId",
|
||||||
|
column: x => x.CreateUserId,
|
||||||
|
principalTable: "User",
|
||||||
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Cascade);
|
||||||
|
},
|
||||||
|
comment: "分割");
|
||||||
|
|
||||||
|
migrationBuilder.CreateTable(
|
||||||
|
name: "Segmentation",
|
||||||
|
columns: table => new
|
||||||
|
{
|
||||||
|
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||||
|
TrialId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||||
|
SubjectId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||||
|
SubjectVisitId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||||
|
VisitTaksId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||||
|
StudyId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||||
|
SeriesId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||||
|
SegmentationName = table.Column<string>(type: "nvarchar(400)", maxLength: 400, nullable: false),
|
||||||
|
SegmentationJson = table.Column<string>(type: "nvarchar(max)", nullable: false),
|
||||||
|
SEGUrl = table.Column<string>(type: "nvarchar(max)", nullable: false),
|
||||||
|
DeleteUserId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
||||||
|
IsDeleted = table.Column<bool>(type: "bit", nullable: false),
|
||||||
|
DeletedTime = table.Column<DateTime>(type: "datetime2", nullable: true),
|
||||||
|
CreateUserId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||||
|
CreateTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
||||||
|
UpdateUserId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
||||||
|
UpdateTime = table.Column<DateTime>(type: "datetime2", nullable: false)
|
||||||
|
},
|
||||||
|
constraints: table =>
|
||||||
|
{
|
||||||
|
table.PrimaryKey("PK_Segmentation", x => x.Id)
|
||||||
|
.Annotation("SqlServer:Clustered", false);
|
||||||
|
table.ForeignKey(
|
||||||
|
name: "FK_Segmentation_User_CreateUserId",
|
||||||
|
column: x => x.CreateUserId,
|
||||||
|
principalTable: "User",
|
||||||
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Cascade);
|
||||||
|
},
|
||||||
|
comment: "分割分组");
|
||||||
|
|
||||||
|
migrationBuilder.CreateIndex(
|
||||||
|
name: "IX_Segment_CreateTime",
|
||||||
|
table: "Segment",
|
||||||
|
column: "CreateTime")
|
||||||
|
.Annotation("SqlServer:Clustered", true);
|
||||||
|
|
||||||
|
migrationBuilder.CreateIndex(
|
||||||
|
name: "IX_Segmentation_CreateTime",
|
||||||
|
table: "Segmentation",
|
||||||
|
column: "CreateTime")
|
||||||
|
.Annotation("SqlServer:Clustered", true);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <inheritdoc />
|
||||||
|
protected override void Down(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.DropTable(
|
||||||
|
name: "Segment");
|
||||||
|
|
||||||
|
migrationBuilder.DropTable(
|
||||||
|
name: "Segmentation");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -9207,6 +9207,77 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("IRaCIS.Core.Domain.Models.Segmentation", b =>
|
||||||
|
{
|
||||||
|
b.Property<Guid>("Id")
|
||||||
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
|
b.Property<DateTime>("CreateTime")
|
||||||
|
.HasColumnType("datetime2");
|
||||||
|
|
||||||
|
b.Property<Guid>("CreateUserId")
|
||||||
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
|
b.Property<Guid?>("DeleteUserId")
|
||||||
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
|
b.Property<DateTime?>("DeletedTime")
|
||||||
|
.HasColumnType("datetime2");
|
||||||
|
|
||||||
|
b.Property<bool>("IsDeleted")
|
||||||
|
.HasColumnType("bit");
|
||||||
|
|
||||||
|
b.Property<string>("SEGUrl")
|
||||||
|
.IsRequired()
|
||||||
|
.HasColumnType("nvarchar(max)");
|
||||||
|
|
||||||
|
b.Property<string>("SegmentationJson")
|
||||||
|
.IsRequired()
|
||||||
|
.HasColumnType("nvarchar(max)");
|
||||||
|
|
||||||
|
b.Property<string>("SegmentationName")
|
||||||
|
.IsRequired()
|
||||||
|
.HasMaxLength(400)
|
||||||
|
.HasColumnType("nvarchar(400)");
|
||||||
|
|
||||||
|
b.Property<Guid>("SeriesId")
|
||||||
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
|
b.Property<Guid>("StudyId")
|
||||||
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
|
b.Property<Guid>("SubjectId")
|
||||||
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
|
b.Property<Guid>("SubjectVisitId")
|
||||||
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
|
b.Property<Guid>("TrialId")
|
||||||
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
|
b.Property<DateTime>("UpdateTime")
|
||||||
|
.HasColumnType("datetime2");
|
||||||
|
|
||||||
|
b.Property<Guid>("UpdateUserId")
|
||||||
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
|
b.Property<Guid>("VisitTaksId")
|
||||||
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
SqlServerKeyBuilderExtensions.IsClustered(b.HasKey("Id"), false);
|
||||||
|
|
||||||
|
b.HasIndex("CreateTime");
|
||||||
|
|
||||||
|
SqlServerIndexBuilderExtensions.IsClustered(b.HasIndex("CreateTime"));
|
||||||
|
|
||||||
|
b.ToTable("Segmentation", t =>
|
||||||
|
{
|
||||||
|
t.HasComment("分割分组");
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("IRaCIS.Core.Domain.Models.ShortcutKey", b =>
|
modelBuilder.Entity("IRaCIS.Core.Domain.Models.ShortcutKey", b =>
|
||||||
{
|
{
|
||||||
b.Property<Guid>("Id")
|
b.Property<Guid>("Id")
|
||||||
|
|
@ -16456,6 +16527,106 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("IRaCIS.Core.Domain.Reading.Segment.Segment", b =>
|
||||||
|
{
|
||||||
|
b.Property<Guid>("Id")
|
||||||
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
|
b.Property<decimal?>("AvgValue")
|
||||||
|
.HasPrecision(18, 2)
|
||||||
|
.HasColumnType("decimal(18,2)");
|
||||||
|
|
||||||
|
b.Property<string>("ColorRgb")
|
||||||
|
.IsRequired()
|
||||||
|
.HasMaxLength(400)
|
||||||
|
.HasColumnType("nvarchar(400)");
|
||||||
|
|
||||||
|
b.Property<DateTime>("CreateTime")
|
||||||
|
.HasColumnType("datetime2");
|
||||||
|
|
||||||
|
b.Property<Guid>("CreateUserId")
|
||||||
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
|
b.Property<Guid?>("DeleteUserId")
|
||||||
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
|
b.Property<DateTime?>("DeletedTime")
|
||||||
|
.HasColumnType("datetime2");
|
||||||
|
|
||||||
|
b.Property<bool>("IsDeleted")
|
||||||
|
.HasColumnType("bit");
|
||||||
|
|
||||||
|
b.Property<decimal?>("MTV")
|
||||||
|
.HasPrecision(18, 2)
|
||||||
|
.HasColumnType("decimal(18,2)");
|
||||||
|
|
||||||
|
b.Property<decimal?>("MajorAxis")
|
||||||
|
.HasPrecision(18, 2)
|
||||||
|
.HasColumnType("decimal(18,2)");
|
||||||
|
|
||||||
|
b.Property<decimal?>("MaxValue")
|
||||||
|
.HasPrecision(18, 2)
|
||||||
|
.HasColumnType("decimal(18,2)");
|
||||||
|
|
||||||
|
b.Property<decimal?>("Median")
|
||||||
|
.HasPrecision(18, 2)
|
||||||
|
.HasColumnType("decimal(18,2)");
|
||||||
|
|
||||||
|
b.Property<decimal?>("MinValue")
|
||||||
|
.HasPrecision(18, 2)
|
||||||
|
.HasColumnType("decimal(18,2)");
|
||||||
|
|
||||||
|
b.Property<decimal?>("Peak")
|
||||||
|
.HasPrecision(18, 2)
|
||||||
|
.HasColumnType("decimal(18,2)");
|
||||||
|
|
||||||
|
b.Property<int>("SegmentMumber")
|
||||||
|
.HasColumnType("int");
|
||||||
|
|
||||||
|
b.Property<string>("SegmentName")
|
||||||
|
.IsRequired()
|
||||||
|
.HasMaxLength(400)
|
||||||
|
.HasColumnType("nvarchar(400)");
|
||||||
|
|
||||||
|
b.Property<Guid>("SegmentationId")
|
||||||
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
|
b.Property<decimal?>("ShortAxis")
|
||||||
|
.HasPrecision(18, 2)
|
||||||
|
.HasColumnType("decimal(18,2)");
|
||||||
|
|
||||||
|
b.Property<decimal?>("TLG")
|
||||||
|
.HasPrecision(18, 2)
|
||||||
|
.HasColumnType("decimal(18,2)");
|
||||||
|
|
||||||
|
b.Property<DateTime>("UpdateTime")
|
||||||
|
.HasColumnType("datetime2");
|
||||||
|
|
||||||
|
b.Property<Guid>("UpdateUserId")
|
||||||
|
.HasColumnType("uniqueidentifier");
|
||||||
|
|
||||||
|
b.Property<decimal?>("Variance")
|
||||||
|
.HasPrecision(18, 2)
|
||||||
|
.HasColumnType("decimal(18,2)");
|
||||||
|
|
||||||
|
b.Property<decimal?>("Volume")
|
||||||
|
.HasPrecision(18, 2)
|
||||||
|
.HasColumnType("decimal(18,2)");
|
||||||
|
|
||||||
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
SqlServerKeyBuilderExtensions.IsClustered(b.HasKey("Id"), false);
|
||||||
|
|
||||||
|
b.HasIndex("CreateTime");
|
||||||
|
|
||||||
|
SqlServerIndexBuilderExtensions.IsClustered(b.HasIndex("CreateTime"));
|
||||||
|
|
||||||
|
b.ToTable("Segment", t =>
|
||||||
|
{
|
||||||
|
t.HasComment("分割");
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("IRaCIS.Core.Infra.EFCore.TestLength", b =>
|
modelBuilder.Entity("IRaCIS.Core.Infra.EFCore.TestLength", b =>
|
||||||
{
|
{
|
||||||
b.Property<Guid>("Id")
|
b.Property<Guid>("Id")
|
||||||
|
|
@ -18832,6 +19003,17 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
b.Navigation("TrialSite");
|
b.Navigation("TrialSite");
|
||||||
});
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("IRaCIS.Core.Domain.Models.Segmentation", b =>
|
||||||
|
{
|
||||||
|
b.HasOne("IRaCIS.Core.Domain.Models.UserRole", "CreateUserRole")
|
||||||
|
.WithMany()
|
||||||
|
.HasForeignKey("CreateUserId")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
|
b.Navigation("CreateUserRole");
|
||||||
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("IRaCIS.Core.Domain.Models.ShortcutKey", b =>
|
modelBuilder.Entity("IRaCIS.Core.Domain.Models.ShortcutKey", b =>
|
||||||
{
|
{
|
||||||
b.HasOne("IRaCIS.Core.Domain.Models.UserRole", "CreateUserRole")
|
b.HasOne("IRaCIS.Core.Domain.Models.UserRole", "CreateUserRole")
|
||||||
|
|
@ -21215,6 +21397,17 @@ namespace IRaCIS.Core.Infra.EFCore.Migrations
|
||||||
b.Navigation("CreateUserRole");
|
b.Navigation("CreateUserRole");
|
||||||
});
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("IRaCIS.Core.Domain.Reading.Segment.Segment", b =>
|
||||||
|
{
|
||||||
|
b.HasOne("IRaCIS.Core.Domain.Models.UserRole", "CreateUserRole")
|
||||||
|
.WithMany()
|
||||||
|
.HasForeignKey("CreateUserId")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
|
b.Navigation("CreateUserRole");
|
||||||
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("IRaCIS.Core.Domain.Models.AuditDocument", b =>
|
modelBuilder.Entity("IRaCIS.Core.Domain.Models.AuditDocument", b =>
|
||||||
{
|
{
|
||||||
b.Navigation("AncestorList");
|
b.Navigation("AncestorList");
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue