|
|
@@ -238,10 +238,10 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration |
|
|
|
try |
|
|
|
{ |
|
|
|
var strSql = new StringBuilder(); |
|
|
|
strSql.Append("INSERT INTO EvalTutorofClass (academicyearno,semester,deptno,deptname,classno,ClassName,ClassDiredctorNo,ClassTutorNo,NumofParticipatingStu, InsertDate) "); |
|
|
|
strSql.Append(" select * from ( SELECT '" + academicYearNo + "'as academicyearno,'" + semester + "'as semester,ClassInfo.deptno,CdDept.deptname,ClassInfo.classno,ClassInfo.ClassName,ClassInfo.ClassDiredctorNo,ClassInfo.ClassTutorNo,ClassInfo.StuNum,GETDATE() as InsertDate "); |
|
|
|
strSql.Append(" FROM ClassInfo left join CdDept on ClassInfo.DeptNo=CdDept.DeptNo left join CdMajor on ClassInfo.MajorNo=CdMajor.MajorNo where ClassInfo.CheckMark='1' ) as bb "); |
|
|
|
strSql.Append(" where bb.deptno not in ( select a.deptno from EvalTutorofClass a where a.academicyearno=bb.academicyearno and a.semester=bb.semester and a.deptno=bb.deptno and a.classno=bb.classno and a.ClassDiredctorNo=bb.ClassDiredctorNo and a.ClassTutorNo=bb.ClassTutorNo ) "); |
|
|
|
strSql.Append("INSERT INTO EvalTutorofClass (academicyearno,semester,classno,ClassName,ClassDiredctorNo,ClassTutorNo,NumofParticipatingStu, InsertDate) "); |
|
|
|
strSql.Append(" select * from ( SELECT '" + academicYearNo + "'as academicyearno,'" + semester + "'as semester,ClassInfo.classno,ClassInfo.ClassName,ClassInfo.ClassDiredctorNo,ClassInfo.ClassTutorNo,ClassInfo.StuNum,GETDATE() as InsertDate "); |
|
|
|
strSql.Append(" FROM ClassInfo left join CdMajor on ClassInfo.MajorNo=CdMajor.MajorNo where ClassInfo.CheckMark='1' ) as bb "); |
|
|
|
strSql.Append(" where bb.classno not in ( select a.classno from EvalTutorofClass a where a.academicyearno=bb.academicyearno and a.semester=bb.semester and a.classno=bb.classno and a.ClassDiredctorNo=bb.ClassDiredctorNo and a.ClassTutorNo=bb.ClassTutorNo ) "); |
|
|
|
this.BaseRepository("CollegeMIS").ExecuteBySql(strSql.ToString()); |
|
|
|
} |
|
|
|
catch (Exception ex) |
|
|
@@ -312,9 +312,9 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration |
|
|
|
if (string.IsNullOrEmpty(entity.LessonSortNo) || entity.LessonSortNo == "1") |
|
|
|
{ |
|
|
|
//dyy:20190429 |
|
|
|
string sql = @"insert into stuscore(NoticeBookNo,StuNo,DeptNo,MajorNo,ClassNo,StuName,GenderNo,AcademicYearNo,Semester,OpenLessonDeptNo,OpenLessonMajorNo,LessonNo,LessonName,LessonNameEn,TeachClassNo,LessonSortNo,StuSortNo,Grade,StudyScore,TotalStudyHour,OrdinaryScore,TermInScore,TermEndScore,OtherScore,IsInEffect,Remark,ConflictLessonNo,IsPitchOn,CheckMark,TechPlanNo,EmpNo,PartCode,ScoreRecordStyleNo,TestModeNo,zysx,TestKindNo,IsEditable,F_SchoolId) |
|
|
|
select NoticeBookNo,StuNo,DeptNo,MajorNo,ClassNo,StuName,GenderNo,AcademicYearNo,Semester,OpenLessonDeptNo,OpenLessonMajorNo,LessonNo,LessonName,LessonNameEng as LessionNameEn,TeachClassNo,LessonSortNo,StuSortNo,Grade,StudyScore,TotalStudyHour,'0','0','0','0',IsInEffect,Remark,ConflictLessonNo,IsPitchOn,0,TeachPlanNo as TechPlanNo,EmpNo,PartCode,ScoreRecordStyleNo,TestModeNo,zysx=1,TestKindNo=1,IsEditable=1,F_SchoolId from |
|
|
|
(select s.NoticeBookNo,s.StuNo,s.DeptNo,s.MajorNo,s.ClassNo,s.StuName,s.GenderNo,s.AcademicYearNo,s.Semester,s.OpenLessonDeptNo,s.OpenLessonMajorNo,s.LessonNo,s.LessonName,s.LessonNameEng,s.TeachClassNo,s.LessonSortNo,s.StuSortNo,s.Grade,s.StudyScore,s.TotalStudyHour,s.IsInEffect,s.Remark,s.ConflictLessonNo,s.IsPitchOn,s.CheckMark,s.TeachPlanNo,s.EmpNo,s.PartCode,o.ScoreRecordStyleNo,cs.ScoreRecordName,bc.TestModeNo,bc.TestMode,s.F_SchoolId |
|
|
|
string sql = @"insert into stuscore(NoticeBookNo,StuNo,MajorNo,ClassNo,StuName,GenderNo,AcademicYearNo,Semester,OpenLessonMajorNo,LessonNo,LessonName,LessonNameEn,TeachClassNo,LessonSortNo,StuSortNo,Grade,StudyScore,TotalStudyHour,OrdinaryScore,TermInScore,TermEndScore,OtherScore,IsInEffect,Remark,ConflictLessonNo,IsPitchOn,CheckMark,TechPlanNo,EmpNo,PartCode,ScoreRecordStyleNo,TestModeNo,zysx,TestKindNo,IsEditable,F_SchoolId) |
|
|
|
select NoticeBookNo,StuNo,MajorNo,ClassNo,StuName,GenderNo,AcademicYearNo,Semester,OpenLessonMajorNo,LessonNo,LessonName,LessonNameEng as LessionNameEn,TeachClassNo,LessonSortNo,StuSortNo,Grade,StudyScore,TotalStudyHour,'0','0','0','0',IsInEffect,Remark,ConflictLessonNo,IsPitchOn,0,TeachPlanNo as TechPlanNo,EmpNo,PartCode,ScoreRecordStyleNo,TestModeNo,zysx=1,TestKindNo=1,IsEditable=1,F_SchoolId from |
|
|
|
(select s.NoticeBookNo,s.StuNo,s.MajorNo,s.ClassNo,s.StuName,s.GenderNo,s.AcademicYearNo,s.Semester,s.OpenLessonMajorNo,s.LessonNo,s.LessonName,s.LessonNameEng,s.TeachClassNo,s.LessonSortNo,s.StuSortNo,s.Grade,s.StudyScore,s.TotalStudyHour,s.IsInEffect,s.Remark,s.ConflictLessonNo,s.IsPitchOn,s.CheckMark,s.TeachPlanNo,s.EmpNo,s.PartCode,o.ScoreRecordStyleNo,cs.ScoreRecordName,bc.TestModeNo,bc.TestMode,s.F_SchoolId |
|
|
|
from StuSelectLessonList s |
|
|
|
left join OpenLessonPlan o on s.AcademicYearNo=o.AcademicYearNo and s.Semester=o.Semester and s.LessonNo=o.LessonNo and s.PartCode=o.PartCode and s.OpenLessonMajorNo=o.MajorNo and s.Grade=o.Grade |
|
|
|
left join CdScoreRecordStyle cs on o.ScoreRecordStyleNo=cs.ScoreRecordStyleNo |
|
|
@@ -347,10 +347,10 @@ and a.Academicyearno='" + entity.AcademicYearNo + "' and a.Semester='" + entity. |
|
|
|
{ |
|
|
|
//dyy:20190516 |
|
|
|
//初始化学生成绩【选修课】 |
|
|
|
string sqlOfElective = @"insert into stuscore(NoticeBookNo,StuNo,DeptNo,MajorNo,ClassNo,StuName,GenderNo,AcademicYearNo,Semester,LessonNo,LessonName,LessonSortNo,Grade,StudyScore,OrdinaryScore,TermInScore,TermEndScore,OtherScore,CheckMark,EmpNo,PartCode,ScoreRecordStyleNo,TestModeNo,zysx,TestKindNo,IsEditable,LessonSection, ClassRoomNo, ClassRoomName,F_SchoolId) |
|
|
|
select NoticeBookNo,StuNo,DeptNo,MajorNo,ClassNo,StuName,GenderNo,AcademicYearNo,Semester,LessonNo,LessonName,LessonSortNo,Grade,StudyScore,'0','0','0','0',CheckMark=0,EmpNo,PartCode,ScoreRecordStyleNo,TestModeNo,zysx=1,TestKindNo=1,IsEditable=1, LessonSection, ClassRoomNo, ClassRoomName,F_SchoolId from |
|
|
|
string sqlOfElective = @"insert into stuscore(NoticeBookNo,StuNo,MajorNo,ClassNo,StuName,GenderNo,AcademicYearNo,Semester,LessonNo,LessonName,LessonSortNo,Grade,StudyScore,OrdinaryScore,TermInScore,TermEndScore,OtherScore,CheckMark,EmpNo,PartCode,ScoreRecordStyleNo,TestModeNo,zysx,TestKindNo,IsEditable,LessonSection, ClassRoomNo, ClassRoomName,F_SchoolId) |
|
|
|
select NoticeBookNo,StuNo,MajorNo,ClassNo,StuName,GenderNo,AcademicYearNo,Semester,LessonNo,LessonName,LessonSortNo,Grade,StudyScore,'0','0','0','0',CheckMark=0,EmpNo,PartCode,ScoreRecordStyleNo,TestModeNo,zysx=1,TestKindNo=1,IsEditable=1, LessonSection, ClassRoomNo, ClassRoomName,F_SchoolId from |
|
|
|
( |
|
|
|
select s.NoticeBookNo,s.StuNo,s.DeptNo,s.MajorNo,s.ClassNo,s.StuName,s.GenderNo,s.AcademicYearNo,s.Semester,s.LessonNo,s.LessonName,s.LessonSortNo,s.Grade,s.StudyScore,s.EmpNo,o.PartCode,o.ScoreRecordStyleNo,cs.ScoreRecordName,bc.TestModeNo,bc.TestMode,s.LessonSection,s.ClassRoomNo,s.ClassRoomName,s.F_SchoolId |
|
|
|
select s.NoticeBookNo,s.StuNo,s.MajorNo,s.ClassNo,s.StuName,s.GenderNo,s.AcademicYearNo,s.Semester,s.LessonNo,s.LessonName,s.LessonSortNo,s.Grade,s.StudyScore,s.EmpNo,o.PartCode,o.ScoreRecordStyleNo,cs.ScoreRecordName,bc.TestModeNo,bc.TestMode,s.LessonSection,s.ClassRoomNo,s.ClassRoomName,s.F_SchoolId |
|
|
|
from StuSelectLessonListOfElective s |
|
|
|
left join OpenLessonPlanOfElective o on s.OLPEId=o.Id |
|
|
|
left join CdScoreRecordStyle cs on o.ScoreRecordStyleNo=cs.ScoreRecordStyleNo |
|
|
|