|
|
@ -1425,8 +1425,9 @@ namespace AMESCoreStudio.Web.Controllers |
|
|
|
} |
|
|
|
|
|
|
|
#region PCS005 工單資料查詢
|
|
|
|
public IActionResult PCS005() |
|
|
|
public async Task<IActionResult> PCS005() |
|
|
|
{ |
|
|
|
await GetFactoryUnit(); |
|
|
|
return View(); |
|
|
|
} |
|
|
|
|
|
|
@ -1435,11 +1436,13 @@ namespace AMESCoreStudio.Web.Controllers |
|
|
|
/// </summary>
|
|
|
|
/// <param name="unitno">生產單位</param>
|
|
|
|
/// <param name="wipno">工單號碼</param>
|
|
|
|
/// <param name="itemNo">料號</param>
|
|
|
|
/// <returns></returns>
|
|
|
|
public async Task<IActionResult> PCS005QueryAsync(string unitno, string wipno, int page = 1, int limit = 10) |
|
|
|
public async Task<IActionResult> PCS005QueryAsync(string unitno, string wipNo, string itemNo, int page = 0, int limit = 10) |
|
|
|
{ |
|
|
|
IResultModel<dynamic> result = await _pcsApi.GetWipInfoSelectParameter(unitno: unitno |
|
|
|
, wipno: wipno |
|
|
|
, wipno: wipNo |
|
|
|
, itemno: itemNo |
|
|
|
, page: page |
|
|
|
, limit: limit); |
|
|
|
|
|
|
@ -1510,7 +1513,7 @@ namespace AMESCoreStudio.Web.Controllers |
|
|
|
|
|
|
|
if (result_dy.Count > 0) |
|
|
|
{ |
|
|
|
return Json(new Table() { code = 0, msg = "", data = result_dy, count = result_dy.Count }); |
|
|
|
return Json(new Table() { code = 0, msg = "", data = result_dy, count = result.DataTotal }); |
|
|
|
} |
|
|
|
return Json(new Table() { count = 0, data = null }); |
|
|
|
} |
|
|
|