diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuScore/InputScoreIndexInTeacher.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuScore/InputScoreIndexInTeacher.js index f077d656a..68b017efa 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuScore/InputScoreIndexInTeacher.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuScore/InputScoreIndexInTeacher.js @@ -315,6 +315,10 @@ var bootstrap = function ($, learun) { $('#lr_save').show(); //隐藏“开始录入”按钮 $('#lr_input').hide(); + //隐藏“提交教务处”、“去审核成绩”、“设置成绩比例”按钮 + $('#lr_check').hide(); + $('#lr_uncheck').hide(); + $('#lr_setScale').hide(); //显示“倒计时” $('.timeBox').show(); $('#minutes').html($('#minutes').attr('data-minutes')); @@ -371,6 +375,10 @@ var bootstrap = function ($, learun) { $('#lr_save').hide(); //显示“开始录入”按钮 $('#lr_input').show(); + //显示“提交教务处”、“去审核成绩”、“设置成绩比例”按钮 + $('#lr_check').show(); + $('#lr_uncheck').show(); + $('#lr_setScale').show(); //隐藏“倒计时” $('.timeBox').hide(); //停止倒计时 diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuScore/InputScoreIndexOfElectiveInTeacher.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuScore/InputScoreIndexOfElectiveInTeacher.js index d97e099bc..8c713eeaa 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuScore/InputScoreIndexOfElectiveInTeacher.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuScore/InputScoreIndexOfElectiveInTeacher.js @@ -313,6 +313,10 @@ var bootstrap = function ($, learun) { $('#lr_save').show(); //隐藏“开始录入”按钮 $('#lr_input').hide(); + //隐藏“提交教务处”、“去审核成绩”按钮 + $('#lr_check').hide(); + $('#lr_uncheck').hide(); + $('#lr_setScale').hide(); //显示“倒计时” $('.timeBox').show(); $('#minutes').html($('#minutes').attr('data-minutes')); @@ -369,6 +373,10 @@ var bootstrap = function ($, learun) { $('#lr_save').hide(); //显示“开始录入”按钮 $('#lr_input').show(); + //显示“提交教务处”、“去审核成绩”、“设置成绩比例”按钮 + $('#lr_check').show(); + $('#lr_uncheck').show(); + $('#lr_setScale').show(); //隐藏“倒计时” $('.timeBox').hide(); //停止倒计时 @@ -522,7 +530,7 @@ var bootstrap = function ($, learun) { refreshGirdData2(); } }); - + } else { learun.alert.warning("学生成绩不存在!"); return false; diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuScoreNotPass/InputScoreIndexInTeacher.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuScoreNotPass/InputScoreIndexInTeacher.js index 3fca68a6f..bb935d524 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuScoreNotPass/InputScoreIndexInTeacher.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuScoreNotPass/InputScoreIndexInTeacher.js @@ -134,7 +134,7 @@ var bootstrap = function ($, learun) { ]; headDataEdit = [ { - label: '补考成绩', name: 'TermEndScore', width: 80, align: "left", + label: '期末成绩', name: 'TermEndScore', width: 80, align: "left", edit: { type: 'input', inputType: 'number', @@ -215,6 +215,9 @@ var bootstrap = function ($, learun) { $('#lr_save').show(); //隐藏“开始录入”按钮 $('#lr_input').hide(); + //隐藏“提交教务处”、“去审核成绩”按钮 + $('#lr_check').hide(); + $('#lr_uncheck').hide(); //显示“倒计时” $('.timeBox').show(); $('#minutes').html($('#minutes').attr('data-minutes')); @@ -270,6 +273,9 @@ var bootstrap = function ($, learun) { $('#lr_save').hide(); //显示“开始录入”按钮 $('#lr_input').show(); + //显示“提交教务处”、“去审核成绩”按钮 + $('#lr_check').show(); + $('#lr_uncheck').show(); //隐藏“倒计时” $('.timeBox').hide(); //停止倒计时 @@ -392,7 +398,7 @@ var bootstrap = function ($, learun) { learun.alert.warning("当前班级成绩由账号为" + data.EditUserId + "的教师在使用!"); return false; } - } + } rowJson = $('#gridtable').jfGridGet('showData'); columnJson = $('#gridtable').jfGridGet('settingInfo').headData; @@ -414,7 +420,7 @@ var bootstrap = function ($, learun) { } }); - + } else { learun.alert.warning("学生成绩不存在!"); return false; diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuScoreNotPassTwo/InputScoreIndexInTeacher.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuScoreNotPassTwo/InputScoreIndexInTeacher.js index 4ad1a08aa..8c113964a 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuScoreNotPassTwo/InputScoreIndexInTeacher.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuScoreNotPassTwo/InputScoreIndexInTeacher.js @@ -134,7 +134,7 @@ var bootstrap = function ($, learun) { ]; headDataEdit = [ { - label: '补考成绩', name: 'TermEndScore', width: 80, align: "left", + label: '期末成绩', name: 'TermEndScore', width: 80, align: "left", edit: { type: 'input', inputType: 'number', @@ -215,6 +215,9 @@ var bootstrap = function ($, learun) { $('#lr_save').show(); //隐藏“开始录入”按钮 $('#lr_input').hide(); + //隐藏“提交教务处”、“去审核成绩”按钮 + $('#lr_check').hide(); + $('#lr_uncheck').hide(); //显示“倒计时” $('.timeBox').show(); $('#minutes').html($('#minutes').attr('data-minutes')); @@ -270,6 +273,9 @@ var bootstrap = function ($, learun) { $('#lr_save').hide(); //显示“开始录入”按钮 $('#lr_input').show(); + //显示“提交教务处”、“去审核成绩”按钮 + $('#lr_check').show(); + $('#lr_uncheck').show(); //隐藏“倒计时” $('.timeBox').hide(); //停止倒计时 diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj b/Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj index 89eae60e0..d803fc614 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj @@ -8086,8 +8086,36 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuScore/StuScoreService.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuScore/StuScoreService.cs index 53b0ceba4..4187dde83 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuScore/StuScoreService.cs +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuScore/StuScoreService.cs @@ -2332,6 +2332,12 @@ where StuNo not in(Select StuNo from stuscore s where s.Academicyearno = sl.Acad var TermInScore = Convert.ToDecimal(string.IsNullOrEmpty(dr["期中成绩"].ToString().Trim()) ? "0" : dr["期中成绩"].ToString().Trim()); var TermEndScore = Convert.ToDecimal(string.IsNullOrEmpty(dr["期末成绩"].ToString().Trim()) ? "0" : dr["期末成绩"].ToString().Trim()); var OtherScore = Convert.ToDecimal(string.IsNullOrEmpty(dr["其他成绩"].ToString().Trim()) ? "0" : dr["其他成绩"].ToString().Trim()); + if (OrdinaryScore < 0 || TermInScore < 0 || TermEndScore < 0 || OtherScore < 0) + { + dr["导入错误"] = "成绩必须大于0!"; + failDt.Rows.Add(dr.ItemArray); + continue; + } var Score = Math.Round(Convert.ToDouble(OrdinaryScore * (stuSelectLessonListEntity.OrdinaryScoreScale / 100) + TermInScore * (stuSelectLessonListEntity.TermInScoreScale / 100) + TermEndScore * (stuSelectLessonListEntity.TermEndScoreScale / 100) + @@ -2481,6 +2487,13 @@ where StuNo not in(Select StuNo from stuscore s where s.Academicyearno = sl.Acad var TermInScore = Convert.ToDecimal(string.IsNullOrEmpty(dr["期中成绩"].ToString().Trim()) ? "0" : dr["期中成绩"].ToString().Trim()); var TermEndScore = Convert.ToDecimal(string.IsNullOrEmpty(dr["期末成绩"].ToString().Trim()) ? "0" : dr["期末成绩"].ToString().Trim()); var OtherScore = Convert.ToDecimal(string.IsNullOrEmpty(dr["其他成绩"].ToString().Trim()) ? "0" : dr["其他成绩"].ToString().Trim()); + if (OrdinaryScore < 0 || TermInScore < 0 || TermEndScore < 0 || OtherScore < 0) + { + dr["导入错误"] = "成绩必须大于0!"; + failDt.Rows.Add(dr.ItemArray); + continue; + } + var Score = Math.Round(Convert.ToDouble(OrdinaryScore * (stuSelectLessonListOfElectiveEntity.OrdinaryScoreScale / 100) + TermInScore * (stuSelectLessonListOfElectiveEntity.TermInScoreScale / 100) + TermEndScore * (stuSelectLessonListOfElectiveEntity.TermEndScoreScale / 100) + diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuScoreNotPass/StuScoreNotPassService.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuScoreNotPass/StuScoreNotPassService.cs index 8c29e37d9..2b9824fe5 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuScoreNotPass/StuScoreNotPassService.cs +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuScoreNotPass/StuScoreNotPassService.cs @@ -881,6 +881,12 @@ order by bb.ScoreId"; continue; } var TermEndScore = Convert.ToDecimal(string.IsNullOrEmpty(dr["期末成绩"].ToString().Trim()) ? "0" : dr["期末成绩"].ToString().Trim()); + if (TermEndScore < 0) + { + dr["导入错误"] = "成绩必须大于0!"; + failDt.Rows.Add(dr.ItemArray); + continue; + } var Score = Math.Round(TermEndScore, MidpointRounding.AwayFromZero); var remark = dr["备注"].ToString().Trim(); db.ExecuteBySql($"update StuScoreNotPass set TermEndScore={TermEndScore},Score={Score},Remark='{remark}' where ScoreId='{item.ScoreId}' "); diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuScoreNotPassTwo/StuScoreNotPassTwoService.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuScoreNotPassTwo/StuScoreNotPassTwoService.cs index 147241564..c2866e581 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuScoreNotPassTwo/StuScoreNotPassTwoService.cs +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuScoreNotPassTwo/StuScoreNotPassTwoService.cs @@ -929,6 +929,12 @@ order by bb.ScoreId"; continue; } var TermEndScore = Convert.ToDecimal(string.IsNullOrEmpty(dr["期末成绩"].ToString().Trim()) ? "0" : dr["期末成绩"].ToString().Trim()); + if (TermEndScore < 0) + { + dr["导入错误"] = "成绩必须大于0!"; + failDt.Rows.Add(dr.ItemArray); + continue; + } var Score = Math.Round(TermEndScore, MidpointRounding.AwayFromZero); var remark = dr["备注"].ToString().Trim(); db.ExecuteBySql($"update StuScoreNotPassTwo set TermEndScore={TermEndScore},Score={Score},Remark='{remark}' where ScoreId='{item.ScoreId}' ");