|
|
@@ -298,8 +298,9 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration |
|
|
|
,[EROrder] |
|
|
|
,[EREnabled] |
|
|
|
,[IsEdit] |
|
|
|
,[ActualNum] |
|
|
|
) |
|
|
|
select NEWID(),'{AcademicYearNo}','{Semester}',ClassroomName,[ClassroomNo],{SeatRows},{SeatColumns},{SeatRows}*{SeatColumns},0,1,1 from ClassroomInfo where CheckMark=1 |
|
|
|
select NEWID(),'{AcademicYearNo}','{Semester}',ClassroomName,[ClassroomNo],{SeatRows},{SeatColumns},{SeatRows}*{SeatColumns},0,1,1,{SeatRows}*{SeatColumns} from ClassroomInfo where CheckMark=1 |
|
|
|
and [ClassroomNo] not in (select [ClassroomNo] from Exam_ExamRoom where AcademicYearNo='{AcademicYearNo}' and Semester='{Semester}' ) |
|
|
|
"; |
|
|
|
return this.BaseRepository("CollegeMIS").ExecuteBySql(sql); |
|
|
@@ -327,7 +328,7 @@ select NEWID(),'{AcademicYearNo}','{Semester}',ClassroomName,[ClassroomNo],{Seat |
|
|
|
{ |
|
|
|
try |
|
|
|
{ |
|
|
|
string sql = $"delete Exam_ExamRoom where AcademicYearNo='{AcademicYearNo}' and Semester='{Semester}' and IsEdit = 'true';delete Exam_ExamRoomdetail where AcademicYearNo ='" + AcademicYearNo + "' and Semester='" + Semester + "' and IsEdit = 1 ;"; |
|
|
|
string sql = $"delete Exam_ExamRoom where AcademicYearNo='{AcademicYearNo}' and Semester='{Semester}' and IsEdit = 'true';delete Exam_ExamRoomdetail where AcademicYearNo ='" + AcademicYearNo + "' and Semester='" + Semester + "' and EcEnabled = 1 ;"; |
|
|
|
return this.BaseRepository("CollegeMIS").ExecuteBySql(sql); |
|
|
|
} |
|
|
|
catch (Exception ex) |
|
|
|