Procházet zdrojové kódy

【修改】学籍异动审核:课表、选修课表;

新疆警官学校中职
dyy před 1 rokem
rodič
revize
0dbbfe3f1c
1 změnil soubory, kde provedl 33 přidání a 0 odebrání
  1. +33
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuTransferInfo/StuTransferInfoService.cs

+ 33
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuTransferInfo/StuTransferInfoService.cs Zobrazit soubor

@@ -5,6 +5,7 @@ using Learun.Util;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;

namespace Learun.Application.TwoDevelopment.EducationalAdministration
@@ -472,8 +473,37 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
}
#endregion
#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
#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
#region 补考成绩(StuScoreNotPass,新-写入,旧-删除;)
var StuScoreNotPassHistory = db.FindList<StuScoreNotPassEntity>(x => x.StuNo == InsertStuTran.StuNo
@@ -540,6 +570,9 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
#endregion

#region 课表(StuSelectLessonList,旧-写入新班级课表数据;)

//todo:

#endregion
}
else if (upTrua.AnomalousType == "02" || upTrua.AnomalousType == "05" || upTrua.AnomalousType == "06")


Načítá se…
Zrušit
Uložit