@using Bowin.Web.Controls.Mvc;
@using EMIS.Web.Controls;
@{
ViewBag.Title = "CoursesTimeList";
}
@section scripts{
}
@Html.DataGrid(new DataGridOptions
{
Columns = new List()
{
new CheckBoxFieldColumn{ HeaderText="", FieldName="CoursesTimeID"},
new BoundFieldColumn { FieldName="StartTimes", HeaderText="开始节次", Align=AlignStyle.Center , Width=0.1 },
new BoundFieldColumn { FieldName="EndTimes", HeaderText="结束节次", Align=AlignStyle.Center, Width=0.1 },
new BoundFieldColumn { FieldName="TimesSegmentName", HeaderText="时间段", Align=AlignStyle.Center, Width=0.15 },
new BoundFieldColumn { FieldName="StartDate", HeaderText="开始时间", CustomFormatFun="formatStartTime", Align=AlignStyle.Center, Width=0.15 },
new BoundFieldColumn { FieldName="EndDate", HeaderText="结束时间", CustomFormatFun="formatEndTime", Align=AlignStyle.Center, Width=0.15 },
new BoundFieldColumn { FieldName="Workhours", HeaderText="学时数", Align=AlignStyle.Center, Width=0.1 }
},
PageSize = 20,
IsCheckOnSelect = true,
DataSourceUrl = Url.Content("~/CoursesTime/List"),
ID = "dgCoursesTimeList",
IsPagination = true,
IsShowRowNumbers = true,
IsSingleSelect = false
})