api import เครื่องราช,ใบกำกับ
This commit is contained in:
parent
9c610407f4
commit
69f23fd0cb
21 changed files with 47554 additions and 55 deletions
15599
BMA.EHR.Infrastructure/Migrations/20230824031748_update table InsigniaRequestProfile add reason.Designer.cs
generated
Normal file
15599
BMA.EHR.Infrastructure/Migrations/20230824031748_update table InsigniaRequestProfile add reason.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -0,0 +1,30 @@
|
|||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace BMA.EHR.Infrastructure.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class updatetableInsigniaRequestProfileaddreason : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "Reason",
|
||||
table: "InsigniaRequestProfiles",
|
||||
type: "longtext",
|
||||
nullable: true,
|
||||
comment: "เหตุผลไม่ยื่นขอ")
|
||||
.Annotation("MySql:CharSet", "utf8mb4");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "Reason",
|
||||
table: "InsigniaRequestProfiles");
|
||||
}
|
||||
}
|
||||
}
|
||||
15604
BMA.EHR.Infrastructure/Migrations/20230824045808_update table InsigniaRequestProfile add reason1.Designer.cs
generated
Normal file
15604
BMA.EHR.Infrastructure/Migrations/20230824045808_update table InsigniaRequestProfile add reason1.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -0,0 +1,98 @@
|
|||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace BMA.EHR.Infrastructure.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class updatetableInsigniaRequestProfileaddreason1 : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropForeignKey(
|
||||
name: "FK_InsigniaNoteProfiles_OrganizationOrganizations_OrganizationO~",
|
||||
table: "InsigniaNoteProfiles");
|
||||
|
||||
migrationBuilder.DropIndex(
|
||||
name: "IX_InsigniaNoteProfiles_OrganizationOrganizationSendId",
|
||||
table: "InsigniaNoteProfiles");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "OrganizationOrganizationSendId",
|
||||
table: "InsigniaNoteProfiles");
|
||||
|
||||
// migrationBuilder.AddColumn<bool>(
|
||||
// name: "IsActive",
|
||||
// table: "Organizations",
|
||||
// type: "tinyint(1)",
|
||||
// nullable: false,
|
||||
// defaultValue: false,
|
||||
// comment: "สถานะการใช้งาน");
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "InvoiceNumber",
|
||||
table: "InsigniaNoteProfiles",
|
||||
type: "longtext",
|
||||
nullable: true,
|
||||
comment: "หมายเลขใบกำกับ")
|
||||
.Annotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "OrganizationOrganizationReceive",
|
||||
table: "InsigniaNoteProfiles",
|
||||
type: "longtext",
|
||||
nullable: true,
|
||||
comment: "สังกัด ณ วันที่ได้รับพระราชทานเครื่องราชฯ")
|
||||
.Annotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "OrganizationOrganizationSend",
|
||||
table: "InsigniaNoteProfiles",
|
||||
type: "longtext",
|
||||
nullable: true,
|
||||
comment: "สังกัด ณ วันที่ขอพระราชทานเครื่องราชฯ")
|
||||
.Annotation("MySql:CharSet", "utf8mb4");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
// migrationBuilder.DropColumn(
|
||||
// name: "IsActive",
|
||||
// table: "Organizations");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "InvoiceNumber",
|
||||
table: "InsigniaNoteProfiles");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "OrganizationOrganizationReceive",
|
||||
table: "InsigniaNoteProfiles");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "OrganizationOrganizationSend",
|
||||
table: "InsigniaNoteProfiles");
|
||||
|
||||
migrationBuilder.AddColumn<Guid>(
|
||||
name: "OrganizationOrganizationSendId",
|
||||
table: "InsigniaNoteProfiles",
|
||||
type: "char(36)",
|
||||
nullable: true,
|
||||
collation: "ascii_general_ci");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_InsigniaNoteProfiles_OrganizationOrganizationSendId",
|
||||
table: "InsigniaNoteProfiles",
|
||||
column: "OrganizationOrganizationSendId");
|
||||
|
||||
migrationBuilder.AddForeignKey(
|
||||
name: "FK_InsigniaNoteProfiles_OrganizationOrganizations_OrganizationO~",
|
||||
table: "InsigniaNoteProfiles",
|
||||
column: "OrganizationOrganizationSendId",
|
||||
principalTable: "OrganizationOrganizations",
|
||||
principalColumn: "Id");
|
||||
}
|
||||
}
|
||||
}
|
||||
15600
BMA.EHR.Infrastructure/Migrations/20230824054136_update table InsigniaRequestProfile remove invoice.Designer.cs
generated
Normal file
15600
BMA.EHR.Infrastructure/Migrations/20230824054136_update table InsigniaRequestProfile remove invoice.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -0,0 +1,30 @@
|
|||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace BMA.EHR.Infrastructure.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class updatetableInsigniaRequestProfileremoveinvoice : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "InvoiceNumber",
|
||||
table: "InsigniaNoteProfiles");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "InvoiceNumber",
|
||||
table: "InsigniaNoteProfiles",
|
||||
type: "longtext",
|
||||
nullable: true,
|
||||
comment: "หมายเลขใบกำกับ")
|
||||
.Annotation("MySql:CharSet", "utf8mb4");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -5407,8 +5407,13 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
.HasColumnType("longtext")
|
||||
.HasComment("หมายเลขประกาศนียบัตรกำกับเครื่องราชฯ");
|
||||
|
||||
b.Property<Guid?>("OrganizationOrganizationSendId")
|
||||
.HasColumnType("char(36)");
|
||||
b.Property<string>("OrganizationOrganizationReceive")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("สังกัด ณ วันที่ได้รับพระราชทานเครื่องราชฯ");
|
||||
|
||||
b.Property<string>("OrganizationOrganizationSend")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("สังกัด ณ วันที่ขอพระราชทานเครื่องราชฯ");
|
||||
|
||||
b.Property<string>("Page")
|
||||
.HasColumnType("longtext")
|
||||
|
|
@ -5447,8 +5452,6 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
|
||||
b.HasIndex("InsigniaNoteId");
|
||||
|
||||
b.HasIndex("OrganizationOrganizationSendId");
|
||||
|
||||
b.HasIndex("ProfileId");
|
||||
|
||||
b.HasIndex("RequestInsigniaId");
|
||||
|
|
@ -5670,6 +5673,10 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
b.Property<Guid>("ProfileId")
|
||||
.HasColumnType("char(36)");
|
||||
|
||||
b.Property<string>("Reason")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("เหตุผลไม่ยื่นขอ");
|
||||
|
||||
b.Property<DateTime>("RequestDate")
|
||||
.HasColumnType("datetime(6)");
|
||||
|
||||
|
|
@ -9234,6 +9241,10 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
.HasColumnOrder(15)
|
||||
.HasComment("ส่วนราชการ");
|
||||
|
||||
b.Property<bool>("IsActive")
|
||||
.HasColumnType("tinyint(1)")
|
||||
.HasComment("สถานะการใช้งาน");
|
||||
|
||||
b.Property<string>("LastUpdateFullName")
|
||||
.IsRequired()
|
||||
.HasMaxLength(200)
|
||||
|
|
@ -14066,10 +14077,6 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.HasOne("BMA.EHR.Domain.Models.MetaData.OrganizationOrganization", "OrganizationOrganizationSend")
|
||||
.WithMany()
|
||||
.HasForeignKey("OrganizationOrganizationSendId");
|
||||
|
||||
b.HasOne("BMA.EHR.Domain.Models.HR.Profile", "Profile")
|
||||
.WithMany()
|
||||
.HasForeignKey("ProfileId")
|
||||
|
|
@ -14084,8 +14091,6 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
|
||||
b.Navigation("InsigniaNote");
|
||||
|
||||
b.Navigation("OrganizationOrganizationSend");
|
||||
|
||||
b.Navigation("Profile");
|
||||
|
||||
b.Navigation("RequestInsignia");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue