แก้ออกคำสั่งบรรจุกลับ บันทึก ProfilePositon

This commit is contained in:
Suphonchai Phoonsawat 2023-10-17 10:28:25 +07:00
parent 862408b289
commit a0c4148382
3 changed files with 6 additions and 2 deletions

View file

@ -3574,11 +3574,13 @@ namespace BMA.EHR.Application.Repositories.Commands
profile.Salaries.Add(salary); profile.Salaries.Add(salary);
var org_pos = await _dbContext.Set<OrganizationPositionEntity>().Include(x => x.PositionNumber).FirstOrDefaultAsync(x => x.PositionNumber.Id == placementProfile.PositionNumber.Id);
// add profile position // add profile position
var profilePosition = new ProfilePosition var profilePosition = new ProfilePosition
{ {
Profile = profile, Profile = profile,
OrganizationPosition = placementProfile.OrganizationPosition, OrganizationPosition = org_pos,
IsActive = true, IsActive = true,
IsPublished = true, IsPublished = true,
}; };
@ -3833,11 +3835,13 @@ namespace BMA.EHR.Application.Repositories.Commands
profile.Salaries.Add(salary); profile.Salaries.Add(salary);
var org_pos = await _dbContext.Set<OrganizationPositionEntity>().Include(x => x.PositionNumber).FirstOrDefaultAsync(x => x.PositionNumber.Id == placementProfile.PositionNumber.Id);
// add profile position // add profile position
var profilePosition = new ProfilePosition var profilePosition = new ProfilePosition
{ {
Profile = profile, Profile = profile,
OrganizationPosition = placementProfile.OrganizationPosition, OrganizationPosition = org_pos,
IsActive = true, IsActive = true,
IsPublished = true, IsPublished = true,
}; };