เลือกตำแหน่ง
Some checks failed
release-dev / release-dev (push) Failing after 11s

This commit is contained in:
moss 2025-04-01 10:12:53 +07:00
parent acd931f6f0
commit b1d198133f
4 changed files with 53 additions and 53 deletions

View file

@ -556,18 +556,18 @@ namespace BMA.EHR.Placement.Service.Controllers
uppdated.child4ShortName = req.node <= 3 ? null : org.result.child4ShortName; uppdated.child4ShortName = req.node <= 3 ? null : org.result.child4ShortName;
} }
var apiUrlUpdate = $"{_configuration["API"]}/org/pos/officer/master-old/book"; // var apiUrlUpdate = $"{_configuration["API"]}/org/pos/officer/master-old/book";
using (var client = new HttpClient()) // using (var client = new HttpClient())
{ // {
client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token.Replace("Bearer ", "")); // client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token.Replace("Bearer ", ""));
client.DefaultRequestHeaders.Add("api_key", _configuration["API_KEY"]); // client.DefaultRequestHeaders.Add("api_key", _configuration["API_KEY"]);
var _resUpdate = await client.PostAsJsonAsync(apiUrlUpdate, new // var _resUpdate = await client.PostAsJsonAsync(apiUrlUpdate, new
{ // {
posMasterOldId = uppdated.posmasterId, // posMasterOldId = uppdated.posmasterId,
posMasterId = req.posmasterId, // posMasterId = req.posmasterId,
profileId = uppdated.profileId, // profileId = uppdated.profileId,
}); // });
} // }
uppdated.typeCommand = req.typeCommand == null ? null : req.typeCommand.Trim().ToUpper(); uppdated.typeCommand = req.typeCommand == null ? null : req.typeCommand.Trim().ToUpper();
uppdated.posmasterId = req.posmasterId; uppdated.posmasterId = req.posmasterId;
uppdated.node = req.node; uppdated.node = req.node;

View file

@ -581,18 +581,18 @@ namespace BMA.EHR.Placement.Service.Controllers
uppdated.child4ShortName = req.node <= 3 ? null : org.result.child4ShortName; uppdated.child4ShortName = req.node <= 3 ? null : org.result.child4ShortName;
} }
var apiUrlUpdate = $"{_configuration["API"]}/org/pos/employee/master-old/book"; // var apiUrlUpdate = $"{_configuration["API"]}/org/pos/employee/master-old/book";
using (var client = new HttpClient()) // using (var client = new HttpClient())
{ // {
client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token.Replace("Bearer ", "")); // client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token.Replace("Bearer ", ""));
client.DefaultRequestHeaders.Add("api_key", _configuration["API_KEY"]); // client.DefaultRequestHeaders.Add("api_key", _configuration["API_KEY"]);
var _resUpdate = await client.PostAsJsonAsync(apiUrlUpdate, new // var _resUpdate = await client.PostAsJsonAsync(apiUrlUpdate, new
{ // {
posMasterOldId = uppdated.posmasterId, // posMasterOldId = uppdated.posmasterId,
posMasterId = req.posmasterId, // posMasterId = req.posmasterId,
profileId = uppdated.profileId, // profileId = uppdated.profileId,
}); // });
} // }
uppdated.typeCommand = req.typeCommand == null ? null : req.typeCommand.Trim().ToUpper(); uppdated.typeCommand = req.typeCommand == null ? null : req.typeCommand.Trim().ToUpper();
uppdated.posmasterId = req.posmasterId; uppdated.posmasterId = req.posmasterId;
uppdated.node = req.node; uppdated.node = req.node;

View file

