@model AMESCoreStudio.WebApi.Models.BAS.FlowRule @{ ViewData["Title"] = "BAS009C"; Layout = "~/Views/Shared/_FormLayout.cshtml"; } <style> .control-label { justify-content: flex-end !important; } </style> <div class="row"> <div class="col-sm-12"> <form enctype="multipart/form-data" method="post" asp-action="BAS009Save"> <div asp-validation-summary="ModelOnly" class="text-danger"></div> <input type="hidden" asp-for="SysType" value="U" /> <div class="form-group form-inline my-sm-1"> <label asp-for="UnitNo" class="control-label col-sm-3"></label> <select asp-for="UnitNo" asp-items="@ViewBag.UnitList" class="custom-select col-sm-9"></select> <span asp-validation-for="UnitNo" class="text-danger offset-sm-3 my-sm-1"></span> </div> <div class="form-group form-inline my-sm-1"> <label asp-for="FlowRuleName" class="control-label col-sm-3"></label> <input asp-for="FlowRuleName" class="form-control col-sm-9" placeholder="請輸入流程名稱" /> <span asp-validation-for="FlowRuleName" class="text-danger offset-sm-3 my-sm-1"></span> </div> <div class="form-group form-inline my-sm-1"> <label asp-for="FlowRuleDesc" class="control-label col-sm-3"></label> <input id="test1" asp-for="FlowRuleDesc" class="form-control col-sm-9" placeholder="請輸入流程描述" /> <span asp-validation-for="FlowRuleDesc" class="text-danger offset-sm-3 my-sm-1"></span> </div> <div class="form-group form-inline my-sm-1"> <label asp-for="FlowType" class="control-label col-sm-3"></label> <div class="col-sm-9"> <div class="radio icheck-primary form-check-inline"> <input type="radio" id="S" asp-for="FlowType" value="S" /> <label for="S"> 正常流程 </label> </div> <div class="radio icheck-primary form-check-inline"> <input type="radio" id="R" asp-for="FlowType" value="R" /> <label for="R"> 重工流程 </label> </div> </div> <span asp-validation-for="FlowType" class="text-danger offset-sm-3 my-sm-1"></span> </div> <div class="form-group form-inline my-sm-1"> <label asp-for="ProcessTypeNo" class="control-label col-sm-3"></label> <select asp-for="ProcessTypeNo" asp-items="@ViewBag.ProcessTypeList" class="custom-select col-sm-9"></select> <span asp-validation-for="ProcessTypeNo" class="text-danger offset-sm-3 my-sm-1"></span> </div> <span style="color: firebrick;word-break: break-all;" class="text-danger offset-sm-3">@Html.ValidationMessage("error")</span> <div class="form-group"> <input type="submit" value="保存" class="btn btn-primary offset-sm-3" /> </div> </form> </div> </div> @section Scripts { @{ await Html.RenderPartialAsync("_ValidationScriptsPartial"); await Html.RenderPartialAsync("_FileinputScriptsPartial"); } <script type="text/javascript"> $(document).ready(function () { var error = '@Html.ValidationMessage("error")'; if ($(error).text() != '') { parent.hg.msg(error); } }); </script> }