@model EMIS.ViewModel.EvaluationManage.EvaluationTable.EvaluationNormDetailView @using EMIS.Web.Controls; @using Bowin.Web.Controls.Mvc; @{ ViewBag.Title = "DetailEdit"; var isEnable = Request["type"] == "detail" ? false : true; } @section scripts{ }
@using (Ajax.BeginForm(new AjaxOptions { OnSuccess = "EMISFunction.FormSuccess", OnBegin = "EMISFunction.FormSubmit", OnComplete = "EMISFunction.FormComplete" })) {
@if (Request["type"] != "detail") { @Html.ContextMenuBar("DetailEdit") }
@Html.HiddenFor(x => x.EvaluationNormDetailID)
@Html.LabelFor(x => x.OrderNo): @Html.TextBoxFor(x => x.OrderNo, new TextBoxOptions() { IsEnabled = isEnable }) @Html.LabelFor(x => x.Name): @Html.TextBoxFor(x => x.Name, new TextBoxOptions() { IsEnabled = isEnable })
@Html.LabelFor(x => x.Weight): @Html.TextBoxFor(x => x.Weight, new TextBoxOptions() { IsEnabled = isEnable })%
@Html.LabelFor(x => x.Remark): @if (!isEnable) { @Html.TextAreaFor(x => x.Remark, new Dictionary { { "style", "width: 90%;min-height: 20px" }, { "disabled", "true" } }) } else { @Html.TextAreaFor(x => x.Remark, new Dictionary { { "style", "width: 90%;min-height: 20px" } }) }
}