เพิ่มฟิวชื่อคนได้เครื่องราช

This commit is contained in:
Kittapath 2024-07-02 09:41:34 +07:00
parent 8d700d273f
commit f5ec2a57e5
5 changed files with 18533 additions and 0 deletions

View file

@ -61,5 +61,20 @@ namespace BMA.EHR.Domain.Models.Insignias
//public Profile Profile { get; set; }
public Insignia RequestInsignia { get; set; }
public InsigniaNote InsigniaNote { get; set; }
public string? Prefix { get; set; }
public string? FirstName { get; set; }
public string? LastName { get; set; }
public string? CitizenId { get; set; }
public DateTime? BirthDate { get; set; }
public DateTime? DateAppoint { get; set; }
public string? Position { get; set; }
public string? ProfileType { get; set; }
public string? Gender { get; set; }
public string? PosTypeName { get; set; }
public string? PosLevelName { get; set; }
public string? PosNo { get; set; }
public double? Amount { get; set; }
public double? PositionSalaryAmount { get; set; }
}
}

View file

@ -56,5 +56,20 @@ namespace BMA.EHR.Domain.Models.Insignias
public Insignia RequestInsignia { get; set; }
public InsigniaRequest Request { get; set; }
public string? Prefix { get; set; }
public string? FirstName { get; set; }
public string? LastName { get; set; }
public string? CitizenId { get; set; }
public DateTime? BirthDate { get; set; }
public DateTime? DateAppoint { get; set; }
public string? Position { get; set; }
public string? ProfileType { get; set; }
public string? Gender { get; set; }
public string? PosTypeName { get; set; }
public string? PosLevelName { get; set; }
public string? PosNo { get; set; }
public double? Amount { get; set; }
public double? PositionSalaryAmount { get; set; }
}
}

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,319 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace BMA.EHR.Infrastructure.Migrations
{
/// <inheritdoc />
public partial class updatetableinsigniaaddfirstname : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<double>(
name: "Amount",
table: "InsigniaRequestProfiles",
type: "double",
nullable: true);
migrationBuilder.AddColumn<DateTime>(
name: "BirthDate",
table: "InsigniaRequestProfiles",
type: "datetime(6)",
nullable: true);
migrationBuilder.AddColumn<string>(
name: "CitizenId",
table: "InsigniaRequestProfiles",
type: "longtext",
nullable: true)
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<DateTime>(
name: "DateAppoint",
table: "InsigniaRequestProfiles",
type: "datetime(6)",
nullable: true);
migrationBuilder.AddColumn<string>(
name: "FirstName",
table: "InsigniaRequestProfiles",
type: "longtext",
nullable: true)
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<string>(
name: "Gender",
table: "InsigniaRequestProfiles",
type: "longtext",
nullable: true)
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<string>(
name: "LastName",
table: "InsigniaRequestProfiles",
type: "longtext",
nullable: true)
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<string>(
name: "PosLevelName",
table: "InsigniaRequestProfiles",
type: "longtext",
nullable: true)
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<string>(
name: "PosNo",
table: "InsigniaRequestProfiles",
type: "longtext",
nullable: true)
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<string>(
name: "PosTypeName",
table: "InsigniaRequestProfiles",
type: "longtext",
nullable: true)
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<string>(
name: "Position",
table: "InsigniaRequestProfiles",
type: "longtext",
nullable: true)
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<double>(
name: "PositionSalaryAmount",
table: "InsigniaRequestProfiles",
type: "double",
nullable: true);
migrationBuilder.AddColumn<string>(
name: "Prefix",
table: "InsigniaRequestProfiles",
type: "longtext",
nullable: true)
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<string>(
name: "ProfileType",
table: "InsigniaRequestProfiles",
type: "longtext",
nullable: true)
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<double>(
name: "Amount",
table: "InsigniaNoteProfiles",
type: "double",
nullable: true);
migrationBuilder.AddColumn<DateTime>(
name: "BirthDate",
table: "InsigniaNoteProfiles",
type: "datetime(6)",
nullable: true);
migrationBuilder.AddColumn<string>(
name: "CitizenId",
table: "InsigniaNoteProfiles",
type: "longtext",
nullable: true)
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<DateTime>(
name: "DateAppoint",
table: "InsigniaNoteProfiles",
type: "datetime(6)",
nullable: true);
migrationBuilder.AddColumn<string>(
name: "FirstName",
table: "InsigniaNoteProfiles",
type: "longtext",
nullable: true)
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<string>(
name: "Gender",
table: "InsigniaNoteProfiles",
type: "longtext",
nullable: true)
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<string>(
name: "LastName",
table: "InsigniaNoteProfiles",
type: "longtext",
nullable: true)
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<string>(
name: "PosLevelName",
table: "InsigniaNoteProfiles",
type: "longtext",
nullable: true)
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<string>(
name: "PosNo",
table: "InsigniaNoteProfiles",
type: "longtext",
nullable: true)
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<string>(
name: "PosTypeName",
table: "InsigniaNoteProfiles",
type: "longtext",
nullable: true)
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<string>(
name: "Position",
table: "InsigniaNoteProfiles",
type: "longtext",
nullable: true)
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<double>(
name: "PositionSalaryAmount",
table: "InsigniaNoteProfiles",
type: "double",
nullable: true);
migrationBuilder.AddColumn<string>(
name: "Prefix",
table: "InsigniaNoteProfiles",
type: "longtext",
nullable: true)
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<string>(
name: "ProfileType",
table: "InsigniaNoteProfiles",
type: "longtext",
nullable: true)
.Annotation("MySql:CharSet", "utf8mb4");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "Amount",
table: "InsigniaRequestProfiles");
migrationBuilder.DropColumn(
name: "BirthDate",
table: "InsigniaRequestProfiles");
migrationBuilder.DropColumn(
name: "CitizenId",
table: "InsigniaRequestProfiles");
migrationBuilder.DropColumn(
name: "DateAppoint",
table: "InsigniaRequestProfiles");
migrationBuilder.DropColumn(
name: "FirstName",
table: "InsigniaRequestProfiles");
migrationBuilder.DropColumn(
name: "Gender",
table: "InsigniaRequestProfiles");
migrationBuilder.DropColumn(
name: "LastName",
table: "InsigniaRequestProfiles");
migrationBuilder.DropColumn(
name: "PosLevelName",
table: "InsigniaRequestProfiles");
migrationBuilder.DropColumn(
name: "PosNo",
table: "InsigniaRequestProfiles");
migrationBuilder.DropColumn(
name: "PosTypeName",
table: "InsigniaRequestProfiles");
migrationBuilder.DropColumn(
name: "Position",
table: "InsigniaRequestProfiles");
migrationBuilder.DropColumn(
name: "PositionSalaryAmount",
table: "InsigniaRequestProfiles");
migrationBuilder.DropColumn(
name: "Prefix",
table: "InsigniaRequestProfiles");
migrationBuilder.DropColumn(
name: "ProfileType",
table: "InsigniaRequestProfiles");
migrationBuilder.DropColumn(
name: "Amount",
table: "InsigniaNoteProfiles");
migrationBuilder.DropColumn(
name: "BirthDate",
table: "InsigniaNoteProfiles");
migrationBuilder.DropColumn(
name: "CitizenId",
table: "InsigniaNoteProfiles");
migrationBuilder.DropColumn(
name: "DateAppoint",
table: "InsigniaNoteProfiles");
migrationBuilder.DropColumn(
name: "FirstName",
table: "InsigniaNoteProfiles");
migrationBuilder.DropColumn(
name: "Gender",
table: "InsigniaNoteProfiles");
migrationBuilder.DropColumn(
name: "LastName",
table: "InsigniaNoteProfiles");
migrationBuilder.DropColumn(
name: "PosLevelName",
table: "InsigniaNoteProfiles");
migrationBuilder.DropColumn(
name: "PosNo",
table: "InsigniaNoteProfiles");
migrationBuilder.DropColumn(
name: "PosTypeName",
table: "InsigniaNoteProfiles");
migrationBuilder.DropColumn(
name: "Position",
table: "InsigniaNoteProfiles");
migrationBuilder.DropColumn(
name: "PositionSalaryAmount",
table: "InsigniaNoteProfiles");
migrationBuilder.DropColumn(
name: "Prefix",
table: "InsigniaNoteProfiles");
migrationBuilder.DropColumn(
name: "ProfileType",
table: "InsigniaNoteProfiles");
}
}
}

