Browse Source

register_check

master
wxd 1 year ago
parent
commit
0912b75a82
  1. 20
      src/Shentun.Peis.Domain/RegisterChecks/RegisterCheck.cs
  2. 4
      src/Shentun.Peis.EntityFrameworkCore/DbMapping/RegisterChecks/RegisterCheckDbMapping.cs
  3. 15729
      src/Shentun.Peis.EntityFrameworkCore/Migrations/20240921092415_update_register_check_pacs.Designer.cs
  4. 51
      src/Shentun.Peis.EntityFrameworkCore/Migrations/20240921092415_update_register_check_pacs.cs
  5. 156
      src/Shentun.Peis.EntityFrameworkCore/Migrations/PeisDbContextModelSnapshot.cs

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

@ -252,7 +252,25 @@ namespace Shentun.Peis.Models
/// </summary>
[Column("sign_in_time")]
public DateTime? SignInTime { get; set; }
/// <summary>
/// 是否pacs检查 dicom上传为准
/// </summary>
[Column("is_pacs_check")]
[MaxLength(1)]
public char IsPacsCheck { get; set; }
/// <summary>
/// pacs dicom检查日期
/// </summary>
[Column("pacs_check_date")]
public DateTime? PacsCheckDate { get; set; }
/// <summary>
/// pacs dicom文件上传日期
/// </summary>
[Column("pacs_upload_date")]
public DateTime? PacsUploadDate { get; set; }
/// <summary>
/// lis审核医生

4
src/Shentun.Peis.EntityFrameworkCore/DbMapping/RegisterChecks/RegisterCheckDbMapping.cs

@ -35,6 +35,10 @@ namespace Shentun.Peis.DbMapping
entity.Property(t => t.IsSignIn).HasComment("是签收").IsRequired().HasDefaultValueSql("'N'");
entity.Property(t => t.SignInPerson).HasComment("签收人姓名");
entity.Property(t => t.SignInTime).HasComment("签收时间");
entity.Property(t => t.IsPacsCheck).HasComment("是否pacs检查 dicom上传为准").IsRequired().HasDefaultValueSql("'N'");
entity.Property(t => t.PacsCheckDate).HasComment("pacs dicom检查日期");
entity.Property(t => t.PacsUploadDate).HasComment("pacs dicom文件上传日期");
entity.Property(e => e.Id).ValueGeneratedNever();
//entity.Property(e => e.LastModificationTime).HasDefaultValueSql("(date(timezone('UTC-8'::text, now())) - 1)");

15729
src/Shentun.Peis.EntityFrameworkCore/Migrations/20240921092415_update_register_check_pacs.Designer.cs
File diff suppressed because it is too large
View File

51
src/Shentun.Peis.EntityFrameworkCore/Migrations/20240921092415_update_register_check_pacs.cs

@ -0,0 +1,51 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace Shentun.Peis.Migrations
{
public partial class update_register_check_pacs : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<char>(
name: "is_pacs_check",
table: "register_check",
type: "character(1)",
maxLength: 1,
nullable: false,
defaultValueSql: "'N'",
comment: "是否pacs检查 dicom上传为准");
migrationBuilder.AddColumn<DateTime>(
name: "pacs_check_date",
table: "register_check",
type: "timestamp without time zone",
nullable: true,
comment: "pacs dicom检查日期");
migrationBuilder.AddColumn<DateTime>(
name: "pacs_upload_date",
table: "register_check",
type: "timestamp without time zone",
nullable: true,
comment: "pacs dicom文件上传日期");
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "is_pacs_check",
table: "register_check");
migrationBuilder.DropColumn(
name: "pacs_check_date",
table: "register_check");
migrationBuilder.DropColumn(
name: "pacs_upload_date",
table: "register_check");
}
}
}

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

