api บันทึกเครื่องราช
This commit is contained in:
parent
9abb9c5422
commit
51bdcf4041
50 changed files with 162548 additions and 111 deletions
24
BMA.EHR.Domain/Models/Insignias/InsigniaNote.cs
Normal file
24
BMA.EHR.Domain/Models/Insignias/InsigniaNote.cs
Normal 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; }
|
||||
}
|
||||
}
|
||||
17
BMA.EHR.Domain/Models/Insignias/InsigniaNoteDoc.cs
Normal file
17
BMA.EHR.Domain/Models/Insignias/InsigniaNoteDoc.cs
Normal 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; }
|
||||
}
|
||||
}
|
||||
45
BMA.EHR.Domain/Models/Insignias/InsigniaNoteProfile.cs
Normal file
45
BMA.EHR.Domain/Models/Insignias/InsigniaNoteProfile.cs
Normal 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; }
|
||||
}
|
||||
}
|
||||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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("สถานะตำแหน่งที่ยื่นขอ")]
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
using Microsoft.EntityFrameworkCore;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using BMA.EHR.Domain.Models.Base;
|
||||
using BMA.EHR.Domain.Models.Documents;
|
||||
|
||||
namespace BMA.EHR.Domain.Models.Retirement
|
||||
{
|
||||
|
|
@ -14,6 +15,8 @@ namespace BMA.EHR.Domain.Models.Retirement
|
|||
public int Year { get; set; }
|
||||
[Comment("ประเภท")]
|
||||
public string Type { get; set; } = string.Empty;
|
||||
[Comment("เอกสารประกาศ")]
|
||||
public Document? Document { get; set; }
|
||||
public virtual List<RetirementPeriodHistory> RetirementPeriodHistorys { get; set; } = new List<RetirementPeriodHistory>();
|
||||
public virtual List<RetirementProfile> RetirementProfiles { get; set; } = new List<RetirementProfile>();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
using Microsoft.EntityFrameworkCore;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using BMA.EHR.Domain.Models.Base;
|
||||
using BMA.EHR.Domain.Models.Documents;
|
||||
|
||||
namespace BMA.EHR.Domain.Models.Retirement
|
||||
{
|
||||
|
|
@ -18,6 +19,8 @@ namespace BMA.EHR.Domain.Models.Retirement
|
|||
public string Type { get; set; } = string.Empty;
|
||||
[Comment("รายชื่อเกษียญ")]
|
||||
public string ProfileFile { get; set; }
|
||||
[Comment("เอกสารประกาศ")]
|
||||
public Document? Document { get; set; }
|
||||
public RetirementPeriod RetirementPeriod { get; set; }
|
||||
}
|
||||
}
|
||||
|
|
|
|||
47
BMA.EHR.Domain/Models/Retirement/RetirementQuestion.cs
Normal file
47
BMA.EHR.Domain/Models/Retirement/RetirementQuestion.cs
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
using Microsoft.EntityFrameworkCore;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using BMA.EHR.Domain.Models.Base;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using BMA.EHR.Domain.Models.Documents;
|
||||
using BMA.EHR.Domain.Models.MetaData;
|
||||
|
||||
namespace BMA.EHR.Domain.Models.Retirement
|
||||
{
|
||||
public class RetirementQuestion : EntityBase
|
||||
{
|
||||
[Comment("รอบการลาออก")]
|
||||
public RetirementResign RetirementResign { get; set; }
|
||||
[Comment("เหตุใดท่านจึงตัดสินใจร่วมงานกับกรุงเทพมหานคร")]
|
||||
public string? ReasonWork { get; set; }
|
||||
[Comment("อื่นๆ เหตุใดท่านจึงตัดสินใจร่วมงานกับกรุงเทพมหานคร")]
|
||||
public string? ReasonWorkOther { get; set; }
|
||||
[Comment("สำหรับการลาออกในครั้งนี้ ท่านได้คิดทบทวนอย่างจริงจังเป็นระยะเวลานานเท่าใด")]
|
||||
public string? TimeThink { get; set; }
|
||||
[Comment("ปัจจัยใดที่ทำให้ท่านตัดสินใจลาออกจากราชการ")]
|
||||
public string? ExitFactor { get; set; }
|
||||
[Comment("อื่นๆ ปัจจัยใดที่ทำให้ท่านตัดสินใจลาออกจากราชการ")]
|
||||
public string? ExitFactorOther { get; set; }
|
||||
[Comment("อะไรคือสิ่งที่ท่านเห็นว่าควรปรับปรุง")]
|
||||
public string? Adjust { get; set; }
|
||||
[Comment("อื่นๆ อะไรคือสิ่งที่ท่านเห็นว่าควรปรับปรุง")]
|
||||
public string? AdjustOther { get; set; }
|
||||
[Comment("โปรดระบุสาเหตุที่แท้จริง ที่ทำให้ท่านตัดสินใจลาออกจากการปฏิบัติราชการกับกรุงเทพมหานคร")]
|
||||
public string? RealReason { get; set; }
|
||||
[Comment("ปัจจัยใดที่จะช่วยทำให้ท่านเปลี่ยนใจ ไม่อยากลาออกจากการปฏิบัติราชการกับกรุงเทพมหานคร")]
|
||||
public string? NotExitFactor { get; set; }
|
||||
[Comment("ท่านมีงานใหม่หรือไม่และอะไรคือสิ่งที่ที่ทำงานใหม่ให้กับท่าน ซึ่งท่านรู้สึกว่าเป็นที่น่าพอใจมากกว่าการปฏิบัติราชการกับกรุงเทพมหานคร")]
|
||||
public bool? Havejob { get; set; }
|
||||
[Comment("เหตุผลท่านมีงานใหม่หรือไม่และอะไรคือสิ่งที่ที่ทำงานใหม่ให้กับท่าน ซึ่งท่านรู้สึกว่าเป็นที่น่าพอใจมากกว่าการปฏิบัติราชการกับกรุงเทพมหานคร")]
|
||||
public string? HavejobReason { get; set; }
|
||||
[Comment("ท่านจะแนะนำเพื่อนให้มาร่วมงานกับกรุงเทพมหานครหรือไม่")]
|
||||
public bool? SuggestFriends { get; set; }
|
||||
[Comment("เหตุผลท่านจะแนะนำเพื่อนให้มาร่วมงานกับกรุงเทพมหานครหรือไม่")]
|
||||
public string? SuggestFriendsReason { get; set; }
|
||||
[Comment("หากท่านมีโอกาสในอนาคต ท่านอยากกลับมาร่วมงานกับกรุงเทพมหานครหรือไม่")]
|
||||
public bool? FutureWork { get; set; }
|
||||
[Comment("เหตุผลหากท่านมีโอกาสในอนาคต ท่านอยากกลับมาร่วมงานกับกรุงเทพมหานครหรือไม่")]
|
||||
public string? FutureWorkReason { get; set; }
|
||||
[Comment("ความคิดเห็นและข้อเสนอแนะอื่น ๆ ")]
|
||||
public string? Suggestion { get; set; }
|
||||
}
|
||||
}
|
||||
|
|
@ -33,7 +33,12 @@ namespace BMA.EHR.Domain.Models.Retirement
|
|||
public double? AmountOld { get; set; }
|
||||
[Comment("สถานะลาออก")]
|
||||
public string? Status { get; set; } = "WAITTING";
|
||||
[Comment("เหตุผลอนุมัติ")]
|
||||
public string? ApproveReason { get; set; }
|
||||
[Comment("เหตุผลไม่อนุมัติ")]
|
||||
public string? RejectReason { get; set; }
|
||||
[Comment("สถานะการใช้งาน")]
|
||||
public bool IsActive { get; set; } = true;
|
||||
public virtual List<RetirementResignDoc> RetirementResignDocs { get; set; } = new List<RetirementResignDoc>();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
15
BMA.EHR.Domain/Models/Retirement/RetirementResignDoc.cs
Normal file
15
BMA.EHR.Domain/Models/Retirement/RetirementResignDoc.cs
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
using BMA.EHR.Domain.Models.Base;
|
||||
using BMA.EHR.Domain.Models.Documents;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace BMA.EHR.Domain.Models.Retirement
|
||||
{
|
||||
public class RetirementResignDoc : EntityBase
|
||||
{
|
||||
[Required, Comment("อ้างอิงรหัสเอกสาร")]
|
||||
public Document Document { get; set; }
|
||||
[Required, Comment("อ้างอิงรับย้าย")]
|
||||
public virtual RetirementResign RetirementResign { get; set; }
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue