ClassmajorReport.cshtml 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Web.Controls;
  3. @{
  4. ViewBag.Title = "ClassmajorReport";
  5. ComboGridOptions cgopCollege = new ComboGridOptions
  6. {
  7. TextField = "Name",
  8. ValueField = "CollegeID",
  9. Name = "CollegeDropdown",
  10. ID = "CollegeDropdown",
  11. OnSelect = "QueryCollegeDropdownList",
  12. GridOptions = new DataGridOptions
  13. {
  14. Columns = new List<DataGridColumn>()
  15. {
  16. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center }
  17. },
  18. IsCheckOnSelect = true,
  19. DataSourceUrl = Url.Content("~/College/ListOnlyCollege"),
  20. IsPagination = true,
  21. IsShowRowNumbers = true,
  22. IsSingleSelect = false,
  23. }
  24. };
  25. ComboGridOptions cgopStandard = new ComboGridOptions
  26. {
  27. TextField = "StandardName",
  28. ValueField = "StandardID",
  29. OnSelect = "SelectClassmajorDropdownList",
  30. Name = "DictionaryStandard",
  31. ID = "DictionaryStandard",
  32. EmptyText = "请选择",
  33. GridOptions = new DataGridOptions
  34. {
  35. Columns = new List<DataGridColumn>()
  36. {
  37. new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center }
  38. },
  39. IsCheckOnSelect = true,
  40. DataSourceUrl = Url.Content("~/Grademajor/StandardBindComboGridOptions"),
  41. IsPagination = true,
  42. IsShowRowNumbers = true,
  43. IsSingleSelect = false,
  44. IsShowHeader = false
  45. }
  46. };
  47. ComboGridOptions cgopClassmajor = new ComboGridOptions
  48. {
  49. TextField = "Name",
  50. ValueField = "ClassmajorID",
  51. Name = "ClassmajorDropdown",
  52. ID = "ClassmajorDropdown",
  53. OnSelect = "reload",
  54. EmptyText = "请选择",
  55. GridOptions = new DataGridOptions
  56. {
  57. Columns = new List<DataGridColumn>()
  58. {
  59. //new LinkButtonColumn { FieldName="No", HeaderText="班级编号", Align=AlignStyle.Center },
  60. new BoundFieldColumn { FieldName="Name", HeaderText="班级名称", Align=AlignStyle.Center }
  61. },
  62. IsCheckOnSelect = true,
  63. DataSourceUrl = Url.Content("~/Classmajor/List"),
  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/SchedulingManage/ScheduleReport/AdultClassmajorReport.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. 查询条件</div>
  103. </div>
  104. <form id="formQuery" method="post">
  105. <div class="search_keyword">
  106. <div class="search_input">
  107. <ul>
  108. <li class="sn" style="padding-left: 5px;">学年学期:</li>
  109. <li class="sv">
  110. @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.None, ItemSourceUrl = Url.Content("~/SchoolYear/DropDown"), SelectedValue = @ViewBag.SchoolYearID, ID = "SchoolYearDropdown", Name = "SchoolYearDropdown", OnSelect = "reload" })
  111. </li>
  112. <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("College"):</li>
  113. <li class="sv">
  114. @Html.ComboGrid(cgopCollege)
  115. </li>
  116. <li class="sn" style="padding-left: 5px;">年级:</li>
  117. <li class="sv">
  118. @Html.SchoolYearDropDownList(new DropdownListOptions { Name = "DictionarySchoolyear", BindType = DropdownListBindType.PleaseSelect, OnSelect = "SelectClassmajorDropdownList", ID = "DictionarySchoolyear" }, new Dictionary<string, string> { { "style", "width:150px" } })
  119. </li>
  120. <li class="sn" style="padding-left: 5px;">专业名称:</li>
  121. <li class="sv">
  122. @Html.ComboGrid(cgopStandard)
  123. </li>
  124. </ul>
  125. <ul>
  126. <li class="sn" style="padding-left: 5px;">@Html.RSLabel("EducationID"):</li>
  127. <li class="sv">
  128. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_Education, new DropdownListOptions { ID = "DictionaryEducation", Name = "DictionaryEducation", BindType = DropdownListBindType.SelectAll, OnSelect = "queryClass" })
  129. </li>
  130. <li class="sn" style="padding-left: 5px;">学习形式:</li>
  131. <li class="sv">
  132. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_Learningform, new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ID = "LearningformDictionaryDropDown", Name = "LearningformDictionaryDropDown", SelectedValue = BaseExtensions.GetDefaultLearnformForList(), OnSelect = "queryClass" })
  133. </li>
  134. <li class="sn" style="padding-left: 5px;">学制:</li>
  135. <li class="sv">
  136. @Html.ComboGrid(cgopLearnSystem)
  137. </li>
  138. <li class="sn" style="padding-left: 5px;">班级名称:</li>
  139. <li class="sv">
  140. @Html.ComboGrid(cgopClassmajor)
  141. </li>
  142. <li class="sv">@Html.Button(new ButtonOptions { OnClick = "Report_Search()", Icon = ButtonIcon.Search, Text = "查询" })</li>
  143. </ul>
  144. </div>
  145. </div>
  146. </form>
  147. <div class="search_list">
  148. <iframe id="reportContent" frameborder="0" scrolling="no" style="width: 99%; height: 85%; position: absolute;
  149. left: 5px;"></iframe>
  150. </div>
  151. </div>