List.cshtml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273
  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/GrademajorBindComboGridOptions"),
  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. ComboGridOptions cgopRemark = new ComboGridOptions
  96. {
  97. TextField = "Remark",
  98. ValueField = "Remark",
  99. OnSelect = "reload",
  100. ID = "DictionaryRemark",
  101. Name = "DictionaryRemark",
  102. GridOptions = new DataGridOptions
  103. {
  104. Columns = new List<DataGridColumn>()
  105. {
  106. new BoundFieldColumn { FieldName="Remark", HeaderText="备注", Align=AlignStyle.Center }
  107. },
  108. IsCheckOnSelect = true,
  109. DataSourceUrl = Url.Content("~/StudentChargePaymen/GetRemark"),
  110. IsPagination = true,
  111. IsShowRowNumbers = true,
  112. IsSingleSelect = false,
  113. IsShowHeader = false
  114. }
  115. };
  116. }
  117. @section scripts{
  118. <script src="~/Scripts/Business/ChargeManage/ChargeSituation/StudentChargePaymen.js" type="text/javascript"></script>
  119. <script type="text/javascript">
  120. var nonSelect = "@DropdownList.SELECT_ALL";
  121. </script>
  122. }
  123. <div class="easyui-panel" data-options="border:false,fit:true" style="position:relative;">
  124. @Html.Position()
  125. <div class="p_SearchTitle">
  126. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
  127. 查询条件</div>
  128. </div>
  129. <form id="formQuery" method="post" action="@Url.Content("~/StudentChargePaymen/Excel")">
  130. @Html.PositionCondition()
  131. <div class="search_keyword">
  132. <div class="search_input">
  133. <ul>
  134. <li class="sn" style="padding-left: 5px;">@Html.RSLabel("College"):</li>
  135. <li class="sv">
  136. @Html.ComboGrid(cgopCollege, new Dictionary<string, string> { { "data-condition", "dgStudentChargePaymenList" } })
  137. </li>
  138. <li class="sn" style="padding-left: 5px;">年级:</li>
  139. <li class="sv">
  140. @Html.SchoolYearDropDownList(new DropdownListOptions
  141. {
  142. BindType = DropdownListBindType.SelectAll,
  143. ID = "SchoolyearDictionaryDropDown",
  144. Name = "SchoolyearDictionaryDropDown",
  145. OnSelect = "queryClass"
  146. },
  147. new Dictionary<string, string> { { "data-condition", "dgStudentChargePaymenList" } })
  148. </li>
  149. <li class="sn" style="padding-left: 5px;">专业名称:</li>
  150. <li class="sv">
  151. @Html.ComboGrid(cgopStandard, new Dictionary<string, string> { { "data-condition", "dgStudentChargePaymenList" } })
  152. </li>
  153. <li class="sn" style="padding-left: 5px;">@Html.RSLabel("EducationID"):</li>
  154. <li class="sv">
  155. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_Education,
  156. new DropdownListOptions
  157. {
  158. ID = "DictionaryEducation",
  159. Name = "DictionaryEducation",
  160. BindType = DropdownListBindType.SelectAll,
  161. OnSelect = "reload"
  162. },
  163. new Dictionary<string, string> { { "data-condition", "dgStudentChargePaymenList" } })
  164. </li>
  165. </ul>
  166. <ul>
  167. <li class="sn" style="padding-left: 5px;">学习形式:</li>
  168. <li class="sv">
  169. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_Learningform,
  170. new DropdownListOptions
  171. {
  172. ID = "DictionaryLearningform",
  173. Name = "DictionaryLearningform",
  174. BindType = DropdownListBindType.SelectAll,
  175. OnSelect = "reload"
  176. },
  177. new Dictionary<string, string> { { "data-condition", "dgStudentChargePaymenList" } })
  178. </li>
  179. <li class="sn" style="padding-left: 5px;">学制:</li>
  180. <li class="sv">
  181. @Html.ComboGrid(cgopLearnSystem, new Dictionary<string, string> { { "data-condition", "dgStudentChargePaymenList" } })
  182. </li>
  183. <li class="sn" style="padding-left: 5px;">缴费学年:</li>
  184. <li class="sv">
  185. @Html.SchoolYearDropDownList(new DropdownListOptions
  186. {
  187. BindType = DropdownListBindType.SelectAll,
  188. ID = "ChargeYearDropDown",
  189. Name = "ChargeYearDropDown",
  190. OnSelect = "queryClass",
  191. SelectedValue = BaseExtensions.GetCurrentYearID()
  192. },
  193. new Dictionary<string, string> { { "data-condition", "dgStudentChargePaymenList" } })
  194. </li>
  195. <li class="sn" style="padding-left: 5px;">收费项目:</li>
  196. <li class="sv">
  197. @Html.ComboGrid(cgopChargeProject, new Dictionary<string, string> { { "data-condition", "dgStudentChargePaymenList" } })
  198. </li>
  199. </ul>
  200. <ul>
  201. <li class="sn" style="padding-left: 5px; color: red;">在校状态:</li>
  202. <li class="sv">
  203. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_INOrOutSchoolStatus, new DropdownListOptions
  204. {
  205. ID = "DictionaryInschoolStatus",
  206. Name = "DictionaryInschoolStatus",
  207. BindType = DropdownListBindType.SelectAll,
  208. OnSelect = "reload",
  209. OnLoadSuccess = "reload",
  210. SelectedValue = (int)EMIS.ViewModel.CF_INOrOutSchoolStatus.Yes
  211. },
  212. new Dictionary<string, string> { { "data-condition", "dgStudentChargePaymenList" } })
  213. </li>
  214. <li class="sn" style="padding-left: 5px;">备注:</li>
  215. <li class="sv">
  216. @Html.ComboGrid(cgopRemark, new Dictionary<string, string> { { "data-condition", "dgStudentChargePaymenList" } })
  217. </li>
  218. </ul>
  219. </div>
  220. </div>
  221. </form>
  222. <div class="p_title">
  223. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  224. 学生缴费列表</div>
  225. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  226. </div>
  227. @Html.PositionBatchModify()
  228. <div class="search_list">
  229. @Html.DataGrid(new DataGridOptions
  230. {
  231. Columns = new List<DataGridColumn>()
  232. {
  233. new CheckBoxFieldColumn{ HeaderText="", FieldName="StudentChargePaymentID" },
  234. new BoundFieldColumn { FieldName="StudentNo", HeaderText="学号", Align=AlignStyle.Center, Width=0.1 },
  235. new BoundFieldColumn { FieldName="UserName", HeaderText="姓名", Align=AlignStyle.Center, Width=0.04 },
  236. new BoundFieldColumn { FieldName="ClassName", HeaderText="班级名称", Align=AlignStyle.Center, Width=0.12 },
  237. //new BoundFieldColumn { FieldName="GradeMajorStr", HeaderText="年级专业名称", Align=AlignStyle.Center, Width=0.12 },
  238. new BoundFieldColumn { FieldName="ChargeYear", HeaderText="缴费学年", Align=AlignStyle.Center, Width=0.04 },
  239. new BoundFieldColumn { FieldName="ChargeProjectStr", HeaderText="收费项目", Align=AlignStyle.Center, Width=0.06 },
  240. new BoundFieldColumn { FieldName="StandardAmount", HeaderText="应收金额", Align=AlignStyle.Center, Width=0.04 },
  241. new BoundFieldColumn { FieldName="ActualAmount", HeaderText="实收金额", Align=AlignStyle.Center, Width=0.04 },
  242. new BoundFieldColumn { FieldName="ChargeTagName", HeaderText="缴费标记", Align=AlignStyle.Center, Width=0.04 },
  243. //new BoundFieldColumn { FieldName="PaidAmount", HeaderText="已缴金额", Align=AlignStyle.Center, Width=0.04 },
  244. new BoundFieldColumn { FieldName="Amount", HeaderText="缴费金额", Align=AlignStyle.Center, Width=0.04, CustomFormatFun="SetAmountColumn" },
  245. new BoundFieldColumn { FieldName="ChargeDate",HeaderText="缴费日期", Align=AlignStyle.Center, Width=0.06, Formatter=Formatter.OnlyYearMonthDay },
  246. new BoundFieldColumn { FieldName="InSchoolStatusName", HeaderText="在校状态", Align=AlignStyle.Center, Width=0.05 },
  247. new BoundFieldColumn { FieldName="Remark", HeaderText="备注", Align=AlignStyle.Center, Width=0.06 }
  248. },
  249. PageSize = 20,
  250. IsAutoLoad = false,
  251. IsCheckOnSelect = true,
  252. DataSourceUrl = Url.Content("~/StudentChargePaymen/List"),
  253. ID = "dgStudentChargePaymenList",
  254. IsPagination = true,
  255. IsShowRowNumbers = true,
  256. IsSingleSelect = false
  257. })
  258. </div>
  259. <div style="color: red;font-weight: bold;float: right;position:relative; left:-30px;">
  260. 缴费金额统计(¥):
  261. <span id="amountSum"></span>
  262. </div>
  263. </div>