@@ -294,6 +294,7 @@ var bootstrap = function ($, learun) { | |||||
url: top.$.rootUrl + '/EducationalAdministration/Exam_ExamTeacherTime/Index', | url: top.$.rootUrl + '/EducationalAdministration/Exam_ExamTeacherTime/Index', | ||||
width: 1000, | width: 1000, | ||||
height: 600, | height: 600, | ||||
btn: null, | |||||
callBack: function (id) { | callBack: function (id) { | ||||
return top[id].acceptClick(refreshGirdData); | return top[id].acceptClick(refreshGirdData); | ||||
} | } | ||||
@@ -92,7 +92,7 @@ var bootstrap = function ($, learun) { | |||||
page.search(); | page.search(); | ||||
}; | }; | ||||
// 保存数据 | // 保存数据 | ||||
acceptClick = function (callBack,i) { | |||||
acceptClick = function (callBack, i) { | |||||
var selectedRow = $('#gridtable').jfGridGet('rowdata'); | var selectedRow = $('#gridtable').jfGridGet('rowdata'); | ||||
if (selectedRow.length == 0) { | if (selectedRow.length == 0) { | ||||
return learun.alert.warning("请选择班级!"); | return learun.alert.warning("请选择班级!"); | ||||
@@ -4,7 +4,6 @@ | |||||
* 日 期:2022-06-13 15:41 | * 日 期:2022-06-13 15:41 | ||||
* 描 述:老师时间管理 | * 描 述:老师时间管理 | ||||
*/ | */ | ||||
var acceptClick; | |||||
var refreshGirdData; | var refreshGirdData; | ||||
var bootstrap = function ($, learun) { | var bootstrap = function ($, learun) { | ||||
"use strict"; | "use strict"; | ||||
@@ -143,11 +142,5 @@ var bootstrap = function ($, learun) { | |||||
refreshGirdData = function () { | refreshGirdData = function () { | ||||
$('#gridtable').jfGridSet('reload'); | $('#gridtable').jfGridSet('reload'); | ||||
}; | }; | ||||
acceptClick = function(callBack) { | |||||
if (!!callBack) { | |||||
learun.layerClose(window.name); | |||||
callBack(); | |||||
} | |||||
}; | |||||
page.init(); | page.init(); | ||||
} | } |
@@ -266,7 +266,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||||
,[LessonNo] | ,[LessonNo] | ||||
,[ELOrder] | ,[ELOrder] | ||||
,[ELEnabled],ExamTime,LessonTypeId,DeptNo,MajorNo) | ,[ELEnabled],ExamTime,LessonTypeId,DeptNo,MajorNo) | ||||
select NEWID(),AcademicYearNo,t.Semester,Grade,t.LessonName,t.[LessonNo],0,1,'{ExamTime}',a.lessontypeid,t.DeptNo,t.MajorNo from OpenLessonPlan t | |||||
select NEWID(),AcademicYearNo,t.Semester,replace(Grade,'级','') Grade,t.LessonName,t.[LessonNo],0,1,'{ExamTime}',a.lessontypeid,t.DeptNo,t.MajorNo from OpenLessonPlan t | |||||
left join lessoninfo a on t.lessonno=a.lessonno | left join lessoninfo a on t.lessonno=a.lessonno | ||||
where t.ExamType='1' and t.lessonsortno=1 and t.AcademicYearNo='{AcademicYearNo}' and t.Semester='{Semester}' | where t.ExamType='1' and t.lessonsortno=1 and t.AcademicYearNo='{AcademicYearNo}' and t.Semester='{Semester}' | ||||
and t.[LessonNo] not in (select [LessonNo] from Exam_ExamLesson where AcademicYearNo='{AcademicYearNo}' and Semester='{Semester}' ) | and t.[LessonNo] not in (select [LessonNo] from Exam_ExamLesson where AcademicYearNo='{AcademicYearNo}' and Semester='{Semester}' ) | ||||
@@ -265,6 +265,15 @@ and examtime is not null and datediff(day, examdate, '{examPlanLesson.ExamDate}' | |||||
//{ | //{ | ||||
// entity.ClassStuNum = stuinfo.Count(x => x.ClassNo == entity.ClassNo); | // entity.ClassStuNum = stuinfo.Count(x => x.ClassNo == entity.ClassNo); | ||||
//} | //} | ||||
var classList = this.BaseRepository("CollegeMIS").FindList<ClassInfoEntity>(x => x.CheckMark == true); | |||||
if (list.Exists(x => string.IsNullOrEmpty(x.ClassName))) | |||||
{ | |||||
foreach (var item in list.Where(x => string.IsNullOrEmpty(x.ClassName)).ToList()) | |||||
{ | |||||
item.ClassName = classList.Where(x => x.ClassNo == item.ClassNo).FirstOrDefault().ClassName; | |||||
} | |||||
} | |||||
this.BaseRepository("CollegeMIS").Insert(list); | this.BaseRepository("CollegeMIS").Insert(list); | ||||
//更新排考安排课程表实排班级数、实排人数 | //更新排考安排课程表实排班级数、实排人数 | ||||
//排考安排课程表Id | //排考安排课程表Id | ||||