From b1d198133fd12f825cd40681fbad112a4cf3f3a6 Mon Sep 17 00:00:00 2001 From: moss <> Date: Tue, 1 Apr 2025 10:12:53 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B9=80=E0=B8=A5=E0=B8=B7=E0=B8=AD=E0=B8=81?= =?UTF-8?q?=E0=B8=95=E0=B8=B3=E0=B9=81=E0=B8=AB=E0=B8=99=E0=B9=88=E0=B8=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../PlacementAppointmentController.cs | 24 ++++++------- .../PlacementAppointmentEmployeeController.cs | 24 ++++++------- .../Controllers/PlacementReceiveController.cs | 24 ++++++------- .../Controllers/RetirementOtherController.cs | 34 +++++++++---------- 4 files changed, 53 insertions(+), 53 deletions(-) diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentController.cs index da934623..380f223a 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentController.cs @@ -556,18 +556,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 = uppdated.profileId, - }); - } + // 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 = uppdated.profileId, + // }); + // } uppdated.typeCommand = req.typeCommand == null ? null : req.typeCommand.Trim().ToUpper(); uppdated.posmasterId = req.posmasterId; uppdated.node = req.node; diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentEmployeeController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentEmployeeController.cs index d3fc40a7..ddd7728f 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentEmployeeController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementAppointmentEmployeeController.cs @@ -581,18 +581,18 @@ namespace BMA.EHR.Placement.Service.Controllers uppdated.child4ShortName = req.node <= 3 ? null : org.result.child4ShortName; } - var apiUrlUpdate = $"{_configuration["API"]}/org/pos/employee/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 = uppdated.profileId, - }); - } + // var apiUrlUpdate = $"{_configuration["API"]}/org/pos/employee/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 = uppdated.profileId, + // }); + // } uppdated.typeCommand = req.typeCommand == null ? null : req.typeCommand.Trim().ToUpper(); uppdated.posmasterId = req.posmasterId; uppdated.node = req.node; diff --git a/BMA.EHR.Placement.Service/Controllers/PlacementReceiveController.cs b/BMA.EHR.Placement.Service/Controllers/PlacementReceiveController.cs index 2522ba48..4d61fc21 100644 --- a/BMA.EHR.Placement.Service/Controllers/PlacementReceiveController.cs +++ b/BMA.EHR.Placement.Service/Controllers/PlacementReceiveController.cs @@ -654,18 +654,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 = uppdated.profileId, - }); - } + // 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 = uppdated.profileId, + // }); + // } uppdated.posmasterId = req.posmasterId; uppdated.node = req.node; uppdated.nodeId = req.nodeId; diff --git a/BMA.EHR.Retirement.Service/Controllers/RetirementOtherController.cs b/BMA.EHR.Retirement.Service/Controllers/RetirementOtherController.cs index 36771b58..110aa01b 100644 --- a/BMA.EHR.Retirement.Service/Controllers/RetirementOtherController.cs +++ b/BMA.EHR.Retirement.Service/Controllers/RetirementOtherController.cs @@ -168,7 +168,7 @@ namespace BMA.EHR.Retirement.Service.Controllers p.Status, p.Amount, p.ReportingDate, - + p.CreatedAt, p.Reason, p.MilitaryDate, @@ -268,7 +268,7 @@ namespace BMA.EHR.Retirement.Service.Controllers p.posTypeName, p.posLevelId, p.posLevelName, - + p.rootOld, p.rootOldId, p.rootShortNameOld, @@ -297,7 +297,7 @@ namespace BMA.EHR.Retirement.Service.Controllers p.Status, p.Amount, p.ReportingDate, - + p.CreatedAt, p.Reason, p.MilitaryDate, @@ -458,8 +458,8 @@ namespace BMA.EHR.Retirement.Service.Controllers .FirstOrDefaultAsync(x => x.Id == id); if (uppdated == null) return Error(GlobalMessages.RetirementOtherNotFound, 404); - - var apiUrl = $"{_configuration["API"]}/org/find/all"; + + var apiUrl = $"{_configuration["API"]}/org/find/all"; using (var client = new HttpClient()) { @@ -498,18 +498,18 @@ namespace BMA.EHR.Retirement.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 = uppdated.profileId, - }); - } + // 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 = uppdated.profileId, + // }); + // } uppdated.posmasterId = req.posmasterId; uppdated.node = req.node; uppdated.nodeId = req.nodeId;