Merge branch 'develop'
All checks were successful
Build & Deploy Placement Service / build (push) Successful in 1m11s
All checks were successful
Build & Deploy Placement Service / build (push) Successful in 1m11s
This commit is contained in:
commit
16cc6b5111
6 changed files with 21314 additions and 39 deletions
|
|
@ -88,65 +88,57 @@ namespace BMA.EHR.Application.Repositories.Reports
|
||||||
{
|
{
|
||||||
p.Id,
|
p.Id,
|
||||||
AvatarId = p.ProfileImg == null ? Guid.Parse("00000000-0000-0000-0000-000000000000") : p.ProfileImg.Id,
|
AvatarId = p.ProfileImg == null ? Guid.Parse("00000000-0000-0000-0000-000000000000") : p.ProfileImg.Id,
|
||||||
ExamIdenNumber = p.ExamIdenNumber == null ? "-" : p.ExamIdenNumber.ToThaiNumber(),
|
ExamIdenNumber = p.ExamIdenNumber == null ? "-" : p.ExamIdenNumber,
|
||||||
PositionName = p.PositionExam == null ? "-" : p.PositionExam.PositionName.ToThaiNumber(),
|
PositionName = p.PositionExam == null ? "-" : p.PositionExam.PositionName,
|
||||||
PositionLevelName = p.PositionExam == null ? "-" : p.PositionExam.PositionLevelName.ToThaiNumber(),
|
PositionLevelName = p.PositionExam == null ? "-" : p.PositionExam.PositionLevelName,
|
||||||
PeriodExamName = p.PeriodExam == null ? "-" : p.PeriodExam.Name.ToThaiNumber(),
|
PeriodExamName = p.PeriodExam == null ? "-" : p.PeriodExam.Name,
|
||||||
PeriodExamRound = p.PeriodExam == null ? "-" : p.PeriodExam.Round.ToString().ToThaiNumber(),
|
PeriodExamRound = p.PeriodExam == null ? "-" : p.PeriodExam.Round.ToString(),
|
||||||
PeriodExamYear = p.PeriodExam == null ? "-" : (p.PeriodExam.Year + 543).ToString().ToThaiNumber(),
|
PeriodExamYear = p.PeriodExam == null ? "-" : (p.PeriodExam.Year + 543).ToString(),
|
||||||
|
|
||||||
FullName = $"{p.PrefixName}{p.FirstName} {p.LastName}",
|
FullName = $"{p.PrefixName}{p.FirstName} {p.LastName}",
|
||||||
Religion = p.ReligionName == null ? "-" : p.ReligionName,
|
Religion = p.ReligionName == null ? "-" : p.ReligionName,
|
||||||
Nationality = p.Nationality == null ? "-" : p.Nationality,
|
Nationality = p.Nationality == null ? "-" : p.Nationality,
|
||||||
DateOfBirth = p.DateOfBirth == null ? "-" : p.DateOfBirth.Value.ToThaiFullDate2().ToThaiNumber(),
|
DateOfBirth = p.DateOfBirth == null ? "-" : p.DateOfBirth.Value.ToThaiFullDate2(),
|
||||||
Age = p.DateOfBirth == null ? "-" : p.DateOfBirth.Value.CalculateAgeStrV2(0, 0).ToThaiNumber(),
|
Age = p.DateOfBirth == null ? "-" : p.DateOfBirth.Value.CalculateAgeStrV2(0, 0),
|
||||||
CitizenId = p.CitizenId == null ? "-" : p.CitizenId.ToThaiNumber(),
|
CitizenId = p.CitizenId == null ? "-" : p.CitizenId,
|
||||||
|
|
||||||
EducationLevelExamName = p.Educations.FirstOrDefault() == null ? "-" : p.Educations.FirstOrDefault().EducationLevelExamName.ToThaiNumber(),
|
EducationLevelExamName = p.Educations.FirstOrDefault() == null ? "-" : p.Educations.FirstOrDefault().EducationLevelExamName,
|
||||||
EducationName = p.Educations.FirstOrDefault() == null ? null : (p.Educations.FirstOrDefault().EducationLevelExamName == "ปริญญาตรี" || p.Educations.FirstOrDefault().EducationLevelExamName == "ปริญญาโท" || p.Educations.FirstOrDefault().EducationLevelExamName == "ปริญญาเอก" ? p.Educations.FirstOrDefault().EducationName : null),
|
EducationName = p.Educations.FirstOrDefault() == null ? null : (p.Educations.FirstOrDefault().EducationLevelExamName == "ปริญญาตรี" || p.Educations.FirstOrDefault().EducationLevelExamName == "ปริญญาโท" || p.Educations.FirstOrDefault().EducationLevelExamName == "ปริญญาเอก" ? p.Educations.FirstOrDefault().EducationName : null),
|
||||||
EducationMajor = p.Educations.FirstOrDefault() == null ? "-" : p.Educations.FirstOrDefault().EducationMajor.ToThaiNumber(),
|
EducationMajor = p.Educations.FirstOrDefault() == null ? "-" : p.Educations.FirstOrDefault().EducationMajor,
|
||||||
EducationLocation = p.Educations.FirstOrDefault() == null ? "-" : p.Educations.FirstOrDefault().EducationLocation,
|
EducationLocation = p.Educations.FirstOrDefault() == null ? "-" : p.Educations.FirstOrDefault().EducationLocation,
|
||||||
EducationEndDate = p.Educations.FirstOrDefault() == null || p.Educations.FirstOrDefault().EducationEndDate == null ? "-" : p.Educations.FirstOrDefault().EducationEndDate.Value.ToThaiFullDate2().ToThaiNumber(),
|
EducationEndDate = p.Educations.FirstOrDefault() == null || p.Educations.FirstOrDefault().EducationEndDate == null ? "-" : p.Educations.FirstOrDefault().EducationEndDate.Value.ToThaiFullDate2(),
|
||||||
EducationScores = p.Educations.FirstOrDefault() == null ? "-" : p.Educations.FirstOrDefault().EducationScores.ToThaiNumber(),
|
EducationScores = p.Educations.FirstOrDefault() == null ? "-" : p.Educations.FirstOrDefault().EducationScores,
|
||||||
EducationType = p.Educations.FirstOrDefault() == null ? "-" : p.Educations.FirstOrDefault().EducationType,
|
EducationType = p.Educations.FirstOrDefault() == null ? "-" : p.Educations.FirstOrDefault().EducationType,
|
||||||
EducationLevelHighName = p.Educations.FirstOrDefault() == null ? "-" : p.Educations.FirstOrDefault().EducationLevelHighName,
|
EducationLevelHighName = p.Educations.FirstOrDefault() == null ? "-" : p.Educations.FirstOrDefault().EducationLevelHighName,
|
||||||
|
|
||||||
OccupationPositionType = p.OccupationPositionType == "other" ? "ผู้ปฏิบัติงานอื่นในกรุงเทพมหานคร" : (p.OccupationPositionType == "temp" ? "ลูกจ้างชั่วคราว" : (p.OccupationPositionType == "prem" ? "ลูกจ้างประจำ" : "-")),
|
OccupationPositionType = p.OccupationPositionType == "other" ? "ผู้ปฏิบัติงานอื่นในกรุงเทพมหานคร" : (p.OccupationPositionType == "temp" ? "ลูกจ้างชั่วคราว" : (p.OccupationPositionType == "prem" ? "ลูกจ้างประจำ" : "-")),
|
||||||
OccupationPosition = p.OccupationPosition == null ? "-" : p.OccupationPosition,
|
OccupationPosition = p.OccupationPosition == null ? "-" : p.OccupationPosition,
|
||||||
OccupationSalary = p.OccupationSalary == null ? "-" : p.OccupationSalary.Value.ToString("N0").ToThaiNumber(),
|
OccupationSalary = p.OccupationSalary == null ? "-" : (p.OccupationSalary.Value % 1 == 0 ? p.OccupationSalary.Value.ToString("N0") : p.OccupationSalary.Value.ToString("N2")),
|
||||||
OccupationGroup = p.OccupationGroup == null ? "-" : p.OccupationGroup,
|
OccupationGroup = p.OccupationGroup == null ? "-" : p.OccupationGroup,
|
||||||
OccupationPile = p.OccupationPile == null ? "-" : p.OccupationPile,
|
OccupationPile = p.OccupationPile == null ? "-" : p.OccupationPile,
|
||||||
OccupationOrg = p.OccupationOrg == null ? "-" : p.OccupationOrg,
|
OccupationOrg = p.OccupationOrg == null ? "-" : p.OccupationOrg,
|
||||||
OccupationTelephone = p.OccupationTelephone == null ? "-" : p.OccupationTelephone.ToThaiNumber(),
|
OccupationTelephone = p.OccupationTelephone == null ? "-" : p.OccupationTelephone,
|
||||||
|
|
||||||
CareersTotal = sb.ToString().ToThaiNumber(),
|
CareersTotal = sb.ToString(),
|
||||||
// Careers = p.Careers.Select(y => new
|
|
||||||
// {
|
|
||||||
// Position = y.Position,
|
|
||||||
// Type = y.Type,
|
|
||||||
// DurationStart = y.DurationStart.ToThaiShortDate2(),
|
|
||||||
// DurationEnd = y.DurationEnd.ToThaiShortDate2(),
|
|
||||||
// RangeDate = y.RangeDate,
|
|
||||||
// }).ToList(),
|
|
||||||
|
|
||||||
RegistAddress = p.RegistAddress == null ? "-" : p.RegistAddress.ToThaiNumber(),
|
RegistAddress = p.RegistAddress == null ? "-" : p.RegistAddress,
|
||||||
RegistProvinceName = p.RegistProvinceName == null ? "-" : p.RegistProvinceName,
|
RegistProvinceName = p.RegistProvinceName == null ? "-" : p.RegistProvinceName,
|
||||||
RegistDistrictName = p.RegistDistrictName == null ? "-" : p.RegistDistrictName,
|
RegistDistrictName = p.RegistDistrictName == null ? "-" : p.RegistDistrictName,
|
||||||
RegistSubDistrictName = p.RegistSubDistrictName == null ? "-" : p.RegistSubDistrictName,
|
RegistSubDistrictName = p.RegistSubDistrictName == null ? "-" : p.RegistSubDistrictName,
|
||||||
RegistZipCode = p.RegistZipCode == null ? "-" : p.RegistZipCode.ToThaiNumber(),
|
RegistZipCode = p.RegistZipCode == null ? "-" : p.RegistZipCode,
|
||||||
CurrentAddress = p.CurrentAddress == null ? (p.RegistAddress == null ? "-" : p.RegistAddress.ToThaiNumber()) : p.CurrentAddress.ToThaiNumber(),
|
CurrentAddress = p.CurrentAddress == null ? (p.RegistAddress == null ? "-" : p.RegistAddress) : p.CurrentAddress,
|
||||||
CurrentProvinceName = p.CurrentProvinceName == null ? (p.RegistProvinceName == null ? "-" : p.RegistProvinceName) : p.CurrentProvinceName,
|
CurrentProvinceName = p.CurrentProvinceName == null ? (p.RegistProvinceName == null ? "-" : p.RegistProvinceName) : p.CurrentProvinceName,
|
||||||
CurrentDistrictName = p.CurrentDistrictName == null ? (p.RegistDistrictName == null ? "-" : p.RegistDistrictName) : p.CurrentDistrictName,
|
CurrentDistrictName = p.CurrentDistrictName == null ? (p.RegistDistrictName == null ? "-" : p.RegistDistrictName) : p.CurrentDistrictName,
|
||||||
CurrentSubDistrictName = p.CurrentSubDistrictName == null ? (p.RegistSubDistrictName == null ? "-" : p.RegistSubDistrictName) : p.CurrentSubDistrictName,
|
CurrentSubDistrictName = p.CurrentSubDistrictName == null ? (p.RegistSubDistrictName == null ? "-" : p.RegistSubDistrictName) : p.CurrentSubDistrictName,
|
||||||
CurrentZipCode = p.CurrentZipCode == null ? (p.RegistZipCode == null ? "-" : p.RegistZipCode.ToThaiNumber()) : p.CurrentZipCode.ToThaiNumber(),
|
CurrentZipCode = p.CurrentZipCode == null ? (p.RegistZipCode == null ? "-" : p.RegistZipCode) : p.CurrentZipCode,
|
||||||
Telephone = p.Telephone == null ? "-" : p.Telephone.ToThaiNumber(),
|
Telephone = p.Telephone == null ? "-" : p.Telephone,
|
||||||
Email = p.Email == null ? "-" : p.Email,
|
Email = p.Email == null ? "-" : p.Email,
|
||||||
|
|
||||||
ContactFullName = $"{p.ContactPrefixName}{p.ContactFirstname} {p.ContactLastname}",
|
ContactFullName = $"{p.ContactPrefixName}{p.ContactFirstname} {p.ContactLastname}",
|
||||||
ContactRelations = p.ContactRelations == null ? "-" : p.ContactRelations,
|
ContactRelations = p.ContactRelations == null ? "-" : p.ContactRelations,
|
||||||
ContactTel = p.ContactTel == null ? "-" : p.ContactTel.ToThaiNumber(),
|
ContactTel = p.ContactTel == null ? "-" : p.ContactTel,
|
||||||
|
|
||||||
RegisterDate = p.RegisterDate == null ? "-" : p.RegisterDate.Value.ToThaiFullDate().ToThaiNumber(),
|
RegisterDate = p.RegisterDate == null ? "-" : p.RegisterDate.Value.ToThaiFullDate(),
|
||||||
})
|
})
|
||||||
.FirstOrDefaultAsync();
|
.FirstOrDefaultAsync();
|
||||||
if (data == null)
|
if (data == null)
|
||||||
|
|
@ -176,10 +168,10 @@ namespace BMA.EHR.Application.Repositories.Reports
|
||||||
{
|
{
|
||||||
Position = item.Position,
|
Position = item.Position,
|
||||||
Type = item.Type,
|
Type = item.Type,
|
||||||
DurationStart = item.DurationStart.ToThaiNumber(),
|
DurationStart = item.DurationStart,
|
||||||
DurationEnd = item.DurationEnd.ToThaiNumber(),
|
DurationEnd = item.DurationEnd,
|
||||||
RangeDate = item.RangeDate.ToThaiNumber(),
|
RangeDate = item.RangeDate,
|
||||||
Index = retVal.ToString().ToThaiNumber(),
|
Index = retVal.ToString(),
|
||||||
};
|
};
|
||||||
data.Add(_data);
|
data.Add(_data);
|
||||||
retVal++;
|
retVal++;
|
||||||
|
|
|
||||||
|
|
@ -189,7 +189,7 @@ namespace BMA.EHR.Domain.Models.Placement
|
||||||
[Comment("ตำแหน่งปัจจุบัน กลุ่ม/ฝ่าย")]
|
[Comment("ตำแหน่งปัจจุบัน กลุ่ม/ฝ่าย")]
|
||||||
public string? OccupationGroup { get; set; }
|
public string? OccupationGroup { get; set; }
|
||||||
[Comment("ตำแหน่งปัจจุบัน เงินเดือน")]
|
[Comment("ตำแหน่งปัจจุบัน เงินเดือน")]
|
||||||
public int? OccupationSalary { get; set; }
|
public double? OccupationSalary { get; set; }
|
||||||
[Comment("ตำแหน่งปัจจุบัน สังกัด")]
|
[Comment("ตำแหน่งปัจจุบัน สังกัด")]
|
||||||
public string? OccupationPosition { get; set; }
|
public string? OccupationPosition { get; set; }
|
||||||
[Comment("ตำแหน่งปัจจุบัน ประเภทราชการ")]
|
[Comment("ตำแหน่งปัจจุบัน ประเภทราชการ")]
|
||||||
|
|
|
||||||
|
|
@ -267,7 +267,7 @@ namespace BMA.EHR.Domain.ModelsExam.Candidate
|
||||||
[Comment("ตำแหน่งปัจจุบัน กลุ่ม/ฝ่าย")]
|
[Comment("ตำแหน่งปัจจุบัน กลุ่ม/ฝ่าย")]
|
||||||
public string? OccupationGroup { get; set; }
|
public string? OccupationGroup { get; set; }
|
||||||
[Comment("ตำแหน่งปัจจุบัน เงินเดือน")]
|
[Comment("ตำแหน่งปัจจุบัน เงินเดือน")]
|
||||||
public int? OccupationSalary { get; set; }
|
public double? OccupationSalary { get; set; }
|
||||||
[Comment("ตำแหน่งปัจจุบัน สังกัด")]
|
[Comment("ตำแหน่งปัจจุบัน สังกัด")]
|
||||||
public string? OccupationPosition { get; set; }
|
public string? OccupationPosition { get; set; }
|
||||||
[Comment("ตำแหน่งปัจจุบัน ประเภทราชการ")]
|
[Comment("ตำแหน่งปัจจุบัน ประเภทราชการ")]
|
||||||
|
|
|
||||||
21243
BMA.EHR.Infrastructure/Migrations/20251117105514_update_table_PlacementProfile_and_Candidate.Designer.cs
generated
Normal file
21243
BMA.EHR.Infrastructure/Migrations/20251117105514_update_table_PlacementProfile_and_Candidate.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -0,0 +1,40 @@
|
||||||
|
using Microsoft.EntityFrameworkCore.Migrations;
|
||||||
|
|
||||||
|
#nullable disable
|
||||||
|
|
||||||
|
namespace BMA.EHR.Infrastructure.Migrations
|
||||||
|
{
|
||||||
|
/// <inheritdoc />
|
||||||
|
public partial class update_table_PlacementProfile_and_Candidate : Migration
|
||||||
|
{
|
||||||
|
/// <inheritdoc />
|
||||||
|
protected override void Up(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.AlterColumn<double>(
|
||||||
|
name: "OccupationSalary",
|
||||||
|
table: "PlacementProfiles",
|
||||||
|
type: "double",
|
||||||
|
nullable: true,
|
||||||
|
comment: "ตำแหน่งปัจจุบัน เงินเดือน",
|
||||||
|
oldClrType: typeof(int),
|
||||||
|
oldType: "int",
|
||||||
|
oldNullable: true,
|
||||||
|
oldComment: "ตำแหน่งปัจจุบัน เงินเดือน");
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <inheritdoc />
|
||||||
|
protected override void Down(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.AlterColumn<int>(
|
||||||
|
name: "OccupationSalary",
|
||||||
|
table: "PlacementProfiles",
|
||||||
|
type: "int",
|
||||||
|
nullable: true,
|
||||||
|
comment: "ตำแหน่งปัจจุบัน เงินเดือน",
|
||||||
|
oldClrType: typeof(double),
|
||||||
|
oldType: "double",
|
||||||
|
oldNullable: true,
|
||||||
|
oldComment: "ตำแหน่งปัจจุบัน เงินเดือน");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -12794,8 +12794,8 @@ namespace BMA.EHR.Infrastructure.Migrations
|
||||||
.HasColumnType("longtext")
|
.HasColumnType("longtext")
|
||||||
.HasComment("ตำแหน่งปัจจุบัน ประเภทราชการ");
|
.HasComment("ตำแหน่งปัจจุบัน ประเภทราชการ");
|
||||||
|
|
||||||
b.Property<int?>("OccupationSalary")
|
b.Property<double?>("OccupationSalary")
|
||||||
.HasColumnType("int")
|
.HasColumnType("double")
|
||||||
.HasComment("ตำแหน่งปัจจุบัน เงินเดือน");
|
.HasComment("ตำแหน่งปัจจุบัน เงินเดือน");
|
||||||
|
|
||||||
b.Property<string>("OccupationTelephone")
|
b.Property<string>("OccupationTelephone")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue