EvaluationSettingStudentDetail.cshtml 3.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Web.Controls;
  3. @using Bowin.Common.Utility;
  4. @using EMIS.ViewModel;
  5. @{
  6. ViewBag.Title = "List";
  7. Guid? evaluationSettingID = Request.QueryString["evaluationSettingID"].ParseStrTo<Guid>();
  8. }
  9. @section scripts{
  10. <script src="~/Scripts/Business/EvaluationManage/EvaluationManage/EvaluationSettingEdit.js"></script>
  11. <script type="text/javascript">
  12. $(document).ready(function () {
  13. var JsonDate = top.$("#@(Request["WindowID"])").data("inputData");
  14. $("#evaluationSettingID").val(JsonDate.evaluationSettingID);
  15. });
  16. function EvaluationStudent_Save() {
  17. $("#SaveType").val(2);
  18. $(document.forms[0]).submit(); //提交表单
  19. }
  20. </script>
  21. }
  22. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  23. @using (Ajax.BeginForm(new AjaxOptions { Url = "/EvaluationSetting/Save", OnSuccess = "EMISFunction.FormSuccess", OnBegin = "EMISFunction.FormSubmit", OnComplete = "EMISFunction.FormComplete" }))
  24. {
  25. <div class="p_title">
  26. @Html.Hidden("evaluationSettingID")
  27. @*<div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  28. 学生明细信息
  29. </div>*@
  30. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">
  31. @if (ViewBag.OpenStatus != CF_GeneralPurpose.IsYes.ToString())//如果已经提交、那么删除、增加按钮不显示
  32. {
  33. @Html.ContextMenuBar("Edit")
  34. }
  35. </div>
  36. </div>
  37. <div class="search_list">
  38. @if (ViewBag.OpenStatus != CF_GeneralPurpose.IsYes.ToString())//如果已经提交、那么删除、增加按钮不显示
  39. {
  40. @Html.ContextMenuBar("Edit-StudentGrid")
  41. }
  42. @Html.DataGrid(new DataGridOptions
  43. {
  44. Columns = new List<DataGridColumn>()
  45. {
  46. new CheckBoxFieldColumn{ HeaderText="", FieldName="UserID" },
  47. new BoundFieldColumn { FieldName="SchoolyearCode", HeaderText="学年学期", Align=AlignStyle.Center, Width=0.08 },
  48. new BoundFieldColumn { FieldName="LoginID", HeaderText="学号", Align=AlignStyle.Center, Width=0.1 },
  49. new BoundFieldColumn { FieldName="UserName", HeaderText="姓名", Align=AlignStyle.Center, Width=0.04 },
  50. new BoundFieldColumn { FieldName="EducationMissionClassName", HeaderText="班级名称", Align=AlignStyle.Center, Width=0.1, OverflowLength=10 },
  51. new BoundFieldColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center, Width=0.05 },
  52. new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center, Width=0.1, OverflowLength=10 },
  53. //new BoundFieldColumn { FieldName="EvaluationTypeName", HeaderText="参评类型", Align=AlignStyle.Center, Width=0.04 },
  54. new BoundFieldColumn { FieldName="UserCodes", HeaderText="被评教师编号", Align=AlignStyle.Center, Width=0.06, OverflowLength=8 },
  55. new BoundFieldColumn { FieldName="UserNames", HeaderText="被评教师",Align=AlignStyle.Center, Width=0.04, OverflowLength=4 },
  56. new BoundFieldColumn { FieldName="EvaluationTableName", HeaderText="评价表名",Align=AlignStyle.Center, Width=0.05, OverflowLength=8 }
  57. },
  58. PageSize = 50,
  59. IsCheckOnSelect = true,
  60. DataSourceUrl = Url.Content("~/EvaluationSetting/GetStudentDetail?evaluationSettingID=" + evaluationSettingID),
  61. ID = "dgEvaluationSettingStudentDetailList",
  62. IsPagination = true,
  63. IsShowRowNumbers = true,
  64. IsPostBack = true,
  65. IsSingleSelect = false
  66. })
  67. </div>
  68. }
  69. </div>