แก้ออกคำสั่งบรรจุกลับ บันทึก ProfilePositon
This commit is contained in:
parent
862408b289
commit
a0c4148382
3 changed files with 6 additions and 2 deletions
|
|
@ -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,
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Binary file not shown.
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue