ClassList.cshtml 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. @model EMIS.ViewModel.SelectCourse.OptionalCourseClassListView
  2. @using EMIS.Web.Controls;
  3. @using Bowin.Web.Controls.Mvc;
  4. @{
  5. ViewBag.Title = "ClassList";
  6. Guid? ID = ViewBag.ID;
  7. string Type = ViewBag.Type;
  8. }
  9. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  10. @using (Html.BeginForm())
  11. {
  12. <div class="p_title">
  13. @*<div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  14. 开放范围</div>*@
  15. </div>
  16. <div class="search_list">
  17. @Html.DataGrid(new DataGridOptions
  18. {
  19. Columns = new List<DataGridColumn>()
  20. {
  21. new CheckBoxFieldColumn{ HeaderText="", FieldName="ClassmajorID" },
  22. new BoundFieldColumn { FieldName="GrademajorCode", HeaderText="年级专业编号", Align=AlignStyle.Center, Width=0.06 },
  23. new BoundFieldColumn { FieldName="GrademajorName", HeaderText="年级专业名称", Align=AlignStyle.Center, Width=0.1 },
  24. new BoundFieldColumn { FieldName="No", HeaderText="班级编号", Align=AlignStyle.Center, Width=0.06 },
  25. new BoundFieldColumn { FieldName="Name", HeaderText="班级名称", Align=AlignStyle.Center, Width=0.12 },
  26. //new BoundFieldColumn { FieldName="yearID", HeaderText="年级", Align=AlignStyle.Center, Width=0.03 },
  27. //new BoundFieldColumn { FieldName="StandardCode", HeaderText="专业代码", Align=AlignStyle.Center, Width=0.04 },
  28. //new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center, Width=0.08 },
  29. //new BoundFieldColumn { FieldName="LearnSystem", HeaderText="学制", Align=AlignStyle.Center, Width=0.03 },
  30. //new BoundFieldColumn { FieldName="EducationName", HeaderText=EMIS.Utility.RSL.Get("EducationID"), Align=AlignStyle.Center, Width=0.04 },
  31. //new BoundFieldColumn { FieldName="LearningformName", HeaderText="学习形式", Align=AlignStyle.Center, Width=0.04 },
  32. //new BoundFieldColumn { FieldName="CollegeName", HeaderText=@EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center, Width=0.08 },
  33. new BoundFieldColumn { FieldName="StudentCount", HeaderText="人数", Align=AlignStyle.Center, Width=0.03 }
  34. },
  35. PageSize = 20,
  36. IsCheckOnSelect = true,
  37. DataSourceUrl = Url.Content("~/OptionalCourseSetting/ClassList?executableOptionalCourseID=" + ID ),//+ "&Type=" + Type),
  38. IsPostBack = true,
  39. ID = "dgClassList",
  40. IsPagination = true,
  41. IsShowRowNumbers = true,
  42. IsSingleSelect = false
  43. })
  44. </div>
  45. }
  46. </div>
  47. @section scripts{
  48. }