|
|
@@ -1151,6 +1151,51 @@ where StuNo not in(Select StuNo from stuscore s where s.Academicyearno = sl.Acad |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
/// <summary> |
|
|
|
/// 班级下拉框【成绩录入】 |
|
|
|
/// </summary> |
|
|
|
/// <param name="userAccount"></param> |
|
|
|
/// <param name="userType"></param> |
|
|
|
/// <param name="lessonNo"></param> |
|
|
|
/// <param name="academicYearShort"></param> |
|
|
|
/// <param name="semester"></param> |
|
|
|
/// <returns></returns> |
|
|
|
public IEnumerable<WebHelper.YearGrade> GetClassNoDataForInput(string userAccount, string userType, string lessonNo, string academicYearShort, string semester) |
|
|
|
{ |
|
|
|
try |
|
|
|
{ |
|
|
|
var strSql = new StringBuilder(); |
|
|
|
strSql.Append("select distinct s.ClassNo as value,c.ClassName as text from stuscore s inner join ClassInfo c on s.ClassNo=c.ClassNo where s.LessonSortNo='1' "); |
|
|
|
if (userType == "教师") |
|
|
|
{ |
|
|
|
strSql.Append(" and s.EmpNo='" + userAccount + "' "); |
|
|
|
} |
|
|
|
|
|
|
|
if (!string.IsNullOrEmpty(academicYearShort)) |
|
|
|
{ |
|
|
|
strSql.Append(" and s.AcademicYearNo='" + academicYearShort + "' and s.Semester='" + semester + "' "); |
|
|
|
} |
|
|
|
if (!string.IsNullOrEmpty(lessonNo)) |
|
|
|
{ |
|
|
|
strSql.Append(" and s.LessonNo='" + lessonNo + "' "); |
|
|
|
} |
|
|
|
var data = this.BaseRepository("CollegeMIS").FindList<WebHelper.YearGrade>(strSql.ToString()); |
|
|
|
data = data.Where(x => !string.IsNullOrEmpty(x.value)).OrderBy(x => x.value); |
|
|
|
return data; |
|
|
|
} |
|
|
|
catch (Exception ex) |
|
|
|
{ |
|
|
|
if (ex is ExceptionEx) |
|
|
|
{ |
|
|
|
throw; |
|
|
|
} |
|
|
|
else |
|
|
|
{ |
|
|
|
throw ExceptionEx.ThrowServiceException(ex); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
/// <summary> |
|
|
|
/// 教师下拉框信息【学生成绩录入可去审核】 |
|
|
|
/// </summary> |
|
|
@@ -2223,7 +2268,7 @@ where StuNo not in(Select StuNo from stuscore s where s.Academicyearno = sl.Acad |
|
|
|
var classInfoList = db.FindList<ClassInfoEntity>(); |
|
|
|
var lessonInfoList = db.FindList<LessonInfoEntity>(); |
|
|
|
var classInfoEntity = classInfoList.FirstOrDefault(x => x.ClassNo == ClassNo); |
|
|
|
var lessonInfoEntity = lessonInfoList.FirstOrDefault(x => x.LessonNo == LessonNo); |
|
|
|
var lessonInfoEntity = lessonInfoList.FirstOrDefault(x => x.LessonNo == LessonNo && x.CheckMark == true); |
|
|
|
|
|
|
|
if (classInfoEntity != null) |
|
|
|
{ |
|
|
|