List.cshtml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259
  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/ChargeDelay.js" type="text/javascript"></script>
  97. <script type="text/javascript">
  98. var nonSelect = "@DropdownList.SELECT_ALL";
  99. //开始环节状态
  100. var startStatusID = "@BaseExtensions.GetStartFlowStatus("EC_ChargeDelay")";
  101. //结束环节状态
  102. var endStatusID = "@BaseExtensions.GetEndFlowStatus("EC_ChargeDelay")";
  103. </script>
  104. }
  105. <div class="easyui-panel" data-options="border:false,fit:true" style="position:relative;">
  106. @Html.Position()
  107. <div class="p_SearchTitle">
  108. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
  109. 查询条件</div>
  110. </div>
  111. <form id="formQuery" method="post" action="@Url.Content("~/ChargeDelay/Excel")">
  112. @Html.PositionCondition()
  113. <div class="search_keyword">
  114. <div class="search_input">
  115. <ul>
  116. <li class="sn" style="padding-left: 5px;">@Html.RSLabel("College"):</li>
  117. <li class="sv">
  118. @Html.ComboGrid(cgopCollege, new Dictionary<string, string> { { "data-condition", "dgChargeDelayList" } })
  119. </li>
  120. <li class="sn" style="padding-left: 5px;">年级:</li>
  121. <li class="sv">
  122. @Html.SchoolYearDropDownList(new DropdownListOptions
  123. {
  124. BindType = DropdownListBindType.SelectAll,
  125. ID = "SchoolyearDictionaryDropDown",
  126. Name = "SchoolyearDictionaryDropDown",
  127. OnSelect = "queryClass"
  128. },
  129. new Dictionary<string, string> { { "data-condition", "dgChargeDelayList" } })
  130. </li>
  131. <li class="sn" style="padding-left: 5px;">专业名称:</li>
  132. <li class="sv">
  133. @Html.ComboGrid(cgopStandard, new Dictionary<string, string> { { "data-condition", "dgChargeDelayList" } })
  134. </li>
  135. <li class="sn" style="padding-left: 5px;">@Html.RSLabel("EducationID"):</li>
  136. <li class="sv">
  137. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_Education,
  138. new DropdownListOptions
  139. {
  140. ID = "DictionaryEducation",
  141. Name = "DictionaryEducation",
  142. BindType = DropdownListBindType.SelectAll,
  143. OnSelect = "reload"
  144. },
  145. new Dictionary<string, string> { { "data-condition", "dgChargeDelayList" } })
  146. </li>
  147. </ul>
  148. <ul>
  149. <li class="sn" style="padding-left: 5px;">学习形式:</li>
  150. <li class="sv">
  151. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_Learningform,
  152. new DropdownListOptions
  153. {
  154. ID = "DictionaryLearningform",
  155. Name = "DictionaryLearningform",
  156. BindType = DropdownListBindType.SelectAll,
  157. OnSelect = "reload"
  158. },
  159. new Dictionary<string, string> { { "data-condition", "dgChargeDelayList" } })
  160. </li>
  161. <li class="sn" style="padding-left: 5px;">学制:</li>
  162. <li class="sv">
  163. @Html.ComboGrid(cgopLearnSystem, new Dictionary<string, string> { { "data-condition", "dgChargeDelayList" } })
  164. </li>
  165. <li class="sn" style="padding-left: 5px;">缴费学年:</li>
  166. <li class="sv">
  167. @Html.SchoolYearDropDownList(new DropdownListOptions
  168. {
  169. BindType = DropdownListBindType.SelectAll,
  170. ID = "ChargeYearDropDown",
  171. Name = "ChargeYearDropDown",
  172. OnSelect = "reload",
  173. SelectedValue = BaseExtensions.GetCurrentYearID()
  174. },
  175. new Dictionary<string, string> { { "data-condition", "dgChargeDelayList" } })
  176. </li>
  177. <li class="sn" style="padding-left: 5px;">收费项目:</li>
  178. <li class="sv">
  179. @Html.ComboGrid(cgopChargeProject, new Dictionary<string, string> { { "data-condition", "dgChargeDelayList" } })
  180. </li>
  181. </ul>
  182. <ul>
  183. <li class="sn" style="padding-left: 5px; color: red;">在校状态:</li>
  184. <li class="sv">
  185. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_INOrOutSchoolStatus, new DropdownListOptions
  186. {
  187. ID = "DictionaryInschoolStatus",
  188. Name = "DictionaryInschoolStatus",
  189. BindType = DropdownListBindType.SelectAll,
  190. OnSelect = "reload",
  191. SelectedValue = (int)EMIS.ViewModel.CF_INOrOutSchoolStatus.Yes
  192. },
  193. new Dictionary<string, string> { { "data-condition", "dgChargeDelayList" } })
  194. </li>
  195. <li class="sn" style="padding-left: 5px; color: red;">状态:</li>
  196. <li class="sv">
  197. @Html.DropdownList(new DropdownListOptions
  198. {
  199. ID = "DictionaryChargeDelayStatus",
  200. Name = "DictionaryChargeDelayStatus",
  201. BindType = DropdownListBindType.SelectAll,
  202. //SelectedValue = BaseExtensions.GetStartFlowStatus(typeof(EMIS.Entities.EC_ChargeDelay).Name),
  203. ItemSourceUrl = Url.Content("~/Common/ApproveStatusDropDown?tableName=" + typeof(EMIS.Entities.EC_ChargeDelay).Name),
  204. OnSelect = "reload"
  205. }, new Dictionary<string, string> { { "data-condition", "dgChargeDelayList" } })
  206. </li>
  207. </ul>
  208. </div>
  209. </div>
  210. </form>
  211. <div class="p_title">
  212. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  213. 缓交名单列表</div>
  214. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  215. </div>
  216. @*@Html.PositionBatchModify()*@
  217. <div class="search_list">
  218. @Html.DataGrid(new DataGridOptions
  219. {
  220. Columns = new List<DataGridColumn>()
  221. {
  222. new CheckBoxFieldColumn{ HeaderText="", FieldName="ChargeDelayID" },
  223. new LinkButtonColumn { FieldName="StudentNo", HeaderText="学号", Align=AlignStyle.Center, Handle="edit", Width=0.1 },
  224. new BoundFieldColumn { FieldName="UserName", HeaderText="姓名", Align=AlignStyle.Center, Width=0.04 },
  225. new BoundFieldColumn { FieldName="ClassName", HeaderText="班级名称", Align=AlignStyle.Center, Width=0.12 },
  226. //new BoundFieldColumn { FieldName="GradeMajoyStr", HeaderText="年级专业名称", Align=AlignStyle.Center, Width=0.12 },
  227. new BoundFieldColumn { FieldName="CollegeStr", HeaderText=@EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center, Width=0.1 },
  228. new BoundFieldColumn { FieldName="ChargeYear", HeaderText="缴费学年", Align=AlignStyle.Center, Width=0.04 },
  229. new BoundFieldColumn { FieldName="ChargeProjectStr", HeaderText="收费项目", Align=AlignStyle.Center, Width=0.04 },
  230. //new BoundFieldColumn { FieldName="Amount", HeaderText="应收金额", Align=AlignStyle.Center, Width=0.04 },
  231. //new BoundFieldColumn { FieldName="ChargeAmount", HeaderText="调整金额", Align=AlignStyle.Center, Width=0.04 },
  232. new BoundFieldColumn { FieldName="ActualAmount", HeaderText="实收金额", Align=AlignStyle.Center, Width=0.04 },
  233. //new BoundFieldColumn { FieldName="ChargeTagName", HeaderText="缴费标记", Align=AlignStyle.Center, Width=0.04 },
  234. new BoundFieldColumn { FieldName="PaidAmount", HeaderText="已缴金额", Align=AlignStyle.Center, Width=0.04, CustomFormatFun="SetAmountColumn" },
  235. new BoundFieldColumn { FieldName="DelayAmount", HeaderText="缓交金额", Align=AlignStyle.Center, Width=0.04, CustomFormatFun="SetAmountColumn" },
  236. new BoundFieldColumn { FieldName="InSchoolStatusName", HeaderText="在校状态", Align=AlignStyle.Center, Width=0.04 },
  237. new BoundFieldColumn { FieldName="CreateTime",HeaderText="申请日期", Align=AlignStyle.Center, Width=0.08, Formatter=Formatter.OnlyYearMonthDay },
  238. new BoundFieldColumn { FieldName="Reason", HeaderText="缓交原因", Align=AlignStyle.Center, Width=0.04, OverflowLength=5 },
  239. new ApproveStatusColumn { FieldName="RecordStatusName", TableName=typeof(EMIS.Entities.EC_ChargeDelay).Name, IDFieldName="ChargeDelayID", HeaderText="状态", Align=AlignStyle.Center, Width=0.04 }
  240. },
  241. PageSize = 30,
  242. IsCheckOnSelect = true,
  243. DataSourceUrl = Url.Content("~/ChargeDelay/List"),
  244. ID = "dgChargeDelayList",
  245. IsPagination = true,
  246. IsShowRowNumbers = true,
  247. IsSingleSelect = false
  248. })
  249. </div>
  250. </div>