StudentSelect.cshtml 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Web.Controls;
  3. @{
  4. ViewBag.Title = "StudentViewSelect";
  5. ComboGridOptions cgop = new ComboGridOptions
  6. {
  7. TextField = "Name",
  8. ValueField = "CollegeID",
  9. Name = "CollegeComboGrid",
  10. ID = "CollegeComboGrid",
  11. OnSelect = "SelectCollegeComboGrid",
  12. GridOptions = new DataGridOptions
  13. {
  14. Columns = new List<DataGridColumn>()
  15. {
  16. new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Align=AlignStyle.Center },
  17. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center }
  18. },
  19. IsCheckOnSelect = true,
  20. DataSourceUrl = Url.Content("~/College/ListOnlyCollege"),
  21. IsPagination = true,
  22. IsShowRowNumbers = true,
  23. IsSingleSelect = false
  24. }
  25. };
  26. ComboGridOptions cgopGrademajor = new ComboGridOptions
  27. {
  28. TextField = "Name",
  29. ValueField = "GrademajorID",
  30. Name = "GrademajorComboGrid",
  31. ID = "GrademajorComboGrid",
  32. OnSelect = "SelectGrademajorComboGrid",
  33. GridOptions = new DataGridOptions
  34. {
  35. Columns = new List<DataGridColumn>()
  36. {
  37. new LinkButtonColumn { FieldName="Code", HeaderText="年级专业代码", Align=AlignStyle.Center },
  38. new BoundFieldColumn { FieldName="Name", HeaderText="年级专业名称", Align=AlignStyle.Center }
  39. },
  40. IsCheckOnSelect = true,
  41. DataSourceUrl = Url.Content("~/Grademajor/List"),
  42. IsPagination = true,
  43. IsShowRowNumbers = true,
  44. IsSingleSelect = false
  45. }
  46. };
  47. ComboGridOptions cgopClassmajor = new ComboGridOptions
  48. {
  49. TextField = "Name",
  50. ValueField = "ClassmajorID",
  51. Name = "ClassmajorComboGrid",
  52. ID = "ClassmajorComboGrid",
  53. OnSelect = "reload",
  54. GridOptions = new DataGridOptions
  55. {
  56. Columns = new List<DataGridColumn>()
  57. {
  58. new LinkButtonColumn { FieldName="No", HeaderText="班级编号", Align=AlignStyle.Center },
  59. new BoundFieldColumn { FieldName="Name", HeaderText="班级名称", Align=AlignStyle.Center }
  60. },
  61. IsCheckOnSelect = true,
  62. DataSourceUrl = Url.Content("~/Classmajor/List"),
  63. IsPagination = true,
  64. IsShowRowNumbers = true,
  65. IsSingleSelect = false
  66. }
  67. };
  68. }
  69. @section scripts{
  70. <script src="~/Scripts/Business/ExaminationManage/StudentSelect.js" type="text/javascript"></script>
  71. <script type="text/javascript">
  72. var nonSelect = "@DropdownList.SELECT_ALL";
  73. </script>
  74. }
  75. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  76. <div class="p_title">
  77. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  78. 学生列表</div>
  79. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">
  80. <div class="current_navbar toolbar">
  81. <div class="func_info">
  82. <a class="easyui-linkbutton" href="javascript:Student_MaxConfirm()" data-options="iconCls:'icon-ok',plain:'true'"
  83. onfocus="this.blur()">选满整个考室</a>
  84. <a class="easyui-linkbutton" href="javascript:Student_Confirm()" data-options="iconCls:'icon-ok',plain:'true'"
  85. onfocus="this.blur()">选中</a>
  86. </div>
  87. </div>
  88. </div>
  89. </div>
  90. <form id="formQuery" method="post">
  91. <div class="search_keyword">
  92. <div class="search_input">
  93. <ul>
  94. <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("College"):</li>
  95. <li class="sv">
  96. @Html.ComboGrid(cgop, new Dictionary<string, string> { { "data-condition", "dgStudentList" } })
  97. </li>
  98. <li class="sn" style="padding-left: 5px;">年级专业:</li>
  99. <li class="sv">
  100. @Html.ComboGrid(cgopGrademajor, new Dictionary<string, string> { { "data-condition", "dgStudentList" } })
  101. </li>
  102. <li class="sn" style="padding-left: 5px;">班级:</li>
  103. <li class="sv">
  104. @Html.ComboGrid(cgopClassmajor, new Dictionary<string, string> { { "data-condition", "dgStudentList" } })
  105. </li>
  106. </ul>
  107. </div>
  108. </div>
  109. </form>
  110. <div class="search_list">
  111. @Html.DataGrid(new DataGridOptions
  112. {
  113. Columns = new List<DataGridColumn>()
  114. {
  115. new CheckBoxFieldColumn{ HeaderText="", FieldName="UserID"},
  116. new LinkButtonColumn { FieldName="LoginID", HeaderText="学号", Align=AlignStyle.Center },
  117. new BoundFieldColumn { FieldName="UserName", HeaderText="姓名", Align=AlignStyle.Center },
  118. new BoundFieldColumn { FieldName="SexName", HeaderText="性别", Align=AlignStyle.Center},
  119. new BoundFieldColumn { FieldName="Years", HeaderText="年级", Align=AlignStyle.Center },
  120. new BoundFieldColumn { FieldName="GradeMajorName", HeaderText="年级专业", Align=AlignStyle.Center },
  121. new BoundFieldColumn { FieldName="ClassMajorName", HeaderText="班级名称", Align=AlignStyle.Center },
  122. new BoundFieldColumn { FieldName="InSchoolStatusName", HeaderText="在校状态", Align=AlignStyle.Center },
  123. new BoundFieldColumn { FieldName="StudentStatusName", HeaderText="学籍状态", Align=AlignStyle.Center }
  124. },
  125. IsCheckOnSelect = true,
  126. IsAutoLoad = false,
  127. DataSourceUrl = Url.Content("~/ExaminationPlan/StudentList"),
  128. ID = "dgStudentList",
  129. IsPagination = true,
  130. IsShowRowNumbers = true,
  131. IsSingleSelect = false,
  132. IsAutoHeight = false,
  133. })
  134. </div>
  135. </div>