List.cshtml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247
  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 cgopCollege = new ComboGridOptions
  9. {
  10. TextField = "Name",
  11. ValueField = "CollegeID",
  12. OnSelect = "queryClass",
  13. ID = "CollegeDropdown",
  14. Name = "CollegeDropdown",
  15. GridOptions = new DataGridOptions
  16. {
  17. Columns = new List<DataGridColumn>()
  18. {
  19. //new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Align=AlignStyle.Center, Width=0.1 },
  20. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center, Width=0.2 }
  21. },
  22. IsCheckOnSelect = true,
  23. DataSourceUrl = Url.Content("~/College/ListOnlyCollege"),
  24. IsPagination = true,
  25. IsShowRowNumbers = true,
  26. IsSingleSelect = false,
  27. }
  28. };
  29. //专业名称
  30. ComboGridOptions cgopStandard = new ComboGridOptions
  31. {
  32. TextField = "StandardName",
  33. ValueField = "StandardID",
  34. OnSelect = "queryStandard",
  35. ID = "StandardDictionaryDropDown",
  36. Name = "StandardDictionaryDropDown",
  37. GridOptions = new DataGridOptions
  38. {
  39. Columns = new List<DataGridColumn>()
  40. {
  41. new BoundFieldColumn { FieldName="StandardCode", HeaderText="专业代码", Align=AlignStyle.Center, Width=0.06 },
  42. new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center, Width=0.1 }
  43. },
  44. IsCheckOnSelect = true,
  45. DataSourceUrl = Url.Content("~/Grademajor/StandardBindComboGridOptions"),
  46. IsPagination = true,
  47. IsShowRowNumbers = true,
  48. IsSingleSelect = false,
  49. }
  50. };
  51. //学制
  52. ComboGridOptions cgopLearnSystem = new ComboGridOptions
  53. {
  54. TextField = "LearnSystem",
  55. ValueField = "LearnSystem",
  56. OnSelect = "reload",
  57. ID = "DictionaryLearnSystem",
  58. Name = "DictionaryLearnSystem",
  59. GridOptions = new DataGridOptions
  60. {
  61. Columns = new List<DataGridColumn>()
  62. {
  63. new BoundFieldColumn { FieldName="LearnSystem", HeaderText="学制", Align=AlignStyle.Center }
  64. },
  65. IsCheckOnSelect = true,
  66. DataSourceUrl = Url.Content("~/Specialty/LearnSystem"),
  67. IsPagination = true,
  68. IsShowRowNumbers = true,
  69. IsSingleSelect = false,
  70. IsShowHeader = false
  71. }
  72. };
  73. //收费项目
  74. ComboGridOptions cgopChargeProject = new ComboGridOptions
  75. {
  76. TextField = "ChrageProjectName",
  77. ValueField = "ChargeProjectID",
  78. ID = "ChargeProjectComboGrid",
  79. Name = "ChargeProjectComboGrid",
  80. OnSelect = "reload",
  81. GridOptions = new DataGridOptions
  82. {
  83. Columns = new List<DataGridColumn>()
  84. {
  85. new BoundFieldColumn { FieldName="ChrageProjectName", HeaderText="收费项目", Align=AlignStyle.Center }
  86. },
  87. IsCheckOnSelect = true,
  88. DataSourceUrl = Url.Content("~/ChargeProject/List"),
  89. IsPagination = true,
  90. IsShowRowNumbers = true,
  91. IsSingleSelect = false
  92. }
  93. };
  94. }
  95. @section scripts{
  96. <script src="~/Scripts/Business/ChargeManage/ChargeSituation/ChargeAggregate.js" type="text/javascript"></script>
  97. <script type="text/javascript">
  98. var nonSelect = "@DropdownList.SELECT_ALL";
  99. </script>
  100. }
  101. <div class="easyui-panel" data-options="border:false,fit:true" style="position:relative;">
  102. @Html.Position()
  103. <div class="p_SearchTitle">
  104. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
  105. 查询条件</div>
  106. </div>
  107. <form id="formQuery" method="post" action="@Url.Content("~/ChargeAggregate/Excel")">
  108. @Html.PositionCondition()
  109. <div class="search_keyword">
  110. <div class="search_input">
  111. <ul>
  112. <li class="sn" style="padding-left: 5px;">@Html.RSLabel("College"):</li>
  113. <li class="sv">
  114. @Html.ComboGrid(cgopCollege, new Dictionary<string, string> { { "data-condition", "dgChargeAggregateList" } })
  115. </li>
  116. <li class="sn" style="padding-left: 5px;">年级:</li>
  117. <li class="sv">
  118. @Html.SchoolYearDropDownList(new DropdownListOptions
  119. {
  120. BindType = DropdownListBindType.SelectAll,
  121. ID = "SchoolyearDictionaryDropDown",
  122. Name = "SchoolyearDictionaryDropDown",
  123. OnSelect = "queryClass"
  124. },
  125. new Dictionary<string, string> { { "data-condition", "dgChargeAggregateList" } })
  126. </li>
  127. <li class="sn" style="padding-left: 5px;">专业名称:</li>
  128. <li class="sv">
  129. @Html.ComboGrid(cgopStandard, new Dictionary<string, string> { { "data-condition", "dgChargeAggregateList" } })
  130. </li>
  131. <li class="sn" style="padding-left: 5px;">@Html.RSLabel("EducationID"):</li>
  132. <li class="sv">
  133. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_Education,
  134. new DropdownListOptions
  135. {
  136. ID = "DictionaryEducation",
  137. Name = "DictionaryEducation",
  138. BindType = DropdownListBindType.SelectAll,
  139. OnSelect = "reload"
  140. },
  141. new Dictionary<string, string> { { "data-condition", "dgChargeAggregateList" } })
  142. </li>
  143. </ul>
  144. <ul>
  145. <li class="sn" style="padding-left: 5px;">学习形式:</li>
  146. <li class="sv">
  147. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_Learningform,
  148. new DropdownListOptions
  149. {
  150. ID = "DictionaryLearningform",
  151. Name = "DictionaryLearningform",
  152. BindType = DropdownListBindType.SelectAll,
  153. OnSelect = "reload"
  154. },
  155. new Dictionary<string, string> { { "data-condition", "dgChargeAggregateList" } })
  156. </li>
  157. <li class="sn" style="padding-left: 5px;">学制:</li>
  158. <li class="sv">
  159. @Html.ComboGrid(cgopLearnSystem, new Dictionary<string, string> { { "data-condition", "dgChargeAggregateList" } })
  160. </li>
  161. <li class="sn" style="padding-left: 5px;">缴费学年:</li>
  162. <li class="sv">
  163. @Html.SchoolYearDropDownList(new DropdownListOptions
  164. {
  165. BindType = DropdownListBindType.SelectAll,
  166. ID = "ChargeYearDropDown",
  167. Name = "ChargeYearDropDown",
  168. OnSelect = "reload",
  169. SelectedValue = BaseExtensions.GetCurrentYearID()
  170. },
  171. new Dictionary<string, string> { { "data-condition", "dgChargeAggregateList" } })
  172. </li>
  173. <li class="sn" style="padding-left: 5px;">收费项目:</li>
  174. <li class="sv">
  175. @Html.ComboGrid(cgopChargeProject, new Dictionary<string, string> { { "data-condition", "dgChargeAggregateList" } })
  176. </li>
  177. </ul>
  178. <ul>
  179. <li class="sn" style="padding-left: 5px; color: red; width: 85px;">在校状态:</li>
  180. <li class="sv">
  181. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_INOrOutSchoolStatus, new DropdownListOptions
  182. {
  183. ID = "DictionaryInschoolStatus",
  184. Name = "DictionaryInschoolStatus",
  185. BindType = DropdownListBindType.SelectAll,
  186. OnSelect = "reload",
  187. SelectedValue = (int)EMIS.ViewModel.CF_INOrOutSchoolStatus.Yes
  188. },
  189. new Dictionary<string, string> { { "data-condition", "dgChargeAggregateList" } })
  190. </li>
  191. </ul>
  192. </div>
  193. </div>
  194. </form>
  195. <div class="p_title">
  196. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  197. 费用明细列表</div>
  198. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  199. </div>
  200. @*@Html.PositionBatchModify()*@
  201. <div class="search_list">
  202. @Html.DataGrid(new DataGridOptions
  203. {
  204. Columns = new List<DataGridColumn>()
  205. {
  206. new CheckBoxFieldColumn{ HeaderText="", FieldName="StudentChargeID" },
  207. //new BoundFieldColumn { FieldName="ExamineeNum", HeaderText="考生号", Align=AlignStyle.Center, Width=0.12 },
  208. new BoundFieldColumn { FieldName="StudentNo", HeaderText="学号", Align=AlignStyle.Center, Width=0.12 },
  209. new BoundFieldColumn { FieldName="UserName", HeaderText="姓名", Align=AlignStyle.Center,Width=0.04 },
  210. //new BoundFieldColumn { FieldName="SexName", HeaderText="性别", Align=AlignStyle.Center,Width=0.02 },
  211. //new BoundFieldColumn { FieldName="ClassNo", HeaderText="班级编号", Align=AlignStyle.Center, Width=0.08 },
  212. new BoundFieldColumn { FieldName="ClassName", HeaderText="班级名称", Align=AlignStyle.Center, Width=0.12 },
  213. //new BoundFieldColumn { FieldName="GradeMajorCode", HeaderText="年级专业编号", Align=AlignStyle.Center, Width=0.08 },
  214. //new BoundFieldColumn { FieldName="GrademajorStr", HeaderText="年级专业名称", Align=AlignStyle.Center, Width=0.12 },
  215. new BoundFieldColumn { FieldName="CollegeStr", HeaderText=@EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center, Width=0.1 },
  216. new BoundFieldColumn { FieldName="ChargeYear", HeaderText="缴费学年", Align=AlignStyle.Center, Width=0.04 },
  217. new BoundFieldColumn { FieldName="ChargeProjectName", HeaderText="收费项目", Align=AlignStyle.Center, Width=0.04 },
  218. new BoundFieldColumn { FieldName="Amount", HeaderText="应收金额", Align=AlignStyle.Center, Width=0.04 },
  219. new BoundFieldColumn { FieldName="ChargeAmount", HeaderText="调整金额", Align=AlignStyle.Center, Width=0.04 },
  220. new BoundFieldColumn { FieldName="ActualAmount", HeaderText="实收金额", Align=AlignStyle.Center, Width=0.04 },
  221. //new BoundFieldColumn { FieldName="ChargeTagName", HeaderText="缴费标记", Align=AlignStyle.Center, Width=0.05 },
  222. new BoundFieldColumn { FieldName="DelayAmount", HeaderText="缓交金额", Align=AlignStyle.Center, Width=0.04 },
  223. new BoundFieldColumn { FieldName="PaidAmount", HeaderText="已缴金额", Align=AlignStyle.Center, Width=0.04 },
  224. new BoundFieldColumn { FieldName="AmountSum", HeaderText="欠费金额", Align=AlignStyle.Center, Width=0.04, CustomFormatFun="SetRedColumn" },
  225. //new BoundFieldColumn { FieldName="IsArrearName", HeaderText="欠费状态", Align=AlignStyle.Center, Width=0.04, CustomFormatFun="SetRedColumn" },
  226. //new BoundFieldColumn { FieldName="IsDreamProject", HeaderText="是否圆梦计划", Align=AlignStyle.Center, Width=0.06 },
  227. new BoundFieldColumn { FieldName="TeacherName", HeaderText="班主任", Align=AlignStyle.Center,Width =0.04 },
  228. new BoundFieldColumn { FieldName="InSchoolStatusName", HeaderText="在校状态", Align=AlignStyle.Center,Width =0.05 }
  229. },
  230. CustomerRowStyleFun ="SetRedGrid",
  231. PageSize = 30,
  232. IsCheckOnSelect = true,
  233. DataSourceUrl = Url.Content("~/ChargeAggregate/List"),
  234. ID = "dgChargeAggregateList",
  235. IsPagination = true,
  236. IsShowRowNumbers = true,
  237. IsSingleSelect = false
  238. })
  239. </div>
  240. </div>