@using EMIS.Web.Controls;
@using Bowin.Web.Controls.Mvc;
@{
ViewBag.Title = "DepartmentList";
Guid? collegeID = new Guid(Request["collegeID"]);
}
@section scripts{
}
@Html.DataGrid(new DataGridOptions
{
Columns = new List()
{
new CheckBoxFieldColumn{ HeaderText="", FieldName="DepartmentID" },
new BoundFieldColumn { FieldName="No", HeaderText="教研室代码", Align=AlignStyle.Center, Width=0.05 },
new BoundFieldColumn { FieldName="Name", HeaderText="教研室名称", Align=AlignStyle.Center, Width=0.1 },
new BoundFieldColumn { FieldName="SimpleName", HeaderText="教研室简称", Align=AlignStyle.Center, Width=0.06, OverflowLength=6 },
new BoundFieldColumn { FieldName="DirectorName", HeaderText="主任姓名", Align=AlignStyle.Center, Width=0.05 },
new BoundFieldColumn { FieldName="DeputyDirectorName", HeaderText="副主任姓名", Align=AlignStyle.Center, Width=0.05 },
new BoundFieldColumn { FieldName="StaffCount", HeaderText="教师人数", Align=AlignStyle.Center, Width=0.04, CustomFormatFun="SetRedColumn" },
new BoundFieldColumn { FieldName="CollegeCode", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Align=AlignStyle.Center, Width=0.05 },
new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center, Width=0.1, OverflowLength=8 },
new BoundFieldColumn { FieldName="Remark", HeaderText="备注", Align=AlignStyle.Center, Width=0.03, OverflowLength=6 }
},
IsPostBack = true,
IsCheckOnSelect = true,
DataSourceUrl = Url.Content("~/College/DepartmentList?collegeID=" + collegeID),
ID = "dgDepartmentList",
IsPagination = true,
IsShowRowNumbers = true,
IsSingleSelect = false
})