CourseProcessClassroomList.cshtml 3.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Web.Controls;
  3. @{
  4. ComboGridOptions cgop = new ComboGridOptions
  5. {
  6. TextField = "Name",
  7. ValueField = "BuildingsInfoID",
  8. Name = "BuildingsDropdown",
  9. OnSelect = "QueryBuildingsDropdownList",
  10. GridOptions = new DataGridOptions
  11. {
  12. Columns = new List<DataGridColumn>()
  13. {
  14. new BoundFieldColumn { FieldName="Name", HeaderText="建筑物名称", Width=0.3, Align=AlignStyle.Center }
  15. },
  16. IsCheckOnSelect = true,
  17. DataSourceUrl = Url.Content("~/Buildings/List"),
  18. IsPagination = true,
  19. IsShowRowNumbers = true,
  20. IsSingleSelect = false
  21. }
  22. };
  23. }
  24. @section scripts{
  25. <script src="~/Scripts/Business/EducationManage/CourseProcessClassroomList.js" type="text/javascript"></script>
  26. <script type="text/javascript">
  27. var nonSelect = "@DropdownList.SELECT_ALL";
  28. </script>
  29. }
  30. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  31. <div class="p_title">
  32. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  33. 教室列表
  34. </div>
  35. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">
  36. <div class="current_navbar toolbar">
  37. <div class="func_info">
  38. <a class="easyui-linkbutton" href="javascript:Classroom_Confirm()" data-options="iconCls:'icon-ok',plain:'true'"
  39. onfocus="this.blur()">选中</a>
  40. </div>
  41. </div>
  42. </div>
  43. </div>
  44. <form id="formQuery" method="post">
  45. @Html.PositionCondition("ClassroomSelect", null)
  46. @Html.Hidden("ClassroomType", Request["ClassroomTypeID"], new Dictionary<string, object> { { "data-condition", "dgClassroomList" } })
  47. @Html.Hidden("CollegeDropdown", Request["CollegeID"], new Dictionary<string, object> { { "data-condition", "dgClassroomList" } })
  48. @Html.Hidden("MinSeatCount", Request["MinSeatCount"], new Dictionary<string, object> { { "data-condition", "dgClassroomList" } })
  49. <div class="search_keyword">
  50. <div class="search_input">
  51. <ul>
  52. <li class="sn" style="padding-left: 5px;">所在建筑物:</li>
  53. <li class="sv">
  54. @Html.ComboGrid(cgop, new Dictionary<string, string> { { "data-condition", "dgClassroomList" } })
  55. </li>
  56. </ul>
  57. </div>
  58. </div>
  59. </form>
  60. <div class="search_list">
  61. @Html.DataGrid(new DataGridOptions
  62. {
  63. Columns = new List<DataGridColumn>()
  64. {
  65. new CheckBoxFieldColumn{ HeaderText="", FieldName="ClassroomID" },
  66. new BoundFieldColumn { FieldName="Code", HeaderText="教室代码", Align=AlignStyle.Center },
  67. new BoundFieldColumn { FieldName="Name", HeaderText="教室名称", Align=AlignStyle.Center },
  68. new BoundFieldColumn { FieldName="FloorLevel", HeaderText="所在楼层", Align=AlignStyle.Center },
  69. new BoundFieldColumn { FieldName="Totalseating", HeaderText="总座位数", Align=AlignStyle.Center },
  70. new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center },
  71. new BoundFieldColumn { FieldName="IsAvailableName", HeaderText="是否可用", Align=AlignStyle.Center }
  72. },
  73. IsCheckOnSelect = true,
  74. DataSourceUrl = Url.Content("~/EducationMissionClass/GetCourseProcessClassroomList"),
  75. ID = "dgClassroomList",
  76. IsPagination = true,
  77. IsShowRowNumbers = true,
  78. IsSingleSelect = false
  79. })
  80. </div>
  81. </div>