TeacherReport.cshtml 4.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Web.Controls;
  3. @{
  4. ViewBag.Title = "TeacherReport";
  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/ListWithoutRange"),
  20. IsPagination = true,
  21. IsShowRowNumbers = true,
  22. IsSingleSelect = false,
  23. }
  24. };
  25. }
  26. @section scripts{
  27. <script src="~/Scripts/Business/SchedulingManage/ScheduleReport/AdultTeacherReport.js"
  28. type="text/javascript"></script>
  29. <script type="text/javascript">
  30. var nonSelect = "@DropdownList.SELECT_ALL";
  31. </script>
  32. }
  33. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  34. @Html.Position()
  35. <div class="p_SearchTitle">
  36. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
  37. 查询条件
  38. </div>
  39. </div>
  40. <form id="formQuery" method="post">
  41. <div class="search_keyword">
  42. <div class="search_input">
  43. <ul>
  44. <li class="sn" style="padding-left: 5px;">学年学期:</li>
  45. <li class="sv">
  46. @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.None, ItemSourceUrl = Url.Content("~/SchoolYear/DropDown"), SelectedValue = @ViewBag.SchoolYearID, ID = "SchoolYearDropdown", Name = "SchoolYearDropdown", OnSelect = "reload" })
  47. </li>
  48. <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("College"):</li>
  49. <li class="sv">
  50. @Html.ComboGrid(cgopCollege)
  51. </li>
  52. <li class="sn" style="padding-left: 5px;">教师:</li>
  53. <li class="sv">
  54. @*@Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.PleaseSelect, ID = "StaffDropdown", Name = "StaffDropdown", OnSelect = "reload", OnLoadSuccess = "" })*@
  55. @Html.ComboGrid(new ComboGridOptions
  56. {
  57. TextField = "Name",
  58. ValueField = "UserID",
  59. OnSelect = "reload",
  60. ID = "StaffDropdown",
  61. Name = "StaffDropdown",
  62. GridOptions = new DataGridOptions
  63. {
  64. Columns = new List<DataGridColumn>()
  65. {
  66. //new BoundFieldColumn { FieldName="Code", HeaderText="教室代码", Width=0.1, Align=AlignStyle.Center },
  67. new BoundFieldColumn { FieldName="Name", HeaderText="教师名字", Width=0.1, Align=AlignStyle.Center }
  68. },
  69. IsCheckOnSelect = true,
  70. DataSourceUrl = Url.Content("~/Staff/List"),
  71. IsPagination = true,
  72. IsShowRowNumbers = true,
  73. IsSingleSelect = false,
  74. IsAutoLoad = true
  75. }
  76. })
  77. </li>
  78. <li class="sv">@Html.Button(new ButtonOptions { OnClick = "Report_Search()", Icon = ButtonIcon.Search, Text = "查询" })</li>
  79. </ul>
  80. </div>
  81. </div>
  82. </form>
  83. <div class="search_list">
  84. <iframe id="reportContent" scrolling="no" frameborder="0" style="width: 99%; height: 85%; position: absolute; left: 5px;"></iframe>
  85. </div>
  86. </div>