|
@@ -986,7 +986,7 @@ WHERE (AcademicYearNo = '" + strAcademicYear + "') and semester='" + strSemest |
|
|
LEFT JOIN tb_teacher t ON t.id =a.`teacherid` |
|
|
LEFT JOIN tb_teacher t ON t.id =a.`teacherid` |
|
|
LEFT JOIN tb_curriculum cu ON cu.id=a.`curriculunid` |
|
|
LEFT JOIN tb_curriculum cu ON cu.id=a.`curriculunid` |
|
|
LEFT JOIN tb_semester s ON s.id=a.`semester` |
|
|
LEFT JOIN tb_semester s ON s.id=a.`semester` |
|
|
WHERE 1=1 AND s.year = '" + entity.AcademicYearNo + "' AND s.number ='" + entity.Semester + "'"); |
|
|
|
|
|
|
|
|
WHERE 1=1 AND s.year = '" + entity.AcademicYearNo + "' AND s.number ='" + entity.Semester + "' AND c.number IS NOT NULL "); |
|
|
if (LessonList.Count() > 0) |
|
|
if (LessonList.Count() > 0) |
|
|
{ |
|
|
{ |
|
|
var oldArrangeLessonTermList = (await BaseRepository("CollegeMIS").FindListAsync<ArrangeLessonTermEntity>()).ToList(); |
|
|
var oldArrangeLessonTermList = (await BaseRepository("CollegeMIS").FindListAsync<ArrangeLessonTermEntity>()).ToList(); |
|
@@ -1084,7 +1084,7 @@ WHERE (AcademicYearNo = '" + strAcademicYear + "') and semester='" + strSemest |
|
|
LEFT JOIN tb_teacher teacher ON teacher.id = a.teacher |
|
|
LEFT JOIN tb_teacher teacher ON teacher.id = a.teacher |
|
|
WHERE semester.year = '" + entity.AcademicYearNo |
|
|
WHERE semester.year = '" + entity.AcademicYearNo |
|
|
+ "' AND semester.number = '" |
|
|
+ "' AND semester.number = '" |
|
|
+ entity.Semester + "'"); |
|
|
|
|
|
|
|
|
+ entity.Semester + "' and a.type='1' "); |
|
|
var TeachClassData = (await BaseRepository("CollegeMIS").FindListAsync<TeachClassEntity>(@"SELECT * |
|
|
var TeachClassData = (await BaseRepository("CollegeMIS").FindListAsync<TeachClassEntity>(@"SELECT * |
|
|
FROM TeachClass |
|
|
FROM TeachClass |
|
|
WHERE (AcademicYearNo = '" + entity.AcademicYearNo + "') and semester='" + entity.Semester + "' and F_SchoolId='" + entity.F_SchoolId + "' ")).ToList(); |
|
|
WHERE (AcademicYearNo = '" + entity.AcademicYearNo + "') and semester='" + entity.Semester + "' and F_SchoolId='" + entity.F_SchoolId + "' ")).ToList(); |
|
@@ -1173,7 +1173,7 @@ WHERE (AcademicYearNo = '" + strAcademicYear + "') and semester='" + strSemest |
|
|
LEFT JOIN tb_course cour ON cour.id= p.`course` |
|
|
LEFT JOIN tb_course cour ON cour.id= p.`course` |
|
|
LEFT JOIN tb_curriculum curr ON curr.id=cour.`course` |
|
|
LEFT JOIN tb_curriculum curr ON curr.id=cour.`course` |
|
|
WHERE s.year = '" + entity.AcademicYearNo + "' AND s.number = '" + entity.Semester |
|
|
WHERE s.year = '" + entity.AcademicYearNo + "' AND s.number = '" + entity.Semester |
|
|
+ "' AND sc.sid = '" + entity.F_SchoolId + "' ORDER BY p.`major` "); |
|
|
|
|
|
|
|
|
+ "' AND sc.sid = '" + entity.F_SchoolId + "' AND curr.`ification` ='1' ORDER BY p.`major` "); |
|
|
var majorData = (await BaseRepository("CollegeMIS").FindListAsync<CdMajorEntity>()).ToList(); |
|
|
var majorData = (await BaseRepository("CollegeMIS").FindListAsync<CdMajorEntity>()).ToList(); |
|
|
var lessonData = (await BaseRepository("CollegeMIS").FindListAsync<LessonInfoEntity>()).ToList(); |
|
|
var lessonData = (await BaseRepository("CollegeMIS").FindListAsync<LessonInfoEntity>()).ToList(); |
|
|
if (TeachList.Count() > 0) |
|
|
if (TeachList.Count() > 0) |
|
|