@model EMIS.ViewModel.SelectCourse.OptionalCourseSettingCreateView @using EMIS.Web.Controls; @using Bowin.Web.Controls.Mvc; @{ ViewBag.Title = "Create"; ComboGridOptions cgopSpecialty = new ComboGridOptions { TextField = "SpecialtyName", ValueField = "StandardID", OnSelect = "QueryStandardDropdownList", Name = "StandardID", ID = "StandardID", EmptyText = "全部", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="SpecialtyName", HeaderText="专业名称", Align=AlignStyle.Center } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/TeachingPlan/SpecialtyList"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false, } }; ComboGridOptions cgopYear = new ComboGridOptions { TextField = "Years", ValueField = "Years", OnSelect = "QueryYearDropdownList", Name = "YearID", ID = "YearID", EmptyText = "全部", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="Years", Align=AlignStyle.Center } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/TeachingPlan/DropDown"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false, } }; ComboGridOptions cgopCourse = new ComboGridOptions { TextField = "CourseName", ValueField = "CoursematerialID", Name = "CoursematerialIDDropdownGridBo", ID = "CoursematerialIDDropdownGridBo", OnSelect = "QueryCoursematerialComboGrid", EmptyText = "全部", GridOptions = new DataGridOptions { Columns = new List() { //new LinkButtonColumn { FieldName="CourseCode", HeaderText="课程代码", Width=0.1, Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Width=0.3, 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" })) {
@*
限选任务生成
*@
@Html.ContextMenuBar("Create")
@**@
@Html.LabelFor(x => x.SchoolYearCode) @Html.DropdownListFor((x => x.SchoolyearID), new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect, SelectedValue = ViewBag.SelectSchoolYearID, ItemSourceUrl = Url.Content("~/SchoolYear/DropDownAfterCurrent"), ID = "SchoolYear", Name = "SchoolYear"}) @*@Html.DropdownListFor((x => x.SchoolyearID), new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect, SelectedValue = ViewBag.SelectSchoolYearID, ItemSourceUrl = Url.Content("~/SchoolYear/YearsDropdownListBanid") })*@ @Html.LabelFor(x => x.CampusID) @Html.ComboGridFor((x => x.CampusID), new ComboGridOptions { TextField = "Name", ValueField = "CampusID", OnSelect = "QueryCampusComboGridList", EmptyText = "全部", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CampusName"), Align=AlignStyle.Center } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Campus/List"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false, } }) @Html.LabelFor(x => x.CollegeName) @Html.ComboGridFor((x => x.CollegeID), new ComboGridOptions { TextField = "Name", ValueField = "CollegeID", OnSelect = "QueryCollegeComboGridList", EmptyText = "全部", 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/List"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false, } })
@Html.LabelFor(x => x.Grade) @Html.ComboGridFor((x => x.GradeID), cgopYear, new Dictionary { }) @*@Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/TeachingPlan/DropDown"), TextField = "Text", ValueField = "Value", ID = "YearID", Name = "SchoolyearDropdown", OnSelect = "QueryYearDropdownList", OnLoadSuccess = "" }, new Dictionary { })*@ @*@Html.SchoolYearDropDownListFor((x => x.YearID), new DropdownListOptions { BindType = DropdownListBindType.SelectAll, OnSelect = "QueryYearDropdownList" })*@ @Html.LabelFor(x => x.StandardDesc) @Html.ComboGridFor((x => x.StandardID), cgopSpecialty, new Dictionary { }) @*@Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_Standard, x => x.StandardID, DropdownListBindType.PleaseSelect, new ComboGridOptions { OnSelect = "QueryStandardDropdownList" })*@
@Html.LabelFor(x => x.GrademajorName) @Html.ComboGridFor((x => x.GrademajorID), new ComboGridOptions { ID = "GrademajorID", Name = "GrademajorID", TextField = "Name", ValueField = "GrademajorID", OnSelect = "QueryCollegeComboGridList", EmptyText = "全部", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="Name", HeaderText="年级专业名称", Align=AlignStyle.Center } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Grademajor/List"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } }) @*@Html.ComboGridFor((x => x.GrademajorID), new ComboGridOptions { TextField = "Name", ValueField = "GrademajorID", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="Name", HeaderText="年级专业名称", Align=AlignStyle.Center } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Grademajor/List"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } })*@ @Html.LabelFor(x => x.CourseName) @Html.ComboGridFor((x => x.CoursematerialID), cgopCourse)
}