List.cshtml 12 KB

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