@model EMIS.ViewModel.UniversityManage.SpecialtyClassManage.GrademajorView @using EMIS.Web.Controls; @using Bowin.Web.Controls.Mvc; @{ ViewBag.Title = "BatchAdd"; //院系所 ComboGridOptions cgopCollege = new ComboGridOptions { TextField = "Name", ValueField = "CollegeID", OnSelect = "queryCollege", GridOptions = new DataGridOptions { Columns = new List() { new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Align=AlignStyle.Center, Width=0.1 }, new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center, Width=0.3 }, new BoundFieldColumn { FieldName="CampusName", HeaderText=@EMIS.Utility.RSL.Get("CampusName"), Align=AlignStyle.Center, Width=0.3 } }, PageSize = 5, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/College/ListOnlyCollege"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } }; //专业名称 ComboGridOptions cgopStandard = new ComboGridOptions { TextField = "StandardName", ValueField = "StandardID", ID = "DictionaryStandard", Name = "DictionaryStandard", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="StandardCode", HeaderText="专业代码", Align=AlignStyle.Center, Width=0.1 }, new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center, Width=0.2 } }, PageSize = 5, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Grademajor/StandardBindComboGridOptions"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false, } }; } @section scripts{ }
@using (Ajax.BeginForm(new AjaxOptions { OnSuccess = "EMISFunction.FormSuccess", OnBegin = "EMISFunction.FormSubmit", OnComplete = "EMISFunction.FormComplete" })) {
@Html.ContextMenuBar("BatchSave")
@Html.LabelFor(x => x.CollegeID): @Html.ComboGridFor(x => x.CollegeID, cgopCollege) @Html.LabelFor(x => x.GradeID): @Html.SchoolYearDropDownListFor(x => x.GradeID, new DropdownListOptions() { OnSelect = "queryGrade" })
@Html.LabelFor(x => x.StandardName): @Html.ComboGridFor(x => x.StandardID, cgopStandard)
@Html.LabelFor(x => x.BatchGradeID): @Html.SchoolYearDropDownListFor(x => x.BatchGradeID) @Html.LabelFor(x => x.IsOverwrite): @Html.CheckBoxFor((x => x.IsOverwrite))
}