Export.cshtml 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Entities;
  3. @using EMIS.Web.Controls;
  4. @{
  5. ViewBag.Title = "List";
  6. ComboGridOptions cgopCollege = new ComboGridOptions
  7. {
  8. TextField = "Name",
  9. ValueField = "CollegeID",
  10. ID = "cgCollege",
  11. Name = "cgCollege",
  12. OnSelect = "queryCollege",
  13. GridOptions = new DataGridOptions
  14. {
  15. Columns = new List<DataGridColumn>()
  16. {
  17. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center }
  18. },
  19. OnLoadSuccessFun = "reload",
  20. IsCheckOnSelect = true,
  21. DataSourceUrl = Url.Content("~/College/ListOnlyCollege"),
  22. IsPagination = true,
  23. IsShowRowNumbers = true,
  24. IsSingleSelect = false,
  25. }
  26. };
  27. ComboGridOptions cgopExamination = new ComboGridOptions
  28. {
  29. TextField = "Name",
  30. ValueField = "ExaminationTypeID",
  31. Name = "cgExamination",
  32. ID = "cgExamination",
  33. OnSelect = "SelectExaminationSubjectDropdown",
  34. GridOptions = new DataGridOptions
  35. {
  36. Columns = new List<DataGridColumn>()
  37. {
  38. new BoundFieldColumn { FieldName="Name", HeaderText="考试类型名称", Align=AlignStyle.Center }
  39. },
  40. IsCheckOnSelect = true,
  41. DataSourceUrl = Url.Content("~/ExaminationType/List"),
  42. IsPagination = true,
  43. IsShowRowNumbers = true,
  44. IsSingleSelect = false
  45. }
  46. };
  47. ComboGridOptions cgExaminationSubject = new ComboGridOptions
  48. {
  49. TextField = "Name",
  50. ValueField = "ExaminationSubjectID",
  51. Name = "ddlExaminationSubject",
  52. ID = "ddlExaminationSubject",
  53. OnSelect = "reload",
  54. GridOptions = new DataGridOptions
  55. {
  56. Columns = new List<DataGridColumn>()
  57. {
  58. new BoundFieldColumn { FieldName="Name", HeaderText="考试科目名称", Align=AlignStyle.Center }
  59. },
  60. IsCheckOnSelect = true,
  61. DataSourceUrl = Url.Content("~/ExaminationSubject/List"),
  62. IsPagination = true,
  63. IsShowRowNumbers = true,
  64. IsSingleSelect = false
  65. }
  66. };
  67. ComboGridOptions cgopStandard = new ComboGridOptions
  68. {
  69. TextField = "StandardName",
  70. ValueField = "StandardID",
  71. OnSelect = "queryClass",
  72. Name = "ddlStandard",
  73. ID = "ddlStandard",
  74. GridOptions = new DataGridOptions
  75. {
  76. Columns = new List<DataGridColumn>()
  77. {
  78. new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center }
  79. },
  80. IsCheckOnSelect = true,
  81. DataSourceUrl = Url.Content("~/Grademajor/StandardBindComboGridOptions"),
  82. IsPagination = true,
  83. IsShowRowNumbers = true,
  84. IsSingleSelect = false,
  85. }
  86. };
  87. }
  88. @section scripts{
  89. <script src="~/Scripts/Business/ExaminationApply/StudentExport.js" type="text/javascript"></script>
  90. <script type="text/javascript">
  91. var nonSelect = "@DropdownList.SELECT_ALL";
  92. </script>
  93. }
  94. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  95. @Html.Position()
  96. <form id="formQuery" method="post">
  97. <div class="search_keyword">
  98. <div class="search_input">
  99. <ul>
  100. <li class="sn" style="padding-left: 5px;">考试学年学期:</li>
  101. <li class="sv">
  102. @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/SchoolYear/YearsDropdownListBanid"), Name = "SchoolyearDropdown", OnSelect = "reload", SelectedValue = BaseExtensions.GetCurrentSchoolYearID() }, new Dictionary<string, string> { { "data-condition", "dgStudentList" } })
  103. </li>
  104. <li class="sn" style="padding-left: 5px;">考试类型:</li>
  105. <li class="sv">
  106. @Html.ComboGrid(cgopExamination, new Dictionary<string, string> { { "data-condition", "dgStudentList" } })
  107. </li>
  108. <li class="sn" style="padding-left: 5px;">考试科目:</li>
  109. <li class="sv">
  110. @Html.ComboGrid(cgExaminationSubject, new Dictionary<string, string> { { "data-condition", "dgStudentList" } })
  111. @* @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/ExaminationSubject/DropdownList"), ID = "ddlExaminationSubject", Name = "ddlExaminationSubject", OnSelect = "SelectExaminationSubjectDropdown" }, new Dictionary<string, string> { { "data-condition", "dgStudentList" } })*@
  112. </li>
  113. </ul>
  114. <ul>
  115. <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("College"):</li>
  116. <li class="sv">
  117. @Html.ComboGrid(cgopCollege, new Dictionary<string, string> { { "data-condition", "dgStudentList" } })
  118. </li>
  119. <li class="sn" style="padding-left: 5px;">年级:</li>
  120. <li class="sv">
  121. @Html.SchoolYearDropDownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "ddlYear", Name = "ddlYear", OnSelect = "queryGrademajor" }, new Dictionary<string, string> { { "data-condition", "dgStudentList" } })
  122. </li>
  123. <li class="sn" style="padding-left: 5px;">专业名称:</li>
  124. <li class="sv">
  125. @Html.ComboGrid(cgopStandard, new Dictionary<string, string> { { "data-condition", "dgStudentList" } })
  126. </li>
  127. <li class="sn" style="padding-left: 5px;">是否已缴费:</li>
  128. <li class="sv">
  129. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_GeneralPurpose, new DropdownListOptions { Name = "IsPay", BindType = DropdownListBindType.SelectAll, OnSelect = "reload" }, new Dictionary<string, string> { { "data-condition", "dgStudentList" } })
  130. </li>
  131. </ul>
  132. </div>
  133. </div>
  134. <div class="p_title">
  135. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  136. 数据导出
  137. </div>
  138. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  139. </div>
  140. </form>
  141. </div>