ClassStudentStatisticsList.cshtml 10.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Entities;
  3. @using EMIS.Web.Controls;
  4. @{
  5. ViewBag.Title = "ClassStudentStatisticsList";
  6. ComboGridOptions cgopCampus = new ComboGridOptions
  7. {
  8. TextField = "Name",
  9. ValueField = "CampusID",
  10. OnSelect = "queryCollege",
  11. Name = "CampusDropdown",
  12. ID = "CampusDropdown",
  13. GridOptions = new DataGridOptions
  14. {
  15. Columns = new List<DataGridColumn>()
  16. {
  17. // new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CampusCode"), Align=AlignStyle.Center },
  18. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CampusName"), Align=AlignStyle.Center }
  19. },
  20. OnLoadSuccessFun = "reload",
  21. IsCheckOnSelect = true,
  22. DataSourceUrl = Url.Content("~/Campus/List"),
  23. IsPagination = true,
  24. IsShowRowNumbers = true,
  25. IsSingleSelect = false,
  26. }
  27. };
  28. ComboGridOptions cgopCollege = new ComboGridOptions
  29. {
  30. TextField = "Name",
  31. ValueField = "CollegeID",
  32. OnSelect = "queryCollege",
  33. Name = "CollegeDropdown",
  34. ID = "CollegeDropdown",
  35. GridOptions = new DataGridOptions
  36. {
  37. Columns = new List<DataGridColumn>()
  38. {
  39. // new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Align=AlignStyle.Center },
  40. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center }
  41. },
  42. OnLoadSuccessFun = "reload",
  43. IsCheckOnSelect = true,
  44. DataSourceUrl = Url.Content("~/College/ListOnlyCollege"),
  45. IsPagination = true,
  46. IsShowRowNumbers = true,
  47. IsSingleSelect = false,
  48. }
  49. };
  50. ComboGridOptions cgopClassmajor = new ComboGridOptions
  51. {
  52. TextField = "Name",
  53. ValueField = "ClassmajorID",
  54. Name = "ClassmajorDropdown",
  55. ID = "ClassmajorDropdown",
  56. OnSelect = "reload",
  57. GridOptions = new DataGridOptions
  58. {
  59. Columns = new List<DataGridColumn>()
  60. {
  61. //new LinkButtonColumn { FieldName="No", HeaderText="班级编号", Align=AlignStyle.Center },
  62. new BoundFieldColumn { FieldName="Name", HeaderText="班级名称", Align=AlignStyle.Center }
  63. },
  64. IsCheckOnSelect = true,
  65. DataSourceUrl = Url.Content("~/Classmajor/List"),
  66. IsPagination = true,
  67. IsShowRowNumbers = true,
  68. IsSingleSelect = false
  69. }
  70. };
  71. ComboGridOptions cgopStandard = new ComboGridOptions
  72. {
  73. TextField = "StandardName",
  74. ValueField = "StandardID",
  75. OnSelect = "queryStandard",
  76. Name = "StandardDictionaryDropDown",
  77. ID = "StandardDictionaryDropDown",
  78. GridOptions = new DataGridOptions
  79. {
  80. Columns = new List<DataGridColumn>()
  81. {
  82. new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center }
  83. },
  84. IsCheckOnSelect = true,
  85. DataSourceUrl = Url.Content("~/Grademajor/StandardBindComboGridOptions"),
  86. IsPagination = true,
  87. IsShowRowNumbers = true,
  88. IsSingleSelect = false,
  89. }
  90. };
  91. ComboGridOptions cgExaminationSubject = new ComboGridOptions
  92. {
  93. TextField = "Name",
  94. ValueField = "ExaminationSubjectID",
  95. Name = "ddlExaminationSubject",
  96. ID = "ddlExaminationSubject",
  97. OnSelect = "reload",
  98. GridOptions = new DataGridOptions
  99. {
  100. Columns = new List<DataGridColumn>()
  101. {
  102. new BoundFieldColumn { FieldName="Name", HeaderText="考试科目名称", Align=AlignStyle.Center }
  103. },
  104. //OnLoadSuccessFun = "SelectExaminationSubjectDropdown",
  105. IsCheckOnSelect = true,
  106. DataSourceUrl = Url.Content("~/ExaminationSubject/List"),
  107. IsPagination = true,
  108. IsShowRowNumbers = true,
  109. IsSingleSelect = false
  110. }
  111. };
  112. }
  113. @section scripts{
  114. <script src="~/Scripts/Business/ExaminationApply/ClassStudentStatisticsList.js" type="text/javascript"></script>
  115. <script type="text/javascript">
  116. var nonSelect = "@DropdownList.SELECT_ALL";
  117. </script>
  118. }
  119. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  120. @Html.Position()
  121. <form id="formQuery" method="post" action="@Url.Content("~/ExaminationApplayStudentList/ClassStudentStatisticsExcel")">
  122. <div class="search_keyword">
  123. <div class="search_input">
  124. <ul>
  125. <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("Campus"):</li>
  126. <li class="sv">
  127. @Html.ComboGrid(cgopCampus, new Dictionary<string, string> { { "data-condition", "dgClassStudentStatisticsList" } })
  128. </li>
  129. <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("College"):</li>
  130. <li class="sv">
  131. @Html.ComboGrid(cgopCollege, new Dictionary<string, string> { { "data-condition", "dgClassStudentStatisticsList" } })
  132. </li>
  133. <li class="sn" style="padding-left: 5px;">年级:</li>
  134. <li class="sv">
  135. @Html.SchoolYearDropDownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "SchoolyearDictionaryDropDown", Name = "SchoolyearDictionaryDropDown", OnSelect = "queryClass" }, new Dictionary<string, string> { { "data-condition", "dgClassStudentStatisticsList" } })
  136. </li>
  137. <li class="sn" style="padding-left: 5px;">专业名称:</li>
  138. <li class="sv">
  139. @Html.ComboGrid(cgopStandard, new Dictionary<string, string> { { "data-condition", "dgClassStudentStatisticsList" } })
  140. @*@Html.DictionaryComboGrid(EMIS.ViewModel.DictionaryItem.CF_Standard, DropdownListBindType.SelectAll, new ComboGridOptions { ID = "StandardDictionaryDropDown", Name = "StandardDictionaryDropDown", OnSelect = "queryClass" }, new Dictionary<string, string> { { "data-condition", "dgList" } })*@
  141. </li>
  142. </ul>
  143. <ul>
  144. <li class="sn" style="padding-left: 5px;">班级名称:</li>
  145. <li class="sv">
  146. @Html.ComboGrid(cgopClassmajor, new Dictionary<string, string> { { "data-condition", "dgClassStudentStatisticsList" } })
  147. </li>
  148. <li class="sn" style="padding-left: 5px;">考试学年学期:</li>
  149. <li class="sv">
  150. @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/SchoolYear/DropDown"), ID = "SchoolYearDropdown", Name = "SchoolYearDropdown", OnSelect = "SelectExaminationSubjectDropdown", SelectedValue = ViewBag.SchoolYearID, OnLoadSuccess = "QueryExaminationSubjectDropdown" }, new Dictionary<string, string> { { "data-condition", "dgClassStudentStatisticsList" } })
  151. </li>
  152. <li class="sn" style="padding-left: 5px;">考试科目:</li>
  153. <li class="sv">
  154. @Html.ComboGrid(cgExaminationSubject, new Dictionary<string, string> { { "data-condition", "dgClassStudentStatisticsList" } })
  155. @* @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/ExaminationSubject/DropdownList"), ID = "ddlExaminationSubject", Name = "ddlExaminationSubject", OnSelect = "SelectExaminationSubjectDropdown" }, new Dictionary<string, string> { { "data-condition", "dgStudentList" } })*@
  156. </li>
  157. @*<li class="sv"><a class="easyui-linkbutton l-btn" onclick="reload()" href="#;" data-options="iconCls:'icon-search'">
  158. 查询</a></li>*@
  159. </ul>
  160. </div>
  161. </div>
  162. <div class="p_title">
  163. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  164. 学生名单列表
  165. </div>
  166. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  167. </div>
  168. </form>
  169. <div class="search_list">
  170. @Html.DataGrid(new DataGridOptions
  171. {
  172. Columns = new List<DataGridColumn>()
  173. {
  174. new CheckBoxFieldColumn{ HeaderText="", FieldName="UserID",Width=0.1},
  175. new BoundFieldColumn { FieldName="Year", HeaderText="年级", Align=AlignStyle.Center,Width=0.025 },
  176. new BoundFieldColumn { FieldName="SchoolyearCode", HeaderText="报名学年学期", Align=AlignStyle.Center,Width=0.035 },
  177. new BoundFieldColumn { FieldName="GrademajorName", HeaderText="年级专业", Align=AlignStyle.Center,OverflowLength=20 },
  178. new BoundFieldColumn { FieldName="ClassmajorName", HeaderText="班级", Align=AlignStyle.Center,OverflowLength=20 },
  179. new BoundFieldColumn { FieldName="ExaminationSchoolyearCode", HeaderText="考试学年学期", Align=AlignStyle.Center,Width=0.035 },
  180. new BoundFieldColumn { FieldName="SubjectName", HeaderText="科目", Align=AlignStyle.Center,OverflowLength=20 },
  181. new BoundFieldColumn { FieldName="StudentCount", HeaderText="报名人数", Align=AlignStyle.Center,Width=0.035 },
  182. new BoundFieldColumn { FieldName="Cost", HeaderText="收费", Align=AlignStyle.Center,Width=0.03 }
  183. },
  184. IsCheckOnSelect = true,
  185. DataSourceUrl = Url.Content("~/ExaminationApplayStudentList/ClassStudentStatisticsList"),
  186. ID = "dgClassStudentStatisticsList",
  187. IsPagination = true,
  188. IsShowRowNumbers = true,
  189. IsSingleSelect = false
  190. })
  191. </div>
  192. </div>