test
This commit is contained in:
parent
52f3d6e786
commit
ff547470b2
1 changed files with 39 additions and 39 deletions
|
|
@ -313,7 +313,7 @@ namespace BMA.EHR.Recruit.Service.Services
|
||||||
var placementProfile = new PlacementProfile
|
var placementProfile = new PlacementProfile
|
||||||
{
|
{
|
||||||
Placement = placement,
|
Placement = placement,
|
||||||
PositionCandidate = positionNameWithoutLevel,
|
PositionCandidate = positionNameWithoutLevel ?? "",
|
||||||
PositionType = posLevelObject?.posTypes?.posLevelName ?? "",
|
PositionType = posLevelObject?.posTypes?.posLevelName ?? "",
|
||||||
PositionLevel = posLevelName ?? "",
|
PositionLevel = posLevelName ?? "",
|
||||||
Prefix = candidate.Prefix ?? "",
|
Prefix = candidate.Prefix ?? "",
|
||||||
|
|
@ -328,13 +328,13 @@ namespace BMA.EHR.Recruit.Service.Services
|
||||||
CitizenId = candidate.CitizenId ?? "",
|
CitizenId = candidate.CitizenId ?? "",
|
||||||
CitizenProvinceId = provincesCache.FirstOrDefault(x => x.name == candidate.CitizenCardIssuer)?.Id,
|
CitizenProvinceId = provincesCache.FirstOrDefault(x => x.name == candidate.CitizenCardIssuer)?.Id,
|
||||||
CitizenDate = candidate.CitizenCardExpireDate,
|
CitizenDate = candidate.CitizenCardExpireDate,
|
||||||
Telephone = firstAddress?.Telephone,
|
Telephone = firstAddress?.Telephone ?? "",
|
||||||
MobilePhone = firstAddress?.Mobile,
|
MobilePhone = firstAddress?.Mobile ?? "",
|
||||||
RegistAddress = registAddress,
|
RegistAddress = registAddress ?? "",
|
||||||
RegistProvinceId = provincesCache.FirstOrDefault(x => x.name == firstAddress?.Province)?.Id,
|
RegistProvinceId = provincesCache.FirstOrDefault(x => x.name == firstAddress?.Province)?.Id,
|
||||||
RegistDistrictId = districtsCache.FirstOrDefault(x => x.name == firstAddress?.Amphur)?.Id,
|
RegistDistrictId = districtsCache.FirstOrDefault(x => x.name == firstAddress?.Amphur)?.Id,
|
||||||
RegistSubDistrictId = subDistrictsCache.FirstOrDefault(x => x.name == firstAddress?.District)?.Id,
|
RegistSubDistrictId = subDistrictsCache.FirstOrDefault(x => x.name == firstAddress?.District)?.Id,
|
||||||
RegistZipCode = firstAddress?.ZipCode,
|
RegistZipCode = firstAddress?.ZipCode ?? "",
|
||||||
RegistSame = false,
|
RegistSame = false,
|
||||||
CurrentAddress = currentAddress,
|
CurrentAddress = currentAddress,
|
||||||
CurrentProvinceId = provincesCache.FirstOrDefault(x => x.name == firstAddress?.Province1)?.Id,
|
CurrentProvinceId = provincesCache.FirstOrDefault(x => x.name == firstAddress?.Province1)?.Id,
|
||||||
|
|
@ -343,8 +343,8 @@ namespace BMA.EHR.Recruit.Service.Services
|
||||||
CurrentZipCode = firstAddress?.ZipCode1,
|
CurrentZipCode = firstAddress?.ZipCode1,
|
||||||
Marry = candidate.Marry?.Contains("สมรส") ?? false,
|
Marry = candidate.Marry?.Contains("สมรส") ?? false,
|
||||||
OccupationPositionType = "other",
|
OccupationPositionType = "other",
|
||||||
OccupationTelephone = firstOccupation?.Telephone,
|
OccupationTelephone = firstOccupation?.Telephone ?? "",
|
||||||
OccupationPosition = firstOccupation?.Position,
|
OccupationPosition = firstOccupation?.Position ?? "",
|
||||||
PointTotalA = recruitScore.FullA, // non-nullable int
|
PointTotalA = recruitScore.FullA, // non-nullable int
|
||||||
PointA = recruitScore.SumA, // non-nullable double
|
PointA = recruitScore.SumA, // non-nullable double
|
||||||
PointTotalB = recruitScore.FullB ?? 0, // nullable int?
|
PointTotalB = recruitScore.FullB ?? 0, // nullable int?
|
||||||
|
|
@ -367,34 +367,34 @@ namespace BMA.EHR.Recruit.Service.Services
|
||||||
LastUpdateUserId = UserId ?? "",
|
LastUpdateUserId = UserId ?? "",
|
||||||
LastUpdateFullName = FullName ?? "",
|
LastUpdateFullName = FullName ?? "",
|
||||||
IsOfficer = isOfficer,
|
IsOfficer = isOfficer,
|
||||||
profileId = org?.result?.profileId,
|
profileId = org?.result?.profileId ?? "",
|
||||||
IsOld = org?.result != null,
|
IsOld = org?.result != null,
|
||||||
AmountOld = org?.result?.amount,
|
AmountOld = org?.result?.amount,
|
||||||
nodeOld = org?.result?.node,
|
nodeOld = org?.result?.node ?? "",
|
||||||
nodeIdOld = org?.result?.nodeId,
|
nodeIdOld = org?.result?.nodeId ?? "",
|
||||||
posmasterIdOld = org?.result?.posmasterId,
|
posmasterIdOld = org?.result?.posmasterId ?? "",
|
||||||
rootOld = org?.result?.root,
|
rootOld = org?.result?.root ?? "",
|
||||||
rootIdOld = org?.result?.rootId,
|
rootIdOld = org?.result?.rootId ?? "",
|
||||||
rootShortNameOld = org?.result?.rootShortName,
|
rootShortNameOld = org?.result?.rootShortName ?? "",
|
||||||
child1Old = org?.result?.child1,
|
child1Old = org?.result?.child1 ?? "",
|
||||||
child1IdOld = org?.result?.child1Id,
|
child1IdOld = org?.result?.child1Id ?? "",
|
||||||
child1ShortNameOld = org?.result?.child1ShortName,
|
child1ShortNameOld = org?.result?.child1ShortName ?? "",
|
||||||
child2Old = org?.result?.child2,
|
child2Old = org?.result?.child2 ?? "",
|
||||||
child2IdOld = org?.result?.child2Id,
|
child2IdOld = org?.result?.child2Id ?? "",
|
||||||
child2ShortNameOld = org?.result?.child2ShortName,
|
child2ShortNameOld = org?.result?.child2ShortName ?? "",
|
||||||
child3Old = org?.result?.child3,
|
child3Old = org?.result?.child3 ?? "",
|
||||||
child3IdOld = org?.result?.child3Id,
|
child3IdOld = org?.result?.child3Id ?? "",
|
||||||
child3ShortNameOld = org?.result?.child3ShortName,
|
child3ShortNameOld = org?.result?.child3ShortName ?? "",
|
||||||
child4Old = org?.result?.child4,
|
child4Old = org?.result?.child4 ?? "",
|
||||||
child4IdOld = org?.result?.child4Id,
|
child4IdOld = org?.result?.child4Id ?? "",
|
||||||
child4ShortNameOld = org?.result?.child4ShortName,
|
child4ShortNameOld = org?.result?.child4ShortName ?? "",
|
||||||
orgRevisionIdOld = org?.result?.orgRevisionId,
|
orgRevisionIdOld = org?.result?.orgRevisionId ?? "",
|
||||||
posMasterNoOld = org?.result?.posMasterNo,
|
posMasterNoOld = org?.result?.posMasterNo ?? "",
|
||||||
positionNameOld = org?.result?.position,
|
positionNameOld = org?.result?.position ?? "",
|
||||||
posTypeIdOld = org?.result?.posTypeId,
|
posTypeIdOld = org?.result?.posTypeId ?? "",
|
||||||
posTypeNameOld = org?.result?.posTypeName,
|
posTypeNameOld = org?.result?.posTypeName ?? "",
|
||||||
posLevelIdOld = org?.result?.posLevelId,
|
posLevelIdOld = org?.result?.posLevelId ?? "",
|
||||||
posLevelNameOld = org?.result?.posLevelName,
|
posLevelNameOld = org?.result?.posLevelName ?? "",
|
||||||
};
|
};
|
||||||
placementProfiles.Add(placementProfile);
|
placementProfiles.Add(placementProfile);
|
||||||
|
|
||||||
|
|
@ -403,10 +403,10 @@ namespace BMA.EHR.Recruit.Service.Services
|
||||||
PlacementProfile = placementProfile,
|
PlacementProfile = placementProfile,
|
||||||
EducationLevelId = educationLevelsCache.FirstOrDefault(x => x.name == firstEducation?.HighDegree)?.Id,
|
EducationLevelId = educationLevelsCache.FirstOrDefault(x => x.name == firstEducation?.HighDegree)?.Id,
|
||||||
EducationLevelName = educationLevelsCache.FirstOrDefault(x => x.name == firstEducation?.HighDegree)?.name,
|
EducationLevelName = educationLevelsCache.FirstOrDefault(x => x.name == firstEducation?.HighDegree)?.name,
|
||||||
Field = firstEducation?.Major,
|
Field = firstEducation?.Major ?? "",
|
||||||
Gpa = firstEducation?.GPA.ToString(),
|
Gpa = firstEducation == null || firstEducation?.GPA == null ? "" : firstEducation.GPA.ToString(),
|
||||||
Institute = firstEducation?.University,
|
Institute = firstEducation?.University ?? "",
|
||||||
Degree = firstEducation?.Degree,
|
Degree = firstEducation?.Degree ?? "",
|
||||||
FinishDate = firstEducation?.BachelorDate,
|
FinishDate = firstEducation?.BachelorDate,
|
||||||
IsDate = true,
|
IsDate = true,
|
||||||
CreatedAt = DateTime.Now,
|
CreatedAt = DateTime.Now,
|
||||||
|
|
@ -421,10 +421,10 @@ namespace BMA.EHR.Recruit.Service.Services
|
||||||
var placementCertificate = new PlacementCertificate
|
var placementCertificate = new PlacementCertificate
|
||||||
{
|
{
|
||||||
PlacementProfile = placementProfile,
|
PlacementProfile = placementProfile,
|
||||||
CertificateNo = firstCertificate?.CertificateNo,
|
CertificateNo = firstCertificate?.CertificateNo ?? "",
|
||||||
IssueDate = firstCertificate?.IssueDate,
|
IssueDate = firstCertificate?.IssueDate,
|
||||||
ExpireDate = firstCertificate?.ExpiredDate,
|
ExpireDate = firstCertificate?.ExpiredDate,
|
||||||
CertificateType = firstCertificate?.Description,
|
CertificateType = firstCertificate?.Description ?? "",
|
||||||
CreatedAt = DateTime.Now,
|
CreatedAt = DateTime.Now,
|
||||||
CreatedUserId = UserId ?? "",
|
CreatedUserId = UserId ?? "",
|
||||||
LastUpdatedAt = DateTime.Now,
|
LastUpdatedAt = DateTime.Now,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue