Merge branch 'develop' into adiDev
All checks were successful
Build & Deploy Placement Service / build (push) Successful in 2m2s

This commit is contained in:
Adisak 2026-05-21 16:38:49 +07:00
commit 8415ffc92d
8 changed files with 21379 additions and 11 deletions

View file

@ -119,6 +119,10 @@ namespace BMA.EHR.Domain.Models.Placement
public string? position { get; set; } public string? position { get; set; }
[Comment("ตำแหน่งทางการบริหาร")] [Comment("ตำแหน่งทางการบริหาร")]
public string? PositionExecutive { get; set; } public string? PositionExecutive { get; set; }
[Comment("id ตำแหน่งทางการบริหาร")]
public string? posExecutiveId { get; set; }
[Comment("id ประเภทตำแหน่ง")] [Comment("id ประเภทตำแหน่ง")]
public string? posTypeId { get; set; } public string? posTypeId { get; set; }
[Comment("ชื่อประเภทตำแหน่ง")] [Comment("ชื่อประเภทตำแหน่ง")]

View file

@ -321,6 +321,10 @@ namespace BMA.EHR.Domain.Models.Placement
public string? positionName { get; set; } public string? positionName { get; set; }
[Comment("ตำแหน่งทางการบริหาร")] [Comment("ตำแหน่งทางการบริหาร")]
public string? PositionExecutive { get; set; } public string? PositionExecutive { get; set; }
[Comment("id ตำแหน่งทางการบริหาร")]
public string? posExecutiveId { get; set; }
[Comment("สายงาน")] [Comment("สายงาน")]
public string? positionField { get; set; } public string? positionField { get; set; }
[Comment("id ประเภทตำแหน่ง")] [Comment("id ประเภทตำแหน่ง")]

View file

@ -132,6 +132,10 @@ namespace BMA.EHR.Domain.Models.Placement
public string? position { get; set; } public string? position { get; set; }
[Comment("ตำแหน่งทางการบริหาร")] [Comment("ตำแหน่งทางการบริหาร")]
public string? PositionExecutive { get; set; } public string? PositionExecutive { get; set; }
[Comment("id ตำแหน่งทางการบริหาร")]
public string? posExecutiveId { get; set; }
[Comment("id ประเภทตำแหน่ง")] [Comment("id ประเภทตำแหน่ง")]
public string? posTypeId { get; set; } public string? posTypeId { get; set; }
[Comment("ชื่อประเภทตำแหน่ง")] [Comment("ชื่อประเภทตำแหน่ง")]

View file

@ -173,6 +173,10 @@ namespace BMA.EHR.Domain.Models.Retirement
public string? position { get; set; } public string? position { get; set; }
[Comment("ตำแหน่งทางการบริหาร")] [Comment("ตำแหน่งทางการบริหาร")]
public string? PositionExecutive { get; set; } public string? PositionExecutive { get; set; }
[Comment("id ตำแหน่งทางการบริหาร")]
public string? posExecutiveId { get; set; }
[Comment("id ประเภทตำแหน่ง")] [Comment("id ประเภทตำแหน่ง")]
public string? posTypeId { get; set; } public string? posTypeId { get; set; }
[Comment("ชื่อประเภทตำแหน่ง")] [Comment("ชื่อประเภทตำแหน่ง")]

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,66 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace BMA.EHR.Infrastructure.Migrations
{
/// <inheritdoc />
public partial class update_Tables_add_posExecutiveId : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<string>(
name: "posExecutiveId",
table: "RetirementOthers",
type: "longtext",
nullable: true,
comment: "id ตำแหน่งทางการบริหาร")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<string>(
name: "posExecutiveId",
table: "PlacementReceives",
type: "longtext",
nullable: true,
comment: "id ตำแหน่งทางการบริหาร")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<string>(
name: "posExecutiveId",
table: "PlacementProfiles",
type: "longtext",
nullable: true,
comment: "id ตำแหน่งทางการบริหาร")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<string>(
name: "posExecutiveId",
table: "PlacementAppointments",
type: "longtext",
nullable: true,
comment: "id ตำแหน่งทางการบริหาร")
.Annotation("MySql:CharSet", "utf8mb4");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "posExecutiveId",
table: "RetirementOthers");
migrationBuilder.DropColumn(
name: "posExecutiveId",
table: "PlacementReceives");
migrationBuilder.DropColumn(
name: "posExecutiveId",
table: "PlacementProfiles");
migrationBuilder.DropColumn(
name: "posExecutiveId",
table: "PlacementAppointments");
}
}
}

