StudentSelect.cshtml 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Web.Controls;
  3. @section scripts{
  4. <script src="~/Scripts/Business/EvaluationManage/EvaluationManage/EvaluationSettingEdit.js"></script>
  5. <script type="text/javascript">
  6. //获取选中的数据
  7. function validChooseTM() {
  8. var d = [];
  9. $.each($("#dgStudentList").cmsXDataTable("getSelections"), function (index) {
  10. d.push(this);
  11. });
  12. return d;
  13. }
  14. function Student_Confirm() {
  15. var listData = validChooseTM();
  16. if (listData.length < 1) {
  17. $.messager.alert("系统提示", "没有选择学生数据!");
  18. return;
  19. }
  20. top.$("#@(Request["WindowID"])").data("resultData", listData);
  21. top.$("#@(Request["WindowID"])").dialog("close");
  22. }
  23. </script>
  24. }
  25. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  26. <div class="p_title">
  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. <div class="current_navbar toolbar">
  32. <div class="func_info">
  33. <a class="easyui-linkbutton" href="javascript:Student_Confirm()" data-options="iconCls:'icon-ok',plain:'true'"
  34. onfocus="this.blur()">选中</a>
  35. </div>
  36. </div>
  37. </div>
  38. </div>
  39. <form id="formQuery" method="post">
  40. @Html.PositionCondition("StudentSelect", null)
  41. </form>
  42. <div class="search_list">
  43. @Html.DataGrid(new DataGridOptions
  44. {
  45. Columns = new List<DataGridColumn>()
  46. {
  47. new CheckBoxFieldColumn{ HeaderText="", FieldName="UserID"},
  48. new BoundFieldColumn { FieldName="SchoolyearCode", HeaderText="学年学期", Align=AlignStyle.Center},
  49. new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center },
  50. new BoundFieldColumn { FieldName="EducationMissionClassName", HeaderText="班级名称", Align=AlignStyle.Center, OverflowLength=16 },
  51. new BoundFieldColumn { FieldName="LoginID", HeaderText="学号", Align=AlignStyle.Center },
  52. new BoundFieldColumn { FieldName="UserName", HeaderText="姓名", Align=AlignStyle.Center },
  53. new BoundFieldColumn { FieldName="EvaluationTypeName", HeaderText="参评类型", Align=AlignStyle.Center },
  54. new BoundFieldColumn { FieldName="UserCodes", HeaderText="被评教师编号", Align=AlignStyle.Center },
  55. new BoundFieldColumn { FieldName="UserNames", HeaderText="被评教师",Align=AlignStyle.Center },
  56. new BoundFieldColumn { FieldName="EvaluationTableName", HeaderText="评价表名",Align=AlignStyle.Center }
  57. },
  58. IsCheckOnSelect = true,
  59. DataSourceUrl = Url.Content("~/EvaluationSetting/StudentSelect?evaluationSettingID=" + ViewBag.EvaluationSettingID),
  60. ID = "dgStudentList",
  61. IsPagination = true,
  62. IsShowRowNumbers = true,
  63. IsSingleSelect = false
  64. })
  65. </div>
  66. </div>