|
@ -270,10 +270,10 @@ |
|
|
<div class="layui-input-inline" style="width:130px"> |
|
|
<div class="layui-input-inline" style="width:130px"> |
|
|
<input asp-for="wipBarcodeOther.EndNO" class="layui-input" readonly="readonly" /> |
|
|
<input asp-for="wipBarcodeOther.EndNO" class="layui-input" readonly="readonly" /> |
|
|
</div> |
|
|
</div> |
|
|
<div class="layui-input-inline" style="width:130px"> |
|
|
<div class="layui-input-inline" style="width:130px;display:none"> |
|
|
<input id="DeleteBarcodeOther" class="layui-btn layui-btn-primary layui-border-red layui-btn-sm" type="button" value="刪除出貨序號" /> |
|
|
<input id="DeleteBarcodeOther" class="layui-btn layui-btn-primary layui-border-red layui-btn-sm" type="button" value="刪除出貨序號" /> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<div id="barcodeOtherDiv" style="display:inline;"> |
|
|
<div id="barcodeOtherDiv" style="display:inline;"> |
|
|
<label class="layui-form-label">lotNo</label> |
|
|
<label class="layui-form-label">lotNo</label> |
|
|
<div class="layui-input-inline" style="width:100px;"> |
|
|
<div class="layui-input-inline" style="width:100px;"> |
|
@ -499,9 +499,18 @@ |
|
|
<label class="layui-form-label">DIP</label> |
|
|
<label class="layui-form-label">DIP</label> |
|
|
<div class="layui-input-block"> |
|
|
<div class="layui-input-block"> |
|
|
<cl-checkbox asp-items="@ViewBag.GetCheckboxDIP" asp-for="wipBoard.DipSides" asp-skin="defult"></cl-checkbox> |
|
|
<cl-checkbox asp-items="@ViewBag.GetCheckboxDIP" asp-for="wipBoard.DipSides" asp-skin="defult"></cl-checkbox> |
|
|
<input @if (Model.wipBoard != null) { @(Model.wipBoard.DipCarrier == "Y" ? "checked" : "") } type="checkbox" title="CARRIER" name="wipBoard.DipCarrier" /> |
|
|
<input @if (Model.wipBoard != null) |
|
|
<input @if (Model.wipBoard != null) { @(Model.wipBoard.DipTape == "Y" ? "checked" : "") } type="checkbox" title="貼付膠帶" name="wipBoard.DipTape" /> |
|
|
{ |
|
|
<input @if (Model.wipBoard != null) { @(Model.wipBoard.DipSolderMask == "Y" ? "checked" : "") } type="checkbox" title="點防焊膠" name="wipBoard.DipSolderMask" /> |
|
|
@(Model.wipBoard.DipCarrier == "Y" ? "checked" : "") |
|
|
|
|
|
} type="checkbox" title="CARRIER" name="wipBoard.DipCarrier" /> |
|
|
|
|
|
<input @if (Model.wipBoard != null) |
|
|
|
|
|
{ |
|
|
|
|
|
@(Model.wipBoard.DipTape == "Y" ? "checked" : "") |
|
|
|
|
|
} type="checkbox" title="貼付膠帶" name="wipBoard.DipTape" /> |
|
|
|
|
|
<input @if (Model.wipBoard != null) |
|
|
|
|
|
{ |
|
|
|
|
|
@(Model.wipBoard.DipSolderMask == "Y" ? "checked" : "") |
|
|
|
|
|
} type="checkbox" title="點防焊膠" name="wipBoard.DipSolderMask" /> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
@ -517,7 +526,10 @@ |
|
|
<div class="layui-inline"> |
|
|
<div class="layui-inline"> |
|
|
<label class="layui-form-label">燒錄</label> |
|
|
<label class="layui-form-label">燒錄</label> |
|
|
<div class="layui-input-inline"> |
|
|
<div class="layui-input-inline"> |
|
|
<input @if (Model.wipBoard != null) { @(Model.wipBoard.Burn == "Y" ? "checked" : "") } type="checkbox" title="是否燒入" name="wipBoard.Burn" /> |
|
|
<input @if (Model.wipBoard != null) |
|
|
|
|
|
{ |
|
|
|
|
|
@(Model.wipBoard.Burn == "Y" ? "checked" : "") |
|
|
|
|
|
} type="checkbox" title="是否燒入" name="wipBoard.Burn" /> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<label class="layui-form-label">燒機位置</label> |
|
|
<label class="layui-form-label">燒機位置</label> |
|
@ -538,7 +550,10 @@ |
|
|
<div class="layui-inline"> |
|
|
<div class="layui-inline"> |
|
|
<label class="layui-form-label">零件烘烤</label> |
|
|
<label class="layui-form-label">零件烘烤</label> |
|
|
<div class="layui-input-inline"> |
|
|
<div class="layui-input-inline"> |
|
|
<input @if (Model.wipBoard != null) { @(Model.wipBoard.ISPartsBake == "Y" ? "checked" : "") } type="checkbox" title="零件是否需要烘烤" name="wipBoard.ISPartsBake" /> |
|
|
<input @if (Model.wipBoard != null) |
|
|
|
|
|
{ |
|
|
|
|
|
@(Model.wipBoard.ISPartsBake == "Y" ? "checked" : "") |
|
|
|
|
|
} type="checkbox" title="零件是否需要烘烤" name="wipBoard.ISPartsBake" /> |
|
|
</div> |
|
|
</div> |
|
|
<label class="layui-form-label">零件烘烤溫度</label> |
|
|
<label class="layui-form-label">零件烘烤溫度</label> |
|
|
<div class="layui-input-inline" style="width:100px"> |
|
|
<div class="layui-input-inline" style="width:100px"> |
|
@ -551,7 +566,10 @@ |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<div class="layui-input-inline"> |
|
|
<div class="layui-input-inline"> |
|
|
<input @if (Model.wipBoard != null) { @(Model.wipBoard.PartsBakeOvertime == "Y" ? "checked" : "") } type="checkbox" title="零件烘烤超過48hrs" name="wipBoard.PartsBakeOvertime" /> |
|
|
<input @if (Model.wipBoard != null) |
|
|
|
|
|
{ |
|
|
|
|
|
@(Model.wipBoard.PartsBakeOvertime == "Y" ? "checked" : "") |
|
|
|
|
|
} type="checkbox" title="零件烘烤超過48hrs" name="wipBoard.PartsBakeOvertime" /> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
@ -567,7 +585,10 @@ |
|
|
<div class="layui-inline"> |
|
|
<div class="layui-inline"> |
|
|
<label class="layui-form-label">PCB烘烤</label> |
|
|
<label class="layui-form-label">PCB烘烤</label> |
|
|
<div class="layui-input-inline"> |
|
|
<div class="layui-input-inline"> |
|
|
<input @if (Model.wipBoard != null) { @(Model.wipBoard.ISPcbBake == "Y" ? "checked" : "") } type="checkbox" title="PCB是否需要烘烤" name="wipBoard.ISPcbBake" /> |
|
|
<input @if (Model.wipBoard != null) |
|
|
|
|
|
{ |
|
|
|
|
|
@(Model.wipBoard.ISPcbBake == "Y" ? "checked" : "") |
|
|
|
|
|
} type="checkbox" title="PCB是否需要烘烤" name="wipBoard.ISPcbBake" /> |
|
|
</div> |
|
|
</div> |
|
|
<div class="layui-input-inline"> |
|
|
<div class="layui-input-inline"> |
|
|
<select asp-items="@ViewBag.GetPCBBakeTypeSelect" asp-for="wipBoard.PcbBake" class=""></select> |
|
|
<select asp-items="@ViewBag.GetPCBBakeTypeSelect" asp-for="wipBoard.PcbBake" class=""></select> |
|
@ -873,7 +894,10 @@ |
|
|
<div class="layui-inline"> |
|
|
<div class="layui-inline"> |
|
|
<label class="layui-form-label">FINE_PACKAGE</label> |
|
|
<label class="layui-form-label">FINE_PACKAGE</label> |
|
|
<div class="layui-input-inline"> |
|
|
<div class="layui-input-inline"> |
|
|
<input @if (Model.wipSystem != null) { @(Model.wipSystem.FinePackage == "Y" ? "checked" : "") } type="checkbox" title="是否為精裝" name="wipSystem.FinePackage" /> |
|
|
<input @if (Model.wipSystem != null) |
|
|
|
|
|
{ |
|
|
|
|
|
@(Model.wipSystem.FinePackage == "Y" ? "checked" : "") |
|
|
|
|
|
} type="checkbox" title="是否為精裝" name="wipSystem.FinePackage" /> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
@ -984,8 +1008,8 @@ |
|
|
SOP文件敘述 |
|
|
SOP文件敘述 |
|
|
</th> |
|
|
</th> |
|
|
@*<th> |
|
|
@*<th> |
|
|
檔案路徑 |
|
|
檔案路徑 |
|
|
</th>*@ |
|
|
</th>*@ |
|
|
<th> |
|
|
<th> |
|
|
SOP類型 |
|
|
SOP類型 |
|
|
</th> |
|
|
</th> |
|
@ -1006,8 +1030,8 @@ |
|
|
<input onkeypress="if( event.keyCode == 13 ) { return false; }" class="layui-input" asp-for="@index.SOPName" name="WipSops[@i].SOPName" /> |
|
|
<input onkeypress="if( event.keyCode == 13 ) { return false; }" class="layui-input" asp-for="@index.SOPName" name="WipSops[@i].SOPName" /> |
|
|
</td> |
|
|
</td> |
|
|
@*<td> |
|
|
@*<td> |
|
|
<input onkeypress="if( event.keyCode == 13 ) { return false; }" class="layui-input" asp-for="@index.SOPPath" name="WipSops[@i].SOPPath" /> |
|
|
<input onkeypress="if( event.keyCode == 13 ) { return false; }" class="layui-input" asp-for="@index.SOPPath" name="WipSops[@i].SOPPath" /> |
|
|
</td>*@ |
|
|
</td>*@ |
|
|
<td> |
|
|
<td> |
|
|
<select asp-for="@index.SOPType" name="WipSops[@i].SOPType" asp-items="@ViewBag.GetSOPTypeSelect" class=""></select> |
|
|
<select asp-for="@index.SOPType" name="WipSops[@i].SOPType" asp-items="@ViewBag.GetSOPTypeSelect" class=""></select> |
|
|
</td> |
|
|
</td> |
|
@ -1280,34 +1304,34 @@ |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
// 刪除出貨序號 |
|
|
// 刪除出貨序號 |
|
|
$("#DeleteBarcodeOther").click(function (event) { |
|
|
$("#DeleteBarcodeOther").click(function (event) { |
|
|
|
|
|
|
|
|
layer.confirm('確定是否要刪除出貨序號?', { |
|
|
layer.confirm('確定是否要刪除出貨序號?', { |
|
|
btn: ['確定', '取消'] |
|
|
btn: ['確定', '取消'] |
|
|
}, function () { |
|
|
}, function () { |
|
|
layer.closeAll('dialog'); |
|
|
layer.closeAll('dialog'); |
|
|
$.ajax({ |
|
|
$.ajax({ |
|
|
url: '@Url.Action("DeleteBarcodeOtherByWipNo", "PCS")', |
|
|
url: '@Url.Action("DeleteBarcodeOtherByWipNo", "PCS")', |
|
|
dataType: 'json', |
|
|
dataType: 'json', |
|
|
data: {"wipNo": '@Model.wipInfo.WipNO'}, |
|
|
data: { "wipNo": '@Model.wipInfo.WipNO' }, |
|
|
cache: false, |
|
|
cache: false, |
|
|
type: "POST", |
|
|
type: "POST", |
|
|
success: function (result) { |
|
|
success: function (result) { |
|
|
// 錯誤訊息 |
|
|
// 錯誤訊息 |
|
|
if (!result.success) { |
|
|
if (!result.success) { |
|
|
parent.hg.msg(result.msg); |
|
|
parent.hg.msg(result.msg); |
|
|
} |
|
|
|
|
|
else { |
|
|
|
|
|
$("#wipBarcodeOther_StartNO").val(''); |
|
|
|
|
|
$("#wipBarcodeOther_EndNO").val(''); |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
error: function (jqXHR, textStatus, errorThrown) { |
|
|
|
|
|
alert("出貨序號刪除失敗,請洽系統管理員!!"); |
|
|
|
|
|
} |
|
|
} |
|
|
}); |
|
|
else { |
|
|
}) |
|
|
$("#wipBarcodeOther_StartNO").val(''); |
|
|
|
|
|
$("#wipBarcodeOther_EndNO").val(''); |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
error: function (jqXHR, textStatus, errorThrown) { |
|
|
|
|
|
alert("出貨序號刪除失敗,請洽系統管理員!!"); |
|
|
|
|
|
} |
|
|
|
|
|
}); |
|
|
|
|
|
}) |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
// 產生MAC |
|
|
// 產生MAC |
|
@ -1325,7 +1349,7 @@ |
|
|
$.ajax({ |
|
|
$.ajax({ |
|
|
url: '@Url.Action("GetMAC", "PCS")', |
|
|
url: '@Url.Action("GetMAC", "PCS")', |
|
|
dataType: 'json', |
|
|
dataType: 'json', |
|
|
data: { "itemno": $("#wipAtt_ItemNO").val(), "wipNo": $('#wipInfo_WipNO').val() ,"planQTY": $('#wipInfo_PlanQTY').val() }, |
|
|
data: { "itemno": $("#wipAtt_ItemNO").val(), "wipNo": $('#wipInfo_WipNO').val(), "planQTY": $('#wipInfo_PlanQTY').val() }, |
|
|
cache: false, |
|
|
cache: false, |
|
|
type: "POST", |
|
|
type: "POST", |
|
|
success: function (data, textStatus, jqXHR) { |
|
|
success: function (data, textStatus, jqXHR) { |
|
@ -1335,7 +1359,7 @@ |
|
|
else { |
|
|
else { |
|
|
var contactdiv = '<tr>' + |
|
|
var contactdiv = '<tr>' + |
|
|
`<td>${data.mix}</td> |
|
|
`<td>${data.mix}</td> |
|
|
<td>${data.max}</td></tr>`; |
|
|
<td>${data.max}</td></tr>`; |
|
|
$('#MACTable').append(contactdiv); |
|
|
$('#MACTable').append(contactdiv); |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
@ -1395,7 +1419,7 @@ |
|
|
$(this).change(function () { |
|
|
$(this).change(function () { |
|
|
var txt = $(this).val(); |
|
|
var txt = $(this).val(); |
|
|
if (txt.length == 0) { |
|
|
if (txt.length == 0) { |
|
|
$(this).closest('div.layui-inline').find('input[id*=' + this.id + '_Desc]').val(''); |
|
|
$(this).closest('div.layui-inline').find('input[id*=' + this.id + '_Desc]').val(''); |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
}) |
|
|
}) |
|
|