@using Bowin.Web.Controls.Mvc; @using EMIS.Web.Controls; @{ ViewBag.Title = "List"; ComboGridOptions time = new ComboGridOptions { TextField = "starTime_endTime", ValueField = "CoursesTimeID", OnSelect = "reload", Name = "TimeComboGrid", ID="TimeComboGrid", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="TimesSegmentName", HeaderText="时间段", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="time_starTime_endTime", HeaderText="上课时间", Align=AlignStyle.Center }, }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/CoursesTime/List"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } }; } @section scripts{ }
@Html.Position()
查询条件
  • 年级:
  • @Html.SchoolYearDropDownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "SchoolyearDictionaryDropDown", Name = "SchoolyearDictionaryDropDown", OnSelect = "reload" }, new Dictionary { { "data-condition", "dgList" } })
  • 课时类别:
  • @Html.ComboGrid(time, new Dictionary { { "data-condition", "dgList" } })
  • 查询
学时转换列表
@Html.ContextMenuBar("List")
@Html.PositionBatchModify()
@Html.DataGrid(new DataGridOptions { Columns = new List() { new CheckBoxFieldColumn{ HeaderText="", FieldName="CourseTimeHoursID"}, new LinkButtonColumn { FieldName="Year", HeaderText="年级", Align=AlignStyle.Center , Handle="edit" }, new BoundFieldColumn { FieldName="time_starTime_endTime", HeaderText="课程类别", Align=AlignStyle.Center }, new LinkButtonColumn { FieldName="Hours", HeaderText="学时数", Align=AlignStyle.Center } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/CourseTimeHours/List"), ID = "dgList", IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false })