|
|
@ -1556,8 +1556,8 @@ namespace AMESCoreStudio.Web.Controllers |
|
|
|
model.wipBarcode = model.wipBarcodes.FirstOrDefault(); |
|
|
|
model.ruleStations = await _pcsApi.GetRuleStationByWipNo(model.wipInfo.WipNO); |
|
|
|
|
|
|
|
var q1 = await _pcsApi.GetMaterialSopQuery(itemNo: model.wipAtt.ItemNO); |
|
|
|
model.materialSops = q1.Data; |
|
|
|
//var q1 = await _pcsApi.GetMaterialSopQuery(itemNo: model.wipAtt.ItemNO);
|
|
|
|
//model.materialSops = q1.Data;
|
|
|
|
|
|
|
|
model.wipBoard = await _pcsApi.GetWipBoard(model.wipInfo.WipNO); |
|
|
|
if (model.wipBoard != null) |
|
|
@ -3439,7 +3439,6 @@ namespace AMESCoreStudio.Web.Controllers |
|
|
|
// 抓作業站順序
|
|
|
|
model.RuleStation = RuleStations.Where(w => w.StationID == model.Station).Select(s => s.RuleStationID).FirstOrDefault(); |
|
|
|
model.StationSEQ = RuleStations.Where(w => w.StationID == model.Station).Select(s => s.Sequence).FirstOrDefault(); |
|
|
|
model.StationTestType = RuleStations.Where(w => w.StationID == model.Station).Select(s => s.Station.TestType).FirstOrDefault(); |
|
|
|
} |
|
|
|
// 判斷是否有$符號,代表有不良代碼
|
|
|
|
if (model.Inputs.Where(w => w.Contains("$")).Any()) |
|
|
@ -3466,15 +3465,15 @@ namespace AMESCoreStudio.Web.Controllers |
|
|
|
|
|
|
|
// 下一個作業站是完工站時再判斷是否都有刷組件
|
|
|
|
// 判斷組件是否都有輸入
|
|
|
|
if (Kp.Count() != 0) |
|
|
|
{ |
|
|
|
var CheckBarCodeKP = await _pcsApi.CheckBarCodeKP(model.WipNO, model.Input, model.UnitNO, Kp); |
|
|
|
if (!CheckBarCodeKP.Success) |
|
|
|
return Json(new Result() { success = CheckBarCodeKP.Success, msg = CheckBarCodeKP.Msg, data = Data }); |
|
|
|
//if (Kp.Count() != 0)
|
|
|
|
//{
|
|
|
|
// var CheckBarCodeKP = await _pcsApi.CheckBarCodeKP(model.WipNO, model.Input, model.UnitNO, Kp);
|
|
|
|
// if (!CheckBarCodeKP.Success)
|
|
|
|
// return Json(new Result() { success = CheckBarCodeKP.Success, msg = CheckBarCodeKP.Msg, data = Data });
|
|
|
|
|
|
|
|
if (CheckBarCodeKP.Data != null) |
|
|
|
ExtNo = CheckBarCodeKP.Data.FirstOrDefault(); |
|
|
|
} |
|
|
|
// if (CheckBarCodeKP.Data != null)
|
|
|
|
// ExtNo = CheckBarCodeKP.Data.FirstOrDefault();
|
|
|
|
//}
|
|
|
|
|
|
|
|
var keyParts = new List<BarCodeCheckDto.inputItem>(); |
|
|
|
// 先查詢已綁定組件數量
|
|
|
|