@@ -19,7 +19,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||||
/// </summary> | /// </summary> | ||||
/// <returns></returns> | /// <returns></returns> | ||||
[Column("SCOREID")] | [Column("SCOREID")] | ||||
public string ScoreId { get; set; } | |||||
public int? ScoreId { get; set; } | |||||
/// <summary> | /// <summary> | ||||
/// NoticeBookNo | /// NoticeBookNo | ||||
/// </summary> | /// </summary> | ||||
@@ -321,7 +321,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||||
/// 编辑调用 | /// 编辑调用 | ||||
/// </summary> | /// </summary> | ||||
/// <param name="keyValue"></param> | /// <param name="keyValue"></param> | ||||
public void Modify(string keyValue) | |||||
public void Modify(int? keyValue) | |||||
{ | { | ||||
this.ScoreId = keyValue; | this.ScoreId = keyValue; | ||||
} | } | ||||
@@ -25,7 +25,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||||
/// </summary> | /// </summary> | ||||
public StuScoreNotPassTranService() | public StuScoreNotPassTranService() | ||||
{ | { | ||||
fieldSql=@" | |||||
fieldSql = @" | |||||
t.ScoreId, | t.ScoreId, | ||||
t.NoticeBookNo, | t.NoticeBookNo, | ||||
t.StuNo, | t.StuNo, | ||||
@@ -86,7 +86,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||||
/// </summary> | /// </summary> | ||||
/// <param name="queryJson">条件参数</param> | /// <param name="queryJson">条件参数</param> | ||||
/// <returns></returns> | /// <returns></returns> | ||||
public IEnumerable<StuScoreNotPassTranEntity> GetList( string queryJson ) | |||||
public IEnumerable<StuScoreNotPassTranEntity> GetList(string queryJson) | |||||
{ | { | ||||
try | try | ||||
{ | { | ||||
@@ -179,7 +179,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||||
{ | { | ||||
try | try | ||||
{ | { | ||||
this.BaseRepository("CollegeMIS").Delete<StuScoreNotPassTranEntity>(t=>t.ScoreId == keyValue); | |||||
this.BaseRepository("CollegeMIS").Delete<StuScoreNotPassTranEntity>(t => t.ScoreId == Convert.ToInt32(keyValue)); | |||||
} | } | ||||
catch (Exception ex) | catch (Exception ex) | ||||
{ | { | ||||
@@ -205,7 +205,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||||
{ | { | ||||
if (!string.IsNullOrEmpty(keyValue)) | if (!string.IsNullOrEmpty(keyValue)) | ||||
{ | { | ||||
entity.Modify(keyValue); | |||||
entity.Modify(Convert.ToInt32(keyValue)); | |||||
this.BaseRepository("CollegeMIS").Update(entity); | this.BaseRepository("CollegeMIS").Update(entity); | ||||
} | } | ||||
else | else | ||||
@@ -11,7 +11,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||||
/// 日 期:2023-02-10 10:52 | /// 日 期:2023-02-10 10:52 | ||||
/// 描 述:学籍异动成绩二次补考纪录 | /// 描 述:学籍异动成绩二次补考纪录 | ||||
/// </summary> | /// </summary> | ||||
public class StuScoreNotPassTwoTranEntity | |||||
public class StuScoreNotPassTwoTranEntity | |||||
{ | { | ||||
#region 实体成员 | #region 实体成员 | ||||
/// <summary> | /// <summary> | ||||
@@ -19,7 +19,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||||
/// </summary> | /// </summary> | ||||
/// <returns></returns> | /// <returns></returns> | ||||
[Column("SCOREID")] | [Column("SCOREID")] | ||||
public string ScoreId { get; set; } | |||||
public int? ScoreId { get; set; } | |||||
/// <summary> | /// <summary> | ||||
/// NoticeBookNo | /// NoticeBookNo | ||||
/// </summary> | /// </summary> | ||||
@@ -316,13 +316,13 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||||
/// </summary> | /// </summary> | ||||
public void Create() | public void Create() | ||||
{ | { | ||||
this.ScoreId = Guid.NewGuid().ToString(); | |||||
} | } | ||||
/// <summary> | /// <summary> | ||||
/// 编辑调用 | /// 编辑调用 | ||||
/// </summary> | /// </summary> | ||||
/// <param name="keyValue"></param> | /// <param name="keyValue"></param> | ||||
public void Modify(string keyValue) | |||||
public void Modify(int? keyValue) | |||||
{ | { | ||||
this.ScoreId = keyValue; | this.ScoreId = keyValue; | ||||
} | } | ||||
@@ -25,7 +25,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||||
/// </summary> | /// </summary> | ||||
public StuScoreNotPassTwoTranService() | public StuScoreNotPassTwoTranService() | ||||
{ | { | ||||
fieldSql=@" | |||||
fieldSql = @" | |||||
t.ScoreId, | t.ScoreId, | ||||
t.NoticeBookNo, | t.NoticeBookNo, | ||||
t.StuNo, | t.StuNo, | ||||
@@ -86,7 +86,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||||
/// </summary> | /// </summary> | ||||
/// <param name="queryJson">条件参数</param> | /// <param name="queryJson">条件参数</param> | ||||
/// <returns></returns> | /// <returns></returns> | ||||
public IEnumerable<StuScoreNotPassTwoTranEntity> GetList( string queryJson ) | |||||
public IEnumerable<StuScoreNotPassTwoTranEntity> GetList(string queryJson) | |||||
{ | { | ||||
try | try | ||||
{ | { | ||||
@@ -179,7 +179,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||||
{ | { | ||||
try | try | ||||
{ | { | ||||
this.BaseRepository("CollegeMIS").Delete<StuScoreNotPassTwoTranEntity>(t=>t.ScoreId == keyValue); | |||||
this.BaseRepository("CollegeMIS").Delete<StuScoreNotPassTwoTranEntity>(t => t.ScoreId == Convert.ToInt32(keyValue)); | |||||
} | } | ||||
catch (Exception ex) | catch (Exception ex) | ||||
{ | { | ||||
@@ -205,7 +205,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||||
{ | { | ||||
if (!string.IsNullOrEmpty(keyValue)) | if (!string.IsNullOrEmpty(keyValue)) | ||||
{ | { | ||||
entity.Modify(keyValue); | |||||
entity.Modify(Convert.ToInt32(keyValue)); | |||||
this.BaseRepository("CollegeMIS").Update(entity); | this.BaseRepository("CollegeMIS").Update(entity); | ||||
} | } | ||||
else | else | ||||
@@ -19,7 +19,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||||
/// </summary> | /// </summary> | ||||
/// <returns></returns> | /// <returns></returns> | ||||
[Column("SCOREID")] | [Column("SCOREID")] | ||||
public string ScoreId { get; set; } | |||||
public int? ScoreId { get; set; } | |||||
/// <summary> | /// <summary> | ||||
/// NoticeBookNo | /// NoticeBookNo | ||||
/// </summary> | /// </summary> | ||||
@@ -333,7 +333,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||||
/// 编辑调用 | /// 编辑调用 | ||||
/// </summary> | /// </summary> | ||||
/// <param name="keyValue"></param> | /// <param name="keyValue"></param> | ||||
public void Modify(string keyValue) | |||||
public void Modify(int? keyValue) | |||||
{ | { | ||||
this.ScoreId = keyValue; | this.ScoreId = keyValue; | ||||
} | } | ||||
@@ -181,7 +181,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||||
{ | { | ||||
try | try | ||||
{ | { | ||||
this.BaseRepository("CollegeMIS").Delete<StuScoreTranEntity>(t => t.ScoreId == keyValue); | |||||
this.BaseRepository("CollegeMIS").Delete<StuScoreTranEntity>(t => t.ScoreId == Convert.ToInt32(keyValue)); | |||||
} | } | ||||
catch (Exception ex) | catch (Exception ex) | ||||
{ | { | ||||
@@ -205,9 +205,9 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||||
{ | { | ||||
try | try | ||||
{ | { | ||||
if (!string.IsNullOrEmpty(keyValue.ToString())) | |||||
if (!string.IsNullOrEmpty(keyValue)) | |||||
{ | { | ||||
entity.Modify(keyValue); | |||||
entity.Modify(Convert.ToInt32(keyValue)); | |||||
this.BaseRepository("CollegeMIS").Update(entity); | this.BaseRepository("CollegeMIS").Update(entity); | ||||
} | } | ||||
else | else | ||||
@@ -457,15 +457,52 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||||
#endregion | #endregion | ||||
#region 成绩(StuScore,新-写入,旧-删除;) | #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 | #endregion | ||||
#region 课表(StuSelectLessonList,新-写入,旧-删除;) | #region 课表(StuSelectLessonList,新-写入,旧-删除;) | ||||
#endregion | #endregion | ||||
#region 选修课表(StuSelectLessonListOfElective,新-写入,旧-删除;OpenLessonPlanOfElective,旧-修改已报名的学生数量字段;) | #region 选修课表(StuSelectLessonListOfElective,新-写入,旧-删除;OpenLessonPlanOfElective,旧-修改已报名的学生数量字段;) | ||||
#endregion | #endregion | ||||
#region 补考成绩(StuScoreNotPass,新-写入,旧-删除;) | #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 | #endregion | ||||
#region 二次补考(StuScoreNotPassTwo,新-写入,旧-删除;) | #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 | #endregion | ||||
#region 助学金奖学金(ScholarshipAudit,新-写入,旧-删除;) | #region 助学金奖学金(ScholarshipAudit,新-写入,旧-删除;) | ||||
#endregion | #endregion | ||||
@@ -505,7 +542,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||||
#region 课表(StuSelectLessonList,旧-写入新班级课表数据;) | #region 课表(StuSelectLessonList,旧-写入新班级课表数据;) | ||||
#endregion | #endregion | ||||
} | } | ||||
else if(upTrua.AnomalousType == "02" || upTrua.AnomalousType == "05" || upTrua.AnomalousType == "06") | |||||
else if (upTrua.AnomalousType == "02" || upTrua.AnomalousType == "05" || upTrua.AnomalousType == "06") | |||||
{ | { | ||||
#region 学籍操作 | #region 学籍操作 | ||||
if (upTrua.StuStatus == 1) //如果是保留学籍 修改学籍 否则删除学籍 | if (upTrua.StuStatus == 1) //如果是保留学籍 修改学籍 否则删除学籍 | ||||