api เกษียณ

This commit is contained in:
Kittapath 2023-07-22 22:14:50 +07:00
parent 25274562c8
commit 6d655f3f3b
29 changed files with 27484 additions and 46 deletions

View file

@ -0,0 +1,15 @@
using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations;
using BMA.EHR.Domain.Models.Base;
namespace BMA.EHR.Domain.Models.Retirement
{
public class RetirementPeriod : EntityBase
{
[Comment("ครั้งที่")]
public int Round { get; set; }
[Comment("ประเภท")]
public string Type { get; set; } = string.Empty;
public virtual List<RetirementProfile> RetirementProfiles { get; set; } = new List<RetirementProfile>();
}
}

View file

@ -0,0 +1,19 @@
using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations;
using BMA.EHR.Domain.Models.Base;
using BMA.EHR.Domain.Models.HR;
namespace BMA.EHR.Domain.Models.Retirement
{
public class RetirementProfile : EntityBase
{
[Comment("ลำดับที่")]
public int Order { get; set; }
[Required, Comment("เหตุผล")]
public string Reason { get; set; } = string.Empty;
[Comment("ลบออกจากเกษียญ")]
public bool Remove { get; set; } = false;
public RetirementPeriod RetirementPeriod { get; set; }
public Profile Profile { get; set; }
}
}

View file

@ -74,5 +74,9 @@
public static readonly string InvalidOC = "ไม่พบหน่วยงานที่ระบุในระบบ";
#endregion
#region " Retirement "
public static readonly string InvalidRetirementRequest = "ไม่พบข้อมูลการประกาศเกษียณอายุราชการ";
#endregion
}
}