เพิ่ม api สร้างคำสั่ง C-PM-18 ถึง C-PM-20
This commit is contained in:
parent
200e8eb5f6
commit
20ef0c5c09
7 changed files with 16216 additions and 2 deletions
15707
BMA.EHR.Infrastructure/Migrations/20230825073352_Add field For CommandType 18-20.Designer.cs
generated
Normal file
15707
BMA.EHR.Infrastructure/Migrations/20230825073352_Add field For CommandType 18-20.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -0,0 +1,122 @@
|
|||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace BMA.EHR.Infrastructure.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class AddfieldForCommandType1820 : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "GovAidCommandNo",
|
||||
table: "Commands",
|
||||
type: "longtext",
|
||||
nullable: true,
|
||||
comment: "คำสั่งเลขที่ (คำสั่งช่วยราชการ)",
|
||||
oldClrType: typeof(string),
|
||||
oldType: "longtext",
|
||||
oldNullable: true)
|
||||
.Annotation("MySql:CharSet", "utf8mb4")
|
||||
.OldAnnotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.AlterColumn<DateTime>(
|
||||
name: "GovAidCommandDate",
|
||||
table: "Commands",
|
||||
type: "datetime(6)",
|
||||
nullable: true,
|
||||
comment: "ลงวันที่ (คำสั่งช่วยราชการ)",
|
||||
oldClrType: typeof(DateTime),
|
||||
oldType: "datetime(6)",
|
||||
oldNullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<DateTime>(
|
||||
name: "ConclusionFireDate",
|
||||
table: "Commands",
|
||||
type: "datetime(6)",
|
||||
nullable: true,
|
||||
comment: "ลงวันที่ (เรื่องการดำเนินการทางวินัย)");
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "ConclusionFireNo",
|
||||
table: "Commands",
|
||||
type: "longtext",
|
||||
nullable: true,
|
||||
comment: "ครั้งที่ (เรื่องการดำเนินการทางวินัย)")
|
||||
.Annotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "ConclusionFireResolution",
|
||||
table: "Commands",
|
||||
type: "longtext",
|
||||
nullable: true,
|
||||
comment: "มติที่ประชุม (เรื่องการดำเนินการทางวินัย)")
|
||||
.Annotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "Fault",
|
||||
table: "Commands",
|
||||
type: "longtext",
|
||||
nullable: true,
|
||||
comment: "รายละเอียดการกระทำผิด")
|
||||
.Annotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "GuiltyBasis",
|
||||
table: "Commands",
|
||||
type: "longtext",
|
||||
nullable: true,
|
||||
comment: "ฐานความผิด")
|
||||
.Annotation("MySql:CharSet", "utf8mb4");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "ConclusionFireDate",
|
||||
table: "Commands");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "ConclusionFireNo",
|
||||
table: "Commands");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "ConclusionFireResolution",
|
||||
table: "Commands");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "Fault",
|
||||
table: "Commands");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "GuiltyBasis",
|
||||
table: "Commands");
|
||||
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "GovAidCommandNo",
|
||||
table: "Commands",
|
||||
type: "longtext",
|
||||
nullable: true,
|
||||
oldClrType: typeof(string),
|
||||
oldType: "longtext",
|
||||
oldNullable: true,
|
||||
oldComment: "คำสั่งเลขที่ (คำสั่งช่วยราชการ)")
|
||||
.Annotation("MySql:CharSet", "utf8mb4")
|
||||
.OldAnnotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.AlterColumn<DateTime>(
|
||||
name: "GovAidCommandDate",
|
||||
table: "Commands",
|
||||
type: "datetime(6)",
|
||||
nullable: true,
|
||||
oldClrType: typeof(DateTime),
|
||||
oldType: "datetime(6)",
|
||||
oldNullable: true,
|
||||
oldComment: "ลงวันที่ (คำสั่งช่วยราชการ)");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -80,6 +80,18 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
.HasColumnType("varchar(4)")
|
||||
.HasComment("ปีที่ออกคำสั่ง");
|
||||
|
||||
b.Property<DateTime?>("ConclusionFireDate")
|
||||
.HasColumnType("datetime(6)")
|
||||
.HasComment("ลงวันที่ (เรื่องการดำเนินการทางวินัย)");
|
||||
|
||||
b.Property<string>("ConclusionFireNo")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("ครั้งที่ (เรื่องการดำเนินการทางวินัย)");
|
||||
|
||||
b.Property<string>("ConclusionFireResolution")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("มติที่ประชุม (เรื่องการดำเนินการทางวินัย)");
|
||||
|
||||
b.Property<DateTime?>("ConclusionMeetingDate")
|
||||
.HasColumnType("datetime(6)")
|
||||
.HasComment("การประชุม ลงวันที่");
|
||||
|
|
@ -139,11 +151,21 @@ namespace BMA.EHR.Infrastructure.Migrations
|
|||
.HasColumnOrder(101)
|
||||
.HasComment("User Id ที่สร้างข้อมูล");
|
||||
|
||||
b.Property<string>("Fault")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("รายละเอียดการกระทำผิด");
|
||||
|
||||
b.Property<DateTime?>("GovAidCommandDate")
|
||||
.HasColumnType("datetime(6)");
|
||||
.HasColumnType("datetime(6)")
|
||||
.HasComment("ลงวันที่ (คำสั่งช่วยราชการ)");
|
||||
|
||||
b.Property<string>("GovAidCommandNo")
|
||||
.HasColumnType("longtext");
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("คำสั่งเลขที่ (คำสั่งช่วยราชการ)");
|
||||
|
||||
b.Property<string>("GuiltyBasis")
|
||||
.HasColumnType("longtext")
|
||||
.HasComment("ฐานความผิด");
|
||||
|
||||
b.Property<Guid>("IssuerOrganizationId")
|
||||
.HasColumnType("char(36)")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue