|
|
@@ -2203,6 +2203,34 @@ and p.ExamType='1'"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
/// <summary> |
|
|
|
/// 保存实体数据(新增、修改) |
|
|
|
/// <param name="keyValue">主键</param> |
|
|
|
/// <summary> |
|
|
|
/// <returns></returns> |
|
|
|
public void UpEmpNos(string xn, string xq, string classNo, string LessonNo, string EmpNo, string hisempno, string Grade, string LessonSortNo) |
|
|
|
{ |
|
|
|
try |
|
|
|
{ |
|
|
|
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) |
|
|
|
{ |
|
|
|
if (ex is ExceptionEx) |
|
|
|
{ |
|
|
|
throw; |
|
|
|
} |
|
|
|
else |
|
|
|
{ |
|
|
|
throw ExceptionEx.ThrowServiceException(ex); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|