45 lines
2 KiB
C#
45 lines
2 KiB
C#
using System.ComponentModel.DataAnnotations;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using BMA.EHR.Domain.Models.Base;
|
|
using BMA.EHR.Domain.Models.MetaData;
|
|
|
|
namespace BMA.EHR.Domain.Models.HR
|
|
{
|
|
public class ProfileInsignia : EntityBase
|
|
{
|
|
[Comment("ปีที่ยื่นขอ")]
|
|
public int Year { get; set; }
|
|
[MaxLength(20), Comment("ลำดับที่")]
|
|
public string? No { get; set; }
|
|
[MaxLength(300), Comment("ราชกิจจาฯ ฉบับที่")]
|
|
public string? Issue { get; set; }
|
|
[MaxLength(30), Comment("เล่มที่")]
|
|
public string? VolumeNo { get; set; }
|
|
[MaxLength(30), Comment("เล่ม")]
|
|
public string? Volume { get; set; }
|
|
[MaxLength(30), Comment("ตอน")]
|
|
public string? Section { get; set; }
|
|
[MaxLength(30), Comment("หน้า")]
|
|
public string? Page { get; set; }
|
|
[Comment("วันที่ประกาศในราชกิจจาฯ")]
|
|
public DateTime? DateAnnounce { get; set; }
|
|
[Comment("ลงวันที่")]
|
|
public DateTime? ReceiveDate { get; set; }
|
|
[Comment("ประเภท")]
|
|
public string? InsigniaType { get; set; }
|
|
[Comment("ชื่อเครื่องราชฯ")]
|
|
// public string? Insignia { get; set; }
|
|
public Insignia? Insignia { get; set; }
|
|
[Comment("เอกสารอ้างอิง (เลขที่คำสั่ง)")]
|
|
public string? RefCommandNo { get; set; }
|
|
[Comment("เอกสารอ้างอิง (ลงวันที่)")]
|
|
public DateTime? RefCommandDate { get; set; }
|
|
public virtual List<ProfileInsigniaHistory> ProfileInsigniaHistorys { get; set; } = new List<ProfileInsigniaHistory>();
|
|
//public virtual Profile? Profile { get; set; }
|
|
|
|
public Guid ProfileId { get; set; } // link to profile
|
|
|
|
[Comment("หมายเหตุ")]
|
|
public string? Note { get; set; }
|
|
}
|
|
}
|