@ -654,18 +654,18 @@ namespace BMA.EHR.Placement.Service.Controllers
uppdated.child4ShortName = req.node <= 3 ? null : org.result.child4ShortName; uppdated.child4ShortName = req.node <= 3 ? null : org.result.child4ShortName;
} }
var apiUrlUpdate = $"{_configuration["API"]}/org/pos/officer/master-old/book"; // var apiUrlUpdate = $"{_configuration["API"]}/org/pos/officer/master-old/book";
using (var client = new HttpClient()) // using (var client = new HttpClient())
{ // {
client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token.Replace("Bearer ", "")); // client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token.Replace("Bearer ", ""));
client.DefaultRequestHeaders.Add("api_key", _configuration["API_KEY"]); // client.DefaultRequestHeaders.Add("api_key", _configuration["API_KEY"]);
var _resUpdate = await client.PostAsJsonAsync(apiUrlUpdate, new // var _resUpdate = await client.PostAsJsonAsync(apiUrlUpdate, new
{ // {
posMasterOldId = uppdated.posmasterId, // posMasterOldId = uppdated.posmasterId,
posMasterId = req.posmasterId, // posMasterId = req.posmasterId,
profileId = uppdated.profileId, // profileId = uppdated.profileId,
}); // });
} // }
uppdated.posmasterId = req.posmasterId; uppdated.posmasterId = req.posmasterId;
uppdated.node = req.node; uppdated.node = req.node;
uppdated.nodeId = req.nodeId; uppdated.nodeId = req.nodeId;

View file

@ -168,7 +168,7 @@ namespace BMA.EHR.Retirement.Service.Controllers
p.Status, p.Status,
p.Amount, p.Amount,
p.ReportingDate, p.ReportingDate,
p.CreatedAt, p.CreatedAt,
p.Reason, p.Reason,
p.MilitaryDate, p.MilitaryDate,
@ -268,7 +268,7 @@ namespace BMA.EHR.Retirement.Service.Controllers
p.posTypeName, p.posTypeName,
p.posLevelId, p.posLevelId,
p.posLevelName, p.posLevelName,
p.rootOld, p.rootOld,
p.rootOldId, p.rootOldId,
p.rootShortNameOld, p.rootShortNameOld,
@ -297,7 +297,7 @@ namespace BMA.EHR.Retirement.Service.Controllers
p.Status, p.Status,
p.Amount, p.Amount,
p.ReportingDate, p.ReportingDate,
p.CreatedAt, p.CreatedAt,
p.Reason, p.Reason,
p.MilitaryDate, p.MilitaryDate,
@ -458,8 +458,8 @@ namespace BMA.EHR.Retirement.Service.Controllers
.FirstOrDefaultAsync(x => x.Id == id); .FirstOrDefaultAsync(x => x.Id == id);
if (uppdated == null) if (uppdated == null)
return Error(GlobalMessages.RetirementOtherNotFound, 404); return Error(GlobalMessages.RetirementOtherNotFound, 404);
var apiUrl = $"{_configuration["API"]}/org/find/all"; var apiUrl = $"{_configuration["API"]}/org/find/all";
using (var client = new HttpClient()) using (var client = new HttpClient())
{ {
@ -498,18 +498,18 @@ namespace BMA.EHR.Retirement.Service.Controllers
uppdated.child4ShortName = req.node <= 3 ? null : org.result.child4ShortName; uppdated.child4ShortName = req.node <= 3 ? null : org.result.child4ShortName;
} }
var apiUrlUpdate = $"{_configuration["API"]}/org/pos/officer/master-old/book"; // var apiUrlUpdate = $"{_configuration["API"]}/org/pos/officer/master-old/book";
using (var client = new HttpClient()) // using (var client = new HttpClient())
{ // {
client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token.Replace("Bearer ", "")); // client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token.Replace("Bearer ", ""));
client.DefaultRequestHeaders.Add("api_key", _configuration["API_KEY"]); // client.DefaultRequestHeaders.Add("api_key", _configuration["API_KEY"]);
var _resUpdate = await client.PostAsJsonAsync(apiUrlUpdate, new // var _resUpdate = await client.PostAsJsonAsync(apiUrlUpdate, new
{ // {
posMasterOldId = uppdated.posmasterId, // posMasterOldId = uppdated.posmasterId,
posMasterId = req.posmasterId, // posMasterId = req.posmasterId,
profileId = uppdated.profileId, // profileId = uppdated.profileId,
}); // });
} // }
uppdated.posmasterId = req.posmasterId; uppdated.posmasterId = req.posmasterId;
uppdated.node = req.node; uppdated.node = req.node;
uppdated.nodeId = req.nodeId; uppdated.nodeId = req.nodeId;