Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Exam_ExamPlanLesson/FormRoomTeacher.jsVoir le fichier
@@ -135,6 +135,7 @@ var bootstrap = function ($, learun) {
$("#ClassroomName").val(temprow.ClassroomName);
$('#ClassroomNo').val(temprow.ClassroomNo);
$('#ActualNum').val(temprow.ActualNum);
$('#SeatCount').val(temprow.SeatCount);
}
});
};
+ 43- 3
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/Exam_ExamPlan/Exam_ExamPlanService.csVoir le fichier
var Entity = this.BaseRepository("CollegeMIS").FindEntity<Exam_ExamPlanEntity>(keyValue);
this.BaseRepository("CollegeMIS").ExecuteBySql($"update Exam_ExamRoom set isedit =1 where AcademicYearNo='{Entity.AcademicYearNo}' and Semester='{Entity.Semester}' ");
@@ -396,8 +408,35 @@ delete from Exam_ExamPlanRoom where EPLId in ('{planLessonIds}');");
string stuSql = $"select * from Exam_ExamStudent where ESEnabled=1 and AcademicYearNo='{examPlan.AcademicYearNo}' and Semester='{examPlan.Semester}' and ESType='{examPlan.PlanType}' and classno in ('{classnos}') and stuno not in (select StuNo from Exam_ArrangeExamTermItemNew where EPId='{keyValue}' and LessonNo='{planLesson.LessonNo}')";
//所有考生
var stuInfoList = db.FindList<Exam_ExamStudentEntity>(stuSql).ToList();
//从此获取到 同学年学期考场禁用+本次考试并且可以做编号
var DisableNumber = db.FindList<Exam_ExamRoomDetailEntity>
if (DisableNumber[i].ECSOrder == newitemList[j].SitNumber && DisableNumber[i].ClassRoomNo == newitemList[j].ClassroomNo)
{
itemList.Add(newitemList[j]);
s = s + 1;
}
}
}
}
var a = s;
if (itemList.Count >= stuInfoList.Count())
{
//随机安排座位
@@ -507,6 +546,7 @@ delete from Exam_ExamPlanRoom where EPLId in ('{planLessonIds}');");
entity.EPStuCount = 0;
this.BaseRepository("CollegeMIS").Insert(entity);
}
this.BaseRepository("CollegeMIS").ExecuteBySql($"update Exam_ExamRoom set isedit =0 where AcademicYearNo='{entity.AcademicYearNo}' and Semester='{entity.Semester}' ");
}
catch (Exception ex)
{
+ 1- 1
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/Exam_ExamPlanRoom/Exam_ExamPlanRoomEntity.csVoir le fichier
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/Exam_ExamPlanRoom/Exam_ExamPlanRoomService.csVoir le fichier
@@ -341,8 +341,9 @@ where l.EPLId='{EPLId}'";
}
//考场座位数
int? seatCount = 0;
var roomListSql =
int? seatCount = 0;
int? ActualNum = 0;
var roomListSql =
$"select * from Exam_ExamRoom where AcademicYearNo='{examPlan.AcademicYearNo}' and Semester='{examPlan.Semester}' and EREnabled=1 ";
if (conflictRoom.Count() > 0)
{
@@ -364,18 +365,20 @@ where l.EPLId='{EPLId}'";
EPRoom.EPLId = examLesson.EPLId;
EPRoom.ClassroomName = room.ClassroomName;
EPRoom.ClassroomNo = room.ClassroomNo;
EPRoom.SeatCount = room.ActualNum;
EPRoom.SeatCount = room.SeatCount;
EPRoom.ActualNum = room.ActualNum;
db.Insert(EPRoom);
seatCount += room.ActualNum;
seatCount += room.SeatCount;
ActualNum += room.ActualNum;
room.IsEdit = false;
if (seatCount >= examLesson.RealStuCount)
if (ActualNum >= examLesson.RealStuCount)
{
break;
}
}
db.Update(examRoomList);
db.ExecuteBySql(
$"update Exam_ExamPlanLesson set SeatCount='{seatCount}' where EPLId='{examLesson.EPLId}'");
$"update Exam_ExamPlanLesson set SeatCount='{seatCount}',SeatCount='{seatCount}'ActualNum='{ActualNum}' where EPLId='{examLesson.EPLId}'");
}
}
+ 6- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/Exam_ExamRoomDetail/Exam_ExamRoomDetailEntity.csVoir le fichier