แก้ list พ้น
This commit is contained in:
parent
bebd9620a5
commit
817f7a91ac
8 changed files with 92 additions and 77 deletions
|
|
@ -884,6 +884,18 @@ namespace BMA.EHR.Placement.Service.Controllers
|
|||
person.child4ShortName = req.node <= 3 ? null : org.result.child4ShortName;
|
||||
}
|
||||
|
||||
|
||||
var apiUrlUpdate = $"{_configuration["API"]}/org/pos/officer/master/book";
|
||||
using (var client = new HttpClient())
|
||||
{
|
||||
client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token.Replace("Bearer ", ""));
|
||||
client.DefaultRequestHeaders.Add("api_key", _configuration["API_KEY"]);
|
||||
var _resUpdate = await client.PostAsJsonAsync(apiUrlUpdate, new
|
||||
{
|
||||
posMasterId = req.posmasterId,
|
||||
profileId = req.profileId,
|
||||
});
|
||||
}
|
||||
person.Draft = false;
|
||||
person.typeCommand = req.typeCommand == null ? null : req.typeCommand.Trim().ToUpper();
|
||||
person.ReportingDate = req.reportingDate;
|
||||
|
|
@ -1254,6 +1266,16 @@ namespace BMA.EHR.Placement.Service.Controllers
|
|||
if (profile == null)
|
||||
return Error(GlobalMessages.DataNotFound, 404);
|
||||
|
||||
var apiUrlUpdate = $"{_configuration["API"]}/org/pos/officer/master/clear";
|
||||
using (var client = new HttpClient())
|
||||
{
|
||||
client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token.Replace("Bearer ", ""));
|
||||
client.DefaultRequestHeaders.Add("api_key", _configuration["API_KEY"]);
|
||||
var _resUpdate = await client.PostAsJsonAsync(apiUrlUpdate, new
|
||||
{
|
||||
posMasterId = profile.posmasterId,
|
||||
});
|
||||
}
|
||||
profile.root = null;
|
||||
profile.rootId = null;
|
||||
profile.rootShortName = null;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue