|
@ -22,7 +22,7 @@ |
|
|
<div class="col-sm-12"> |
|
|
<div class="col-sm-12"> |
|
|
<form id="form" enctype="multipart/form-data" class="layui-form" method="post" asp-action="REP001RSave"> |
|
|
<form id="form" enctype="multipart/form-data" class="layui-form" method="post" asp-action="REP001RSave"> |
|
|
<div asp-validation-summary="ModelOnly" class="text-danger"></div> |
|
|
<div asp-validation-summary="ModelOnly" class="text-danger"></div> |
|
|
<input type="hidden" asp-for="ngComponent.ComponentID" /> |
|
|
<input id="txtComponentID" name="txtComponentID" type="hidden" asp-for="ngComponent.ComponentID" /> |
|
|
<input type="hidden" asp-for="ngComponent.NgID" /> |
|
|
<input type="hidden" asp-for="ngComponent.NgID" /> |
|
|
<input type="hidden" asp-for="ngComponent.PinQty" /> |
|
|
<input type="hidden" asp-for="ngComponent.PinQty" /> |
|
|
<input type="hidden" asp-for="ngComponent.CreateUserID" /> |
|
|
<input type="hidden" asp-for="ngComponent.CreateUserID" /> |
|
@ -42,7 +42,7 @@ |
|
|
<input type="hidden" asp-for="ngRepair.CreateUserID" /> |
|
|
<input type="hidden" asp-for="ngRepair.CreateUserID" /> |
|
|
<input type="hidden" asp-for="ngRepair.CreateDate" /> |
|
|
<input type="hidden" asp-for="ngRepair.CreateDate" /> |
|
|
|
|
|
|
|
|
<input type="hidden" asp-for="ngInfo.NgID" /> |
|
|
<input id="txtNgID" name="txtNgID" type="hidden" asp-for="ngInfo.NgID" /> |
|
|
<input type="hidden" asp-for="ngInfo.TypeNo" /> |
|
|
<input type="hidden" asp-for="ngInfo.TypeNo" /> |
|
|
<input type="hidden" asp-for="ngInfo.OperatorID" /> |
|
|
<input type="hidden" asp-for="ngInfo.OperatorID" /> |
|
|
<input type="hidden" asp-for="ngInfo.ProgramNo" /> |
|
|
<input type="hidden" asp-for="ngInfo.ProgramNo" /> |
|
@ -241,7 +241,7 @@ |
|
|
<div class="layui-inline"> |
|
|
<div class="layui-inline"> |
|
|
<label asp-for="repairRecord.RepairDesc" class="layui-form-label"></label> |
|
|
<label asp-for="repairRecord.RepairDesc" class="layui-form-label"></label> |
|
|
<div class="layui-input-inline"> |
|
|
<div class="layui-input-inline"> |
|
|
<input asp-for="repairRecord.RepairDesc" class="layui-input" autocomplete="off" style="width:810px;" readonly /> |
|
|
<input asp-for="repairRecord.RepairDesc" class="layui-input" autocomplete="off" style="width:810px;" /> |
|
|
<span asp-validation-for="repairRecord.RepairDesc" class="layui-bg-red"></span> |
|
|
<span asp-validation-for="repairRecord.RepairDesc" class="layui-bg-red"></span> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
@ -330,7 +330,7 @@ |
|
|
<div class="layui-inline"> |
|
|
<div class="layui-inline"> |
|
|
<label asp-for="ngRepair.RepairDesc" class="layui-form-label"></label> |
|
|
<label asp-for="ngRepair.RepairDesc" class="layui-form-label"></label> |
|
|
<div class="layui-input-inline"> |
|
|
<div class="layui-input-inline"> |
|
|
<input asp-for="ngRepair.RepairDesc" class="layui-input" autocomplete="off" style="width:810px;" /> |
|
|
<input id="txtRepairDesc" name="txtRepairDesc" asp-for="ngRepair.RepairDesc" class="layui-input" autocomplete="off" style="width:810px;" /> |
|
|
<span asp-validation-for="ngRepair.RepairDesc" class="layui-bg-red"></span> |
|
|
<span asp-validation-for="ngRepair.RepairDesc" class="layui-bg-red"></span> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
@ -354,7 +354,7 @@ |
|
|
<div style="text-align:center"> |
|
|
<div style="text-align:center"> |
|
|
<div class="layui-inline"> |
|
|
<div class="layui-inline"> |
|
|
<span style="color: firebrick;word-break: break-all;" class="text-danger offset-sm-3">@Html.ValidationMessage("error")</span> |
|
|
<span style="color: firebrick;word-break: break-all;" class="text-danger offset-sm-3">@Html.ValidationMessage("error")</span> |
|
|
|
|
|
<button type="button" id="btnSave" class="layui-btn">維修描述暫存</button> |
|
|
<button id="btnOK" type="button" class="layui-btn" lay-submit lay-filter="*">確認</button> |
|
|
<button id="btnOK" type="button" class="layui-btn" lay-submit lay-filter="*">確認</button> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
@ -513,6 +513,27 @@ |
|
|
|
|
|
|
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
$('#btnSave').click(function () { |
|
|
|
|
|
var ng_id = $('#txtNgID').val(); |
|
|
|
|
|
var component_id = $('#txtComponentID').val(); |
|
|
|
|
|
var repair_desc = $('#txtRepairDesc').val(); |
|
|
|
|
|
$.ajax({ |
|
|
|
|
|
url: '@Url.Action("SaveRepairDesc", "REP")', |
|
|
|
|
|
dataType: 'json', |
|
|
|
|
|
data: { "ng_id": ng_id, "component_id": component_id, "repair_desc": repair_desc }, |
|
|
|
|
|
cache: false, |
|
|
|
|
|
type: "POST", |
|
|
|
|
|
success: function (data, textStatus, jqXHR) { |
|
|
|
|
|
if (data._msg != undefined) { |
|
|
|
|
|
parent.hg.msg(data._msg); |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
error: function (jqXHR, textStatus, errorThrown) { |
|
|
|
|
|
alert("Found error when using Ajax!!"); |
|
|
|
|
|
} |
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
var tableCols = [[ |
|
|
var tableCols = [[ |
|
|
{ |
|
|
{ |
|
|