Browse Source

pacs表

master
wxd 1 year ago
parent
commit
2a15fa73b2
  1. 54
      src/Shentun.Peis.Domain/RegisterCheckPacsPictures/RegisterCheckPacsPicture.cs
  2. 74
      src/Shentun.Peis.Domain/RegisterCheckPacss/RegisterCheckPacs.cs
  3. 6
      src/Shentun.Peis.Domain/RegisterChecks/RegisterCheck.cs
  4. 43
      src/Shentun.Peis.EntityFrameworkCore/DbMapping/RegisterCheckPacsPictures/RegisterCheckPacsPictureDbMapping.cs
  5. 45
      src/Shentun.Peis.EntityFrameworkCore/DbMapping/RegisterCheckPacss/RegisterCheckPacsDbMapping.cs
  6. 15580
      src/Shentun.Peis.EntityFrameworkCore/Migrations/20240830021930_insert_pacs_table.Designer.cs
  7. 85
      src/Shentun.Peis.EntityFrameworkCore/Migrations/20240830021930_insert_pacs_table.cs
  8. 138
      src/Shentun.Peis.EntityFrameworkCore/Migrations/PeisDbContextModelSnapshot.cs

54
src/Shentun.Peis.Domain/RegisterCheckPacsPictures/RegisterCheckPacsPicture.cs

@ -0,0 +1,54 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Entities.Auditing;
using Volo.Abp.Domain.Entities;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
namespace Shentun.Peis.Models
{
/// <summary>
/// pacs检查信息图片
/// </summary>
[Table("register_check_pacs_picture")]
public class RegisterCheckPacsPicture : AuditedEntity<Guid>, IHasConcurrencyStamp
{
/// <summary>
/// pacs检查信息主表id
/// </summary>
[Column("register_check_pacs_id")]
public Guid RegisterCheckPacsId { get; set; }
/// <summary>
/// 图片名称
/// </summary>
[Column("display_name")]
[StringLength(100)]
public string DisplayName { get; set; }
/// <summary>
/// 图片文件
/// </summary>
[Column("picture_path_name")]
[StringLength(200)]
public string PicturePathName { get; set; }
/// <summary>
/// 显示顺序
/// </summary>
[Column("display_order")]
public int DisplayOrder { get; set; }
[Column("concurrency_stamp")]
public string ConcurrencyStamp { get; set; }
[ForeignKey(nameof(RegisterCheckPacsId))]
[InverseProperty("RegisterCheckPacsPictures")]
public virtual RegisterCheckPacs RegisterCheckPacs { get; set; } = null!;
}
}

74
src/Shentun.Peis.Domain/RegisterCheckPacss/RegisterCheckPacs.cs

@ -0,0 +1,74 @@
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Entities.Auditing;
using Volo.Abp.Domain.Entities;
namespace Shentun.Peis.Models
{
/// <summary>
/// pacs检查信息主表
/// </summary>
[Table("register_check_pacs")]
public class RegisterCheckPacs : AuditedEntity<Guid>, IHasConcurrencyStamp
{
public RegisterCheckPacs()
{
RegisterCheckPacsPictures = new HashSet<RegisterCheckPacsPicture>();
}
/// <summary>
/// 检查条码ID
/// </summary>
[Column("register_check_id")]
public Guid RegisterCheckId { get; set; }
/// <summary>
/// DICOM文件路径
/// </summary>
[Column("dicom_path_name")]
[StringLength(200)]
public string DicomPathName { get; set; }
/// <summary>
/// 检查结果
/// </summary>
[Column("check_result")]
[StringLength(500)]
public string CheckResult { get; set; }
/// <summary>
/// 检查描述
/// </summary>
[Column("check_desc")]
[StringLength(500)]
public string CheckDesc { get; set; }
/// <summary>
/// 显示顺序
/// </summary>
[Column("display_order")]
public int DisplayOrder { get; set; }
[Column("concurrency_stamp")]
public string ConcurrencyStamp { get; set; }
[ForeignKey(nameof(RegisterCheckId))]
[InverseProperty("RegisterCheckPacss")]
public virtual RegisterCheck RegisterCheck { get; set; } = null!;
[InverseProperty(nameof(RegisterCheckPacsPicture.RegisterCheckPacs))]
public virtual ICollection<RegisterCheckPacsPicture> RegisterCheckPacsPictures { get; set; }
}
}

