|
|
@@ -1083,11 +1083,11 @@ where StuNo not in(Select StuNo from stuscore s where s.Academicyearno = sl.Acad |
|
|
|
try |
|
|
|
{ |
|
|
|
var strSql = new StringBuilder(); |
|
|
|
//strSql.Append("select distinct s.LessonNo as value,s.LessonName as text from stuscore s where s.LessonSortNo='1' "); |
|
|
|
strSql.Append("select distinct s.LessonNo as value,s.LessonName as text from stuscore s where s.LessonSortNo='1' "); |
|
|
|
//只显示“公开课”类型的课程 |
|
|
|
strSql.Append("select distinct s.LessonNo as value,l.LessonName as text from stuscore s "); |
|
|
|
strSql.Append(" left join LessonInfo l on s.LessonNo=l.LessonNo left join CdLessonType t on l.LessonTypeId=t.LTId "); |
|
|
|
strSql.Append(" where s.LessonSortNo='1' and t.LessonTypeCode='OpenLesson' "); |
|
|
|
//strSql.Append("select distinct s.LessonNo as value,l.LessonName as text from stuscore s "); |
|
|
|
//strSql.Append(" left join LessonInfo l on s.LessonNo=l.LessonNo left join CdLessonType t on l.LessonTypeId=t.LTId "); |
|
|
|
//strSql.Append(" where s.LessonSortNo='1' and t.LessonTypeCode='OpenLesson' "); |
|
|
|
if (userType == "教师") |
|
|
|
{ |
|
|
|
strSql.Append(" and s.EmpNo='" + userAccount + "' "); |
|
|
|