StudentSOCDetail.cshtml 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. @model EMIS.ViewModel.DQPSystem.SOCDetailView
  2. @using EMIS.Web.Controls;
  3. @using Bowin.Web.Controls.Mvc;
  4. @using EMIS.ViewModel;
  5. @{
  6. }
  7. @section scripts{
  8. }
  9. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  10. <div class="search_list">
  11. <form id="formQuery" method="post">
  12. @Html.Hidden("hidSOCDetailID", Model.SOCDetailID, new Dictionary<string, object> { { "data-condition", "dgSOCDetailGroupStudentList" } })
  13. </form>
  14. @Html.HiddenFor(x => x.SOCDetailID)
  15. <table cellpadding="0" cellspacing="0" id="departmenttable">
  16. <tr>
  17. <td>
  18. @Html.LabelFor(x => x.Name):
  19. </td>
  20. <td>
  21. @Html.DisplayFor(x => x.Name)
  22. </td>
  23. <td>
  24. @Html.LabelFor(x => x.Credit):
  25. </td>
  26. <td>
  27. @Html.DisplayFor(x => x.Credit)
  28. </td>
  29. </tr>
  30. <tr>
  31. <td>
  32. @Html.LabelFor(x => x.Weight):
  33. </td>
  34. <td>
  35. @Html.DisplayFor(x => x.Weight)
  36. </td>
  37. <td>
  38. @Html.Label("")
  39. </td>
  40. <td>
  41. @Html.Label("")
  42. </td>
  43. </tr>
  44. <tr>
  45. <td>
  46. @Html.LabelFor(x => x.Description):
  47. </td>
  48. <td colspan = "3">
  49. @Html.DisplayFor(x => x.Description)
  50. </td>
  51. </tr>
  52. <tr>
  53. <td colspan="4">
  54. @Html.Uploader(new uploaderOption { IsEnabled = false, Name = "SOCAttachment", MainTableID = Model.SOCDetailID, Title = "SOC说明文件" })
  55. </td>
  56. </tr>
  57. @if (Model.IsGroup == true)
  58. {
  59. <tr>
  60. <td colspan="4">
  61. @Html.DataGrid(new DataGridOptions
  62. {
  63. Columns = new List<DataGridColumn>()
  64. {
  65. new BoundFieldColumn { FieldName="LoginID", HeaderText="学号", Align=AlignStyle.Center },
  66. new BoundFieldColumn { FieldName="UserName", HeaderText="姓名", Align=AlignStyle.Center },
  67. new BoundFieldColumn { FieldName="ClassmajorName", HeaderText="所在班级", Align=AlignStyle.Center }
  68. },
  69. IsCheckOnSelect = true,
  70. DataSourceUrl = Url.Content("~/SOCDetailScore/DetailStudentGroupList"),
  71. ID = "dgSOCDetailGroupStudentList",
  72. IsPagination = true,
  73. IsShowRowNumbers = true,
  74. IsSingleSelect = false
  75. })
  76. </td>
  77. </tr>
  78. }
  79. </table>
  80. </div>
  81. </div>