apiร้องเรียน
This commit is contained in:
parent
2cdf724d58
commit
d06e1af217
24 changed files with 34538 additions and 91 deletions
|
|
@ -1,5 +1,7 @@
|
|||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using BMA.EHR.Domain.Models.Base;
|
||||
using BMA.EHR.Domain.Models.Organizations;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace BMA.EHR.Domain.Models.Discipline
|
||||
|
|
@ -12,13 +14,10 @@ namespace BMA.EHR.Domain.Models.Discipline
|
|||
[Required, Comment("ผู้ถูกร้องเรียน (PERSON คือ บุคคล, ORGANIZATION คือ หน่วยงาน, BANGKOK คือ กรุงเทพมหานคร)")]
|
||||
public string RespondentType { get; set; } = string.Empty;
|
||||
|
||||
[Required, Comment("หน่วยงานที่พิจารณา จะเปลี่ยนไปตามผู้ถูกร้องดูรายละเอียดด้านล่าง")]
|
||||
public string ConsideredAgency { get; set; } = string.Empty;
|
||||
|
||||
[Required, Comment("เรื่องที่ร้องเรียน")]
|
||||
[Required, Comment("เรื่องที่ร้องเรียน"), Column(TypeName = "text")]
|
||||
public string Title { get; set; } = string.Empty;
|
||||
|
||||
[Required, Comment("รายละเอียดของเรื่องร้องเรียน")]
|
||||
[Required, Comment("รายละเอียดของเรื่องร้องเรียน"), Column(TypeName = "text")]
|
||||
public string Description { get; set; } = string.Empty;
|
||||
|
||||
[Required, Comment("วันที่รับเรื่อง เป็นวันที่ถือเป็นจุดเริ่มต้นของวินัยนั้น ๆ")]
|
||||
|
|
@ -41,5 +40,16 @@ namespace BMA.EHR.Domain.Models.Discipline
|
|||
|
||||
// [Required, Comment("อ้างอิงรหัสเอกสาร")]
|
||||
// public Document Document { get; set; }
|
||||
|
||||
[Comment("เหตุผลยุติเรื่อง")]
|
||||
public string? RejectReason { get; set; }
|
||||
|
||||
[Comment("กรณีหน่วยงานใส่ id ของหน่วยงาน")]
|
||||
public Guid? Organization { get; set; }
|
||||
|
||||
[Required, Comment("หน่วยงานที่พิจารณา จะเปลี่ยนไปตามผู้ถูกร้องดูรายละเอียดด้านล่าง")]
|
||||
public Guid ConsideredAgency { get; set; }
|
||||
public virtual List<DisciplineComplaint_Profile> DisciplineComplaint_Profiles { get; set; } = new List<DisciplineComplaint_Profile>();
|
||||
public virtual List<DisciplineComplaint_Doc> DisciplineComplaint_Docs { get; set; } = new List<DisciplineComplaint_Doc>();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
16
BMA.EHR.Domain/Models/Discipline/DisciplineComplaint_Doc.cs
Normal file
16
BMA.EHR.Domain/Models/Discipline/DisciplineComplaint_Doc.cs
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using BMA.EHR.Domain.Models.Base;
|
||||
using BMA.EHR.Domain.Models.Organizations;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace BMA.EHR.Domain.Models.Discipline
|
||||
{
|
||||
public class DisciplineComplaint_Doc : EntityBase
|
||||
{
|
||||
[Required, Comment("อ้างอิงรหัสเอกสาร")]
|
||||
public Document Document { get; set; }
|
||||
[Required, Comment("อ้างอิงเรื่องร้องเรียน")]
|
||||
public DisciplineComplaint DisciplineComplaint { get; set; }
|
||||
}
|
||||
}
|
||||
337
BMA.EHR.Domain/Models/Discipline/DisciplineComplaint_Profile.cs
Normal file
337
BMA.EHR.Domain/Models/Discipline/DisciplineComplaint_Profile.cs
Normal file
|
|
@ -0,0 +1,337 @@
|
|||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using BMA.EHR.Domain.Models.Base;
|
||||
using BMA.EHR.Domain.Models.MetaData;
|
||||
using BMA.EHR.Domain.Models.Organizations;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace BMA.EHR.Domain.Models.Discipline
|
||||
{
|
||||
public class DisciplineComplaint_Profile : EntityBase
|
||||
{
|
||||
[Comment("id อ้างอิง profile")]
|
||||
public Guid? PersonId { get; set; }
|
||||
[MaxLength(13), Comment("รหัสบัตรประชาชน")]
|
||||
public string? CitizenId { get; set; }
|
||||
// [MaxLength(50)]
|
||||
// public string? ProfileType { get; set; }
|
||||
// [MaxLength(20), Comment("ประเภทการจ้าง")]
|
||||
// public string? EmployeeType { get; set; }
|
||||
// [MaxLength(20), Comment("ประเภทลูกจ้าง")]
|
||||
// public string? EmployeeClass { get; set; }
|
||||
[Comment("คำนำหน้า")]
|
||||
public string? Prefix { get; set; }
|
||||
[Required, MaxLength(100), Comment("ชื่อ")]
|
||||
public string? FirstName { get; set; }
|
||||
[Required, MaxLength(100), Comment("นามสกุล")]
|
||||
public string? LastName { get; set; }
|
||||
// [Comment("Id คำนำหน้า(เดิม)")]
|
||||
// public Guid? PrefixOldId { get; set; }
|
||||
// [Required, MaxLength(100), Comment("ชื่อ(เดิม)")]
|
||||
// public string? FirstNameOld { get; set; }
|
||||
// [Required, MaxLength(100), Comment("นามสกุล(เดิม)")]
|
||||
// public string? LastNameOld { get; set; }
|
||||
// [MaxLength(100)]
|
||||
// public string AvatarRef { 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 Guid? ReligionId { get; set; }
|
||||
// [Required, Comment("วันเกิด")]
|
||||
// public DateTime BirthDate { get; set; }
|
||||
// [Comment("Id กลุ่มเลือด")]
|
||||
// public Guid? BloodGroupId { get; set; }
|
||||
// [Comment("Id สถานะภาพ")]
|
||||
// public Guid? RelationshipId { get; set; }
|
||||
// [MaxLength(50), Comment("เบอร์โทร")]
|
||||
// public string? TelephoneNumber { get; set; }
|
||||
// [Comment("คู่สมรส")]
|
||||
// public bool? Couple { get; set; }
|
||||
// [Comment("Id คำนำหน้าคู่สมรส")]
|
||||
// public Guid? CouplePrefixId { get; set; }
|
||||
// [MaxLength(100), Comment("ชื่อคู่สมรส")]
|
||||
// public string? CoupleFirstName { get; set; }
|
||||
// [MaxLength(100), Comment("นามสกุลคู่สมรส")]
|
||||
// public string? CoupleLastName { get; set; }
|
||||
// [MaxLength(100), Comment("นามสกุลคู่สมรส(เดิม)")]
|
||||
// public string? CoupleLastNameOld { get; set; }
|
||||
// [MaxLength(100), Comment("อาชีพคู่สมรส")]
|
||||
// public string? CoupleCareer { get; set; }
|
||||
// [MaxLength(20), Comment("เลขที่บัตรประชาชนคู่สมรส")]
|
||||
// public string? CoupleCitizenId { get; set; }
|
||||
|
||||
// [Comment("มีชีวิตคู่สมรส")]
|
||||
// public bool CoupleLive { get; set; } = true;
|
||||
// [Comment("Id คำนำหน้าบิดา")]
|
||||
// public Guid? FatherPrefixId { get; set; }
|
||||
// [MaxLength(100), Comment("ชื่อบิดา")]
|
||||
// public string? FatherFirstName { get; set; }
|
||||
|
||||
// [MaxLength(100), Comment("นามสกุลบิดา")]
|
||||
// public string? FatherLastName { get; set; }
|
||||
|
||||
// [MaxLength(100), Comment("อาชีพบิดา")]
|
||||
// public string? FatherCareer { get; set; }
|
||||
// [MaxLength(20), Comment("เลขที่บัตรประชาชนบิดา")]
|
||||
// public string? FatherCitizenId { get; set; }
|
||||
|
||||
// [Comment("มีชีวิตบิดา")]
|
||||
// public bool FatherLive { get; set; } = true;
|
||||
// [Comment("Id คำนำหน้ามารดา")]
|
||||
// public Guid? MotherPrefixId { get; set; }
|
||||
|
||||
// [MaxLength(100), Comment("ชื่อมารดา")]
|
||||
// public string? MotherFirstName { get; set; }
|
||||
|
||||
// [MaxLength(100), Comment("นามสกุลมารดา")]
|
||||
// public string? MotherLastName { get; set; }
|
||||
|
||||
// [MaxLength(100), Comment("อาชีพมารดา")]
|
||||
// public string? MotherCareer { get; set; }
|
||||
// [MaxLength(20), Comment("เลขที่บัตรประชาชนมารดา")]
|
||||
// public string? MotherCitizenId { get; set; }
|
||||
|
||||
// [Comment("มีชีวิตมารดา")]
|
||||
// public bool MotherLive { get; set; } = true;
|
||||
// [MaxLength(200), Comment("ที่อยู่ปัจจุบัน")]
|
||||
// public string? CurrentAddress { get; set; }
|
||||
// [Comment("Id แขวงปัจจุบัน")]
|
||||
// public Guid? CurrentSubDistrictId { get; set; }
|
||||
// [Comment("Id เขตปัจจุบัน")]
|
||||
// public Guid? CurrentDistrictId { get; set; }
|
||||
// [Comment("Id จังหวัดปัจจุบัน")]
|
||||
// public Guid? CurrentProvinceId { get; set; }
|
||||
// [MaxLength(5), Comment("รหัสไปรษณีย์ปัจจุบัน")]
|
||||
// public string? CurrentZipCode { get; set; }
|
||||
// [Comment("ที่อยู่ปัจจุบันตรงกับที่อยู่ตามทะเบียนบ้านหรือไม่")]
|
||||
// public bool? RegistrationSame { get; set; } = false;
|
||||
// [MaxLength(200), Comment("Id แขวงตามทะเบียนบ้าน")]
|
||||
// public string? RegistrationAddress { get; set; }
|
||||
// [Comment("แขวงตามทะเบียนบ้าน")]
|
||||
// public Guid? RegistrationSubDistrictId { get; set; }
|
||||
// [Comment("Id เขตตามทะเบียนบ้าน")]
|
||||
// public Guid? RegistrationDistrictId { get; set; }
|
||||
// [Comment("Id จังหวัดตามทะเบียนบ้าน")]
|
||||
// public Guid? RegistrationProvinceId { get; set; }
|
||||
// [MaxLength(5), Comment("รหัสไปรษณีย์ตามทะเบียนบ้าน")]
|
||||
// public string? RegistrationZipCode { get; set; }
|
||||
|
||||
// public DateTime? DateAppoint { get; set; }
|
||||
|
||||
// public DateTime? DateStart { get; set; }
|
||||
|
||||
// public DateTime? DateRetire { get; set; }
|
||||
|
||||
// public string? ReasonSameDate { get; set; }
|
||||
// // public Guid? AffiliationId { get; set; }
|
||||
// // public Guid? PositionId { get; set; }
|
||||
// // public Guid? WorkId { get; set; }
|
||||
// // public Guid? TypeId { get; set; }
|
||||
// // public Guid? LevelId { get; set; }
|
||||
// // public Guid? NumberId { get; set; }
|
||||
// // public Guid? BusinessId { get; set; }
|
||||
// [Comment("Id สังกัด")]
|
||||
// public Guid? OcId { get; set; }
|
||||
[Comment("สังกัด")]
|
||||
public string? Organization { get; set; }
|
||||
// public Guid? OrganizationShortNameId { get; set; }
|
||||
// public string? OrganizationShortName { get; set; }
|
||||
// public string? GovernmentCode { get; set; }
|
||||
// public Guid? OrganizationOrganizationId { get; set; }
|
||||
// public string? OrganizationOrganization { get; set; }
|
||||
[Comment("ตำแหน่ง")]
|
||||
public string? Position { get; set; }
|
||||
// [Comment("ตำแหน่ง")]
|
||||
// public string? Position { get; set; }
|
||||
[Comment("เลขที่ตำแหน่ง")]
|
||||
public string? PosNo { get; set; }
|
||||
// [Comment("เลขที่ตำแหน่ง")]
|
||||
// public string? PosNo { get; set; }
|
||||
// [Comment("เลขที่ตำแหน่งลูกจ้าง")]
|
||||
// public string? PosNoEmployee { get; set; }
|
||||
// [Comment("Id สายงาน")]
|
||||
// public Guid? PositionLineId { get; set; }
|
||||
// [Comment("สายงาน")]
|
||||
// public string? PositionLine { get; set; }
|
||||
// [Comment("Id ด้าน/สาขา")]
|
||||
// public Guid? PositionPathSideId { get; set; }
|
||||
// [Comment("ด้าน/สาขา")]
|
||||
// public string? PositionPathSide { get; set; }
|
||||
// // [Comment("Id ประเภทตำแหน่ง")]
|
||||
// // public Guid? PositionTypeId { get; set; }
|
||||
// [Comment("ประเภทตำแหน่ง")]
|
||||
// public PositionType? PositionType { get; set; }
|
||||
// // [Comment(" Id ระดับ")]
|
||||
// // public Guid? PositionLevelId { get; set; }
|
||||
[Comment("ระดับ")]
|
||||
public string? PositionLevel { get; set; }
|
||||
// [Comment("Id ตำแหน่งทางการบริหาร")]
|
||||
// public Guid? PositionExecutiveId { get; set; }
|
||||
// [Comment("ตำแหน่งทางการบริหาร")]
|
||||
// public string? PositionExecutive { get; set; }
|
||||
// [Comment("Id ด้านทางการบริหาร")]
|
||||
// public Guid? PositionExecutiveSideId { get; set; }
|
||||
// [Comment("ด้านทางการบริหาร")]
|
||||
// public string? PositionExecutiveSide { get; set; }
|
||||
|
||||
// [Comment("Id ตำแหน่ง")]
|
||||
// public PositionEmployeePosition? PositionEmployeePosition { get; set; }
|
||||
// // [Comment("ตำแหน่ง")]
|
||||
// // public string? PositionEmployeePosition { get; set; }
|
||||
// [Comment("Id ด้านของตำแหน่ง")]
|
||||
// public PositionEmployeePositionSide? PositionEmployeePositionSide { get; set; }
|
||||
// // [Comment("ด้านของตำแหน่ง")]
|
||||
// // public string? PositionEmployeePositionSide { get; set; }
|
||||
// [Comment(" Id ระดับชั้นงาน")]
|
||||
// public PositionEmployeeLevel? PositionEmployeeLevel { get; set; }
|
||||
// // [Comment("ระดับชั้นงาน")]
|
||||
// // public string? PositionEmployeeLevel { get; set; }
|
||||
// [Comment("Id กลุ่มงาน")]
|
||||
// public PositionEmployeeGroup? PositionEmployeeGroup { get; set; }
|
||||
// // [Comment("กลุ่มงาน")]
|
||||
// // public string? PositionEmployeeGroup { get; set; }
|
||||
// [Comment("Id สายงาน")]
|
||||
// public PositionEmployeeLine? PositionEmployeeLine { get; set; }
|
||||
// // [Comment("สายงาน")]
|
||||
// // public string? PositionEmployeeLine { get; set; }
|
||||
|
||||
// [MaxLength(100), Comment("สถานภาพทางกาย")]
|
||||
// public string Physical { get; set; }
|
||||
|
||||
// [MaxLength(100)]
|
||||
// public string Ability { get; set; }
|
||||
|
||||
// public bool IsActive { get; set; } = true;
|
||||
|
||||
// public bool IsLeave { get; set; } = false;
|
||||
|
||||
// public DateTime? LeaveDate { get; set; }
|
||||
|
||||
// [MaxLength(1000)]
|
||||
// public string? LeaveReason { get; set; }
|
||||
// public string? LeaveDetail { get; set; }
|
||||
// public string? LeaveNumberOrder { get; set; }
|
||||
// public DateTime? LeaveDateOrder { get; set; }
|
||||
|
||||
// public DateTime? CreatedDate { get; set; }
|
||||
|
||||
// public DateTime? ModifiedDate { get; set; }
|
||||
|
||||
// [MaxLength(250)]
|
||||
// public string CreatedUser { get; set; } = string.Empty;
|
||||
|
||||
// [MaxLength(5)]
|
||||
// public string EntryStatus { get; set; } = "st1"; // สถานะการตรวจสอบ st1 = create; st2 = pending
|
||||
|
||||
// public bool IsTransfer { get; set; } = false;
|
||||
|
||||
// public DateTime? TransferDate { get; set; }
|
||||
|
||||
// public int GovAgeAbsent { get; set; } = 0;
|
||||
|
||||
// public int GovAgePlus { get; set; } = 0;
|
||||
|
||||
// // public OrganizationEntity? Organization { get; set; }
|
||||
|
||||
// // public PositionNumberEntity PositionNumber { get; set; }
|
||||
|
||||
// // public Position Position { get; set; }
|
||||
|
||||
// // public PositionExecutive PositionExecutive { get; set; }
|
||||
|
||||
// public bool IsVerified { get; set; } = false;
|
||||
|
||||
// [MaxLength(100)]
|
||||
// public string VerifiedUser { get; set; } = string.Empty;
|
||||
|
||||
// public DateTime? VerifiedDate { get; set; }
|
||||
|
||||
// public Document? Avatar { get; set; }
|
||||
|
||||
// public bool IsProbation { get; set; } = true;
|
||||
|
||||
// // public PositionType PositionType { get; set; } // ประเภทตำแหน่ง
|
||||
|
||||
// // public PositionLevel PositionLevel { get; set; } // ระดับ
|
||||
|
||||
// // public OrganizationPositionEntity? OrganizationPosition { get; set; }
|
||||
// public LimitLeave? LimitLeave { get; set; }
|
||||
// public Guid? KeycloakId { get; set; }
|
||||
// [Comment("สังกัด")]
|
||||
// public string? EmployeeOc { get; set; }
|
||||
// [Comment("ค่าจ้าง")]
|
||||
// public double? EmployeeWage { get; set; }
|
||||
// [Comment("ประเภทบุคคล")]
|
||||
// public string? EmployeeTypeIndividual { get; set; }
|
||||
// [Comment("เงินเพิ่มการครองชีพชั่วคราว")]
|
||||
// public double? EmployeeMoneyIncrease { get; set; }
|
||||
// [Comment("เงินช่วยเหลือค่าครองชีพชั่วคราว")]
|
||||
// public double? EmployeeMoneyAllowance { get; set; }
|
||||
// [Comment("เงินสมทบประกันสังคม(ลูกจ้าง)")]
|
||||
// public double? EmployeeMoneyEmployee { get; set; }
|
||||
// [Comment("เงินสมทบประกันสังคม(นายจ้าง)")]
|
||||
// public double? EmployeeMoneyEmployer { get; set; }
|
||||
|
||||
// public virtual List<ProfileEducation> Educations { get; set; } = new List<ProfileEducation>();
|
||||
|
||||
// public virtual List<ProfileHonor> Honors { get; set; } = new List<ProfileHonor>();
|
||||
// public virtual List<ProfileAssessment> Assessments { get; set; } = new List<ProfileAssessment>();
|
||||
|
||||
// public virtual List<ProfileDiscipline> Disciplines { get; set; } = new List<ProfileDiscipline>();
|
||||
|
||||
// public virtual List<ProfileCertificate> Certificates { get; set; } = new List<ProfileCertificate>();
|
||||
|
||||
// public virtual List<ProfileTraining> Trainings { get; set; } = new List<ProfileTraining>();
|
||||
|
||||
// public virtual List<ProfileInsignia> Insignias { get; set; } = new List<ProfileInsignia>();
|
||||
|
||||
// public virtual List<ProfileSalary> Salaries { get; set; } = new List<ProfileSalary>();
|
||||
|
||||
// public virtual List<ProfileHistory> ProfileHistory { get; set; } = new List<ProfileHistory>();
|
||||
|
||||
// public virtual List<ProfileCoupleHistory> CoupleHistory { get; set; } = new List<ProfileCoupleHistory>();
|
||||
|
||||
// public virtual List<ProfileFatherHistory> FatherHistory { get; set; } = new List<ProfileFatherHistory>();
|
||||
|
||||
// public virtual List<ProfileMotherHistory> MotherHistory { get; set; } = new List<ProfileMotherHistory>();
|
||||
|
||||
// public virtual List<ProfileFamilyHistory> FamilyHistory { get; set; } = new List<ProfileFamilyHistory>();
|
||||
|
||||
// public virtual List<ProfileGovernmentHistory> GovernmentHistory { get; set; } = new List<ProfileGovernmentHistory>();
|
||||
|
||||
// public virtual List<ProfileLeave> Leaves { get; set; } = new List<ProfileLeave>();
|
||||
|
||||
// public virtual List<ProfileCurrentAddressHistory> CurrentAddressHistory { get; set; } = new List<ProfileCurrentAddressHistory>();
|
||||
|
||||
// public virtual List<ProfileRegistrationAddressHistory> RegistrationAddressHistory { get; set; } = new List<ProfileRegistrationAddressHistory>();
|
||||
|
||||
// public virtual List<ProfileAddressHistory> AddressHistory { get; set; } = new List<ProfileAddressHistory>();
|
||||
|
||||
// public virtual List<ProfileOther> Others { get; set; } = new List<ProfileOther>();
|
||||
|
||||
// public virtual List<ProfileAbility> Abilitys { get; set; } = new List<ProfileAbility>();
|
||||
|
||||
// public virtual List<ProfileDuty> Dutys { get; set; } = new List<ProfileDuty>();
|
||||
|
||||
// public virtual List<ProfileNopaid> Nopaids { get; set; } = new List<ProfileNopaid>();
|
||||
|
||||
// public virtual List<ProfileAvatarHistory> AvatarHistory { get; set; } = new List<ProfileAvatarHistory>();
|
||||
|
||||
// public virtual List<ProfilePaper> Papers { get; set; } = new List<ProfilePaper>();
|
||||
|
||||
// public virtual List<ProfileChildren> Childrens { get; set; } = new List<ProfileChildren>();
|
||||
// public virtual List<ProfileChangeName> ChangeNames { get; set; } = new List<ProfileChangeName>();
|
||||
// public virtual List<ProfileEmployment> Employments { get; set; } = new List<ProfileEmployment>();
|
||||
[Comment("เงินเดือน")]
|
||||
public double? Salary { get; set; }
|
||||
|
||||
// [Comment("Id ระดับการศึกษา")]
|
||||
// public EducationLevel? EducationLevel { get; set; }
|
||||
[Required, Comment("Id เรื่องร้องเรียน")]
|
||||
public DisciplineComplaint DisciplineComplaint { get; set; }
|
||||
}
|
||||
}
|
||||
|
|
@ -7,8 +7,8 @@ namespace BMA.EHR.Domain.Models.Discipline
|
|||
{
|
||||
public class DisciplineDirector : EntityBase
|
||||
{
|
||||
// [Comment("คำนำหน้าชื่อ")]
|
||||
// public Guid Prefix { get; set; }
|
||||
[Required, Comment("คำนำหน้าชื่อ")]
|
||||
public string Prefix { get; set; } = string.Empty;
|
||||
|
||||
[Required, Comment("ชื่อ")]
|
||||
public string FirstName { get; set; } = string.Empty;
|
||||
|
|
|
|||
29
BMA.EHR.Domain/Models/Discipline/Document.cs
Normal file
29
BMA.EHR.Domain/Models/Discipline/Document.cs
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace BMA.EHR.Domain.Models.Discipline
|
||||
{
|
||||
public class Document
|
||||
{
|
||||
[Key]
|
||||
public Guid Id { get; set; }
|
||||
|
||||
[Required, MaxLength(255)]
|
||||
public string FileName { get; set; } = string.Empty;
|
||||
|
||||
[Required]
|
||||
public int FileSize { get; set; } = 0;
|
||||
|
||||
[Required, MaxLength(128)]
|
||||
public string FileType { get; set; } = string.Empty;
|
||||
|
||||
[Column(TypeName = "text")]
|
||||
public string Detail { get; set; } = string.Empty;
|
||||
|
||||
[Required]
|
||||
public Guid ObjectRefId { get; set; }
|
||||
|
||||
[Required]
|
||||
public DateTime CreatedDate { get; set; } = DateTime.Now;
|
||||
}
|
||||
}
|
||||
330
BMA.EHR.Domain/Models/Discipline/Profile.cs
Normal file
330
BMA.EHR.Domain/Models/Discipline/Profile.cs
Normal file
|
|
@ -0,0 +1,330 @@
|
|||
using System.ComponentModel.DataAnnotations;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using BMA.EHR.Domain.Models.Base;
|
||||
using BMA.EHR.Domain.Models.Documents;
|
||||
using BMA.EHR.Domain.Models.MetaData;
|
||||
using BMA.EHR.Domain.Models.Organizations;
|
||||
|
||||
namespace BMA.EHR.Domain.Models.Discipline
|
||||
{
|
||||
public class Profile : EntityBase
|
||||
{
|
||||
[MaxLength(13), Comment("รหัสบัตรประชาชน")]
|
||||
public string? CitizenId { get; set; }
|
||||
[MaxLength(50)]
|
||||
public string? ProfileType { get; set; }
|
||||
// [MaxLength(20), Comment("ประเภทการจ้าง")]
|
||||
// public string? EmployeeType { get; set; }
|
||||
// [MaxLength(20), Comment("ประเภทลูกจ้าง")]
|
||||
// public string? EmployeeClass { get; set; }
|
||||
[Comment("Id คำนำหน้า")]
|
||||
public Prefix? Prefix { get; set; }
|
||||
[Required, MaxLength(100), Comment("ชื่อ")]
|
||||
public string? FirstName { get; set; }
|
||||
[Required, MaxLength(100), Comment("นามสกุล")]
|
||||
public string? LastName { get; set; }
|
||||
// [Comment("Id คำนำหน้า(เดิม)")]
|
||||
// public Guid? PrefixOldId { get; set; }
|
||||
// [Required, MaxLength(100), Comment("ชื่อ(เดิม)")]
|
||||
// public string? FirstNameOld { get; set; }
|
||||
// [Required, MaxLength(100), Comment("นามสกุล(เดิม)")]
|
||||
// public string? LastNameOld { get; set; }
|
||||
// [MaxLength(100)]
|
||||
// public string AvatarRef { 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 Guid? ReligionId { get; set; }
|
||||
// [Required, Comment("วันเกิด")]
|
||||
// public DateTime BirthDate { get; set; }
|
||||
// [Comment("Id กลุ่มเลือด")]
|
||||
// public Guid? BloodGroupId { get; set; }
|
||||
// [Comment("Id สถานะภาพ")]
|
||||
// public Guid? RelationshipId { get; set; }
|
||||
// [MaxLength(50), Comment("เบอร์โทร")]
|
||||
// public string? TelephoneNumber { get; set; }
|
||||
// [Comment("คู่สมรส")]
|
||||
// public bool? Couple { get; set; }
|
||||
// [Comment("Id คำนำหน้าคู่สมรส")]
|
||||
// public Guid? CouplePrefixId { get; set; }
|
||||
// [MaxLength(100), Comment("ชื่อคู่สมรส")]
|
||||
// public string? CoupleFirstName { get; set; }
|
||||
// [MaxLength(100), Comment("นามสกุลคู่สมรส")]
|
||||
// public string? CoupleLastName { get; set; }
|
||||
// [MaxLength(100), Comment("นามสกุลคู่สมรส(เดิม)")]
|
||||
// public string? CoupleLastNameOld { get; set; }
|
||||
// [MaxLength(100), Comment("อาชีพคู่สมรส")]
|
||||
// public string? CoupleCareer { get; set; }
|
||||
// [MaxLength(20), Comment("เลขที่บัตรประชาชนคู่สมรส")]
|
||||
// public string? CoupleCitizenId { get; set; }
|
||||
|
||||
// [Comment("มีชีวิตคู่สมรส")]
|
||||
// public bool CoupleLive { get; set; } = true;
|
||||
// [Comment("Id คำนำหน้าบิดา")]
|
||||
// public Guid? FatherPrefixId { get; set; }
|
||||
// [MaxLength(100), Comment("ชื่อบิดา")]
|
||||
// public string? FatherFirstName { get; set; }
|
||||
|
||||
// [MaxLength(100), Comment("นามสกุลบิดา")]
|
||||
// public string? FatherLastName { get; set; }
|
||||
|
||||
// [MaxLength(100), Comment("อาชีพบิดา")]
|
||||
// public string? FatherCareer { get; set; }
|
||||
// [MaxLength(20), Comment("เลขที่บัตรประชาชนบิดา")]
|
||||
// public string? FatherCitizenId { get; set; }
|
||||
|
||||
// [Comment("มีชีวิตบิดา")]
|
||||
// public bool FatherLive { get; set; } = true;
|
||||
// [Comment("Id คำนำหน้ามารดา")]
|
||||
// public Guid? MotherPrefixId { get; set; }
|
||||
|
||||
// [MaxLength(100), Comment("ชื่อมารดา")]
|
||||
// public string? MotherFirstName { get; set; }
|
||||
|
||||
// [MaxLength(100), Comment("นามสกุลมารดา")]
|
||||
// public string? MotherLastName { get; set; }
|
||||
|
||||
// [MaxLength(100), Comment("อาชีพมารดา")]
|
||||
// public string? MotherCareer { get; set; }
|
||||
// [MaxLength(20), Comment("เลขที่บัตรประชาชนมารดา")]
|
||||
// public string? MotherCitizenId { get; set; }
|
||||
|
||||
// [Comment("มีชีวิตมารดา")]
|
||||
// public bool MotherLive { get; set; } = true;
|
||||
// [MaxLength(200), Comment("ที่อยู่ปัจจุบัน")]
|
||||
// public string? CurrentAddress { get; set; }
|
||||
// [Comment("Id แขวงปัจจุบัน")]
|
||||
// public Guid? CurrentSubDistrictId { get; set; }
|
||||
// [Comment("Id เขตปัจจุบัน")]
|
||||
// public Guid? CurrentDistrictId { get; set; }
|
||||
// [Comment("Id จังหวัดปัจจุบัน")]
|
||||
// public Guid? CurrentProvinceId { get; set; }
|
||||
// [MaxLength(5), Comment("รหัสไปรษณีย์ปัจจุบัน")]
|
||||
// public string? CurrentZipCode { get; set; }
|
||||
// [Comment("ที่อยู่ปัจจุบันตรงกับที่อยู่ตามทะเบียนบ้านหรือไม่")]
|
||||
// public bool? RegistrationSame { get; set; } = false;
|
||||
// [MaxLength(200), Comment("Id แขวงตามทะเบียนบ้าน")]
|
||||
// public string? RegistrationAddress { get; set; }
|
||||
// [Comment("แขวงตามทะเบียนบ้าน")]
|
||||
// public Guid? RegistrationSubDistrictId { get; set; }
|
||||
// [Comment("Id เขตตามทะเบียนบ้าน")]
|
||||
// public Guid? RegistrationDistrictId { get; set; }
|
||||
// [Comment("Id จังหวัดตามทะเบียนบ้าน")]
|
||||
// public Guid? RegistrationProvinceId { get; set; }
|
||||
// [MaxLength(5), Comment("รหัสไปรษณีย์ตามทะเบียนบ้าน")]
|
||||
// public string? RegistrationZipCode { get; set; }
|
||||
|
||||
// public DateTime? DateAppoint { get; set; }
|
||||
|
||||
// public DateTime? DateStart { get; set; }
|
||||
|
||||
// public DateTime? DateRetire { get; set; }
|
||||
|
||||
// public string? ReasonSameDate { get; set; }
|
||||
// // public Guid? AffiliationId { get; set; }
|
||||
// // public Guid? PositionId { get; set; }
|
||||
// // public Guid? WorkId { get; set; }
|
||||
// // public Guid? TypeId { get; set; }
|
||||
// // public Guid? LevelId { get; set; }
|
||||
// // public Guid? NumberId { get; set; }
|
||||
// // public Guid? BusinessId { get; set; }
|
||||
// [Comment("Id สังกัด")]
|
||||
// public Guid? OcId { get; set; }
|
||||
[Comment("สังกัด")]
|
||||
public OrganizationEntity? Oc { get; set; }
|
||||
// public Guid? OrganizationShortNameId { get; set; }
|
||||
// public string? OrganizationShortName { get; set; }
|
||||
// public string? GovernmentCode { get; set; }
|
||||
// public Guid? OrganizationOrganizationId { get; set; }
|
||||
// public string? OrganizationOrganization { get; set; }
|
||||
[Comment("Id ตำแหน่ง")]
|
||||
public PositionPath? Position { get; set; }
|
||||
// [Comment("ตำแหน่ง")]
|
||||
// public string? Position { get; set; }
|
||||
[Comment("Id เลขที่ตำแหน่ง")]
|
||||
public PositionNumberEntity? PosNo { get; set; }
|
||||
// [Comment("เลขที่ตำแหน่ง")]
|
||||
// public string? PosNo { get; set; }
|
||||
[Comment("เลขที่ตำแหน่งลูกจ้าง")]
|
||||
public string? PosNoEmployee { get; set; }
|
||||
// [Comment("Id สายงาน")]
|
||||
// public Guid? PositionLineId { get; set; }
|
||||
// [Comment("สายงาน")]
|
||||
// public string? PositionLine { get; set; }
|
||||
// [Comment("Id ด้าน/สาขา")]
|
||||
// public Guid? PositionPathSideId { get; set; }
|
||||
// [Comment("ด้าน/สาขา")]
|
||||
// public string? PositionPathSide { get; set; }
|
||||
// // [Comment("Id ประเภทตำแหน่ง")]
|
||||
// // public Guid? PositionTypeId { get; set; }
|
||||
// [Comment("ประเภทตำแหน่ง")]
|
||||
// public PositionType? PositionType { get; set; }
|
||||
// // [Comment(" Id ระดับ")]
|
||||
// // public Guid? PositionLevelId { get; set; }
|
||||
[Comment("ระดับ")]
|
||||
public PositionLevel? PositionLevel { get; set; }
|
||||
// [Comment("Id ตำแหน่งทางการบริหาร")]
|
||||
// public Guid? PositionExecutiveId { get; set; }
|
||||
// [Comment("ตำแหน่งทางการบริหาร")]
|
||||
// public string? PositionExecutive { get; set; }
|
||||
// [Comment("Id ด้านทางการบริหาร")]
|
||||
// public Guid? PositionExecutiveSideId { get; set; }
|
||||
// [Comment("ด้านทางการบริหาร")]
|
||||
// public string? PositionExecutiveSide { get; set; }
|
||||
|
||||
[Comment("Id ตำแหน่ง")]
|
||||
public PositionEmployeePosition? PositionEmployeePosition { get; set; }
|
||||
// // [Comment("ตำแหน่ง")]
|
||||
// // public string? PositionEmployeePosition { get; set; }
|
||||
// [Comment("Id ด้านของตำแหน่ง")]
|
||||
// public PositionEmployeePositionSide? PositionEmployeePositionSide { get; set; }
|
||||
// // [Comment("ด้านของตำแหน่ง")]
|
||||
// // public string? PositionEmployeePositionSide { get; set; }
|
||||
[Comment(" Id ระดับชั้นงาน")]
|
||||
public PositionEmployeeLevel? PositionEmployeeLevel { get; set; }
|
||||
// // [Comment("ระดับชั้นงาน")]
|
||||
// // public string? PositionEmployeeLevel { get; set; }
|
||||
// [Comment("Id กลุ่มงาน")]
|
||||
// public PositionEmployeeGroup? PositionEmployeeGroup { get; set; }
|
||||
// // [Comment("กลุ่มงาน")]
|
||||
// // public string? PositionEmployeeGroup { get; set; }
|
||||
// [Comment("Id สายงาน")]
|
||||
// public PositionEmployeeLine? PositionEmployeeLine { get; set; }
|
||||
// // [Comment("สายงาน")]
|
||||
// // public string? PositionEmployeeLine { get; set; }
|
||||
|
||||
// [MaxLength(100), Comment("สถานภาพทางกาย")]
|
||||
// public string Physical { get; set; }
|
||||
|
||||
// [MaxLength(100)]
|
||||
// public string Ability { get; set; }
|
||||
|
||||
// public bool IsActive { get; set; } = true;
|
||||
|
||||
// public bool IsLeave { get; set; } = false;
|
||||
|
||||
// public DateTime? LeaveDate { get; set; }
|
||||
|
||||
// [MaxLength(1000)]
|
||||
// public string? LeaveReason { get; set; }
|
||||
// public string? LeaveDetail { get; set; }
|
||||
// public string? LeaveNumberOrder { get; set; }
|
||||
// public DateTime? LeaveDateOrder { get; set; }
|
||||
|
||||
// public DateTime? CreatedDate { get; set; }
|
||||
|
||||
// public DateTime? ModifiedDate { get; set; }
|
||||
|
||||
// [MaxLength(250)]
|
||||
// public string CreatedUser { get; set; } = string.Empty;
|
||||
|
||||
// [MaxLength(5)]
|
||||
// public string EntryStatus { get; set; } = "st1"; // สถานะการตรวจสอบ st1 = create; st2 = pending
|
||||
|
||||
// public bool IsTransfer { get; set; } = false;
|
||||
|
||||
// public DateTime? TransferDate { get; set; }
|
||||
|
||||
// public int GovAgeAbsent { get; set; } = 0;
|
||||
|
||||
// public int GovAgePlus { get; set; } = 0;
|
||||
|
||||
// // public OrganizationEntity? Organization { get; set; }
|
||||
|
||||
// // public PositionNumberEntity PositionNumber { get; set; }
|
||||
|
||||
// // public Position Position { get; set; }
|
||||
|
||||
// // public PositionExecutive PositionExecutive { get; set; }
|
||||
|
||||
// public bool IsVerified { get; set; } = false;
|
||||
|
||||
// [MaxLength(100)]
|
||||
// public string VerifiedUser { get; set; } = string.Empty;
|
||||
|
||||
// public DateTime? VerifiedDate { get; set; }
|
||||
|
||||
// public Document? Avatar { get; set; }
|
||||
|
||||
// public bool IsProbation { get; set; } = true;
|
||||
|
||||
// // public PositionType PositionType { get; set; } // ประเภทตำแหน่ง
|
||||
|
||||
// // public PositionLevel PositionLevel { get; set; } // ระดับ
|
||||
|
||||
// // public OrganizationPositionEntity? OrganizationPosition { get; set; }
|
||||
// public LimitLeave? LimitLeave { get; set; }
|
||||
// public Guid? KeycloakId { get; set; }
|
||||
// [Comment("สังกัด")]
|
||||
// public string? EmployeeOc { get; set; }
|
||||
// [Comment("ค่าจ้าง")]
|
||||
// public double? EmployeeWage { get; set; }
|
||||
// [Comment("ประเภทบุคคล")]
|
||||
// public string? EmployeeTypeIndividual { get; set; }
|
||||
// [Comment("เงินเพิ่มการครองชีพชั่วคราว")]
|
||||
// public double? EmployeeMoneyIncrease { get; set; }
|
||||
// [Comment("เงินช่วยเหลือค่าครองชีพชั่วคราว")]
|
||||
// public double? EmployeeMoneyAllowance { get; set; }
|
||||
// [Comment("เงินสมทบประกันสังคม(ลูกจ้าง)")]
|
||||
// public double? EmployeeMoneyEmployee { get; set; }
|
||||
// [Comment("เงินสมทบประกันสังคม(นายจ้าง)")]
|
||||
// public double? EmployeeMoneyEmployer { get; set; }
|
||||
|
||||
// public virtual List<ProfileEducation> Educations { get; set; } = new List<ProfileEducation>();
|
||||
|
||||
// public virtual List<ProfileHonor> Honors { get; set; } = new List<ProfileHonor>();
|
||||
// public virtual List<ProfileAssessment> Assessments { get; set; } = new List<ProfileAssessment>();
|
||||
|
||||
// public virtual List<ProfileDiscipline> Disciplines { get; set; } = new List<ProfileDiscipline>();
|
||||
|
||||
// public virtual List<ProfileCertificate> Certificates { get; set; } = new List<ProfileCertificate>();
|
||||
|
||||
// public virtual List<ProfileTraining> Trainings { get; set; } = new List<ProfileTraining>();
|
||||
|
||||
// public virtual List<ProfileInsignia> Insignias { get; set; } = new List<ProfileInsignia>();
|
||||
|
||||
// public virtual List<ProfileSalary> Salaries { get; set; } = new List<ProfileSalary>();
|
||||
|
||||
// public virtual List<ProfileHistory> ProfileHistory { get; set; } = new List<ProfileHistory>();
|
||||
|
||||
// public virtual List<ProfileCoupleHistory> CoupleHistory { get; set; } = new List<ProfileCoupleHistory>();
|
||||
|
||||
// public virtual List<ProfileFatherHistory> FatherHistory { get; set; } = new List<ProfileFatherHistory>();
|
||||
|
||||
// public virtual List<ProfileMotherHistory> MotherHistory { get; set; } = new List<ProfileMotherHistory>();
|
||||
|
||||
// public virtual List<ProfileFamilyHistory> FamilyHistory { get; set; } = new List<ProfileFamilyHistory>();
|
||||
|
||||
// public virtual List<ProfileGovernmentHistory> GovernmentHistory { get; set; } = new List<ProfileGovernmentHistory>();
|
||||
|
||||
// public virtual List<ProfileLeave> Leaves { get; set; } = new List<ProfileLeave>();
|
||||
|
||||
// public virtual List<ProfileCurrentAddressHistory> CurrentAddressHistory { get; set; } = new List<ProfileCurrentAddressHistory>();
|
||||
|
||||
// public virtual List<ProfileRegistrationAddressHistory> RegistrationAddressHistory { get; set; } = new List<ProfileRegistrationAddressHistory>();
|
||||
|
||||
// public virtual List<ProfileAddressHistory> AddressHistory { get; set; } = new List<ProfileAddressHistory>();
|
||||
|
||||
// public virtual List<ProfileOther> Others { get; set; } = new List<ProfileOther>();
|
||||
|
||||
// public virtual List<ProfileAbility> Abilitys { get; set; } = new List<ProfileAbility>();
|
||||
|
||||
// public virtual List<ProfileDuty> Dutys { get; set; } = new List<ProfileDuty>();
|
||||
|
||||
// public virtual List<ProfileNopaid> Nopaids { get; set; } = new List<ProfileNopaid>();
|
||||
|
||||
// public virtual List<ProfileAvatarHistory> AvatarHistory { get; set; } = new List<ProfileAvatarHistory>();
|
||||
|
||||
// public virtual List<ProfilePaper> Papers { get; set; } = new List<ProfilePaper>();
|
||||
|
||||
// public virtual List<ProfileChildren> Childrens { get; set; } = new List<ProfileChildren>();
|
||||
// public virtual List<ProfileChangeName> ChangeNames { get; set; } = new List<ProfileChangeName>();
|
||||
// public virtual List<ProfileEmployment> Employments { get; set; } = new List<ProfileEmployment>();
|
||||
[Comment("เงินเดือน")]
|
||||
public double? Salary { get; set; }
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue