@model EMIS.ViewModel.ScoreManage.ScoreConvertByLevelView @using EMIS.Web.Controls; @using Bowin.Web.Controls.Mvc; @{ ComboGridOptions cgopcollege = new ComboGridOptions { TextField = "Name", ValueField = "CollegeID", OnSelect = "queryClass", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center, Width=0.3 } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/College/ListOnlyCollege"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } }; ComboGridOptions cgopReplaceCollegeID = new ComboGridOptions { TextField = "Name", ValueField = "CollegeID", OnSelect = "queryReplaceClass", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center, Width=0.3 } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/College/ListOnlyCollege"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } }; ComboGridOptions cgopStandard = new ComboGridOptions { TextField = "StandardName", ValueField = "StandardID", OnSelect = "queryClass", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center, Width=0.1 } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Grademajor/StandardBindComboGridOptions"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false, IsShowHeader = false } }; ComboGridOptions cgopReplaceStandardID = new ComboGridOptions { TextField = "StandardName", ValueField = "StandardID", OnSelect = "queryReplaceClass", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center, Width=0.1 } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Grademajor/StandardBindComboGridOptions"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false, IsShowHeader = false } }; ComboGridOptions cgopClassmajor = new ComboGridOptions { TextField = "Name", ValueField = "ClassmajorID", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="No", HeaderText="班级编号", Align=AlignStyle.Center, Width=0.12 }, new BoundFieldColumn { FieldName="Name", HeaderText="班级名称", Align=AlignStyle.Center, Width=0.3 }, new BoundFieldColumn { FieldName="LearnSystem", HeaderText="学制", Align=AlignStyle.Center, Width=0.06 }, new BoundFieldColumn { FieldName="EducationName", HeaderText=EMIS.Utility.RSL.Get("EducationID"), Align=AlignStyle.Center, Width=0.1 }, new BoundFieldColumn { FieldName="LearningformName", HeaderText="学习形式", Align=AlignStyle.Center, Width=0.15 } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Classmajor/List"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } }; ComboGridOptions cgopReplaceClassmajorID = new ComboGridOptions { TextField = "Name", ValueField = "ClassmajorID", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="No", HeaderText="班级编号", Align=AlignStyle.Center, Width=0.12 }, new BoundFieldColumn { FieldName="Name", HeaderText="班级名称", Align=AlignStyle.Center, Width=0.3 }, new BoundFieldColumn { FieldName="LearnSystem", HeaderText="学制", Align=AlignStyle.Center, Width=0.06 }, new BoundFieldColumn { FieldName="EducationName", HeaderText=EMIS.Utility.RSL.Get("EducationID"), Align=AlignStyle.Center, Width=0.1 }, new BoundFieldColumn { FieldName="LearningformName", HeaderText="学习形式", Align=AlignStyle.Center, Width=0.15 } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Classmajor/List"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } }; ComboGridOptions cgopLevelScore = new ComboGridOptions { TextField = "Name", ValueField = "ExaminationSubjectID", 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 Csop = new ComboGridOptions { TextField = "CourseName", ValueField = "CoursematerialID", ID = "CourseDropdown", Name = "CourseDropdown", GridOptions = new DataGridOptions { Columns = new List() { new LinkButtonColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Coursematerial/ListForDropdown"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } }; } @section scripts{ }
@using (Ajax.BeginForm(new AjaxOptions { OnSuccess = "EMISFunction.FormSuccess", OnBegin = "EMISFunction.FormSubmit", OnComplete = "EMISFunction.FormComplete" })) {
@if (Request["isView"] != "1") {
@Html.ContextMenuBar("Edit")
}
替换的范围:
@Html.LabelFor(x => x.SchoolyearID): @Html.DropdownListFor((x => x.SchoolyearID), new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect, ItemSourceUrl = Url.Content("~/SchoolYear/YearsDropdownListBanid") }) @Html.LabelFor(x => x.CollegeName): @Html.ComboGridFor(x => x.CollegeID, cgopcollege)
@Html.LabelFor(x => x.Year): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_Grade, x => x.Year, new DropdownListOptions { OnSelect = "queryClass" }) @Html.LabelFor(x => x.StandardID): @Html.ComboGridFor(x => x.StandardID, cgopStandard)
@Html.LabelFor(x => x.ClassmajorID): @Html.ComboGridFor(x => x.ClassmajorID, cgopClassmajor) @Html.LabelFor(x => x.ExaminationTypeID): @Html.DropdownListFor((x => x.ExaminationTypeID), new DropdownListOptions { ID = "ExaminationTypeDropdown", Name = "ExaminationTypeDropdown", BindType = DropdownListBindType.PleaseSelect, ItemSourceUrl = Url.Content("~/ExaminationType/DropdownList")})
@Html.LabelFor(x => x.ExaminationFormID): @Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.EX_ExaminationForm, x => x.ExaminationFormID) @Html.LabelFor(x => x.LevelScoreID): @Html.ComboGridFor(x => x.LevelScoreID, cgopLevelScore)
替换认定的课程:
@Html.LabelFor(x=>x.CoursematerialID) @Html.ComboGridFor(x => x.CoursematerialID, Csop)
}