@model EMIS.ViewModel.SelectCourse.OptionalCourseClassListView
@using EMIS.Web.Controls;
@using Bowin.Web.Controls.Mvc;
@{
ViewBag.Title = "ClassList";
Guid? ID = ViewBag.ID;
string Type = ViewBag.Type;
}
@using (Html.BeginForm())
{
@Html.DataGrid(new DataGridOptions
{
Columns = new List()
{
new CheckBoxFieldColumn{ HeaderText="", FieldName="ClassmajorID" },
new BoundFieldColumn { FieldName="GrademajorCode", HeaderText="年级专业编号", Align=AlignStyle.Center, Width=0.06 },
new BoundFieldColumn { FieldName="GrademajorName", HeaderText="年级专业名称", Align=AlignStyle.Center, Width=0.1 },
new BoundFieldColumn { FieldName="No", HeaderText="班级编号", Align=AlignStyle.Center, Width=0.06 },
new BoundFieldColumn { FieldName="Name", HeaderText="班级名称", Align=AlignStyle.Center, Width=0.12 },
//new BoundFieldColumn { FieldName="yearID", HeaderText="年级", Align=AlignStyle.Center, Width=0.03 },
//new BoundFieldColumn { FieldName="StandardCode", HeaderText="专业代码", Align=AlignStyle.Center, Width=0.04 },
//new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center, Width=0.08 },
//new BoundFieldColumn { FieldName="LearnSystem", HeaderText="学制", Align=AlignStyle.Center, Width=0.03 },
//new BoundFieldColumn { FieldName="EducationName", HeaderText=EMIS.Utility.RSL.Get("EducationID"), Align=AlignStyle.Center, Width=0.04 },
//new BoundFieldColumn { FieldName="LearningformName", HeaderText="学习形式", Align=AlignStyle.Center, Width=0.04 },
//new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center, Width=0.08 },
new BoundFieldColumn { FieldName="StudentCount", HeaderText="人数", Align=AlignStyle.Center, Width=0.03 }
},
PageSize = 20,
IsCheckOnSelect = true,
DataSourceUrl = Url.Content("~/OptionalCourseSetting/ClassList?executableOptionalCourseID=" + ID ),//+ "&Type=" + Type),
IsPostBack = true,
ID = "dgClassList",
IsPagination = true,
IsShowRowNumbers = true,
IsSingleSelect = false
})
}
@section scripts{
}