5 changed files with 230 additions and 1 deletions
@ -0,0 +1,56 @@ |
|||||
|
@model AMESCoreStudio.WebApi.Models.BAS.FlowRule |
||||
|
|
||||
|
|
||||
|
@{ ViewData["Title"] = "BAS009Copy"; |
||||
|
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="BAS009CopySave"> |
||||
|
<div asp-validation-summary="ModelOnly" class="text-danger"></div> |
||||
|
|
||||
|
<div class="form-group form-inline my-sm-1"> |
||||
|
<label class="control-label col-sm-3">複製流程來源</label> |
||||
|
<select asp-for="FlowRuleID" asp-items="@ViewBag.FlowRuleList" class="custom-select col-sm-9"></select> |
||||
|
<span asp-validation-for="FlowRuleID" 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> |
||||
|
<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> |
||||
|
|
||||
|
|
||||
|
} |
Loading…
Reference in new issue