โอนคนสรรหาไปบรรจุ

This commit is contained in:
Kittapath 2023-07-26 18:43:10 +07:00
parent 9a53f34107
commit 7fbdf971fa
13 changed files with 530 additions and 312 deletions

View file

@ -8,37 +8,37 @@ namespace BMA.EHR.Recurit.Exam.Service.Models.Disables
{
[Required, MaxLength(13), Comment("เลขประจำตัวประชาชน")]
public string CitizenId { get; set; } = string.Empty;
public string CitizenId { get; set; } = string.Empty;//
[Required, MaxLength(50)]
public string ExamId { get; set; } = string.Empty;
public string ExamId { get; set; } = string.Empty;//
[Required, MaxLength(50)]
public string Prefix { get; set; } = string.Empty;
public string Prefix { get; set; } = string.Empty;//
[Required, MaxLength(150)]
public string FirstName { get; set; } = string.Empty;
public string FirstName { get; set; } = string.Empty;//
[Required, MaxLength(150)]
public string LastName { get; set; } = string.Empty;
public string LastName { get; set; } = string.Empty;//
[MaxLength(20)]
public string Gendor { get; set; } = string.Empty;
public string Gendor { get; set; } = string.Empty;//
[MaxLength(200)]
public string National { get; set; } = string.Empty;
public string National { get; set; } = string.Empty;//
[MaxLength(200)]
public string Race { get; set; } = string.Empty;
public string Race { get; set; } = string.Empty;//
[MaxLength(200)]
public string Religion { get; set; } = string.Empty;
public string Religion { get; set; } = string.Empty;//
[Required]
public DateTime DateOfBirth { get; set; }
public DateTime DateOfBirth { get; set; }//
[MaxLength(20)]
public string Marry { get; set; } = string.Empty;
public string Marry { get; set; } = string.Empty;//
[MaxLength(1)]
public string Isspecial { get; set; } = "N";
@ -47,9 +47,9 @@ namespace BMA.EHR.Recurit.Exam.Service.Models.Disables
public string RefNo { get; set; } = string.Empty;
[MaxLength(200)]
public string CitizenCardIssuer { get; set; } = string.Empty;
public string CitizenCardIssuer { get; set; } = string.Empty;//
public DateTime CitizenCardExpireDate { get; set; }
public DateTime CitizenCardExpireDate { get; set; }//
[MaxLength(200)]
public string Remark { get; set; } = string.Empty;
@ -77,6 +77,6 @@ namespace BMA.EHR.Recurit.Exam.Service.Models.Disables
public DateTime ApplyDate { get; set; }
public string? PositionName { get; set; }
public string? PositionName { get; set; }//
}
}

View file

@ -5,58 +5,58 @@ namespace BMA.EHR.Recurit.Exam.Service.Models.Disables
public class DisableAddress : EntityBase
{
[MaxLength(200)]
public string Address { get; set; }
public string Address { get; set; }//
[MaxLength(200)]
public string Moo { get; set; }
public string Moo { get; set; }//
[MaxLength(200)]
public string Soi { get; set; }
public string Soi { get; set; }//
[MaxLength(200)]
public string Road { get; set; }
public string Road { get; set; }//
[MaxLength(200)]
public string District { get; set; }
public string District { get; set; }//
[MaxLength(200)]
public string Amphur { get; set; }
public string Amphur { get; set; }//
[MaxLength(200)]
public string Province { get; set; }
public string Province { get; set; }//
[MaxLength(5)]
public string ZipCode { get; set; }
public string ZipCode { get; set; }//
[MaxLength(200)]
public string Telephone { get; set; }
public string Telephone { get; set; }//
[MaxLength(200)]
public string Mobile { get; set; }
public string Mobile { get; set; }//
[MaxLength(200)]
public string Address1 { get; set; }
public string Address1 { get; set; }//
[MaxLength(200)]
public string Moo1 { get; set; }
public string Moo1 { get; set; }//
[MaxLength(200)]
public string Soi1 { get; set; }
public string Soi1 { get; set; }//
[MaxLength(200)]
public string Road1 { get; set; }
public string Road1 { get; set; }//
[MaxLength(200)]
public string District1 { get; set; }
public string District1 { get; set; }//
[MaxLength(200)]
public string Amphur1 { get; set; }
public string Amphur1 { get; set; }//
[MaxLength(200)]
public string Province1 { get; set; }
public string Province1 { get; set; }//
[MaxLength(5)]
public string ZipCode1 { get; set; }
public string ZipCode1 { get; set; }//
public Disable Disable { get; set; }
}

