แก้ list พ้น
This commit is contained in:
parent
bebd9620a5
commit
817f7a91ac
8 changed files with 92 additions and 77 deletions
|
|
@ -525,7 +525,6 @@ namespace BMA.EHR.Placement.Service.Controllers
|
|||
|
||||
if (org == null || org.result == null)
|
||||
return Error("ไม่พบหน่วยงานนี้ในระบบ", 404);
|
||||
|
||||
uppdated.root = org.result.root;
|
||||
uppdated.rootId = org.result.rootId;
|
||||
uppdated.rootShortName = org.result.rootShortName;
|
||||
|
|
@ -543,6 +542,18 @@ namespace BMA.EHR.Placement.Service.Controllers
|
|||
uppdated.child4ShortName = req.node <= 3 ? null : org.result.child4ShortName;
|
||||
}
|
||||
|
||||
var apiUrlUpdate = $"{_configuration["API"]}/org/pos/officer/master-old/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
|
||||
{
|
||||
posMasterOldId = uppdated.posmasterId,
|
||||
posMasterId = req.posmasterId,
|
||||
profileId = req.profileId,
|
||||
});
|
||||
}
|
||||
uppdated.typeCommand = req.typeCommand == null ? null : req.typeCommand.Trim().ToUpper();
|
||||
uppdated.posmasterId = req.posmasterId;
|
||||
uppdated.node = req.node;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue