api จัดรอบการสอบ

This commit is contained in:
Kittapath 2023-03-25 01:09:03 +07:00
parent 44d18ff74c
commit bd0f02feb1
24 changed files with 8532 additions and 33 deletions

View file

@ -13,7 +13,7 @@ namespace BMA.EHR.Recurit.Exam.Service.Models
public string UserId { get; set; } = string.Empty;
[Required, MaxLength(20), Comment("สถานะผู้สมัคร")]
public string status { get; set; } = "register";
public string Status { get; set; } = "register";
@ -109,6 +109,12 @@ namespace BMA.EHR.Recurit.Exam.Service.Models
[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; }
@ -118,6 +124,12 @@ namespace BMA.EHR.Recurit.Exam.Service.Models
[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; }
@ -127,11 +139,20 @@ namespace BMA.EHR.Recurit.Exam.Service.Models
[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; }
@ -143,5 +164,9 @@ namespace BMA.EHR.Recurit.Exam.Service.Models
[MaxLength(20), Comment("โทรศัพท์ บริษัท")]
public string? OccupationTelephone { get; set; }
[Comment("เหตุผลการไม่อนุมัติ")]
public string? RejectDetail { get; set; }
}
}

View file

@ -16,7 +16,7 @@ namespace BMA.EHR.Recurit.Exam.Service.Models
public string Major { get; set; } = string.Empty;
[Required, MaxLength(10), Column(Order = 6), Comment("คะแนนเฉลี่ยตลอดหลักสูตร")]
public int Scores { get; set; }
public float Scores { get; set; }
[Required, Column(Order = 3), Comment("ชื่อสถานศึกษา")]
public string Name { get; set; } = string.Empty;

View file

@ -6,19 +6,31 @@ namespace BMA.EHR.Recurit.Exam.Service.Models
{
public class PeriodExam : EntityBase
{
[Required, MaxLength(150), Column(Order = 1), Comment("ชื่อการสอบ")]
[Required, MaxLength(150), Column(Order = 4), Comment("ชื่อการสอบ")]
public string Name { get; set; } = string.Empty;
[Required, Column(Order = 2), Comment("วันเริ่มสมัครสอบ")]
[Required, Column(Order = 1), Comment("วันเริ่มสมัครสอบ")]
public DateTime StartDate { get; set; } = DateTime.Now.Date;
[Required, Column(Order = 3), Comment("วันสิ้นสุด")]
[Required, Column(Order = 2), Comment("วันสิ้นสุด")]
public DateTime EndDate { get; set; } = DateTime.Now.Date;
[Required, Column(Order = 4), Comment("รายละเอียดสมัครสอบ")]
public string Detail { get; set; } = string.Empty;
[Column(Order = 5), Comment("รอบการสอบ")]
public int? Round { get; set; }
[Column(Order = 5), Comment("สถานะการใช้งาน")]
[Comment("ค่าธรรมเนียม")]
public float? Fee { get; set; }
[Comment("ปีงบประมาณ")]
public int? Year { get; set; }
[Comment("รายละเอียดสมัครสอบ")]
public string? Detail { get; set; }
[Required, Column(Order = 3), Comment("วันประกาศ")]
public DateTime AnnounceDate { get; set; } = DateTime.Now.Date;
[Comment("สถานะการใช้งาน")]
public bool IsActive { get; set; } = true;
}
}