@using Bowin.Web.Controls.Mvc; @using EMIS.Web.Controls; @using Bowin.Common.Utility; @using EMIS.ViewModel; @{ ViewBag.Title = "List"; Guid? evaluationSettingID = Request.QueryString["evaluationSettingID"].ParseStrTo(); } @section scripts{ }
@using (Ajax.BeginForm(new AjaxOptions { Url = "/EvaluationSetting/Save", OnSuccess = "EMISFunction.FormSuccess", OnBegin = "EMISFunction.FormSubmit", OnComplete = "EMISFunction.FormComplete" })) {
@Html.Hidden("evaluationSettingID") @*
学生明细信息
*@
@if (ViewBag.OpenStatus != CF_GeneralPurpose.IsYes.ToString())//如果已经提交、那么删除、增加按钮不显示 { @Html.ContextMenuBar("Edit") }
@if (ViewBag.OpenStatus != CF_GeneralPurpose.IsYes.ToString())//如果已经提交、那么删除、增加按钮不显示 { @Html.ContextMenuBar("Edit-StudentGrid") } @Html.DataGrid(new DataGridOptions { Columns = new List() { new CheckBoxFieldColumn{ HeaderText="", FieldName="UserID" }, new BoundFieldColumn { FieldName="SchoolyearCode", HeaderText="学年学期", Align=AlignStyle.Center, Width=0.08 }, new BoundFieldColumn { FieldName="LoginID", HeaderText="学号", Align=AlignStyle.Center, Width=0.1 }, new BoundFieldColumn { FieldName="UserName", HeaderText="姓名", Align=AlignStyle.Center, Width=0.04 }, new BoundFieldColumn { FieldName="EducationMissionClassName", HeaderText="班级名称", Align=AlignStyle.Center, Width=0.1, OverflowLength=10 }, new BoundFieldColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center, Width=0.05 }, new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center, Width=0.1, OverflowLength=10 }, //new BoundFieldColumn { FieldName="EvaluationTypeName", HeaderText="参评类型", Align=AlignStyle.Center, Width=0.04 }, new BoundFieldColumn { FieldName="UserCodes", HeaderText="被评教师编号", Align=AlignStyle.Center, Width=0.06, OverflowLength=8 }, new BoundFieldColumn { FieldName="UserNames", HeaderText="被评教师",Align=AlignStyle.Center, Width=0.04, OverflowLength=4 }, new BoundFieldColumn { FieldName="EvaluationTableName", HeaderText="评价表名",Align=AlignStyle.Center, Width=0.05, OverflowLength=8 } }, PageSize = 50, IsCheckOnSelect = true, DataSourceUrl = Url.Content("~/EvaluationSetting/GetStudentDetail?evaluationSettingID=" + evaluationSettingID), ID = "dgEvaluationSettingStudentDetailList", IsPagination = true, IsShowRowNumbers = true, IsPostBack = true, IsSingleSelect = false })
}