StudentSelect.cshtml 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Web.Controls;
  3. @{
  4. ViewBag.Title = "StudentViewSelect";
  5. ComboGridOptions cgopCampus = new ComboGridOptions
  6. {
  7. TextField = "Name",
  8. ValueField = "CampusID",
  9. ID = "cgCampus",
  10. Name = "cgCampus",
  11. OnSelect = "queryCollege",
  12. GridOptions = new DataGridOptions
  13. {
  14. Columns = new List<DataGridColumn>()
  15. {
  16. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CampusName"), Align=AlignStyle.Center }
  17. },
  18. //OnLoadSuccessFun = "reload",
  19. IsCheckOnSelect = true,
  20. DataSourceUrl = Url.Content("~/Campus/List"),
  21. IsPagination = true,
  22. IsShowRowNumbers = true,
  23. IsSingleSelect = false,
  24. }
  25. };
  26. ComboGridOptions cgop = new ComboGridOptions
  27. {
  28. TextField = "Name",
  29. ValueField = "CollegeID",
  30. Name = "CollegeComboGrid",
  31. ID = "CollegeComboGrid",
  32. OnSelect = "SelectCollegeComboGrid",
  33. GridOptions = new DataGridOptions
  34. {
  35. Columns = new List<DataGridColumn>()
  36. {
  37. new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Align=AlignStyle.Center },
  38. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center }
  39. },
  40. IsCheckOnSelect = true,
  41. DataSourceUrl = Url.Content("~/College/ListOnlyCollege"),
  42. IsPagination = true,
  43. IsShowRowNumbers = true,
  44. IsSingleSelect = false
  45. }
  46. };
  47. ComboGridOptions cgopStandard = new ComboGridOptions
  48. {
  49. TextField = "StandardName",
  50. ValueField = "StandardID",
  51. OnSelect = "SelectStandardComboGrid",
  52. Name = "StandardID",
  53. ID = "StandardID",
  54. GridOptions = new DataGridOptions
  55. {
  56. Columns = new List<DataGridColumn>()
  57. {
  58. new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center }
  59. },
  60. IsCheckOnSelect = true,
  61. DataSourceUrl = Url.Content("~/Grademajor/GrademajorBindComboGridOptions"),
  62. IsPagination = true,
  63. IsShowRowNumbers = true,
  64. IsSingleSelect = false,
  65. }
  66. };
  67. //ComboGridOptions cgopGrademajor = new ComboGridOptions
  68. //{
  69. // TextField = "Name",
  70. // ValueField = "GrademajorID",
  71. // Name = "GrademajorComboGrid",
  72. // ID = "GrademajorComboGrid",
  73. // OnSelect = "SelectGrademajorComboGrid",
  74. // GridOptions = new DataGridOptions
  75. // {
  76. // Columns = new List<DataGridColumn>()
  77. // {
  78. // new LinkButtonColumn { FieldName="Code", HeaderText="年级专业代码", Align=AlignStyle.Center },
  79. // new BoundFieldColumn { FieldName="Name", HeaderText="年级专业名称", Align=AlignStyle.Center }
  80. // },
  81. // IsCheckOnSelect = true,
  82. // DataSourceUrl = Url.Content("~/Grademajor/List"),
  83. // IsPagination = true,
  84. // IsShowRowNumbers = true,
  85. // IsSingleSelect = false
  86. // }
  87. //};
  88. ComboGridOptions cgopClassmajor = new ComboGridOptions
  89. {
  90. TextField = "Name",
  91. ValueField = "ClassmajorID",
  92. Name = "ClassmajorComboGrid",
  93. ID = "ClassmajorComboGrid",
  94. //OnSelect = "reload",
  95. GridOptions = new DataGridOptions
  96. {
  97. Columns = new List<DataGridColumn>()
  98. {
  99. new LinkButtonColumn { FieldName="No", HeaderText="班级编号", Align=AlignStyle.Center },
  100. new BoundFieldColumn { FieldName="Name", HeaderText="班级名称", Align=AlignStyle.Center }
  101. },
  102. IsCheckOnSelect = true,
  103. DataSourceUrl = Url.Content("~/Classmajor/List"),
  104. IsPagination = true,
  105. IsShowRowNumbers = true,
  106. IsSingleSelect = false
  107. }
  108. };
  109. }
  110. @section scripts{
  111. <script src="~/Scripts/Business/ExaminationApply/StudentSelect.js" type="text/javascript"></script>
  112. <script type="text/javascript">
  113. var nonSelect = "@DropdownList.SELECT_ALL";
  114. </script>
  115. }
  116. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  117. <div class="p_title">
  118. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  119. </div>
  120. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">
  121. <div class="current_navbar toolbar">
  122. <div class="func_info">
  123. <a class="easyui-linkbutton" href="javascript:Student_Confirm()" data-options="iconCls:'icon-ok',plain:'true'"
  124. onfocus="this.blur()">选中</a>
  125. </div>
  126. </div>
  127. </div>
  128. </div>
  129. <form id="formQuery" method="post">
  130. @Html.PositionCondition("GdssStudentSelect")
  131. <div class="search_keyword">
  132. <div class="search_input">
  133. <ul>
  134. <li class="sn" style="padding-left: 5px;">校区:</li>
  135. <li class="sv">
  136. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_SchoolArea, new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "ddlSchoolArea", Name = "ddlSchoolArea" }, new Dictionary<string, string> { { "data-condition", "dgStudentList" } })
  137. </li>
  138. <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("College"):</li>
  139. <li class="sv">
  140. @Html.ComboGrid(cgop, new Dictionary<string, string> { { "data-condition", "dgStudentList" } })
  141. </li>
  142. <li class="sn" style="padding-left: 5px;">年级:</li>
  143. <li class="sv">
  144. @Html.SchoolYearDropDownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "ddlYear", Name = "ddlYear", OnSelect = "queryGrademajor" }, new Dictionary<string, string> { { "data-condition", "dgStudentList" } })
  145. </li>
  146. @*<li class="sn" style="padding-left: 5px;">年级专业:</li>
  147. <li class="sv">
  148. @Html.ComboGrid(cgopGrademajor, new Dictionary<string, string> { { "data-condition", "dgStudentList" } })
  149. </li>*@
  150. </ul>
  151. <ul>
  152. <li class="sn" style="padding-left: 5px;">专业名称:</li>
  153. <li class="sv">
  154. @Html.ComboGrid(cgopStandard, new Dictionary<string, string> { { "data-condition", "dgStudentList" } })
  155. </li>
  156. <li class="sn" style="padding-left: 5px;">班级:</li>
  157. <li class="sv">
  158. @Html.ComboGrid(cgopClassmajor, new Dictionary<string, string> { { "data-condition", "dgStudentList" } })
  159. </li>
  160. </ul>
  161. </div>
  162. </div>
  163. </form>
  164. <div class="search_list">
  165. @Html.ContextMenuBar("Edit-StudentSelect")
  166. @Html.DataGrid(new DataGridOptions
  167. {
  168. Columns = new List<DataGridColumn>()
  169. {
  170. new CheckBoxFieldColumn{ HeaderText="", FieldName="UserID"},
  171. new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center, Width=0.08 },
  172. new BoundFieldColumn { FieldName="SchoolyearID", HeaderText="年级", Align=AlignStyle.Center, Width=0.04 },
  173. new BoundFieldColumn { FieldName="ClassmajorName", HeaderText="班级名称", Align=AlignStyle.Center, Width=0.08 },
  174. new BoundFieldColumn { FieldName="UserName", HeaderText="姓名", Align=AlignStyle.Center, Width=0.04 },
  175. new BoundFieldColumn { FieldName="SexName", HeaderText="性别", Align=AlignStyle.Center, Width=0.04 },
  176. new BoundFieldColumn { FieldName="IDNumber", HeaderText="证件号", Align=AlignStyle.Center, Width=0.12 },
  177. },
  178. IsAutoLoad = false,
  179. IsCheckOnSelect = true,
  180. DataSourceUrl = Url.Content("~/ExaminationApplayStudentList/StudentListForSelect?examinationRegistrationID=" + @ViewBag.examinationRegistrationID + "&examinationBatchID=" + @ViewBag.examinationBatchID + "&examinationProjectID=" + @ViewBag.examinationProjectID),
  181. ID = "dgStudentList",
  182. IsPagination = true,
  183. PageSize = 100,
  184. IsShowRowNumbers = true,
  185. IsSingleSelect = false,
  186. IsAutoHeight = false,
  187. })
  188. </div>
  189. </div>