Parcourir la source

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

新疆警官学校中职
dyy il y a 1 mois
Parent
révision
e03ec451df
1 fichiers modifiés avec 3 ajouts et 0 suppressions
  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 Voir le fichier

@@ -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)
{


Chargement…
Annuler
Enregistrer