ออกคำสั่งเงินเดือน

This commit is contained in:
Kittapath 2024-04-26 10:18:59 +07:00
parent b89c3301e3
commit 66c97a162b
14 changed files with 53814 additions and 1 deletions

View file

@ -0,0 +1,31 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace BMA.EHR.Infrastructure.Migrations
{
/// <inheritdoc />
public partial class updatetablecommandaddRefDisciplineId : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<Guid>(
name: "SalaryPeriodId",
table: "Commands",
type: "char(36)",
nullable: true,
comment: "Id เรื่องเงินเดือน",
collation: "ascii_general_ci");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "SalaryPeriodId",
table: "Commands");
}
}
}

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,31 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace BMA.EHR.Infrastructure.Migrations
{
/// <inheritdoc />
public partial class updatetablecommandaddyear : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<string>(
name: "Year",
table: "Commands",
type: "varchar(4)",
maxLength: 4,
nullable: true,
comment: "ปีรอบเงินเดือน")
.Annotation("MySql:CharSet", "utf8mb4");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "Year",
table: "Commands");
}
}
}

View file

@ -0,0 +1,30 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace BMA.EHR.Infrastructure.Migrations
{
/// <inheritdoc />
public partial class updatetablecommandaddsalaryPeriod : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<string>(
name: "SalaryPeriod",
table: "Commands",
type: "longtext",
nullable: true,
comment: "รอบเงินเดือน")
.Annotation("MySql:CharSet", "utf8mb4");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "SalaryPeriod",
table: "Commands");
}
}
}

View file

@ -283,6 +283,14 @@ namespace BMA.EHR.Infrastructure.Migrations
.HasColumnType("longtext")
.HasComment("ผลดำเนินการพิจารณา");
b.Property<string>("SalaryPeriod")
.HasColumnType("longtext")
.HasComment("รอบเงินเดือน");
b.Property<Guid?>("SalaryPeriodId")
.HasColumnType("char(36)")
.HasComment("Id เรื่องเงินเดือน");
b.Property<string>("SourceOrganizationName")
.HasColumnType("longtext")
.HasComment("หน่วยงานต้นสังกัด ก่อนรับราชการทหาร");
@ -291,6 +299,11 @@ namespace BMA.EHR.Infrastructure.Migrations
.HasColumnType("longtext")
.HasComment("ส่วนราชการที่ให้โอน");
b.Property<string>("Year")
.HasMaxLength(4)
.HasColumnType("varchar(4)")
.HasComment("ปีรอบเงินเดือน");
b.HasKey("Id");
b.HasIndex("CommandStatusId");