174 lines
7 KiB
C#
174 lines
7 KiB
C#
using Microsoft.EntityFrameworkCore;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace BMA.EHR.Recurit.Exam.Service.Models
|
|
{
|
|
public class Candidate : EntityBase
|
|
{
|
|
[Required, Comment("Id การสอบ")]
|
|
public virtual PeriodExam? PeriodExam { get; set; }
|
|
|
|
[Required, MaxLength(40), Comment("User Id ผู้สมัคร")]
|
|
public string UserId { get; set; } = string.Empty;
|
|
|
|
[Required, MaxLength(20), Comment("สถานะผู้สมัคร")]
|
|
public string Status { get; set; } = "register";
|
|
[Comment("เลขที่นั่งสอบ")]
|
|
public string? SeatNumber { get; set; }
|
|
|
|
|
|
|
|
[Comment("คำนำหน้าชื่อ")]
|
|
public virtual Prefix? Prefix { get; set; }
|
|
|
|
[MaxLength(100), Column(Order = 1), Comment("ชื่อจริง")]
|
|
public string? FirstName { get; set; }
|
|
|
|
[MaxLength(100), Column(Order = 2), Comment("นามสกุล")]
|
|
public string? LastName { get; set; }
|
|
|
|
[MaxLength(40), Column(Order = 3), Comment("สัญชาติ")]
|
|
public string? Nationality { get; set; }
|
|
|
|
[MaxLength(40), Comment("วันเกิด")]
|
|
public DateTime? DateOfBirth { get; set; }
|
|
|
|
[Comment("ศาสนา")]
|
|
public virtual Relationship? Relationship { get; set; }
|
|
|
|
[MaxLength(200), Comment("อีเมล")]
|
|
public string? Email { get; set; }
|
|
|
|
[MaxLength(20), Comment("เลขประจำตัวประชาชน")]
|
|
public string? CitizenId { get; set; }
|
|
|
|
[Comment("เขตที่ออกบัตรประชาชน")]
|
|
public virtual District? CitizenDistrict { get; set; }
|
|
|
|
[Comment("จังหวัดที่ออกบัตรประชาชน")]
|
|
public virtual Province? CitizenProvince { get; set; }
|
|
|
|
[Comment("วันที่ออกบัตร")]
|
|
public DateTime? CitizenDate { get; set; }
|
|
|
|
[MaxLength(20), Comment("โทรศัพท์")]
|
|
public string? Telephone { get; set; }
|
|
|
|
[MaxLength(20), Comment("โทรศัพท์มือถือ")]
|
|
public string? MobilePhone { get; set; }
|
|
|
|
[Comment("ความสามารถพิเศษ")]
|
|
public string? Knowledge { get; set; }
|
|
|
|
|
|
|
|
|
|
[Comment("ที่อยู่ตามทะเบียนบ้าน")]
|
|
public string? RegistAddress { get; set; }
|
|
|
|
[Comment("จังหวัดที่อยู่ตามทะเบียนบ้าน")]
|
|
public virtual Province? RegistProvince { get; set; }
|
|
|
|
[Comment("อำเภอที่อยู่ตามทะเบียนบ้าน")]
|
|
public virtual District? RegistDistrict { get; set; }
|
|
|
|
[Comment("ตำบลที่อยู่ตามทะเบียนบ้าน")]
|
|
public virtual SubDistrict? RegistSubDistrict { get; set; }
|
|
|
|
[MaxLength(10), Comment("รหัสไปรษณีย์ที่อยู่ตามทะเบียนบ้าน")]
|
|
public string? RegistZipCode { get; set; }
|
|
|
|
[Comment("ที่อยู่ปัจจุบันเหมือนที่อยู่ตามทะเบียนบ้าน")]
|
|
public bool? RegistSame { get; set; }
|
|
|
|
[Comment("ที่อยู่ปัจจุบัน")]
|
|
public string? CurrentAddress { get; set; }
|
|
|
|
[Comment("จังหวัดที่อยู่ปัจจุบัน")]
|
|
public virtual Province? CurrentProvince { get; set; }
|
|
|
|
[Comment("อำเภอที่อยู่ปัจจุบัน")]
|
|
public virtual District? CurrentDistrict { get; set; }
|
|
|
|
[Comment("ตำบลที่อยู่ปัจจุบัน")]
|
|
public virtual SubDistrict? CurrentSubDistrict { get; set; }
|
|
|
|
[MaxLength(10), Comment("รหัสไปรษณีย์ที่อยู่ปัจจุบัน")]
|
|
public string? CurrentZipCode { get; set; }
|
|
|
|
|
|
|
|
[Comment("คู่สมรส")]
|
|
public bool? Marry { get; set; }
|
|
|
|
[Comment("คำนำหน้าชื่อคู่สมรส")]
|
|
public virtual Prefix? MarryPrefix { get; set; }
|
|
|
|
[MaxLength(100), Comment("ชื่อจริงคู่สมรส")]
|
|
public string? MarryFirstName { get; set; }
|
|
|
|
[MaxLength(100), Comment("นามสกุลคู่สมรส")]
|
|
public string? MarryLastName { get; set; }
|
|
|
|
[MaxLength(200), Comment("อาชีพคู่สมรส")]
|
|
public string? MarryOccupation { get; set; }
|
|
|
|
[MaxLength(100), Comment("สัญชาติคู่สมรส")]
|
|
public string? MarryNationality { get; set; }
|
|
|
|
[Comment("คำนำหน้าชื่อบิดา")]
|
|
public virtual Prefix? FatherPrefix { get; set; }
|
|
|
|
[MaxLength(100), Comment("ชื่อจริงบิดา")]
|
|
public string? FatherFirstName { get; set; }
|
|
|
|
[MaxLength(100), Comment("นามสกุลบิดา")]
|
|
public string? FatherLastName { get; set; }
|
|
|
|
[MaxLength(200), Comment("อาชีพบิดา")]
|
|
public string? FatherOccupation { get; set; }
|
|
|
|
[MaxLength(100), Comment("สัญชาติบิดา")]
|
|
public string? FatherNationality { get; set; }
|
|
|
|
[Comment("คำนำหน้าชื่อมารดา")]
|
|
public virtual Prefix? MotherPrefix { get; set; }
|
|
|
|
[MaxLength(100), Comment("ชื่อจริงมารดา")]
|
|
public string? MotherFirstName { get; set; }
|
|
|
|
[MaxLength(100), Comment("นามสกุลมารดา")]
|
|
public string? MotherLastName { get; set; }
|
|
|
|
[MaxLength(200), Comment("อาชีพมารดา")]
|
|
public string? MotherOccupation { get; set; }
|
|
|
|
[MaxLength(100), Comment("สัญชาติมารดา")]
|
|
public string? MotherNationality { get; set; }
|
|
|
|
|
|
|
|
[Comment("ประเภทอาชีพที่ทำงานมาก่อน")]
|
|
public string? OccupationType { get; set; }
|
|
|
|
[Comment("ตำแหน่งอาชีพ")]
|
|
public string? OccupationPosition { get; set; }
|
|
|
|
[Comment("สำนัก/บริษัท บริษัท")]
|
|
public string? OccupationCompany { get; set; }
|
|
|
|
[Comment("กอง/ฝ่าย บริษัท")]
|
|
public string? OccupationDepartment { get; set; }
|
|
|
|
[MaxLength(200), Comment("อีเมล บริษัท")]
|
|
public string? OccupationEmail { get; set; }
|
|
|
|
[MaxLength(20), Comment("โทรศัพท์ บริษัท")]
|
|
public string? OccupationTelephone { get; set; }
|
|
|
|
|
|
[Comment("เหตุผลการไม่อนุมัติ")]
|
|
public string? RejectDetail { get; set; }
|
|
}
|
|
}
|