@using Bowin.Web.Controls.Mvc; @using EMIS.Entities; @using EMIS.Web.Controls; @{ ViewBag.Title = "List"; } @section scripts{ }
@Html.Position()
查询条件
@Html.PositionCondition()
  • 学年学期:
  • @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/SchoolYear/DropDown"), ID = "SchoolyearDropdown", Name = "SchoolyearDropdown", OnSelect = "reload", OnLoadSuccess = "reload", SelectedValue = BaseExtensions.GetCurrentSchoolYearID() }, new Dictionary { { "data-condition", "dgSelectCourseControlList" } })
  • 年级:
  • @Html.SchoolYearDropDownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "SchoolyearDictionaryDropDown", Name = "SchoolyearDictionaryDropDown", OnSelect = "reload" }, new Dictionary { { "data-condition", "dgSelectCourseControlList" } })
任选控制列表
@Html.ContextMenuBar("List")
@Html.PositionBatchModify()
@Html.DataGrid(new DataGridOptions { Columns = new List() { new CheckBoxFieldColumn{ HeaderText="", FieldName="FreeSelectionCourseGradeYearSettingID"}, new LinkButtonColumn { FieldName="SchoolyearCode", HeaderText="学年学期", Align=AlignStyle.Center, Handle="edit", Width=0.06 }, new BoundFieldColumn { FieldName="GradeYear", HeaderText="年级", Align=AlignStyle.Center, Width=0.03 }, new BoundFieldColumn { FieldName="MinSelectCount", HeaderText="门数下限", Align=AlignStyle.Center, Width=0.04 }, new BoundFieldColumn { FieldName="MaxSelectCount", HeaderText="门数上限", Align=AlignStyle.Center, Width=0.04 }, new BoundFieldColumn { FieldName="MinCredit", HeaderText="学分下限", Align=AlignStyle.Center, Width=0.04 }, new BoundFieldColumn { FieldName="MaxCredit", HeaderText="学分上限", Align=AlignStyle.Center, Width=0.04 }, new BoundFieldColumn { FieldName="StartTime", HeaderText="开始时间", Formatter=Formatter.LongDate, Align=AlignStyle.Center, Width=0.12 }, new BoundFieldColumn { FieldName="EndTime", HeaderText="结束时间", Formatter=Formatter.LongDate, Align=AlignStyle.Center, Width=0.12 }, new BoundFieldColumn { FieldName="Remark", HeaderText="备注", Formatter=Formatter.LongDate, Align=AlignStyle.Center, Width=0.03, OverflowLength=5 } }, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/FreeSelectionCouseControl/List"), ID = "dgSelectCourseControlList", IsPagination = true, IsShowRowNumbers = true, IsSingleSelect = false })