View file

@ -5,10 +5,10 @@ namespace BMA.EHR.Recurit.Exam.Service.Models.Disables
public class DisableEducation : EntityBase
{
[MaxLength(200)]
public string Degree { get; set; }
public string Degree { get; set; }//
[MaxLength(200)]
public string Major { get; set; }
public string Major { get; set; }//
[MaxLength(20)]
public string MajorGroupId { get; set; }
@ -17,16 +17,16 @@ namespace BMA.EHR.Recurit.Exam.Service.Models.Disables
public string MajorGroupName { get; set; }
[MaxLength(200)]
public string University { get; set; }
public double GPA { get; set; } = 0.0;
public string University { get; set; }//
public double GPA { get; set; } = 0.0;//
[MaxLength(1000)]
public string Specialist { get; set; }
[MaxLength(200)]
public string HighDegree { get; set; }
public string HighDegree { get; set; }//
public DateTime BachelorDate { get; set; }
public DateTime BachelorDate { get; set; }//
public Disable Disable { get; set; }
}

View file

@ -11,13 +11,13 @@ namespace BMA.EHR.Recurit.Exam.Service.Models.Disables
public string WorkAge { get; set; }
[MaxLength(200)]
public string Position { get; set; }
public string Position { get; set; }//
[MaxLength(200)]
public string Workplace { get; set; }
public string Workplace { get; set; }//
[MaxLength(200)]
public string Telephone { get; set; }
public string Telephone { get; set; }//
public Disable Disable { get; set; }
}

12
Models/Gendor.cs Normal file
View file

@ -0,0 +1,12 @@
using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
namespace BMA.EHR.Recurit.Exam.Service.Models
{
public class Gender : EntityBase
{
[Required, MaxLength(20), Column(Order = 1), Comment("เพศ")]
public string Name { get; set; } = string.Empty;
}
}

View file

@ -27,7 +27,7 @@ namespace BMA.EHR.Domain.Models.Placement
[MaxLength(1000), Comment("ทุน")]
public string? FundName { get; set; }
[Comment("ระยะเวลาหลักสูตร")]
public int DurationYear { get; set; }
public int? DurationYear { get; set; }
[Comment("วันที่สำเร็จการศึกษา")]
public DateTime? FinishDate { get; set; }
[Comment("ประเภทช่วงเวลาการศึกษา")]

View file

@ -15,8 +15,8 @@ namespace BMA.EHR.Domain.Models.Placement
public string? Firstname { get; set; }
[Comment("นามสกุล")]
public string? Lastname { get; set; }
// [Comment("Id เพศ")]
// public Gender? Gender { get; set; }
[Comment("Id เพศ")]
public Gender? Gender { get; set; }
[Comment("Id ตำแหน่งที่สอบได้")]
public PositionPath? PositionCandidate { get; set; }
@ -82,10 +82,10 @@ namespace BMA.EHR.Domain.Models.Placement
[Comment("วันที่ออกบัตร")]
public DateTime? CitizenDate { get; set; }
[MaxLength(20), Comment("โทรศัพท์")]
[MaxLength(200), Comment("โทรศัพท์")]
public string? Telephone { get; set; }
[MaxLength(20), Comment("โทรศัพท์มือถือ")]
[MaxLength(200), Comment("โทรศัพท์มือถือ")]
public string? MobilePhone { get; set; }
[Comment("ความสามารถพิเศษ")]
@ -184,7 +184,7 @@ namespace BMA.EHR.Domain.Models.Placement
[MaxLength(200), Comment("อีเมล บริษัท")]
public string? OccupationEmail { get; set; }
[MaxLength(20), Comment("โทรศัพท์ บริษัท")]
[MaxLength(200), Comment("โทรศัพท์ บริษัท")]
public string? OccupationTelephone { get; set; }
[Comment("ตำแหน่งอาชีพ")]
@ -227,10 +227,10 @@ namespace BMA.EHR.Domain.Models.Placement
public double? PointC { get; set; }
[Comment("ลำดับที่สอบได้")]
public int ExamNumber { get; set; }
public int? ExamNumber { get; set; }
[Comment("จำนวนครั้งที่สมัครสอบ")]
public int ExamRound { get; set; }
public int? ExamRound { get; set; }
[Comment("ผลสมัครสอบ")]
public string? Pass { get; set; }