Report.cshtml 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Web.Controls;
  3. @{
  4. ViewBag.Title = "Report";
  5. ComboGridOptions cgop = new ComboGridOptions
  6. {
  7. TextField = "Name",
  8. ValueField = "CollegeID",
  9. Name = "CollegeComboGrid",
  10. ID = "CollegeComboGrid",
  11. OnSelect = "queryCollege",
  12. GridOptions = new DataGridOptions
  13. {
  14. Columns = new List<DataGridColumn>()
  15. {
  16. // new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Align=AlignStyle.Center },
  17. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center }
  18. },
  19. IsCheckOnSelect = true,
  20. DataSourceUrl = Url.Content("~/College/ListOnlyCollege"),
  21. IsPagination = true,
  22. IsShowRowNumbers = true,
  23. IsSingleSelect = false
  24. }
  25. };
  26. ComboGridOptions ExaminationSubject = new ComboGridOptions
  27. {
  28. TextField = "Name",
  29. ValueField = "ExaminationSubjectID",
  30. Name = "ExaminationSubjectDropdown",
  31. ID = "ExaminationSubjectDropdown",
  32. SelectedIndex = 1,
  33. GridOptions = new DataGridOptions
  34. {
  35. Columns = new List<DataGridColumn>()
  36. {
  37. ///new LinkButtonColumn { FieldName="SchoolyearCode", HeaderText="学年学期", Width=0.1, Align=AlignStyle.Center },
  38. new BoundFieldColumn { FieldName="ExaminationTypeName", HeaderText="考试类型", Width=0.1, Align=AlignStyle.Center },
  39. new BoundFieldColumn { FieldName="ExaminationFormName", HeaderText="考试类别", Width=0.1, Align=AlignStyle.Center },
  40. new BoundFieldColumn { FieldName="Name", HeaderText="科目名称", Width=0.1, Align=AlignStyle.Center }
  41. },
  42. IsCheckOnSelect = true,
  43. DataSourceUrl = Url.Content("~/ExaminationSubject/List"),
  44. IsPagination = true,
  45. IsShowRowNumbers = true,
  46. IsSingleSelect = false,
  47. }
  48. };
  49. ComboGridOptions cgopStandard = new ComboGridOptions
  50. {
  51. TextField = "StandardName",
  52. ValueField = "StandardID",
  53. OnSelect = "queryStandard",
  54. Name = "DictionaryStandard",
  55. ID = "DictionaryStandard",
  56. GridOptions = new DataGridOptions
  57. {
  58. Columns = new List<DataGridColumn>()
  59. {
  60. new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center }
  61. },
  62. IsCheckOnSelect = true,
  63. DataSourceUrl = Url.Content("~/Grademajor/GrademajorBindComboGridOptions"),
  64. IsPagination = true,
  65. IsShowRowNumbers = true,
  66. IsSingleSelect = false,
  67. }
  68. };
  69. ComboGridOptions cgopLearnSystem = new ComboGridOptions
  70. {
  71. TextField = "LearnSystem",
  72. ValueField = "LearnSystem",
  73. OnSelect = "queryClass",
  74. Name = "DictionaryLearnSystem",
  75. ID = "DictionaryLearnSystem",
  76. GridOptions = new DataGridOptions
  77. {
  78. Columns = new List<DataGridColumn>()
  79. {
  80. new BoundFieldColumn { FieldName="LearnSystem", HeaderText="学制", Align=AlignStyle.Center }
  81. },
  82. IsCheckOnSelect = true,
  83. DataSourceUrl = Url.Content("~/Specialty/LearnSystem"),
  84. IsPagination = true,
  85. IsShowRowNumbers = true,
  86. IsSingleSelect = false,
  87. IsShowHeader = false
  88. }
  89. };
  90. }
  91. @section scripts{
  92. <script src="~/Scripts/Business/ScoreManage/LevelScoreRate.js"
  93. type="text/javascript"></script>
  94. <script type="text/javascript">
  95. var nonSelect = "@DropdownList.SELECT_ALL";
  96. </script>
  97. }
  98. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  99. @Html.Position()
  100. <div class="p_SearchTitle">
  101. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
  102. 查询条件
  103. </div>
  104. </div>
  105. <form id="formQuery" method="post">
  106. <div class="search_keyword">
  107. <div class="search_input">
  108. <ul>
  109. <li class="sn" style="padding-left: 5px;">学年学期:</li>
  110. <li class="sv">
  111. @Html.DropdownList(new DropdownListOptions
  112. {
  113. BindType = DropdownListBindType.SelectAll,
  114. ItemSourceUrl = Url.Content("~/SchoolYear/DropDown"),
  115. ID = "ddlSchoolyear",
  116. Name = "ddlSchoolyear",
  117. OnSelect = "schoolyearChange",
  118. SelectedValue = BaseExtensions.GetCurrentSchoolYearID(),
  119. OnLoadSuccess = "schoolyearChange"
  120. },
  121. new Dictionary<string, string> { { "data-condition", "dgStudentList" } })
  122. </li>
  123. <li class="sn" style="padding-left: 5px;">考试批次:</li>
  124. <li class="sv">
  125. @Html.DropdownList(new DropdownListOptions
  126. {
  127. BindType = DropdownListBindType.SelectAll,
  128. ID = "ddlExaminationBatch",
  129. Name = "ddlExaminationBatch",
  130. OnSelect = "examinationBatchChange",
  131. OnLoadSuccess = "examinationBatchChange"
  132. },
  133. new Dictionary<string, string> { { "data-condition", "dgStudentList" } })
  134. </li>
  135. <li class="sn" style="padding-left: 5px;">考试类型:</li>
  136. <li class="sv">
  137. @Html.DropdownList(new DropdownListOptions
  138. {
  139. BindType = DropdownListBindType.SelectAll,
  140. ID = "ddlExaminationType",
  141. Name = "ddlExaminationType",
  142. OnSelect = "examinationTypeChange",
  143. OnLoadSuccess = "examinationTypeChange"
  144. },
  145. new Dictionary<string, string> { { "data-condition", "dgStudentList" } })
  146. </li>
  147. <li class="sn" style="padding-left: 5px;">项目名称:</li>
  148. <li class="sv">
  149. @Html.DropdownList(new DropdownListOptions
  150. {
  151. BindType = DropdownListBindType.SelectAll,
  152. ID = "ddlExaminationProject",
  153. Name = "ddlExaminationProject",
  154. },
  155. new Dictionary<string, string> { { "data-condition", "dgStudentList" } })
  156. </li>
  157. </ul>
  158. <ul>
  159. <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("College"):</li>
  160. <li class="sv">
  161. @Html.ComboGrid(cgop)
  162. </li>
  163. <li class="sn" style="padding-left: 5px;">年级:</li>
  164. <li class="sv">
  165. @Html.SchoolYearDropDownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "DictionarySchoolyear", Name = "DictionarySchoolyear", OnSelect = "queryClass" })
  166. </li>
  167. <li class="sn" style="padding-left: 5px;">专业名称:</li>
  168. <li class="sv">
  169. @Html.ComboGrid(cgopStandard)
  170. </li>
  171. <li class="sv">@Html.Button(new ButtonOptions { OnClick = "Report_Search()", Icon = ButtonIcon.Search, Text = "查询" })</li>
  172. </ul>
  173. </div>
  174. </div>
  175. </form>
  176. <div class="search_list">
  177. <iframe id="reportContent" frameborder="0" scrolling="no" style="width: 99%; height: 85%; position: absolute; left: 5px;"></iframe>
  178. </div>
  179. </div>