StudentEdit.cshtml 3.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. @model EMIS.ViewModel.DQPSystem.SOCDetailGroupView
  2. @using EMIS.Web.Controls;
  3. @using Bowin.Web.Controls.Mvc;
  4. @{
  5. ViewBag.Title = "Edit";
  6. }
  7. @section scripts{
  8. <script src="~/Scripts/Business/DQPSystem/SOCDetailGroupStudentEdit.js" type="text/javascript"></script>
  9. <script type="text/javascript">
  10. </script>
  11. }
  12. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  13. @using (Ajax.BeginForm(new AjaxOptions
  14. {
  15. OnSuccess = "EMISFunction.FormSuccess",
  16. OnBegin = "EMISFunction.FormSubmit",
  17. OnComplete = "EMISFunction.FormComplete"
  18. }))
  19. {
  20. @Html.Hidden("hid_ExamsCategory")
  21. <div class="p_title">
  22. @*<div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  23. 学生名单</div>*@
  24. </div>
  25. <div class="search_list">
  26. @Html.HiddenFor(x => x.SOCDetailGroupID)
  27. <table cellpadding="0" cellspacing="0" id="FinalExaminationtable">
  28. <tr>
  29. <td colspan="3">
  30. <div style="line-height: 30px; font-size: 12px; text-align: left;">@Html.ContextMenuBar("Student")</div>
  31. </td>
  32. </tr>
  33. <tr>
  34. <td colspan="3">
  35. @Html.DataGrid(new DataGridOptions
  36. {
  37. Columns = new List<DataGridColumn>()
  38. {
  39. new CheckBoxFieldColumn { FieldName="UserID", HeaderText="" },
  40. new BoundFieldColumn { FieldName="LoginID", HeaderText="学号", Align=AlignStyle.Center, Width=0.1},
  41. new BoundFieldColumn { FieldName="UserName", HeaderText="姓名", Align=AlignStyle.Center, Width=0.05 },
  42. new BoundFieldColumn { FieldName="SexName", HeaderText="性别", Align=AlignStyle.Center, Width=0.03 },
  43. //new BoundFieldColumn { FieldName="Startterm", HeaderText="开课学期", Align=AlignStyle.Center, CustomFormatFun = "CoursematerialNameColor",Width=0.05 },
  44. //new BoundFieldColumn { FieldName="CoursematerialCode", HeaderText="课程代码", Align=AlignStyle.Center, CustomFormatFun = "",Width=0.06 },
  45. //new BoundFieldColumn { FieldName="CoursematerialName", HeaderText="课程名称", Align=AlignStyle.Center, CustomFormatFun = "CoursematerialNameColor",Width=0.1 },
  46. new BoundFieldColumn { FieldName="ClassmajorName", HeaderText="班级名称", Align=AlignStyle.Center, Width=0.15 },
  47. new BoundFieldColumn { FieldName="InSchoolStatusName", HeaderText="在校状态", Align=AlignStyle.Center, Width=0.05 },
  48. //new BoundFieldColumn { FieldName="StudentStatusName", HeaderText="学籍状态", Align=AlignStyle.Center, CustomFormatFun = "StudentStatusNameColor",Width=0.05 },
  49. //new BoundFieldColumn { FieldName="IsDifferentDynamic", HeaderText="是否异动申请", Align=AlignStyle.Center, IsHidden = true }
  50. },
  51. PageSize = 50,
  52. IsCheckOnSelect = true,
  53. DataSourceUrl = Url.Content("~/SOCDetailGroup/SOCDetailGroupStudentList?SOCDetailGroupID=" + Model.SOCDetailGroupID),
  54. IsPostBack = true,
  55. ID = "dgStudentList",
  56. IsPagination = true,
  57. IsShowRowNumbers = true,
  58. IsSingleSelect = false,
  59. MaxHeight = 300
  60. })
  61. </td>
  62. </tr>
  63. </table>
  64. </div>
  65. }
  66. </div>