@using EMIS.Web.Controls; @using Bowin.Web.Controls.Mvc; @{ ViewBag.Title = "GrademajorList"; Guid? facultymajorID = new Guid(Request["facultymajorID"]); int? inschoolstatus = Convert.ToInt32(Request["inschoolstatus"] == null ? "-1" : Request["inschoolstatus"]); } @section scripts{ }
@Html.PositionCondition("FacultymajorGrademajor")
  • 年级:
  • @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_Grade, DropdownListBindType.SelectAll, new ComboGridOptions { ID = "DictionaryGrade", Name = "DictionaryGrade", OnSelect = "reload" }, new Dictionary { { "data-condition", "dgGrademajorList" } })
  • 入学学期:
  • @Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_Semester, DropdownListBindType.SelectAll, new ComboGridOptions { ID = "DictionarySemester", Name = "DictionarySemester", OnSelect = "reload" }, new Dictionary { { "data-condition", "dgGrademajorList" } })
  • 在校状态:
  • @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_INOrOutSchoolStatus, new DropdownListOptions { ID = "DictionaryInschoolStatus", Name = "DictionaryInschoolStatus", BindType = DropdownListBindType.SelectAll, OnSelect = "reload", SelectedValue = (int)inschoolstatus }, new Dictionary { { "data-condition", "dgGrademajorList" } })
@Html.ContextMenuBar("GrDetail")
@Html.DataGrid(new DataGridOptions { Columns = new List() { new CheckBoxFieldColumn{ HeaderText="", FieldName="GrademajorID" }, new BoundFieldColumn { FieldName="Code", HeaderText="年级专业编号", Align=AlignStyle.Center, Width=0.1 }, new BoundFieldColumn { FieldName="Name", HeaderText="年级专业名称", Align=AlignStyle.Center, Width=0.15 }, new BoundFieldColumn { FieldName="GradeID", HeaderText="年级", Align=AlignStyle.Center, OrderFieldName="GradeID", Width=0.03, CustomFormatFun="SetRedColumn" }, new BoundFieldColumn { FieldName="SemesterName", HeaderText="入学学期", Align=AlignStyle.Center, OrderFieldName="SemesterID", Width=0.04 }, new BoundFieldColumn { FieldName="GraduateSchoolyearCode", HeaderText="毕业学期", Align=AlignStyle.Center, Width=0.08 }, new BoundFieldColumn { FieldName="StudentCount", HeaderText="人数", Align=AlignStyle.Center, Width=0.03, CustomFormatFun="SetRedColumn" } }, IsPostBack = true, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/Facultymajor/GrademajorList?facultymajorID=" + facultymajorID), ID = "dgGrademajorList", IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false })