แก้วินัยผูก profile ใหม่
This commit is contained in:
parent
afe16503ee
commit
b7f19d7077
36 changed files with 40179 additions and 978 deletions
|
|
@ -92,7 +92,7 @@ namespace BMA.EHR.Retirement.Service.Controllers
|
|||
|
||||
var retirementOuts = await _context.RetirementOuts.AsQueryable()
|
||||
.OrderByDescending(x => x.CreatedAt)
|
||||
.Where(x => RetirementAdmin == true ? true : (rootId == "" ? true : (child1Id == "" ? x.rootId == rootId : (child2Id == "" ? x.child1Id == child1Id : (child3Id == "" ? x.child2Id == child2Id : (child4Id == "" ? x.child3Id == child3Id : x.child4Id == child4Id))))))
|
||||
.Where(x => RetirementAdmin == true ? true : (rootId == "" ? true : (child1Id == "" ? x.rootOldId == rootId : (child2Id == "" ? x.child1OldId == child1Id : (child3Id == "" ? x.child2OldId == child2Id : (child4Id == "" ? x.child3OldId == child3Id : x.child4OldId == child4Id))))))
|
||||
.Select(p => new
|
||||
{
|
||||
p.Id,
|
||||
|
|
@ -100,20 +100,27 @@ namespace BMA.EHR.Retirement.Service.Controllers
|
|||
p.prefix,
|
||||
p.firstName,
|
||||
p.lastName,
|
||||
p.root,
|
||||
p.rootShortName,
|
||||
p.child1,
|
||||
p.child1ShortName,
|
||||
p.child2,
|
||||
p.child2ShortName,
|
||||
p.child3,
|
||||
p.child3ShortName,
|
||||
p.child4,
|
||||
p.child4ShortName,
|
||||
p.posMasterNo,
|
||||
p.position,
|
||||
p.posLevelName,
|
||||
p.posTypeName,
|
||||
p.rootOld,
|
||||
p.rootOldId,
|
||||
p.rootShortNameOld,
|
||||
p.child1Old,
|
||||
p.child1OldId,
|
||||
p.child1ShortNameOld,
|
||||
p.child2Old,
|
||||
p.child2OldId,
|
||||
p.child2ShortNameOld,
|
||||
p.child3Old,
|
||||
p.child3OldId,
|
||||
p.child3ShortNameOld,
|
||||
p.child4Old,
|
||||
p.child4OldId,
|
||||
p.child4ShortNameOld,
|
||||
p.PositionOld,
|
||||
p.posMasterNoOld,
|
||||
p.posTypeOldId,
|
||||
p.posTypeNameOld,
|
||||
p.posLevelOldId,
|
||||
p.posLevelNameOld,
|
||||
p.CreatedAt,
|
||||
p.Organization,
|
||||
p.Reason,
|
||||
|
|
@ -153,20 +160,26 @@ namespace BMA.EHR.Retirement.Service.Controllers
|
|||
p.prefix,
|
||||
p.firstName,
|
||||
p.lastName,
|
||||
p.root,
|
||||
p.rootShortName,
|
||||
p.child1,
|
||||
p.child1ShortName,
|
||||
p.child2,
|
||||
p.child2ShortName,
|
||||
p.child3,
|
||||
p.child3ShortName,
|
||||
p.child4,
|
||||
p.child4ShortName,
|
||||
p.posMasterNo,
|
||||
p.position,
|
||||
p.posLevelName,
|
||||
p.posTypeName,
|
||||
p.rootOld,
|
||||
p.rootOldId,
|
||||
p.rootShortNameOld,
|
||||
p.child1Old,
|
||||
p.child1OldId,
|
||||
p.child1ShortNameOld,
|
||||
p.child2Old,
|
||||
p.child2OldId,
|
||||
p.child2ShortNameOld,
|
||||
p.child3Old,
|
||||
p.child3OldId,
|
||||
p.child3ShortNameOld,
|
||||
p.child4Old,
|
||||
p.child4OldId,
|
||||
p.child4ShortNameOld,
|
||||
p.posMasterNoOld,
|
||||
p.posTypeOldId,
|
||||
p.posTypeNameOld,
|
||||
p.posLevelOldId,
|
||||
p.posLevelNameOld,
|
||||
p.Reason,
|
||||
p.Status,
|
||||
p.Organization,
|
||||
|
|
@ -270,27 +283,26 @@ namespace BMA.EHR.Retirement.Service.Controllers
|
|||
retirementOut.firstName = org.result.firstName;
|
||||
retirementOut.lastName = org.result.lastName;
|
||||
retirementOut.citizenId = org.result.citizenId;
|
||||
retirementOut.root = org.result.root;
|
||||
retirementOut.rootId = org.result.rootId;
|
||||
retirementOut.rootShortName = org.result.rootShortName;
|
||||
retirementOut.child1 = org.result.child1;
|
||||
retirementOut.child1Id = org.result.child1Id;
|
||||
retirementOut.child1ShortName = org.result.child1ShortName;
|
||||
retirementOut.child2 = org.result.child2;
|
||||
retirementOut.child2Id = org.result.child2Id;
|
||||
retirementOut.child2ShortName = org.result.child2ShortName;
|
||||
retirementOut.child3 = org.result.child3;
|
||||
retirementOut.child3Id = org.result.child3Id;
|
||||
retirementOut.child3ShortName = org.result.child3ShortName;
|
||||
retirementOut.child4 = org.result.child4;
|
||||
retirementOut.child4Id = org.result.child4Id;
|
||||
retirementOut.child4ShortName = org.result.child4ShortName;
|
||||
retirementOut.posMasterNo = org.result.posMasterNo;
|
||||
retirementOut.position = org.result.position;
|
||||
retirementOut.posTypeId = org.result.posTypeId;
|
||||
retirementOut.posTypeName = org.result.posTypeName;
|
||||
retirementOut.posLevelId = org.result.posLevelId;
|
||||
retirementOut.posLevelName = org.result.posLevelName;
|
||||
retirementOut.rootOld = org.result.root;
|
||||
retirementOut.rootOldId = org.result.rootId;
|
||||
retirementOut.rootShortNameOld = org.result.rootShortName;
|
||||
retirementOut.child1Old = org.result.child1;
|
||||
retirementOut.child1OldId = org.result.child1Id;
|
||||
retirementOut.child1ShortNameOld = org.result.child1ShortName;
|
||||
retirementOut.child2Old = org.result.child2;
|
||||
retirementOut.child2OldId = org.result.child2Id;
|
||||
retirementOut.child2ShortNameOld = org.result.child2ShortName;
|
||||
retirementOut.child3Old = org.result.child3;
|
||||
retirementOut.child3OldId = org.result.child3Id;
|
||||
retirementOut.child3ShortNameOld = org.result.child3ShortName;
|
||||
retirementOut.child4Old = org.result.child4;
|
||||
retirementOut.child4OldId = org.result.child4Id;
|
||||
retirementOut.child4ShortNameOld = org.result.child4ShortName;
|
||||
retirementOut.posMasterNoOld = org.result.posMasterNo;
|
||||
retirementOut.posTypeOldId = org.result.posTypeId;
|
||||
retirementOut.posTypeNameOld = org.result.posTypeName;
|
||||
retirementOut.posLevelOldId = org.result.posLevelId;
|
||||
retirementOut.posLevelNameOld = org.result.posLevelName;
|
||||
|
||||
retirementOut.PositionOld = org.result.position;
|
||||
retirementOut.PositionLevelOld = org.result.posLevelName;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue