Browse Source

人员扩展

bjmzak
wxd 2 years ago
parent
commit
bbba3e333f
  1. 78
      src/Shentun.Peis.Domain/PatientRegisterExters/PatientRegisterExter.cs
  2. 24
      src/Shentun.Peis.EntityFrameworkCore/DbMapping/PatientRegisterExters/PatientRegisterExterDbMapping.cs
  3. 6
      src/Shentun.Peis.EntityFrameworkCore/EntityFrameworkCore/PeisDbContext.cs
  4. 14242
      src/Shentun.Peis.EntityFrameworkCore/Migrations/20240503145648_init20240503002.Designer.cs
  5. 45
      src/Shentun.Peis.EntityFrameworkCore/Migrations/20240503145648_init20240503002.cs
  6. 14246
      src/Shentun.Peis.EntityFrameworkCore/Migrations/20240503145945_init20240503003.Designer.cs
  7. BIN
      src/Shentun.Peis.EntityFrameworkCore/Migrations/20240503145945_init20240503003.cs
  8. 76
      src/Shentun.Peis.EntityFrameworkCore/Migrations/PeisDbContextModelSnapshot.cs
  9. 2
      src/Shentun.Peis.HttpApi.Host/PeisHttpApiHostModule.cs

78
src/Shentun.Peis.Domain/PatientRegisterExters/PatientRegisterExter.cs

@ -0,0 +1,78 @@
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>
///
/// </summary>
[Table("patient_register_exter")]
public class PatientRegisterExter : Entity, IHasConcurrencyStamp
{
/// <summary>
/// 人员登记ID
/// </summary>
[Key]
[Column("patient_register_id")]
public Guid PatientRegisterId { get; set; }
[Column("qztl_type")]
public char? QztlType { get; set; }
[Column("qztl_is_cw")]
public char? QztlIsCw { get; set; }
[Column("qztl_is_cy")]
public char? QztlIsCy { get; set; }
[Column("qztl_is_gt")]
public char? QztlIsGt { get; set; }
[Column("qztl_is_main")]
public char? QztlIsMain { get; set; }
[Column("qztl_is_wh")]
public char? QztlIsWh { get; set; }
[Column("qztl_is_fj")]
public char? QztlIsFj { get; set; }
[Column("is_qztl_import")]
public char? IsQztlImport { get; set; }
[Column("upload_qztl_flag")]
public char? UploadQztlFlag { get; set; }
[Column("planuserid")]
[StringLength(20)]
public string Planuserid { get; set; }
[Column("remark2")]
[StringLength(100)]
public string Remark2 { get; set; }
[Column("remark3")]
[StringLength(100)]
public string Remark3 { get; set; }
[Column("remark4")]
[StringLength(100)]
public string Remark4 { get; set; }
[Column("concurrency_stamp")]
public string ConcurrencyStamp { get; set; }
public override object[] GetKeys()
{
return new object[] { PatientRegisterId };
}
}
}

24
src/Shentun.Peis.EntityFrameworkCore/DbMapping/PatientRegisterExters/PatientRegisterExterDbMapping.cs

@ -0,0 +1,24 @@
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.PatientRegisterExters
{
internal class PatientRegisterExterDbMapping : IEntityTypeConfiguration<PatientRegisterExter>
{
public void Configure(EntityTypeBuilder<PatientRegisterExter> entity)
{
entity.HasComment("人员登记信息扩展");
entity.ConfigureByConvention();
}
}
}

6
src/Shentun.Peis.EntityFrameworkCore/EntityFrameworkCore/PeisDbContext.cs

