|
|
@@ -422,7 +422,6 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration |
|
|
|
upTrua.CheckUserId = userInfo.userId; |
|
|
|
upTrua.CheckTime = DateTime.Now; |
|
|
|
upTrua.F_EnabledMark = 1; |
|
|
|
UpStuTran.Add(upTrua); |
|
|
|
|
|
|
|
var stulist = this.BaseRepository("CollegeMIS").FindEntity<StuInfoBasicEntity>(x => x.StuId == upTrua.StuId); |
|
|
|
var InsertStuTran = new StuInfoBasicTranEntity(); |
|
|
@@ -614,7 +613,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration |
|
|
|
StuId = upTrua.StuId, |
|
|
|
StuNo = upTrua.StuNo, |
|
|
|
StuName = upTrua.StuName, |
|
|
|
ClassNo = upTrua.ClassNo, |
|
|
|
ClassNo = upTrua.NewClassNo, |
|
|
|
MajorNo = upTrua.NewMajorNo, |
|
|
|
DeptNo = upTrua.NewDeptNo, |
|
|
|
Grade = upTrua.NewGrade, |
|
|
@@ -633,23 +632,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration |
|
|
|
else if (upTrua.AnomalousType == "02" || upTrua.AnomalousType == "05" || upTrua.AnomalousType == "06") |
|
|
|
{ |
|
|
|
#region 学籍操作 |
|
|
|
if (upTrua.StuStatus == 1) //如果是保留学籍 修改学籍 否则删除学籍 |
|
|
|
{ |
|
|
|
StuEntity = new StuInfoBasicEntity |
|
|
|
{ |
|
|
|
//修改学籍表信息 |
|
|
|
StuId = upTrua.StuId, |
|
|
|
StuNo = upTrua.StuNo, |
|
|
|
StuName = upTrua.StuName, |
|
|
|
ClassNo = upTrua.ClassNo, |
|
|
|
MajorNo = upTrua.NewMajorNo, |
|
|
|
DeptNo = upTrua.NewDeptNo, |
|
|
|
Grade = upTrua.NewGrade, |
|
|
|
EduSystem = upTrua.EduSystem |
|
|
|
}; |
|
|
|
upStulist.Add(StuEntity); |
|
|
|
} |
|
|
|
else |
|
|
|
if (upTrua.StuStatus == 0) //如果保留学籍,basic不动;否则删除学籍basic,备份到basictran; |
|
|
|
{ |
|
|
|
//删除学籍 |
|
|
|
db.Delete<StuInfoBasicEntity>(x => x.StuId == upTrua.StuId); |
|
|
@@ -668,15 +651,16 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration |
|
|
|
break; |
|
|
|
case "03": //复学 |
|
|
|
//学籍异动列表 |
|
|
|
if (upTrua.IsReturnSchool == "1") |
|
|
|
if (upTrua.IsReturnSchool == "0") |
|
|
|
{ |
|
|
|
upTrua.IsReturnSchool = "0"; |
|
|
|
if (upTrua.RecoverStuStatus == "0") //恢复学籍 |
|
|
|
upTrua.IsReturnSchool = "1"; |
|
|
|
//1.basic找,有就改;2.basictran复制并改; |
|
|
|
if (stulist == null) |
|
|
|
{ |
|
|
|
#region 重新生成学籍 |
|
|
|
//复学的学籍 |
|
|
|
var ReturnStu = this.BaseRepository("CollegeMIS").FindEntity<StuInfoBasicTranEntity>(x => x.StuId == upTrua.StuId); |
|
|
|
//todo:根据页面更新系专业班级年级数据; |
|
|
|
#region 重新生成学籍 |
|
|
|
|
|
|
|
addTruan.StuId = ReturnStu.StuId; |
|
|
|
addTruan.StuNo = ReturnStu.StuNo; |
|
|
|
addTruan.StuCode = ReturnStu.StuCode; |
|
|
@@ -852,13 +836,22 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration |
|
|
|
addTruan.CheckMark = "0"; |
|
|
|
Stulist.Add(addTruan); |
|
|
|
#endregion |
|
|
|
|
|
|
|
} |
|
|
|
if (upTrua.RecoverWriteMark == "0") //恢复账号 |
|
|
|
else |
|
|
|
{ |
|
|
|
stulist.DeptNo = upTrua.NewDeptNo; |
|
|
|
stulist.MajorNo = upTrua.NewMajorNo; |
|
|
|
stulist.ClassNo = upTrua.NewClassNo; |
|
|
|
stulist.Grade = upTrua.NewGrade; |
|
|
|
db.Update(stulist); |
|
|
|
} |
|
|
|
|
|
|
|
if (upTrua.RecoverWriteMark == "1") //恢复账号 |
|
|
|
{ |
|
|
|
#region 用户表 |
|
|
|
|
|
|
|
db1.ExecuteBySql(" update LR_Base_User set F_EnabledMark= 1 where F_EnCode='" + upTrua.StuNo + "' and F_Account ='" + upTrua.StuNo + "'and F_RealName='" + upTrua.StuName + "' and F_IdentityCardNo ='" + upTrua.IdentityCardNo + "' "); |
|
|
|
UpStuTran.Add(upTrua); //修改学籍异动表 为复学 |
|
|
|
|
|
|
|
#endregion |
|
|
|
} |
|
|
@@ -903,6 +896,8 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration |
|
|
|
default: |
|
|
|
break; |
|
|
|
} |
|
|
|
|
|
|
|
UpStuTran.Add(upTrua); |
|
|
|
} |
|
|
|
db.Insert(InStuinTran); //学籍异动记录 |
|
|
|
db.Update(UpStuTran); //修改学籍异动信息 |
|
|
|