เครื่องราชเช็คตามรายการ
This commit is contained in:
parent
2efc1910f6
commit
a951378b1f
21 changed files with 57711 additions and 61 deletions
|
|
@ -7476,7 +7476,7 @@ namespace BMA.EHR.Application.Repositories
|
|||
//.ThenInclude(x => x.OrganizationOrganization)
|
||||
.FirstOrDefaultAsync(x => x.Period.Id == period.Id && x.OrganizationId == ocId);
|
||||
|
||||
var oc = _userProfileRepository.GetOc(ocId, 0, AccessToken);
|
||||
//var oc = _userProfileRepository.GetOc(ocId, 0, AccessToken);
|
||||
|
||||
return new InsigniaResults
|
||||
{
|
||||
|
|
@ -7488,7 +7488,7 @@ namespace BMA.EHR.Application.Repositories
|
|||
RequestId = request == null ? null : request.Id,
|
||||
RequestNote = request == null ? "" : request.RequestNote,
|
||||
RequestStatus = request == null ? null : request.RequestStatus,
|
||||
OrganizationName = request == null ? "" : oc.Root,
|
||||
OrganizationName = request == null ? "" : request.Organization,
|
||||
Document = request == null
|
||||
? null
|
||||
: (request.Document == null
|
||||
|
|
@ -7759,7 +7759,7 @@ namespace BMA.EHR.Application.Repositories
|
|||
// }
|
||||
|
||||
// insert candidate list
|
||||
public async Task InsertCandidate(Guid periodId, Guid ocId, List<InsigniaResultSet> items)
|
||||
public async Task InsertCandidate(Guid periodId, Guid ocId, string oc, List<InsigniaResultSet> items)
|
||||
{
|
||||
try
|
||||
{
|
||||
|
|
@ -7782,7 +7782,7 @@ namespace BMA.EHR.Application.Repositories
|
|||
}
|
||||
|
||||
//var oc = await _dbContext.Set<OrganizationEntity>().FirstOrDefaultAsync(x => x.Id == ocId);
|
||||
var oc = _userProfileRepository.GetOc(ocId, 0, AccessToken);
|
||||
//var oc = _userProfileRepository.GetOc(ocId, 0, AccessToken);
|
||||
|
||||
//if (oc == null)
|
||||
// throw new Exception(GlobalMessages.OCNotFound);
|
||||
|
|
@ -7790,7 +7790,8 @@ namespace BMA.EHR.Application.Repositories
|
|||
var req = new InsigniaRequest
|
||||
{
|
||||
Period = period,
|
||||
OrganizationId = oc!.RootId!.Value,
|
||||
OrganizationId = ocId,
|
||||
Organization = oc,
|
||||
RequestStatus = "st1",
|
||||
RequestNote = "",
|
||||
CreatedFullName = FullName ?? "System Administrator",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue