hrms-api-backend/BMA.EHR.Domain/Models/Insignias/InsigniaPeriod.cs

37 lines
1.6 KiB
C#
Raw Normal View History

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
{
[MaxLength(200), Comment("ชื่อรอบเสนอขอเครื่องราชฯ")]
public string? Name { get; set; }
[Comment("ปี")]
2023-07-19 10:25:54 +07:00
public int Year { get; set; }
[Comment("วันที่เริ่ม")]
2023-07-19 10:25:54 +07:00
public DateTime StartDate { get; set; }
[Comment("วันที่สิ้นสุด")]
2023-07-19 10:25:54 +07:00
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")]
2023-08-04 16:17:57 +07:00
public Document? ReliefDoc { get; set; }
[Comment("ราบการยื่นขอ")]
public int Round { get; set; } = 1;
2023-08-08 11:04:41 +07:00
[Comment("สถานะการใช้งาน")]
public bool IsActive { get; set; } = true;
[Comment("สถานะการ Freez ข้อมูล")]
public bool IsLock { get; set; } = false;
2023-07-19 10:25:54 +07:00
public virtual List<InsigniaRequest> InsigniaRequests { get; set; }
public virtual List<InsigniaEmployee> InsigniaEmployees { get; set; }
public Guid? RevisionId { get; set; }
2023-07-19 10:25:54 +07:00
}
}