|
@@ -795,6 +795,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration |
|
|
CheckMarkDept = "1", |
|
|
CheckMarkDept = "1", |
|
|
CheckMark = "1", |
|
|
CheckMark = "1", |
|
|
TestMark = 0, |
|
|
TestMark = 0, |
|
|
|
|
|
State = 0, |
|
|
F_SchoolId = item.schoolId |
|
|
F_SchoolId = item.schoolId |
|
|
}; |
|
|
}; |
|
|
if (openLessonPlanData.Count(m => m.AcademicYearNo == insertData.AcademicYearNo && |
|
|
if (openLessonPlanData.Count(m => m.AcademicYearNo == insertData.AcademicYearNo && |
|
@@ -838,14 +839,14 @@ WHERE (AcademicYearNo = '" + strAcademicYear + "') and semester='" + strSemest |
|
|
var insertDatastuselect = new StuSelectLessonListEntity(); |
|
|
var insertDatastuselect = new StuSelectLessonListEntity(); |
|
|
insertDatastuselect.NoticeBookNo = stu.NoticeNo; |
|
|
insertDatastuselect.NoticeBookNo = stu.NoticeNo; |
|
|
insertDatastuselect.StuNo = stu.StuNo; |
|
|
insertDatastuselect.StuNo = stu.StuNo; |
|
|
//insertDatastuselect.DeptNo = stu.DeptNo; |
|
|
|
|
|
|
|
|
insertDatastuselect.DeptNo = stu.DeptNo; |
|
|
insertDatastuselect.ClassNo = stu.ClassNo; |
|
|
insertDatastuselect.ClassNo = stu.ClassNo; |
|
|
insertDatastuselect.MajorNo = stu.MajorNo; |
|
|
insertDatastuselect.MajorNo = stu.MajorNo; |
|
|
insertDatastuselect.StuName = stu.StuName; |
|
|
insertDatastuselect.StuName = stu.StuName; |
|
|
insertDatastuselect.GenderNo = stu.GenderNo != null && stu.GenderNo.Value ? "1" : "0"; |
|
|
insertDatastuselect.GenderNo = stu.GenderNo != null && stu.GenderNo.Value ? "1" : "0"; |
|
|
insertDatastuselect.AcademicYearNo = itemteachclass.AcademicYearNo; |
|
|
insertDatastuselect.AcademicYearNo = itemteachclass.AcademicYearNo; |
|
|
insertDatastuselect.Semester = itemteachclass.Semester; |
|
|
insertDatastuselect.Semester = itemteachclass.Semester; |
|
|
//insertDatastuselect.OpenLessonDeptNo = itemteachclass.DeptNo; |
|
|
|
|
|
|
|
|
insertDatastuselect.OpenLessonDeptNo = itemteachclass.DeptNo; |
|
|
insertDatastuselect.OpenLessonMajorNo = itemteachclass.MajorNo; |
|
|
insertDatastuselect.OpenLessonMajorNo = itemteachclass.MajorNo; |
|
|
insertDatastuselect.LessonNo = itemteachclass.LessonNo; |
|
|
insertDatastuselect.LessonNo = itemteachclass.LessonNo; |
|
|
insertDatastuselect.LessonName = lessonData.FirstOrDefault(m => m.LessonNo == itemteachclass.LessonNo)?.LessonName; |
|
|
insertDatastuselect.LessonName = lessonData.FirstOrDefault(m => m.LessonNo == itemteachclass.LessonNo)?.LessonName; |
|
@@ -861,6 +862,8 @@ WHERE (AcademicYearNo = '" + strAcademicYear + "') and semester='" + strSemest |
|
|
insertDatastuselect.StudyScore = lessonData.FirstOrDefault(m => m.LessonNo == itemteachclass.LessonNo).StudyScore == null ? 0 : lessonData.FirstOrDefault(m => m.LessonNo == itemteachclass.LessonNo).StudyScore; |
|
|
insertDatastuselect.StudyScore = lessonData.FirstOrDefault(m => m.LessonNo == itemteachclass.LessonNo).StudyScore == null ? 0 : lessonData.FirstOrDefault(m => m.LessonNo == itemteachclass.LessonNo).StudyScore; |
|
|
insertDatastuselect.TotalStudyHour = lessonData.FirstOrDefault(m => m.LessonNo == itemteachclass.LessonNo).TotalStudyHour == null ? 0 : lessonData.FirstOrDefault(m => m.LessonNo == itemteachclass.LessonNo).TotalStudyHour; |
|
|
insertDatastuselect.TotalStudyHour = lessonData.FirstOrDefault(m => m.LessonNo == itemteachclass.LessonNo).TotalStudyHour == null ? 0 : lessonData.FirstOrDefault(m => m.LessonNo == itemteachclass.LessonNo).TotalStudyHour; |
|
|
insertDatastuselect.IsInEffect = "1"; |
|
|
insertDatastuselect.IsInEffect = "1"; |
|
|
|
|
|
insertDatastuselect.OpenLessonDeptNo = stu.DeptNo; |
|
|
|
|
|
insertDatastuselect.OpenLessonMajorNo = stu.MajorNo; |
|
|
insertDatastuselect.EmpNo = itemteachclass.EmpNo; |
|
|
insertDatastuselect.EmpNo = itemteachclass.EmpNo; |
|
|
insertDatastuselect.IsPitchOn = "1"; |
|
|
insertDatastuselect.IsPitchOn = "1"; |
|
|
insertDatastuselect.CheckMark = "0"; |
|
|
insertDatastuselect.CheckMark = "0"; |
|
@@ -869,22 +872,22 @@ WHERE (AcademicYearNo = '" + strAcademicYear + "') and semester='" + strSemest |
|
|
if (stuSelectLessonListEntityData.Count(m => m.StuNo == insertDatastuselect.StuNo && |
|
|
if (stuSelectLessonListEntityData.Count(m => m.StuNo == insertDatastuselect.StuNo && |
|
|
m.AcademicYearNo == insertDatastuselect.AcademicYearNo && |
|
|
m.AcademicYearNo == insertDatastuselect.AcademicYearNo && |
|
|
m.Semester == insertDatastuselect.Semester && |
|
|
m.Semester == insertDatastuselect.Semester && |
|
|
//m.DeptNo == insertDatastuselect.DeptNo && |
|
|
|
|
|
|
|
|
m.DeptNo == insertDatastuselect.DeptNo && |
|
|
m.MajorNo == insertDatastuselect.MajorNo && |
|
|
m.MajorNo == insertDatastuselect.MajorNo && |
|
|
m.LessonNo == insertDatastuselect.LessonNo && |
|
|
m.LessonNo == insertDatastuselect.LessonNo && |
|
|
m.Grade == insertDatastuselect.Grade && |
|
|
m.Grade == insertDatastuselect.Grade && |
|
|
//m.OpenLessonDeptNo == insertDatastuselect.OpenLessonDeptNo && |
|
|
|
|
|
|
|
|
m.OpenLessonDeptNo == insertDatastuselect.OpenLessonDeptNo && |
|
|
m.OpenLessonMajorNo == insertDatastuselect.OpenLessonMajorNo && |
|
|
m.OpenLessonMajorNo == insertDatastuselect.OpenLessonMajorNo && |
|
|
m.EmpNo == insertDatastuselect.EmpNo && m.ClassNo == insertDatastuselect.ClassNo && |
|
|
m.EmpNo == insertDatastuselect.EmpNo && m.ClassNo == insertDatastuselect.ClassNo && |
|
|
m.F_SchoolId == insertDatastuselect.F_SchoolId) == 0 && |
|
|
m.F_SchoolId == insertDatastuselect.F_SchoolId) == 0 && |
|
|
insertStuSelectLessonListDataList.Count(m => m.StuNo == insertDatastuselect.StuNo && |
|
|
insertStuSelectLessonListDataList.Count(m => m.StuNo == insertDatastuselect.StuNo && |
|
|
m.AcademicYearNo == insertDatastuselect.AcademicYearNo && |
|
|
m.AcademicYearNo == insertDatastuselect.AcademicYearNo && |
|
|
m.Semester == insertDatastuselect.Semester && |
|
|
m.Semester == insertDatastuselect.Semester && |
|
|
//m.DeptNo == insertDatastuselect.DeptNo && |
|
|
|
|
|
|
|
|
m.DeptNo == insertDatastuselect.DeptNo && |
|
|
m.MajorNo == insertDatastuselect.MajorNo && |
|
|
m.MajorNo == insertDatastuselect.MajorNo && |
|
|
m.LessonNo == insertDatastuselect.LessonNo && |
|
|
m.LessonNo == insertDatastuselect.LessonNo && |
|
|
m.Grade == insertDatastuselect.Grade && |
|
|
m.Grade == insertDatastuselect.Grade && |
|
|
//m.OpenLessonDeptNo == insertDatastuselect.OpenLessonDeptNo && |
|
|
|
|
|
|
|
|
m.OpenLessonDeptNo == insertDatastuselect.OpenLessonDeptNo && |
|
|
m.OpenLessonMajorNo == insertDatastuselect.OpenLessonMajorNo && |
|
|
m.OpenLessonMajorNo == insertDatastuselect.OpenLessonMajorNo && |
|
|
m.EmpNo == insertDatastuselect.EmpNo && m.ClassNo == insertDatastuselect.ClassNo && |
|
|
m.EmpNo == insertDatastuselect.EmpNo && m.ClassNo == insertDatastuselect.ClassNo && |
|
|
m.F_SchoolId == insertDatastuselect.F_SchoolId) == 0) |
|
|
m.F_SchoolId == insertDatastuselect.F_SchoolId) == 0) |
|
@@ -1176,7 +1179,7 @@ WHERE (AcademicYearNo = '" + strAcademicYear + "') and semester='" + strSemest |
|
|
LEFT JOIN tb_course cour ON cour.id= p.`course` |
|
|
LEFT JOIN tb_course cour ON cour.id= p.`course` |
|
|
LEFT JOIN tb_curriculum curr ON curr.id=cour.`course` |
|
|
LEFT JOIN tb_curriculum curr ON curr.id=cour.`course` |
|
|
WHERE s.year = '" + entity.AcademicYearNo + "' AND s.number = '" + entity.Semester |
|
|
WHERE s.year = '" + entity.AcademicYearNo + "' AND s.number = '" + entity.Semester |
|
|
+ "' AND sc.sid = '" + entity.F_SchoolId + "' AND curr.`ification` ='1' ORDER BY p.`major` "); |
|
|
|
|
|
|
|
|
+ "' AND curr.`ification` ='1' ORDER BY p.`major` "); |
|
|
var majorData = (await BaseRepository("CollegeMIS").FindListAsync<CdMajorEntity>()).ToList(); |
|
|
var majorData = (await BaseRepository("CollegeMIS").FindListAsync<CdMajorEntity>()).ToList(); |
|
|
var lessonData = (await BaseRepository("CollegeMIS").FindListAsync<LessonInfoEntity>()).ToList(); |
|
|
var lessonData = (await BaseRepository("CollegeMIS").FindListAsync<LessonInfoEntity>()).ToList(); |
|
|
if (TeachList.Count() > 0) |
|
|
if (TeachList.Count() > 0) |
|
@@ -1187,7 +1190,8 @@ WHERE (AcademicYearNo = '" + strAcademicYear + "') and semester='" + strSemest |
|
|
|
|
|
|
|
|
foreach (var item in TeachList) |
|
|
foreach (var item in TeachList) |
|
|
{ |
|
|
{ |
|
|
foreach (var itemTeach in item.EmpNo.Split(',')) |
|
|
|
|
|
|
|
|
var TeachClass = item.EmpNo.Split(','); |
|
|
|
|
|
foreach (var itemTeach in TeachClass) |
|
|
{ |
|
|
{ |
|
|
var insertData = new OpenLessonPlanEntity() |
|
|
var insertData = new OpenLessonPlanEntity() |
|
|
{ |
|
|
{ |
|
@@ -1261,15 +1265,15 @@ WHERE (AcademicYearNo = '" + strAcademicYear + "') and semester='" + strSemest |
|
|
var insertDatastuselect = new StuSelectLessonListEntity(); |
|
|
var insertDatastuselect = new StuSelectLessonListEntity(); |
|
|
insertDatastuselect.NoticeBookNo = stu.NoticeNo; |
|
|
insertDatastuselect.NoticeBookNo = stu.NoticeNo; |
|
|
insertDatastuselect.StuNo = stu.StuNo; |
|
|
insertDatastuselect.StuNo = stu.StuNo; |
|
|
//insertDatastuselect.DeptNo = stu.DeptNo; |
|
|
|
|
|
|
|
|
insertDatastuselect.DeptNo = stu.DeptNo; |
|
|
insertDatastuselect.ClassNo = stu.ClassNo; |
|
|
insertDatastuselect.ClassNo = stu.ClassNo; |
|
|
insertDatastuselect.MajorNo = stu.MajorNo; |
|
|
insertDatastuselect.MajorNo = stu.MajorNo; |
|
|
insertDatastuselect.StuName = stu.StuName; |
|
|
insertDatastuselect.StuName = stu.StuName; |
|
|
insertDatastuselect.GenderNo = stu.GenderNo != null && stu.GenderNo.Value ? "1" : "0"; |
|
|
insertDatastuselect.GenderNo = stu.GenderNo != null && stu.GenderNo.Value ? "1" : "0"; |
|
|
insertDatastuselect.AcademicYearNo = itemteachclass.AcademicYearNo; |
|
|
insertDatastuselect.AcademicYearNo = itemteachclass.AcademicYearNo; |
|
|
insertDatastuselect.Semester = itemteachclass.Semester; |
|
|
insertDatastuselect.Semester = itemteachclass.Semester; |
|
|
//insertDatastuselect.OpenLessonDeptNo = itemteachclass.DeptNo; |
|
|
|
|
|
insertDatastuselect.OpenLessonMajorNo = itemteachclass.MajorNo; |
|
|
|
|
|
|
|
|
insertDatastuselect.OpenLessonDeptNo = stu.DeptNo; |
|
|
|
|
|
insertDatastuselect.OpenLessonMajorNo = stu.MajorNo; |
|
|
insertDatastuselect.LessonNo = itemteachclass.LessonNo; |
|
|
insertDatastuselect.LessonNo = itemteachclass.LessonNo; |
|
|
insertDatastuselect.LessonName = lessonData.FirstOrDefault(m => m.LessonNo == itemteachclass.LessonNo)?.LessonName; |
|
|
insertDatastuselect.LessonName = lessonData.FirstOrDefault(m => m.LessonNo == itemteachclass.LessonNo)?.LessonName; |
|
|
insertDatastuselect.PartCode = ""; |
|
|
insertDatastuselect.PartCode = ""; |
|
@@ -1292,22 +1296,22 @@ WHERE (AcademicYearNo = '" + strAcademicYear + "') and semester='" + strSemest |
|
|
if (stuSelectLessonListEntityData.Count(m => m.StuNo == insertDatastuselect.StuNo && |
|
|
if (stuSelectLessonListEntityData.Count(m => m.StuNo == insertDatastuselect.StuNo && |
|
|
m.AcademicYearNo == insertDatastuselect.AcademicYearNo && |
|
|
m.AcademicYearNo == insertDatastuselect.AcademicYearNo && |
|
|
m.Semester == insertDatastuselect.Semester && |
|
|
m.Semester == insertDatastuselect.Semester && |
|
|
//m.DeptNo == insertDatastuselect.DeptNo && |
|
|
|
|
|
|
|
|
m.DeptNo == insertDatastuselect.DeptNo && |
|
|
m.MajorNo == insertDatastuselect.MajorNo && |
|
|
m.MajorNo == insertDatastuselect.MajorNo && |
|
|
m.LessonNo == insertDatastuselect.LessonNo && |
|
|
m.LessonNo == insertDatastuselect.LessonNo && |
|
|
m.Grade == insertDatastuselect.Grade && |
|
|
m.Grade == insertDatastuselect.Grade && |
|
|
//m.OpenLessonDeptNo == insertDatastuselect.OpenLessonDeptNo && |
|
|
|
|
|
|
|
|
m.OpenLessonDeptNo == insertDatastuselect.OpenLessonDeptNo && |
|
|
m.OpenLessonMajorNo == insertDatastuselect.OpenLessonMajorNo && |
|
|
m.OpenLessonMajorNo == insertDatastuselect.OpenLessonMajorNo && |
|
|
m.EmpNo == insertDatastuselect.EmpNo && m.ClassNo == insertDatastuselect.ClassNo && |
|
|
m.EmpNo == insertDatastuselect.EmpNo && m.ClassNo == insertDatastuselect.ClassNo && |
|
|
m.F_SchoolId == insertDatastuselect.F_SchoolId) == 0 && |
|
|
m.F_SchoolId == insertDatastuselect.F_SchoolId) == 0 && |
|
|
insertStuSelectLessonListDataList.Count(m => m.StuNo == insertDatastuselect.StuNo && |
|
|
insertStuSelectLessonListDataList.Count(m => m.StuNo == insertDatastuselect.StuNo && |
|
|
m.AcademicYearNo == insertDatastuselect.AcademicYearNo && |
|
|
m.AcademicYearNo == insertDatastuselect.AcademicYearNo && |
|
|
m.Semester == insertDatastuselect.Semester && |
|
|
m.Semester == insertDatastuselect.Semester && |
|
|
//m.DeptNo == insertDatastuselect.DeptNo && |
|
|
|
|
|
|
|
|
m.DeptNo == insertDatastuselect.DeptNo && |
|
|
m.MajorNo == insertDatastuselect.MajorNo && |
|
|
m.MajorNo == insertDatastuselect.MajorNo && |
|
|
m.LessonNo == insertDatastuselect.LessonNo && |
|
|
m.LessonNo == insertDatastuselect.LessonNo && |
|
|
m.Grade == insertDatastuselect.Grade && |
|
|
m.Grade == insertDatastuselect.Grade && |
|
|
//m.OpenLessonDeptNo == insertDatastuselect.OpenLessonDeptNo && |
|
|
|
|
|
|
|
|
m.OpenLessonDeptNo == insertDatastuselect.OpenLessonDeptNo && |
|
|
m.OpenLessonMajorNo == insertDatastuselect.OpenLessonMajorNo && |
|
|
m.OpenLessonMajorNo == insertDatastuselect.OpenLessonMajorNo && |
|
|
m.EmpNo == insertDatastuselect.EmpNo && m.ClassNo == insertDatastuselect.ClassNo && |
|
|
m.EmpNo == insertDatastuselect.EmpNo && m.ClassNo == insertDatastuselect.ClassNo && |
|
|
m.F_SchoolId == insertDatastuselect.F_SchoolId) == 0) |
|
|
m.F_SchoolId == insertDatastuselect.F_SchoolId) == 0) |
|
|