diff --git a/Models/Placement/PlacementProfile.cs b/Models/Placement/PlacementProfile.cs index 47a6b1c..e712d91 100644 --- a/Models/Placement/PlacementProfile.cs +++ b/Models/Placement/PlacementProfile.cs @@ -248,6 +248,66 @@ namespace BMA.EHR.Domain.Models.Placement public string? RemarkHorizontal { get; set; } [Comment("profileId")] public string? profileId { get; set; } + + + [Comment("ข้อมูลเก่า")] + public bool? IsOld { get; set; } + [Comment("เงินเดือน")] + public double? AmountOld { get; set; } + [Comment("ระดับโครงสร้าง")] + public string? nodeOld { get; set; } + [Comment("id โครงสร้าง")] + public string? nodeIdOld { get; set; } + [Comment("id อัตรากำลัง")] + public string? posmasterIdOld { get; set; } + [Comment("ชื่อหน่วยงาน root")] + public string? rootOld { get; set; } + [Comment("id หน่วยงาน root")] + public string? rootIdOld { get; set; } + [Comment("ชื่อย่อหน่วยงาน root")] + public string? rootShortNameOld { get; set; } + [Comment("ชื่อหน่วยงาน child1")] + public string? child1Old { get; set; } + [Comment("id หน่วยงาน child1")] + public string? child1IdOld { get; set; } + [Comment("ชื่อย่อหน่วยงาน child1")] + public string? child1ShortNameOld { get; set; } + [Comment("ชื่อหน่วยงาน child2")] + public string? child2Old { get; set; } + [Comment("id หน่วยงาน child2")] + public string? child2IdOld { get; set; } + [Comment("ชื่อย่อหน่วยงาน child2")] + public string? child2ShortNameOld { get; set; } + [Comment("ชื่อหน่วยงาน child3")] + public string? child3Old { get; set; } + [Comment("id หน่วยงาน child3")] + public string? child3IdOld { get; set; } + [Comment("ชื่อย่อหน่วยงาน child3")] + public string? child3ShortNameOld { get; set; } + [Comment("ชื่อหน่วยงาน child4")] + public string? child4Old { get; set; } + [Comment("id หน่วยงาน child4")] + public string? child4IdOld { get; set; } + [Comment("ชื่อย่อหน่วยงาน child4")] + public string? child4ShortNameOld { get; set; } + [Comment("id revision")] + public string? orgRevisionIdOld { get; set; } + [Comment("id ตำแหน่ง")] + public string? positionIdOld { get; set; } + [Comment("เลขที่ตำแหน่ง")] + public int? posMasterNoOld { get; set; } + [Comment("ชื่อตำแหน่งในสายงาน")] + public string? positionNameOld { get; set; } + [Comment("สายงาน")] + public string? positionFieldOld { get; set; } + [Comment("id ประเภทตำแหน่ง")] + public string? posTypeIdOld { get; set; } + [Comment("ชื่อประเภทตำแหน่ง")] + public string? posTypeNameOld { get; set; } + [Comment("id ระดับตำแหน่ง")] + public string? posLevelIdOld { get; set; } + [Comment("ชื่อระดับตำแหน่ง")] + public string? posLevelNameOld { get; set; } public virtual List PlacementCertificates { get; set; } = new List(); public virtual List PlacementEducations { get; set; } = new List(); } diff --git a/Services/RecruitService.cs b/Services/RecruitService.cs index f985b39..46b46dc 100644 --- a/Services/RecruitService.cs +++ b/Services/RecruitService.cs @@ -337,6 +337,35 @@ namespace BMA.EHR.Recruit.Service.Services LastUpdateFullName = FullName ?? "", IsOfficer = IsOfficer, profileId = org == null || org.result == null ? null : org.result.profileId, + IsOld = org == null || org.result == null ? false : true, + AmountOld = org == null || org.result == null ? null : org.result.AmountOld, + nodeOld = org == null || org.result == null ? null : org.result.node, + nodeIdOld = org == null || org.result == null ? null : org.result.nodeId, + posmasterIdOld = org == null || org.result == null ? null : org.result.posmasterId, + rootOld = org == null || org.result == null ? null : org.result.root, + rootIdOld = org == null || org.result == null ? null : org.result.rootId, + rootShortNameOld = org == null || org.result == null ? null : org.result.rootShortName, + child1Old = org == null || org.result == null ? null : org.result.child1, + child1IdOld = org == null || org.result == null ? null : org.result.child1Id, + child1ShortNameOld = org == null || org.result == null ? null : org.result.child1ShortName, + child2Old = org == null || org.result == null ? null : org.result.child2, + child2IdOld = org == null || org.result == null ? null : org.result.child2Id, + child2ShortNameOld = org == null || org.result == null ? null : org.result.child2ShortName, + child3Old = org == null || org.result == null ? null : org.result.child3, + child3IdOld = org == null || org.result == null ? null : org.result.child3Id, + child3ShortNameOld = org == null || org.result == null ? null : org.result.child3ShortName, + child4Old = org == null || org.result == null ? null : org.result.child4, + child4IdOld = org == null || org.result == null ? null : org.result.child4Id, + child4ShortNameOld = org == null || org.result == null ? null : org.result.child4ShortName, + orgRevisionIdOld = org == null || org.result == null ? null : org.result.orgRevisionId, + // positionIdOld = org == null || org.result == null ? null : org.result.positionIdOld, + posMasterNoOld = org == null || org.result == null ? null : org.result.posMasterNo, + positionNameOld = org == null || org.result == null ? null : org.result.position, + // positionFieldOld = org == null || org.result == null ? null : org.result.positionFieldOld, + posTypeIdOld = org == null || org.result == null ? null : org.result.posTypeId, + posTypeNameOld = org == null || org.result == null ? null : org.result.posTypeName, + posLevelIdOld = org == null || org.result == null ? null : org.result.posLevelId, + posLevelNameOld = org == null || org.result == null ? null : org.result.posLevelName, }; await _contextMetadata.PlacementProfiles.AddAsync(placementProfile);