@model EMIS.ViewModel.SelectCourse.ExaminationSubjectCollegeControlView @using EMIS.Web.Controls; @using Bowin.Web.Controls.Mvc; @{ ViewBag.Title = "Add"; ComboGridOptions cgExaminationSubject = new ComboGridOptions { TextField = "Name", ValueField = "ExaminationSubjectID", Name = "ExaminationSubjectDropdown", ID = "ExaminationSubjectDropdown", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="Name", HeaderText="考试科目名称", Align=AlignStyle.Center } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/ExaminationSubject/List"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } }; ComboGridOptions FacultymajorCom = new ComboGridOptions { TextField = "Name", ValueField = "FacultymajorID", Name = "FacultymajorDropdown", ID = "FacultymajorDropdown", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="Name", HeaderText="院系专业名称", Align=AlignStyle.Center }, }, IsCheckOnSelect = true, IsPostBack = true, DataSourceUrl = Url.Content("~/Facultymajor/List"), ID = "dgFacultymajorList", IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false, } }; }
@using (Ajax.BeginForm(new AjaxOptions { OnSuccess = "EMISFunction.FormSuccess", OnBegin = "EMISFunction.FormSubmit", OnComplete = "EMISFunction.FormComplete" })) { @Html.HiddenFor(x => x.ExaminationSubjectCollegeControlID)
专业报考限制修改
@Html.ContextMenuBar("Edit")
@Html.LabelFor(x => x.ExaminationTypeID): @Html.DropdownListFor((x => x.ExaminationTypeID), new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect, ItemSourceUrl = Url.Content("~/ExaminationType/DropdownList") }) @Html.LabelFor(x => x.ExaminationSubjectName): @Html.ComboGridFor(x => x.ExaminationSubjectID, cgExaminationSubject)
@Html.LabelFor(x => x.SchoolyearNumID): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_SchoolyearNum, x => x.SchoolyearNumID, new DropdownListOptions { BindType = DropdownListBindType.SelectAll }) @Html.LabelFor(x => x.FacultymajorName): @Html.ComboGridFor(x => x.FacultymajorID, FacultymajorCom)
}
@section scripts{ }