update model placementprofile

This commit is contained in:
Kittapath 2023-10-05 14:50:18 +07:00
parent b2f53db92d
commit edf886512c
2 changed files with 21 additions and 18 deletions

View file

@ -2,6 +2,7 @@
using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
using BMA.EHR.MetaData.Service.Models; using BMA.EHR.MetaData.Service.Models;
using BMA.EHR.Recruit.Service.Models.Documents;
namespace BMA.EHR.Domain.Models.Placement namespace BMA.EHR.Domain.Models.Placement
{ {
@ -173,23 +174,21 @@ namespace BMA.EHR.Domain.Models.Placement
[MaxLength(100), Comment("สัญชาติมารดา")] [MaxLength(100), Comment("สัญชาติมารดา")]
public string? MotherNationality { get; set; } public string? MotherNationality { get; set; }
[Comment("ประเภทอาชีพที่ทำงานมาก่อน")] [Comment("ตำแหน่งปัจจุบัน ชื่อตำแหน่ง")]
public string? OccupationType { get; set; } public string? OccupationOrg { get; set; }
[Comment("ตำแหน่งปัจจุบัน กอง")]
[Comment("สำนัก/บริษัท บริษัท")] public string? OccupationPile { get; set; }
public string? OccupationCompany { get; set; } [Comment("ตำแหน่งปัจจุบัน กลุ่ม/ฝ่าย")]
public string? OccupationGroup { get; set; }
[Comment("กอง/ฝ่าย บริษัท")] [Comment("ตำแหน่งปัจจุบัน เงินเดือน")]
public string? OccupationDepartment { get; set; } public int? OccupationSalary { get; set; }
[Comment("ตำแหน่งปัจจุบัน สังกัด")]
[MaxLength(200), Comment("อีเมล บริษัท")]
public string? OccupationEmail { get; set; }
[MaxLength(200), Comment("โทรศัพท์ บริษัท")]
public string? OccupationTelephone { get; set; }
[Comment("ตำแหน่งอาชีพ")]
public string? OccupationPosition { get; set; } public string? OccupationPosition { get; set; }
[Comment("ตำแหน่งปัจจุบัน ประเภทราชการ")]
public string? OccupationPositionType { get; set; }
[MaxLength(20), Comment("ตำแหน่งปัจจุบัน เบอร์โทรที่ทำงาน")]
public string? OccupationTelephone { get; set; }
// [Comment("Id ตำแหน่งเลขที่")] // [Comment("Id ตำแหน่งเลขที่")]
// public PositionNumberEntity? PositionNumber { get; set; } // public PositionNumberEntity? PositionNumber { get; set; }
@ -238,6 +237,9 @@ namespace BMA.EHR.Domain.Models.Placement
[Comment("ข้อมูลตำแหน่ง Draft")] [Comment("ข้อมูลตำแหน่ง Draft")]
public bool? Draft { get; set; } public bool? Draft { get; set; }
[Comment("Id รูปโปรไฟล์")]
public virtual Document? ProfileImg { get; set; }
public virtual List<PlacementCertificate> PlacementCertificates { get; set; } = new List<PlacementCertificate>(); public virtual List<PlacementCertificate> PlacementCertificates { get; set; } = new List<PlacementCertificate>();
public virtual List<PlacementEducation> PlacementEducations { get; set; } = new List<PlacementEducation>(); public virtual List<PlacementEducation> PlacementEducations { get; set; } = new List<PlacementEducation>();
} }

View file

@ -269,9 +269,10 @@ namespace BMA.EHR.Recruit.Service.Services
// MotherLastName = candidate.MotherLastName, // MotherLastName = candidate.MotherLastName,
// MotherOccupation = candidate.MotherOccupation, // MotherOccupation = candidate.MotherOccupation,
// MotherNationality = candidate.MotherNationality, // MotherNationality = candidate.MotherNationality,
OccupationType = "other",
OccupationPositionType = "other",
// OccupationCompany = candidate.OccupationCompany, // 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, // OccupationEmail = candidate.OccupationEmail,
OccupationTelephone = candidate.Occupations.FirstOrDefault() == null ? null : candidate.Occupations.FirstOrDefault().Telephone, OccupationTelephone = candidate.Occupations.FirstOrDefault() == null ? null : candidate.Occupations.FirstOrDefault().Telephone,
OccupationPosition = candidate.Occupations.FirstOrDefault() == null ? null : candidate.Occupations.FirstOrDefault().Position, OccupationPosition = candidate.Occupations.FirstOrDefault() == null ? null : candidate.Occupations.FirstOrDefault().Position,