api จัดการคำขอเครื่องราช

This commit is contained in:
Kittapath 2023-08-18 02:25:07 +07:00
parent 4215af4a0b
commit f386a5fea6
8 changed files with 409 additions and 233 deletions

View file

@ -14,10 +14,12 @@ namespace BMA.EHR.Domain.Models.Insignias
public DateTime StartDate { get; set; }
public DateTime EndDate { get; set; }
[MaxLength(50)]
public string Amount { get; set; }
public int Amount { get; set; }
[MaxLength(10)]
public string Type { get; set; }
public Document? ReliefDoc { get; set; }
[Comment("ราบการยื่นขอ")]
public int Round { get; set; } = 1;
[Comment("สถานะการใช้งาน")]
public bool IsActive { get; set; } = true;
public virtual List<InsigniaRequest> InsigniaRequests { get; set; }

View file

@ -31,6 +31,9 @@ namespace BMA.EHR.Domain.Models.Insignias
[Column(TypeName = "text")]
public string? MatchingConditions { get; set; }
[Comment("สถานะตำแหน่งที่ยื่นขอ")]
public string Status { get; set; } = "PENDING";
public Profile Profile { get; set; }
public Insignia RequestInsignia { get; set; }