api เกษียณ
This commit is contained in:
parent
25274562c8
commit
6d655f3f3b
29 changed files with 27484 additions and 46 deletions
15
BMA.EHR.Domain/Models/Retirement/RetirementPeriod.cs
Normal file
15
BMA.EHR.Domain/Models/Retirement/RetirementPeriod.cs
Normal 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>();
|
||||
}
|
||||
}
|
||||
19
BMA.EHR.Domain/Models/Retirement/RetirementProfile.cs
Normal file
19
BMA.EHR.Domain/Models/Retirement/RetirementProfile.cs
Normal 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; }
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue