@using Bowin.Web.Controls.Mvc;
@using EMIS.Entities;
@using EMIS.Web.Controls;
@{
ViewBag.Title = "List";
}
@section scripts{
}
@Html.Position()
@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
})