|
|
@@ -50,6 +50,11 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration |
|
|
|
dp.Add("Semester", queryParam["Semester"].ToString(), DbType.String); |
|
|
|
strSql.Append(" AND t.Semester = @Semester "); |
|
|
|
} |
|
|
|
if (!queryParam["ITEnabled"].IsEmpty()) |
|
|
|
{ |
|
|
|
dp.Add("ITEnabled", queryParam["ITEnabled"].ToString(), DbType.String); |
|
|
|
strSql.Append(" AND t.ITEnabled = @ITEnabled "); |
|
|
|
} |
|
|
|
if (!queryParam["EmpNo"].IsEmpty()) |
|
|
|
{ |
|
|
|
dp.Add("EmpNo", "%" + queryParam["EmpNo"].ToString() + "%", DbType.String); |
|
|
@@ -361,7 +366,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration |
|
|
|
,[EmpNo] |
|
|
|
,[ITOrder] |
|
|
|
,[ITEnabled]) |
|
|
|
select newid(),'{AcademicYearNo}','{Semester}',empname,empno,0,1 from empinfo where checkmark=1 |
|
|
|
select newid(),'{AcademicYearNo}','{Semester}',empname,empno,0,1 from empinfo where checkmark=1 and IsHasLesson=1 and IsInActiveStatus=1 |
|
|
|
and empno not in (select empno from Exam_InvigilateTeacher where AcademicYearNo='{AcademicYearNo}' and Semester='{Semester}') |
|
|
|
"; |
|
|
|
return this.BaseRepository("CollegeMIS").ExecuteBySql(sql); |
|
|
|