StudentList.cshtml 1.7 KB

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