|
|
@ -1,8 +1,10 @@ |
|
|
|
@model AMESCoreStudio.WebApi.Models.AMES.OutfitStatusLog |
|
|
|
|
|
|
|
|
|
|
|
@{ ViewData["Title"] = "SPC005B"; |
|
|
|
Layout = "~/Views/Shared/_FormLayout.cshtml"; } |
|
|
|
@{ |
|
|
|
ViewData["Title"] = "SPC005B"; |
|
|
|
Layout = "~/Views/Shared/_FormLayout.cshtml"; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
<style> |
|
|
@ -40,6 +42,13 @@ |
|
|
|
</select> |
|
|
|
<span asp-validation-for="StatusUserID" class="text-danger offset-sm-3 my-sm-1"></span> |
|
|
|
</div> |
|
|
|
<div class="form-group form-inline my-sm-1"> |
|
|
|
<label class="control-label col-sm-3">測試桌號</label> |
|
|
|
<select id="StatusUserID" asp-for="TableNo" asp-items="@ViewBag.OutfitTableNo" class="custom-select col-sm-9"> |
|
|
|
<option value="">請選擇</option> |
|
|
|
</select> |
|
|
|
<span asp-validation-for="StatusUserID" class="text-danger offset-sm-3 my-sm-1"></span> |
|
|
|
</div> |
|
|
|
<div class="form-group form-inline my-sm-1"> |
|
|
|
<label class="control-label col-sm-3">預計歸還日期</label> |
|
|
|
<input asp-for="StatusDate" type="date" class="form-control col-sm-9" /> |
|
|
@ -47,9 +56,13 @@ |
|
|
|
</div> |
|
|
|
<div class="form-group form-inline my-sm-1"> |
|
|
|
<label asp-for="WipNo" class="control-label col-sm-3"></label> |
|
|
|
<input asp-for="WipNo" class="form-control col-sm-9" /> |
|
|
|
<input asp-for="WipNo" class="form-control col-sm-9" onkeypress="if( event.keyCode == 13 ) { return false; }" onchange="getItemNo(this);" /> |
|
|
|
<span asp-validation-for="WipNo" class="text-danger offset-sm-3 my-sm-1"></span> |
|
|
|
</div> |
|
|
|
<div class="form-group form-inline my-sm-1"> |
|
|
|
<label class="control-label col-sm-3">工程編號</label> |
|
|
|
<input id="ItemNo" name="ItemNo" class="form-control col-sm-9" readonly="" /> |
|
|
|
</div> |
|
|
|
<div class="form-group form-inline my-sm-1"> |
|
|
|
<label asp-for="Remark" class="control-label col-sm-3"></label> |
|
|
|
<input asp-for="Remark" class="form-control col-sm-9" /> |
|
|
@ -65,8 +78,10 @@ |
|
|
|
</div> |
|
|
|
|
|
|
|
@section Scripts { |
|
|
|
@{ await Html.RenderPartialAsync("_ValidationScriptsPartial"); |
|
|
|
await Html.RenderPartialAsync("_FileinputScriptsPartial"); } |
|
|
|
@{ |
|
|
|
await Html.RenderPartialAsync("_ValidationScriptsPartial"); |
|
|
|
await Html.RenderPartialAsync("_FileinputScriptsPartial"); |
|
|
|
} |
|
|
|
|
|
|
|
<script type="text/javascript"> |
|
|
|
$(document).ready(function () { |
|
|
@ -112,6 +127,28 @@ |
|
|
|
}); |
|
|
|
}; |
|
|
|
|
|
|
|
//工程編號 |
|
|
|
function getItemNo(val) { |
|
|
|
if (val.value.length != 0) { |
|
|
|
$.ajax( |
|
|
|
{ |
|
|
|
url: "@Url.Action("getItemNo", "JIG")", |
|
|
|
dataType: 'json', |
|
|
|
data: { "wipNo": val.value }, |
|
|
|
type: 'post', |
|
|
|
success: function (result) { |
|
|
|
$("#ItemNo").val(result.data); |
|
|
|
}, |
|
|
|
error: function (result) { |
|
|
|
alert(result); |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
else |
|
|
|
{ |
|
|
|
$("#ItemNo").val(''); |
|
|
|
} |
|
|
|
}; |
|
|
|
</script> |
|
|
|
|
|
|
|
|
|
|
|