From 6dcc4989ac7cce7db594dabda2d5492300d8faf1 Mon Sep 17 00:00:00 2001 From: ivanszabo Date: Thu, 20 Mar 2025 13:44:24 +0100 Subject: [PATCH] =?UTF-8?q?Equipment=20sync=20jav=C3=ADt=C3=A1sa?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controllers/SyncController.cs | 20 +++++++++---------- .../Equipments/EquipmentsPage.cshtml | 2 +- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/WorkFlowCheck.API/Controllers/SyncController.cs b/src/WorkFlowCheck.API/Controllers/SyncController.cs index 4adf57f..ee3795d 100644 --- a/src/WorkFlowCheck.API/Controllers/SyncController.cs +++ b/src/WorkFlowCheck.API/Controllers/SyncController.cs @@ -88,19 +88,19 @@ namespace WorkFlowCheck.API.Controllers [HttpGet("GetEquipment/{id}")] - public async Task> GetEquipmentAsync(int id) + public async Task> GetEquipmentAsync(int id) { - var retVal = new ApiResponseDTO() + var retVal = new ApiResponseDTO() { IsSuccess = true, }; - var checkPointListDTO = await _syncService.GetCheckPointAsync(id); + var equipmentDTO = await _syncService.GetEquipmentAsync(id); - if (checkPointListDTO != null) + if (equipmentDTO != null) { retVal.IsSuccess = true; - retVal.Data = checkPointListDTO; + retVal.Data = equipmentDTO; } else { @@ -157,19 +157,19 @@ namespace WorkFlowCheck.API.Controllers [HttpGet("GetLocation/{id}")] - public async Task> GetLocationAsync(int id) + public async Task> GetLocationAsync(int id) { - var retVal = new ApiResponseDTO() + var retVal = new ApiResponseDTO() { IsSuccess = true, }; - var checkPointListDTO = await _syncService.GetCheckPointAsync(id); + var locationDTO = await _syncService.GetLocationAsync(id); - if (checkPointListDTO != null) + if (locationDTO != null) { retVal.IsSuccess = true; - retVal.Data = checkPointListDTO; + retVal.Data = locationDTO; } else { diff --git a/src/WorkFlowCheck.Web/Pages/BaseStock/Equipments/EquipmentsPage.cshtml b/src/WorkFlowCheck.Web/Pages/BaseStock/Equipments/EquipmentsPage.cshtml index bf94237..14d80b1 100644 --- a/src/WorkFlowCheck.Web/Pages/BaseStock/Equipments/EquipmentsPage.cshtml +++ b/src/WorkFlowCheck.Web/Pages/BaseStock/Equipments/EquipmentsPage.cshtml @@ -71,7 +71,7 @@ $('#tbEquipmentsPage').on('click', '.edit-btn', function () { const row = table.row($(this).closest('tr')).data(); - window.location.href = `@Url.Page("./EquipmentEditPage")?id=${row.id}`; + window.location.href = `@Url.Page("/BaseStock/Equipments/EquipmentEditPage")?id=${row.id}`; }); $('#tbEquipmentsPage').on('click', '.delete-btn', function ()