@using Bowin.Web.Controls.Mvc; @using EMIS.Web.Controls; @{ ViewBag.Title = "List"; ComboGridOptions cgopCollege = new ComboGridOptions { TextField = "Name", ValueField = "CollegeID", ID = "CollegeDropdown", Name = "CollegeDropdown", OnSelect = "queryCollege", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center } }, OnLoadSuccessFun = "reload", IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/College/ListOnlyCollege"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false, } }; ComboGridOptions cgopStandard = new ComboGridOptions { TextField = "StandardName", ValueField = "StandardID", OnSelect = "queryClass", Name = "DictionaryStandard", ID = "DictionaryStandard", GridOptions = new DataGridOptions { Columns = new List() { new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Grademajor/StandardBindComboGridOptions"), IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false, } }; } @section scripts{ }
@Html.Position()
查询条件
@*@Html.PositionCondition()*@
  • @EMIS.Utility.RSL.Get("Campus"):
  • @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/Campus/CampusDropdownListBanid"), ID = "CampusDropdown", Name = "CampusDropdown", OnSelect = "QueryCampusDropdownList" }, new Dictionary { { "data-condition", "dgClassmajorList" } })
  • @EMIS.Utility.RSL.Get("College"):
  • @Html.ComboGrid(cgopCollege, new Dictionary { { "data-condition", "dgClassmajorList" } })
  • @*
  • @EMIS.Utility.RSL.Get("College"):
  • @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/College/CollegeDropdownListBanid"), ID = "CollegeDropdown", Name = "CollegeDropdown", OnSelect = "QueryCollegeDropdownList" }, new Dictionary { { "data-condition", "dgClassmajorList" } })
  • *@
  • 年级:
  • @Html.SchoolYearDropDownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "DictionarySchoolyear", Name = "DictionarySchoolyear", OnSelect = "queryGrademajor" }, new Dictionary { { "data-condition", "dgClassmajorList" } })
  • 专业名称:
  • @Html.ComboGrid(cgopStandard, new Dictionary { { "data-condition", "dgClassmajorList" } })
  • @*
  • 标准专业:
  • @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_Standard, new DropdownListOptions { Name = "DictionaryStandard", BindType = DropdownListBindType.SelectAll, OnSelect = "QueryStandardDropdownList" }, new Dictionary { { "data-condition", "dgClassmajorList" } })
  • *@
  • @Html.RSLabel("EducationID"):
  • @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_Education, new DropdownListOptions { Name = "DictionaryEducation", BindType = DropdownListBindType.SelectAll, OnSelect = "QueryEducationDropdownList" }, new Dictionary { { "data-condition", "dgClassmajorList" } })
  • @*
  • 年级:
  • @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_Grade, new DropdownListOptions { Name = "DictionarySchoolyear", BindType = DropdownListBindType.SelectAll, OnSelect = "QuerySchoolyearDropdownList" }, new Dictionary { { "data-condition", "dgClassmajorList" } })
  • *@
排课班级列表
@Html.ContextMenuBar("List")
@Html.DataGrid(new DataGridOptions { Columns = new List() { new CheckBoxFieldColumn{ HeaderText="", FieldName="ClassmajorID" }, new LinkButtonColumn { FieldName="No", HeaderText="班级编号", Align=AlignStyle.Center , Handle="edit",Width=0.055 }, new BoundFieldColumn { FieldName="Name", HeaderText="班级名称", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="LearnSystem", HeaderText="学制", Align=AlignStyle.Center,Width=0.015 }, new BoundFieldColumn { FieldName="SchoolyearID", HeaderText="年级", Align=AlignStyle.Center,Width=0.018 }, new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="GrademajorName", HeaderText="年级专业", Align=AlignStyle.Center }, new BoundFieldColumn { FieldName="StandardID", HeaderText="专业名称", Align=AlignStyle.Center ,IsHidden=true}, new LinkButtonColumn { Text="编辑", HeaderText="", Align=AlignStyle.Center, Handle="edit",Width=0.018 } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Classmajor/List"), ID = "dgClassmajorList", IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false })