using Microsoft.EntityFrameworkCore; using System.ComponentModel.DataAnnotations; using BMA.EHR.Domain.Models.Base; using BMA.EHR.Domain.Models.MetaData; using BMA.EHR.Domain.Models.Organizations; using BMA.EHR.Domain.Models.Documents; using BMA.EHR.Domain.Models.HR; namespace BMA.EHR.Domain.Models.Retirement { public class RetirementDeceased : EntityBase { [Comment("ใบมรณบัตร")] public Document? Document { get; set; } [Comment("หนังสือเวียน")] public Document? DocumentForward { get; set; } [Comment("เลขที่ใบมรณบัตร")] public string? Number { get; set; } = string.Empty; [Comment("วันที่เสียชีวิต")] public DateTime? Date { get; set; } [Comment("สถานที่ออกใบมรณบัตร")] public string? Location { get; set; } = string.Empty; [Comment("เหตุผลการเสียชีวิต")] public string? Reason { get; set; } = string.Empty; [Comment("Id ผู้ถึงแก่กรรม")] public Profile Profile { get; set; } [Comment("สถานะการใช้งาน")] public bool IsActive { get; set; } = true; public virtual List RetirementDeceasedNotis { get; set; } = new List(); } }