Report.cshtml 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  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/StandardBindComboGridOptions"),
  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 { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/SchoolYear/YearsDropdownListBanid"), ID = "SchoolyearDropdown", Name = "SchoolyearDropdown", SelectedValue = BaseExtensions.GetCurrentSchoolYearID() })
  112. </li>
  113. <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("College"):</li>
  114. <li class="sv">
  115. @Html.ComboGrid(cgop)
  116. </li>
  117. <li class="sn" style="padding-left: 5px;">年级:</li>
  118. <li class="sv">
  119. @Html.SchoolYearDropDownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "DictionarySchoolyear", Name = "DictionarySchoolyear", OnSelect = "queryClass" })
  120. </li>
  121. <li class="sn" style="padding-left: 5px;">专业名称:</li>
  122. <li class="sv">
  123. @Html.ComboGrid(cgopStandard)
  124. </li>
  125. <li class="sv">@Html.Button(new ButtonOptions { OnClick = "Report_Search()", Icon = ButtonIcon.Search, Text = "查询" })</li>
  126. </ul>
  127. <ul>
  128. <li class="sn" style="padding-left: 5px;">@Html.RSLabel("EducationID"):</li>
  129. <li class="sv">
  130. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_Education, new DropdownListOptions { ID = "DictionaryEducation", Name = "DictionaryEducation", BindType = DropdownListBindType.SelectAll, OnSelect = "queryClass" })
  131. </li>
  132. <li class="sn" style="padding-left: 5px;">学习形式:</li>
  133. <li class="sv">
  134. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_Learningform, new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "LearningformDictionaryDropDown", Name = "LearningformDictionaryDropDown", SelectedValue = BaseExtensions.GetDefaultLearnformForList(), OnSelect = "queryClass" })
  135. </li>
  136. <li class="sn" style="padding-left: 5px;">学制:</li>
  137. <li class="sv">
  138. @Html.ComboGrid(cgopLearnSystem)
  139. </li>
  140. <li class="sn" style="padding-left: 5px;">在校状态:</li>
  141. <li class="sv">
  142. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_InschoolStatus, new DropdownListOptions { BindType = DropdownListBindType.SelectAll, SelectedValue = 1, ID = "InSchoolStatusDictionaryDropDown", Name = "InSchoolStatusDictionaryDropDown" })
  143. </li>
  144. </ul>
  145. <ul>
  146. <li class="sn" style="padding-left: 5px;">考试科目:</li>
  147. <li class="sv">
  148. @Html.ComboGrid(ExaminationSubject)
  149. </li>
  150. </ul>
  151. </div>
  152. </div>
  153. </form>
  154. <div class="search_list">
  155. <iframe id="reportContent" frameborder="0" scrolling="no" style="width: 99%; height: 85%; position: absolute; left: 5px;"></iframe>
  156. </div>
  157. </div>