List.cshtml 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Entities;
  3. @using EMIS.Web.Controls;
  4. @{
  5. ViewBag.Title = "List";
  6. ComboGridOptions cgopExaminationBatch = new ComboGridOptions
  7. {
  8. TextField = "Name",
  9. ValueField = "ExaminationBatchID",
  10. ID = "cgExaminationBatch",
  11. Name = "cgExaminationBatch",
  12. OnSelect = "examinationBatchChange",
  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 = "examinationTypeChange",
  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/StudentFeeList.js" type="text/javascript"></script>
  75. <script type="text/javascript">
  76. var nonSelect = "@DropdownList.SELECT_ALL";
  77. var paidStatusID = @((int)EMIS.ViewModel.EX_ExaminationRegistrationStatus.Paid);
  78. var refundingStatusID = @((int)EMIS.ViewModel.EX_ExaminationRegistrationStatus.Refunding);
  79. var refundApplyID = @((int)EMIS.ViewModel.EX_ExaminationRegistrationStatus.RefundApply);
  80. </script>
  81. }
  82. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  83. @Html.Position()
  84. <form id="formQuery" method="post" action="@Url.Content("~/StudentFee/Excel")">
  85. @Html.PositionCondition()
  86. @Html.Hidden("selectedIDs")
  87. <div class="search_keyword">
  88. <div class="search_input">
  89. <ul>
  90. <li class="sn" style="padding-left: 5px;">学年学期:</li>
  91. <li class="sv">
  92. @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", "dgStudentFeeList" } })
  93. </li>
  94. <li class="sn" style="padding-left: 5px;">考试批次:</li>
  95. <li class="sv">
  96. @Html.ComboGrid(cgopExaminationBatch, new Dictionary<string, string> { { "data-condition", "dgStudentFeeList" } })
  97. </li>
  98. <li class="sn" style="padding-left: 5px;">考试类型:</li>
  99. <li class="sv">
  100. @Html.ComboGrid(cgopExaminationType, new Dictionary<string, string> { { "data-condition", "dgStudentFeeList" } })
  101. </li>
  102. <li class="sn" style="padding-left: 5px;">项目名称:</li>
  103. <li class="sv">
  104. @Html.ComboGrid(cgopExaminationProject, new Dictionary<string, string> { { "data-condition", "dgStudentFeeList" } })
  105. </li>
  106. </ul>
  107. @*<ul>
  108. <li class="sn" style="padding-left: 5px;">学年学期:</li>
  109. <li class="sv">
  110. @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/SchoolYear/DropDown"),
  111. ID = "ddlSchoolyear", Name = "ddlSchoolyear", OnSelect = "schoolyearChange", SelectedValue = BaseExtensions.GetCurrentSchoolYearID(), OnLoadSuccess = "schoolyearChange" },
  112. new Dictionary<string, string> { { "data-condition", "dgStudentFeeList" } })
  113. </li>
  114. <li class="sn" style="padding-left: 5px;">考试批次:</li>
  115. <li class="sv">
  116. @Html.DropdownList(new DropdownListOptions
  117. {
  118. BindType = DropdownListBindType.SelectAll,
  119. ID = "ddlExaminationBatch",
  120. Name = "ddlExaminationBatch",
  121. OnSelect = "examinationBatchChange",
  122. OnLoadSuccess = "examinationBatchChange"
  123. },
  124. new Dictionary<string, string> { { "data-condition", "dgStudentFeeList" } })
  125. </li>
  126. <li class="sn" style="padding-left: 5px;">考试类型:</li>
  127. <li class="sv">
  128. @Html.DropdownList(new DropdownListOptions
  129. {
  130. BindType = DropdownListBindType.SelectAll,
  131. ID = "ddlExaminationType",
  132. Name = "ddlExaminationType",
  133. OnSelect = "examinationTypeChange",
  134. OnLoadSuccess = "examinationTypeChange"
  135. },
  136. new Dictionary<string, string> { { "data-condition", "dgStudentFeeList" } })
  137. </li>
  138. <li class="sn" style="padding-left: 5px;">项目名称:</li>
  139. <li class="sv">
  140. @Html.DropdownList(new DropdownListOptions
  141. {
  142. BindType = DropdownListBindType.SelectAll,
  143. ID = "ddlExaminationProject",
  144. Name = "ddlExaminationProject",
  145. OnSelect = "reload",
  146. OnLoadSuccess = "examinationProjectLoaded"
  147. },
  148. new Dictionary<string, string> { { "data-condition", "dgStudentFeeList" } })
  149. </li>
  150. </ul>*@
  151. <ul>
  152. <li class="sn" style="padding-left: 5px;">校区:</li>
  153. <li class="sv">
  154. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_SchoolArea, new DropdownListOptions
  155. {
  156. BindType = DropdownListBindType.SelectAll,
  157. ID = "ddlSchoolArea",
  158. Name = "ddlSchoolArea",
  159. OnSelect = "reload"
  160. },
  161. new Dictionary<string, string> { { "data-condition", "dgStudentFeeList" } })
  162. </li>
  163. <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("College"):</li>
  164. <li class="sv">
  165. @Html.DropdownList(new DropdownListOptions
  166. {
  167. BindType = DropdownListBindType.SelectAll,
  168. ID = "ddlCollege",
  169. Name = "ddlCollege",
  170. OnSelect = "collegeSelect",
  171. OnLoadSuccess = "collegeChange"
  172. },
  173. new Dictionary<string, string> { { "data-condition", "dgStudentFeeList" } })
  174. </li>
  175. <li class="sn" style="padding-left: 5px;">年级:</li>
  176. <li class="sv">
  177. @Html.SchoolYearDropDownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "ddlYear", Name = "ddlYear", OnSelect = "collegeSelect" }, new Dictionary<string, string> { { "data-condition", "dgStudentFeeList" } })
  178. </li>
  179. <li class="sn" style="padding-left: 5px;">班级:</li>
  180. <li class="sv">
  181. @Html.ComboGrid(new ComboGridOptions
  182. {
  183. TextField = "Name",
  184. ValueField = "ClassmajorID",
  185. Name = "cgbClassmajor",
  186. ID = "cgbClassmajor",
  187. OnSelect = "reload",
  188. GridOptions = new DataGridOptions
  189. {
  190. Columns = new List<DataGridColumn>()
  191. {
  192. new BoundFieldColumn { FieldName="Name", HeaderText="班级名称", Align=AlignStyle.Center }
  193. },
  194. //IsAutoLoad = false,
  195. IsCheckOnSelect = true,
  196. DataSourceUrl = Url.Content("~/Classmajor/List"),
  197. IsPagination = true,
  198. IsShowRowNumbers = true,
  199. IsSingleSelect = false
  200. }
  201. },
  202. new Dictionary<string, string> { { "data-condition", "dgStudentFeeList" } })
  203. </li>
  204. </ul>
  205. <ul>
  206. <li class="sn" style="padding-left: 5px;">缴费状态:</li>
  207. <li class="sv">
  208. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.EX_ExaminationRegistrationStatus, new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "ddlRecordStatus", Name = "ddlRecordStatus", OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgStudentFeeList" } })
  209. </li>
  210. <li class="sn" style="padding-left: 5px;">是否已确认:</li>
  211. <li class="sv">
  212. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_GeneralPurpose, new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "ddlIsConfirm", Name = "ddlIsConfirm", OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgStudentFeeList" } })
  213. </li>
  214. <li class="sn" style="padding-left: 5px;">缴费时间:</li>
  215. <li class="sv">
  216. @Html.TextBox(new TextBoxOptions { ID = "StartDate", Name = "StartDate", TextBoxType = TextBoxType.Date, OnChange = "startDateChanged" }, new Dictionary<string, string> { { "data-condition", "dgStudentFeeList" } })
  217. @Html.TextBox(new TextBoxOptions { ID = "EndDate", Name = "EndDate", TextBoxType = TextBoxType.Date, OnSelect = "endDateChanged" }, new Dictionary<string, string> { { "data-condition", "dgStudentFeeList" } })
  218. </li>
  219. </ul>
  220. <ul>
  221. <li class="sn" style="padding-left: 5px;">缴费方式:</li>
  222. <li class="sv">
  223. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.EX_PayWay, new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "ddlPayWay", Name = "ddlPayWay", OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgStudentFeeList" } })
  224. </li>
  225. <li class="sn" style="padding-left: 5px;">退费时间:</li>
  226. <li class="sv">
  227. @Html.TextBox(new TextBoxOptions { ID = "RefundStartDate", Name = "RefundStartDate", TextBoxType = TextBoxType.Date, OnChange = "refundStartDateChanged" }, new Dictionary<string, string> { { "data-condition", "dgStudentFeeList" } })
  228. @Html.TextBox(new TextBoxOptions { ID = "RefundEndDate", Name = "RefundEndDate", TextBoxType = TextBoxType.Date, OnSelect = "refundEndDateChanged" }, new Dictionary<string, string> { { "data-condition", "dgStudentFeeList" } })
  229. </li>
  230. </ul>
  231. </div>
  232. </div>
  233. <div class="p_title">
  234. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  235. 考试科目列表
  236. </div>
  237. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  238. </div>
  239. </form>
  240. @Html.PositionBatchModify()
  241. <div class="search_list">
  242. @Html.DataGrid(new DataGridOptions
  243. {
  244. Columns = new List<DataGridColumn>()
  245. {
  246. new CheckBoxFieldColumn{ HeaderText="", FieldName="ExaminationRegistrationID" },
  247. new BoundFieldColumn { FieldName="SchoolyearCode", HeaderText="学年学期", Align=AlignStyle.Center, Width = 0.08 },
  248. new BoundFieldColumn { FieldName="ExaminationBatchName", HeaderText="考试批次", Align=AlignStyle.Center, Width = 0.1 },
  249. new BoundFieldColumn { FieldName="ExaminationProjectName", HeaderText="项目名称", Align=AlignStyle.Center, Width = 0.1 },
  250. new BoundFieldColumn { FieldName="SchoolAreaName", HeaderText="校区", Align=AlignStyle.Center, Width = 0.08 },
  251. new BoundFieldColumn { FieldName="ClassmajorName", HeaderText="班级", Align=AlignStyle.Center, Width = 0.1 },
  252. new BoundFieldColumn { FieldName="UserName", HeaderText="姓名", Align=AlignStyle.Center, Width = 0.06 },
  253. new BoundFieldColumn { FieldName="SexName", HeaderText="性别", Align=AlignStyle.Center, Width = 0.04 },
  254. new BoundFieldColumn { FieldName="CertificatesTypeName", HeaderText="证件类型", Align=AlignStyle.Center, Width = 0.06 },
  255. new BoundFieldColumn { FieldName="IDNumber", HeaderText="证件号码", Align=AlignStyle.Center, Width = 0.14 },
  256. new BoundFieldColumn { FieldName="FeeTypeName", HeaderText="报名项目", Align=AlignStyle.Center, Width = 0.1 },
  257. new BoundFieldColumn { FieldName="Fee", HeaderText="金额", Align=AlignStyle.Center, CustomFormatFun="CMSFunction.DataTableFormatter.TwoDigit", Width = 0.06 },
  258. new BoundFieldColumn { FieldName="RecordStatusName", HeaderText="缴费状态", Align=AlignStyle.Center, Width = 0.06 },
  259. new BoundFieldColumn { FieldName="PayWayStr", HeaderText="缴费方式", Align=AlignStyle.Center, Width = 0.06 },
  260. new BoundFieldColumn { FieldName="PayTime", HeaderText="缴费时间", Align=AlignStyle.Center, Formatter=Formatter.LongDate, Width = 0.1 },
  261. new BoundFieldColumn { FieldName="RefundTime", HeaderText="申请退费时间", Align=AlignStyle.Center, Formatter=Formatter.LongDate, Width = 0.1 },
  262. new BoundFieldColumn { FieldName="RefundConfirmTime", HeaderText="确认退费时间", Align=AlignStyle.Center, Formatter=Formatter.LongDate, Width = 0.1 },
  263. new BoundFieldColumn { FieldName="WechatOrderID", HeaderText="微信订单号", Align=AlignStyle.Center, Width = 0.2 },
  264. new BoundFieldColumn { FieldName="RefundOrderID", HeaderText="微信退款单号", Align=AlignStyle.Center, Width = 0.2 },
  265. new BoundFieldColumn { FieldName="No", HeaderText="确认单号", Align=AlignStyle.Center, Width = 0.1 },
  266. new BoundFieldColumn { FieldName="ReceiptNo", HeaderText="收据号", Align=AlignStyle.Center, Width = 0.1 }
  267. },
  268. OnLoadSuccessFun = "gridLoaded",
  269. IsAutoLoad = false,
  270. IsCheckOnSelect = true,
  271. DataSourceUrl = Url.Content("~/StudentFee/List"),
  272. ID = "dgStudentFeeList",
  273. IsPagination = true,
  274. IsShowRowNumbers = true,
  275. IsSingleSelect = false
  276. })
  277. </div>
  278. </div>