List.cshtml 4.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Entities;
  3. @using EMIS.Web.Controls;
  4. @{
  5. ViewBag.Title = "List";
  6. }
  7. @section scripts{
  8. <script src="~/Scripts/Business/ExaminationManage/RoomSetting.js" type="text/javascript"></script>
  9. }
  10. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  11. @Html.Position()
  12. <form id="formQuery" method="post" action="@Url.Content("~/ExaminationRoomSetting/Excel")">
  13. @Html.PositionCondition()
  14. <div class="search_keyword">
  15. <div class="search_input">
  16. <ul>
  17. <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("Campus"):</li>
  18. <li class="sv">
  19. @Html.DropdownList(new DropdownListOptions { BindType = DropdownListBindType.SelectAll, ItemSourceUrl = Url.Content("~/Campus/CampusDropdownListBanid"), ID = "CampusDropdown", Name = "CampusDropdown", OnSelect = "QueryCampusDropdownList" }, new Dictionary<string, string> { { "data-condition", "dgRoomSettingList" } })
  20. </li>
  21. <li class="sn" style="padding-left: 5px;">所在建筑物:</li>
  22. <li class="sv">
  23. @Html.ComboGrid(new ComboGridOptions
  24. {
  25. TextField = "Name",
  26. ValueField = "BuildingsInfoID",
  27. Name = "BuildingsDropdown",
  28. OnSelect = "QueryBuildingsDropdownList",
  29. GridOptions = new DataGridOptions
  30. {
  31. Columns = new List<DataGridColumn>()
  32. {
  33. //new LinkButtonColumn { FieldName="Code", HeaderText="建筑物代码", Width=0.1, Align=AlignStyle.Center },
  34. new BoundFieldColumn { FieldName="Name", HeaderText="建筑物名称", Width=0.3, Align=AlignStyle.Center }
  35. },
  36. IsCheckOnSelect = true,
  37. DataSourceUrl = Url.Content("~/Buildings/List"),
  38. IsPagination = true,
  39. IsShowRowNumbers = true,
  40. IsSingleSelect = false
  41. }
  42. }, new Dictionary<string, string> { { "data-condition", "dgRoomSettingList" } })
  43. </li>
  44. <li class="sn" style="padding-left: 5px;">是否可用:</li>
  45. <li class="sv">
  46. @Html.DictionaryDropDownList(EMIS.ViewModel.DictionaryItem.CF_GeneralPurpose, new DropdownListOptions { BindType = DropdownListBindType.SelectAll, Name = "IsSpecialDictionaryDropDown", OnSelect = "QueryIsSpecialDropdownList" }, new Dictionary<string, string> { { "data-condition", "dgRoomSettingList" } })
  47. </li>
  48. </ul>
  49. </div>
  50. </div>
  51. <div class="p_title">
  52. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  53. 考场列表</div>
  54. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  55. </div>
  56. </form>
  57. <div class="search_list">
  58. @Html.DataGrid(new DataGridOptions
  59. {
  60. Columns = new List<DataGridColumn>()
  61. {
  62. new CheckBoxFieldColumn{ HeaderText="", FieldName="ClassroomID"},
  63. new BoundFieldColumn { FieldName="Name", HeaderText="教室", Align=AlignStyle.Center, OverflowLength=29, Width=0.25 },
  64. new BoundFieldColumn { FieldName="IsAvailableName", HeaderText="是否可用", Align=AlignStyle.Center, Width=0.05 },
  65. new BoundFieldColumn { FieldName="ClassroomTypeName", HeaderText="教室类型", Align=AlignStyle.Center, OverflowLength=17, Width=0.15 },
  66. new BoundFieldColumn { FieldName="Totalseating", HeaderText="总座位数", Align=AlignStyle.Center, Width=0.05 },
  67. new BoundFieldColumn { FieldName="Effectiveseating", HeaderText="有效座位数", Align=AlignStyle.Center, Width=0.05 },
  68. new BoundFieldColumn { FieldName="Examinationseating", HeaderText="考试座位数", Align=AlignStyle.Center, Width=0.05 },
  69. new BoundFieldColumn { FieldName="IsWrittenExamName", HeaderText="笔试考试", Align=AlignStyle.Center, Width=0.05 },
  70. new BoundFieldColumn { FieldName="IsMachinetestName", HeaderText="机试考试", Align=AlignStyle.Center, Width=0.05 },
  71. new BoundFieldColumn { FieldName="BuildingsInfoName", HeaderText="所在建筑物", Align=AlignStyle.Center, OverflowLength=22, Width=0.2 }
  72. },
  73. IsCheckOnSelect = true,
  74. DataSourceUrl = Url.Content("~/ExaminationRoomSetting/List"),
  75. ID = "dgRoomSettingList",
  76. IsPagination = true,
  77. IsShowRowNumbers = true,
  78. IsSingleSelect = false
  79. })
  80. </div>
  81. </div>