แก้สืบสอบ status เพิ่มdefult

This commit is contained in:
Kittapath 2023-12-01 09:46:39 +07:00
parent dd4a409855
commit 49d70b1e05
16 changed files with 34059 additions and 3 deletions

View file

@ -0,0 +1,62 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace BMA.EHR.Infrastructure.Migrations.DisciplineDb
{
/// <inheritdoc />
public partial class updatetableDisciplineDisciplinarysaddInvestigationDaysExtend : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<int>(
name: "InvestigationDaysExtend",
table: "DisciplineInvestigates",
type: "int",
nullable: true,
comment: "จำนวนวันที่ต้องการขยาย");
migrationBuilder.AddColumn<bool>(
name: "InvestigationExtendStatus",
table: "DisciplineInvestigates",
type: "tinyint(1)",
nullable: true,
comment: "ขยายเวลา");
migrationBuilder.AddColumn<int>(
name: "InvestigationDaysExtend",
table: "DisciplineDisciplinarys",
type: "int",
nullable: true,
comment: "จำนวนวันที่ต้องการขยาย");
migrationBuilder.AddColumn<bool>(
name: "InvestigationExtendStatus",
table: "DisciplineDisciplinarys",
type: "tinyint(1)",
nullable: true,
comment: "ขยายเวลา");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "InvestigationDaysExtend",
table: "DisciplineInvestigates");
migrationBuilder.DropColumn(
name: "InvestigationExtendStatus",
table: "DisciplineInvestigates");
migrationBuilder.DropColumn(
name: "InvestigationDaysExtend",
table: "DisciplineDisciplinarys");
migrationBuilder.DropColumn(
name: "InvestigationExtendStatus",
table: "DisciplineDisciplinarys");
}
}
}

View file

@ -0,0 +1,29 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace BMA.EHR.Infrastructure.Migrations.DisciplineDb
{
/// <inheritdoc />
public partial class updatetableDisciplineDisciplinarysaddDisciplineDaysExtend : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<bool>(
name: "DisciplinaryExtendStatus",
table: "DisciplineDisciplinarys",
type: "tinyint(1)",
nullable: true,
comment: "ขยายเวลา");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "DisciplinaryExtendStatus",
table: "DisciplineDisciplinarys");
}
}
}

View file

@ -0,0 +1,84 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace BMA.EHR.Infrastructure.Migrations.DisciplineDb
{
/// <inheritdoc />
public partial class updatetableDisciplineDisciplinarysDisciplinaryDaysExtendnotnull : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<bool>(
name: "InvestigationExtendStatus",
table: "DisciplineInvestigates",
type: "tinyint(1)",
nullable: false,
defaultValue: false,
comment: "ขยายเวลา",
oldClrType: typeof(bool),
oldType: "tinyint(1)",
oldNullable: true,
oldComment: "ขยายเวลา");
migrationBuilder.AlterColumn<bool>(
name: "InvestigationExtendStatus",
table: "DisciplineDisciplinarys",
type: "tinyint(1)",
nullable: false,
defaultValue: false,
comment: "ขยายเวลา",
oldClrType: typeof(bool),
oldType: "tinyint(1)",
oldNullable: true,
oldComment: "ขยายเวลา");
migrationBuilder.AlterColumn<bool>(
name: "DisciplinaryExtendStatus",
table: "DisciplineDisciplinarys",
type: "tinyint(1)",
nullable: false,
defaultValue: false,
comment: "ขยายเวลา",
oldClrType: typeof(bool),
oldType: "tinyint(1)",
oldNullable: true,
oldComment: "ขยายเวลา");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<bool>(
name: "InvestigationExtendStatus",
table: "DisciplineInvestigates",
type: "tinyint(1)",
nullable: true,
comment: "ขยายเวลา",
oldClrType: typeof(bool),
oldType: "tinyint(1)",
oldComment: "ขยายเวลา");
migrationBuilder.AlterColumn<bool>(
name: "InvestigationExtendStatus",
table: "DisciplineDisciplinarys",
type: "tinyint(1)",
nullable: true,
comment: "ขยายเวลา",
oldClrType: typeof(bool),
oldType: "tinyint(1)",
oldComment: "ขยายเวลา");
migrationBuilder.AlterColumn<bool>(
name: "DisciplinaryExtendStatus",
table: "DisciplineDisciplinarys",
type: "tinyint(1)",
nullable: true,
comment: "ขยายเวลา",
oldClrType: typeof(bool),
oldType: "tinyint(1)",
oldComment: "ขยายเวลา");
}
}
}

View file

@ -533,6 +533,10 @@ namespace BMA.EHR.Infrastructure.Migrations.DisciplineDb
.HasColumnType("int")
.HasComment("จำนวนวันที่ขยาย");
b.Property<bool>("DisciplinaryExtendStatus")
.HasColumnType("tinyint(1)")
.HasComment("ขยายเวลา");
b.Property<string>("DisciplinaryFaultLevel")
.HasColumnType("longtext")
.HasComment("ระดับโทษความผิด กรณีไม่ร้ายแรง: ภาคทัณฑ์, ตัดเงินเดือน, ลดขั้นเงินเดือน | กรณีร้ายแรง: ปลดออก, ไล่ออก");
@ -580,6 +584,10 @@ namespace BMA.EHR.Infrastructure.Migrations.DisciplineDb
.HasColumnType("datetime(6)")
.HasComment("วันที่เริ่มการสืบสวน");
b.Property<int?>("InvestigationDaysExtend")
.HasColumnType("int")
.HasComment("จำนวนวันที่ต้องการขยาย");
b.Property<string>("InvestigationDescription")
.HasColumnType("longtext")
.HasComment("รายละเอียดเกี่ยวกับการสืบสวน");
@ -592,6 +600,10 @@ namespace BMA.EHR.Infrastructure.Migrations.DisciplineDb
.HasColumnType("longtext")
.HasComment("ลักษณะการสืบสวนกรณีเลือกอื่นๆ");
b.Property<bool>("InvestigationExtendStatus")
.HasColumnType("tinyint(1)")
.HasComment("ขยายเวลา");
b.Property<string>("InvestigationStatusResult")
.HasColumnType("longtext")
.HasComment("สถานะหรือผลการสืบสวน (NOT_SPECIFIED คือ ยังไม่ระบุ, HAVE_CAUSE คือ มีมูล, NO_CAUSE คือ ไม่มีมูล");
@ -1409,6 +1421,10 @@ namespace BMA.EHR.Infrastructure.Migrations.DisciplineDb
.HasColumnType("datetime(6)")
.HasComment("วันที่เริ่มการสืบสวน");
b.Property<int?>("InvestigationDaysExtend")
.HasColumnType("int")
.HasComment("จำนวนวันที่ต้องการขยาย");
b.Property<string>("InvestigationDescription")
.HasColumnType("longtext")
.HasComment("รายละเอียดเกี่ยวกับการสืบสวน");
@ -1421,6 +1437,10 @@ namespace BMA.EHR.Infrastructure.Migrations.DisciplineDb
.HasColumnType("longtext")
.HasComment("ลักษณะการสืบสวนกรณีเลือกอื่นๆ");
b.Property<bool>("InvestigationExtendStatus")
.HasColumnType("tinyint(1)")
.HasComment("ขยายเวลา");
b.Property<string>("InvestigationStatusResult")
.HasColumnType("longtext")
.HasComment("สถานะหรือผลการสืบสวน (not_specified คือ ยังไม่ระบุ, have_cause คือ มีมูล, no_cause คือ ไม่มีมูล");