@model EMIS.ViewModel.SelectCourse.SelectCourseResult.SelectCourseResultView
@using EMIS.Web.Controls;
@using Bowin.Web.Controls.Mvc;
@{
ViewBag.Title = "Edit";
Guid? ID = ViewBag.ID;
string Type = ViewBag.Type;
}
@section scripts{
}
@using (Ajax.BeginForm(new AjaxOptions
{
OnSuccess = "EMISFunction.FormSuccess",
OnBegin = "EMISFunction.FormSubmit",
OnComplete = "EMISFunction.FormComplete"
}))
{
@*
选课学生名单
*@
@Html.ContextMenuBar("Edit_StuConfirm")
@Html.ContextMenuBar("Edit_StuGrid")
@Html.HiddenFor(x => x.ID)
@Html.DataGrid(new DataGridOptions
{
Columns = new List()
{
new CheckBoxFieldColumn { FieldName="UserID", HeaderText="" },
new BoundFieldColumn { FieldName="LoginID", HeaderText="学号", Align=AlignStyle.Center, Width=0.08 },
new BoundFieldColumn { FieldName="UserName", HeaderText="姓名", Align=AlignStyle.Center, Width=0.05 },
new BoundFieldColumn { FieldName="SexName", HeaderText="性别", Align=AlignStyle.Center, Width=0.03 },
//new BoundFieldColumn { FieldName="CoursematerialName", HeaderText="课程名称", Align=AlignStyle.Center, Width=0.1 },
new BoundFieldColumn { FieldName="ClassmajorName", HeaderText="班级名称", Align=AlignStyle.Center, Width=0.12 },
new BoundFieldColumn { FieldName="InSchoolStatusName", HeaderText="在校状态", Align=AlignStyle.Center, Width=0.04 },
new BoundFieldColumn { FieldName="StudentStatusName", HeaderText="学籍状态", Align=AlignStyle.Center, Width=0.04 }
},
//PageSize = 30,
IsCheckOnSelect = true,
DataSourceUrl = Url.Content("~/SelectCourseResult/StudentViewList?ID=" + ID + "&Type=" + Type),
IsPostBack = true,
ID = "dgStudentList",
IsPagination = false,
IsShowRowNumbers = true,
IsSingleSelect = false,
MaxHeight=350
})
}