ClassStatisticList.cshtml 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Entities;
  3. @using EMIS.Web.Controls;
  4. @{
  5. ViewBag.Title = "ClassStatisticList";
  6. ComboGridOptions cgopExaminationBatch = new ComboGridOptions
  7. {
  8. TextField = "Name",
  9. ValueField = "ExaminationBatchID",
  10. ID = "cgExaminationBatch",
  11. Name = "cgExaminationBatch",
  12. OnSelect = "queryBatch",
  13. //IsEnabled = false,
  14. GridOptions = new DataGridOptions
  15. {
  16. Columns = new List<DataGridColumn>()
  17. {
  18. new BoundFieldColumn { FieldName="Name", HeaderText="考试批次", Align=AlignStyle.Center, Width = 0.3 }
  19. },
  20. IsCheckOnSelect = true,
  21. DataSourceUrl = Url.Content("~/ExaminationApplayStudentList/GetExaminationBatchViewGrid"),
  22. IsPagination = true,
  23. IsShowRowNumbers = true,
  24. IsSingleSelect = false,
  25. //OnLoadSuccessFun = "queryBatch",
  26. }
  27. };
  28. ComboGridOptions cgopExaminationType = new ComboGridOptions
  29. {
  30. TextField = "Name",
  31. ValueField = "ExaminationTypeID",
  32. Name = "cgExaminationType",
  33. ID = "cgExaminationType",
  34. OnSelect = "queryType",
  35. //IsEnabled = false,
  36. GridOptions = new DataGridOptions
  37. {
  38. Columns = new List<DataGridColumn>()
  39. {
  40. new BoundFieldColumn { FieldName="Name", HeaderText="考试类型", Align=AlignStyle.Center, Width = 0.3 }
  41. },
  42. IsCheckOnSelect = true,
  43. DataSourceUrl = Url.Content("~/ExaminationApplayStudentList/GetExaminationTypeViewGrid"),
  44. IsPagination = true,
  45. IsShowRowNumbers = true,
  46. IsSingleSelect = false,
  47. //OnLoadSuccessFun = "queryType",
  48. }
  49. };
  50. ComboGridOptions cgopExaminationProject = new ComboGridOptions
  51. {
  52. TextField = "Name",
  53. ValueField = "ExaminationProjectID",
  54. Name = "cgExaminationProject",
  55. ID = "cgExaminationProject",
  56. //OnSelect = "reload",
  57. //IsEnabled = false,
  58. GridOptions = new DataGridOptions
  59. {
  60. Columns = new List<DataGridColumn>()
  61. {
  62. new BoundFieldColumn { FieldName="Name", HeaderText="项目名称", Align=AlignStyle.Center, Width = 0.3 }
  63. },
  64. IsCheckOnSelect = true,
  65. DataSourceUrl = Url.Content("~/ExaminationApplayStudentList/GetProjectListViewGrid"),
  66. IsPagination = true,
  67. IsShowRowNumbers = true,
  68. IsSingleSelect = false,
  69. //OnLoadSuccessFun = "queryProject",
  70. }
  71. };
  72. }
  73. @section scripts{
  74. <script src="~/Scripts/Business/StudentFeeManage/ClassStatistic.js" type="text/javascript"></script>
  75. <script type="text/javascript">
  76. var nonSelect = "@DropdownList.SELECT_ALL";
  77. </script>
  78. }
  79. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  80. @Html.Position()
  81. <form id="formQuery" method="post" action="@Url.Content("~/StudentFee/ClassStatisticExcel")">
  82. <div class="search_keyword">
  83. <div class="search_input">
  84. <ul>
  85. <li class="sn" style="padding-left: 5px;">学年学期:</li>
  86. <li class="sv">
  87. @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/SchoolYear/DropDown"), ID = "ddlSchoolyear", Name = "ddlSchoolyear", OnSelect = "querySchoolYear", SelectedValue = BaseExtensions.GetCurrentSchoolYearID() }, new Dictionary<string, string> { { "data-condition", "dgStudentFeeClassStatisticList" } })
  88. </li>
  89. <li class="sn" style="padding-left: 5px;">考试批次:</li>
  90. <li class="sv">
  91. @Html.ComboGrid(cgopExaminationBatch, new Dictionary<string, string> { { "data-condition", "dgStudentFeeClassStatisticList" } })
  92. </li>
  93. <li class="sn" style="padding-left: 5px;">考试类型:</li>
  94. <li class="sv">
  95. @Html.ComboGrid(cgopExaminationType, new Dictionary<string, string> { { "data-condition", "dgStudentFeeClassStatisticList" } })
  96. </li>
  97. <li class="sn" style="padding-left: 5px;">项目名称:</li>
  98. <li class="sv">
  99. @Html.ComboGrid(cgopExaminationProject, new Dictionary<string, string> { { "data-condition", "dgStudentFeeClassStatisticList" } })
  100. </li>
  101. </ul>
  102. @*<ul>
  103. <li class="sn" style="padding-left: 5px;">学年学期:</li>
  104. <li class="sv">
  105. @Html.DropdownList(new DropdownListOptions
  106. {
  107. BindType = DropdownListBindType.SelectAll,
  108. ItemSourceUrl = Url.Content("~/SchoolYear/DropDown"),
  109. ID = "ddlSchoolyear",
  110. Name = "ddlSchoolyear",
  111. OnSelect = "schoolyearChange",
  112. SelectedValue = BaseExtensions.GetCurrentSchoolYearID(),
  113. OnLoadSuccess = "schoolyearChange"
  114. },
  115. new Dictionary<string, string> { { "data-condition", "dgStudentFeeClassStatisticList" } })
  116. </li>
  117. <li class="sn" style="padding-left: 5px;">考试批次:</li>
  118. <li class="sv">
  119. @Html.DropdownList(new DropdownListOptions
  120. {
  121. BindType = DropdownListBindType.SelectAll,
  122. ID = "ddlExaminationBatch",
  123. Name = "ddlExaminationBatch",
  124. OnSelect = "examinationBatchChange",
  125. OnLoadSuccess = "examinationBatchChange"
  126. },
  127. new Dictionary<string, string> { { "data-condition", "dgStudentFeeClassStatisticList" } })
  128. </li>
  129. <li class="sn" style="padding-left: 5px;">考试类型:</li>
  130. <li class="sv">
  131. @Html.DropdownList(new DropdownListOptions
  132. {
  133. BindType = DropdownListBindType.SelectAll,
  134. ID = "ddlExaminationType",
  135. Name = "ddlExaminationType",
  136. OnSelect = "examinationTypeChange",
  137. OnLoadSuccess = "examinationTypeChange"
  138. },
  139. new Dictionary<string, string> { { "data-condition", "dgStudentFeeClassStatisticList" } })
  140. </li>
  141. <li class="sn" style="padding-left: 5px;">项目名称:</li>
  142. <li class="sv">
  143. @Html.DropdownList(new DropdownListOptions
  144. {
  145. BindType = DropdownListBindType.SelectAll,
  146. ID = "ddlExaminationProject",
  147. Name = "ddlExaminationProject",
  148. OnSelect = "reload",
  149. OnLoadSuccess = "examinationProjectLoaded"
  150. },
  151. new Dictionary<string, string> { { "data-condition", "dgStudentFeeClassStatisticList" } })
  152. </li>
  153. </ul>*@
  154. <ul>
  155. <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("College"):</li>
  156. <li class="sv">
  157. @Html.DropdownList(new DropdownListOptions
  158. {
  159. BindType = DropdownListBindType.SelectAll,
  160. ID = "ddlCollege",
  161. Name = "ddlCollege",
  162. OnSelect = "collegeSelect",
  163. OnLoadSuccess = "collegeChange"
  164. },
  165. new Dictionary<string, string> { { "data-condition", "dgStudentFeeClassStatisticList" } })
  166. </li>
  167. <li class="sn" style="padding-left: 5px;">年级:</li>
  168. <li class="sv">
  169. @Html.SchoolYearDropDownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "ddlYear", Name = "ddlYear", OnSelect = "collegeSelect" }, new Dictionary<string, string> { { "data-condition", "dgStudentFeeClassStatisticList" } })
  170. </li>
  171. <li class="sn" style="padding-left: 5px;">专业:</li>
  172. <li class="sv">
  173. @Html.ComboGrid(new ComboGridOptions
  174. {
  175. GridOptions = new DataGridOptions
  176. {
  177. Columns = new List<DataGridColumn>()
  178. {
  179. new BoundFieldColumn { FieldName="StandardName", HeaderText="专业", Align=AlignStyle.Center }
  180. },
  181. //OnLoadSuccessFun = "standardChange",
  182. IsAutoLoad = true,
  183. DataSourceUrl = Url.Content("~/Grademajor/StandardList"),
  184. IsPagination = true
  185. },
  186. TextField = "StandardName",
  187. ValueField = "StandardID",
  188. Name = "cgbStandard",
  189. ID = "cgbStandard",
  190. OnSelect = "standardSelect"
  191. },
  192. new Dictionary<string, string> { { "data-condition", "dgStudentFeeClassStatisticList" } })
  193. </li>
  194. <li class="sn" style="padding-left: 5px;">班级:</li>
  195. <li class="sv">
  196. @Html.ComboGrid(new ComboGridOptions
  197. {
  198. TextField = "Name",
  199. ValueField = "ClassmajorID",
  200. Name = "cgbClassmajor",
  201. ID = "cgbClassmajor",
  202. OnSelect = "reload",
  203. GridOptions = new DataGridOptions
  204. {
  205. Columns = new List<DataGridColumn>()
  206. {
  207. new BoundFieldColumn { FieldName="Name", HeaderText="班级名称", Align=AlignStyle.Center }
  208. },
  209. IsAutoLoad = true,
  210. DataSourceUrl = Url.Content("~/Classmajor/List"),
  211. IsPagination = true
  212. }
  213. },
  214. new Dictionary<string, string> { { "data-condition", "dgStudentFeeClassStatisticList" } })
  215. </li>
  216. <li class="sv">
  217. <a class="easyui-linkbutton l-btn" onclick="reload()" href="#;" data-options="iconCls:'icon-search'">
  218. 查询
  219. </a>
  220. </li>
  221. </ul>
  222. </div>
  223. </div>
  224. <div class="p_title">
  225. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  226. 查看项目报名汇总
  227. </div>
  228. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  229. </div>
  230. </form>
  231. <div class="search_list">
  232. @Html.DataGrid(new DataGridOptions
  233. {
  234. Columns = new List<DataGridColumn>()
  235. {
  236. new BoundFieldColumn { FieldName="Year", HeaderText="年级", Align=AlignStyle.Center },
  237. new BoundFieldColumn { FieldName="CollegeName", HeaderText="院/系/部", Align=AlignStyle.Center },
  238. new BoundFieldColumn { FieldName="ClassmajorName", HeaderText="班级", Align=AlignStyle.Center },
  239. new BoundFieldColumn { FieldName="ExaminationTypeName", HeaderText="考试类型", Align=AlignStyle.Center },
  240. new BoundFieldColumn { FieldName="ExaminationProjectName", HeaderText="考试项目", Align=AlignStyle.Center },
  241. new BoundFieldColumn { FieldName="FeeTypeName", HeaderText="报名项目(费用)", Align=AlignStyle.Center },
  242. new BoundFieldColumn { FieldName="TotalRegistCount", HeaderText="报名人数", Align=AlignStyle.Center },
  243. new BoundFieldColumn { FieldName="TotalRegistAmount", HeaderText="总金额", Align=AlignStyle.Center, CustomFormatFun="CMSFunction.DataTableFormatter.TwoDigit" },
  244. new BoundFieldColumn { FieldName="TotalPaidCount", HeaderText="已交费人数", Align=AlignStyle.Center },
  245. new BoundFieldColumn { FieldName="TotalPaidAmount", HeaderText="已交费金额", Align=AlignStyle.Center, CustomFormatFun="CMSFunction.DataTableFormatter.TwoDigit" },
  246. new BoundFieldColumn { FieldName="TotalRefundCount", HeaderText="已退费人数", Align=AlignStyle.Center },
  247. new BoundFieldColumn { FieldName="TotalRefundAmount", HeaderText="已退费金额", Align=AlignStyle.Center, CustomFormatFun="CMSFunction.DataTableFormatter.TwoDigit" },
  248. new BoundFieldColumn { FieldName="TotalRefundApplyCount", HeaderText="退费申请人数", Align=AlignStyle.Center },
  249. new BoundFieldColumn { FieldName="TotalRefundApplyAmount", HeaderText="退费申请金额", Align=AlignStyle.Center, CustomFormatFun="CMSFunction.DataTableFormatter.TwoDigit" },
  250. new BoundFieldColumn { FieldName="TotalRefundingCount", HeaderText="待退费人数", Align=AlignStyle.Center },
  251. new BoundFieldColumn { FieldName="TotalRefundingAmount", HeaderText="待退费金额", Align=AlignStyle.Center, CustomFormatFun="CMSFunction.DataTableFormatter.TwoDigit" },
  252. },
  253. IsAutoLoad = false,
  254. DataSourceUrl = Url.Content("~/StudentFee/ClassStatisticList"),
  255. OnLoadSuccessFun = "gridLoaded",
  256. ID = "dgStudentFeeClassStatisticList",
  257. IsPagination = false
  258. })
  259. </div>
  260. </div>