123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102 |
- @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";
- $(function () {
- mnu = $.SystemGeneral.getUrlParam("MNU");
- });
- function selectCourseClick(index, row) {
- $(event.srcElement).attr("disabled", "disabled");
- if (row.IsSelected) {
- cancelSelectCourse(row.SelectCourseTypeID, row.CoursematerialID, row.CourseName, row.TeacherIDs, $(event.srcElement));
- } else {
- selectCourse(row.SelectCourseTypeID, row.CoursematerialID, row.CourseName, row.TeacherIDs, $(event.srcElement));
- }
- }
- function cancelSelectCourse(selectCourseTypeID, coursematerialID, courseName, teacherIDs, control) {
- $.messager.confirm("系统提示", "是否确定取消修读" + courseName + "?",
- function (r) {
- if (r) {
- $.post(CMS_SystemConfig.VirtualDirectoryPath + '/StudentSelectCourse/CancelSelectCourse', {
- grademajorID: $("#GrademajorID").val(),
- coursematerialID: coursematerialID,
- selectCourseTypeID: selectCourseTypeID,
- teacherIDs: teacherIDs
- }, function (data) {
- if (data.IsSuccess) {
- $.messager.alert("系统提示", "取消成功。");
- location.reload(true);
- } else {
- $.messager.alert("系统提示", data.Message);
- }
- control.removeAttr("disabled");
- }
- );
- } else {
- control.removeAttr("disabled");
- }
- });
- }
- function reload() {
- $("#dgStudentSelectCourseList").cmsXDataTable("load", $.getDataGridParams("dgStudentSelectCourseList"));
- }
- </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="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="SchoolYearCode", HeaderText="学年学期", Align=AlignStyle.Center, Width=0.06 },
- //new BoundFieldColumn { FieldName="CourseName", HeaderText="课程名称", Align=AlignStyle.Center, OverflowLength=18, Width=0.14 },
- //new BoundFieldColumn { FieldName="Credit", HeaderText="学分", Align=AlignStyle.Center, Width=0.03 },
- //new BoundFieldColumn { FieldName="DefaultClassName", HeaderText="课程班级", Align=AlignStyle.Center, OverflowLength=20, Width=0.16 },
- //new BoundFieldColumn { FieldName="SelectCourseTypeName", HeaderText="课程类型", Align=AlignStyle.Center, OverflowLength=12, Width=0.1 },
- //new BoundFieldColumn { FieldName="PeopleNumlimit", HeaderText="人数上限", Align=AlignStyle.Center, Width=0.06 },
- //new BoundFieldColumn { FieldName="StudentCount", HeaderText="已选人数", Align=AlignStyle.Center, Width=0.06 },
- //new BoundFieldColumn { FieldName="TeacherNames", HeaderText="任课教师", Align=AlignStyle.Center, Width=0.12 },
- //new BoundFieldColumn { FieldName="IsNeedMaterialName", HeaderText="是否需要教材", Align=AlignStyle.Center },
- //new BoundFieldColumn { FieldName="", HeaderText="教材名称", Align=AlignStyle.Center },
- //new BoundFieldColumn { FieldName="WeeklyNum", HeaderText="周次", Align=AlignStyle.Center },
- //new BoundFieldColumn { FieldName="CoursesTimeName", HeaderText="上课时间", Align=AlignStyle.Center },
- //new BoundFieldColumn { FieldName="ClassroomName", HeaderText="上课教室", Align=AlignStyle.Center },
- //new BoundFieldColumn { FieldName="CampusName", HeaderText="校区", Align=AlignStyle.Center },
- //new BoundFieldColumn { FieldName="", HeaderText="报修时间", Align=AlignStyle.Center }
- 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="StartEndWeeklyNum", HeaderText="起止周次", Align=AlignStyle.Center, Width=0.06 },
- new BoundFieldColumn { FieldName="WeekdayTimesSegmentName", 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="RecordStatusName", HeaderText="状态", Align=AlignStyle.Center, Width=0.04 }
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/StudentSelectCourse/SelectedList"),
- ID = "dgStudentSelectCourseList",
- IsPagination = false,
- IsShowRowNumbers = true,
- IsSingleSelect = false
- })
- </div>
- </div>
|