List.cshtml 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196
  1. @model EMIS.ViewModel.SelectCourse.SelectCourseResult.StudentSelectCourseSummaryView
  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/SelectCourseManage/StudentSelectCourse.js" type="text/javascript"></script>
  9. <script type="text/javascript">
  10. var nonSelect = "@DropdownList.SELECT_ALL";
  11. var StartTime = "@Model.GrademajorStartTime";
  12. var EndTime = "@Model.GrademajorEndTime";
  13. var Now = "@DateTime.Now"
  14. </script>
  15. }
  16. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  17. @Html.Position()
  18. <div class="p_SearchTitle">
  19. <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
  20. 查询条件
  21. </div>
  22. </div>
  23. <div class="normalContent">
  24. @Html.HiddenFor(x => x.GrademajorID, new { id = "GrademajorID" })
  25. <table cellpadding="0" cellspacing="0" width="98%">
  26. <tr>
  27. <td width="50">@Html.LabelFor(x => x.Name):
  28. </td>
  29. <td style="background-color: white; width: 80px">@Html.DisplayFor(x => x.Name)
  30. </td>
  31. <td width="50">@Html.LabelFor(x => x.ClassmajorName):
  32. </td>
  33. <td style="background-color: white; width: 300px">@Html.DisplayFor(x => x.ClassmajorName)
  34. </td>
  35. <td width="50">@Html.LabelFor(x => x.OptionalTotalSelectCount):
  36. </td>
  37. <td style="background-color: white; width: 50px">@Html.DisplayFor(x => x.OptionalTotalSelectCount)
  38. </td>
  39. <td width="50">@Html.LabelFor(x => x.OptionalTotalCredit):
  40. </td>
  41. <td style="background-color: white; width: 50px">@Html.DisplayFor(x => x.OptionalTotalCredit)
  42. </td>
  43. <td width="50">@Html.LabelFor(x => x.FreeSelectCourseTotalSelectCount):
  44. </td>
  45. <td style="background-color: white; width: 50px">@Html.DisplayFor(x => x.FreeSelectCourseTotalSelectCount)
  46. </td>
  47. <td width="50">@Html.LabelFor(x => x.FreeSelectCourseTotalCredit):
  48. </td>
  49. <td style="background-color: white; width: 50px">@Html.DisplayFor(x => x.FreeSelectCourseTotalCredit)
  50. </td>
  51. </tr>
  52. </table>
  53. <table cellpadding="0" cellspacing="0" width="98%">
  54. <tr>
  55. <td width="120">
  56. <label>
  57. </label>
  58. </td>
  59. <td style="text-align: center">
  60. @Html.LabelFor(x => x.OptionalStartTime)
  61. </td>
  62. <td style="text-align: center">
  63. @Html.LabelFor(x => x.OptionalEndTime)
  64. </td>
  65. <td style="text-align: center">
  66. @Html.LabelFor(x => x.OptionalMaxSelectCount)
  67. </td>
  68. <td style="text-align: center">
  69. @Html.LabelFor(x => x.OptionalMinSelectCount)
  70. </td>
  71. <td style="text-align: center">
  72. @Html.LabelFor(x => x.OptionalMaxCredit)
  73. </td>
  74. <td style="text-align: center">
  75. @Html.LabelFor(x => x.OptionalMinCredit)
  76. </td>
  77. </tr>
  78. <tr>
  79. <td>
  80. <label>
  81. 限选课:</label>
  82. </td>
  83. <td style="background-color: white;">
  84. @Html.DisplayFor(x => x.OptionalStartTime)
  85. </td>
  86. <td style="background-color: white;">
  87. @Html.DisplayFor(x => x.OptionalEndTime)
  88. </td>
  89. <td style="background-color: white;">
  90. @Html.DisplayFor(x => x.OptionalMaxSelectCount)
  91. </td>
  92. <td style="background-color: white;">
  93. @Html.DisplayFor(x => x.OptionalMinSelectCount)
  94. </td>
  95. <td style="background-color: white;">
  96. @Html.DisplayFor(x => x.OptionalMaxCredit)
  97. </td>
  98. <td style="background-color: white;">
  99. @Html.DisplayFor(x => x.OptionalMinCredit)
  100. </td>
  101. </tr>
  102. <tr>
  103. <td>
  104. <label>
  105. 任选课:</label>
  106. </td>
  107. <td style="background-color: white;">
  108. @Html.DisplayFor(x => x.FreeSelectCourseStartTime)
  109. </td>
  110. <td style="background-color: white;">
  111. @Html.DisplayFor(x => x.FreeSelectCourseEndTime)
  112. </td>
  113. <td style="background-color: white;">
  114. @Html.DisplayFor(x => x.FreeSelectCourseMaxSelectCount)
  115. </td>
  116. <td style="background-color: white;">
  117. @Html.DisplayFor(x => x.FreeSelectCourseMinSelectCount)
  118. </td>
  119. <td style="background-color: white;">
  120. @Html.DisplayFor(x => x.FreeSelectCourseMaxCredit)
  121. </td>
  122. <td style="background-color: white;">
  123. @Html.DisplayFor(x => x.FreeSelectCourseMinCredit)
  124. </td>
  125. </tr>
  126. @*<tr>
  127. <td>
  128. <label>
  129. 班级限制:</label>
  130. </td>
  131. <td style="background-color: white;">
  132. @Html.DisplayFor(x => x.GrademajorStartTime)
  133. </td>
  134. <td style="background-color: white;">
  135. @Html.DisplayFor(x => x.GrademajorEndTime)
  136. </td>
  137. <td style="background-color: white;">
  138. @Html.DisplayFor(x => x.GrademajorMaxSelectCount)
  139. </td>
  140. <td style="background-color: white;">
  141. @Html.DisplayFor(x => x.GrademajorMinSelectCount)
  142. </td>
  143. <td style="background-color: white;">
  144. @Html.DisplayFor(x => x.GrademajorMaxCredit)
  145. </td>
  146. <td style="background-color: white;">
  147. @Html.DisplayFor(x => x.GrademajorMinCredit)
  148. </td>
  149. </tr>*@
  150. </table>
  151. </div>
  152. <div class="p_title">
  153. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  154. 选课信息列表
  155. </div>
  156. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  157. </div>
  158. <div class="search_list">
  159. @Html.DataGrid(new DataGridOptions
  160. {
  161. Columns = new List<DataGridColumn>()
  162. {
  163. new BoundFieldColumn { FieldName="ID", HeaderText="", Align=AlignStyle.Center, IsHidden=true },
  164. new LinkButtonColumn { FieldName="OperateText", HeaderText="操作", Align=AlignStyle.Center, Handle="selectCourseClick", Width=0.05, IsHidden=ViewBag.IsHidden },
  165. //new BoundFieldColumn { FieldName="ClassName", HeaderText="选修任务班名称", Align=AlignStyle.Center, Width=0.12 },
  166. new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center, Width=0.1 },
  167. new BoundFieldColumn { FieldName="SelectCourseTypeName", HeaderText="选修类型", Align=AlignStyle.Center, Width=0.05 },
  168. new BoundFieldColumn { FieldName="Credit", HeaderText="学分", Align=AlignStyle.Center, Width=0.03 },
  169. new BoundFieldColumn { FieldName="PeopleNumlimit", HeaderText="人数上限", Align=AlignStyle.Center, Width=0.04 },
  170. new BoundFieldColumn { FieldName="StartEndWeeklyNum", HeaderText="起止周次", Align=AlignStyle.Center, Width=0.06 },
  171. new BoundFieldColumn { FieldName="WeekdayTimesSegmentName", HeaderText="上课时间", Align=AlignStyle.Center, Width=0.1 },
  172. new BoundFieldColumn { FieldName="StartTimeStr", HeaderText="选课开始时间", Align=AlignStyle.Center, Width=0.1 },
  173. new BoundFieldColumn { FieldName="EndTimeStr", HeaderText="选课结束时间", Align=AlignStyle.Center, Width=0.1 },
  174. new BoundFieldColumn { FieldName="TeacherNames", HeaderText="任课教师", Align=AlignStyle.Center, Width=0.06 },
  175. new BoundFieldColumn { FieldName="ClassroomName", HeaderText="上课教室", Align=AlignStyle.Center, Width=0.05 },
  176. new BoundFieldColumn { FieldName="StudentCount", HeaderText="已选人数", Align=AlignStyle.Center, Width=0.04 }
  177. //new BoundFieldColumn { FieldName="WeekdayName", HeaderText="上课星期", Align=AlignStyle.Center, Width=0.05 },
  178. //new BoundFieldColumn { FieldName="TimesSegmentName", HeaderText="上课时间", Align=AlignStyle.Center, Width=0.05 },
  179. //new BoundFieldColumn { FieldName="campus", HeaderText="校区", Align=AlignStyle.Center, Width=0.06 },
  180. //new OperateColumn { ButtonList = new List<OperateButton>() {
  181. // new OperateButton { Text = "选课", Handle = "selectCourse", VisibleFun = "!row.IsSelected" },
  182. // new OperateButton { Text = "取消选课", Handle = "cancelSelectCourse", VisibleFun = "row.IsSelected" }
  183. //} }
  184. },
  185. //IsShow = ((!Model.GrademajorStartTime.HasValue && !Model.GrademajorEndTime.HasValue) || (Model.GrademajorStartTime <= DateTime.Now && Model.GrademajorEndTime >= DateTime.Now)),
  186. IsCheckOnSelect = true,
  187. DataSourceUrl = Url.Content("~/StudentSelectCourse/List"),
  188. ID = "dgStudentSelectCourseList",
  189. IsPagination = false,
  190. IsShowRowNumbers = true,
  191. IsSingleSelect = false
  192. })
  193. </div>
  194. </div>