List.cshtml 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  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/StudentChargeDelay.js" type="text/javascript"></script>
  31. <script type="text/javascript">
  32. var nonSelect = "@DropdownList.SELECT_ALL";
  33. //开始环节状态
  34. var startStatusID = "@BaseExtensions.GetStartFlowStatus("EC_ChargeDelay")";
  35. //结束环节状态
  36. var endStatusID = "@BaseExtensions.GetEndFlowStatus("EC_ChargeDelay")";
  37. </script>
  38. }
  39. <div class="easyui-panel" data-options="border:false,fit:true" style="position:relative;">
  40. @Html.Position()
  41. <div class="p_SearchTitle">
  42. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
  43. 查询条件</div>
  44. </div>
  45. <form id="formQuery" method="post" action="@Url.Content("~/StudentChargeDelay/Excel")">
  46. @Html.PositionCondition()
  47. <div class="search_keyword">
  48. <div class="search_input">
  49. <ul>
  50. <li class="sn" style="padding-left: 5px;">缴费学年:</li>
  51. <li class="sv">
  52. @Html.SchoolYearDropDownList(new DropdownListOptions
  53. {
  54. BindType = DropdownListBindType.SelectAll,
  55. ID = "ChargeYearDropDown",
  56. Name = "ChargeYearDropDown",
  57. OnSelect = "reload",
  58. SelectedValue = BaseExtensions.GetCurrentYearID()
  59. },
  60. new Dictionary<string, string> { { "data-condition", "dgStudentChargeDelayList" } })
  61. </li>
  62. <li class="sn" style="padding-left: 5px;">收费项目:</li>
  63. <li class="sv">
  64. @Html.ComboGrid(cgopChargeProject, new Dictionary<string, string> { { "data-condition", "dgStudentChargeDelayList" } })
  65. </li>
  66. <li class="sn" style="padding-left: 5px; color: red;">状态:</li>
  67. <li class="sv">
  68. @Html.DropdownList(new DropdownListOptions
  69. {
  70. ID = "DictionaryChargeDelayStatus",
  71. Name = "DictionaryChargeDelayStatus",
  72. BindType = DropdownListBindType.SelectAll,
  73. //SelectedValue = BaseExtensions.GetStartFlowStatus(typeof(EMIS.Entities.EC_ChargeDelay).Name),
  74. ItemSourceUrl = Url.Content("~/Common/ApproveStatusDropDown?tableName=" + typeof(EMIS.Entities.EC_ChargeDelay).Name),
  75. OnSelect = "reload"
  76. }, new Dictionary<string, string> { { "data-condition", "dgStudentChargeDelayList" } })
  77. </li>
  78. </ul>
  79. </div>
  80. </div>
  81. </form>
  82. <div class="p_title">
  83. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  84. 缓交申请列表</div>
  85. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  86. </div>
  87. @*@Html.PositionBatchModify()*@
  88. <div class="search_list">
  89. @Html.DataGrid(new DataGridOptions
  90. {
  91. Columns = new List<DataGridColumn>()
  92. {
  93. new CheckBoxFieldColumn{ HeaderText="", FieldName="ChargeDelayID" },
  94. //new LinkButtonColumn { FieldName="StudentNo", HeaderText="学号", Align=AlignStyle.Center, Handle="edit", Width=0.1 },
  95. //new BoundFieldColumn { FieldName="UserName", HeaderText="姓名", Align=AlignStyle.Center, Width=0.04 },
  96. new BoundFieldColumn { FieldName="ClassName", HeaderText="班级名称", Align=AlignStyle.Center, Width=0.12 },
  97. //new BoundFieldColumn { FieldName="GradeMajoyStr", HeaderText="年级专业名称", Align=AlignStyle.Center, Width=0.12 },
  98. new BoundFieldColumn { FieldName="CollegeStr", HeaderText=@EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center, Width=0.1 },
  99. new BoundFieldColumn { FieldName="ChargeYear", HeaderText="缴费学年", Align=AlignStyle.Center, Width=0.04 },
  100. new BoundFieldColumn { FieldName="ChargeProjectStr", HeaderText="收费项目", Align=AlignStyle.Center, Width=0.04 },
  101. //new BoundFieldColumn { FieldName="Amount", HeaderText="应收金额", Align=AlignStyle.Center, Width=0.04 },
  102. //new BoundFieldColumn { FieldName="ChargeAmount", HeaderText="调整金额", Align=AlignStyle.Center, Width=0.04 },
  103. new BoundFieldColumn { FieldName="ActualAmount", HeaderText="实收金额", Align=AlignStyle.Center, Width=0.04 },
  104. //new BoundFieldColumn { FieldName="ChargeTagName", HeaderText="缴费标记", Align=AlignStyle.Center, Width=0.04 },
  105. new BoundFieldColumn { FieldName="PaidAmount", HeaderText="已缴金额", Align=AlignStyle.Center, Width=0.04, CustomFormatFun="SetAmountColumn" },
  106. new BoundFieldColumn { FieldName="DelayAmount", HeaderText="缓交金额", Align=AlignStyle.Center, Width=0.04, CustomFormatFun="SetAmountColumn" },
  107. new BoundFieldColumn { FieldName="InSchoolStatusName", HeaderText="在校状态", Align=AlignStyle.Center, Width=0.04 },
  108. new BoundFieldColumn { FieldName="CreateTime",HeaderText="申请日期", Align=AlignStyle.Center, Width=0.08, Formatter=Formatter.OnlyYearMonthDay },
  109. new BoundFieldColumn { FieldName="Reason", HeaderText="缓交原因", Align=AlignStyle.Center, Width=0.04, OverflowLength=10 },
  110. new ApproveStatusColumn { FieldName="RecordStatusName", TableName=typeof(EMIS.Entities.EC_ChargeDelay).Name, IDFieldName="ChargeDelayID", HeaderText="状态", Align=AlignStyle.Center, Width=0.04 }
  111. },
  112. PageSize = 30,
  113. IsCheckOnSelect = true,
  114. DataSourceUrl = Url.Content("~/StudentChargeDelay/List"),
  115. ID = "dgStudentChargeDelayList",
  116. IsPagination = true,
  117. IsShowRowNumbers = true,
  118. IsSingleSelect = false
  119. })
  120. </div>
  121. </div>