List.cshtml 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Entities;
  3. @using EMIS.Web.Controls;
  4. @using EMIS.Utility;
  5. @{
  6. ViewBag.Title = "List";
  7. //收费项目
  8. ComboGridOptions cgopChargeProject = new ComboGridOptions
  9. {
  10. TextField = "ChrageProjectName",
  11. ValueField = "ChargeProjectID",
  12. ID = "ChargeProjectComboGrid",
  13. Name = "ChargeProjectComboGrid",
  14. OnSelect = "reload",
  15. GridOptions = new DataGridOptions
  16. {
  17. Columns = new List<DataGridColumn>()
  18. {
  19. new BoundFieldColumn { FieldName="ChrageProjectName", HeaderText="收费项目", Align=AlignStyle.Center }
  20. },
  21. IsCheckOnSelect = true,
  22. DataSourceUrl = Url.Content("~/ChargeProject/List"),
  23. IsPagination = true,
  24. IsShowRowNumbers = true,
  25. IsSingleSelect = false
  26. }
  27. };
  28. }
  29. @section scripts{
  30. <script src="~/Scripts/Business/ChargeManage/ChargeSituation/PersonalPayment.js" type="text/javascript"></script>
  31. <script type="text/javascript">
  32. var nonSelect = "@DropdownList.SELECT_ALL";
  33. </script>
  34. }
  35. <div class="easyui-panel" data-options="border:false,fit:true" style="position:relative;">
  36. @Html.Position()
  37. <div class="p_SearchTitle">
  38. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
  39. 查询条件</div>
  40. </div>
  41. <form id="formQuery" method="post" action="@Url.Content("~/PersonalPayment/Excel")">
  42. @Html.PositionCondition()
  43. <div class="search_keyword">
  44. <div class="search_input">
  45. <ul>
  46. <li class="sn" style="padding-left: 5px;">缴费学年:</li>
  47. <li class="sv">
  48. @Html.SchoolYearDropDownList(new DropdownListOptions
  49. {
  50. BindType = DropdownListBindType.SelectAll,
  51. ID = "ChargeYearDropDown",
  52. Name = "ChargeYearDropDown",
  53. //SelectedValue = BaseExtensions.GetCurrentYearID(),
  54. OnSelect = "reload"
  55. }, new Dictionary<string, string> { { "data-condition", "dgPersonalPaymentList" } })
  56. </li>
  57. <li class="sn" style="padding-left: 5px;">收费项目:</li>
  58. <li class="sv">
  59. @Html.ComboGrid(cgopChargeProject, new Dictionary<string, string> { { "data-condition", "dgPersonalPaymentList" } })
  60. </li>
  61. <li class="sn" style="padding-left: 5px;">缴费标记:</li>
  62. <li class="sv">
  63. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.EC_ChargeTag, new DropdownListOptions
  64. {
  65. ID = "DictionaryChargeTag",
  66. Name = "DictionaryChargeTag",
  67. BindType = DropdownListBindType.SelectAll,
  68. OnSelect = "reload"
  69. }, new Dictionary<string, string> { { "data-condition", "dgPersonalPaymentList" } })
  70. </li>
  71. <li class="sn" style="padding-left: 5px; color: red; width: 85px;">欠费状态:</li>
  72. <li class="sv">
  73. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_GeneralPurpose, new DropdownListOptions
  74. {
  75. ID = "IsArrearDropDown",
  76. Name = "IsArrearDropDown",
  77. BindType = DropdownListBindType.SelectAll,
  78. OnSelect = "reload"
  79. }, new Dictionary<string, string> { { "data-condition", "dgPersonalPaymentList" } })
  80. </li>
  81. </ul>
  82. </div>
  83. </div>
  84. </form>
  85. <div class="p_title">
  86. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  87. 缴费信息列表</div>
  88. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  89. </div>
  90. @*@Html.PositionBatchModify()*@
  91. <div class="search_list">
  92. @Html.DataGrid(new DataGridOptions
  93. {
  94. Columns = new List<DataGridColumn>()
  95. {
  96. new CheckBoxFieldColumn{ HeaderText="", FieldName="StudentChargeID" },
  97. //new BoundFieldColumn { FieldName="StudentNo", HeaderText="学号", Align=AlignStyle.Center, Width=0.1 },
  98. //new BoundFieldColumn { FieldName="UserName", HeaderText="姓名", Align=AlignStyle.Center, Width=0.04 },
  99. new BoundFieldColumn { FieldName="ClassName", HeaderText="班级名称", Align=AlignStyle.Center, Width=0.12 },
  100. //new BoundFieldColumn { FieldName="GradeMajoyStr", HeaderText="年级专业名称", Align=AlignStyle.Center, Width=0.12 },
  101. new BoundFieldColumn { FieldName="ChargeYear", HeaderText="缴费学年", Align=AlignStyle.Center, Width=0.04 },
  102. new BoundFieldColumn { FieldName="ChargeProjectStr", HeaderText="收费项目", Align=AlignStyle.Center, Width=0.06 },
  103. //new BoundFieldColumn { FieldName="Amount", HeaderText="应收金额", Align=AlignStyle.Center, Width=0.04 },
  104. //new BoundFieldColumn { FieldName="ChargeAmount", HeaderText="调整金额", Align=AlignStyle.Center, Width=0.04 },
  105. new BoundFieldColumn { FieldName="ActualAmount", HeaderText="实收金额", Align=AlignStyle.Center, Width=0.04 },
  106. new BoundFieldColumn { FieldName="ChargeTagName", HeaderText="缴费标记", Align=AlignStyle.Center, Width=0.04 },
  107. new BoundFieldColumn { FieldName="PaidAmount", HeaderText="已缴金额", Align=AlignStyle.Center, Width=0.04, CustomFormatFun="SetRedColumn" },
  108. new BoundFieldColumn { FieldName="IsArrearName", HeaderText="欠费状态", Align=AlignStyle.Center, Width=0.04, CustomFormatFun="SetRedColumn" },
  109. new BoundFieldColumn { FieldName="InSchoolStatusName", HeaderText="在校状态", Align=AlignStyle.Center, Width=0.05 }
  110. },
  111. IsCheckOnSelect = true,
  112. DataSourceUrl = Url.Content("~/PersonalPayment/List"),
  113. ID = "dgPersonalPaymentList",
  114. IsPagination = true,
  115. IsShowRowNumbers = true,
  116. IsSingleSelect = false
  117. })
  118. </div>
  119. </div>