StudentAdd.cshtml 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Web.Controls;
  3. @{
  4. ViewBag.Title = "StudentAdd";
  5. var SOCDetailGroupID = ViewBag.SOCDetailGroupID;
  6. }
  7. @section scripts{
  8. <script type="text/javascript">
  9. var nonSelect = "@DropdownList.SELECT_ALL";
  10. function reload() {
  11. $("#dgStudentList").cmsXDataTable("load", $.getDataGridParams("dgStudentList"));
  12. }
  13. //获取选中的数据
  14. function validChoose() {
  15. var d = [];
  16. $.each($("#dgStudentList").cmsXDataTable("getSelections"), function (index) {
  17. d.push(this);
  18. });
  19. return d;
  20. }
  21. function Student_Confirm() {
  22. var d = validChoose();
  23. var windowID = $.SystemGeneral.getUrlParam("WindowID");
  24. if (d.length == 0) {
  25. $.messager.alert("系统提示", "请选择学生。");
  26. return;
  27. }
  28. top.$("#" + windowID).data("resultData", d);
  29. top.$("#" + windowID).dialog("close");
  30. }
  31. </script>
  32. }
  33. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  34. <div class="p_title">
  35. @*<div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  36. 学生信息列表
  37. </div>*@
  38. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">
  39. <div class="current_navbar toolbar">
  40. <div class="func_info">
  41. <a class="easyui-linkbutton" href="javascript:Student_Confirm()" data-options="iconCls:'icon-ok',plain:'true'"
  42. onfocus="this.blur()">选中</a>
  43. </div>
  44. </div>
  45. </div>
  46. </div>
  47. <form id="formQuery" method="post">
  48. @Html.PositionCondition("SOCDetailGroup_Student")
  49. <div class="search_keyword">
  50. <div class="search_input">
  51. </div>
  52. </div>
  53. </form>
  54. <div class="search_list">
  55. @Html.DataGrid(new DataGridOptions
  56. {
  57. Columns = new List<DataGridColumn>()
  58. {
  59. new CheckBoxFieldColumn { FieldName="UserID", HeaderText="" },
  60. new BoundFieldColumn { FieldName="LoginID", HeaderText="学号", Align=AlignStyle.Center, Width=0.08 },
  61. new BoundFieldColumn { FieldName="UserName", HeaderText="姓名", Align=AlignStyle.Center, Width=0.05 },
  62. new BoundFieldColumn { FieldName="SexName", HeaderText="性别", Align=AlignStyle.Center, Width=0.03 },
  63. new BoundFieldColumn { FieldName="ClassmajorName", HeaderText="班级名称", Align=AlignStyle.Center, Width=0.12 },
  64. new BoundFieldColumn { FieldName="InSchoolStatusName", HeaderText="在校状态", Align=AlignStyle.Center, Width=0.04 },
  65. new BoundFieldColumn { FieldName="StudentStatusName", HeaderText="学籍状态", Align=AlignStyle.Center, Width=0.04 }
  66. },
  67. PageSize =30 ,
  68. IsCheckOnSelect = true,
  69. DataSourceUrl = Url.Content("~/SOCDetailGroup/SOCDetailGroupStudentNotGroupList?SOCDetailGroupID=" + SOCDetailGroupID),
  70. ID = "dgStudentList",
  71. IsPagination = true,
  72. IsShowRowNumbers = true,
  73. IsSingleSelect = false
  74. })
  75. </div>
  76. </div>