@using Bowin.Web.Controls.Mvc;
@using EMIS.Entities;
@using EMIS.Web.Controls;
@{
ViewBag.Title = "List";
}
@section scripts{
}
@Html.Position()
毕业学期列表
@Html.ContextMenuBar("List")
@Html.DataGrid(new DataGridOptions
{
Columns = new List()
{
new CheckBoxFieldColumn{ HeaderText="", FieldName="GraduationSchoolYearSettingID" },
new BoundFieldColumn { FieldName="GraduatingSemesterCode", HeaderText="毕业学期", Align=AlignStyle.Center, Width=0.1 },
new BoundFieldColumn { FieldName="Years", HeaderText="学年", Align=AlignStyle.Center, Width=0.04 },
new BoundFieldColumn { FieldName="SchoolcodeName", HeaderText="学期", OrderFieldName="SchoolcodeID", Align=AlignStyle.Center, Width=0.04 },
new BoundFieldColumn { FieldName="WeeksNum", HeaderText="周数", Align=AlignStyle.Center, Width=0.04 },
new BoundFieldColumn{FieldName="GraduateDate",HeaderText="毕业日期", Align=AlignStyle.Center, Width=0.1, Formatter=Formatter.CHSOnlyYearMonthDay },
new BoundFieldColumn { FieldName="IsCurrentName", HeaderText="是否当前学期",Align=AlignStyle.Center, Width=0.06, CustomFormatFun="SetRedColumn" },
//new BoundFieldColumn { FieldName="IsEnableName", HeaderText="启用状态",Align=AlignStyle.Center, Width=0.04 },
new CheckButtonColumn{ FieldName="IsEnable", HeaderText="启用状态", Align=AlignStyle.Center, Width=0.04, EnableFieldName="false" }
},
CustomerRowStyleFun = "SetRedGrid",
IsCheckOnSelect = true,
DataSourceUrl = Url.Content("~/GraduationSchoolYear/List"),
ID = "dgGraduationSchoolYearList",
IsPagination = true,
IsShowRowNumbers = true,
IsSingleSelect = false
})