เพิ่มฟิวตำแหน่งตอนสร้างรอบสมัคร
This commit is contained in:
parent
dee47f326d
commit
bed23f911a
19 changed files with 3228 additions and 568 deletions
22
Models/BankExam.cs
Normal file
22
Models/BankExam.cs
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
using Microsoft.EntityFrameworkCore;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using BMA.EHR.Recurit.Exam.Service.Models.Documents;
|
||||
|
||||
namespace BMA.EHR.Recurit.Exam.Service.Models
|
||||
{
|
||||
public class BankExam : EntityBase
|
||||
{
|
||||
[Required, Comment("Id การสอบ")]
|
||||
public virtual PeriodExam? PeriodExam { get; set; }
|
||||
|
||||
[Comment("เลขบัญชี")]
|
||||
public string? AccountNumber { get; set; }
|
||||
|
||||
[Comment("ธนาคาร")]
|
||||
public string? BankName { get; set; }
|
||||
|
||||
[Comment("ชื่อบัญชี")]
|
||||
public string? AccountName { get; set; }
|
||||
}
|
||||
}
|
||||
|
|
@ -10,6 +10,9 @@ namespace BMA.EHR.Recurit.Exam.Service.Models
|
|||
[Required, Comment("Id การสอบ")]
|
||||
public virtual PeriodExam? PeriodExam { get; set; }
|
||||
|
||||
[Comment("Id ตำแหน่งสอบ")]
|
||||
public virtual PositionExam? PositionExam { get; set; }
|
||||
|
||||
[Required, MaxLength(40), Comment("User Id ผู้สมัคร")]
|
||||
public string UserId { get; set; } = string.Empty;
|
||||
|
||||
|
|
|
|||
|
|
@ -6,29 +6,62 @@ namespace BMA.EHR.Recurit.Exam.Service.Models
|
|||
{
|
||||
public class PeriodExam : EntityBase
|
||||
{
|
||||
[Required, MaxLength(150), Column(Order = 4), Comment("ชื่อการสอบ")]
|
||||
[Required, MaxLength(150), Column(Order = 7), Comment("ชื่อการสอบ")]
|
||||
public string Name { get; set; } = string.Empty;
|
||||
|
||||
[Required, Column(Order = 1), Comment("วันเริ่มสมัครสอบ")]
|
||||
public DateTime StartDate { get; set; } = DateTime.Now.Date;
|
||||
[Required, Comment("ตรวจสอบเอกสารหลังประกาศผลสอบ")]
|
||||
public bool CheckDocument { get; set; } = false;
|
||||
|
||||
[Required, Column(Order = 2), Comment("วันสิ้นสุด")]
|
||||
public DateTime EndDate { get; set; } = DateTime.Now.Date;
|
||||
[Required, Comment("คนพิการ")]
|
||||
public bool CheckDisability { get; set; } = false;
|
||||
|
||||
[Column(Order = 5), Comment("รอบการสอบ")]
|
||||
[Column(Order = 8), Comment("รอบการสอบ")]
|
||||
public int? Round { get; set; }
|
||||
|
||||
[Comment("ค่าธรรมเนียม")]
|
||||
public float? Fee { get; set; } = 0;
|
||||
|
||||
[Comment("ปีงบประมาณ")]
|
||||
public int? Year { get; set; }
|
||||
|
||||
[Comment("ค่าธรรมเนียม")]
|
||||
public float? Fee { get; set; } = 0;
|
||||
|
||||
[Required, Column(Order = 1), Comment("วันเริ่มสมัครสอบ")]
|
||||
public DateTime RegisterStartDate { get; set; } = DateTime.Now.Date;
|
||||
|
||||
[Required, Column(Order = 2), Comment("วันสิ้นสุดสมัครสอบ")]
|
||||
public DateTime RegisterEndDate { get; set; } = DateTime.Now.Date;
|
||||
|
||||
[Required, Column(Order = 3), Comment("วันเริ่มชำระเงิน")]
|
||||
public DateTime PaymentStartDate { get; set; } = DateTime.Now.Date;
|
||||
|
||||
[Required, Column(Order = 4), Comment("วันสิ้นสุดชำระเงิน")]
|
||||
public DateTime PaymentEndDate { get; set; } = DateTime.Now.Date;
|
||||
|
||||
[Required, Column(Order = 5), Comment("วันเริ่มประกาศ")]
|
||||
public DateTime AnnouncementStartDate { get; set; } = DateTime.Now.Date;
|
||||
|
||||
[Required, Column(Order = 6), Comment("วันสิ้นสุดประกาศ")]
|
||||
public DateTime AnnouncementEndDate { get; set; } = DateTime.Now.Date;
|
||||
|
||||
[Comment("Id รหัสส่วนราชการ")]
|
||||
public Guid? OrganizationCodeId { get; set; }
|
||||
|
||||
[Comment("ชื่อรหัสส่วนราชการ")]
|
||||
public string? OrganizationCodeName { get; set; }
|
||||
|
||||
[Comment("Id หน่วยงาน")]
|
||||
public Guid? OrganizationId { get; set; }
|
||||
|
||||
[Comment("ชื่อหน่วยงาน")]
|
||||
public string? OrganizationName { get; set; }
|
||||
|
||||
[Comment("ชำระเงินผ่านกรุงไทย")]
|
||||
public string? PaymentKrungThai { get; set; }
|
||||
|
||||
[Comment("รายละเอียดสมัครสอบ")]
|
||||
public string? Detail { get; set; }
|
||||
|
||||
[Required, Column(Order = 3), Comment("วันประกาศ")]
|
||||
public DateTime AnnounceDate { get; set; } = DateTime.Now.Date;
|
||||
[Comment("หมายเหตุ")]
|
||||
public string? Note { get; set; }
|
||||
|
||||
[Comment("สถานะการใช้งาน")]
|
||||
public bool IsActive { get; set; } = true;
|
||||
|
|
|
|||
22
Models/PositionExam.cs
Normal file
22
Models/PositionExam.cs
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
using Microsoft.EntityFrameworkCore;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using BMA.EHR.Recurit.Exam.Service.Models.Documents;
|
||||
|
||||
namespace BMA.EHR.Recurit.Exam.Service.Models
|
||||
{
|
||||
public class PositionExam : EntityBase
|
||||
{
|
||||
[Required, Comment("Id การสอบ")]
|
||||
public virtual PeriodExam? PeriodExam { get; set; }
|
||||
|
||||
[Comment("Id ตำแหน่ง")]
|
||||
public Guid? PositionId { get; set; }
|
||||
|
||||
[Comment("ชื่อตำแหน่ง")]
|
||||
public string? PositionName { get; set; }
|
||||
|
||||
[Comment("ชื่อประเภทแบบฟอร์ม")]
|
||||
public string? TypeName { get; set; }
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue