เพิ่ม link สำนักตาม keycloak
This commit is contained in:
parent
0b5c7038a6
commit
86a6ab9514
10 changed files with 712 additions and 289 deletions
|
|
@ -28,5 +28,8 @@ namespace BMA.EHR.Recurit.Exam.Service.Models
|
|||
|
||||
[Column(Order = 105), Comment("ชื่อ User ที่แก้ไขข้อมูลล่าสุด"), MaxLength(200)]
|
||||
public string LastUpdateFullName { get; set; } = string.Empty;
|
||||
|
||||
[Column(Order = 106), Comment("สถานะการใช้งาน")]
|
||||
public bool IsActive { get; set; } = true;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
73
Models/HR/OrganizationEntity.cs
Normal file
73
Models/HR/OrganizationEntity.cs
Normal file
|
|
@ -0,0 +1,73 @@
|
|||
using Microsoft.EntityFrameworkCore;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using BMA.EHR.Recurit.Exam.Service.Models;
|
||||
|
||||
namespace BMA.EHR.Profile.Service.Models.HR
|
||||
{
|
||||
public class OrganizationEntity : EntityBase
|
||||
{
|
||||
|
||||
//[ForeignKey("OrganizationOrganizationId")]
|
||||
//public OrganizationOrganization? OrganizationOrganization_OrganizationOrganizationId { get; set; }
|
||||
|
||||
[Column(Order = 2), Comment("OrganizationOrganizationId")]
|
||||
public Guid? OrganizationOrganizationId { get; set; }
|
||||
|
||||
//[ForeignKey("OrganizationShortNameId")]
|
||||
//public OrganizationShortName? OrganizationShortName_OrganizationShortNameId { get; set; }
|
||||
|
||||
[Column(Order = 3), Comment("OrganizationShortNameId")]
|
||||
public Guid? OrganizationShortNameId { get; set; }
|
||||
|
||||
//[ForeignKey("OrganizationTypeId")]
|
||||
//public OrganizationType? OrganizationType_OrganizationTypeId { get; set; }
|
||||
|
||||
[Column(Order = 4), Comment("OrganizationTypeId")]
|
||||
public Guid? OrganizationTypeId { get; set; }
|
||||
|
||||
//[ForeignKey("OrganizationLevelId")]
|
||||
//public OrganizationLevel? OrganizationLevel_OrganizationLevelId { get; set; }
|
||||
|
||||
[Column(Order = 5), Comment("OrganizationLevelId")]
|
||||
public Guid? OrganizationLevelId { get; set; }
|
||||
|
||||
//[ForeignKey("OrganizationTelExternalId")]
|
||||
//public OrganizationTelExternal? OrganizationTelExternal_OrganizationTelExternalId { get; set; }
|
||||
|
||||
[Column(Order = 6), Comment("OrganizationTelExternalId")]
|
||||
public Guid? OrganizationTelExternalId { get; set; }
|
||||
|
||||
//[ForeignKey("OrganizationTelInternalId")]
|
||||
//public OrganizationTelInternal? OrganizationTelInternal_OrganizationTelInternalId { get; set; }
|
||||
|
||||
[Column(Order = 7), Comment("OrganizationTelInternalId")]
|
||||
public Guid? OrganizationTelInternalId { get; set; }
|
||||
|
||||
//[ForeignKey("OrganizationFaxId")]
|
||||
//public OrganizationFax? OrganizationFax_OrganizationFaxId { get; set; }
|
||||
|
||||
[Column(Order = 8), Comment("OrganizationFaxId")]
|
||||
public Guid? OrganizationFaxId { get; set; }
|
||||
|
||||
[ForeignKey("ParentId")]
|
||||
public OrganizationEntity? Organization_ParentId { get; set; }
|
||||
|
||||
[Column(Order = 9), Comment("ParentId")]
|
||||
public Guid? ParentId { get; set; }
|
||||
|
||||
[Column(Order = 10), Comment("OrganizationAgencyId")]
|
||||
public Guid? OrganizationAgencyId { get; set; }
|
||||
|
||||
[Column(Order = 11), Comment("OrganizationGovernmentAgencyId")]
|
||||
public Guid? OrganizationGovernmentAgencyId { get; set; }
|
||||
|
||||
[Column(Order = 12), Comment("OrganizationOrder")]
|
||||
public int? OrganizationOrder { get; set; }
|
||||
|
||||
[Column(Order = 13), Comment("OrganizationUserNote")]
|
||||
public string? OrganizationUserNote { get; set; }
|
||||
|
||||
public List<OrganizationEntity> Organizations { get; } = new();
|
||||
|
||||
}
|
||||
}
|
||||
210
Models/HR/Profile.cs
Normal file
210
Models/HR/Profile.cs
Normal file
|
|
@ -0,0 +1,210 @@
|
|||
using BMA.EHR.Recurit.Exam.Service.Models;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace BMA.EHR.Profile.Service.Models.HR
|
||||
{
|
||||
public class Profile : EntityBase
|
||||
{
|
||||
[Key]
|
||||
public Guid Id { get; set; }
|
||||
|
||||
[MaxLength(13)]
|
||||
public string? CitizenId { get; set; }
|
||||
|
||||
[MaxLength(50)]
|
||||
public string? ProfileType { get; set; }
|
||||
|
||||
[MaxLength(20)]
|
||||
public string? EmployeeType { get; set; }
|
||||
|
||||
[MaxLength(20)]
|
||||
public string? EmployeeClass { get; set; }
|
||||
|
||||
public Guid? PrefixId { get; set; }
|
||||
|
||||
[MaxLength(100)]
|
||||
[Required]
|
||||
public string? FirstName { get; set; }
|
||||
|
||||
[MaxLength(100)]
|
||||
[Required]
|
||||
public string? LastName { get; set; }
|
||||
|
||||
[MaxLength(100)]
|
||||
public string AvatarRef { get; set; }
|
||||
|
||||
public Guid? GenderId { get; set; }
|
||||
|
||||
[MaxLength(100)]
|
||||
public string? Nationality { get; set; }
|
||||
|
||||
[MaxLength(100)]
|
||||
public string? Race { get; set; }
|
||||
|
||||
public Guid? ReligionId { get; set; }
|
||||
|
||||
[Required]
|
||||
public DateTime BirthDate { get; set; }
|
||||
|
||||
public Guid? BloodGroupId { get; set; }
|
||||
|
||||
public Guid? RelationshipId { get; set; }
|
||||
|
||||
[MaxLength(50)]
|
||||
public string? TelephoneNumber { get; set; }
|
||||
|
||||
public bool? Couple { get; set; }
|
||||
|
||||
public Guid? CouplePrefixId { get; set; }
|
||||
|
||||
[MaxLength(100)]
|
||||
public string? CoupleFirstName { get; set; }
|
||||
|
||||
[MaxLength(100)]
|
||||
public string? CoupleLastName { get; set; }
|
||||
|
||||
[MaxLength(100)]
|
||||
public string? CoupleCareer { get; set; }
|
||||
|
||||
public Guid? FatherPrefixId { get; set; }
|
||||
|
||||
[MaxLength(100)]
|
||||
public string? FatherFirstName { get; set; }
|
||||
|
||||
[MaxLength(100)]
|
||||
public string? FatherLastName { get; set; }
|
||||
|
||||
[MaxLength(100)]
|
||||
public string? FatherCareer { get; set; }
|
||||
|
||||
public Guid? MotherPrefixId { get; set; }
|
||||
|
||||
[MaxLength(100)]
|
||||
public string? MotherFirstName { get; set; }
|
||||
|
||||
[MaxLength(100)]
|
||||
public string? MotherLastName { get; set; }
|
||||
|
||||
[MaxLength(100)]
|
||||
public string? MotherCareer { get; set; }
|
||||
|
||||
[MaxLength(200)]
|
||||
public string? CurrentAddress { get; set; }
|
||||
|
||||
public Guid? CurrentSubDistrictId { get; set; }
|
||||
|
||||
public Guid? CurrentDistrictId { get; set; }
|
||||
|
||||
public Guid? CurrentProvinceId { get; set; }
|
||||
|
||||
[MaxLength(5)]
|
||||
public string? CurrentZipCode { get; set; }
|
||||
|
||||
public bool? RegistrationSame { get; set; } = false;
|
||||
|
||||
[MaxLength(200)]
|
||||
public string? RegistrationAddress { get; set; }
|
||||
|
||||
public Guid? RegistrationSubDistrictId { get; set; }
|
||||
|
||||
public Guid? RegistrationDistrictId { get; set; }
|
||||
|
||||
public Guid? RegistrationProvinceId { get; set; }
|
||||
|
||||
[MaxLength(5)]
|
||||
public string? RegistrationZipCode { get; set; }
|
||||
|
||||
public DateTime? DateAppoint { get; set; }
|
||||
|
||||
public DateTime? DateStart { get; set; }
|
||||
|
||||
public DateTime? DateRetire { 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; }
|
||||
// public Guid? OcId { get; set; }
|
||||
// public Guid? PositionId { get; set; }
|
||||
// public Guid? PosNoId { get; set; }
|
||||
public Guid? OcId { get; set; }
|
||||
public string? 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; }
|
||||
public Guid? PositionId { get; set; }
|
||||
public string? Position { get; set; }
|
||||
public Guid? PosNoId { get; set; }
|
||||
public string? PosNo { get; set; }
|
||||
public Guid? PositionLineId { get; set; }
|
||||
public string? PositionLine { get; set; }
|
||||
public Guid? PositionPathSideId { get; set; }
|
||||
public string? PositionPathSide { get; set; }
|
||||
public Guid? PositionTypeId { get; set; }
|
||||
public string? PositionType { get; set; }
|
||||
public Guid? PositionLevelId { get; set; }
|
||||
public string? PositionLevel { get; set; }
|
||||
public Guid? PositionExecutiveId { get; set; }
|
||||
public string? PositionExecutive { get; set; }
|
||||
public Guid? PositionExecutiveSideId { get; set; }
|
||||
public string? PositionExecutiveSide { get; set; }
|
||||
|
||||
[MaxLength(100)]
|
||||
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 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 bool IsProbation { get; set; } = true;
|
||||
|
||||
}
|
||||
}
|
||||
10
Models/HR/ProfileOrganization.cs
Normal file
10
Models/HR/ProfileOrganization.cs
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
using BMA.EHR.Recurit.Exam.Service.Models;
|
||||
|
||||
namespace BMA.EHR.Profile.Service.Models.HR
|
||||
{
|
||||
public class ProfileOrganization : EntityBase
|
||||
{
|
||||
public Guid? OrganizationId { get; set; }
|
||||
public Guid? UserId { get; set; }
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue