@model EMIS.ViewModel.EvaluationManage.EvaluationSetting.EvaluationNeedView @using EMIS.Web.Controls; @using Bowin.Web.Controls.Mvc; @{ ViewBag.Title = "Edit"; 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("Edit") }
@Html.HiddenFor(x => x.EvaluationNeedID)
@Html.LabelFor(x => x.Code): @Html.TextBoxFor(x => x.Code, new TextBoxOptions() { IsEnabled = isEnable }) @Html.LabelFor(x => x.Title): @Html.TextBoxFor(x => x.Title, new TextBoxOptions() { IsEnabled = isEnable })
@Html.LabelFor(x => x.ParticipateTypeID): @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.EM_ParticipateType, (x => x.ParticipateTypeID), DropdownListBindType.PleaseSelect, new ComboGridOptions() { IsEnabled = isEnable }) @Html.LabelFor(x => x.IsEnabledName): @if (!isEnable) { @Html.CheckBoxFor(x => x.IsEnabled, new Dictionary() { { "disabled", isEnable } }) } else { @Html.CheckBoxFor(x => x.IsEnabled) }
@Html.LabelFor(x => x.Content): @if (!isEnable) { @Html.TextAreaFor(x => x.Content, new Dictionary { { "style", "width: 90%;min-height: 80px" }, { "disabled", "true" } }) } else { @Html.TextAreaFor(x => x.Content, new Dictionary { { "style", "width: 90%;min-height: 80px" } }) }
@Html.LabelFor(x => x.Remark): @if (!isEnable) { @Html.TextAreaFor(x => x.Remark, new Dictionary { { "style", "width: 90%;min-height: 30px" }, { "disabled", "true" } }) } else { @Html.TextAreaFor(x => x.Remark, new Dictionary { { "style", "width: 90%;min-height: 30px" } }) }
}