6
src/Shentun.Peis.Domain/RegisterChecks/RegisterCheck.cs

@ -24,6 +24,7 @@ namespace Shentun.Peis.Models
RegisterCheckPictures = new HashSet<RegisterCheckPicture>();
RegisterCheckSuggestions = new HashSet<RegisterCheckSuggestion>();
RegisterCheckSummaries = new HashSet<RegisterCheckSummary>();
RegisterCheckPacss = new HashSet<RegisterCheckPacs>();
}
public RegisterCheck(Guid id):base(id)
{
@ -32,6 +33,7 @@ namespace Shentun.Peis.Models
RegisterCheckPictures = new HashSet<RegisterCheckPicture>();
RegisterCheckSuggestions = new HashSet<RegisterCheckSuggestion>();
RegisterCheckSummaries = new HashSet<RegisterCheckSummary>();
RegisterCheckPacss = new HashSet<RegisterCheckPacs>();
IsLock = 'N';
CompleteFlag = RegisterCheckCompleteFlag.UnChecked;
@ -293,6 +295,10 @@ namespace Shentun.Peis.Models
[InverseProperty(nameof(RegisterCheckAsbitem.RegisterCheck))]
public virtual ICollection<RegisterCheckAsbitem> RegisterCheckAsbitems { get; set; }
[InverseProperty(nameof(RegisterCheckPacs.RegisterCheck))]
public virtual ICollection<RegisterCheckPacs> RegisterCheckPacss { get; set; }
//[ForeignKey(nameof(RegisterAsbitemId))]
//[InverseProperty("RegisterChecks")]
//public virtual RegisterAsbitem RegisterAsbitem { get; set; } = null!;

43
src/Shentun.Peis.EntityFrameworkCore/DbMapping/RegisterCheckPacsPictures/RegisterCheckPacsPictureDbMapping.cs

@ -0,0 +1,43 @@
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using Microsoft.EntityFrameworkCore;
using Shentun.Peis.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Shentun.Peis.EntityFrameworkCore;
namespace Shentun.Peis.DbMapping.RegisterCheckPacsPictures
{
internal class RegisterCheckPacsPictureDbMapping : IEntityTypeConfiguration<RegisterCheckPacsPicture>
{
public void Configure(EntityTypeBuilder<RegisterCheckPacsPicture> entity)
{
entity.HasComment("pacs检查信息图片");
entity.Property(e => e.Id)
.ValueGeneratedNever()
.HasComment("检查图片编号").IsRequired();
entity.Property(e => e.DisplayOrder)
.HasDefaultValueSql("1")
.HasComment("显示顺序").IsRequired();
entity.Property(e => e.RegisterCheckPacsId).HasComment("pacs检查信息主表id").IsRequired();
entity.Property(e => e.DisplayName).HasComment("图片名称");
entity.Property(e => e.PicturePathName).HasComment("图片文件");
entity.HasOne(d => d.RegisterCheckPacs)
.WithMany(p => p.RegisterCheckPacsPictures)
.HasForeignKey(d => d.RegisterCheckPacsId)
.HasConstraintName("fk_register_check_pacs_picture_register_check_pacs");
entity.ConfigureByConvention();
}
}
}

45
src/Shentun.Peis.EntityFrameworkCore/DbMapping/RegisterCheckPacss/RegisterCheckPacsDbMapping.cs

@ -0,0 +1,45 @@
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using Microsoft.EntityFrameworkCore;
using Shentun.Peis.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Shentun.Peis.EntityFrameworkCore;
namespace Shentun.Peis.DbMapping.RegisterCheckPacss
{
internal class RegisterCheckPacsDbMapping : IEntityTypeConfiguration<RegisterCheckPacs>
{
public void Configure(EntityTypeBuilder<RegisterCheckPacs> entity)
{
entity.HasComment("pacs检查信息主表");
entity.Property(e => e.Id)
.ValueGeneratedNever()
.HasComment("检查图片编号").IsRequired();
entity.Property(e => e.DisplayOrder)
.HasDefaultValueSql("1")
.HasComment("显示顺序").IsRequired();
entity.Property(e => e.RegisterCheckId).HasComment("登记流水号").IsRequired();
entity.Property(e => e.DicomPathName).HasComment("DICOM文件路径");
entity.Property(e => e.CheckResult).HasComment("检查结果");
entity.Property(e => e.CheckDesc).HasComment("检查描述");
entity.HasOne(d => d.RegisterCheck)
.WithMany(p => p.RegisterCheckPacss)
.HasForeignKey(d => d.RegisterCheckId)
.HasConstraintName("fk_register_check_pacs_register_check");
entity.ConfigureByConvention();
}
}
}

15580
src/Shentun.Peis.EntityFrameworkCore/Migrations/20240830021930_insert_pacs_table.Designer.cs
File diff suppressed because it is too large
View File

85
src/Shentun.Peis.EntityFrameworkCore/Migrations/20240830021930_insert_pacs_table.cs

@ -0,0 +1,85 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace Shentun.Peis.Migrations
{
public partial class insert_pacs_table : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "register_check_pacs",
columns: table => new
{
Id = table.Column<Guid>(type: "uuid", nullable: false),
register_check_id = table.Column<Guid>(type: "uuid", nullable: false),
dicom_path_name = table.Column<string>(type: "character varying(200)", maxLength: 200, nullable: true),
check_result = table.Column<string>(type: "character varying(500)", maxLength: 500, nullable: true),
check_desc = table.Column<string>(type: "character varying(500)", maxLength: 500, nullable: true),
display_order = table.Column<int>(type: "integer", nullable: false),
ConcurrencyStamp = table.Column<string>(type: "character varying(40)", maxLength: 40, nullable: true),
CreationTime = table.Column<DateTime>(type: "timestamp without time zone", nullable: false),
CreatorId = table.Column<Guid>(type: "uuid", nullable: true),
LastModificationTime = table.Column<DateTime>(type: "timestamp without time zone", nullable: true),
LastModifierId = table.Column<Guid>(type: "uuid", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_register_check_pacs", x => x.Id);
table.ForeignKey(
name: "FK_register_check_pacs_register_check_register_check_id",
column: x => x.register_check_id,
principalTable: "register_check",
principalColumn: "id",
onDelete: ReferentialAction.Cascade);
});
migrationBuilder.CreateTable(
name: "register_check_pacs_picture",
columns: table => new
{
Id = table.Column<Guid>(type: "uuid", nullable: false),
register_check_pacs_id = table.Column<Guid>(type: "uuid", nullable: false),
display_name = table.Column<string>(type: "character varying(100)", maxLength: 100, nullable: true),
picture_path_name = table.Column<string>(type: "character varying(200)", maxLength: 200, nullable: true),
display_order = table.Column<int>(type: "integer", nullable: false),
ConcurrencyStamp = table.Column<string>(type: "character varying(40)", maxLength: 40, nullable: true),
CreationTime = table.Column<DateTime>(type: "timestamp without time zone", nullable: false),
CreatorId = table.Column<Guid>(type: "uuid", nullable: true),
LastModificationTime = table.Column<DateTime>(type: "timestamp without time zone", nullable: true),
LastModifierId = table.Column<Guid>(type: "uuid", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_register_check_pacs_picture", x => x.Id);
table.ForeignKey(
name: "FK_register_check_pacs_picture_register_check_pacs_register_ch~",
column: x => x.register_check_pacs_id,
principalTable: "register_check_pacs",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
});
migrationBuilder.CreateIndex(
name: "IX_register_check_pacs_register_check_id",
table: "register_check_pacs",
column: "register_check_id");
migrationBuilder.CreateIndex(
name: "IX_register_check_pacs_picture_register_check_pacs_id",
table: "register_check_pacs_picture",
column: "register_check_pacs_id");
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "register_check_pacs_picture");
migrationBuilder.DropTable(
name: "register_check_pacs");
}
}
}

138
src/Shentun.Peis.EntityFrameworkCore/Migrations/PeisDbContextModelSnapshot.cs

@ -8993,6 +8993,115 @@ namespace Shentun.Peis.Migrations
b.HasComment("检查明细项目记录");
});
modelBuilder.Entity("Shentun.Peis.Models.RegisterCheckPacs", b =>
{
b.Property<Guid>("Id")
.HasColumnType("uuid");
b.Property<string>("CheckDesc")
.HasMaxLength(500)
.HasColumnType("character varying(500)")
.HasColumnName("check_desc");
b.Property<string>("CheckResult")
.HasMaxLength(500)
.HasColumnType("character varying(500)")
.HasColumnName("check_result");
b.Property<string>("ConcurrencyStamp")
.IsConcurrencyToken()
.HasMaxLength(40)
.HasColumnType("character varying(40)")
.HasColumnName("ConcurrencyStamp");
b.Property<DateTime>("CreationTime")
.HasColumnType("timestamp without time zone")
.HasColumnName("CreationTime");
b.Property<Guid?>("CreatorId")
.HasColumnType("uuid")
.HasColumnName("CreatorId");
b.Property<string>("DicomPathName")
.HasMaxLength(200)
.HasColumnType("character varying(200)")
.HasColumnName("dicom_path_name");
b.Property<int>("DisplayOrder")
.HasColumnType("integer")
.HasColumnName("display_order");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("timestamp without time zone")
.HasColumnName("LastModificationTime");
b.Property<Guid?>("LastModifierId")
.HasColumnType("uuid")
.HasColumnName("LastModifierId");
b.Property<Guid>("RegisterCheckId")
.HasColumnType("uuid")
.HasColumnName("register_check_id");
b.HasKey("Id");
b.HasIndex("RegisterCheckId");
b.ToTable("register_check_pacs");
});
modelBuilder.Entity("Shentun.Peis.Models.RegisterCheckPacsPicture", b =>
{
b.Property<Guid>("Id")
.HasColumnType("uuid");
b.Property<string>("ConcurrencyStamp")
.IsConcurrencyToken()
.HasMaxLength(40)
.HasColumnType("character varying(40)")
.HasColumnName("ConcurrencyStamp");
b.Property<DateTime>("CreationTime")
.HasColumnType("timestamp without time zone")
.HasColumnName("CreationTime");
b.Property<Guid?>("CreatorId")
.HasColumnType("uuid")
.HasColumnName("CreatorId");
b.Property<string>("DisplayName")
.HasMaxLength(100)
.HasColumnType("character varying(100)")
.HasColumnName("display_name");
b.Property<int>("DisplayOrder")
.HasColumnType("integer")
.HasColumnName("display_order");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("timestamp without time zone")
.HasColumnName("LastModificationTime");
b.Property<Guid?>("LastModifierId")
.HasColumnType("uuid")
.HasColumnName("LastModifierId");
b.Property<string>("PicturePathName")
.HasMaxLength(200)
.HasColumnType("character varying(200)")
.HasColumnName("picture_path_name");
b.Property<Guid>("RegisterCheckPacsId")
.HasColumnType("uuid")
.HasColumnName("register_check_pacs_id");
b.HasKey("Id");
b.HasIndex("RegisterCheckPacsId");
b.ToTable("register_check_pacs_picture");
});
modelBuilder.Entity("Shentun.Peis.Models.RegisterCheckPicture", b =>
{
b.Property<Guid>("Id")
@ -14475,6 +14584,28 @@ namespace Shentun.Peis.Migrations
b.Navigation("ResultStatus");
});
modelBuilder.Entity("Shentun.Peis.Models.RegisterCheckPacs", b =>
{
b.HasOne("Shentun.Peis.Models.RegisterCheck", "RegisterCheck")
.WithMany("RegisterCheckPacss")
.HasForeignKey("RegisterCheckId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.Navigation("RegisterCheck");
});
modelBuilder.Entity("Shentun.Peis.Models.RegisterCheckPacsPicture", b =>
{
b.HasOne("Shentun.Peis.Models.RegisterCheckPacs", "RegisterCheckPacs")
.WithMany("RegisterCheckPacsPictures")
.HasForeignKey("RegisterCheckPacsId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.Navigation("RegisterCheckPacs");
});
modelBuilder.Entity("Shentun.Peis.Models.RegisterCheckPicture", b =>
{
b.HasOne("Shentun.Peis.Models.RegisterCheck", "RegisterCheck")
@ -15306,6 +15437,8 @@ namespace Shentun.Peis.Migrations
b.Navigation("RegisterCheckItems");
b.Navigation("RegisterCheckPacss");
b.Navigation("RegisterCheckPictures");
b.Navigation("RegisterCheckSuggestions");
@ -15313,6 +15446,11 @@ namespace Shentun.Peis.Migrations
b.Navigation("RegisterCheckSummaries");
});
modelBuilder.Entity("Shentun.Peis.Models.RegisterCheckPacs", b =>
{
b.Navigation("RegisterCheckPacsPictures");
});
modelBuilder.Entity("Shentun.Peis.Models.Report", b =>
{
b.Navigation("ReportFormats");

Loading…
Cancel
Save