View file

@ -11721,6 +11721,10 @@ namespace BMA.EHR.Infrastructure.Migrations
.HasColumnType("longtext") .HasColumnType("longtext")
.HasComment("id revision"); .HasComment("id revision");
b.Property<string>("posExecutiveId")
.HasColumnType("longtext")
.HasComment("id ตำแหน่งทางการบริหาร");
b.Property<string>("posLevelId") b.Property<string>("posLevelId")
.HasColumnType("longtext") .HasColumnType("longtext")
.HasComment("id ระดับตำแหน่ง"); .HasComment("id ระดับตำแหน่ง");
@ -13108,6 +13112,10 @@ namespace BMA.EHR.Infrastructure.Migrations
.HasColumnType("longtext") .HasColumnType("longtext")
.HasComment("ชื่อหน่วยงาน"); .HasComment("ชื่อหน่วยงาน");
b.Property<string>("posExecutiveId")
.HasColumnType("longtext")
.HasComment("id ตำแหน่งทางการบริหาร");
b.Property<string>("posLevelId") b.Property<string>("posLevelId")
.HasColumnType("longtext") .HasColumnType("longtext")
.HasComment("id ระดับตำแหน่ง"); .HasComment("id ระดับตำแหน่ง");
@ -13613,6 +13621,10 @@ namespace BMA.EHR.Infrastructure.Migrations
.HasColumnType("longtext") .HasColumnType("longtext")
.HasComment("id revision"); .HasComment("id revision");
b.Property<string>("posExecutiveId")
.HasColumnType("longtext")
.HasComment("id ตำแหน่งทางการบริหาร");
b.Property<string>("posLevelId") b.Property<string>("posLevelId")
.HasColumnType("longtext") .HasColumnType("longtext")
.HasComment("id ระดับตำแหน่ง"); .HasComment("id ระดับตำแหน่ง");
@ -15803,6 +15815,10 @@ namespace BMA.EHR.Infrastructure.Migrations
.HasColumnType("longtext") .HasColumnType("longtext")
.HasComment("id revision"); .HasComment("id revision");
b.Property<string>("posExecutiveId")
.HasColumnType("longtext")
.HasComment("id ตำแหน่งทางการบริหาร");
b.Property<string>("posLevelId") b.Property<string>("posLevelId")
.HasColumnType("longtext") .HasColumnType("longtext")
.HasComment("id ระดับตำแหน่ง"); .HasComment("id ระดับตำแหน่ง");

View file

@ -1675,18 +1675,22 @@ namespace BMA.EHR.Leave.Service.Controllers
agencyCount = agencyCount, agencyCount = agencyCount,
coupleCount = coupleCount, coupleCount = coupleCount,
therapyCount = therapyCount, therapyCount = therapyCount,
// ระบบนับจำนวนครั้ง วันลาพักผ่อนด้วย ซึ่งตามระเบียบไม่ให้นับจำนวนครั้งวันลาพักผ่อนครับ จำนวนครั้งนับเฉพาะ ป่วย กับ กิจ
leaveTotal = sickCount +
personalCount
leaveTotal = sickCount + // leaveTotal = sickCount +
maternityCount + // maternityCount +
wifeCount + // wifeCount +
personalCount + // personalCount +
restCount + // restCount +
ordainCount + // ordainCount +
absentCount + // absentCount +
studyCount + // studyCount +
agencyCount + // agencyCount +
coupleCount + // coupleCount +
therapyCount // therapyCount
}; };