StudentList.cshtml 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. @model EMIS.ViewModel.ChargeManage.ChargeSituation.StudentChargeView
  2. @using EMIS.Web.Controls;
  3. @using Bowin.Web.Controls.Mvc;
  4. @{
  5. ViewBag.Title = "StudentList";
  6. Guid? grademajorID = new Guid(Request["GrademajorID"]);
  7. int? inschoolStatus = Convert.ToInt32(Request["inschoolStatus"]);
  8. }
  9. @section scripts{
  10. <script src="~/Scripts/Business/ChargeManage/ChargeSituation/ChargeStandard.js" type="text/javascript"></script>
  11. <script type="text/javascript">
  12. var nonSelect = "@DropdownList.SELECT_ALL";
  13. function GrademajorStudent_Export() {
  14. $("#formQuery").submit();
  15. }
  16. </script>
  17. }
  18. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  19. <form id="formQuery" method="post" action="@Url.Content("~/ChargeStandard/GrademajorStudentExcel?grademajorID=" + grademajorID + "&inschoolStatus=" + inschoolStatus)">
  20. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("GraDetail")</div>
  21. </form>
  22. <div class="search_list">
  23. @Html.DataGrid(new DataGridOptions
  24. {
  25. Columns = new List<DataGridColumn>()
  26. {
  27. new CheckBoxFieldColumn { FieldName="UserID" },
  28. new BoundFieldColumn { FieldName="LoginID", HeaderText="学号", Align=AlignStyle.Center,Width=0.08 },
  29. new BoundFieldColumn { FieldName="UserName", HeaderText="姓名", Align=AlignStyle.Center,Width=0.05 },
  30. new BoundFieldColumn { FieldName="SexName", HeaderText="性别", Align=AlignStyle.Center,Width=0.03 },
  31. new BoundFieldColumn { FieldName="ClassMajorName", HeaderText="班级名称", Align=AlignStyle.Center,Width=0.1 },
  32. new BoundFieldColumn { FieldName="InSchoolStatusName", HeaderText="在校状态", Align=AlignStyle.Center,Width=0.04 },
  33. new BoundFieldColumn { FieldName="StudentStatusName", HeaderText="学籍状态", Align=AlignStyle.Center,Width=0.04 }
  34. },
  35. PageSize = 30,
  36. IsCheckOnSelect = true,
  37. DataSourceUrl = Url.Content("~/ChargeStandard/StudentList?grademajorID=" + grademajorID + "&inschoolStatus=" + inschoolStatus),
  38. IsPostBack = true,
  39. ID = "dgStudentList",
  40. IsPagination = true,
  41. IsShowRowNumbers = true,
  42. IsSingleSelect = false
  43. })
  44. </div>
  45. </div>