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 RetirementResign : EntityBase { [Comment("สถานที่ยื่นขอลาออกราชการ")] public string? Location { get; set; } = string.Empty; [Comment("วันที่ยื่นขอออกราชการ")] public DateTime? SendDate { get; set; } [Comment("วันที่ขอออกราชการ")] public DateTime? ActiveDate { get; set; } [Comment("เหตุผลที่ลาออกจากราชการ")] public string? Reason { get; set; } = string.Empty; [Comment("Id ผู้ลาออก")] public Profile Profile { get; set; } [Comment("สังกัด")] public string? OrganizationPositionOld { get; set; } [Comment("ข้อมูลหน่วยงานเดิม ตำแหน่งประเภท")] public string? PositionTypeOld { get; set; } [Comment("ข้อมูลหน่วยงานเดิม ระดับ")] public string? PositionLevelOld { get; set; } [Comment("ข้อมูลหน่วยงานเดิม เลขที่")] public string? PositionNumberOld { get; set; } [Comment("ข้อมูลหน่วยงานเดิม เงินเดือน")] public double? AmountOld { get; set; } [Comment("สถานะลาออก")] public string? Status { get; set; } = "WAITTING"; [Comment("สถานะการใช้งาน")] public bool IsActive { get; set; } = true; } }