@ -377,75 +377,6 @@ namespace Shentun.Peis.Migrations
b.ToTable("test_ct");
});
modelBuilder.Entity("Shentun.Peis.Devices.Device", b =>
{
b.Property<Guid>("Id")
.HasColumnType("uuid")
.HasColumnName("id");
b.Property<string>("AeTitle")
.HasMaxLength(50)
.HasColumnType("character varying(50)")
.HasColumnName("ae_title")
.HasComment("DICOM设备AETitle");
b.Property<string>("ConcurrencyStamp")
.IsConcurrencyToken()
.HasMaxLength(40)
.HasColumnType("character varying(40)")
.HasColumnName("concurrency_stamp");
b.Property<DateTime>("CreationTime")
.HasColumnType("timestamp without time zone")
.HasColumnName("creation_time");
b.Property<Guid?>("CreatorId")
.IsRequired()
.HasColumnType("uuid")
.HasColumnName("creator_id");
b.Property<char>("DeviceProtocolFlag")
.HasColumnType("character(1)")
.HasColumnName("device_protocol_flag")
.HasComment("设备协议");
b.Property<Guid>("DeviceTypeId")
.HasColumnType("uuid")
.HasColumnName("device_type_id")
.HasComment("仪器类别ID");
b.Property<string>("DisplayName")
.HasMaxLength(100)
.HasColumnType("character varying(100)")
.HasColumnName("Display_Name")
.HasComment("设备名称");
b.Property<int>("DisplayOrder")
.HasColumnType("integer")
.HasColumnName("display_order");
b.Property<DateTime?>("LastModificationTime")
.IsRequired()
.HasColumnType("timestamp without time zone")
.HasColumnName("last_modification_time");
b.Property<Guid?>("LastModifierId")
.IsRequired()
.HasColumnType("uuid")
.HasColumnName("last_modifier_id");
b.Property<string>("SimpleCode")
.HasMaxLength(100)
.HasColumnType("character varying(100)")
.HasColumnName("simple_code");
b.HasKey("Id");
b.ToTable("Devices");
b.HasComment("设备表");
});
modelBuilder.Entity("Shentun.Peis.Models.AbpUserDepartment", b =>
{
b.Property<Guid>("UserId")
@ -3566,6 +3497,75 @@ namespace Shentun.Peis.Migrations
b.HasComment("部门,已经废弃");
});
modelBuilder.Entity("Shentun.Peis.Models.Device", b =>
{
b.Property<Guid>("Id")
.HasColumnType("uuid")
.HasColumnName("id");
b.Property<string>("AeTitle")
.HasMaxLength(50)
.HasColumnType("character varying(50)")
.HasColumnName("ae_title")
.HasComment("DICOM设备AETitle");
b.Property<string>("ConcurrencyStamp")
.IsConcurrencyToken()
.HasMaxLength(40)
.HasColumnType("character varying(40)")
.HasColumnName("concurrency_stamp");
b.Property<DateTime>("CreationTime")
.HasColumnType("timestamp without time zone")
.HasColumnName("creation_time");
b.Property<Guid?>("CreatorId")
.IsRequired()
.HasColumnType("uuid")
.HasColumnName("creator_id");
b.Property<char>("DeviceProtocolFlag")
.HasColumnType("character(1)")
.HasColumnName("device_protocol_flag")
.HasComment("设备协议");
b.Property<Guid>("DeviceTypeId")
.HasColumnType("uuid")
.HasColumnName("device_type_id")
.HasComment("仪器类别ID");
b.Property<string>("DisplayName")
.HasMaxLength(100)
.HasColumnType("character varying(100)")
.HasColumnName("Display_Name")
.HasComment("设备名称");
b.Property<int>("DisplayOrder")
.HasColumnType("integer")
.HasColumnName("display_order");
b.Property<DateTime?>("LastModificationTime")
.IsRequired()
.HasColumnType("timestamp without time zone")
.HasColumnName("last_modification_time");
b.Property<Guid?>("LastModifierId")
.IsRequired()
.HasColumnType("uuid")
.HasColumnName("last_modifier_id");
b.Property<string>("SimpleCode")
.HasMaxLength(100)
.HasColumnType("character varying(100)")
.HasColumnName("simple_code");
b.HasKey("Id");
b.ToTable("Devices");
b.HasComment("设备表");
});
modelBuilder.Entity("Shentun.Peis.Models.DeviceType", b =>
{
b.Property<Guid>("Id")
@ -8660,6 +8660,14 @@ namespace Shentun.Peis.Migrations
.HasDefaultValueSql("'N'")
.HasComment("是否锁住");
b.Property<char>("IsPacsCheck")
.ValueGeneratedOnAdd()
.HasMaxLength(1)
.HasColumnType("character(1)")
.HasColumnName("is_pacs_check")
.HasDefaultValueSql("'N'")
.HasComment("是否pacs检查 dicom上传为准");
b.Property<char?>("IsReview")
.HasMaxLength(1)
.HasColumnType("character(1)")
@ -8691,6 +8699,16 @@ namespace Shentun.Peis.Migrations
.HasColumnType("text")
.HasColumnName("lis_sample_no");
b.Property<DateTime?>("PacsCheckDate")
.HasColumnType("timestamp without time zone")
.HasColumnName("pacs_check_date")
.HasComment("pacs dicom检查日期");
b.Property<DateTime?>("PacsUploadDate")
.HasColumnType("timestamp without time zone")
.HasColumnName("pacs_upload_date")
.HasComment("pacs dicom文件上传日期");
b.Property<Guid>("PatientRegisterId")
.HasColumnType("uuid")
.HasColumnName("patient_register_id");

Loading…
Cancel
Save