@using Bowin.Web.Controls.Mvc;
@using EMIS.Entities;
@using EMIS.Web.Controls;
@{
ViewBag.Title = "List";
}
@section scripts{
}
@Html.Position()
学年学期列表
@Html.ContextMenuBar("List")
@Html.PositionBatchModify()
@Html.DataGrid(new DataGridOptions
{
Columns = new List()
{
new CheckBoxFieldColumn{ HeaderText="", FieldName="SchoolYearID"},
new LinkButtonColumn { FieldName="Code", HeaderText="学年学期", Align=AlignStyle.Center , Handle="edit" , Width = 0.08},
new BoundFieldColumn { FieldName="Years", HeaderText="学年", Align=AlignStyle.Center , Width = 0.03},
new BoundFieldColumn { FieldName="SchoolcodeName", HeaderText="学期", Align=AlignStyle.Center , Width = 0.03},
new BoundFieldColumn { FieldName="WeeksNum", HeaderText="周数", Align=AlignStyle.Center, Width = 0.03 },
new BoundFieldColumn { FieldName="FirstWeek", HeaderText="首周周一日期",Formatter=Formatter.OnlyYearMonthDay, Align=AlignStyle.Center, Width = 0.06 },
new BoundFieldColumn { FieldName="WeekDays", HeaderText="每周工作天数", Align=AlignStyle.Center, Width = 0.06 },
new BoundFieldColumn { FieldName="Current", HeaderText="是否当前学期", Align=AlignStyle.Center, Width = 0.06 }
},
IsCheckOnSelect = true,
DataSourceUrl = Url.Content("~/SchoolYear/List"),
ID = "dgSchoolYearList",
IsPagination = true,
IsShowRowNumbers = true,
IsSingleSelect = false
})