|
@@ -5,6 +5,7 @@ using Learun.Util; |
|
|
using System; |
|
|
using System; |
|
|
using System.Collections.Generic; |
|
|
using System.Collections.Generic; |
|
|
using System.Data; |
|
|
using System.Data; |
|
|
|
|
|
using System.Linq; |
|
|
using System.Text; |
|
|
using System.Text; |
|
|
|
|
|
|
|
|
namespace Learun.Application.TwoDevelopment.EducationalAdministration |
|
|
namespace Learun.Application.TwoDevelopment.EducationalAdministration |
|
@@ -472,8 +473,37 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration |
|
|
} |
|
|
} |
|
|
#endregion |
|
|
#endregion |
|
|
#region 课表(StuSelectLessonList,新-写入,旧-删除;) |
|
|
#region 课表(StuSelectLessonList,新-写入,旧-删除;) |
|
|
|
|
|
var StuSelectLessonListHistory = db.FindList<StuSelectLessonListEntity>(x => x.StuNo == upTrua.StuNo && x.StuName == upTrua.StuName |
|
|
|
|
|
&& x.DeptNo == upTrua.DeptNo && x.MajorNo == upTrua.MajorNo && x.ClassNo == upTrua.ClassNo && x.Grade == upTrua.Grade); |
|
|
|
|
|
if (StuSelectLessonListHistory.Any()) |
|
|
|
|
|
{ |
|
|
|
|
|
foreach (var entity in StuSelectLessonListHistory) |
|
|
|
|
|
{ |
|
|
|
|
|
//插入新数据 |
|
|
|
|
|
db.ExecuteBySql("insert into StuSelectLessonListTran select * from StuSelectLessonList where SelectId='" + entity.SelectId + "'"); |
|
|
|
|
|
//删除旧数据 |
|
|
|
|
|
db.Delete<StuSelectLessonListEntity>(x => x.SelectId == entity.SelectId); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
#endregion |
|
|
#endregion |
|
|
#region 选修课表(StuSelectLessonListOfElective,新-写入,旧-删除;OpenLessonPlanOfElective,旧-修改已报名的学生数量字段;) |
|
|
#region 选修课表(StuSelectLessonListOfElective,新-写入,旧-删除;OpenLessonPlanOfElective,旧-修改已报名的学生数量字段;) |
|
|
|
|
|
var StuSelectLessonListOfElectiveHistory = db.FindList<StuSelectLessonListOfElectiveEntity>(x => x.StuNo == upTrua.StuNo && x.StuName == upTrua.StuName |
|
|
|
|
|
&& x.DeptNo == upTrua.DeptNo && x.MajorNo == upTrua.MajorNo && x.ClassNo == upTrua.ClassNo && x.Grade == upTrua.Grade); |
|
|
|
|
|
if (StuSelectLessonListOfElectiveHistory.Any()) |
|
|
|
|
|
{ |
|
|
|
|
|
foreach (var entity in StuSelectLessonListOfElectiveHistory) |
|
|
|
|
|
{ |
|
|
|
|
|
//插入新数据 |
|
|
|
|
|
db.ExecuteBySql("insert into StuSelectLessonListOfElectiveTran select * from StuSelectLessonListOfElective where Id='" + entity.Id + "'"); |
|
|
|
|
|
//修改旧数据:报名成功时,选课表中报名成功人数字段减一; |
|
|
|
|
|
if (entity.Status == 2) |
|
|
|
|
|
{ |
|
|
|
|
|
db.ExecuteBySql("update OpenLessonPlanOfElective set StuNum=StuNum-1 where Id='" + entity.OLPEId + "'"); |
|
|
|
|
|
} |
|
|
|
|
|
//删除旧数据 |
|
|
|
|
|
db.Delete<StuSelectLessonListOfElectiveEntity>(x => x.Id == entity.Id); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
#endregion |
|
|
#endregion |
|
|
#region 补考成绩(StuScoreNotPass,新-写入,旧-删除;) |
|
|
#region 补考成绩(StuScoreNotPass,新-写入,旧-删除;) |
|
|
var StuScoreNotPassHistory = db.FindList<StuScoreNotPassEntity>(x => x.StuNo == InsertStuTran.StuNo |
|
|
var StuScoreNotPassHistory = db.FindList<StuScoreNotPassEntity>(x => x.StuNo == InsertStuTran.StuNo |
|
@@ -540,6 +570,9 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration |
|
|
#endregion |
|
|
#endregion |
|
|
|
|
|
|
|
|
#region 课表(StuSelectLessonList,旧-写入新班级课表数据;) |
|
|
#region 课表(StuSelectLessonList,旧-写入新班级课表数据;) |
|
|
|
|
|
|
|
|
|
|
|
//todo: |
|
|
|
|
|
|
|
|
#endregion |
|
|
#endregion |
|
|
} |
|
|
} |
|
|
else if (upTrua.AnomalousType == "02" || upTrua.AnomalousType == "05" || upTrua.AnomalousType == "06") |
|
|
else if (upTrua.AnomalousType == "02" || upTrua.AnomalousType == "05" || upTrua.AnomalousType == "06") |
|
|