StudentPlanDetail.cshtml 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. @using EMIS.Web.Controls;
  2. @using Bowin.Web.Controls.Mvc;
  3. @{
  4. ViewBag.Title = "StudentPlanDetail";
  5. Guid? RetakePlanID = new Guid(Request["RetakePlanID"]);
  6. }
  7. <style type="text/css">
  8. #studentDetail
  9. {
  10. width: 100%;
  11. border: 0px none;
  12. }
  13. #studentDetail tr
  14. {
  15. min-height: 30px;
  16. }
  17. </style>
  18. @section scripts{
  19. <script type="text/javascript">
  20. var nonSelect = "@DropdownList.SELECT_ALL";
  21. //已开班
  22. var CreatedStatus = "@((int)EMIS.ViewModel.ER_RetakePlanStatus.Generated)";
  23. //Excel导出
  24. function RetakePlan_StuPlanExport() {
  25. $("#formQuery").submit();
  26. }
  27. </script>
  28. }
  29. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  30. @using (Ajax.BeginForm(new AjaxOptions
  31. {
  32. OnSuccess = "EMISFunction.FormSuccess",
  33. OnBegin = "EMISFunction.FormSubmit",
  34. OnComplete = "EMISFunction.FormComplete"
  35. }))
  36. {
  37. <div class="p_title">
  38. @*<div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  39. 重修计划名单</div>*@
  40. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">
  41. @Html.ContextMenuBar("StuPlanDetail")</div>
  42. </div>
  43. <div class="search_list">
  44. <table cellpadding="0" cellspacing="0" id="studentDetail">
  45. <tr>
  46. <td>
  47. @Html.DataGrid(new DataGridOptions
  48. {
  49. Columns = new List<DataGridColumn>()
  50. {
  51. new CheckBoxFieldColumn { HeaderText="", FieldName="RetakePlanStudentID" },
  52. new BoundFieldColumn { FieldName="LoginID", HeaderText="学号", Align=AlignStyle.Center, Width=0.1 },
  53. new BoundFieldColumn { FieldName="UserName", HeaderText="姓名", Align=AlignStyle.Center, Width=0.04 },
  54. new BoundFieldColumn { FieldName="SexName", HeaderText="性别", Align=AlignStyle.Center, Width=0.02 },
  55. new BoundFieldColumn { FieldName="ClassmajorName", HeaderText="班级名称", Align=AlignStyle.Center, Width=0.12 },
  56. new BoundFieldColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center, Width=0.06 },
  57. new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center, Width=0.08 },
  58. new BoundFieldColumn { FieldName="CourseTypeDesc", HeaderText="课程类型", Align=AlignStyle.Center, Width=0.05 },
  59. new BoundFieldColumn { FieldName="CourseCredit", HeaderText="学分", Align=AlignStyle.Center, Width=0.02 },
  60. new BoundFieldColumn { FieldName="InSchoolStatusName", HeaderText="在校状态", Align=AlignStyle.Center, Width=0.04 },
  61. //new BoundFieldColumn { FieldName="SchoolyearNumDesc", HeaderText="开课学年", Align=AlignStyle.Center, Width=0.04 },
  62. new BoundFieldColumn { FieldName="StarttermDesc", HeaderText="开课学期", Align=AlignStyle.Center, Width=0.04 },
  63. new BoundFieldColumn { FieldName="ApplyStatusName", HeaderText="报名状态", Align=AlignStyle.Center, Width=0.04 }
  64. },
  65. PageSize = 30,
  66. IsCheckOnSelect = true,
  67. DataSourceUrl = Url.Content("~/RetakePlanResultTask/StudentPlanDetail?RetakePlanID=" + RetakePlanID),
  68. IsPostBack = true,
  69. ID = "dgStudentList",
  70. IsPagination = true,
  71. IsShowRowNumbers = true,
  72. IsSingleSelect = false,
  73. MaxHeight = 400
  74. })
  75. </td>
  76. </tr>
  77. </table>
  78. </div>
  79. }
  80. <form id="formQuery" method="post" action="@Url.Content("~/RetakePlanResultTask/StudentPlanDetail_Excel?RetakePlanID=" + RetakePlanID)">
  81. </form>
  82. </div>