@using Bowin.Web.Controls.Mvc;
@using EMIS.Entities;
@using EMIS.Web.Controls;
@{
ViewBag.Title = "List";
}
@section scripts{
}
@Html.Position()
@Html.DataGrid(new DataGridOptions
{
Columns = new List()
{
new CheckBoxFieldColumn{ HeaderText="", FieldName="ClassroomID"},
new BoundFieldColumn { FieldName="Name", HeaderText="教室", Align=AlignStyle.Center, OverflowLength=29, Width=0.25 },
new BoundFieldColumn { FieldName="IsAvailableName", HeaderText="是否可用", Align=AlignStyle.Center, Width=0.05 },
new BoundFieldColumn { FieldName="ClassroomTypeName", HeaderText="教室类型", Align=AlignStyle.Center, OverflowLength=17, Width=0.15 },
new BoundFieldColumn { FieldName="Totalseating", HeaderText="总座位数", Align=AlignStyle.Center, Width=0.05 },
new BoundFieldColumn { FieldName="Effectiveseating", HeaderText="有效座位数", Align=AlignStyle.Center, Width=0.05 },
new BoundFieldColumn { FieldName="Examinationseating", HeaderText="考试座位数", Align=AlignStyle.Center, Width=0.05 },
new BoundFieldColumn { FieldName="IsWrittenExamName", HeaderText="笔试考试", Align=AlignStyle.Center, Width=0.05 },
new BoundFieldColumn { FieldName="IsMachinetestName", HeaderText="机试考试", Align=AlignStyle.Center, Width=0.05 },
new BoundFieldColumn { FieldName="BuildingsInfoName", HeaderText="所在建筑物", Align=AlignStyle.Center, OverflowLength=22, Width=0.2 }
},
IsCheckOnSelect = true,
DataSourceUrl = Url.Content("~/ExaminationRoomSetting/List"),
ID = "dgRoomSettingList",
IsPagination = true,
IsShowRowNumbers = true,
IsSingleSelect = false
})