@using Bowin.Web.Controls.Mvc; @using EMIS.Web.Controls; @{ ViewBag.Title = "CoursematerialSelect"; } @section scripts{ }
课程列表
@Html.PositionCondition("CoursematerialSelect", null)
  • 课程科类:
  • @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_CourseScience, new DropdownListOptions { Name = "DictionaryCourseScience", BindType = DropdownListBindType.SelectAll, OnSelect = "reload" }, new Dictionary { { "data-condition", "dgCoursematerialList" } })
  • 课程级别:
  • @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_CourseLevel, new DropdownListOptions { Name = "DictionaryCourseLevel", BindType = DropdownListBindType.SelectAll, OnSelect = "reload" }, new Dictionary { { "data-condition", "dgCoursematerialList" } })
  • 是否启用:
  • @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_GeneralPurpose, new DropdownListOptions { Name = "DictionaryIsEnable", BindType = DropdownListBindType.SelectAll, OnSelect = "reload", SelectedValue = (int)EMIS.ViewModel.CF_GeneralPurpose.IsYes, OnLoadSuccess = "reload" }, new Dictionary { { "data-condition", "dgCoursematerialList" } })
课程资料列表
@Html.DataGrid(new DataGridOptions { Columns = new List() { new CheckBoxFieldColumn{ HeaderText="", FieldName="CoursematerialID" }, new LinkButtonColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center , Handle="edit", Width=0.1 }, new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center, OverflowLength=36, Width=0.3 }, new BoundFieldColumn { FieldName="CourseLevelName", HeaderText="课程级别", Align=AlignStyle.Center, Width=0.1 }, new BoundFieldColumn { FieldName="CourseScienceName", HeaderText="课程科类码", Align=AlignStyle.Center, Width=0.2 }, new BoundFieldColumn { FieldName="IsEnableName", HeaderText="是否启用", Align=AlignStyle.Center, Width=0.08 } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Coursematerial/List"), ID = "dgCoursematerialList", IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false })