api บันทึกเครื่องราช

This commit is contained in:
Kittapath 2023-08-23 20:30:30 +07:00
parent 9abb9c5422
commit 51bdcf4041
50 changed files with 162548 additions and 111 deletions

View file

@ -0,0 +1,24 @@
using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations;
using BMA.EHR.Domain.Models.Base;
using System.ComponentModel.DataAnnotations.Schema;
using BMA.EHR.Domain.Models.Documents;
namespace BMA.EHR.Domain.Models.Insignias
{
public class InsigniaNote : EntityBase
{
[MaxLength(200)]
public string? Name { get; set; }
public int Year { get; set; }
// public DateTime StartDate { get; set; }
// public DateTime EndDate { get; set; }
// [MaxLength(50)]
// public int Amount { get; set; }
// public Document? ReliefDoc { get; set; }
// [Comment("ราบการยื่นขอ")]
// public int Round { get; set; } = 1;
public virtual List<InsigniaNoteProfile> InsigniaNoteProfiles { get; set; }
public virtual List<InsigniaNoteDoc> InsigniaNoteDocs { get; set; }
}
}

View file

@ -0,0 +1,17 @@
using BMA.EHR.Domain.Models.Base;
using BMA.EHR.Domain.Models.Documents;
using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations;
namespace BMA.EHR.Domain.Models.Insignias
{
public class InsigniaNoteDoc : EntityBase
{
[Required, Comment("อ้างอิงรหัสเอกสาร")]
public Document Document { get; set; }
[Comment("หมายเหตุ")]
public string? Reason { get; set; }
[Required, Comment("อ้างอิงันทึกผลเครื่องราช")]
public virtual InsigniaNote InsigniaNote { get; set; }
}
}

View file

@ -0,0 +1,45 @@
using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations;
using BMA.EHR.Domain.Models.Base;
using System.ComponentModel.DataAnnotations.Schema;
using BMA.EHR.Domain.Models.MetaData;
using BMA.EHR.Domain.Models.HR;
namespace BMA.EHR.Domain.Models.Insignias
{
public class InsigniaNoteProfile : EntityBase
{
public DateTime? RequestDate { get; set; }
public double? Salary { get; set; }
public bool IsApprove { get; set; } = false;
[Comment("สถานะตำแหน่งที่ยื่นขอ")]
public string Status { get; set; } = "PENDING";
[Comment("หมายเลขประกาศนียบัตรกำกับเครื่องราชฯ")]
public string? Number { get; set; }
[Comment("วันที่ได้รับพระราชทานเครื่องราชฯ")]
public DateTime? DateReceive { get; set; }
[Comment("สังกัด ณ วันที่ขอพระราชทานเครื่องราชฯ")]
public OrganizationOrganization? OrganizationOrganizationSend { get; set; }
[Comment("วันที่")]
public DateTime? Date { get; set; }
[Comment("เล่มที่")]
public string? VolumeNo { get; set; }
[Comment("ตอนที่")]
public string? Section { get; set; }
[Comment("หน้าที่")]
public string? Page { get; set; }
[Comment("ลำดับที่")]
public string? No { get; set; }
[Comment("วันที่จ่ายใบกำกับ")]
public DateTime? DatePayment { get; set; }
[Comment("รูปแบบการจ่าย")]
public string? TypePayment { get; set; }
[Comment("ที่อยู่ที่จ่าย")]
public string? Address { get; set; }
[Comment("ทะเบียนฐานันดร")]
public string? Issue { get; set; }
public Profile Profile { get; set; }
public Insignia RequestInsignia { get; set; }
public InsigniaNote InsigniaNote { get; set; }
}
}

View file

@ -8,15 +8,15 @@ namespace BMA.EHR.Domain.Models.Insignias
{
public class InsigniaPeriod : EntityBase
{
[Required, MaxLength(200)]
public string Name { get; set; }
[MaxLength(200)]
public string? Name { get; set; }
public int Year { get; set; }
public DateTime StartDate { get; set; }
public DateTime EndDate { get; set; }
[MaxLength(50)]
public int Amount { get; set; }
[MaxLength(10)]
public string Type { get; set; }
public string? Type { get; set; }
public Document? ReliefDoc { get; set; }
[Comment("ราบการยื่นขอ")]
public int Round { get; set; } = 1;

View file

@ -16,19 +16,19 @@ namespace BMA.EHR.Domain.Models.Insignias
public bool IsApprove { get; set; } = false;
[MaxLength(50)]
public string? QualificationStatus { get; set; }
// [MaxLength(50)]
// public string? QualificationStatus { get; set; }
[MaxLength(50)]
public string? DocumentStatus { get; set; }
// [MaxLength(50)]
// public string? DocumentStatus { get; set; }
[Column(TypeName = "text")]
public string? Note { get; set; }
// [Column(TypeName = "text")]
// public string? Note { get; set; }
[MaxLength(50)]
public string? Special { get; set; }
// [MaxLength(50)]
// public string? Special { get; set; }
[Column(TypeName = "text")]
[Column(TypeName = "text"), Comment("รายละเอียดเครื่องราชฯที่ขอ")]
public string? MatchingConditions { get; set; }
[Comment("สถานะตำแหน่งที่ยื่นขอ")]