AdultList.cshtml 11 KB

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