@using Bowin.Web.Controls.Mvc; @using EMIS.Entities; @using EMIS.Web.Controls; @{ ViewBag.Title = "List"; } @section scripts{ }
@Html.Position()
查询条件
@Html.PositionCondition()
  • 学年:
  • @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_Year, new DropdownListOptions { ID = "DictionarySchoolyear", Name = "DictionarySchoolyear", BindType = DropdownListBindType.SelectAll, OnSelect = "reload" }, new Dictionary { { "data-condition", "dgGraduationSchoolYearList" } })
  • 学期:
  • @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_Semester, new DropdownListOptions { ID = "DictionarySchoolcode", Name = "DictionarySchoolcode", BindType = DropdownListBindType.SelectAll, OnSelect = "reload" }, new Dictionary { { "data-condition", "dgGraduationSchoolYearList" } })
  • 当前学期:
  • @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_GeneralPurpose, new DropdownListOptions { ID = "IsCurrentDropDown", Name = "IsCurrentDropDown", BindType = DropdownListBindType.SelectAll, OnSelect = "reload" }, new Dictionary { { "data-condition", "dgGraduationSchoolYearList" } })
  • 启用状态:
  • @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_GeneralPurpose, new DropdownListOptions { ID = "IsEnableDropDown", Name = "IsEnableDropDown", BindType = DropdownListBindType.SelectAll, OnSelect = "reload" }, new Dictionary { { "data-condition", "dgGraduationSchoolYearList" } })
毕业学期列表
@Html.ContextMenuBar("List")
@Html.DataGrid(new DataGridOptions { Columns = new List() { new CheckBoxFieldColumn{ HeaderText="", FieldName="GraduationSchoolYearSettingID" }, new BoundFieldColumn { FieldName="GraduatingSemesterCode", HeaderText="毕业学期", Align=AlignStyle.Center, Width=0.1 }, new BoundFieldColumn { FieldName="Years", HeaderText="学年", Align=AlignStyle.Center, Width=0.04 }, new BoundFieldColumn { FieldName="SchoolcodeName", HeaderText="学期", OrderFieldName="SchoolcodeID", Align=AlignStyle.Center, Width=0.04 }, new BoundFieldColumn { FieldName="WeeksNum", HeaderText="周数", Align=AlignStyle.Center, Width=0.04 }, new BoundFieldColumn{FieldName="GraduateDate",HeaderText="毕业日期", Align=AlignStyle.Center, Width=0.1, Formatter=Formatter.CHSOnlyYearMonthDay }, new BoundFieldColumn { FieldName="IsCurrentName", HeaderText="是否当前学期",Align=AlignStyle.Center, Width=0.06, CustomFormatFun="SetRedColumn" }, //new BoundFieldColumn { FieldName="IsEnableName", HeaderText="启用状态",Align=AlignStyle.Center, Width=0.04 }, new CheckButtonColumn{ FieldName="IsEnable", HeaderText="启用状态", Align=AlignStyle.Center, Width=0.04, EnableFieldName="false" } }, CustomerRowStyleFun = "SetRedGrid", IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/GraduationSchoolYear/List"), ID = "dgGraduationSchoolYearList", IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false })