@using Bowin.Web.Controls.Mvc; @using EMIS.Web.Controls; @{ ViewBag.Title = "List"; //院系所 ComboGridOptions cgopCollege = new ComboGridOptions { TextField = "Name", ValueField = "CollegeID", OnSelect = "queryClass", ID = "CollegeDropdown", Name = "CollegeDropdown", GridOptions = new DataGridOptions { Columns = new List() { //new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Align=AlignStyle.Center, Width=0.1 }, new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center, Width=0.2 } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/College/ListOnlyCollege"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false, } }; //班级 ComboGridOptions cgopClassmajor = new ComboGridOptions { TextField = "Name", ValueField = "ClassmajorID", Name = "ClassmajorDropdown", ID = "ClassmajorDropdown", OnSelect = "queryClass", GridOptions = new DataGridOptions { Columns = new List() { //new LinkButtonColumn { FieldName="No", HeaderText="班级编号", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="Name", HeaderText="班级名称", Align=AlignStyle.Center } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Classmajor/List"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false } }; //专业名称 ComboGridOptions cgopStandard = new ComboGridOptions { TextField = "StandardName", ValueField = "StandardID", OnSelect = "queryStandard", ID = "StandardDictionaryDropDown", Name = "StandardDictionaryDropDown", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="StandardCode", HeaderText="专业代码", Align=AlignStyle.Center, Width=0.06 }, new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center, Width=0.1 } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Grademajor/StandardBindComboGridOptions"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false, } }; } @section scripts{ }
@Html.Position()
查询条件
@Html.PositionCondition()
@Html.Hidden("SelectedID")
  • @Html.RSLabel("College"):
  • @Html.ComboGrid(cgopCollege, new Dictionary { { "data-condition", "dgMinorClassList" } })
  • 年级:
  • @Html.SchoolYearDropDownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "SchoolyearDictionaryDropDown", Name = "SchoolyearDictionaryDropDown", OnSelect = "queryClass" }, new Dictionary { { "data-condition", "dgMinorClassList" } })
  • 辅修专业名称:
  • @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_Standard, DropdownListBindType.SelectAll, new ComboGridOptions { ID = "MinorStandardDropDown", Name = "MinorStandardDropDown", OnSelect = "reload" }, new Dictionary { { "data-condition", "dgMinorClassList" } })
  • @*
  • 状态:
  • @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_ClassminorStatus, new DropdownListOptions { ID = "DictionaryClassminorStatus", Name = "DictionaryClassminorStatus", BindType = DropdownListBindType.SelectAll, OnSelect = "reload" }, new Dictionary { { "data-condition", "dgMinorClassList" } })
  • *@
辅修班级列表
@Html.ContextMenuBar("List")
@*@Html.PositionBatchModify()*@
@Html.DataGrid(new DataGridOptions { Columns = new List() { new CheckBoxFieldColumn{ HeaderText="", FieldName="ClassminorID" }, new BoundFieldColumn { FieldName="SchoolyearCode", HeaderText="学年学期", Align=AlignStyle.Center, Width=0.07 }, new BoundFieldColumn { FieldName="Grade", HeaderText="年级", Align=AlignStyle.Center, Width=0.05 }, new BoundFieldColumn { FieldName="StandardCode", HeaderText="专业代码", Align=AlignStyle.Center, Width=0.05 }, new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center, Width=0.04 }, new BoundFieldColumn { FieldName="Name", HeaderText="辅修班级", Align=AlignStyle.Center, Width=0.12 }, new LinkButtonColumn { FieldName="StudentNum", HeaderText="学生人数", Align=AlignStyle.Center, Handle = "StudentList", Width=0.04 }, //new BoundFieldColumn { FieldName="RecordStatusStr", HeaderText="状态", Align=AlignStyle.Center, Width=0.04 }, }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/MinorClass/List"), ID = "dgMinorClassList", IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false })