2023-07-19 10:25:54 +07:00
|
|
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
|
using BMA.EHR.Domain.Models.Base;
|
|
|
|
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
2023-08-04 16:17:57 +07:00
|
|
|
|
using BMA.EHR.Domain.Models.Documents;
|
2023-07-19 10:25:54 +07:00
|
|
|
|
|
|
|
|
|
|
namespace BMA.EHR.Domain.Models.Insignias
|
|
|
|
|
|
{
|
|
|
|
|
|
public class InsigniaPeriod : EntityBase
|
|
|
|
|
|
{
|
2023-09-08 12:17:15 +07:00
|
|
|
|
[MaxLength(200), Comment("ชื่อรอบเสนอขอเครื่องราชฯ")]
|
2023-08-23 20:30:30 +07:00
|
|
|
|
public string? Name { get; set; }
|
2023-09-08 12:17:15 +07:00
|
|
|
|
[Comment("ปี")]
|
2023-07-19 10:25:54 +07:00
|
|
|
|
public int Year { get; set; }
|
2023-09-08 12:17:15 +07:00
|
|
|
|
[Comment("วันที่เริ่ม")]
|
2023-07-19 10:25:54 +07:00
|
|
|
|
public DateTime StartDate { get; set; }
|
2023-09-08 12:17:15 +07:00
|
|
|
|
[Comment("วันที่สิ้นสุด")]
|
2023-07-19 10:25:54 +07:00
|
|
|
|
public DateTime EndDate { get; set; }
|
2023-09-08 12:17:15 +07:00
|
|
|
|
[MaxLength(50), Comment("จำนวนวันแจ้งเตือนล่วงหน้า")]
|
2023-08-18 02:25:07 +07:00
|
|
|
|
public int Amount { get; set; }
|
2023-09-08 12:17:15 +07:00
|
|
|
|
[MaxLength(10), Comment("ประเภทการขอ")]
|
2023-08-23 20:30:30 +07:00
|
|
|
|
public string? Type { get; set; }
|
2023-09-08 12:17:15 +07:00
|
|
|
|
[Comment("Fk table Document")]
|
2023-08-04 16:17:57 +07:00
|
|
|
|
public Document? ReliefDoc { get; set; }
|
2023-08-18 02:25:07 +07:00
|
|
|
|
[Comment("ราบการยื่นขอ")]
|
|
|
|
|
|
public int Round { get; set; } = 1;
|
2023-08-08 11:04:41 +07:00
|
|
|
|
[Comment("สถานะการใช้งาน")]
|
|
|
|
|
|
public bool IsActive { get; set; } = true;
|
2023-09-01 12:52:46 +07:00
|
|
|
|
[Comment("สถานะการ Freez ข้อมูล")]
|
|
|
|
|
|
public bool IsLock { get; set; } = false;
|
2023-07-19 10:25:54 +07:00
|
|
|
|
public virtual List<InsigniaRequest> InsigniaRequests { get; set; }
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|