8 changed files with 16025 additions and 0 deletions
-
54src/Shentun.Peis.Domain/RegisterCheckPacsPictures/RegisterCheckPacsPicture.cs
-
74src/Shentun.Peis.Domain/RegisterCheckPacss/RegisterCheckPacs.cs
-
6src/Shentun.Peis.Domain/RegisterChecks/RegisterCheck.cs
-
43src/Shentun.Peis.EntityFrameworkCore/DbMapping/RegisterCheckPacsPictures/RegisterCheckPacsPictureDbMapping.cs
-
45src/Shentun.Peis.EntityFrameworkCore/DbMapping/RegisterCheckPacss/RegisterCheckPacsDbMapping.cs
-
15580src/Shentun.Peis.EntityFrameworkCore/Migrations/20240830021930_insert_pacs_table.Designer.cs
-
85src/Shentun.Peis.EntityFrameworkCore/Migrations/20240830021930_insert_pacs_table.cs
-
138src/Shentun.Peis.EntityFrameworkCore/Migrations/PeisDbContextModelSnapshot.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!; |
||||
|
} |
||||
|
} |
||||
@ -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; } |
||||
|
} |
||||
|
|
||||
|
|
||||
|
} |
||||
@ -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(); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
@ -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
File diff suppressed because it is too large
View File
@ -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"); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
Write
Preview
Loading…
Cancel
Save
Reference in new issue