List.cshtml 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299
  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/StudentList.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" action="@Url.Content("~/ExaminationApplayStudentList/Excel")">
  144. @Html.PositionCondition()
  145. <div class="search_keyword">
  146. @Html.Hidden("SelectedID")
  147. <div class="search_input">
  148. <ul>
  149. <li class="sn" style="padding-left: 5px;">学年学期:</li>
  150. <li class="sv">
  151. @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/SchoolYear/DropDown"), ID = "ddlSchoolyear", Name = "ddlSchoolyear", OnSelect = "querySchoolYear", OnLoadSuccess = "querySchoolYear", SelectedValue = BaseExtensions.GetCurrentSchoolYearID() }, new Dictionary<string, string> { { "data-condition", "dgStudentList" } })
  152. </li>
  153. <li class="sn" style="padding-left: 5px;">考试批次:</li>
  154. <li class="sv">
  155. @Html.ComboGrid(cgopExaminationBatch, new Dictionary<string, string> { { "data-condition", "dgStudentList" } })
  156. </li>
  157. <li class="sn" style="padding-left: 5px;">考试类型:</li>
  158. <li class="sv">
  159. @Html.ComboGrid(cgopExaminationType, new Dictionary<string, string> { { "data-condition", "dgStudentList" } })
  160. </li>
  161. <li class="sn" style="padding-left: 5px;">项目名称:</li>
  162. <li class="sv">
  163. @Html.ComboGrid(cgopExaminationProject, new Dictionary<string, string> { { "data-condition", "dgStudentList" } })
  164. </li>
  165. </ul>
  166. @*<ul>
  167. <li class="sn" style="padding-left: 5px;">学年学期:</li>
  168. <li class="sv">
  169. @Html.DropdownList(new DropdownListOptions
  170. {
  171. BindType = DropdownListBindType.SelectAll,
  172. ItemSourceUrl = Url.Content("~/SchoolYear/DropDown"),
  173. ID = "ddlSchoolyear",
  174. Name = "ddlSchoolyear",
  175. OnSelect = "schoolyearSelect",
  176. SelectedValue = BaseExtensions.GetCurrentSchoolYearID(),
  177. OnLoadSuccess = "schoolyearChange"
  178. },
  179. new Dictionary<string, string> { { "data-condition", "dgStudentList" } })
  180. </li>
  181. <li class="sn" style="padding-left: 5px;">考试批次:</li>
  182. <li class="sv">
  183. @Html.DropdownList(new DropdownListOptions
  184. {
  185. BindType = DropdownListBindType.SelectAll,
  186. ID = "ddlExaminationBatch",
  187. Name = "ddlExaminationBatch",
  188. OnSelect = "examinationBatchSelect",
  189. OnLoadSuccess = "examinationBatchChange"
  190. },
  191. new Dictionary<string, string> { { "data-condition", "dgStudentList" } })
  192. </li>
  193. <li class="sn" style="padding-left: 5px;">考试类型:</li>
  194. <li class="sv">
  195. @Html.DropdownList(new DropdownListOptions
  196. {
  197. BindType = DropdownListBindType.SelectAll,
  198. ID = "ddlExaminationType",
  199. Name = "ddlExaminationType",
  200. OnSelect = "examinationTypeSelect",
  201. OnLoadSuccess = "examinationTypeChange"
  202. },
  203. new Dictionary<string, string> { { "data-condition", "dgStudentList" } })
  204. </li>
  205. <li class="sn" style="padding-left: 5px;">项目名称:</li>
  206. <li class="sv">
  207. @Html.DropdownList(new DropdownListOptions
  208. {
  209. BindType = DropdownListBindType.SelectAll,
  210. ID = "ddlExaminationProject",
  211. Name = "ddlExaminationProject",
  212. OnSelect = "reload",
  213. },
  214. new Dictionary<string, string> { { "data-condition", "dgStudentList" } })
  215. </li>
  216. </ul>*@
  217. <ul>
  218. <li class="sn" style="padding-left: 5px;">校区:</li>
  219. <li class="sv">
  220. @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" } })
  221. </li>
  222. <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("College"):</li>
  223. <li class="sv">
  224. @Html.ComboGrid(cgopCollege, new Dictionary<string, string> { { "data-condition", "dgStudentList" } })
  225. </li>
  226. <li class="sn" style="padding-left: 5px;">年级:</li>
  227. <li class="sv">
  228. @Html.SchoolYearDropDownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "ddlYear", Name = "ddlYear", OnSelect = "queryGrademajor" }, new Dictionary<string, string> { { "data-condition", "dgStudentList" } })
  229. </li>
  230. <li class="sn" style="padding-left: 5px;">班级名称:</li>
  231. <li class="sv">
  232. @Html.ComboGrid(cgopClassmajor, new Dictionary<string, string> { { "data-condition", "dgStudentList" } })
  233. </li>
  234. </ul>
  235. <ul>
  236. <li class="sn" style="padding-left: 5px;">缴费状态:</li>
  237. <li class="sv">
  238. @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" } })
  239. </li>
  240. <li class="sn" style="padding-left: 5px;">是否已确认:</li>
  241. <li class="sv">
  242. @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" } })
  243. </li>
  244. </ul>
  245. </div>
  246. </div>
  247. <div class="p_title">
  248. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  249. 报名名单列表
  250. </div>
  251. <div style="margin-right: 10px; line-height: 30px; font-size: 12px ;" width="0.7">@Html.ContextMenuBar("List")</div>
  252. </div>
  253. </form>
  254. @Html.PositionBatchModify()
  255. <div class="search_list">
  256. @Html.DataGrid(new DataGridOptions
  257. {
  258. Columns = new List<DataGridColumn>()
  259. {
  260. new CheckBoxFieldColumn{ HeaderText="", FieldName="ExaminationRegistrationID",Width=20},
  261. new BoundFieldColumn { FieldName="ExaminationRegistrationConfirmID", HeaderText="确认单ID", Align=AlignStyle.Center, IsHidden = true },
  262. new BoundFieldColumn { FieldName="SchoolyearCode", HeaderText="学年学期", Align=AlignStyle.Center,Width=100},
  263. new BoundFieldColumn { FieldName="ExaminationBatchName", HeaderText="考试批次", Align=AlignStyle.Center,Width=120},
  264. new BoundFieldColumn { FieldName="ExaminationProjectName", HeaderText="项目名称", Align=AlignStyle.Center,Width=120 },
  265. new BoundFieldColumn { FieldName="SchoolAreaName", HeaderText="校区", Align=AlignStyle.Center,Width=80 },
  266. new BoundFieldColumn { FieldName="CollegeName", HeaderText="院系所", Align=AlignStyle.Center,Width=120 },
  267. new BoundFieldColumn { FieldName="ClassmajorName", HeaderText="班级", Align=AlignStyle.Center,Width=120 },
  268. new BoundFieldColumn { FieldName="UserName", HeaderText="姓名", Align=AlignStyle.Center,Width=60 },
  269. new BoundFieldColumn { FieldName="SexName", HeaderText="性别", Align=AlignStyle.Center,Width=40 },
  270. new BoundFieldColumn { FieldName="CertificatesTypeName", HeaderText="证件类型", Align=AlignStyle.Center,Width=60 },
  271. new BoundFieldColumn { FieldName="IDNumber", HeaderText="证件号码", Align=AlignStyle.Center,Width=160 },
  272. new BoundFieldColumn { FieldName="FeeTypeName", HeaderText="报名项目", Align=AlignStyle.Center, Width=100 },
  273. new BoundFieldColumn { FieldName="PayFee", HeaderText="金额", Align=AlignStyle.Center, Width=40},
  274. new BoundFieldColumn { FieldName="RecordStatusStr", HeaderText="缴费状态", Align=AlignStyle.Center, Width=40 },
  275. //new BoundFieldColumn { FieldName="IsOnlinePayStr", HeaderText="缴费方式", Align=AlignStyle.Center, Width=0.04 },
  276. new BoundFieldColumn { FieldName="WechatOrderID", HeaderText="微信订单号", Align=AlignStyle.Center, Width=200 },
  277. new BoundFieldColumn { FieldName="RefundOrderID", HeaderText="微信退款单号", Align=AlignStyle.Center, Width=200 },
  278. new BoundFieldColumn { FieldName="ExaminationRegistrationConfirmNo", HeaderText="确认单号", Align=AlignStyle.Center, Width=100},
  279. new BoundFieldColumn { FieldName="Remark", HeaderText="备注", Align=AlignStyle.Center, Width=150, OverflowLength=15},
  280. },
  281. IsAutoLoad = false,
  282. IsCheckOnSelect = true,
  283. DataSourceUrl = Url.Content("~/ExaminationApplayStudentList/List"),
  284. ID = "dgStudentList",
  285. IsPagination = true,
  286. PageSize = 100,
  287. IsShowRowNumbers = true,
  288. IsSingleSelect = false
  289. })
  290. </div>
  291. </div>