Parcourir la source

学籍异动审核 成绩,补考成绩,二次补考成绩

新疆警官学校中职
ndbs il y a 1 an
Parent
révision
b8821a8bea
7 fichiers modifiés avec 58 ajouts et 21 suppressions
  1. +2
    -2
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuScoreNotPassTran/StuScoreNotPassTranEntity.cs
  2. +4
    -4
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuScoreNotPassTran/StuScoreNotPassTranService.cs
  3. +4
    -4
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuScoreNotPassTwoTran/StuScoreNotPassTwoTranEntity.cs
  4. +4
    -4
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuScoreNotPassTwoTran/StuScoreNotPassTwoTranService.cs
  5. +2
    -2
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuScoreTran/StuScoreTranEntity.cs
  6. +3
    -3
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuScoreTran/StuScoreTranService.cs
  7. +39
    -2
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuTransferInfo/StuTransferInfoService.cs

+ 2
- 2
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuScoreNotPassTran/StuScoreNotPassTranEntity.cs Voir le fichier

@@ -19,7 +19,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
/// </summary>
/// <returns></returns>
[Column("SCOREID")]
public string ScoreId { get; set; }
public int? ScoreId { get; set; }
/// <summary>
/// NoticeBookNo
/// </summary>
@@ -321,7 +321,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
/// 编辑调用
/// </summary>
/// <param name="keyValue"></param>
public void Modify(string keyValue)
public void Modify(int? keyValue)
{
this.ScoreId = keyValue;
}


+ 4
- 4
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuScoreNotPassTran/StuScoreNotPassTranService.cs Voir le fichier

