|
|
@ -6538,14 +6538,21 @@ namespace AMESCoreStudio.Web.Controllers |
|
|
|
public async Task<IActionResult> PCS024C(string id) |
|
|
|
{ |
|
|
|
var result = await _pcsApi.GetBarcodeInfoesByNo(id); |
|
|
|
|
|
|
|
if (result.Count > 0) |
|
|
|
{ |
|
|
|
var tt = result[0]; |
|
|
|
ViewBag.BarcodeID = tt.BarcodeID; |
|
|
|
ViewBag.WipID = tt.WipID; |
|
|
|
ViewBag.BarcodeNo = id; |
|
|
|
|
|
|
|
await GetFactoryUnit(); |
|
|
|
//await GetStations();
|
|
|
|
await GetItems(); |
|
|
|
} |
|
|
|
else |
|
|
|
{ |
|
|
|
ViewBag.BarcodeNo = "查無序號請重新輸入"; |
|
|
|
} |
|
|
|
return View(); |
|
|
|
} |
|
|
|
|
|
|
@ -6570,6 +6577,20 @@ namespace AMESCoreStudio.Web.Controllers |
|
|
|
return Json(new Result() { success = true, msg = "" }); |
|
|
|
} |
|
|
|
|
|
|
|
[HttpGet] |
|
|
|
public async Task<IActionResult> GetBarcodeInfoesByNoAsync(string id) |
|
|
|
{ |
|
|
|
var result = await _pcsApi.GetBarcodeInfoesByNo(id); |
|
|
|
|
|
|
|
if (result.Count > 0) |
|
|
|
{ |
|
|
|
return Json(new Table() { code = 0, msg = "", data = result, count = 1 }); |
|
|
|
} |
|
|
|
|
|
|
|
return Json(new Table() { count = 0, data = null }); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//頁面提交,id=0 添加,id>0 修改
|
|
|
|
[HttpPost] |
|
|
|
public async Task<IActionResult> PCS024CSaveAsync(BarcodeItem model) |
|
|
@ -8362,4 +8383,7 @@ namespace AMESCoreStudio.Web.Controllers |
|
|
|
return (T)property.GetCustomAttributes(attributeType, false).FirstOrDefault(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|