GdssStudentSelect.cshtml 6.0 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/GdssStudentSelect.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_Confirm()" data-options="iconCls:'icon-ok',plain:'true'"
  83. onfocus="this.blur()">选中</a>
  84. </div>
  85. </div>
  86. </div>
  87. </div>
  88. <form id="formQuery" method="post">
  89. @Html.PositionCondition("GdssStudentSelect")
  90. <div class="search_keyword">
  91. <div class="search_input">
  92. <ul>
  93. <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("College"):</li>
  94. <li class="sv">
  95. @Html.ComboGrid(cgop, new Dictionary<string, string> { { "data-condition", "dgStudentList" } })
  96. </li>
  97. <li class="sn" style="padding-left: 5px;">年级专业:</li>
  98. <li class="sv">
  99. @Html.ComboGrid(cgopGrademajor, new Dictionary<string, string> { { "data-condition", "dgStudentList" } })
  100. </li>
  101. <li class="sn" style="padding-left: 5px;">班级:</li>
  102. <li class="sv">
  103. @Html.ComboGrid(cgopClassmajor, new Dictionary<string, string> { { "data-condition", "dgStudentList" } })
  104. </li>
  105. </ul>
  106. </div>
  107. </div>
  108. </form>
  109. <div class="search_list">
  110. @Html.DataGrid(new DataGridOptions
  111. {
  112. Columns = new List<DataGridColumn>()
  113. {
  114. new CheckBoxFieldColumn{ HeaderText="", FieldName="UserID"},
  115. new LinkButtonColumn { FieldName="LoginID", HeaderText="学号", Align=AlignStyle.Center },
  116. new BoundFieldColumn { FieldName="UserName", HeaderText="姓名", Align=AlignStyle.Center, Width = 0.1 },
  117. //new BoundFieldColumn { FieldName="SexName", HeaderText="性别", Align=AlignStyle.Center},
  118. //new BoundFieldColumn { FieldName="Years", HeaderText="年级", Align=AlignStyle.Center },
  119. //new BoundFieldColumn { FieldName="GradeMajorName", HeaderText="年级专业", Align=AlignStyle.Center },
  120. new BoundFieldColumn { FieldName="ClassMajorName", HeaderText="班级名称", Align=AlignStyle.Center },
  121. new BoundFieldColumn { FieldName="InSchoolStatusName", HeaderText="在校状态", Align=AlignStyle.Center },
  122. //new BoundFieldColumn { FieldName="StudentStatusName", HeaderText="学籍状态", Align=AlignStyle.Center }
  123. },
  124. IsCheckOnSelect = true,
  125. IsAutoLoad = false,
  126. DataSourceUrl = Url.Content("~/ExaminationPlan/GdssStudentList?examinationPlanID=" + @ViewBag.examinationPlanID),
  127. ID = "dgStudentList",
  128. IsPagination = true,
  129. IsShowRowNumbers = true,
  130. IsSingleSelect = false,
  131. IsAutoHeight = false,
  132. })
  133. </div>
  134. </div>