StudentList.cshtml 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Web.Controls;
  3. @{
  4. ViewBag.Title = "List";
  5. Guid? ID = ViewBag.MinorClassID;
  6. }
  7. @section scripts{
  8. }
  9. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  10. <div class="p_title">
  11. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  12. 学生列表
  13. </div>
  14. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("Student")</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="EvaluationEnterID" },
  22. new BoundFieldColumn { FieldName="CollegeName", HeaderText="院系所", Align=AlignStyle.Center, Width=0.1 },
  23. new BoundFieldColumn { FieldName="GradeMajorName", HeaderText="年级专业", Align=AlignStyle.Center, Width=0.12 },
  24. new BoundFieldColumn { FieldName="ClassMajorName", HeaderText="班级", Align=AlignStyle.Center, Width=0.12 },
  25. new BoundFieldColumn { FieldName="LoginID", HeaderText="学号", Align=AlignStyle.Center, Width=0.06 },
  26. new BoundFieldColumn { FieldName="UserName", HeaderText="姓名", Align=AlignStyle.Center, Width=0.06 }
  27. },
  28. IsCheckOnSelect = true,
  29. DataSourceUrl = Url.Content("~/MinorClass/GetStudentList?minorClassID=" + ID),
  30. ID = "dgStudentList",
  31. IsPagination = true,
  32. IsShowRowNumbers = true,
  33. IsSingleSelect = false
  34. })
  35. </div>
  36. </div>