@ -9,6 +9,7 @@ using Shentun.Peis.Books;
using Shentun.Peis.DbMapping;
using Shentun.Peis.DbMapping.ChargeRequestAsbitems;
using Shentun.Peis.DbMapping.ChargeRequests;
using Shentun.Peis.DbMapping.PatientRegisterExters;
using Shentun.Peis.DbMapping.ThirdInterfaces;
using Shentun.Peis.Models;
using Shentun.Peis.RoleMenuInfos;
@ -334,7 +335,7 @@ public class PeisDbContext :
public DbSet<CollectItemType> CollectItemTypes { get; set; } = null!;
public DbSet<PatientRegisterExter> PatientRegisterExters { get; set; } = null!;
public PeisDbContext(DbContextOptions<PeisDbContext> options)
: base(options)
{
@ -566,7 +567,8 @@ public class PeisDbContext :
.ApplyConfiguration(new ChargeRequestDbMapping())
.ApplyConfiguration(new ChargeRequestAsbitemDbMapping())
.ApplyConfiguration(new ThirdInterfaceDbMapping())
.ApplyConfiguration(new CollectItemTypeDbMapping());
.ApplyConfiguration(new CollectItemTypeDbMapping())
.ApplyConfiguration(new PatientRegisterExterDbMapping());
#endregion

14242
src/Shentun.Peis.EntityFrameworkCore/Migrations/20240503145648_init20240503002.Designer.cs
File diff suppressed because it is too large
View File

45
src/Shentun.Peis.EntityFrameworkCore/Migrations/20240503145648_init20240503002.cs

@ -0,0 +1,45 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace Shentun.Peis.Migrations
{
public partial class init20240503002 : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "patient_register_exter",
columns: table => new
{
patient_register_id = table.Column<Guid>(type: "uuid", nullable: false),
qztl_type = table.Column<char>(type: "character(1)", nullable: false),
qztl_is_cw = table.Column<char>(type: "character(1)", nullable: false),
qztl_is_cy = table.Column<char>(type: "character(1)", nullable: false),
qztl_is_gt = table.Column<char>(type: "character(1)", nullable: false),
qztl_is_main = table.Column<char>(type: "character(1)", nullable: false),
qztl_is_wh = table.Column<char>(type: "character(1)", nullable: false),
qztl_is_fj = table.Column<char>(type: "character(1)", nullable: false),
is_qztl_import = table.Column<char>(type: "character(1)", nullable: false),
upload_qztl_flag = table.Column<char>(type: "character(1)", nullable: false),
planuserid = table.Column<string>(type: "text", nullable: true),
remark2 = table.Column<string>(type: "text", nullable: true),
remark3 = table.Column<string>(type: "text", nullable: true),
remark4 = table.Column<string>(type: "text", nullable: true),
concurrency_stamp = table.Column<string>(type: "character varying(40)", maxLength: 40, nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_patient_register_exter", x => x.patient_register_id);
},
comment: "人员登记信息扩展");
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "patient_register_exter");
}
}
}

14246
src/Shentun.Peis.EntityFrameworkCore/Migrations/20240503145945_init20240503003.Designer.cs
File diff suppressed because it is too large
View File

BIN
src/Shentun.Peis.EntityFrameworkCore/Migrations/20240503145945_init20240503003.cs

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

@ -6813,6 +6813,82 @@ namespace Shentun.Peis.Migrations
b.HasComment("体检登记主档");
});
modelBuilder.Entity("Shentun.Peis.Models.PatientRegisterExter", b =>
{
b.Property<Guid>("PatientRegisterId")
.ValueGeneratedOnAdd()
.HasColumnType("uuid")
.HasColumnName("patient_register_id");
b.Property<string>("ConcurrencyStamp")
.IsConcurrencyToken()
.HasMaxLength(40)
.HasColumnType("character varying(40)")
.HasColumnName("concurrency_stamp");
b.Property<char?>("IsQztlImport")
.HasColumnType("character(1)")
.HasColumnName("is_qztl_import");
b.Property<string>("Planuserid")
.HasMaxLength(20)
.HasColumnType("character varying(20)")
.HasColumnName("planuserid");
b.Property<char?>("QztlIsCw")
.HasColumnType("character(1)")
.HasColumnName("qztl_is_cw");
b.Property<char?>("QztlIsCy")
.HasColumnType("character(1)")
.HasColumnName("qztl_is_cy");
b.Property<char?>("QztlIsFj")
.HasColumnType("character(1)")
.HasColumnName("qztl_is_fj");
b.Property<char?>("QztlIsGt")
.HasColumnType("character(1)")
.HasColumnName("qztl_is_gt");
b.Property<char?>("QztlIsMain")
.HasColumnType("character(1)")
.HasColumnName("qztl_is_main");
b.Property<char?>("QztlIsWh")
.HasColumnType("character(1)")
.HasColumnName("qztl_is_wh");
b.Property<char?>("QztlType")
.HasColumnType("character(1)")
.HasColumnName("qztl_type");
b.Property<string>("Remark2")
.HasMaxLength(100)
.HasColumnType("character varying(100)")
.HasColumnName("remark2");
b.Property<string>("Remark3")
.HasMaxLength(100)
.HasColumnType("character varying(100)")
.HasColumnName("remark3");
b.Property<string>("Remark4")
.HasMaxLength(100)
.HasColumnType("character varying(100)")
.HasColumnName("remark4");
b.Property<char?>("UploadQztlFlag")
.HasColumnType("character(1)")
.HasColumnName("upload_qztl_flag");
b.HasKey("PatientRegisterId");
b.ToTable("patient_register_exter");
b.HasComment("人员登记信息扩展");
});
modelBuilder.Entity("Shentun.Peis.Models.PatientSymptom", b =>
{
b.Property<Guid>("PatientRegisterId")

2
src/Shentun.Peis.HttpApi.Host/PeisHttpApiHostModule.cs

@ -487,7 +487,7 @@ public class PeisHttpApiHostModule : AbpModule
app.UseStaticFiles(new StaticFileOptions
{
FileProvider = new PhysicalFileProvider(Path.Combine(Directory.GetCurrentDirectory(), "UpLoad")),
FileProvider = new PhysicalFileProvider(Path.Combine(Directory.GetCurrentDirectory(), "photo")),
RequestPath = "/photo"
});

Loading…
Cancel
Save