ClassroomReport.cshtml 4.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Web.Controls;
  3. @{
  4. ViewBag.Title = "ClassroomReport";
  5. }
  6. @section scripts{
  7. <script src="~/Scripts/Business/SchedulingManage/ScheduleReport/ClassroomReport.js"
  8. type="text/javascript"></script>
  9. <script type="text/javascript">
  10. var nonSelect = "@DropdownList.SELECT_ALL";
  11. </script>
  12. }
  13. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  14. @Html.Position()
  15. <div class="p_SearchTitle">
  16. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
  17. 查询条件</div>
  18. </div>
  19. <form id="formQuery" method="post">
  20. <div class="search_keyword">
  21. <div class="search_input">
  22. <ul>
  23. <li class="sn" style="padding-left: 5px;">学年学期:</li>
  24. <li class="sv">
  25. @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.None, ItemSourceUrl = Url.Content("~/SchoolYear/DropDown"), SelectedValue = @ViewBag.SchoolYearID, ID = "SchoolYearDropdown", Name = "SchoolYearDropdown", OnSelect = "reload" })
  26. </li>
  27. <li class="sn" style="padding-left: 5px;">所在建筑物:</li>
  28. <li class="sv">
  29. @Html.ComboGrid(new ComboGridOptions
  30. {
  31. TextField = "Name",
  32. ValueField = "BuildingsInfoID",
  33. ID = "BuildingsDropdown",
  34. Name = "BuildingsDropdown",
  35. OnSelect = "SelectBuildingsDropdownList",
  36. EmptyText = "请选择",
  37. GridOptions = new DataGridOptions
  38. {
  39. Columns = new List<DataGridColumn>()
  40. {
  41. new BoundFieldColumn { FieldName="Code", HeaderText="建筑物代码", Width=0.1, Align=AlignStyle.Center },
  42. new BoundFieldColumn { FieldName="Name", HeaderText="建筑物名称", Width=0.3, Align=AlignStyle.Center }
  43. },
  44. IsCheckOnSelect = true,
  45. DataSourceUrl = Url.Content("~/Buildings/List"),
  46. IsPagination = true,
  47. IsShowRowNumbers = true,
  48. IsSingleSelect = false,
  49. OnLoadSuccessFun = ""//QueryBuildingsDropdownList
  50. }
  51. })
  52. </li>
  53. <li class="sn" style="padding-left: 5px;">教室:</li>
  54. <li class="sv">
  55. @Html.ComboGrid(new ComboGridOptions
  56. {
  57. TextField = "Name",
  58. ValueField = "ClassroomID",
  59. OnSelect = "reload",
  60. ID = "ClassroomDropdown",
  61. Name = "ClassroomDropdown",
  62. EmptyText = "请选择",
  63. GridOptions = new DataGridOptions
  64. {
  65. Columns = new List<DataGridColumn>()
  66. {
  67. new BoundFieldColumn { FieldName="Code", HeaderText="教室代码", Width=0.1, Align=AlignStyle.Center },
  68. new BoundFieldColumn { FieldName="Name", HeaderText="教室名称", Width=0.1, Align=AlignStyle.Center }
  69. },
  70. IsCheckOnSelect = true,
  71. DataSourceUrl = Url.Content("~/Classroom/List"),
  72. IsPagination = true,
  73. IsShowRowNumbers = true,
  74. IsSingleSelect = false,
  75. IsAutoLoad = false,
  76. OnLoadSuccessFun = ""//QueryClassroomDropdownList
  77. }
  78. })
  79. </li>
  80. <li class="sv"><a class="easyui-linkbutton l-btn" onclick="Report_Search()" href="#;"
  81. data-options="iconCls:'icon-search'">查询</a></li>
  82. </ul>
  83. </div>
  84. </div>
  85. </form>
  86. <div class="search_list">
  87. <iframe id="reportContent" frameborder="0" scrolling="no" style="width: 99%; height: 85%; position: absolute;
  88. left: 5px;"></iframe>
  89. </div>
  90. </div>