View file

@ -5994,6 +5994,15 @@ namespace BMA.EHR.Infrastructure.Migrations
.HasColumnType("longtext")
.HasComment("ที่อยู่ที่จ่าย");
b.Property<double?>("Amount")
.HasColumnType("double");
b.Property<DateTime?>("BirthDate")
.HasColumnType("datetime(6)");
b.Property<string>("CitizenId")
.HasColumnType("longtext");
b.Property<DateTime>("CreatedAt")
.HasColumnType("datetime(6)")
.HasColumnOrder(100)
@ -6017,6 +6026,9 @@ namespace BMA.EHR.Infrastructure.Migrations
.HasColumnType("datetime(6)")
.HasComment("วันที่");
b.Property<DateTime?>("DateAppoint")
.HasColumnType("datetime(6)");
b.Property<DateTime?>("DatePayment")
.HasColumnType("datetime(6)")
.HasComment("วันที่จ่ายใบกำกับ");
@ -6039,6 +6051,12 @@ namespace BMA.EHR.Infrastructure.Migrations
b.Property<Guid?>("DocReturnInsigniaId")
.HasColumnType("char(36)");
b.Property<string>("FirstName")
.HasColumnType("longtext");
b.Property<string>("Gender")
.HasColumnType("longtext");
b.Property<Guid>("InsigniaNoteId")
.HasColumnType("char(36)");
@ -6049,6 +6067,9 @@ namespace BMA.EHR.Infrastructure.Migrations
.HasColumnType("longtext")
.HasComment("ทะเบียนฐานันดร");
b.Property<string>("LastName")
.HasColumnType("longtext");
b.Property<string>("LastUpdateFullName")
.IsRequired()
.HasMaxLength(200)
@ -6094,9 +6115,30 @@ namespace BMA.EHR.Infrastructure.Migrations
.HasColumnType("longtext")
.HasComment("หน้าที่");
b.Property<string>("PosLevelName")
.HasColumnType("longtext");
b.Property<string>("PosNo")
.HasColumnType("longtext");
b.Property<string>("PosTypeName")
.HasColumnType("longtext");
b.Property<string>("Position")
.HasColumnType("longtext");
b.Property<double?>("PositionSalaryAmount")
.HasColumnType("double");
b.Property<string>("Prefix")
.HasColumnType("longtext");
b.Property<Guid?>("ProfileId")
.HasColumnType("char(36)");
b.Property<string>("ProfileType")
.HasColumnType("longtext");
b.Property<DateTime?>("RequestDate")
.HasColumnType("datetime(6)");
@ -6319,6 +6361,15 @@ namespace BMA.EHR.Infrastructure.Migrations
.HasComment("PrimaryKey")
.HasAnnotation("Relational:JsonPropertyName", "id");
b.Property<double?>("Amount")
.HasColumnType("double");
b.Property<DateTime?>("BirthDate")
.HasColumnType("datetime(6)");
b.Property<string>("CitizenId")
.HasColumnType("longtext");
b.Property<DateTime>("CreatedAt")
.HasColumnType("datetime(6)")
.HasColumnOrder(100)
@ -6338,9 +6389,21 @@ namespace BMA.EHR.Infrastructure.Migrations
.HasColumnOrder(101)
.HasComment("User Id ที่สร้างข้อมูล");
b.Property<DateTime?>("DateAppoint")
.HasColumnType("datetime(6)");
b.Property<string>("FirstName")
.HasColumnType("longtext");
b.Property<string>("Gender")
.HasColumnType("longtext");
b.Property<bool>("IsApprove")
.HasColumnType("tinyint(1)");
b.Property<string>("LastName")
.HasColumnType("longtext");
b.Property<string>("LastUpdateFullName")
.IsRequired()
.HasMaxLength(200)
@ -6376,9 +6439,30 @@ namespace BMA.EHR.Infrastructure.Migrations
.HasColumnType("text")
.HasComment("รายละเอียดเครื่องราชฯที่ขอ");
b.Property<string>("PosLevelName")
.HasColumnType("longtext");
b.Property<string>("PosNo")
.HasColumnType("longtext");
b.Property<string>("PosTypeName")
.HasColumnType("longtext");
b.Property<string>("Position")
.HasColumnType("longtext");
b.Property<double?>("PositionSalaryAmount")
.HasColumnType("double");
b.Property<string>("Prefix")
.HasColumnType("longtext");
b.Property<Guid>("ProfileId")
.HasColumnType("char(36)");
b.Property<string>("ProfileType")
.HasColumnType("longtext");
b.Property<string>("Reason")
.HasColumnType("longtext")
.HasComment("เหตุผลการได้รับเครื่องราชฯ");