List.cshtml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258
  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/StudentCharge.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("~/StudentCharge/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", "dgStudentChargeList" } })
  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", "dgStudentChargeList" } })
  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", "dgStudentChargeList" } })
  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", "dgStudentChargeList" } })
  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", "dgStudentChargeList" } })
  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", "dgStudentChargeList" } })
  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 = "queryClass",
  169. SelectedValue = BaseExtensions.GetCurrentYearID()
  170. },
  171. new Dictionary<string, string> { { "data-condition", "dgStudentChargeList" } })
  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", "dgStudentChargeList" } })
  176. </li>
  177. </ul>
  178. <ul>
  179. <li class="sn" style="padding-left: 5px;">缴费标记:</li>
  180. <li class="sv">
  181. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.EC_ChargeTag, new DropdownListOptions
  182. {
  183. ID = "DictionaryChargeTag",
  184. Name = "DictionaryChargeTag",
  185. BindType = DropdownListBindType.SelectAll,
  186. OnSelect = "reload"
  187. },
  188. new Dictionary<string, string> { { "data-condition", "dgStudentChargeList" } })
  189. </li>
  190. <li class="sn" style="padding-left: 5px; color: red; width: 85px;">在校状态:</li>
  191. <li class="sv">
  192. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_INOrOutSchoolStatus, new DropdownListOptions
  193. {
  194. ID = "DictionaryInschoolStatus",
  195. Name = "DictionaryInschoolStatus",
  196. BindType = DropdownListBindType.SelectAll,
  197. OnSelect = "reload",
  198. SelectedValue = (int)EMIS.ViewModel.CF_INOrOutSchoolStatus.Yes
  199. },
  200. new Dictionary<string, string> { { "data-condition", "dgStudentChargeList" } })
  201. </li>
  202. @*<li class="sn" style="padding-left: 5px;">是否圆梦计划:</li>
  203. <li class="sv">
  204. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_GeneralPurpose, new DropdownListOptions
  205. {
  206. BindType = DropdownListBindType.SelectAll,
  207. ID = "IsDreamDropDown",
  208. Name = "IsDreamDropDown",
  209. OnSelect = "reload"
  210. },
  211. new Dictionary<string, string> { { "data-condition", "dgStudentChargeList" } })
  212. </li>*@
  213. </ul>
  214. </div>
  215. </div>
  216. </form>
  217. <div class="p_title">
  218. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  219. 应收名单列表</div>
  220. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  221. </div>
  222. @Html.PositionBatchModify()
  223. <div class="search_list">
  224. @Html.DataGrid(new DataGridOptions
  225. {
  226. Columns = new List<DataGridColumn>()
  227. {
  228. new CheckBoxFieldColumn{ HeaderText="", FieldName="StudentChargeID" },
  229. new BoundFieldColumn { FieldName="StudentNo", HeaderText="学号", Align=AlignStyle.Center, Width=0.1 },
  230. new BoundFieldColumn { FieldName="UserName", HeaderText="姓名", Align=AlignStyle.Center, Width=0.04 },
  231. new BoundFieldColumn { FieldName="ClassName", HeaderText="班级名称", Align=AlignStyle.Center, Width=0.12 },
  232. //new BoundFieldColumn { FieldName="GradeMajoyStr", HeaderText="年级专业名称", Align=AlignStyle.Center, Width=0.12 },
  233. new BoundFieldColumn { FieldName="ChargeYear", HeaderText="缴费学年", Align=AlignStyle.Center, Width=0.04 },
  234. new BoundFieldColumn { FieldName="ChargeProjectStr", HeaderText="收费项目", Align=AlignStyle.Center, Width=0.06 },
  235. new BoundFieldColumn { FieldName="Amount", HeaderText="应收金额", Align=AlignStyle.Center, Width=0.04 },
  236. new BoundFieldColumn { FieldName="ChargeAmount", HeaderText="调整金额", Align=AlignStyle.Center, Width=0.04 },
  237. new BoundFieldColumn { FieldName="ActualAmount", HeaderText="实收金额", Align=AlignStyle.Center, Width=0.04 },
  238. new BoundFieldColumn { FieldName="ChargeTagName", HeaderText="缴费标记", Align=AlignStyle.Center, Width=0.04 },
  239. new BoundFieldColumn { FieldName="PaidAmount", HeaderText="已缴金额", Align=AlignStyle.Center, Width=0.04, CustomFormatFun="SetPaidAmountColumn" },
  240. new BoundFieldColumn { FieldName="IsDreamProject", HeaderText="是否圆梦计划", Align=AlignStyle.Center, Width=0.06 },
  241. new BoundFieldColumn { FieldName="InSchoolStatusName", HeaderText="在校状态", Align=AlignStyle.Center, Width=0.05 },
  242. new BoundFieldColumn { FieldName="Remark", HeaderText="备注", Align=AlignStyle.Center, Width =0.03 }
  243. },
  244. IsCheckOnSelect = true,
  245. DataSourceUrl = Url.Content("~/StudentCharge/List"),
  246. ID = "dgStudentChargeList",
  247. IsPagination = true,
  248. IsShowRowNumbers = true,
  249. IsSingleSelect = false
  250. })
  251. </div>
  252. </div>