From 225a02a274be64861a6a039564004b0369565871 Mon Sep 17 00:00:00 2001 From: dyy <807692433@qq.com> Date: Wed, 8 Feb 2023 16:51:56 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E4=BF=AE=E6=94=B9=E3=80=91=E5=AD=A6?= =?UTF-8?q?=E7=B1=8D=E5=BC=82=E5=8A=A8=E5=AE=A1=E6=A0=B8=E6=96=B9=E6=B3=95?= =?UTF-8?q?=EF=BC=9A=E7=BB=86=E5=88=86=E8=A6=81=E5=A4=84=E7=90=86=E7=9A=84?= =?UTF-8?q?=E5=8A=9F=E8=83=BD=E6=A8=A1=E5=9D=97=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../StuTransferInfo/StuTransferInfoService.cs | 161 ++++++++++-------- 1 file changed, 87 insertions(+), 74 deletions(-) diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuTransferInfo/StuTransferInfoService.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuTransferInfo/StuTransferInfoService.cs index 550c0c6f8..689c1d5e4 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuTransferInfo/StuTransferInfoService.cs +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuTransferInfo/StuTransferInfoService.cs @@ -427,35 +427,26 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration switch (upTrua.AnomalousType) { - case "01": //留级 - case "07": //转班 - case "08": //转专业 + //case "01": //留级 + //case "07": //转班 + //case "08": //转专业 - #region 复制一份学生学籍表 - copyStuInfoBasic(upTrua, stulist, InsertStuTran); - InStuinTran.Add(InsertStuTran); - #endregion + // break; - #region 学籍操作 + //case "02": //转校 + //case "05": //退学 + //case "06": //休学 - 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); - #endregion + // #region 复制一份学生学籍表 + // copyStuInfoBasic(upTrua, stulist, InsertStuTran); + // InStuinTran.Add(InsertStuTran); + // #endregion - break; + // break; + case "01": //留级 + case "07": //转班 + case "08": //转专业 case "02": //转校 case "05": //退学 case "06": //休学 @@ -465,9 +456,32 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration InStuinTran.Add(InsertStuTran); #endregion - #region 学籍操作 - if (upTrua.StuStatus == 1) //如果是保留学籍 修改学籍 否则删除学籍 + #region 成绩(StuScore,新-写入,旧-删除;StuSelectLessonList,新-写入,旧-删除;StuSelectLessonListOfElective,新-写入,旧-删除;OpenLessonPlanOfElective,旧-修改;) + + #endregion + #region 补考成绩(StuScoreNotPass,新-写入,旧-删除;) + #endregion + #region 二次补考(StuScoreNotPassTwo,新-写入,旧-删除;) + #endregion + #region 助学金奖学金(ScholarshipAudit,新-写入,旧-删除;) + #endregion + #region 学生心理健康档案(APStuHealthRecords,新-写入,旧-删除;) + #endregion + #region 兵役一(MSRIntentionManagement,新-写入,旧-删除;) + #endregion + #region 兵役二(MSRMilitaryRecord,新-写入,旧-删除;) + #endregion + #region 兵役三(MSRMilitaryServiceRegistration,新-写入,旧-删除;) + #endregion + #region 奖励(StuEncourgement,新-写入,旧-删除;) + #endregion + #region 处分(StuPunishment,新-写入,旧-删除;) + #endregion + + if (upTrua.AnomalousType == "01" || upTrua.AnomalousType == "07" || upTrua.AnomalousType == "08") { + #region 学籍操作 + StuEntity = new StuInfoBasicEntity { //修改学籍表信息 @@ -480,24 +494,48 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration Grade = upTrua.NewGrade, EduSystem = upTrua.EduSystem }; + upStulist.Add(StuEntity); + #endregion + + #region 课表(StuSelectLessonList,旧-写入;) + #endregion } - else + else if(upTrua.AnomalousType == "02" || upTrua.AnomalousType == "05" || upTrua.AnomalousType == "06") { - //删除学籍 - db.Delete(x => x.StuId == upTrua.StuId); - } - #endregion + #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 + { + //删除学籍 + db.Delete(x => x.StuId == upTrua.StuId); + } + #endregion - #region 删除用户表 + #region 删除用户表 - //是注销账号,账号禁用 - if (upTrua.F_WriteMark == 1) - { - db1.ExecuteBySql(" update LR_Base_User set F_EnabledMark=0 where F_EnCode='" + upTrua.StuNo + "' and F_Account ='" + upTrua.StuNo + "'and F_RealName='" + upTrua.StuName + "' and F_IdentityCardNo ='" + upTrua.IdentityCardNo + "' "); + //是注销账号,账号禁用 + if (upTrua.F_WriteMark == 1) + { + db1.ExecuteBySql(" update LR_Base_User set F_EnabledMark=0 where F_EnCode='" + upTrua.StuNo + "' and F_Account ='" + upTrua.StuNo + "'and F_RealName='" + upTrua.StuName + "' and F_IdentityCardNo ='" + upTrua.IdentityCardNo + "' "); + } + #endregion } - #endregion - break; case "03": //复学 //学籍异动列表 @@ -508,7 +546,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration { //复学的学籍 var ReturnStu = this.BaseRepository("CollegeMIS").FindEntity(x => x.StuId == upTrua.StuId); - + //todo:根据页面更新系专业班级年级数据; #region 重新生成学籍 addTruan.StuId = ReturnStu.StuId; addTruan.StuNo = ReturnStu.StuNo; @@ -688,10 +726,17 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration } if (upTrua.RecoverWriteMark == "0") //恢复账号 { + #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 } } + + #region 课表(StuSelectLessonList,旧-写入;) + #endregion break; case "04": //转入 #region 学籍表加数据 @@ -716,43 +761,11 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration stuInfoBasicEntity.IdCardType = upTrua.IdCardType; db.Insert(stuInfoBasicEntity); #endregion - break; - default: - #region 复制一份学生学籍表 - copyStuInfoBasic(upTrua, stulist, InsertStuTran); - InStuinTran.Add(InsertStuTran); - #endregion - #region 学籍操作 - ////删除学籍 - //db.Delete(x => x.StuId == upTrua.StuId); - if (upTrua.StuStatus == 0) //如果是保留学籍 修改学籍 否则删除学籍 - { - StuEntity = new StuInfoBasicEntity - { - //修改学籍表信息 - StuId = upTrua.StuId, - StuNo = upTrua.StuNo, - StuName = upTrua.StuName, - ClassNo = upTrua.ClassNo, - MajorNo = upTrua.MajorNo, - DeptNo = upTrua.DeptNo, - Grade = upTrua.Grade, - EduSystem = upTrua.EduSystem - }; - upStulist.Add(StuEntity); - } + #region 课表(StuSelectLessonList,旧-写入;) #endregion - - #region 删除用户表 - - //是注销账号,账号禁用 - if (upTrua.F_WriteMark == 1) - { - db1.ExecuteBySql(" update LR_Base_User set F_EnabledMark=0 where F_EnCode='" + upTrua.StuNo + "' and F_Account ='" + upTrua.StuNo + "'and F_RealName='" + upTrua.StuName + "' and F_IdentityCardNo ='" + upTrua.IdentityCardNo + "' "); - } - #endregion - + break; + default: break; } }