|
|
@ -3437,13 +3437,13 @@ namespace AMESCoreStudio.Web.Controllers |
|
|
|
|
|
|
|
[ResponseCache(Duration = 0)] |
|
|
|
[HttpGet] |
|
|
|
public async Task<IActionResult> GetWorkingStationsAsync(int id) |
|
|
|
public async Task<IActionResult> GetWorkingStationsAsync(int id, int page = 0, int limit = 10) |
|
|
|
{ |
|
|
|
var result = await _whsApi.GetWorkingStationsbyMultiUnit(id); |
|
|
|
var result = await _whsApi.GetWorkingStationsbyMultiUnit(id, page, limit ); |
|
|
|
|
|
|
|
if (result.Count > 0) |
|
|
|
if (result.DataTotal > 0) |
|
|
|
{ |
|
|
|
return Json(new Table() { code = 0, msg = "", data = result, count = result.Count }); |
|
|
|
return Json(new Table() { code = 0, msg = "", data = result.Data, count = result.DataTotal }); |
|
|
|
} |
|
|
|
|
|
|
|
return Json(new Table() { count = 0, data = null }); |
|
|
@ -3452,13 +3452,13 @@ namespace AMESCoreStudio.Web.Controllers |
|
|
|
|
|
|
|
[ResponseCache(Duration = 0)] |
|
|
|
[HttpGet] |
|
|
|
public async Task<IActionResult> GetWorkingLinesAsync(int id) |
|
|
|
public async Task<IActionResult> GetWorkingLinesAsync(int id, int page = 0, int limit = 10) |
|
|
|
{ |
|
|
|
// var result = await _whsApi.GetWorkingLinesbyUnit(id);
|
|
|
|
var result = await _whsApi.GetWorkingLinesbyMultiUnit(id); |
|
|
|
if (result.Count > 0) |
|
|
|
var result = await _whsApi.GetWorkingLinesbyMultiUnit(id, page, limit); |
|
|
|
if (result.DataTotal > 0) |
|
|
|
{ |
|
|
|
return Json(new Table() { code = 0, msg = "", data = result, count = result.Count }); |
|
|
|
return Json(new Table() { code = 0, msg = "", data = result.Data, count = result.DataTotal }); |
|
|
|
} |
|
|
|
|
|
|
|
return Json(new Table() { count = 0, data = null }); |
|
|
@ -3630,9 +3630,9 @@ namespace AMESCoreStudio.Web.Controllers |
|
|
|
{ |
|
|
|
// var result = await _whsApi.GetWorkingLinesbyUnit(id);
|
|
|
|
var result = await _whsApi.GetWorkingLinesbyMultiUnit(id); |
|
|
|
if (result.Count> 0) |
|
|
|
if (result.DataTotal > 0) |
|
|
|
{ |
|
|
|
return Json(new Table() { code = 0, msg = "", data = result, count = result.Count }); |
|
|
|
return Json(new Table() { code = 0, msg = "", data = result.Data, count = result.DataTotal }); |
|
|
|
} |
|
|
|
|
|
|
|
return Json(new Table() { count = 0, data = null }); |
|
|
|