Add SelectedNodeId parameter to SearchProfile method and update related DTO #1555
This commit is contained in:
parent
23bbd9791e
commit
818ff38e99
3 changed files with 5 additions and 2 deletions
|
|
@ -970,7 +970,7 @@ namespace BMA.EHR.Application.Repositories
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public async Task<GetProfileByKeycloakIdRootAddTotalDto> SearchProfile(string? citizenId, string? firstName, string? lastName, string accessToken, int page, int pageSize, string? role, string? nodeId, int? node)
|
public async Task<GetProfileByKeycloakIdRootAddTotalDto> SearchProfile(string? citizenId, string? firstName, string? lastName, string accessToken, int page, int pageSize, string? role, string? nodeId, int? node,Guid? selectedNodeId)
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
|
@ -986,6 +986,7 @@ namespace BMA.EHR.Application.Repositories
|
||||||
node = node,
|
node = node,
|
||||||
page = page,
|
page = page,
|
||||||
pageSize = pageSize,
|
pageSize = pageSize,
|
||||||
|
selectedNodeId = selectedNodeId
|
||||||
};
|
};
|
||||||
|
|
||||||
var profiles = new List<GetProfileByKeycloakIdRootDto>();
|
var profiles = new List<GetProfileByKeycloakIdRootDto>();
|
||||||
|
|
|
||||||
|
|
@ -2443,7 +2443,7 @@ namespace BMA.EHR.Leave.Service.Controllers
|
||||||
{
|
{
|
||||||
nodeId = profileAdmin?.RootDnaId;
|
nodeId = profileAdmin?.RootDnaId;
|
||||||
}
|
}
|
||||||
var profile = await _userProfileRepository.SearchProfile(req.CitizenId, req.FirstName, req.LastName, AccessToken ?? "", req.Page, req.PageSize, role, nodeId, profileAdmin?.Node);
|
var profile = await _userProfileRepository.SearchProfile(req.CitizenId, req.FirstName, req.LastName, AccessToken ?? "", req.Page, req.PageSize, role, nodeId, profileAdmin?.Node, req.SelectedNodeId);
|
||||||
|
|
||||||
// Get default round once
|
// Get default round once
|
||||||
var getDefaultRound = await _dutyTimeRepository.GetDefaultAsync();
|
var getDefaultRound = await _dutyTimeRepository.GetDefaultAsync();
|
||||||
|
|
|
||||||
|
|
@ -17,5 +17,7 @@
|
||||||
public string? sortBy { get; set; }
|
public string? sortBy { get; set; }
|
||||||
|
|
||||||
public bool? descending { get; set; }
|
public bool? descending { get; set; }
|
||||||
|
|
||||||
|
public Guid? SelectedNodeId { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue