@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); }
@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 |