@model EMIS.ViewModel.StudentManage.OnlineChecking.OpenObjectView @using EMIS.Web.Controls; @using Bowin.Web.Controls.Mvc; @{ ViewBag.Title = "Edit"; var isEnable = Request["type"] == "detail" ? false : true; var isDisable = Request["type"] == "detail" ? false : (Request["type"] == "edit" ? false : true); }
@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.StudentEditObjectsID)
@Html.LabelFor(x => x.EducationID): @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_Education, (x => x.EducationID), DropdownListBindType.PleaseSelect, new ComboGridOptions() { IsEnabled = isDisable }) @Html.LabelFor(x => x.SchoolyearNumID): @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_SchoolyearNum, (x => x.SchoolyearNumID), DropdownListBindType.PleaseSelect, new ComboGridOptions() { IsEnabled = isDisable })
@Html.LabelFor(x => x.Starttime): @Html.TextBoxFor(x => x.Starttime, new TextBoxOptions { TextBoxType = TextBoxType.DateTime, IsEnabled = isEnable }) @Html.LabelFor(x => x.Endtime): @Html.TextBoxFor(x => x.Endtime, new TextBoxOptions { TextBoxType = TextBoxType.DateTime, 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" } }) }
}
@section scripts{ }