test parent
This commit is contained in:
parent
84ab5e79d6
commit
f97e643ac1
20 changed files with 155 additions and 264 deletions
|
|
@ -257,14 +257,10 @@ namespace BMA.EHR.Retirement.Service.Controllers
|
|||
? profileAdmin?.RootDnaId
|
||||
: "";
|
||||
}
|
||||
else if (role == "ROOT")
|
||||
else if (role == "ROOT" && role == "PARENT")
|
||||
{
|
||||
nodeId = profileAdmin?.RootDnaId;
|
||||
}
|
||||
else if (role == "PARENT")
|
||||
{
|
||||
nodeId = profileAdmin?.Child1DnaId;
|
||||
}
|
||||
|
||||
var node = profileAdmin?.Node;
|
||||
var retirementResigns = await _context.RetirementResigns.AsQueryable()
|
||||
|
|
@ -324,7 +320,7 @@ namespace BMA.EHR.Retirement.Service.Controllers
|
|||
else if (role == "PARENT")
|
||||
{
|
||||
retirementResigns = retirementResigns
|
||||
.Where(x => x.child1DnaOldId == nodeId).ToList();
|
||||
.Where(x => x.rootDnaOldId == nodeId && x.child1DnaOldId != null).ToList();
|
||||
}
|
||||
else if (role == "NORMAL")
|
||||
{
|
||||
|
|
@ -370,14 +366,10 @@ namespace BMA.EHR.Retirement.Service.Controllers
|
|||
? profileAdmin?.RootDnaId
|
||||
: "";
|
||||
}
|
||||
else if (role == "ROOT")
|
||||
else if (role == "ROOT" && role == "PARENT")
|
||||
{
|
||||
nodeId = profileAdmin?.RootDnaId;
|
||||
}
|
||||
else if (role == "PARENT")
|
||||
{
|
||||
nodeId = profileAdmin?.Child1DnaId;
|
||||
}
|
||||
|
||||
var node = profileAdmin?.Node;
|
||||
var retirementResigns = await _context.RetirementResignCancels.AsQueryable()
|
||||
|
|
@ -436,7 +428,7 @@ namespace BMA.EHR.Retirement.Service.Controllers
|
|||
else if (role == "PARENT")
|
||||
{
|
||||
retirementResigns = retirementResigns
|
||||
.Where(x => x.child1DnaOldId == nodeId).ToList();
|
||||
.Where(x => x.rootDnaOldId == nodeId && x.child1DnaOldId != null).ToList();
|
||||
}
|
||||
else if (role == "NORMAL")
|
||||
{
|
||||
|
|
@ -2145,14 +2137,10 @@ namespace BMA.EHR.Retirement.Service.Controllers
|
|||
? profileAdmin?.RootDnaId
|
||||
: "";
|
||||
}
|
||||
else if (role == "ROOT")
|
||||
else if (role == "ROOT" && role == "PARENT")
|
||||
{
|
||||
nodeId = profileAdmin?.RootDnaId;
|
||||
}
|
||||
else if (role == "PARENT")
|
||||
{
|
||||
nodeId = profileAdmin?.Child1DnaId;
|
||||
}
|
||||
|
||||
var node = profileAdmin?.Node;
|
||||
var data = await _context.RetirementQuestions.AsQueryable()
|
||||
|
|
@ -2205,7 +2193,7 @@ namespace BMA.EHR.Retirement.Service.Controllers
|
|||
else if (role == "PARENT")
|
||||
{
|
||||
data = data
|
||||
.Where(x => x.child1DnaId == nodeId).ToList();
|
||||
.Where(x => x.rootDnaId == nodeId && x.child1DnaId != null).ToList();
|
||||
}
|
||||
else if (role == "NORMAL")
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue