FinanceReport.cshtml 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Entities;
  3. @using EMIS.Web.Controls;
  4. @{
  5. ViewBag.Title = "List";
  6. }
  7. @section scripts{
  8. <script src="~/Scripts/Business/StudentFeeManage/FinanceReport.js" type="text/javascript"></script>
  9. <script type="text/javascript">
  10. var nonSelect = "@DropdownList.SELECT_ALL";
  11. </script>
  12. }
  13. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  14. @Html.Position()
  15. <form id="formQuery" method="post" action="@Url.Content("~/StudentFee/FinanceReportExcel")">
  16. @Html.PositionCondition()
  17. <div class="search_keyword">
  18. <div class="search_input">
  19. <ul>
  20. <li class="sn" style="padding-left: 5px;">学年学期:</li>
  21. <li class="sv">
  22. @Html.DropdownList(new DropdownListOptions
  23. {
  24. BindType = DropdownListBindType.SelectAll,
  25. ItemSourceUrl = Url.Content("~/SchoolYear/DropDown"),
  26. ID = "ddlSchoolyear",
  27. Name = "ddlSchoolyear",
  28. OnSelect = "reload",
  29. SelectedValue = BaseExtensions.GetCurrentSchoolYearID()
  30. },
  31. new Dictionary<string, string> { { "data-condition", "dgFinanceReportList" } })
  32. </li>
  33. <li class="sn" style="padding-left: 5px;">收费时间起:</li>
  34. <li class="sv">
  35. @Html.TextBox(new TextBoxOptions { TextBoxType = TextBoxType.Date, ID = "txtPayTimeStart", Name = "txtPayTimeStart", OnChange = "startDateChanged" }, new Dictionary<string, string> { { "data-condition", "dgFinanceReportList" } })
  36. </li>
  37. <li class="sn" style="padding-left: 5px;">收费时间止:</li>
  38. <li class="sv">
  39. @Html.TextBox(new TextBoxOptions { TextBoxType = TextBoxType.Date, ID = "txtPayTimeEnd", Name = "txtPayTimeEnd", OnChange = "endDateChanged" }, new Dictionary<string, string> { { "data-condition", "dgFinanceReportList" } })
  40. </li>
  41. <li class="sn" style="padding-left: 5px;">项目名称:</li>
  42. <li class="sv">
  43. @Html.DropdownList(new DropdownListOptions
  44. {
  45. BindType = DropdownListBindType.SelectAll,
  46. ItemSourceUrl = Url.Content("~/ChargeProject/ProjectDropdownList"),
  47. ID = "ddlExaminationProject",
  48. Name = "ddlExaminationProject",
  49. OnSelect = "reload",
  50. OnLoadSuccess = "reload"
  51. },
  52. new Dictionary<string, string> { { "data-condition", "dgFinanceReportList" } })
  53. </li>
  54. </ul>
  55. <ul>
  56. <li class="sn" style="padding-left: 5px;">开票人:</li>
  57. <li class="sv">
  58. @Html.ComboGrid(new ComboGridOptions
  59. {
  60. ID = "cgbReceiver",
  61. Name = "cgbReceiver",
  62. TextField = "Name",
  63. ValueField = "UserID",
  64. OnSelect = "reload",
  65. GridOptions = new DataGridOptions
  66. {
  67. Columns = new List<DataGridColumn>()
  68. {
  69. new BoundFieldColumn { FieldName="Name", HeaderText="姓名", Align=AlignStyle.Center }
  70. },
  71. IsAutoLoad = true,
  72. DataSourceUrl = Url.Content("~/Staff/List"),
  73. IsPagination = true
  74. }
  75. },
  76. new Dictionary<string, string> { { "data-condition", "dgFinanceReportList" } })
  77. </li>
  78. </ul>
  79. </div>
  80. </div>
  81. <div class="p_title">
  82. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  83. 财务报表
  84. </div>
  85. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  86. </div>
  87. </form>
  88. <div class="search_list">
  89. @Html.DataGrid(new DataGridOptions
  90. {
  91. Columns = new List<DataGridColumn>()
  92. {
  93. new BoundFieldColumn { FieldName="ReceiptNo", HeaderText="收据号", Align=AlignStyle.Center },
  94. new BoundFieldColumn { FieldName="PayTime", HeaderText="收费日期", Align=AlignStyle.Center, Formatter=Formatter.OnlyYearMonthDay },
  95. new BoundFieldColumn { FieldName="ClassmajorName", HeaderText="班级", Align=AlignStyle.Center },
  96. new BoundFieldColumn { FieldName="ExaminationRegistrationConfirmNo", HeaderText="确认单号", Align=AlignStyle.Center },
  97. new BoundFieldColumn { FieldName="ExaminationProjectName", HeaderText="项目", Align=AlignStyle.Center },
  98. new BoundFieldColumn { FieldName="FeeTypeName", HeaderText="收费标准", Align=AlignStyle.Center },
  99. new BoundFieldColumn { FieldName="StudentCount", HeaderText="人数", Align=AlignStyle.Center },
  100. new BoundFieldColumn { FieldName="AmountString", HeaderText="金额", Align=AlignStyle.Center },
  101. new BoundFieldColumn { FieldName="ReceiverName", HeaderText="开票人", Align=AlignStyle.Center }
  102. },
  103. IsAutoLoad = true,
  104. DataSourceUrl = Url.Content("~/StudentFee/FinanceReport"),
  105. OnLoadSuccessFun = "gridLoaded",
  106. ID = "dgFinanceReportList",
  107. IsPagination = true
  108. })
  109. </div>
  110. </div>