@using Bowin.Web.Controls.Mvc;
@using EMISOnline.Entities;
@using EMISOnline.Web.Controls;
@{
ViewBag.Title = "List";
}
@Html.Position()
@using (Html.BeginForm("", "", FormMethod.Post, new { id = "fm" }))
{
}
@Html.DataGrid(new DataGridOptions
{
Columns = new List()
{
new CheckBoxFieldColumn{ HeaderText="", FieldName="CoursematerialID" },
new LinkButtonColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center , Handle="edit", Width=0.06 },
new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center, OverflowLength=20, Width=0.1 },
new BoundFieldColumn { FieldName="Abbreviation", HeaderText="课程简称", Align=AlignStyle.Center, OverflowLength=8, Width=0.08 },
new BoundFieldColumn { FieldName="CourseLevelName", HeaderText="课程级别", Align=AlignStyle.Center, Width=0.03 },
new BoundFieldColumn { FieldName="CourseScienceName", HeaderText="课程科类", Align=AlignStyle.Center, Width=0.03 },
new BoundFieldColumn { FieldName="IsEnableName", HeaderText="是否启用", Align=AlignStyle.Center, Width=0.03 }
},
IsCheckOnSelect = true,
DataSourceUrl = Url.Content("~/Course/List"),
ID = "dgList",
IsPagination = true,
IsShowRowNumbers = true,
IsSingleSelect = false,
IsVerticalExpand = true,
IsAutoHeight = false,
PageSize = 15
})