List.cshtml 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Web.Controls;
  3. @{
  4. ViewBag.Title = "List";
  5. ComboGridOptions cgop = new ComboGridOptions
  6. {
  7. TextField = "Name",
  8. ValueField = "ClassroomID",
  9. Name = "ClassroomComboGrid",
  10. GridOptions = new DataGridOptions
  11. {
  12. Columns = new List<DataGridColumn>()
  13. {
  14. // new LinkButtonColumn { FieldName="Code", HeaderText="教室编号", Width=0.1, Align=AlignStyle.Center },
  15. new BoundFieldColumn { FieldName="Name", HeaderText="教室名称", Width=0.3, Align=AlignStyle.Center }
  16. },
  17. IsCheckOnSelect = true,
  18. DataSourceUrl = Url.Content("~/Classroom/List"),
  19. IsPagination = true,
  20. IsShowRowNumbers = true,
  21. IsSingleSelect = false
  22. }
  23. };
  24. ComboGridOptions cgopcollge = new ComboGridOptions
  25. {
  26. TextField = "Name",
  27. ValueField = "CollegeID",
  28. Name = "CollegeComboGrid",
  29. GridOptions = new DataGridOptions
  30. {
  31. Columns = new List<DataGridColumn>()
  32. {
  33. // new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Width=0.1, Align=AlignStyle.Center },
  34. new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Width=0.3, Align=AlignStyle.Center }
  35. },
  36. IsCheckOnSelect = true,
  37. DataSourceUrl = Url.Content("~/College/ListOnlyCollege"),
  38. IsPagination = true,
  39. IsShowRowNumbers = true,
  40. IsSingleSelect = false
  41. }
  42. };
  43. }
  44. @section scripts{
  45. <script src="~/Scripts/Business/SchedulingManage/SchedulingSettings/ClassroomScheduleSetting.js"
  46. type="text/javascript"></script>
  47. }
  48. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  49. @Html.Position()
  50. <div class="p_SearchTitle">
  51. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
  52. 查询条件</div>
  53. </div>
  54. <div class="search_keyword">
  55. <div class="search_input">
  56. <ul>
  57. <li class="sn" style="padding-left: 5px;">@EMIS.Utility.RSL.Get("College"):</li>
  58. <li class="sv">
  59. @Html.ComboGrid(cgopcollge, new Dictionary<string, string> { { "data-condition", "dgClassroomScheduleSettingList" } })
  60. </li>
  61. <li class="sn" style="padding-left: 5px;">教室:</li>
  62. <li class="sv">
  63. @Html.ComboGrid(cgop, new Dictionary<string, string> { { "data-condition", "dgClassroomScheduleSettingList" } })
  64. </li>
  65. <li class="sn" style="padding-left: 20px;"><a href="javascript:void(0)" class="easyui-linkbutton"
  66. data-options="iconCls:'icon-search'" onclick="reload();">查询</a></li>
  67. </ul>
  68. </div>
  69. </div>
  70. <div class="p_title">
  71. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  72. 教室可排时间设置列表</div>
  73. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  74. </div>
  75. <div class="search_list">
  76. @Html.DataGrid(new DataGridOptions
  77. {
  78. Columns = new List<DataGridColumn>()
  79. {
  80. new CheckBoxFieldColumn{ HeaderText="", FieldName="UserID" },
  81. new LinkButtonColumn { FieldName="ClassroomCode", HeaderText="教室代码", Align=AlignStyle.Center , Handle="edit"},
  82. new BoundFieldColumn { FieldName="ClassroomName", HeaderText="教室名称", Align=AlignStyle.Center },
  83. new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center },
  84. new BoundFieldColumn { FieldName="Totalseating", HeaderText="总座位数", Align=AlignStyle.Center },
  85. new BoundFieldColumn { FieldName="Effectiveseating", HeaderText="有效座位数", Align=AlignStyle.Center },
  86. new BoundFieldColumn { FieldName="ClassroomTypeNames", HeaderText="教室类型", Align=AlignStyle.Center }
  87. },
  88. IsCheckOnSelect = true,
  89. DataSourceUrl = Url.Content("~/ClassroomScheduleSetting/List"),
  90. ID = "dgClassroomScheduleSettingList",
  91. IsPagination = true,
  92. IsShowRowNumbers = true,
  93. IsSingleSelect = false
  94. })
  95. </div>
  96. </div>