You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
@model AMESCoreStudio.Web.ViewModels.PCS.PCS041CViewModel
|
|
|
|
|
|
|
|
@{
|
|
|
|
Layout = "~/Views/Shared/_AMESLayout.cshtml";
|
|
|
|
}
|
|
|
|
|
|
|
|
<style>
|
|
|
|
.control-label {
|
|
|
|
justify-content: flex-end !important;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
|
|
|
|
<div class="layui-card">
|
|
|
|
<form enctype="multipart/form-data" method="post" asp-action="" class="layui-form">
|
|
|
|
<div asp-validation-summary="ModelOnly" class="text-danger"></div>
|
|
|
|
@*<fieldset class="layui-elem-field layui-field-title">
|
|
|
|
*@
|
|
|
|
@foreach (var index in Model.Images)
|
|
|
|
{
|
|
|
|
<span id="Description" style="font-size:24px;color:red">說明:@index.Description</span>
|
|
|
|
@*<img src="@($"../../{index.FilePath}{index.Filename}")" style="width: 100vw;">*@
|
|
|
|
<img src="/PCS/PCS041GetImage?path=@($"{index.FilePath}{index.Filename}")" style="width: 100vw;">
|
|
|
|
}
|
|
|
|
|
|
|
|
<input id="PPID" asp-for="PPID" type="hidden" value="@Model.PPID" />
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
@section Scripts {
|
|
|
|
<script type="text/javascript">
|
|
|
|
layui.use(['form'], function () {
|
|
|
|
var form = layui.form;
|
|
|
|
// 设置下拉框为只读
|
|
|
|
form.on('select(yourSelect)', function (data) {
|
|
|
|
$(data.elem).attr('disabled', true);
|
|
|
|
});
|
|
|
|
form.render();
|
|
|
|
$('select[name=FactoryID]').attr("disabled", "disabled");
|
|
|
|
$('select[name=TypeID]').attr("disabled", "disabled");
|
|
|
|
$('select[name=FactoryID]').attr("disabled", "disabled");
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
}
|