This commit is contained in:
parent
d3be22cfbd
commit
ac037aff4b
1 changed files with 7 additions and 1 deletions
|
|
@ -1324,12 +1324,18 @@ namespace BMA.EHR.Retirement.Service.Controllers
|
||||||
var doc = await _documentService.UploadFileAsync(file, file.FileName);
|
var doc = await _documentService.UploadFileAsync(file, file.FileName);
|
||||||
var _doc = await _context.Documents.AsQueryable()
|
var _doc = await _context.Documents.AsQueryable()
|
||||||
.FirstOrDefaultAsync(x => x.Id == doc.Id);
|
.FirstOrDefaultAsync(x => x.Id == doc.Id);
|
||||||
retire.SignDate = req.signDate;
|
|
||||||
retire.Document = _doc;
|
retire.Document = _doc;
|
||||||
retire.LastUpdateFullName = FullName ?? "System Administrator";
|
retire.LastUpdateFullName = FullName ?? "System Administrator";
|
||||||
retire.LastUpdateUserId = UserId ?? "";
|
retire.LastUpdateUserId = UserId ?? "";
|
||||||
retire.LastUpdatedAt = DateTime.Now;
|
retire.LastUpdatedAt = DateTime.Now;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
retire.SignDate = req.signDate;
|
||||||
|
retire.LastUpdateFullName = FullName ?? "System Administrator";
|
||||||
|
retire.LastUpdateUserId = UserId ?? "";
|
||||||
|
retire.LastUpdatedAt = DateTime.Now;
|
||||||
|
}
|
||||||
if (retire.TypeReport == null)
|
if (retire.TypeReport == null)
|
||||||
{
|
{
|
||||||
var apiUrl = $"{_configuration["API"]}/org/root/search/sort";
|
var apiUrl = $"{_configuration["API"]}/org/root/search/sort";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue