เพิ่ม api บรรจุ พ้นราชการ
This commit is contained in:
parent
f587ab6a87
commit
e2fee53a94
52 changed files with 34312 additions and 225 deletions
82
BMA.EHR.Domain/Models/Placement/PlacementAppointment.cs
Normal file
82
BMA.EHR.Domain/Models/Placement/PlacementAppointment.cs
Normal file
|
|
@ -0,0 +1,82 @@
|
|||
using Microsoft.EntityFrameworkCore;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using BMA.EHR.Domain.Models.Base;
|
||||
using BMA.EHR.Domain.Models.MetaData;
|
||||
using BMA.EHR.Domain.Models.Organizations;
|
||||
using BMA.EHR.Domain.Models.Commands.Core;
|
||||
|
||||
namespace BMA.EHR.Domain.Models.Placement
|
||||
{
|
||||
public class PlacementAppointment : EntityBase
|
||||
{
|
||||
[Required, MaxLength(20), Comment("เลขประจำตัวประชาชน")]
|
||||
public string? CitizenId { get; set; }
|
||||
[Required, Comment("คำนำหน้า")]
|
||||
public Prefix? Prefix { get; set; }
|
||||
[Required, Comment("ชื่อ")]
|
||||
public string? Firstname { get; set; }
|
||||
[Required, Comment("นามสกุล")]
|
||||
public string? Lastname { get; set; }
|
||||
[MaxLength(40), Comment("วันเกิด")]
|
||||
public DateTime DateOfBirth { get; set; }
|
||||
[Comment("Id เพศ")]
|
||||
public Gender? Gender { get; set; }
|
||||
[MaxLength(100), Comment("สัญชาติ")]
|
||||
public string? Nationality { get; set; }
|
||||
[MaxLength(100), Comment("เชื้อชาติ")]
|
||||
public string? Race { get; set; }
|
||||
[Comment("Id ศาสนา")]
|
||||
public Religion? Religion { get; set; }
|
||||
[Comment("Id กลุ่มเลือด")]
|
||||
public BloodGroup? BloodGroup { get; set; }
|
||||
[Comment("Id สถานะภาพ")]
|
||||
public Relationship? Relationship { get; set; }
|
||||
[MaxLength(50), Comment("เบอร์โทร")]
|
||||
public string? TelephoneNumber { get; set; }
|
||||
[Comment("สถานะคำขอ")]
|
||||
public string Status { get; set; } = "WAITTING";
|
||||
[Comment("Id เลขที่ตำแหน่ง")]
|
||||
public OrganizationPositionEntity? OrganizationPosition { get; set; }
|
||||
[Comment("วันที่บรรจุ")]
|
||||
public DateTime? RecruitDate { get; set; }
|
||||
|
||||
[Comment("Id ตำแหน่งเลขที่")]
|
||||
public PositionNumberEntity? PositionNumber { get; set; }
|
||||
|
||||
[Comment("Id ตำแหน่ง")]
|
||||
public PositionPath? PositionPath { get; set; }
|
||||
|
||||
[Comment("Id ด้าน/สาขา")]
|
||||
public PositionPathSide? PositionPathSide { get; set; }
|
||||
|
||||
[Comment("Id ประเภทตำแหน่ง")]
|
||||
public PositionType? PositionType { get; set; }
|
||||
|
||||
[Comment("Id สายงาน")]
|
||||
public PositionLine? PositionLine { get; set; }
|
||||
|
||||
[Comment("Id ระดับ")]
|
||||
public PositionLevel? PositionLevel { get; set; }
|
||||
[Comment("เหตุผลที่รับย้ายราชการ")]
|
||||
public string? Reason { get; set; }
|
||||
[Comment("วุฒิ/สาขาเดิม")]
|
||||
public string? EducationOld { get; set; }
|
||||
[Comment("สังกัดเดิม")]
|
||||
public string? OrganizationPositionOld { get; set; }
|
||||
[Comment("ข้อมูลหน่วยงานเดิม ตำแหน่งประเภท")]
|
||||
public string? PositionTypeOld { get; set; }
|
||||
[Comment("ข้อมูลหน่วยงานเดิม ระดับ")]
|
||||
public string? PositionLevelOld { get; set; }
|
||||
[Comment("ข้อมูลหน่วยงานเดิม เลขที่")]
|
||||
public string? PositionNumberOld { get; set; }
|
||||
[Comment("ข้อมูลหน่วยงานเดิม เงินเดือน")]
|
||||
public double? AmountOld { get; set; }
|
||||
[Comment("สถานะการใช้งาน")]
|
||||
public bool IsActive { get; set; } = true;
|
||||
[Comment("ประเภทคำสั่ง")]
|
||||
public CommandType? CommandType { get; set; }
|
||||
[Comment("ดำรงตำแหน่งในระดับปัจจุบันเมื่อ")]
|
||||
public DateTime? PositionDate { get; set; }
|
||||
public virtual List<PlacementAppointmentDoc> PlacementAppointmentDocs { get; set; } = new List<PlacementAppointmentDoc>();
|
||||
}
|
||||
}
|
||||
15
BMA.EHR.Domain/Models/Placement/PlacementAppointmentDoc.cs
Normal file
15
BMA.EHR.Domain/Models/Placement/PlacementAppointmentDoc.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.Placement
|
||||
{
|
||||
public class PlacementAppointmentDoc : EntityBase
|
||||
{
|
||||
[Required, Comment("อ้างอิงรหัสเอกสาร")]
|
||||
public Document Document { get; set; }
|
||||
[Required, Comment("อ้างอิงรับย้าย")]
|
||||
public virtual PlacementAppointment PlacementAppointment { get; set; }
|
||||
}
|
||||
}
|
||||
35
BMA.EHR.Domain/Models/Placement/PlacementOfficer.cs
Normal file
35
BMA.EHR.Domain/Models/Placement/PlacementOfficer.cs
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
using Microsoft.EntityFrameworkCore;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using BMA.EHR.Domain.Models.Base;
|
||||
using BMA.EHR.Domain.Models.HR;
|
||||
using BMA.EHR.Domain.Models.Organizations;
|
||||
using BMA.EHR.Domain.Models.MetaData;
|
||||
|
||||
namespace BMA.EHR.Domain.Models.Placement
|
||||
{
|
||||
public class PlacementOfficer : EntityBase
|
||||
{
|
||||
[Required, Comment("Id User")]
|
||||
public Profile Profile { get; set; }
|
||||
[Comment("หน่วยงานที่ช่วยราชการไป")]
|
||||
public string? Organization { get; set; } = string.Empty;
|
||||
[Comment("เหตุผล")]
|
||||
public string? Reason { get; set; } = string.Empty;
|
||||
[Comment("สังกัด")]
|
||||
public string? OrganizationPositionOld { get; set; }
|
||||
[Comment("ตั้งแต่วันที่")]
|
||||
public DateTime? Date { get; set; }
|
||||
[Comment("ข้อมูลหน่วยงานเดิม ตำแหน่งประเภท")]
|
||||
public string? PositionTypeOld { get; set; }
|
||||
[Comment("ข้อมูลหน่วยงานเดิม ระดับ")]
|
||||
public string? PositionLevelOld { get; set; }
|
||||
[Comment("ข้อมูลหน่วยงานเดิม เลขที่")]
|
||||
public string? PositionNumberOld { get; set; }
|
||||
[Comment("ข้อมูลหน่วยงานเดิม เงินเดือน")]
|
||||
public double? AmountOld { get; set; }
|
||||
[Comment("สถานะคำขอ")]
|
||||
public string Status { get; set; } = "WAITTING";
|
||||
[Comment("สถานะการใช้งาน")]
|
||||
public bool IsActive { get; set; } = true;
|
||||
}
|
||||
}
|
||||
|
|
@ -33,7 +33,7 @@ namespace BMA.EHR.Domain.Models.Placement
|
|||
[MaxLength(50), Comment("เบอร์โทร")]
|
||||
public string? TelephoneNumber { get; set; }
|
||||
[Comment("สถานะคำขอ")]
|
||||
public string Status { get; set; } = "PENDING";
|
||||
public string Status { get; set; } = "WAITTING";
|
||||
[Comment("Id เลขที่ตำแหน่ง")]
|
||||
public OrganizationPositionEntity? OrganizationPosition { get; set; }
|
||||
[Comment("วันที่บรรจุ")]
|
||||
|
|
@ -56,6 +56,20 @@ namespace BMA.EHR.Domain.Models.Placement
|
|||
|
||||
[Comment("Id ระดับ")]
|
||||
public PositionLevel? PositionLevel { get; set; }
|
||||
[Comment("เหตุผลที่รับโอนราชการ")]
|
||||
public string? Reason { get; set; }
|
||||
[Comment("วุฒิ/สาขาเดิม")]
|
||||
public string? EducationOld { get; set; }
|
||||
[Comment("สังกัดเดิม")]
|
||||
public string? OrganizationPositionOld { get; set; }
|
||||
[Comment("ข้อมูลหน่วยงานเดิม ตำแหน่งประเภท")]
|
||||
public string? PositionTypeOld { get; set; }
|
||||
[Comment("ข้อมูลหน่วยงานเดิม ระดับ")]
|
||||
public string? PositionLevelOld { get; set; }
|
||||
[Comment("ข้อมูลหน่วยงานเดิม เลขที่")]
|
||||
public string? PositionNumberOld { get; set; }
|
||||
[Comment("ข้อมูลหน่วยงานเดิม เงินเดือน")]
|
||||
public double? AmountOld { get; set; }
|
||||
[Comment("สถานะการใช้งาน")]
|
||||
public bool IsActive { get; set; } = true;
|
||||
public virtual List<PlacementReceiveDoc> PlacementReceiveDocs { get; set; } = new List<PlacementReceiveDoc>();
|
||||
|
|
|
|||
77
BMA.EHR.Domain/Models/Placement/PlacementRelocation.cs
Normal file
77
BMA.EHR.Domain/Models/Placement/PlacementRelocation.cs
Normal file
|
|
@ -0,0 +1,77 @@
|
|||
using Microsoft.EntityFrameworkCore;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using BMA.EHR.Domain.Models.Base;
|
||||
using BMA.EHR.Domain.Models.MetaData;
|
||||
using BMA.EHR.Domain.Models.Organizations;
|
||||
|
||||
namespace BMA.EHR.Domain.Models.Placement
|
||||
{
|
||||
public class PlacementRelocation : EntityBase
|
||||
{
|
||||
[Required, MaxLength(20), Comment("เลขประจำตัวประชาชน")]
|
||||
public string? CitizenId { get; set; }
|
||||
[Required, Comment("คำนำหน้า")]
|
||||
public Prefix? Prefix { get; set; }
|
||||
[Required, Comment("ชื่อ")]
|
||||
public string? Firstname { get; set; }
|
||||
[Required, Comment("นามสกุล")]
|
||||
public string? Lastname { get; set; }
|
||||
[MaxLength(40), Comment("วันเกิด")]
|
||||
public DateTime DateOfBirth { get; set; }
|
||||
[Comment("Id เพศ")]
|
||||
public Gender? Gender { get; set; }
|
||||
[MaxLength(100), Comment("สัญชาติ")]
|
||||
public string? Nationality { get; set; }
|
||||
[MaxLength(100), Comment("เชื้อชาติ")]
|
||||
public string? Race { get; set; }
|
||||
[Comment("Id ศาสนา")]
|
||||
public Religion? Religion { get; set; }
|
||||
[Comment("Id กลุ่มเลือด")]
|
||||
public BloodGroup? BloodGroup { get; set; }
|
||||
[Comment("Id สถานะภาพ")]
|
||||
public Relationship? Relationship { get; set; }
|
||||
[MaxLength(50), Comment("เบอร์โทร")]
|
||||
public string? TelephoneNumber { get; set; }
|
||||
[Comment("สถานะคำขอ")]
|
||||
public string Status { get; set; } = "WAITTING";
|
||||
[Comment("Id เลขที่ตำแหน่ง")]
|
||||
public OrganizationPositionEntity? OrganizationPosition { get; set; }
|
||||
[Comment("วันที่บรรจุ")]
|
||||
public DateTime? RecruitDate { get; set; }
|
||||
|
||||
[Comment("Id ตำแหน่งเลขที่")]
|
||||
public PositionNumberEntity? PositionNumber { get; set; }
|
||||
|
||||
[Comment("Id ตำแหน่ง")]
|
||||
public PositionPath? PositionPath { get; set; }
|
||||
|
||||
[Comment("Id ด้าน/สาขา")]
|
||||
public PositionPathSide? PositionPathSide { get; set; }
|
||||
|
||||
[Comment("Id ประเภทตำแหน่ง")]
|
||||
public PositionType? PositionType { get; set; }
|
||||
|
||||
[Comment("Id สายงาน")]
|
||||
public PositionLine? PositionLine { get; set; }
|
||||
|
||||
[Comment("Id ระดับ")]
|
||||
public PositionLevel? PositionLevel { get; set; }
|
||||
[Comment("เหตุผลที่ย้ายราชการ")]
|
||||
public string? Reason { get; set; }
|
||||
[Comment("วุฒิ/สาขาเดิม")]
|
||||
public string? EducationOld { get; set; }
|
||||
[Comment("สังกัดเดิม")]
|
||||
public string? OrganizationPositionOld { get; set; }
|
||||
[Comment("ข้อมูลหน่วยงานเดิม ตำแหน่งประเภท")]
|
||||
public string? PositionTypeOld { get; set; }
|
||||
[Comment("ข้อมูลหน่วยงานเดิม ระดับ")]
|
||||
public string? PositionLevelOld { get; set; }
|
||||
[Comment("ข้อมูลหน่วยงานเดิม เลขที่")]
|
||||
public string? PositionNumberOld { get; set; }
|
||||
[Comment("ข้อมูลหน่วยงานเดิม เงินเดือน")]
|
||||
public double? AmountOld { get; set; }
|
||||
[Comment("สถานะการใช้งาน")]
|
||||
public bool IsActive { get; set; } = true;
|
||||
public virtual List<PlacementRelocationDoc> PlacementRelocationDocs { get; set; } = new List<PlacementRelocationDoc>();
|
||||
}
|
||||
}
|
||||
15
BMA.EHR.Domain/Models/Placement/PlacementRelocationDoc.cs
Normal file
15
BMA.EHR.Domain/Models/Placement/PlacementRelocationDoc.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.Placement
|
||||
{
|
||||
public class PlacementRelocationDoc : EntityBase
|
||||
{
|
||||
[Required, Comment("อ้างอิงรหัสเอกสาร")]
|
||||
public Document Document { get; set; }
|
||||
[Required, Comment("อ้างอิงย้าย")]
|
||||
public virtual PlacementRelocation PlacementRelocation { get; set; }
|
||||
}
|
||||
}
|
||||
35
BMA.EHR.Domain/Models/Placement/PlacementRepatriation.cs
Normal file
35
BMA.EHR.Domain/Models/Placement/PlacementRepatriation.cs
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
using Microsoft.EntityFrameworkCore;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using BMA.EHR.Domain.Models.Base;
|
||||
using BMA.EHR.Domain.Models.HR;
|
||||
using BMA.EHR.Domain.Models.Organizations;
|
||||
using BMA.EHR.Domain.Models.MetaData;
|
||||
|
||||
namespace BMA.EHR.Domain.Models.Placement
|
||||
{
|
||||
public class PlacementRepatriation : EntityBase
|
||||
{
|
||||
[Required, Comment("Id User")]
|
||||
public Profile Profile { get; set; }
|
||||
[Comment("หน่วยงานที่ส่งตัวกลับไป")]
|
||||
public string? Organization { get; set; } = string.Empty;
|
||||
[Comment("เหตุผล")]
|
||||
public string? Reason { get; set; } = string.Empty;
|
||||
[Comment("สังกัด")]
|
||||
public string? OrganizationPositionOld { get; set; }
|
||||
[Comment("ตั้งแต่วันที่")]
|
||||
public DateTime? Date { get; set; }
|
||||
[Comment("ข้อมูลหน่วยงานเดิม ตำแหน่งประเภท")]
|
||||
public string? PositionTypeOld { get; set; }
|
||||
[Comment("ข้อมูลหน่วยงานเดิม ระดับ")]
|
||||
public string? PositionLevelOld { get; set; }
|
||||
[Comment("ข้อมูลหน่วยงานเดิม เลขที่")]
|
||||
public string? PositionNumberOld { get; set; }
|
||||
[Comment("ข้อมูลหน่วยงานเดิม เงินเดือน")]
|
||||
public double? AmountOld { get; set; }
|
||||
[Comment("สถานะคำขอ")]
|
||||
public string Status { get; set; } = "WAITTING";
|
||||
[Comment("สถานะการใช้งาน")]
|
||||
public bool IsActive { get; set; } = true;
|
||||
}
|
||||
}
|
||||
|
|
@ -9,26 +9,26 @@ namespace BMA.EHR.Domain.Models.Placement
|
|||
{
|
||||
public class PlacementTransfer : EntityBase
|
||||
{
|
||||
[Required, Comment("Id ผู้ขอโอน")]
|
||||
[Required, Comment("Id User")]
|
||||
public Profile Profile { get; set; }
|
||||
[Comment("หน่วยงานที่ขอโอนไป")]
|
||||
public string? Organization { get; set; } = string.Empty;
|
||||
[Comment("เหตุผล")]
|
||||
public string? Reason { get; set; } = string.Empty;
|
||||
[Comment("สังกัด")]
|
||||
public OrganizationPositionEntity? OrganizationPositionOld { get; set; }
|
||||
public string? OrganizationPositionOld { get; set; }
|
||||
[Comment("ตั้งแต่วันที่")]
|
||||
public DateTime? Date { get; set; }
|
||||
[Comment("ข้อมูลหน่วยงานเดิม ตำแหน่งประเภท")]
|
||||
public PositionType? PositionTypeOld { get; set; }
|
||||
public string? PositionTypeOld { get; set; }
|
||||
[Comment("ข้อมูลหน่วยงานเดิม ระดับ")]
|
||||
public PositionLevel? PositionLevelOld { get; set; }
|
||||
public string? PositionLevelOld { get; set; }
|
||||
[Comment("ข้อมูลหน่วยงานเดิม เลขที่")]
|
||||
public PositionNumberEntity? PositionNumberOld { get; set; }
|
||||
public string? PositionNumberOld { get; set; }
|
||||
[Comment("ข้อมูลหน่วยงานเดิม เงินเดือน")]
|
||||
public double? AmountOld { get; set; }
|
||||
[Comment("สถานะคำขอ")]
|
||||
public string Status { get; set; } = "PENDING";
|
||||
public string Status { get; set; } = "WAITTING";
|
||||
[Comment("สถานะการใช้งาน")]
|
||||
public bool IsActive { get; set; } = true;
|
||||
public virtual List<PlacementTransferDoc> PlacementTransferDocs { get; set; } = new List<PlacementTransferDoc>();
|
||||
|
|
|
|||
35
BMA.EHR.Domain/Models/Retirement/RetirementDischarge.cs
Normal file
35
BMA.EHR.Domain/Models/Retirement/RetirementDischarge.cs
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
using Microsoft.EntityFrameworkCore;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using BMA.EHR.Domain.Models.Base;
|
||||
using BMA.EHR.Domain.Models.HR;
|
||||
using BMA.EHR.Domain.Models.Organizations;
|
||||
using BMA.EHR.Domain.Models.MetaData;
|
||||
|
||||
namespace BMA.EHR.Domain.Models.Retirement
|
||||
{
|
||||
public class RetirementDischarge : EntityBase
|
||||
{
|
||||
[Required, Comment("Id User")]
|
||||
public Profile Profile { get; set; }
|
||||
[Comment("หน่วยงานที่ปลดออกไป")]
|
||||
public string? Organization { get; set; } = string.Empty;
|
||||
[Comment("เหตุผล")]
|
||||
public string? Reason { get; set; } = string.Empty;
|
||||
[Comment("สังกัด")]
|
||||
public string? OrganizationPositionOld { get; set; }
|
||||
[Comment("ตั้งแต่วันที่")]
|
||||
public DateTime? Date { get; set; }
|
||||
[Comment("ข้อมูลหน่วยงานเดิม ตำแหน่งประเภท")]
|
||||
public string? PositionTypeOld { get; set; }
|
||||
[Comment("ข้อมูลหน่วยงานเดิม ระดับ")]
|
||||
public string? PositionLevelOld { get; set; }
|
||||
[Comment("ข้อมูลหน่วยงานเดิม เลขที่")]
|
||||
public string? PositionNumberOld { get; set; }
|
||||
[Comment("ข้อมูลหน่วยงานเดิม เงินเดือน")]
|
||||
public double? AmountOld { get; set; }
|
||||
[Comment("สถานะคำขอ")]
|
||||
public string Status { get; set; } = "WAITTING";
|
||||
[Comment("สถานะการใช้งาน")]
|
||||
public bool IsActive { get; set; } = true;
|
||||
}
|
||||
}
|
||||
35
BMA.EHR.Domain/Models/Retirement/RetirementExpulsion.cs
Normal file
35
BMA.EHR.Domain/Models/Retirement/RetirementExpulsion.cs
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
using Microsoft.EntityFrameworkCore;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using BMA.EHR.Domain.Models.Base;
|
||||
using BMA.EHR.Domain.Models.HR;
|
||||
using BMA.EHR.Domain.Models.Organizations;
|
||||
using BMA.EHR.Domain.Models.MetaData;
|
||||
|
||||
namespace BMA.EHR.Domain.Models.Retirement
|
||||
{
|
||||
public class RetirementExpulsion : EntityBase
|
||||
{
|
||||
[Required, Comment("Id User")]
|
||||
public Profile Profile { get; set; }
|
||||
[Comment("หน่วยงานที่ไล่ออกไป")]
|
||||
public string? Organization { get; set; } = string.Empty;
|
||||
[Comment("เหตุผล")]
|
||||
public string? Reason { get; set; } = string.Empty;
|
||||
[Comment("สังกัด")]
|
||||
public string? OrganizationPositionOld { get; set; }
|
||||
[Comment("ตั้งแต่วันที่")]
|
||||
public DateTime? Date { get; set; }
|
||||
[Comment("ข้อมูลหน่วยงานเดิม ตำแหน่งประเภท")]
|
||||
public string? PositionTypeOld { get; set; }
|
||||
[Comment("ข้อมูลหน่วยงานเดิม ระดับ")]
|
||||
public string? PositionLevelOld { get; set; }
|
||||
[Comment("ข้อมูลหน่วยงานเดิม เลขที่")]
|
||||
public string? PositionNumberOld { get; set; }
|
||||
[Comment("ข้อมูลหน่วยงานเดิม เงินเดือน")]
|
||||
public double? AmountOld { get; set; }
|
||||
[Comment("สถานะคำขอ")]
|
||||
public string Status { get; set; } = "WAITTING";
|
||||
[Comment("สถานะการใช้งาน")]
|
||||
public bool IsActive { get; set; } = true;
|
||||
}
|
||||
}
|
||||
38
BMA.EHR.Domain/Models/Retirement/RetirementOther.cs
Normal file
38
BMA.EHR.Domain/Models/Retirement/RetirementOther.cs
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
using Microsoft.EntityFrameworkCore;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using BMA.EHR.Domain.Models.Base;
|
||||
using BMA.EHR.Domain.Models.HR;
|
||||
using BMA.EHR.Domain.Models.Organizations;
|
||||
using BMA.EHR.Domain.Models.MetaData;
|
||||
using BMA.EHR.Domain.Models.Commands.Core;
|
||||
|
||||
namespace BMA.EHR.Domain.Models.Retirement
|
||||
{
|
||||
public class RetirementOther : EntityBase
|
||||
{
|
||||
[Required, Comment("Id User")]
|
||||
public Profile Profile { get; set; }
|
||||
[Comment("หน่วยงานที่อื่นๆไป")]
|
||||
public string? Organization { get; set; } = string.Empty;
|
||||
[Comment("เหตุผล")]
|
||||
public string? Reason { get; set; } = string.Empty;
|
||||
[Comment("สังกัด")]
|
||||
public string? OrganizationPositionOld { get; set; }
|
||||
[Comment("ตั้งแต่วันที่")]
|
||||
public DateTime? Date { get; set; }
|
||||
[Comment("ข้อมูลหน่วยงานเดิม ตำแหน่งประเภท")]
|
||||
public string? PositionTypeOld { get; set; }
|
||||
[Comment("ข้อมูลหน่วยงานเดิม ระดับ")]
|
||||
public string? PositionLevelOld { get; set; }
|
||||
[Comment("ข้อมูลหน่วยงานเดิม เลขที่")]
|
||||
public string? PositionNumberOld { get; set; }
|
||||
[Comment("ข้อมูลหน่วยงานเดิม เงินเดือน")]
|
||||
public double? AmountOld { get; set; }
|
||||
[Comment("สถานะคำขอ")]
|
||||
public string Status { get; set; } = "WAITTING";
|
||||
[Comment("สถานะการใช้งาน")]
|
||||
public bool IsActive { get; set; } = true;
|
||||
[Comment("ประเภทคำสั่ง")]
|
||||
public CommandType? CommandType { get; set; }
|
||||
}
|
||||
}
|
||||
35
BMA.EHR.Domain/Models/Retirement/RetirementOut.cs
Normal file
35
BMA.EHR.Domain/Models/Retirement/RetirementOut.cs
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
using Microsoft.EntityFrameworkCore;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using BMA.EHR.Domain.Models.Base;
|
||||
using BMA.EHR.Domain.Models.HR;
|
||||
using BMA.EHR.Domain.Models.Organizations;
|
||||
using BMA.EHR.Domain.Models.MetaData;
|
||||
|
||||
namespace BMA.EHR.Domain.Models.Retirement
|
||||
{
|
||||
public class RetirementOut : EntityBase
|
||||
{
|
||||
[Required, Comment("Id User")]
|
||||
public Profile Profile { get; set; }
|
||||
[Comment("หน่วยงานที่ให้ออกไป")]
|
||||
public string? Organization { get; set; } = string.Empty;
|
||||
[Comment("เหตุผล")]
|
||||
public string? Reason { get; set; } = string.Empty;
|
||||
[Comment("สังกัด")]
|
||||
public string? OrganizationPositionOld { get; set; }
|
||||
[Comment("ตั้งแต่วันที่")]
|
||||
public DateTime? Date { get; set; }
|
||||
[Comment("ข้อมูลหน่วยงานเดิม ตำแหน่งประเภท")]
|
||||
public string? PositionTypeOld { get; set; }
|
||||
[Comment("ข้อมูลหน่วยงานเดิม ระดับ")]
|
||||
public string? PositionLevelOld { get; set; }
|
||||
[Comment("ข้อมูลหน่วยงานเดิม เลขที่")]
|
||||
public string? PositionNumberOld { get; set; }
|
||||
[Comment("ข้อมูลหน่วยงานเดิม เงินเดือน")]
|
||||
public double? AmountOld { get; set; }
|
||||
[Comment("สถานะคำขอ")]
|
||||
public string Status { get; set; } = "WAITTING";
|
||||
[Comment("สถานะการใช้งาน")]
|
||||
public bool IsActive { get; set; } = true;
|
||||
}
|
||||
}
|
||||
|
|
@ -21,19 +21,18 @@ namespace BMA.EHR.Domain.Models.Retirement
|
|||
public string? Reason { get; set; } = string.Empty;
|
||||
[Comment("Id ผู้ลาออก")]
|
||||
public Profile Profile { get; set; }
|
||||
[Comment("Id ประเภทตำแหน่ง")]
|
||||
public PositionType? PositionType { get; set; }
|
||||
[Comment("Id สายงาน")]
|
||||
public PositionLine? PositionLine { get; set; }
|
||||
|
||||
[Comment("Id ระดับ")]
|
||||
public PositionLevel? PositionLevel { get; set; }
|
||||
[Comment("Id ตำแหน่งทางการบริหาร")]
|
||||
public PositionExecutive? PositionExecutive { get; set; }
|
||||
[Comment("Id สังกัด")]
|
||||
public OrganizationOrganization? OrganizationOrganization { get; set; }
|
||||
[Comment("สังกัด")]
|
||||
public string? OrganizationPositionOld { get; set; }
|
||||
[Comment("ข้อมูลหน่วยงานเดิม ตำแหน่งประเภท")]
|
||||
public string? PositionTypeOld { get; set; }
|
||||
[Comment("ข้อมูลหน่วยงานเดิม ระดับ")]
|
||||
public string? PositionLevelOld { get; set; }
|
||||
[Comment("ข้อมูลหน่วยงานเดิม เลขที่")]
|
||||
public string? PositionNumberOld { get; set; }
|
||||
[Comment("ข้อมูลหน่วยงานเดิม เงินเดือน")]
|
||||
public double? AmountOld { get; set; }
|
||||
[Comment("สถานะลาออก")]
|
||||
public string? Status { get; set; } = "PENDING";
|
||||
public string? Status { get; set; } = "WAITTING";
|
||||
[Comment("สถานะการใช้งาน")]
|
||||
public bool IsActive { get; set; } = true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue