@model EMIS.ViewModel.Specialtyclass.GrademajorView @using EMIS.Web.Controls; @using Bowin.Web.Controls.Mvc; @{ ViewBag.Title = "BatchAdd"; //院系所 ComboGridOptions cgopCollege = new ComboGridOptions { TextField = "Name", ValueField = "CollegeID", OnSelect = "QueryComboGridList", 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/GrademajorBindComboGridOptions"), 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.SchoolyearID): @*@Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_Schoolyear, x => x.SchoolyearID, DropdownListBindType.PleaseSelect, new ComboGridOptions() { OnSelect = "QueryComboGridList" })*@ @Html.SchoolYearDropDownListFor(x => x.SchoolyearID, new DropdownListOptions() { OnSelect = "QueryComboGridList" })
@Html.LabelFor(x => x.StandardName): @Html.ComboGridFor(x => x.StandardID, cgopStandard)
@Html.LabelFor(x => x.BatchSchoolyearID): @*@Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_Schoolyear, x => x.BatchSchoolyearID, DropdownListBindType.PleaseSelect)*@ @Html.SchoolYearDropDownListFor(x => x.BatchSchoolyearID) @Html.LabelFor(x => x.IsOverwrite): @Html.CheckBoxFor((x => x.IsOverwrite))
}