@@ -25,7 +25,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
/// </summary>
public StuScoreNotPassTranService()
{
fieldSql=@"
fieldSql = @"
t.ScoreId,
t.NoticeBookNo,
t.StuNo,
@@ -86,7 +86,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
/// </summary>
/// <param name="queryJson">条件参数</param>
/// <returns></returns>
public IEnumerable<StuScoreNotPassTranEntity> GetList( string queryJson )
public IEnumerable<StuScoreNotPassTranEntity> GetList(string queryJson)
{
try
{
@@ -179,7 +179,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
{
try
{
this.BaseRepository("CollegeMIS").Delete<StuScoreNotPassTranEntity>(t=>t.ScoreId == keyValue);
this.BaseRepository("CollegeMIS").Delete<StuScoreNotPassTranEntity>(t => t.ScoreId == Convert.ToInt32(keyValue));
}
catch (Exception ex)
{
@@ -205,7 +205,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
{
if (!string.IsNullOrEmpty(keyValue))
{
entity.Modify(keyValue);
entity.Modify(Convert.ToInt32(keyValue));
this.BaseRepository("CollegeMIS").Update(entity);
}
else


+ 4
- 4
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuScoreNotPassTwoTran/StuScoreNotPassTwoTranEntity.cs Voir le fichier

@@ -11,7 +11,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
/// 日 期:2023-02-10 10:52
/// 描 述:学籍异动成绩二次补考纪录
/// </summary>
public class StuScoreNotPassTwoTranEntity
public class StuScoreNotPassTwoTranEntity
{
#region 实体成员
/// <summary>
@@ -19,7 +19,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
/// </summary>
/// <returns></returns>
[Column("SCOREID")]
public string ScoreId { get; set; }
public int? ScoreId { get; set; }
/// <summary>
/// NoticeBookNo
/// </summary>
@@ -316,13 +316,13 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
/// </summary>
public void Create()
{
this.ScoreId = Guid.NewGuid().ToString();
}
/// <summary>
/// 编辑调用
/// </summary>
/// <param name="keyValue"></param>
public void Modify(string keyValue)
public void Modify(int? keyValue)
{
this.ScoreId = keyValue;
}


+ 4
- 4
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuScoreNotPassTwoTran/StuScoreNotPassTwoTranService.cs Voir le fichier

@@ -25,7 +25,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
/// </summary>
public StuScoreNotPassTwoTranService()
{
fieldSql=@"
fieldSql = @"
t.ScoreId,
t.NoticeBookNo,
t.StuNo,
@@ -86,7 +86,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
/// </summary>
/// <param name="queryJson">条件参数</param>
/// <returns></returns>
public IEnumerable<StuScoreNotPassTwoTranEntity> GetList( string queryJson )
public IEnumerable<StuScoreNotPassTwoTranEntity> GetList(string queryJson)
{
try
{
@@ -179,7 +179,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
{
try
{
this.BaseRepository("CollegeMIS").Delete<StuScoreNotPassTwoTranEntity>(t=>t.ScoreId == keyValue);
this.BaseRepository("CollegeMIS").Delete<StuScoreNotPassTwoTranEntity>(t => t.ScoreId == Convert.ToInt32(keyValue));
}
catch (Exception ex)
{
@@ -205,7 +205,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
{
if (!string.IsNullOrEmpty(keyValue))
{
entity.Modify(keyValue);
entity.Modify(Convert.ToInt32(keyValue));
this.BaseRepository("CollegeMIS").Update(entity);
}
else


+ 2
- 2
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuScoreTran/StuScoreTranEntity.cs Voir le fichier

@@ -19,7 +19,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
/// </summary>
/// <returns></returns>
[Column("SCOREID")]
public string ScoreId { get; set; }
public int? ScoreId { get; set; }
/// <summary>
/// NoticeBookNo
/// </summary>
@@ -333,7 +333,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
/// 编辑调用
/// </summary>
/// <param name="keyValue"></param>
public void Modify(string keyValue)
public void Modify(int? keyValue)
{
this.ScoreId = keyValue;
}


+ 3
- 3
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuScoreTran/StuScoreTranService.cs Voir le fichier

@@ -181,7 +181,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
{
try
{
this.BaseRepository("CollegeMIS").Delete<StuScoreTranEntity>(t => t.ScoreId == keyValue);
this.BaseRepository("CollegeMIS").Delete<StuScoreTranEntity>(t => t.ScoreId == Convert.ToInt32(keyValue));
}
catch (Exception ex)
{
@@ -205,9 +205,9 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
{
try
{
if (!string.IsNullOrEmpty(keyValue.ToString()))
if (!string.IsNullOrEmpty(keyValue))
{
entity.Modify(keyValue);
entity.Modify(Convert.ToInt32(keyValue));
this.BaseRepository("CollegeMIS").Update(entity);
}
else


+ 39
- 2
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuTransferInfo/StuTransferInfoService.cs Voir le fichier

@@ -457,15 +457,52 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
#endregion

#region 成绩(StuScore,新-写入,旧-删除;)

var StuScoreHistory = db.FindList<StuScoreEntity>(x => x.StuNo == InsertStuTran.StuNo
&& x.DeptNo == InsertStuTran.DeptNo && x.MajorNo == InsertStuTran.MajorNo
&& x.ClassNo == InsertStuTran.ClassNo && x.F_SchoolId == InsertStuTran.F_SchoolId);
if (StuScoreHistory != null)
{
foreach (var itemScore in StuScoreHistory)
{
//插入新数据
db.ExecuteBySql(" insert into StuScoreTran select * from StuScore where Scoreid = '" + itemScore.ScoreId + "'");
//删除旧数据
db.Delete<StuScoreEntity>(x => x.ScoreId == itemScore.ScoreId);
}
}
#endregion
#region 课表(StuSelectLessonList,新-写入,旧-删除;)
#endregion
#region 选修课表(StuSelectLessonListOfElective,新-写入,旧-删除;OpenLessonPlanOfElective,旧-修改已报名的学生数量字段;)
#endregion
#region 补考成绩(StuScoreNotPass,新-写入,旧-删除;)
var StuScoreNotPassHistory = db.FindList<StuScoreNotPassEntity>(x => x.StuNo == InsertStuTran.StuNo
&& x.DeptNo == InsertStuTran.DeptNo && x.MajorNo == InsertStuTran.MajorNo
&& x.ClassNo == InsertStuTran.ClassNo && x.F_SchoolId == InsertStuTran.F_SchoolId);
if (StuScoreNotPassHistory != null)
{
foreach (var itemScore in StuScoreNotPassHistory)
{
db.ExecuteBySql(" insert into StuScoreNotPassTran select * from StuScoreNotPass where Scoreid = '" + itemScore.ScoreId + "'");
//删除旧数据
db.Delete<StuScoreNotPassTranEntity>(x => x.ScoreId == itemScore.ScoreId);
}
}
#endregion
#region 二次补考(StuScoreNotPassTwo,新-写入,旧-删除;)
var StuScoreNotPassTwoHistory = db.FindList<StuScoreNotPassTwoEntity>(x => x.StuNo == InsertStuTran.StuNo
&& x.DeptNo == InsertStuTran.DeptNo && x.MajorNo == InsertStuTran.MajorNo
&& x.ClassNo == InsertStuTran.ClassNo && x.F_SchoolId == InsertStuTran.F_SchoolId);
if (StuScoreNotPassTwoHistory != null)
{
foreach (var itemScore in StuScoreNotPassTwoHistory)
{
//插入数据
db.ExecuteBySql(" insert into StuScoreNotPassTwoTran select * from StuScoreNotPassTwo where Scoreid = '" + itemScore.ScoreId + "'");
//删除旧数据
db.Delete<StuScoreNotPassTwoTranEntity>(x => x.ScoreId == itemScore.ScoreId);
}
}
#endregion
#region 助学金奖学金(ScholarshipAudit,新-写入,旧-删除;)
#endregion
@@ -505,7 +542,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
#region 课表(StuSelectLessonList,旧-写入新班级课表数据;)
#endregion
}
else if(upTrua.AnomalousType == "02" || upTrua.AnomalousType == "05" || upTrua.AnomalousType == "06")
else if (upTrua.AnomalousType == "02" || upTrua.AnomalousType == "05" || upTrua.AnomalousType == "06")
{
#region 学籍操作
if (upTrua.StuStatus == 1) //如果是保留学籍 修改学籍 否则删除学籍


Chargement…
Annuler
Enregistrer