Browse Source

【修改】班级开课计划:强制设置录成绩教师时更新教师成绩单表;

新疆警官学校中职
dyy 1 month ago
parent
commit
e03ec451df
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuScore/StuScoreService.cs

+ 3
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuScore/StuScoreService.cs View File

@@ -1984,6 +1984,9 @@ where StuNo not in(Select StuNo from stuscore s where s.Academicyearno = sl.Acad
StringBuilder sb = new StringBuilder();
sb.Append(" update StuScore set EmpNo ='" + EmpNo + "' where classno = '" + classNo + "' and Semester ='" + xq + "' and AcademicYearNo ='" + xn + "' and LessonNo ='" + LessonNo + "' and empno = '" + hisempno + "' and Grade='" + Grade + "' and LessonSortNo='" + LessonSortNo + "' ");
this.BaseRepository("CollegeMIS").ExecuteBySql(sb.ToString());
//教师成绩单
var str = $"update EmpReportCard set EmpNo='{EmpNo}',EmpName=(select EmpName from EmpInfo where EmpNo='{EmpNo}') where AcademicYearNo='{xn}' and Semester='{xq}' and LessonNo='{LessonNo}' and ClassNo='{classNo}' and EmpNo='{hisempno}' and LessonSortNo='{LessonSortNo}' ";
this.BaseRepository("CollegeMIS").ExecuteBySql(str);
}
catch (Exception ex)
{


Loading…
Cancel
Save