36 lines
1.6 KiB
C#
36 lines
1.6 KiB
C#
using Microsoft.EntityFrameworkCore;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using BMA.EHR.Domain.Models.Base;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using BMA.EHR.Domain.Models.Documents;
|
|
|
|
namespace BMA.EHR.Domain.Models.Insignias
|
|
{
|
|
public class InsigniaPeriod : EntityBase
|
|
{
|
|
[MaxLength(200), Comment("ชื่อรอบเสนอขอเครื่องราชฯ")]
|
|
public string? Name { get; set; }
|
|
[Comment("ปี")]
|
|
public int Year { get; set; }
|
|
[Comment("วันที่เริ่ม")]
|
|
public DateTime StartDate { get; set; }
|
|
[Comment("วันที่สิ้นสุด")]
|
|
public DateTime EndDate { get; set; }
|
|
[MaxLength(50), Comment("จำนวนวันแจ้งเตือนล่วงหน้า")]
|
|
public int Amount { get; set; }
|
|
[MaxLength(10), Comment("ประเภทการขอ")]
|
|
public string? Type { get; set; }
|
|
[Comment("Fk table Document")]
|
|
public Document? ReliefDoc { get; set; }
|
|
[Comment("ราบการยื่นขอ")]
|
|
public int Round { get; set; } = 1;
|
|
[Comment("สถานะการใช้งาน")]
|
|
public bool IsActive { get; set; } = true;
|
|
[Comment("สถานะการ Freez ข้อมูล")]
|
|
public bool IsLock { get; set; } = false;
|
|
public virtual List<InsigniaRequest> InsigniaRequests { get; set; }
|
|
public virtual List<InsigniaEmployee> InsigniaEmployees { get; set; }
|
|
|
|
public Guid? RevisionId { get; set; }
|
|
}
|
|
}
|