@model EMIS.ViewModel.EducationSchedule.ClearAutoScheduleView @using Bowin.Web.Controls.Mvc; @using EMIS.Web.Controls; @{ ComboGridOptions cgop = new ComboGridOptions { TextField = "Name", ValueField = "CollegeID", OnSelect = "SelectCollegeComboGrid", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/College/ListOnlyCollege"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } }; ComboGridOptions cgopClassmajor = new ComboGridOptions { TextField = "Name", ValueField = "ClassmajorID", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="Name", HeaderText="班级名称", Align=AlignStyle.Center } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Classmajor/List"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } }; } @section scripts{ }
@using (Ajax.BeginForm(new AjaxOptions { OnSuccess = "EMISFunction.FormSuccess", OnBegin = "EMISFunction.FormSubmit", OnComplete = "EMISFunction.FormComplete" })) {
重置智能排课结果
@Html.ContextMenuBar("ClearAutoSchedule")
@Html.LabelFor(x => x.SchoolyearID): @Html.DropdownListFor((x => x.SchoolyearID), new DropdownListOptions { BindType = DropdownListBindType.None, ItemSourceUrl = Url.Content("~/SchoolYear/DropDown"), SelectedValue = BaseExtensions.GetCurrentSchoolYearID() }) @Html.LabelFor(x => x.CollegeID): @Html.ComboGridFor((x => x.CollegeID), cgop)
@Html.LabelFor(x => x.Year): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_Grade, (x => x.Year), new DropdownListOptions { BindType = DropdownListBindType.SelectAll, OnSelect = "SelectDictionaryGrade" }) @Html.LabelFor(x => x.StandardID): @Html.DropdownListFor((x => x.StandardID), new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/Facultymajor/BindStandardDropDownList"), Name = "StandardID", ID = "StandardID", OnSelect = "SelectStandard", OnLoadSuccess = "selectClass" })
@Html.LabelFor(x => x.ClassmarjorID): @Html.ComboGridFor((x => x.ClassmarjorID), cgopClassmajor)    
}