ClassroomScheduleView.cshtml 1.9 KB

123456789101112131415161718192021222324252627282930313233343536
  1. @using EMIS.Web.Controls;
  2. @using Bowin.Web.Controls.Mvc;
  3. @{
  4. ViewBag.Title = "Setting";
  5. }
  6. @section scripts{
  7. <script type="text/javascript">
  8. var windowID = '@(Request["WindowID"])';
  9. </script>
  10. }
  11. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  12. <div class="search_list">
  13. @Html.DataGrid(new DataGridOptions
  14. {
  15. Columns = new List<DataGridColumn>()
  16. {
  17. new BoundFieldColumn { FieldName="CoursesTimeName", HeaderText="节次", Align=AlignStyle.Center },
  18. new BoundFieldColumn { FieldName="Monday", HeaderText="星期一", Align=AlignStyle.Center },
  19. new BoundFieldColumn { FieldName="Tuesday", HeaderText="星期二", Align=AlignStyle.Center },
  20. new BoundFieldColumn { FieldName="Wednesday", HeaderText="星期三", Align=AlignStyle.Center },
  21. new BoundFieldColumn { FieldName="Thurday", HeaderText="星期四", Align=AlignStyle.Center },
  22. new BoundFieldColumn { FieldName="Friday", HeaderText="星期五", Align=AlignStyle.Center },
  23. new BoundFieldColumn { FieldName="Saturday", HeaderText="星期六", Align=AlignStyle.Center },
  24. new BoundFieldColumn { FieldName="Sunday", HeaderText="星期日", Align=AlignStyle.Center }
  25. },
  26. DataSourceUrl = Url.Content("~/EducationSchedule/GetClassroomScheduleViewList?schoolYearID=" + Request["SchoolyearID"]
  27. + "&classroomID=" + Request["ClassroomID"]),
  28. IsCheckOnSelect = true,
  29. ID = "dgClassroomScheduleViewList",
  30. MaxHeight = 300,
  31. IsPagination = false,
  32. IsShowRowNumbers = true,
  33. IsSingleSelect = false
  34. })
  35. </div>
  36. </div>