List.cshtml 4.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. @model EMIS.ViewModel.MinorManage.MinorApply.StudentMinorView
  2. @using Bowin.Web.Controls.Mvc;
  3. @using EMIS.Web.Controls;
  4. @{
  5. ViewBag.Title = "List";
  6. }
  7. @section scripts{
  8. <script src="~/Scripts/Business/MinorManage/MinorApply/StudentMinor.js" type="text/javascript"></script>
  9. <script type="text/javascript">
  10. var nonSelect = "@DropdownList.SELECT_ALL";
  11. </script>
  12. }
  13. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  14. @Html.Position()
  15. <div class="p_SearchTitle">
  16. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
  17. 查询条件
  18. </div>
  19. </div>
  20. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  21. <div class="normalContent">
  22. @Html.HiddenFor(x => x.StudentMinorRegistID, new { id = "StudentMinorRegistID" })
  23. <table cellpadding="0" cellspacing="0" width="98%">
  24. @Html.HiddenFor(x => x.UserID)
  25. @Html.HiddenFor(x => x.StudentMinorRegistID)
  26. <tr>
  27. <td width="8%">@Html.LabelFor(x => x.UserName):
  28. </td>
  29. <td style="background-color: white; width: 10%">@Html.DisplayFor(x => x.UserName)
  30. </td>
  31. <td width="8%">@Html.LabelFor(x => x.Grade):
  32. </td>
  33. <td style="background-color: white; width: 10%">@Html.DisplayFor(x => x.Grade)
  34. </td>
  35. <td width="8%">@Html.LabelFor(x => x.GrademinorName):
  36. </td>
  37. <td style="background-color: white; width: 16%">@Html.DisplayFor(x => x.GrademinorName)
  38. </td>
  39. <td width="8%">@Html.LabelFor(x => x.CollegeName):
  40. </td>
  41. <td style="background-color: white; width: 12%">@Html.DisplayFor(x => x.CollegeName)
  42. </td>
  43. <td width="8%">@Html.LabelFor(x => x.RecordStatusStr):
  44. </td>
  45. <td style="background-color: white; width: 10%">@Html.DisplayFor(x => x.RecordStatusStr)
  46. </td>
  47. </tr>
  48. </table>
  49. </div>
  50. <div class="p_title">
  51. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  52. 教学计划明细列表
  53. </div>
  54. </div>
  55. <div class="search_list">
  56. @Html.DataGrid(new DataGridOptions
  57. {
  58. Columns = new List<DataGridColumn>()
  59. {
  60. //new CheckBoxFieldColumn{ HeaderText="", FieldName="MinorPlanID" },
  61. new BoundFieldColumn { FieldName="CourseCode", HeaderText="课程代码", Align=AlignStyle.Center, Width=0.05 },
  62. new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center, Width=0.15 },
  63. new BoundFieldColumn { FieldName="CourseTypeName", HeaderText="课程类型", Align=AlignStyle.Center, Width=0.04 },
  64. new BoundFieldColumn { FieldName="Totalhours", HeaderText="总学时", Align=AlignStyle.Center, Width=0.03},
  65. new BoundFieldColumn { FieldName="TheoryCourse", HeaderText="理论学时", Align=AlignStyle.Center, Width=0.04},
  66. new BoundFieldColumn { FieldName="Practicehours", HeaderText="实践学时", Align=AlignStyle.Center, Width=0.04 },
  67. new BoundFieldColumn { FieldName="Trialhours", HeaderText="实验学时", Align=AlignStyle.Center, Width=0.04 },
  68. new BoundFieldColumn { FieldName="Credit", HeaderText="学分", Align=AlignStyle.Center, Width=0.03 },
  69. new BoundFieldColumn { FieldName="SchoolyearNumName", HeaderText="开课学年", Align=AlignStyle.Center, Width=0.05 },
  70. new BoundFieldColumn { FieldName="SchoolcodeName", HeaderText="开课学期", Align=AlignStyle.Center, Width=0.05 },
  71. new BoundFieldColumn { FieldName="DepartmentName", HeaderText="开课教研室", Align=AlignStyle.Center, Width=0.06 },
  72. new BoundFieldColumn { FieldName="CollegeName", HeaderText="开课"+@EMIS.Utility.RSL.Get("College"), Align=AlignStyle.Center, Width=0.08 },
  73. },
  74. //IsShow = ((!Model.GrademajorStartTime.HasValue && !Model.GrademajorEndTime.HasValue) || (Model.GrademajorStartTime <= DateTime.Now && Model.GrademajorEndTime >= DateTime.Now)),
  75. IsCheckOnSelect = true,
  76. DataSourceUrl = Url.Content("~/StudentMinorRegist/List"),
  77. ID = "dgStudentMinorList",
  78. IsPagination = false,
  79. IsShowRowNumbers = true,
  80. IsSingleSelect = false
  81. })
  82. </div>
  83. </div>