add parent
This commit is contained in:
parent
ddf899ce5d
commit
9e8fe1b30a
22 changed files with 289 additions and 122 deletions
|
|
@ -1297,6 +1297,10 @@ namespace BMA.EHR.Leave.Service.Controllers
|
|||
{
|
||||
nodeId = profileAdmin?.RootDnaId;
|
||||
}
|
||||
else if (role == "PARENT")
|
||||
{
|
||||
nodeId = profileAdmin?.Child1DnaId;
|
||||
}
|
||||
|
||||
//var data = (await _userTimeStampRepository.GetTimeStampHistoryForAdminAsync(startDate, endDate))
|
||||
var data = (await _userTimeStampRepository.GetTimeStampHistoryForAdminRoleAsync(startDate, endDate, role, nodeId, profileAdmin?.Node))
|
||||
|
|
@ -1535,6 +1539,10 @@ namespace BMA.EHR.Leave.Service.Controllers
|
|||
{
|
||||
nodeId = profileAdmin?.RootDnaId;
|
||||
}
|
||||
else if (role == "PARENT")
|
||||
{
|
||||
nodeId = profileAdmin?.Child1DnaId;
|
||||
}
|
||||
//var resultData = await _processUserTimeStampRepository.GetTimeStampHistoryForAdminAsync(startDate, endDate);
|
||||
var resultData = await _processUserTimeStampRepository.GetTimeStampHistoryForAdminRoleAsync(startDate, endDate, role, nodeId, profileAdmin?.Node);
|
||||
var data = new List<CheckInProcessHistoryForAdminDto>();
|
||||
|
|
@ -2205,6 +2213,10 @@ namespace BMA.EHR.Leave.Service.Controllers
|
|||
{
|
||||
nodeId = profileAdmin?.RootDnaId;
|
||||
}
|
||||
else if (role == "PARENT")
|
||||
{
|
||||
nodeId = profileAdmin?.Child1DnaId;
|
||||
}
|
||||
//var rawData = await _additionalCheckRequestRepository.GetAdditionalCheckRequests(year, month);
|
||||
var rawData = await _additionalCheckRequestRepository.GetAdditionalCheckRequestsByAdminRole(year, month, role, nodeId, profileAdmin?.Node);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue