Export.cshtml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Entities;
  3. @using EMIS.Web.Controls;
  4. @{
  5. ViewBag.Title = "List";
  6. ComboGridOptions cgopExaminationBatch = new ComboGridOptions
  7. {
  8. TextField = "Name",
  9. ValueField = "ExaminationBatchID",
  10. ID = "cgExaminationBatch",
  11. Name = "cgExaminationBatch",
  12. OnSelect = "queryBatch",
  13. //IsEnabled = false,
  14. GridOptions = new DataGridOptions
  15. {
  16. Columns = new List<DataGridColumn>()
  17. {
  18. new BoundFieldColumn { FieldName="Name", HeaderText="考试批次", Align=AlignStyle.Center, Width = 0.3 }
  19. },
  20. IsCheckOnSelect = true,
  21. DataSourceUrl = Url.Content("~/ExaminationApplayStudentList/GetExaminationBatchViewGrid"),
  22. IsPagination = true,
  23. IsShowRowNumbers = true,
  24. IsSingleSelect = false,
  25. //OnLoadSuccessFun = "queryBatch",
  26. }
  27. };
  28. ComboGridOptions cgopExaminationType = new ComboGridOptions
  29. {
  30. TextField = "Name",
  31. ValueField = "ExaminationTypeID",
  32. Name = "cgExaminationType",
  33. ID = "cgExaminationType",
  34. OnSelect = "queryType",
  35. //IsEnabled = false,
  36. GridOptions = new DataGridOptions
  37. {
  38. Columns = new List<DataGridColumn>()
  39. {
  40. new BoundFieldColumn { FieldName="Name", HeaderText="考试类型", Align=AlignStyle.Center, Width = 0.3 }
  41. },
  42. IsCheckOnSelect = true,
  43. DataSourceUrl = Url.Content("~/ExaminationApplayStudentList/GetExaminationTypeViewGrid"),
  44. IsPagination = true,
  45. IsShowRowNumbers = true,
  46. IsSingleSelect = false,
  47. //OnLoadSuccessFun = "queryType",
  48. }
  49. };
  50. ComboGridOptions cgopExaminationProject = new ComboGridOptions
  51. {
  52. TextField = "Name",
  53. ValueField = "ExaminationProjectID",
  54. Name = "cgExaminationProject",
  55. ID = "cgExaminationProject",
  56. OnSelect = "reload",
  57. //IsEnabled = false,
  58. GridOptions = new DataGridOptions
  59. {
  60. Columns = new List<DataGridColumn>()
  61. {
  62. new BoundFieldColumn { FieldName="Name", HeaderText="项目名称", Align=AlignStyle.Center, Width = 0.3 }
  63. },
  64. IsCheckOnSelect = true,
  65. DataSourceUrl = Url.Content("~/ExaminationApplayStudentList/GetProjectListViewGrid"),
  66. IsPagination = true,
  67. IsShowRowNumbers = true,
  68. IsSingleSelect = false,
  69. //OnLoadSuccessFun = "queryProject",
  70. }
  71. };
  72. ComboGridOptions cgopCampus = new ComboGridOptions
  73. {
  74. TextField = "Name",
  75. ValueField = "CampusID",
  76. ID = "cgCampus",
  77. Name = "cgCampus",
  78. OnSelect = "queryCollege",
  79. GridOptions = new DataGridOptions
  80. {
  81. Columns = new List<DataGridColumn>()
  82. {
  83. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CampusName"), Align=AlignStyle.Center }
  84. },
  85. OnLoadSuccessFun = "reload",
  86. IsCheckOnSelect = true,
  87. DataSourceUrl = Url.Content("~/Campus/List"),
  88. IsPagination = true,
  89. IsShowRowNumbers = true,
  90. IsSingleSelect = false,
  91. }
  92. };
  93. ComboGridOptions cgopCollege = new ComboGridOptions
  94. {
  95. TextField = "Name",
  96. ValueField = "CollegeID",
  97. ID = "cgCollege",
  98. Name = "cgCollege",
  99. OnSelect = "queryGrademajor",
  100. GridOptions = new DataGridOptions
  101. {
  102. Columns = new List<DataGridColumn>()
  103. {
  104. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center }
  105. },
  106. //OnLoadSuccessFun = "reload",
  107. IsCheckOnSelect = true,
  108. DataSourceUrl = Url.Content("~/College/ListOnlyCollege"),
  109. IsPagination = true,
  110. IsShowRowNumbers = true,
  111. IsSingleSelect = false,
  112. }
  113. };
  114. ComboGridOptions cgopClassmajor = new ComboGridOptions
  115. {
  116. TextField = "Name",
  117. ValueField = "ClassmajorID",
  118. Name = "cgClassmajor",
  119. ID = "cgClassmajor",
  120. OnSelect = "reload",
  121. GridOptions = new DataGridOptions
  122. {
  123. Columns = new List<DataGridColumn>()
  124. {
  125. new BoundFieldColumn { FieldName="Name", HeaderText="班级名称", Align=AlignStyle.Center }
  126. },
  127. IsCheckOnSelect = true,
  128. DataSourceUrl = Url.Content("~/Classmajor/List"),
  129. IsPagination = true,
  130. IsShowRowNumbers = true,
  131. IsSingleSelect = false
  132. }
  133. };
  134. }
  135. @section scripts{
  136. <script src="~/Scripts/Business/ExaminationApply/StudentExport.js" type="text/javascript"></script>
  137. <script type="text/javascript">
  138. var nonSelect = "@DropdownList.SELECT_ALL";
  139. </script>
  140. }
  141. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  142. @Html.Position()
  143. <form id="formQuery" method="post">
  144. <div class="search_keyword">
  145. <div class="search_input">
  146. <ul>
  147. <li class="sn" style="padding-left: 5px;">学年学期:</li>
  148. <li class="sv">
  149. @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/SchoolYear/DropDown"), ID = "ddlSchoolyear", Name = "ddlSchoolyear", OnSelect = "querySchoolYear", SelectedValue = BaseExtensions.GetCurrentSchoolYearID() }, new Dictionary<string, string> { { "data-condition", "dgStudentList" } })
  150. </li>
  151. <li class="sn" style="padding-left: 5px;">考试批次:</li>
  152. <li class="sv">
  153. @Html.ComboGrid(cgopExaminationBatch, new Dictionary<string, string> { { "data-condition", "dgStudentList" } })
  154. </li>
  155. <li class="sn" style="padding-left: 5px;">考试类型:</li>
  156. <li class="sv">
  157. @Html.ComboGrid(cgopExaminationType, new Dictionary<string, string> { { "data-condition", "dgStudentList" } })
  158. </li>
  159. <li class="sn" style="padding-left: 5px;">项目名称:</li>
  160. <li class="sv">
  161. @Html.ComboGrid(cgopExaminationProject, new Dictionary<string, string> { { "data-condition", "dgStudentList" } })
  162. </li>
  163. </ul>
  164. @*<ul>
  165. <li class="sn" style="padding-left: 5px;">学年学期:</li>
  166. <li class="sv">
  167. @Html.DropdownList(new DropdownListOptions
  168. {
  169. BindType = DropdownListBindType.SelectAll,
  170. ItemSourceUrl = Url.Content("~/SchoolYear/DropDown"),
  171. ID = "ddlSchoolyear",
  172. Name = "ddlSchoolyear",
  173. OnSelect = "schoolyearChange",
  174. SelectedValue = BaseExtensions.GetCurrentSchoolYearID(),
  175. OnLoadSuccess = "schoolyearChange"
  176. },
  177. new Dictionary<string, string> { { "data-condition", "dgStudentList" } })
  178. </li>
  179. <li class="sn" style="padding-left: 5px;">考试批次:</li>
  180. <li class="sv">
  181. @Html.DropdownList(new DropdownListOptions
  182. {
  183. BindType = DropdownListBindType.SelectAll,
  184. ID = "ddlExaminationBatch",
  185. Name = "ddlExaminationBatch",
  186. OnSelect = "examinationBatchChange",
  187. OnLoadSuccess = "examinationBatchChange"
  188. },
  189. new Dictionary<string, string> { { "data-condition", "dgStudentList" } })
  190. </li>
  191. <li class="sn" style="padding-left: 5px;">考试类型:</li>
  192. <li class="sv">
  193. @Html.DropdownList(new DropdownListOptions
  194. {
  195. BindType = DropdownListBindType.SelectAll,
  196. ID = "ddlExaminationType",
  197. Name = "ddlExaminationType",
  198. OnSelect = "examinationTypeChange",
  199. OnLoadSuccess = "examinationTypeChange"
  200. },
  201. new Dictionary<string, string> { { "data-condition", "dgStudentList" } })
  202. </li>
  203. <li class="sn" style="padding-left: 5px;">项目名称:</li>
  204. <li class="sv">
  205. @Html.DropdownList(new DropdownListOptions
  206. {
  207. BindType = DropdownListBindType.SelectAll,
  208. ID = "ddlExaminationProject",
  209. Name = "ddlExaminationProject",
  210. OnSelect = "reload",
  211. },
  212. new Dictionary<string, string> { { "data-condition", "dgStudentList" } })
  213. </li>
  214. </ul>*@
  215. <ul>
  216. <li class="sn" style="padding-left: 5px;">校区:</li>
  217. <li class="sv">
  218. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_SchoolArea, new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "ddlSchoolArea", Name = "ddlSchoolArea", OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgStudentList" } })
  219. </li>
  220. <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("College"):</li>
  221. <li class="sv">
  222. @Html.ComboGrid(cgopCollege, new Dictionary<string, string> { { "data-condition", "dgStudentList" } })
  223. </li>
  224. <li class="sn" style="padding-left: 5px;">年级:</li>
  225. <li class="sv">
  226. @Html.SchoolYearDropDownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "ddlYear", Name = "ddlYear", OnSelect = "queryGrademajor" }, new Dictionary<string, string> { { "data-condition", "dgStudentList" } })
  227. </li>
  228. <li class="sn" style="padding-left: 5px;">班级名称:</li>
  229. <li class="sv">
  230. @Html.ComboGrid(cgopClassmajor, new Dictionary<string, string> { { "data-condition", "dgStudentList" } })
  231. </li>
  232. </ul>
  233. <ul>
  234. <li class="sn" style="padding-left: 5px;">缴费状态:</li>
  235. <li class="sv">
  236. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.EX_ExaminationRegistrationStatus, new DropdownListOptions { ID = "PayRecordStatus", Name = "PayRecordStatus", BindType = DropdownListBindType.SelectAll, OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgStudentList" } })
  237. </li>
  238. <li class="sn" style="padding-left: 5px;">是否已确认:</li>
  239. <li class="sv">
  240. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_GeneralPurpose, new DropdownListOptions { ID = "IsConfirm", Name = "IsConfirm", BindType = DropdownListBindType.SelectAll, OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgStudentList" } })
  241. </li>
  242. </ul>
  243. </div>
  244. </div>
  245. <div class="p_title">
  246. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  247. 数据导出
  248. </div>
  249. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  250. </div>
  251. </form>
  252. </div>