add dna
This commit is contained in:
parent
dbe6916782
commit
5ea175ca77
61 changed files with 66329 additions and 129 deletions
|
|
@ -527,18 +527,23 @@ namespace BMA.EHR.Placement.Service.Controllers
|
|||
return Error("ไม่พบหน่วยงานนี้ในระบบ", 404);
|
||||
uppdated.root = org.result.root;
|
||||
uppdated.rootId = org.result.rootId;
|
||||
uppdated.rootDnaId = org.result.rootDnaId;
|
||||
uppdated.rootShortName = org.result.rootShortName;
|
||||
uppdated.child1 = req.node <= 0 ? null : org.result.child1;
|
||||
uppdated.child1Id = req.node <= 0 ? null : org.result.child1Id;
|
||||
uppdated.child1DnaId = req.node <= 0 ? null : org.result.child1DnaId;
|
||||
uppdated.child1ShortName = req.node <= 0 ? null : org.result.child1ShortName;
|
||||
uppdated.child2 = req.node <= 1 ? null : org.result.child2;
|
||||
uppdated.child2Id = req.node <= 1 ? null : org.result.child2Id;
|
||||
uppdated.child2DnaId = req.node <= 1 ? null : org.result.child2DnaId;
|
||||
uppdated.child2ShortName = req.node <= 1 ? null : org.result.child2ShortName;
|
||||
uppdated.child3 = req.node <= 2 ? null : org.result.child3;
|
||||
uppdated.child3Id = req.node <= 2 ? null : org.result.child3Id;
|
||||
uppdated.child3DnaId = req.node <= 2 ? null : org.result.child3DnaId;
|
||||
uppdated.child3ShortName = req.node <= 2 ? null : org.result.child3ShortName;
|
||||
uppdated.child4 = req.node <= 3 ? null : org.result.child4;
|
||||
uppdated.child4Id = req.node <= 3 ? null : org.result.child4Id;
|
||||
uppdated.child4DnaId = req.node <= 3 ? null : org.result.child4DnaId;
|
||||
uppdated.child4ShortName = req.node <= 3 ? null : org.result.child4ShortName;
|
||||
}
|
||||
|
||||
|
|
@ -961,11 +966,11 @@ namespace BMA.EHR.Placement.Service.Controllers
|
|||
var placementProfiles = await _context.PlacementAppointments
|
||||
.Where(x => req.refIds.Contains(x.Id.ToString()))
|
||||
.ToListAsync();
|
||||
placementProfiles.ForEach(profile =>
|
||||
{
|
||||
profile.Status = "REPORT";
|
||||
profile.typeCommand = "MOVE";
|
||||
});
|
||||
placementProfiles.ForEach(profile =>
|
||||
{
|
||||
profile.Status = "REPORT";
|
||||
profile.typeCommand = "MOVE";
|
||||
});
|
||||
await _context.SaveChangesAsync();
|
||||
return Success();
|
||||
}
|
||||
|
|
@ -1844,6 +1849,10 @@ namespace BMA.EHR.Placement.Service.Controllers
|
|||
rootId = profile.rootId,
|
||||
rootShortName = profile.rootShortName,
|
||||
rootDnaId = profile.rootDnaId,
|
||||
child1DnaId = profile.child1DnaId,
|
||||
child2DnaId = profile.child2DnaId,
|
||||
child3DnaId = profile.child3DnaId,
|
||||
child4DnaId = profile.child4DnaId,
|
||||
|
||||
CreatedFullName = FullName ?? "System Administrator",
|
||||
CreatedUserId = UserId ?? "",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue