@@ -27,9 +27,9 @@ | |||||
<div class=" btn-group btn-group-sm"> | <div class=" btn-group btn-group-sm"> | ||||
<a id="lr_refresh" class="btn btn-default"><i class="fa fa-refresh"></i></a> | <a id="lr_refresh" class="btn btn-default"><i class="fa fa-refresh"></i></a> | ||||
</div> | </div> | ||||
<div class=" btn-group btn-group-sm" learun-authorize="yes"> | |||||
@*<div class=" btn-group btn-group-sm" learun-authorize="yes"> | |||||
<a id="lr_arrange" class="btn btn-default"><i class="fa fa-pencil-square-o"></i> 排考数据同步</a> | <a id="lr_arrange" class="btn btn-default"><i class="fa fa-pencil-square-o"></i> 排考数据同步</a> | ||||
</div> | |||||
</div>*@ | |||||
</div> | </div> | ||||
</div> | </div> | ||||
<div class="lr-layout-body" id="gridtable"></div> | <div class="lr-layout-body" id="gridtable"></div> | ||||
@@ -86,7 +86,7 @@ var bootstrap = function ($, learun) { | |||||
}, | }, | ||||
initGird: function () { | initGird: function () { | ||||
$('#gridtable').lrAuthorizeJfGrid({ | $('#gridtable').lrAuthorizeJfGrid({ | ||||
url: top.$.rootUrl + '/EducationalAdministration/ArrangeExamTermNew/GetPageListForLesson', | |||||
url: top.$.rootUrl + '/EducationalAdministration/Exam_ExamPlanLesson/GetPageListForLesson', | |||||
headData: [ | headData: [ | ||||
{ label: '学年', name: 'AcademicYearNo', width: 80, align: "left" }, | { label: '学年', name: 'AcademicYearNo', width: 80, align: "left" }, | ||||
{ label: '学期', name: 'Semester', width: 80, align: "left" }, | { label: '学期', name: 'Semester', width: 80, align: "left" }, | ||||
@@ -99,7 +99,7 @@ var bootstrap = function ($, learun) { | |||||
{ label: '课程编号', name: 'LessonNo', width: 100, align: "left" }, | { label: '课程编号', name: 'LessonNo', width: 100, align: "left" }, | ||||
{ label: '课程名称', name: 'LessonName', width: 200, align: "left" } | { label: '课程名称', name: 'LessonName', width: 200, align: "left" } | ||||
], | ], | ||||
mainId: 'AETId', | |||||
mainId: 'EPLId', | |||||
sidx: 'ExamDate ,ExamTime,LessonNo', | sidx: 'ExamDate ,ExamTime,LessonNo', | ||||
isPage: true | isPage: true | ||||
}); | }); | ||||
@@ -96,7 +96,11 @@ var bootstrap = function ($, learun) { | |||||
headData: [ | headData: [ | ||||
{ label: '学年', name: 'AcademicYearNo', width: 70, align: "left" }, | { label: '学年', name: 'AcademicYearNo', width: 70, align: "left" }, | ||||
{ label: '学期', name: 'Semester', width: 60, align: "left" }, | { label: '学期', name: 'Semester', width: 60, align: "left" }, | ||||
{ label: '考试日期', name: 'ExamDate', width: 120, align: "left" }, | |||||
{ | |||||
label: '考试日期', name: 'ExamDate', width: 100, align: "left", formatter: function (v) { | |||||
return learun.formatDate(v, "yyyy-MM-dd"); | |||||
} | |||||
}, | |||||
{ label: '考试时间', name: 'ExamTime', width: 120, align: "left" }, | { label: '考试时间', name: 'ExamTime', width: 120, align: "left" }, | ||||
{ label: '课程编号', name: 'LessonNo', width: 100, align: "left" }, | { label: '课程编号', name: 'LessonNo', width: 100, align: "left" }, | ||||
{ label: '课程名称', name: 'LessonName', width: 200, align: "left" }, | { label: '课程名称', name: 'LessonName', width: 200, align: "left" }, | ||||
@@ -60,7 +60,7 @@ var bootstrap = function ($, learun) { | |||||
}, | }, | ||||
initGird: function () { | initGird: function () { | ||||
$('#gridtable').lrAuthorizeJfGrid({ | $('#gridtable').lrAuthorizeJfGrid({ | ||||
url: top.$.rootUrl + '/EducationalAdministration/ArrangeExamTermNew/GetItemPageList', | |||||
url: top.$.rootUrl + '/EducationalAdministration/Exam_ArrangeExamTermNew/GetItemPageList', | |||||
headData: [ | headData: [ | ||||
{ label: '学年', name: 'AcademicYearNo', width: 70, align: "left" }, | { label: '学年', name: 'AcademicYearNo', width: 70, align: "left" }, | ||||
{ label: '学期', name: 'Semester', width: 60, align: "left" }, | { label: '学期', name: 'Semester', width: 60, align: "left" }, | ||||
@@ -70,8 +70,8 @@ var bootstrap = function ($, learun) { | |||||
{ label: '课程名称', name: 'LessonName', width: 200, align: "left" }, | { label: '课程名称', name: 'LessonName', width: 200, align: "left" }, | ||||
{ label: '监考教师编号', name: 'EmpNo', width: 150, align: "left" }, | { label: '监考教师编号', name: 'EmpNo', width: 150, align: "left" }, | ||||
{ label: '监考教师姓名', name: 'EmpName', width: 150, align: "left" }, | { label: '监考教师姓名', name: 'EmpName', width: 150, align: "left" }, | ||||
{ label: '教室编号', name: 'ClassRoomNo', width: 100, align: "left" }, | |||||
{ label: '教室名称', name: 'ClassRoomName', width: 100, align: "left" }, | |||||
{ label: '教室编号', name: 'ClassroomNo', width: 100, align: "left" }, | |||||
{ label: '教室名称', name: 'ClassroomName', width: 100, align: "left" }, | |||||
{ label: '班级名称', name: 'ClassName', width: 100, align: "left" }, | { label: '班级名称', name: 'ClassName', width: 100, align: "left" }, | ||||
{ label: '学生编号', name: 'StuNo', width: 100, align: "left" }, | { label: '学生编号', name: 'StuNo', width: 100, align: "left" }, | ||||
{ label: '学生姓名', name: 'StuName', width: 200, align: "left" }, | { label: '学生姓名', name: 'StuName', width: 200, align: "left" }, | ||||
@@ -73,7 +73,7 @@ var bootstrap = function ($, learun) { | |||||
}, | }, | ||||
initGird: function () { | initGird: function () { | ||||
$('#gridtable').lrAuthorizeJfGrid({ | $('#gridtable').lrAuthorizeJfGrid({ | ||||
url: top.$.rootUrl + '/EducationalAdministration/ArrangeExamTermNew/GetPageList', | |||||
url: top.$.rootUrl + '/EducationalAdministration/Exam_ArrangeExamTermNew/GetPageList', | |||||
headData: [ | headData: [ | ||||
{ | { | ||||
label: '考试日期', name: 'ExamDate', width: 200, align: "left", formatter: function (v) { | label: '考试日期', name: 'ExamDate', width: 200, align: "left", formatter: function (v) { | ||||
@@ -85,11 +85,11 @@ var bootstrap = function ($, learun) { | |||||
{ label: '课程名称', name: 'LessonName', width: 200, align: "left" }, | { label: '课程名称', name: 'LessonName', width: 200, align: "left" }, | ||||
{ label: '教师编号', name: 'EmpNo', width: 200, align: "left" }, | { label: '教师编号', name: 'EmpNo', width: 200, align: "left" }, | ||||
{ label: '教师姓名', name: 'EmpName', width: 200, align: "left" }, | { label: '教师姓名', name: 'EmpName', width: 200, align: "left" }, | ||||
{ label: '教室编号', name: 'ClassRoomNo', width: 200, align: "left" }, | |||||
{ label: '教室名称', name: 'ClassRoomName', width: 200, align: "left" } | |||||
{ label: '教室编号', name: 'ClassroomNo', width: 200, align: "left" }, | |||||
{ label: '教室名称', name: 'ClassroomName', width: 200, align: "left" } | |||||
], | ], | ||||
mainId: 'AETId', | |||||
sidx: 'ExamDate asc,ExamTime asc,LessonNo asc,ClassRoomNo asc', | |||||
mainId: 'EPIId', | |||||
sidx: 'ExamDate asc,ExamTime asc,LessonNo asc,ClassroomNo asc', | |||||
isPage: true | isPage: true | ||||
}); | }); | ||||
page.search(); | page.search(); | ||||
@@ -1025,21 +1025,13 @@ | |||||
<Content Include="Areas\AssetManagementSystem\Views\Ass_Warning\Form.js" /> | <Content Include="Areas\AssetManagementSystem\Views\Ass_Warning\Form.js" /> | ||||
<Content Include="Areas\AssetManagementSystem\Views\Ass_Warning\Index.js" /> | <Content Include="Areas\AssetManagementSystem\Views\Ass_Warning\Index.js" /> | ||||
<Content Include="Areas\AssetManagementSystem\Views\FundsApply\FormView.js" /> | <Content Include="Areas\AssetManagementSystem\Views\FundsApply\FormView.js" /> | ||||
<Content Include="Areas\EducationalAdministration\Views\ArrangeExamTermNew\Form.cshtml" /> | |||||
<Content Include="Areas\EducationalAdministration\Views\ArrangeExamTermNew\Form.js" /> | <Content Include="Areas\EducationalAdministration\Views\ArrangeExamTermNew\Form.js" /> | ||||
<Content Include="Areas\EducationalAdministration\Views\ArrangeExamTermNew\Index.cshtml" /> | |||||
<Content Include="Areas\EducationalAdministration\Views\ArrangeExamTermNew\Index.js" /> | <Content Include="Areas\EducationalAdministration\Views\ArrangeExamTermNew\Index.js" /> | ||||
<Content Include="Areas\EducationalAdministration\Views\ArrangeExamTermNew\IndexForClass.cshtml" /> | |||||
<Content Include="Areas\EducationalAdministration\Views\ArrangeExamTermNew\IndexForClass.js" /> | <Content Include="Areas\EducationalAdministration\Views\ArrangeExamTermNew\IndexForClass.js" /> | ||||
<Content Include="Areas\EducationalAdministration\Views\ArrangeExamTermNew\IndexForLesson.cshtml" /> | |||||
<Content Include="Areas\EducationalAdministration\Views\ArrangeExamTermNew\IndexForLesson.js" /> | <Content Include="Areas\EducationalAdministration\Views\ArrangeExamTermNew\IndexForLesson.js" /> | ||||
<Content Include="Areas\EducationalAdministration\Views\ArrangeExamTermNew\IndexItem.cshtml" /> | |||||
<Content Include="Areas\EducationalAdministration\Views\ArrangeExamTermNew\IndexItem.js" /> | <Content Include="Areas\EducationalAdministration\Views\ArrangeExamTermNew\IndexItem.js" /> | ||||
<Content Include="Areas\EducationalAdministration\Views\ArrangeExamTermNew\IndexStudent.cshtml" /> | |||||
<Content Include="Areas\EducationalAdministration\Views\ArrangeExamTermNew\IndexStudent.js" /> | <Content Include="Areas\EducationalAdministration\Views\ArrangeExamTermNew\IndexStudent.js" /> | ||||
<Content Include="Areas\EducationalAdministration\Views\ArrangeExamTermNew\IndexTeach.cshtml" /> | |||||
<Content Include="Areas\EducationalAdministration\Views\ArrangeExamTermNew\IndexTeach.js" /> | <Content Include="Areas\EducationalAdministration\Views\ArrangeExamTermNew\IndexTeach.js" /> | ||||
<Content Include="Areas\EducationalAdministration\Views\ArrangeExamTermNew\SyncByConditionForm.cshtml" /> | |||||
<Content Include="Areas\EducationalAdministration\Views\ArrangeExamTermNew\SyncByConditionForm.js" /> | <Content Include="Areas\EducationalAdministration\Views\ArrangeExamTermNew\SyncByConditionForm.js" /> | ||||
<Content Include="Areas\EducationalAdministration\Views\ArrangeLessonSync\Form.js" /> | <Content Include="Areas\EducationalAdministration\Views\ArrangeLessonSync\Form.js" /> | ||||
<Content Include="Areas\EducationalAdministration\Views\ArrangeLessonSync\Index.js" /> | <Content Include="Areas\EducationalAdministration\Views\ArrangeLessonSync\Index.js" /> | ||||
@@ -1336,6 +1328,14 @@ | |||||
<Content Include="Areas\EducationalAdministration\Views\BookPutIn\Index.cshtml" /> | <Content Include="Areas\EducationalAdministration\Views\BookPutIn\Index.cshtml" /> | ||||
<Content Include="Areas\EducationalAdministration\Views\StuInfoBasic\ImportForm.cshtml" /> | <Content Include="Areas\EducationalAdministration\Views\StuInfoBasic\ImportForm.cshtml" /> | ||||
<Content Include="Areas\EducationalAdministration\Views\StuInfoBasic\SynPhotoForm.cshtml" /> | <Content Include="Areas\EducationalAdministration\Views\StuInfoBasic\SynPhotoForm.cshtml" /> | ||||
<Content Include="Areas\EducationalAdministration\Views\ArrangeExamTermNew\Form.cshtml" /> | |||||
<Content Include="Areas\EducationalAdministration\Views\ArrangeExamTermNew\Index.cshtml" /> | |||||
<Content Include="Areas\EducationalAdministration\Views\ArrangeExamTermNew\IndexForClass.cshtml" /> | |||||
<Content Include="Areas\EducationalAdministration\Views\ArrangeExamTermNew\IndexForLesson.cshtml" /> | |||||
<Content Include="Areas\EducationalAdministration\Views\ArrangeExamTermNew\IndexItem.cshtml" /> | |||||
<Content Include="Areas\EducationalAdministration\Views\ArrangeExamTermNew\IndexStudent.cshtml" /> | |||||
<Content Include="Areas\EducationalAdministration\Views\ArrangeExamTermNew\IndexTeach.cshtml" /> | |||||
<Content Include="Areas\EducationalAdministration\Views\ArrangeExamTermNew\SyncByConditionForm.cshtml" /> | |||||
<None Include="Areas\EducationalAdministration\Views\StuInfoBasic\Printxjk.cshtml" /> | <None Include="Areas\EducationalAdministration\Views\StuInfoBasic\Printxjk.cshtml" /> | ||||
<Content Include="Areas\EducationalAdministration\Views\StuInfoFresh\AllocationClassDC.js" /> | <Content Include="Areas\EducationalAdministration\Views\StuInfoFresh\AllocationClassDC.js" /> | ||||
<Content Include="Areas\EducationalAdministration\Views\StuInfoFresh\StatisticClassIndex.js" /> | <Content Include="Areas\EducationalAdministration\Views\StuInfoFresh\StatisticClassIndex.js" /> | ||||
@@ -8047,12 +8047,6 @@ | |||||
<Content Include="Areas\EducationalAdministration\Views\StuDisciplineManagement\Index.cshtml" /> | <Content Include="Areas\EducationalAdministration\Views\StuDisciplineManagement\Index.cshtml" /> | ||||
<Content Include="Areas\LR_Desktop\Views\QualityReport\Index.cshtml" /> | <Content Include="Areas\LR_Desktop\Views\QualityReport\Index.cshtml" /> | ||||
<Content Include="Areas\LR_Desktop\Views\QualityReport\IndexReport.cshtml" /> | <Content Include="Areas\LR_Desktop\Views\QualityReport\IndexReport.cshtml" /> | ||||
<Content Include="Areas\EducationalAdministration\Views\ArrangeExamTermNew\SyncByConditionForm.cshtml" /> | |||||
<Content Include="Areas\EducationalAdministration\Views\ArrangeExamTermNew\IndexItem.cshtml" /> | |||||
<Content Include="Areas\EducationalAdministration\Views\ArrangeExamTermNew\IndexForClass.cshtml" /> | |||||
<Content Include="Areas\EducationalAdministration\Views\ArrangeExamTermNew\IndexForLesson.cshtml" /> | |||||
<Content Include="Areas\EducationalAdministration\Views\ArrangeExamTermNew\IndexTeach.cshtml" /> | |||||
<Content Include="Areas\EducationalAdministration\Views\ArrangeExamTermNew\IndexStudent.cshtml" /> | |||||
<Content Include="Areas\EducationalAdministration\Views\StuScoreNotPass\IndexUnpass.cshtml" /> | <Content Include="Areas\EducationalAdministration\Views\StuScoreNotPass\IndexUnpass.cshtml" /> | ||||
<Content Include="Areas\EducationalAdministration\Views\StuScoreNotPassTwo\IndexUnpassTwo.cshtml" /> | <Content Include="Areas\EducationalAdministration\Views\StuScoreNotPassTwo\IndexUnpassTwo.cshtml" /> | ||||
<Content Include="Areas\EducationalAdministration\Views\StuScore\AllStuScoreQueryIndex.cshtml" /> | <Content Include="Areas\EducationalAdministration\Views\StuScore\AllStuScoreQueryIndex.cshtml" /> | ||||
@@ -266,7 +266,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||||
,[LessonNo] | ,[LessonNo] | ||||
,[ELOrder] | ,[ELOrder] | ||||
,[ELEnabled],ExamTime,LessonTypeId,DeptNo,MajorNo) | ,[ELEnabled],ExamTime,LessonTypeId,DeptNo,MajorNo) | ||||
select NEWID(),AcademicYearNo,t.Semester,replace(Grade,'级','') Grade,t.LessonName,t.[LessonNo],0,1,'{ExamTime}',a.lessontypeid,t.DeptNo,t.MajorNo from OpenLessonPlan t | |||||
select NEWID(),AcademicYearNo,t.Semester,Grade,t.LessonName,t.[LessonNo],0,1,'{ExamTime}',a.lessontypeid,t.DeptNo,t.MajorNo from OpenLessonPlan t | |||||
left join lessoninfo a on t.lessonno=a.lessonno | left join lessoninfo a on t.lessonno=a.lessonno | ||||
where t.ExamType='1' and t.lessonsortno=1 and t.AcademicYearNo='{AcademicYearNo}' and t.Semester='{Semester}' | where t.ExamType='1' and t.lessonsortno=1 and t.AcademicYearNo='{AcademicYearNo}' and t.Semester='{Semester}' | ||||
and t.[LessonNo] not in (select [LessonNo] from Exam_ExamLesson where AcademicYearNo='{AcademicYearNo}' and Semester='{Semester}' ) | and t.[LessonNo] not in (select [LessonNo] from Exam_ExamLesson where AcademicYearNo='{AcademicYearNo}' and Semester='{Semester}' ) | ||||
@@ -265,15 +265,6 @@ and examtime is not null and datediff(day, examdate, '{examPlanLesson.ExamDate}' | |||||
//{ | //{ | ||||
// entity.ClassStuNum = stuinfo.Count(x => x.ClassNo == entity.ClassNo); | // entity.ClassStuNum = stuinfo.Count(x => x.ClassNo == entity.ClassNo); | ||||
//} | //} | ||||
var classList = this.BaseRepository("CollegeMIS").FindList<ClassInfoEntity>(x => x.CheckMark == true); | |||||
if (list.Exists(x => string.IsNullOrEmpty(x.ClassName))) | |||||
{ | |||||
foreach (var item in list.Where(x => string.IsNullOrEmpty(x.ClassName)).ToList()) | |||||
{ | |||||
item.ClassName = classList.Where(x => x.ClassNo == item.ClassNo).FirstOrDefault().ClassName; | |||||
} | |||||
} | |||||
this.BaseRepository("CollegeMIS").Insert(list); | this.BaseRepository("CollegeMIS").Insert(list); | ||||
//更新排考安排课程表实排班级数、实排人数 | //更新排考安排课程表实排班级数、实排人数 | ||||
//排考安排课程表Id | //排考安排课程表Id | ||||
@@ -352,7 +343,7 @@ where a.EPId='{EPId}'"); | |||||
var addSql = $@"insert into Exam_ExamPlanClass | var addSql = $@"insert into Exam_ExamPlanClass | ||||
SELECT NEWID(),'{lesson.EPLId}',c.ClassName,t.ClassNo,count(1) as StuNum FROM Exam_ExamStudent t | SELECT NEWID(),'{lesson.EPLId}',c.ClassName,t.ClassNo,count(1) as StuNum FROM Exam_ExamStudent t | ||||
left join classinfo c on t.ClassNo=c.ClassNo WHERE t.ESEnabled=1 and t.AcademicYearNo='{examPlan.AcademicYearNo}' and t.Semester='{examPlan.Semester}' and t.Grade='{lesson.Grade}' | left join classinfo c on t.ClassNo=c.ClassNo WHERE t.ESEnabled=1 and t.AcademicYearNo='{examPlan.AcademicYearNo}' and t.Semester='{examPlan.Semester}' and t.Grade='{lesson.Grade}' | ||||
and t.ESType='{examPlan.PlanType}' and c.majorno='{lesson.TeachMajorNo}' and (t.ClassNo is not null and len(t.ClassNo)>0) | |||||
and t.ESType='{examPlan.PlanType}' and c.majorno='{lesson.TeachMajorNo}' | |||||
and t.ClassNo not in (select ClassNo from [dbo].[Exam_ExamPlanClass] where EPLId='{lesson.EPLId}') | and t.ClassNo not in (select ClassNo from [dbo].[Exam_ExamPlanClass] where EPLId='{lesson.EPLId}') | ||||
group by t.ClassNo,t.AcademicYearNo,t.Semester,t.ESType,c.ClassName "; | group by t.ClassNo,t.AcademicYearNo,t.Semester,t.ESType,c.ClassName "; | ||||
db.ExecuteBySql(addSql); | db.ExecuteBySql(addSql); | ||||
@@ -363,8 +354,7 @@ and t.ESType='{examPlan.PlanType}' and c.majorno='{lesson.TeachMajorNo}' and (t. | |||||
var addSql = $@"insert into Exam_ExamPlanClass | var addSql = $@"insert into Exam_ExamPlanClass | ||||
SELECT NEWID(),'{lesson.EPLId}',c.ClassName,t.ClassNo,count(1) as StuNum FROM Exam_ExamStudent t | SELECT NEWID(),'{lesson.EPLId}',c.ClassName,t.ClassNo,count(1) as StuNum FROM Exam_ExamStudent t | ||||
left join classinfo c on t.ClassNo=c.ClassNo WHERE t.ESEnabled=1 and t.AcademicYearNo='{examPlan.AcademicYearNo}' and t.Semester='{examPlan.Semester}' and t.ESType='{examPlan.PlanType}' and t.Grade='{lesson.Grade}' | left join classinfo c on t.ClassNo=c.ClassNo WHERE t.ESEnabled=1 and t.AcademicYearNo='{examPlan.AcademicYearNo}' and t.Semester='{examPlan.Semester}' and t.ESType='{examPlan.PlanType}' and t.Grade='{lesson.Grade}' | ||||
and (t.ClassNo is not null and len(t.ClassNo)>0) | |||||
and t.ClassNo not in (select ClassNo from [dbo].[Exam_ExamPlanClass] where EPLId='{lesson.EPLId}') | |||||
and t.ClassNo not in (select ClassNo from [dbo].[Exam_ExamPlanClass] where EPLId='{lesson.EPLId}') | |||||
group by t.ClassNo,t.AcademicYearNo,t.Semester,t.ESType,c.ClassName "; | group by t.ClassNo,t.AcademicYearNo,t.Semester,t.ESType,c.ClassName "; | ||||
db.ExecuteBySql(addSql); | db.ExecuteBySql(addSql); | ||||
} | } | ||||
@@ -343,7 +343,7 @@ from StuScore a left join StuInfoBasic b on b.StuNo=a.StuNo | |||||
join (select l.lessonno,l.LessonTypeId,lt.ltorder from Exam_ExamLesson l left join CdLessonType lt on l.LessonTypeId=lt.ltid where l.elenabled=1 and l.AcademicYearNo='{exam_ExamPlan.AcademicYearNo}' and l.Semester='{exam_ExamPlan.Semester}' ) t on a.lessonno=t.lessonno | join (select l.lessonno,l.LessonTypeId,lt.ltorder from Exam_ExamLesson l left join CdLessonType lt on l.LessonTypeId=lt.ltid where l.elenabled=1 and l.AcademicYearNo='{exam_ExamPlan.AcademicYearNo}' and l.Semester='{exam_ExamPlan.Semester}' ) t on a.lessonno=t.lessonno | ||||
--left join (select l.lessonno,l.LessonTypeId,lt.ltorder from lessoninfo l left join CdLessonType lt on l.LessonTypeId=lt.ltid ) t on a.lessonno=t.lessonno | --left join (select l.lessonno,l.LessonTypeId,lt.ltorder from lessoninfo l left join CdLessonType lt on l.LessonTypeId=lt.ltid ) t on a.lessonno=t.lessonno | ||||
where 1=1 and a.LessonSortNo='1' and ((a.Score>=0 and a.Score<60) or a.Score=(-5) or a.Score=(-10)) | where 1=1 and a.LessonSortNo='1' and ((a.Score>=0 and a.Score<60) or a.Score=(-5) or a.Score=(-10)) | ||||
and (b.AbmormityMoveMark<>'1' or len(b.AbmormityMoveMark)=0 or b.AbmormityMoveMark is null) | |||||
and (b.ChangeStatus<>'1' or len(b.ChangeStatus)=0 or b.ChangeStatus is null) | |||||
and AcademicYearNo='{exam_ExamPlan.AcademicYearNo}' and Semester='{exam_ExamPlan.Semester}' | and AcademicYearNo='{exam_ExamPlan.AcademicYearNo}' and Semester='{exam_ExamPlan.Semester}' | ||||
and a.LessonNo not in (select LessonNo from Exam_ExamPlanLesson where EPId='{EPId}') | and a.LessonNo not in (select LessonNo from Exam_ExamPlanLesson where EPId='{EPId}') | ||||
group by t.ltorder,a.LessonNo,a.lessonname,t.LessonTypeId,b.Grade"; | group by t.ltorder,a.LessonNo,a.lessonname,t.LessonTypeId,b.Grade"; | ||||
@@ -358,7 +358,7 @@ and AcademicYearNo='{exam_ExamPlan.AcademicYearNo}' and Semester='{exam_ExamPlan | |||||
join (select l.lessonno,l.LessonTypeId,lt.ltorder from Exam_ExamLesson l left join CdLessonType lt on l.LessonTypeId=lt.ltid where l.elenabled=1 and l.AcademicYearNo='{exam_ExamPlan.AcademicYearNo}' and l.Semester='{exam_ExamPlan.Semester}' ) t on a.lessonno=t.lessonno | join (select l.lessonno,l.LessonTypeId,lt.ltorder from Exam_ExamLesson l left join CdLessonType lt on l.LessonTypeId=lt.ltid where l.elenabled=1 and l.AcademicYearNo='{exam_ExamPlan.AcademicYearNo}' and l.Semester='{exam_ExamPlan.Semester}' ) t on a.lessonno=t.lessonno | ||||
--left join (select l.lessonno,l.LessonTypeId,lt.ltorder from lessoninfo l left join CdLessonType lt on l.LessonTypeId=lt.ltid ) t on a.lessonno=t.lessonno | --left join (select l.lessonno,l.LessonTypeId,lt.ltorder from lessoninfo l left join CdLessonType lt on l.LessonTypeId=lt.ltid ) t on a.lessonno=t.lessonno | ||||
where 1=1 and a.LessonSortNo='1' and ((a.Score>=0 and a.Score<60) or a.Score=(-5) or a.Score=(-10)) | where 1=1 and a.LessonSortNo='1' and ((a.Score>=0 and a.Score<60) or a.Score=(-5) or a.Score=(-10)) | ||||
and (b.AbmormityMoveMark<>'1' or len(b.AbmormityMoveMark)=0 or b.AbmormityMoveMark is null) | |||||
and (b.ChangeStatus<>'1' or len(b.ChangeStatus)=0 or b.ChangeStatus is null) | |||||
and AcademicYearNo='{exam_ExamPlan.AcademicYearNo}' and Semester='{exam_ExamPlan.Semester}' | and AcademicYearNo='{exam_ExamPlan.AcademicYearNo}' and Semester='{exam_ExamPlan.Semester}' | ||||
and LessonNo not in (select LessonNo from Exam_ExamPlanLesson where EPId='{EPId}') | and LessonNo not in (select LessonNo from Exam_ExamPlanLesson where EPId='{EPId}') | ||||
group by t.ltorder,a.LessonNo,a.lessonname,t.LessonTypeId,b.Grade "; | group by t.ltorder,a.LessonNo,a.lessonname,t.LessonTypeId,b.Grade "; | ||||
@@ -94,7 +94,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||||
strSql.Append(@" t.ClassNo,count(1) as StuNum,t.AcademicYearNo,t.Semester,t.ESType,c.ClassName "); | strSql.Append(@" t.ClassNo,count(1) as StuNum,t.AcademicYearNo,t.Semester,t.ESType,c.ClassName "); | ||||
strSql.Append(" FROM Exam_ExamStudent t "); | strSql.Append(" FROM Exam_ExamStudent t "); | ||||
strSql.Append(" left join classinfo c on t.ClassNo=c.ClassNo "); | strSql.Append(" left join classinfo c on t.ClassNo=c.ClassNo "); | ||||
strSql.Append(" WHERE t.ESEnabled=1 and (t.ClassNo is not null and len(t.ClassNo)>0) "); | |||||
strSql.Append(" WHERE t.ESEnabled=1 "); | |||||
var queryParam = queryJson.ToJObject(); | var queryParam = queryJson.ToJObject(); | ||||
// 虚拟参数 | // 虚拟参数 | ||||
var dp = new DynamicParameters(new { }); | var dp = new DynamicParameters(new { }); | ||||
@@ -361,8 +361,11 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||||
{ | { | ||||
strSql.Append( | strSql.Append( | ||||
$@"insert into Exam_ExamStudent(ESId,ClassNo,AcademicYearNo,Semester,StuNo,StuName,ESType,ESEnabled,Grade) | $@"insert into Exam_ExamStudent(ESId,ClassNo,AcademicYearNo,Semester,StuNo,StuName,ESType,ESEnabled,Grade) | ||||
select newid(), a.classno, '{AcademicYearNo}', '{Semester}', a.stuno, a.stuname, '{ESType}', 1,a.Grade from StuInfoBasic a where CheckMark = '1' and stuno not in (select stuno from Exam_ExamStudent where AcademicYearNo = '{AcademicYearNo}' and Semester = '{Semester}' and ESType = '1' union | |||||
select StuNo from StuInfoBasicChange where StuChangeType in ('04','05','06') and CheckStatus='1')"); | |||||
select newid(), a.classno, '{AcademicYearNo}', '{Semester}', a.stuno, a.stuname, '{ESType}', 1,a.Grade | |||||
from StuInfoBasic a where CheckMark = '1' and (ChangeStatus is null or len(ChangeStatus)=0 or ChangeStatus='0') and stuno not in | |||||
(select stuno from Exam_ExamStudent where AcademicYearNo = '{AcademicYearNo}' and Semester = '{Semester}' and ESType = '1' | |||||
)"); | |||||
} | } | ||||
else | else | ||||
{ | { | ||||
@@ -379,9 +382,11 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||||
strSql.Append(@" a left join StuInfoBasic b on b.StuNo=a.StuNo | strSql.Append(@" a left join StuInfoBasic b on b.StuNo=a.StuNo | ||||
where 1=1 and a.LessonSortNo='1' and ((a.Score>=0 and a.Score<60) or a.Score=(-5) or a.Score=(-10)) "); | where 1=1 and a.LessonSortNo='1' and ((a.Score>=0 and a.Score<60) or a.Score=(-5) or a.Score=(-10)) "); | ||||
strSql.Append(" and a.AcademicYearNo ='" + AcademicYearNo + "' and a.Semester ='" + Semester + "' "); | strSql.Append(" and a.AcademicYearNo ='" + AcademicYearNo + "' and a.Semester ='" + Semester + "' "); | ||||
strSql.Append(" and (b.AbmormityMoveMark<>'1' or len(b.AbmormityMoveMark)=0 or b.AbmormityMoveMark is null) "); | |||||
strSql.Append($@" and a.stuno not in (select stuno from Exam_ExamStudent where AcademicYearNo='{AcademicYearNo}' and Semester='{Semester}' and ESType='{ESType}' union | |||||
select StuNo from StuInfoBasicChange where StuChangeType in ('04','05','06') and CheckStatus='1' ) "); | |||||
strSql.Append(" and (b.ChangeStatus<>'1' or len(b.ChangeStatus)=0 or b.ChangeStatus is null) "); | |||||
strSql.Append($@" and a.stuno not in | |||||
(select stuno from Exam_ExamStudent where AcademicYearNo='{AcademicYearNo}' and Semester='{Semester}' and ESType='{ESType}' | |||||
) "); | |||||
strSql.Append(" group by a.stuno,a.stuname,a.classno,b.Grade"); | strSql.Append(" group by a.stuno,a.stuname,a.classno,b.Grade"); | ||||
} | } | ||||
return this.BaseRepository("CollegeMIS").ExecuteBySql(strSql.ToString()); | return this.BaseRepository("CollegeMIS").ExecuteBySql(strSql.ToString()); | ||||