@model EMIS.ViewModel.EnrollManage.SpecialtyManage.SpecialtyView @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.SpecialtyID)
@Html.LabelFor(x => x.StandardName): @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_Standard, (x => x.StandardID),DropdownListBindType.PleaseSelect, new ComboGridOptions { OnSelect = "QueryStandard", IsEnabled = isEnable, GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="Code", HeaderText="专业代码", Align=AlignStyle.Center, Width=0.1 }, new BoundFieldColumn { FieldName="Name", HeaderText="专业名称", Align=AlignStyle.Center, Width=0.2 } } } }) @Html.LabelFor(x => x.Code): @Html.TextBoxFor(x => x.Code, new TextBoxOptions() { IsEnabled = false })
@Html.LabelFor(x => x.EducationID): @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_Education, (x => x.EducationID), DropdownListBindType.PleaseSelect, new ComboGridOptions() { IsEnabled = isEnable }) @Html.LabelFor(x => x.LearningformID): @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_Learningform, (x => x.LearningformID), DropdownListBindType.PleaseSelect, new ComboGridOptions() { IsEnabled = isEnable })
@Html.LabelFor(x => x.LearnSystem): @Html.TextBoxFor(x => x.LearnSystem, new TextBoxOptions() { IsEnabled = isEnable }) @Html.LabelFor(x => x.ScienceclassID): @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_Scienceclass, (x => x.ScienceclassID), DropdownListBindType.PleaseSelect, new ComboGridOptions() { IsEnabled = isEnable })
@Html.LabelFor(x => x.PropertyID): @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_Property, (x => x.PropertyID), DropdownListBindType.PleaseSelect, new ComboGridOptions() { IsEnabled = isEnable }) @Html.LabelFor(x => x.StandardTitle): @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_StandardTitle, (x => x.StandardTitle), DropdownListBindType.PleaseSelect, new ComboGridOptions() { IsEnabled = isEnable })
@Html.LabelFor(x => x.StandardLevel): @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_StandardLevel, (x => x.StandardLevel), DropdownListBindType.PleaseSelect, new ComboGridOptions() { IsEnabled = isEnable }) @Html.LabelFor(x => x.RecordStatus): @Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.SYS_STATUS, (x => x.RecordStatus), DropdownListBindType.PleaseSelect, new ComboGridOptions() { IsEnabled = isEnable })
@Html.LabelFor(x => x.Remark): @if (!isEnable) { @Html.TextAreaFor(x => x.Remark, new Dictionary { { "style", "width: 90%;min-height: 50px" }, { "disabled", "true" } }) } else { @Html.TextAreaFor(x => x.Remark, new Dictionary { { "style", "width: 90%;min-height: 50px" } }) }
}