@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.DropdownList(new DropdownListOptions { ID = "SchoolyearDropdown", Name = "SchoolyearDropdown", BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/SchoolYear/DropDown"), OnSelect = "reload", SelectedValue = BaseExtensions.GetCurrentSchoolYearID() }, new Dictionary { { "data-condition", "dgMinorRegistList" } })
  • @Html.RSLabel("College"):
  • @Html.ComboGrid(cgopCollege, new Dictionary { { "data-condition", "dgMinorRegistList" } })
  • 年级:
  • @Html.SchoolYearDropDownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "SchoolyearDictionaryDropDown", Name = "SchoolyearDictionaryDropDown", OnSelect = "queryClass" }, new Dictionary { { "data-condition", "dgMinorRegistList" } })
  • 专业名称:
  • @Html.ComboGrid(cgopStandard, new Dictionary { { "data-condition", "dgMinorRegistList" } })
  • 班级名称:
  • @Html.ComboGrid(cgopClassmajor, new Dictionary { { "data-condition", "dgMinorRegistList" } })
  • 辅修专业:
  • @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_Standard, DropdownListBindType.SelectAll, new ComboGridOptions { ID = "MinorStandardDropDown", Name = "MinorStandardDropDown", OnSelect = "reload" }, new Dictionary { { "data-condition", "dgMinorRegistList" } })
辅修名单
@Html.ContextMenuBar("List")
@*@Html.PositionBatchModify()*@
@Html.DataGrid(new DataGridOptions { Columns = new List() { new CheckBoxFieldColumn{ HeaderText="", FieldName="StudentMinorRegistID" }, new BoundFieldColumn { FieldName="SchoolyearCode", HeaderText="学年学期", Align=AlignStyle.Center, Width=0.07 }, new BoundFieldColumn { FieldName="GrademajorName", HeaderText="年级专业", Align=AlignStyle.Center, Width=0.1 }, new BoundFieldColumn { FieldName="ClassmajorName", HeaderText="班级名称", Align=AlignStyle.Center, Width=0.1 }, new BoundFieldColumn { FieldName="LoginID", HeaderText="学号", Align=AlignStyle.Center, Width=0.04 }, new BoundFieldColumn { FieldName="UserName", HeaderText="姓名", Align=AlignStyle.Center, Width=0.04 }, new BoundFieldColumn { FieldName="GrademinorCode", HeaderText="辅修专业代码", Align=AlignStyle.Center, Width=0.04 }, new BoundFieldColumn { FieldName="GrademinorName", HeaderText="辅修专业名称", Align=AlignStyle.Center, Width=0.04 }, new ApproveStatusColumn { FieldName="RecordStatusStr", TableName=typeof(EMIS.Entities.EM_StudentMinorRegist).Name, IDFieldName="StudentMinorRegistID", HeaderText="状态", Align=AlignStyle.Center, Width=0.03 } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/MinorRegistList/List"), ID = "dgMinorRegistList", IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false })