filter excel insignia

This commit is contained in:
Kittapath 2023-09-27 20:36:13 +07:00
parent 04b8885e18
commit a3a111834f
8 changed files with 16654 additions and 4 deletions

View file

@ -0,0 +1,96 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace BMA.EHR.Infrastructure.Migrations
{
/// <inheritdoc />
public partial class updatetablePlacementRepatriationsaddDateRepatriation : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<DateTime>(
name: "DateRepatriation",
table: "PlacementRepatriations",
type: "datetime(6)",
nullable: true,
comment: "ส่งตัวกลับตั้งแต่วันที่");
migrationBuilder.AlterColumn<bool>(
name: "MarkRate",
table: "InsigniaRequestProfiles",
type: "tinyint(1)",
nullable: true,
comment: "แจ้งเตือน ผลการประเมินการปฏิบัติราชการในรอบ 5 ปี ต่ำกว่าระดับดี (น้อยกว่าร้อยละ 70)",
oldClrType: typeof(bool),
oldType: "tinyint(1)",
oldComment: "แจ้งเตือน ผลการประเมินการปฏิบัติราชการในรอบ 5 ปี ต่ำกว่าระดับดี (น้อยกว่าร้อยละ 70)");
migrationBuilder.AlterColumn<bool>(
name: "MarkLeave",
table: "InsigniaRequestProfiles",
type: "tinyint(1)",
nullable: true,
comment: "แจ้งเตือน ไม่ได้เลื่อนเงินเดือน/ไม่ได้เลื่อนขั้น เนื่องจากลาเกิน",
oldClrType: typeof(bool),
oldType: "tinyint(1)",
oldComment: "แจ้งเตือน ไม่ได้เลื่อนเงินเดือน/ไม่ได้เลื่อนขั้น เนื่องจากลาเกิน");
migrationBuilder.AlterColumn<bool>(
name: "MarkDiscipline",
table: "InsigniaRequestProfiles",
type: "tinyint(1)",
nullable: true,
comment: "แจ้งเตือน มีโทษทางวินัย",
oldClrType: typeof(bool),
oldType: "tinyint(1)",
oldComment: "แจ้งเตือน มีโทษทางวินัย");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "DateRepatriation",
table: "PlacementRepatriations");
migrationBuilder.AlterColumn<bool>(
name: "MarkRate",
table: "InsigniaRequestProfiles",
type: "tinyint(1)",
nullable: false,
defaultValue: false,
comment: "แจ้งเตือน ผลการประเมินการปฏิบัติราชการในรอบ 5 ปี ต่ำกว่าระดับดี (น้อยกว่าร้อยละ 70)",
oldClrType: typeof(bool),
oldType: "tinyint(1)",
oldNullable: true,
oldComment: "แจ้งเตือน ผลการประเมินการปฏิบัติราชการในรอบ 5 ปี ต่ำกว่าระดับดี (น้อยกว่าร้อยละ 70)");
migrationBuilder.AlterColumn<bool>(
name: "MarkLeave",
table: "InsigniaRequestProfiles",
type: "tinyint(1)",
nullable: false,
defaultValue: false,
comment: "แจ้งเตือน ไม่ได้เลื่อนเงินเดือน/ไม่ได้เลื่อนขั้น เนื่องจากลาเกิน",
oldClrType: typeof(bool),
oldType: "tinyint(1)",
oldNullable: true,
oldComment: "แจ้งเตือน ไม่ได้เลื่อนเงินเดือน/ไม่ได้เลื่อนขั้น เนื่องจากลาเกิน");
migrationBuilder.AlterColumn<bool>(
name: "MarkDiscipline",
table: "InsigniaRequestProfiles",
type: "tinyint(1)",
nullable: false,
defaultValue: false,
comment: "แจ้งเตือน มีโทษทางวินัย",
oldClrType: typeof(bool),
oldType: "tinyint(1)",
oldNullable: true,
oldComment: "แจ้งเตือน มีโทษทางวินัย");
}
}
}

View file

@ -6004,15 +6004,15 @@ namespace BMA.EHR.Infrastructure.Migrations
.HasColumnOrder(102)
.HasComment("แก้ไขข้อมูลล่าสุดเมื่อ");
b.Property<bool>("MarkDiscipline")
b.Property<bool?>("MarkDiscipline")
.HasColumnType("tinyint(1)")
.HasComment("แจ้งเตือน มีโทษทางวินัย");
b.Property<bool>("MarkLeave")
b.Property<bool?>("MarkLeave")
.HasColumnType("tinyint(1)")
.HasComment("แจ้งเตือน ไม่ได้เลื่อนเงินเดือน/ไม่ได้เลื่อนขั้น เนื่องจากลาเกิน");
b.Property<bool>("MarkRate")
b.Property<bool?>("MarkRate")
.HasColumnType("tinyint(1)")
.HasComment("แจ้งเตือน ผลการประเมินการปฏิบัติราชการในรอบ 5 ปี ต่ำกว่าระดับดี (น้อยกว่าร้อยละ 70)");
@ -12363,6 +12363,10 @@ namespace BMA.EHR.Infrastructure.Migrations
.HasColumnType("datetime(6)")
.HasComment("ตั้งแต่วันที่");
b.Property<DateTime?>("DateRepatriation")
.HasColumnType("datetime(6)")
.HasComment("ส่งตัวกลับตั้งแต่วันที่");
b.Property<bool>("IsActive")
.HasColumnType("tinyint(1)")
.HasComment("สถานะการใช้งาน");