EducationSchedulingClassList.cshtml 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Web.Controls;
  3. @using Bowin.Common.Utility;
  4. @{
  5. ViewBag.Title = "List";
  6. Guid? educationMissionClassID = Request.QueryString["educationMissionClassID"].ParseStrTo<Guid>();
  7. }
  8. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  9. @using (Html.BeginForm())
  10. {
  11. <div class="p_title">
  12. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  13. 排课班列表</div>
  14. </div>
  15. <div class="search_list">
  16. @Html.DataGrid(new DataGridOptions
  17. {
  18. Columns = new List<DataGridColumn>()
  19. {
  20. new CheckBoxFieldColumn{ HeaderText="", FieldName="EducationSchedulingClassID" },
  21. new BoundFieldColumn { FieldName="TaskGroupName", HeaderText="分班名称", Align=AlignStyle.Center },
  22. new LinkButtonColumn { FieldName="StudentNum", HeaderText="学生总数", Align=AlignStyle.Center, Handle="StudentEdit" }
  23. },
  24. IsCheckOnSelect = true,
  25. DataSourceUrl = Url.Content("~/EducationMissionClass/EducationSchedulingClassList?educationMissionClassID=" + educationMissionClassID),
  26. ID = "dgEducationSchedulingClassList",
  27. IsPagination = true,
  28. IsShowRowNumbers = true,
  29. IsSingleSelect = false
  30. })
  31. </div>
  32. }
  33. </div>
  34. @section scripts{
  35. <script type="text/javascript">
  36. function StudentEdit(rowindex, rowdata) {
  37. var mnu = $.SystemGeneral.getUrlParam("MNU");
  38. $.popupTopWindow('排课班学生信息', '/EducationMissionClass/EducationSchedulingClassStudentList?educationSchedulingClassID=' + rowdata.EducationSchedulingClassID + '&MNU=' + mnu + '', 770, 420);
  39. }
  40. </script>
  41. }