diff --git a/Models/Placement/PlacementProfile.cs b/Models/Placement/PlacementProfile.cs index 1868c1d..77d91c2 100644 --- a/Models/Placement/PlacementProfile.cs +++ b/Models/Placement/PlacementProfile.cs @@ -2,6 +2,7 @@ using Microsoft.EntityFrameworkCore; using System.ComponentModel.DataAnnotations; using BMA.EHR.MetaData.Service.Models; +using BMA.EHR.Recruit.Service.Models.Documents; namespace BMA.EHR.Domain.Models.Placement { @@ -173,23 +174,21 @@ namespace BMA.EHR.Domain.Models.Placement [MaxLength(100), Comment("สัญชาติมารดา")] public string? MotherNationality { get; set; } - [Comment("ประเภทอาชีพที่ทำงานมาก่อน")] - public string? OccupationType { get; set; } - - [Comment("สำนัก/บริษัท บริษัท")] - public string? OccupationCompany { get; set; } - - [Comment("กอง/ฝ่าย บริษัท")] - public string? OccupationDepartment { get; set; } - - [MaxLength(200), Comment("อีเมล บริษัท")] - public string? OccupationEmail { get; set; } - - [MaxLength(200), Comment("โทรศัพท์ บริษัท")] - public string? OccupationTelephone { get; set; } - - [Comment("ตำแหน่งอาชีพ")] + [Comment("ตำแหน่งปัจจุบัน ชื่อตำแหน่ง")] + public string? OccupationOrg { get; set; } + [Comment("ตำแหน่งปัจจุบัน กอง")] + public string? OccupationPile { get; set; } + [Comment("ตำแหน่งปัจจุบัน กลุ่ม/ฝ่าย")] + public string? OccupationGroup { get; set; } + [Comment("ตำแหน่งปัจจุบัน เงินเดือน")] + public int? OccupationSalary { get; set; } + [Comment("ตำแหน่งปัจจุบัน สังกัด")] public string? OccupationPosition { get; set; } + [Comment("ตำแหน่งปัจจุบัน ประเภทราชการ")] + public string? OccupationPositionType { get; set; } + + [MaxLength(20), Comment("ตำแหน่งปัจจุบัน เบอร์โทรที่ทำงาน")] + public string? OccupationTelephone { get; set; } // [Comment("Id ตำแหน่งเลขที่")] // public PositionNumberEntity? PositionNumber { get; set; } @@ -238,6 +237,9 @@ namespace BMA.EHR.Domain.Models.Placement [Comment("ข้อมูลตำแหน่ง Draft")] public bool? Draft { get; set; } + + [Comment("Id รูปโปรไฟล์")] + public virtual Document? ProfileImg { get; set; } public virtual List PlacementCertificates { get; set; } = new List(); public virtual List PlacementEducations { get; set; } = new List(); } diff --git a/Services/RecruitService.cs b/Services/RecruitService.cs index a7e4e2e..dd47857 100644 --- a/Services/RecruitService.cs +++ b/Services/RecruitService.cs @@ -269,9 +269,10 @@ namespace BMA.EHR.Recruit.Service.Services // MotherLastName = candidate.MotherLastName, // MotherOccupation = candidate.MotherOccupation, // MotherNationality = candidate.MotherNationality, - OccupationType = "other", + + OccupationPositionType = "other", // OccupationCompany = candidate.OccupationCompany, - OccupationDepartment = candidate.Occupations.FirstOrDefault() == null ? null : candidate.Occupations.FirstOrDefault().Workplace, + // OccupationDepartment = candidate.Occupations.FirstOrDefault() == null ? null : candidate.Occupations.FirstOrDefault().Workplace, // OccupationEmail = candidate.OccupationEmail, OccupationTelephone = candidate.Occupations.FirstOrDefault() == null ? null : candidate.Occupations.FirstOrDefault().Telephone, OccupationPosition = candidate.Occupations.FirstOrDefault() == null ? null : candidate.Occupations.FirstOrDefault().Position,