Add Field to ProfileSAlary
This commit is contained in:
parent
1a7be19e33
commit
aff4dcd38d
6 changed files with 12762 additions and 1 deletions
2
.github/workflows/release_command.yaml
vendored
2
.github/workflows/release_command.yaml
vendored
|
|
@ -16,7 +16,7 @@ env:
|
||||||
TOKEN_LINE: uxuK5hDzS2DsoC5piJBrWRLiz8GgY7iMZZldOWsDDF0
|
TOKEN_LINE: uxuK5hDzS2DsoC5piJBrWRLiz8GgY7iMZZldOWsDDF0
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
# act workflow_dispatch -W .github/workflows/release.yaml --input IMAGE_VER=test-v6.1 -s DOCKER_USER=sorawit -s DOCKER_PASS=P@ssword -s SSH_PASSWORD=P@ssw0rd
|
# act workflow_dispatch -W .github/workflows/release_command.yaml --input IMAGE_VER=test-v6.1 -s DOCKER_USER=sorawit -s DOCKER_PASS=P@ssword -s SSH_PASSWORD=P@ssw0rd
|
||||||
release-dev:
|
release-dev:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
|
|
||||||
|
|
@ -37,6 +37,8 @@ namespace BMA.EHR.Application.Repositories.Commands
|
||||||
|
|
||||||
#region " Private "
|
#region " Private "
|
||||||
|
|
||||||
|
#region " List Receiver "
|
||||||
|
|
||||||
private async Task<List<CommandReceiver>> GetReceiverForByCommndTypeAsync(Command command)
|
private async Task<List<CommandReceiver>> GetReceiverForByCommndTypeAsync(Command command)
|
||||||
{
|
{
|
||||||
var result = new List<CommandReceiver>();
|
var result = new List<CommandReceiver>();
|
||||||
|
|
@ -116,6 +118,13 @@ namespace BMA.EHR.Application.Repositories.Commands
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
#region " Execute and Deploy "
|
||||||
|
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
#region " Override "
|
#region " Override "
|
||||||
|
|
||||||
public override async Task<Command?> GetByIdAsync(Guid id)
|
public override async Task<Command?> GetByIdAsync(Guid id)
|
||||||
|
|
|
||||||
|
|
@ -49,9 +49,16 @@ namespace BMA.EHR.Domain.Models.HR
|
||||||
|
|
||||||
[Comment("ตำแหน่ง (รายละเอียด)")]
|
[Comment("ตำแหน่ง (รายละเอียด)")]
|
||||||
public string? SalaryClass { get; set; }
|
public string? SalaryClass { get; set; }
|
||||||
|
|
||||||
[Comment("เอกสารอ้างอิง")]
|
[Comment("เอกสารอ้างอิง")]
|
||||||
public string? SalaryRef { get; set; }
|
public string? SalaryRef { get; set; }
|
||||||
public virtual List<ProfileSalaryHistory> ProfileSalaryHistorys { get; set; } = new List<ProfileSalaryHistory>();
|
public virtual List<ProfileSalaryHistory> ProfileSalaryHistorys { get; set; } = new List<ProfileSalaryHistory>();
|
||||||
public virtual Profile? Profile { get; set; }
|
public virtual Profile? Profile { get; set; }
|
||||||
|
|
||||||
|
[Comment("เลขที่คำสั่ง")]
|
||||||
|
public string CommandNo { get; set; }
|
||||||
|
|
||||||
|
[Comment("ประเภทคำสั่ง")]
|
||||||
|
public string CommandTypeName { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
12693
BMA.EHR.Infrastructure/Migrations/20230808033217_Add field to ProfileSalary Table.Designer.cs
generated
Normal file
12693
BMA.EHR.Infrastructure/Migrations/20230808033217_Add field to ProfileSalary Table.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -0,0 +1,42 @@
|
||||||
|
using Microsoft.EntityFrameworkCore.Migrations;
|
||||||
|
|
||||||
|
#nullable disable
|
||||||
|
|
||||||
|
namespace BMA.EHR.Infrastructure.Migrations
|
||||||
|
{
|
||||||
|
/// <inheritdoc />
|
||||||
|
public partial class AddfieldtoProfileSalaryTable : Migration
|
||||||
|
{
|
||||||
|
/// <inheritdoc />
|
||||||
|
protected override void Up(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.AddColumn<string>(
|
||||||
|
name: "CommandNo",
|
||||||
|
table: "ProfileSalaries",
|
||||||
|
type: "longtext",
|
||||||
|
nullable: false,
|
||||||
|
comment: "เลขที่คำสั่ง")
|
||||||
|
.Annotation("MySql:CharSet", "utf8mb4");
|
||||||
|
|
||||||
|
migrationBuilder.AddColumn<string>(
|
||||||
|
name: "CommandTypeName",
|
||||||
|
table: "ProfileSalaries",
|
||||||
|
type: "longtext",
|
||||||
|
nullable: false,
|
||||||
|
comment: "ประเภทคำสั่ง")
|
||||||
|
.Annotation("MySql:CharSet", "utf8mb4");
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <inheritdoc />
|
||||||
|
protected override void Down(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.DropColumn(
|
||||||
|
name: "CommandNo",
|
||||||
|
table: "ProfileSalaries");
|
||||||
|
|
||||||
|
migrationBuilder.DropColumn(
|
||||||
|
name: "CommandTypeName",
|
||||||
|
table: "ProfileSalaries");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -4403,6 +4403,16 @@ namespace BMA.EHR.Infrastructure.Migrations
|
||||||
.HasColumnType("double")
|
.HasColumnType("double")
|
||||||
.HasComment("เงินเดือน");
|
.HasComment("เงินเดือน");
|
||||||
|
|
||||||
|
b.Property<string>("CommandNo")
|
||||||
|
.IsRequired()
|
||||||
|
.HasColumnType("longtext")
|
||||||
|
.HasComment("เลขที่คำสั่ง");
|
||||||
|
|
||||||
|
b.Property<string>("CommandTypeName")
|
||||||
|
.IsRequired()
|
||||||
|
.HasColumnType("longtext")
|
||||||
|
.HasComment("ประเภทคำสั่ง");
|
||||||
|
|
||||||
b.Property<DateTime>("CreatedAt")
|
b.Property<DateTime>("CreatedAt")
|
||||||
.HasColumnType("datetime(6)")
|
.HasColumnType("datetime(6)")
|
||||||
.HasColumnOrder(100)
|
.HasColumnOrder(100)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue