ProjectStatisticList.cshtml 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Entities;
  3. @using EMIS.Web.Controls;
  4. @{
  5. ViewBag.Title = "ProjectStatisticList";
  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/ProjectStatistic.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/ProjectStatisticExcel")">
  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", "dgStudentFeeProjectStatisticList" } })
  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", "dgStudentFeeProjectStatisticList" } })
  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", "dgStudentFeeProjectStatisticList" } })
  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", "dgStudentFeeProjectStatisticList" } })
  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", "dgStudentFeeProjectStatisticList" } })
  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", "dgStudentFeeProjectStatisticList" } })
  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", "dgStudentFeeProjectStatisticList" } })
  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", "dgStudentFeeProjectStatisticList" } })
  152. </li>
  153. </ul>*@
  154. <ul>
  155. <li class="sn" style="padding-left: 5px;">校区:</li>
  156. <li class="sv">
  157. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_SchoolArea, new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "ddlSchoolArea", Name = "ddlSchoolArea", OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgStudentFeeProjectStatisticList" } })
  158. </li>
  159. <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("College"):</li>
  160. <li class="sv">
  161. @Html.DropdownList(new DropdownListOptions
  162. {
  163. BindType = DropdownListBindType.SelectAll,
  164. ID = "ddlCollege",
  165. Name = "ddlCollege",
  166. OnSelect = "collegeSelect",
  167. OnLoadSuccess = "collegeChange"
  168. },
  169. new Dictionary<string, string> { { "data-condition", "dgStudentFeeProjectStatisticList" } })
  170. </li>
  171. <li class="sn" style="padding-left: 5px;">年级:</li>
  172. <li class="sv">
  173. @Html.SchoolYearDropDownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "ddlYear", Name = "ddlYear", OnSelect = "collegeSelect" }, new Dictionary<string, string> { { "data-condition", "dgStudentFeeProjectStatisticList" } })
  174. </li>
  175. <li class="sn" style="padding-left: 5px;">专业:</li>
  176. <li class="sv">
  177. @Html.ComboGrid(new ComboGridOptions
  178. {
  179. GridOptions = new DataGridOptions
  180. {
  181. Columns = new List<DataGridColumn>()
  182. {
  183. new BoundFieldColumn { FieldName="StandardName", HeaderText="专业", Align=AlignStyle.Center }
  184. },
  185. //OnLoadSuccessFun = "standardChange",
  186. IsAutoLoad = true,
  187. DataSourceUrl = Url.Content("~/Grademajor/StandardList"),
  188. IsPagination = true
  189. },
  190. TextField = "StandardName",
  191. ValueField = "StandardID",
  192. Name = "cgbStandard",
  193. ID = "cgbStandard",
  194. OnSelect = "standardSelect",
  195. OnChange = "standardSelect"
  196. },
  197. new Dictionary<string, string> { { "data-condition", "dgStudentFeeProjectStatisticList" } })
  198. </li>
  199. </ul>
  200. <ul>
  201. <li class="sn" style="padding-left: 5px;">班级:</li>
  202. <li class="sv">
  203. @Html.ComboGrid(new ComboGridOptions
  204. {
  205. TextField = "Name",
  206. ValueField = "ClassmajorID",
  207. Name = "cgbClassmajor",
  208. ID = "cgbClassmajor",
  209. OnSelect = "reload",
  210. GridOptions = new DataGridOptions
  211. {
  212. Columns = new List<DataGridColumn>()
  213. {
  214. new BoundFieldColumn { FieldName="Name", HeaderText="班级名称", Align=AlignStyle.Center }
  215. },
  216. IsAutoLoad = true,
  217. DataSourceUrl = Url.Content("~/Classmajor/List"),
  218. IsPagination = true
  219. }
  220. },
  221. new Dictionary<string, string> { { "data-condition", "dgStudentFeeProjectStatisticList" } })
  222. </li>
  223. <li class="sn" style="padding-left: 5px;">缴费时间:</li>
  224. <li class="sv">
  225. @Html.TextBox(new TextBoxOptions { ID = "StartDate", Name = "StartDate", TextBoxType = TextBoxType.Date, OnChange = "startDateChanged" }, new Dictionary<string, string> { { "data-condition", "dgStudentFeeProjectStatisticList" } })
  226. @Html.TextBox(new TextBoxOptions { ID = "EndDate", Name = "EndDate", TextBoxType = TextBoxType.Date, OnSelect = "endDateChanged" }, new Dictionary<string, string> { { "data-condition", "dgStudentFeeProjectStatisticList" } })
  227. </li>
  228. <li class="sv">
  229. <a class="easyui-linkbutton l-btn" onclick="reload()" href="#;" data-options="iconCls:'icon-search'">
  230. 查询
  231. </a>
  232. </li>
  233. </ul>
  234. </div>
  235. </div>
  236. <div class="p_title">
  237. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  238. 查看项目报名汇总
  239. </div>
  240. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  241. </div>
  242. </form>
  243. <div class="search_list">
  244. @Html.DataGrid(new DataGridOptions
  245. {
  246. Columns = new List<DataGridColumn>()
  247. {
  248. new BoundFieldColumn { FieldName="ExaminationBatchName", HeaderText="报名批次", Align=AlignStyle.Center },
  249. new BoundFieldColumn { FieldName="ExaminationTypeName", HeaderText="考试类型", Align=AlignStyle.Center },
  250. new BoundFieldColumn { FieldName="ExaminationProjectName", HeaderText="考试项目", Align=AlignStyle.Center },
  251. new BoundFieldColumn { FieldName="FeeTypeName", HeaderText="报名费用", Align=AlignStyle.Center },
  252. new BoundFieldColumn { FieldName="TotalRegistCount", HeaderText="报名人数", Align=AlignStyle.Center },
  253. new BoundFieldColumn { FieldName="TotalRegistAmount", HeaderText="总金额", Align=AlignStyle.Center, CustomFormatFun="CMSFunction.DataTableFormatter.TwoDigit" },
  254. new BoundFieldColumn { FieldName="TotalPaidCount", HeaderText="已交费人数", Align=AlignStyle.Center },
  255. new BoundFieldColumn { FieldName="TotalPaidAmount", HeaderText="已交费金额", Align=AlignStyle.Center, CustomFormatFun="CMSFunction.DataTableFormatter.TwoDigit" },
  256. new BoundFieldColumn { FieldName="TotalRefundCount", HeaderText="已退费人数", Align=AlignStyle.Center },
  257. new BoundFieldColumn { FieldName="TotalRefundAmount", HeaderText="已退费金额", Align=AlignStyle.Center, CustomFormatFun="CMSFunction.DataTableFormatter.TwoDigit" },
  258. new BoundFieldColumn { FieldName="TotalRefundApplyCount", HeaderText="退费申请人数", Align=AlignStyle.Center },
  259. new BoundFieldColumn { FieldName="TotalRefundApplyAmount", HeaderText="退费申请金额", Align=AlignStyle.Center, CustomFormatFun="CMSFunction.DataTableFormatter.TwoDigit" },
  260. new BoundFieldColumn { FieldName="TotalRefundingCount", HeaderText="待退费人数", Align=AlignStyle.Center },
  261. new BoundFieldColumn { FieldName="TotalRefundingAmount", HeaderText="待退费金额", Align=AlignStyle.Center, CustomFormatFun="CMSFunction.DataTableFormatter.TwoDigit" },
  262. },
  263. IsAutoLoad = false,
  264. DataSourceUrl = Url.Content("~/StudentFee/ProjectStatisticList"),
  265. OnLoadSuccessFun = "gridLoaded",
  266. ID = "dgStudentFeeProjectStatisticList",
  267. IsPagination = false
  268. })
  269. </div>
  270. </div>