@using Bowin.Web.Controls.Mvc; @using EMIS.Web.Controls; @{ ViewBag.Title = "List"; //上课类型 ComboGridOptions cgopTeachType = new ComboGridOptions { TextField = "ClassName", ValueField = "ClassGroupingID", ID = "TeachTypeDropdown", Name = "TeachTypeDropdown", OnSelect = "reload", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="ClassName", HeaderText="上课类型", Align=AlignStyle.Center, Width=0.12 } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/TeachType/List"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false, } }; } @section scripts{ }
@Html.Position()
查询条件
@Html.PositionCondition()
  • 课程级别:
  • @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_CourseLevel, DropdownListBindType.SelectAll, new ComboGridOptions { ID = "DictionaryCourseLevel", Name = "DictionaryCourseLevel", OnSelect = "reload" }, new Dictionary { { "data-condition", "dgClubCourseList" } })
  • 课程科类:
  • @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_CourseScience, DropdownListBindType.SelectAll, new ComboGridOptions { ID = "DictionaryCourseScience", Name = "DictionaryCourseScience", OnSelect = "reload" }, new Dictionary { { "data-condition", "dgClubCourseList" } })
  • 上课类型:
  • @Html.ComboGrid(cgopTeachType, new Dictionary { { "data-condition", "dgClubCourseList" } })
  • 是否启用:
  • @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_GeneralPurpose, new DropdownListOptions { ID = "DictionaryIsEnable", Name = "DictionaryIsEnable", BindType = DropdownListBindType.SelectAll, //SelectedValue = (int)EMIS.ViewModel.CF_GeneralPurpose.IsYes, OnSelect = "reload" }, new Dictionary { { "data-condition", "dgClubCourseList" } })
俱乐部课程列表
@Html.ContextMenuBar("List")
@*@Html.PositionBatchModify()*@
@Html.DataGrid(new DataGridOptions { Columns = new List() { new CheckBoxFieldColumn{ HeaderText="", FieldName="ClubCourseID" }, new BoundFieldColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center, Width=0.06 }, new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center, Width=0.1, OverflowLength=15 }, new BoundFieldColumn { FieldName="Abbreviation", HeaderText="课程简称", Align=AlignStyle.Center, Width=0.08, OverflowLength=10 }, new BoundFieldColumn { FieldName="CourseLevelName", HeaderText="课程级别", Align=AlignStyle.Center, OrderFieldName="CourseLevelID", Width=0.04 }, new BoundFieldColumn { FieldName="CourseScienceName", HeaderText="课程科类", Align=AlignStyle.Center, OrderFieldName="CourseScienceID", Width=0.04 }, new BoundFieldColumn { FieldName="ClassName", HeaderText="上课类型", Align=AlignStyle.Center, Width=0.04, CustomFormatFun="SetRedColumn" }, new BoundFieldColumn { FieldName="IsEnableName", HeaderText="是否启用", Align=AlignStyle.Center, OrderFieldName="IsEnable", Width=0.04, CustomFormatFun="SetRedColumn" } }, CustomerRowStyleFun = "SetRedGrid", IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/ClubCourse/List"), ID = "dgClubCourseList", IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false })