123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196 |
- @model EMIS.ViewModel.SelectCourse.SelectCourseResult.StudentSelectCourseSummaryView
- @using Bowin.Web.Controls.Mvc;
- @using EMIS.Web.Controls;
- @{
- ViewBag.Title = "List";
-
- }
- @section scripts{
- <script src="~/Scripts/Business/SelectCourseManage/StudentSelectCourse.js" type="text/javascript"></script>
- <script type="text/javascript">
- var nonSelect = "@DropdownList.SELECT_ALL";
- var StartTime = "@Model.GrademajorStartTime";
- var EndTime = "@Model.GrademajorEndTime";
- var Now = "@DateTime.Now"
- </script>
- }
- <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
- @Html.Position()
- <div class="p_SearchTitle">
- <div style="float: left; margin-left: 10px; font-size: 12px; line-height: 30px;">
- 查询条件
- </div>
- </div>
- <div class="normalContent">
- @Html.HiddenFor(x => x.GrademajorID, new { id = "GrademajorID" })
- <table cellpadding="0" cellspacing="0" width="98%">
- <tr>
- <td width="50">@Html.LabelFor(x => x.Name):
- </td>
- <td style="background-color: white; width: 80px">@Html.DisplayFor(x => x.Name)
- </td>
- <td width="50">@Html.LabelFor(x => x.ClassmajorName):
- </td>
- <td style="background-color: white; width: 300px">@Html.DisplayFor(x => x.ClassmajorName)
- </td>
- <td width="50">@Html.LabelFor(x => x.OptionalTotalSelectCount):
- </td>
- <td style="background-color: white; width: 50px">@Html.DisplayFor(x => x.OptionalTotalSelectCount)
- </td>
- <td width="50">@Html.LabelFor(x => x.OptionalTotalCredit):
- </td>
- <td style="background-color: white; width: 50px">@Html.DisplayFor(x => x.OptionalTotalCredit)
- </td>
- <td width="50">@Html.LabelFor(x => x.FreeSelectCourseTotalSelectCount):
- </td>
- <td style="background-color: white; width: 50px">@Html.DisplayFor(x => x.FreeSelectCourseTotalSelectCount)
- </td>
- <td width="50">@Html.LabelFor(x => x.FreeSelectCourseTotalCredit):
- </td>
- <td style="background-color: white; width: 50px">@Html.DisplayFor(x => x.FreeSelectCourseTotalCredit)
- </td>
- </tr>
- </table>
- <table cellpadding="0" cellspacing="0" width="98%">
- <tr>
- <td width="120">
- <label>
- </label>
- </td>
- <td style="text-align: center">
- @Html.LabelFor(x => x.OptionalStartTime)
- </td>
- <td style="text-align: center">
- @Html.LabelFor(x => x.OptionalEndTime)
- </td>
- <td style="text-align: center">
- @Html.LabelFor(x => x.OptionalMaxSelectCount)
- </td>
- <td style="text-align: center">
- @Html.LabelFor(x => x.OptionalMinSelectCount)
- </td>
- <td style="text-align: center">
- @Html.LabelFor(x => x.OptionalMaxCredit)
- </td>
- <td style="text-align: center">
- @Html.LabelFor(x => x.OptionalMinCredit)
- </td>
- </tr>
- <tr>
- <td>
- <label>
- 限选课:</label>
- </td>
- <td style="background-color: white;">
- @Html.DisplayFor(x => x.OptionalStartTime)
- </td>
- <td style="background-color: white;">
- @Html.DisplayFor(x => x.OptionalEndTime)
- </td>
- <td style="background-color: white;">
- @Html.DisplayFor(x => x.OptionalMaxSelectCount)
- </td>
- <td style="background-color: white;">
- @Html.DisplayFor(x => x.OptionalMinSelectCount)
- </td>
- <td style="background-color: white;">
- @Html.DisplayFor(x => x.OptionalMaxCredit)
- </td>
- <td style="background-color: white;">
- @Html.DisplayFor(x => x.OptionalMinCredit)
- </td>
- </tr>
- <tr>
- <td>
- <label>
- 任选课:</label>
- </td>
- <td style="background-color: white;">
- @Html.DisplayFor(x => x.FreeSelectCourseStartTime)
- </td>
- <td style="background-color: white;">
- @Html.DisplayFor(x => x.FreeSelectCourseEndTime)
- </td>
- <td style="background-color: white;">
- @Html.DisplayFor(x => x.FreeSelectCourseMaxSelectCount)
- </td>
- <td style="background-color: white;">
- @Html.DisplayFor(x => x.FreeSelectCourseMinSelectCount)
- </td>
- <td style="background-color: white;">
- @Html.DisplayFor(x => x.FreeSelectCourseMaxCredit)
- </td>
- <td style="background-color: white;">
- @Html.DisplayFor(x => x.FreeSelectCourseMinCredit)
- </td>
- </tr>
- @*<tr>
- <td>
- <label>
- 班级限制:</label>
- </td>
- <td style="background-color: white;">
- @Html.DisplayFor(x => x.GrademajorStartTime)
- </td>
- <td style="background-color: white;">
- @Html.DisplayFor(x => x.GrademajorEndTime)
- </td>
- <td style="background-color: white;">
- @Html.DisplayFor(x => x.GrademajorMaxSelectCount)
- </td>
- <td style="background-color: white;">
- @Html.DisplayFor(x => x.GrademajorMinSelectCount)
- </td>
- <td style="background-color: white;">
- @Html.DisplayFor(x => x.GrademajorMaxCredit)
- </td>
- <td style="background-color: white;">
- @Html.DisplayFor(x => x.GrademajorMinCredit)
- </td>
- </tr>*@
- </table>
- </div>
- <div class="p_title">
- <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
- 选课信息列表
- </div>
- <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
- </div>
- <div class="search_list">
- @Html.DataGrid(new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new BoundFieldColumn { FieldName="ID", HeaderText="", Align=AlignStyle.Center, IsHidden=true },
- new LinkButtonColumn { FieldName="OperateText", HeaderText="操作", Align=AlignStyle.Center, Handle="selectCourseClick", Width=0.05, IsHidden=ViewBag.IsHidden },
- //new BoundFieldColumn { FieldName="ClassName", HeaderText="选修任务班名称", Align=AlignStyle.Center, Width=0.12 },
- new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center, Width=0.1 },
- new BoundFieldColumn { FieldName="SelectCourseTypeName", HeaderText="选修类型", Align=AlignStyle.Center, Width=0.05 },
- new BoundFieldColumn { FieldName="Credit", HeaderText="学分", Align=AlignStyle.Center, Width=0.03 },
- new BoundFieldColumn { FieldName="PeopleNumlimit", HeaderText="人数上限", Align=AlignStyle.Center, Width=0.04 },
- new BoundFieldColumn { FieldName="StartEndWeeklyNum", HeaderText="起止周次", Align=AlignStyle.Center, Width=0.06 },
- new BoundFieldColumn { FieldName="WeekdayTimesSegmentName", HeaderText="上课时间", Align=AlignStyle.Center, Width=0.1 },
- new BoundFieldColumn { FieldName="StartTimeStr", HeaderText="选课开始时间", Align=AlignStyle.Center, Width=0.1 },
- new BoundFieldColumn { FieldName="EndTimeStr", HeaderText="选课结束时间", Align=AlignStyle.Center, Width=0.1 },
- new BoundFieldColumn { FieldName="TeacherNames", HeaderText="任课教师", Align=AlignStyle.Center, Width=0.06 },
- new BoundFieldColumn { FieldName="ClassroomName", HeaderText="上课教室", Align=AlignStyle.Center, Width=0.05 },
- new BoundFieldColumn { FieldName="StudentCount", HeaderText="已选人数", Align=AlignStyle.Center, Width=0.04 }
- //new BoundFieldColumn { FieldName="WeekdayName", HeaderText="上课星期", Align=AlignStyle.Center, Width=0.05 },
- //new BoundFieldColumn { FieldName="TimesSegmentName", HeaderText="上课时间", Align=AlignStyle.Center, Width=0.05 },
- //new BoundFieldColumn { FieldName="campus", HeaderText="校区", Align=AlignStyle.Center, Width=0.06 },
- //new OperateColumn { ButtonList = new List<OperateButton>() {
- // new OperateButton { Text = "选课", Handle = "selectCourse", VisibleFun = "!row.IsSelected" },
- // new OperateButton { Text = "取消选课", Handle = "cancelSelectCourse", VisibleFun = "row.IsSelected" }
- //} }
- },
-
- //IsShow = ((!Model.GrademajorStartTime.HasValue && !Model.GrademajorEndTime.HasValue) || (Model.GrademajorStartTime <= DateTime.Now && Model.GrademajorEndTime >= DateTime.Now)),
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/StudentSelectCourse/List"),
- ID = "dgStudentSelectCourseList",
- IsPagination = false,
- IsShowRowNumbers = true,
- IsSingleSelect = false
- })
- </div>
- </div>
|