@using Bowin.Web.Controls.Mvc;
@using EMISOnline.Entities;
@using EMISOnline.Web.Controls;
@{
ViewBag.Title = "List";
}
@Html.Position()
@Html.DataGrid(new DataGridOptions
{
Columns = new List()
{
new CheckBoxFieldColumn{ HeaderText="", FieldName="UserID"},
new LinkButtonColumn { FieldName="test_paper_name", HeaderText="试卷名称", Align=AlignStyle.Center,Handle="edit" },
new BoundFieldColumn { FieldName="WorkName", HeaderText="作业名称", Align=AlignStyle.Center },
new BoundFieldColumn { FieldName="test_begin_date", HeaderText="开始时间", Align=AlignStyle.Center, Formatter= Formatter.OnlyYearMonthDay},
new BoundFieldColumn { FieldName="test_end_date", HeaderText="结束时间", Align=AlignStyle.Center , Formatter= Formatter.OnlyYearMonthDay },
new BoundFieldColumn { FieldName="status", HeaderText="作业状态", Align=AlignStyle.Center },
new LinkButtonColumn { HeaderText="操作", Align=AlignStyle.Center, Text="进入作业", Handle="edit"},
},
IsCheckOnSelect = true,
DataSourceUrl = Url.Content("~/MyCoursework/List"),
ID = "dgList",
IsPagination = true,
IsShowRowNumbers = true,
IsSingleSelect = false,
IsVerticalExpand = true,
IsAutoHeight = false,
})
@section scripts{
}