add child in insignia profile

This commit is contained in:
kittapath 2024-12-10 22:42:16 +07:00
parent 5e891b96b7
commit 2510009cc6
6 changed files with 19511 additions and 0 deletions

View file

@ -933,6 +933,14 @@ namespace BMA.EHR.Insignia.Service.Controllers
LastInsigniaName = lastInsignia,
Root = profile.Root,
RootId = profile.RootId,
Child1 = profile.Child1,
Child1Id = profile.Child1Id,
Child2 = profile.Child2,
Child2Id = profile.Child2Id,
Child3 = profile.Child3,
Child3Id = profile.Child3Id,
Child4 = profile.Child4,
Child4Id = profile.Child4Id,
});
await _context.SaveChangesAsync();
@ -1080,6 +1088,14 @@ namespace BMA.EHR.Insignia.Service.Controllers
PositionSalaryAmount = profileOld.PositionSalaryAmount,
Root = profileOld.Root,
RootId = profileOld.RootId,
Child1 = profileOld.Child1,
Child1Id = profileOld.Child1Id,
Child2 = profileOld.Child2,
Child2Id = profileOld.Child2Id,
Child3 = profileOld.Child3,
Child3Id = profileOld.Child3Id,
Child4 = profileOld.Child4,
Child4Id = profileOld.Child4Id,
});
}
}
@ -1838,6 +1854,14 @@ namespace BMA.EHR.Insignia.Service.Controllers
PositionSalaryAmount = pf.PositionSalaryAmount,
RootId = pf.RootId,
Root = pf.Root,
Child1 = pf.Child1,
Child1Id = pf.Child1Id,
Child2 = pf.Child2,
Child2Id = pf.Child2Id,
Child3 = pf.Child3,
Child3Id = pf.Child3Id,
Child4 = pf.Child4,
Child4Id = pf.Child4Id,
LastUpdateFullName = FullName ?? "System Administrator",
LastUpdateUserId = UserId ?? "",
LastUpdatedAt = DateTime.Now,
@ -2014,6 +2038,14 @@ namespace BMA.EHR.Insignia.Service.Controllers
PositionSalaryAmount = _profile.PositionSalaryAmount,
Root = _profile.Root,
RootId = _profile.RootId,
Child1 = _profile.Child1,
Child1Id = _profile.Child1Id,
Child2 = _profile.Child2,
Child2Id = _profile.Child2Id,
Child3 = _profile.Child3,
Child3Id = _profile.Child3Id,
Child4 = _profile.Child4,
Child4Id = _profile.Child4Id,
};
}
else