This commit is contained in:
geh
2026-09-14 15:58:12 +08:00
parent a815e09879
commit 77f61d7e06
128 changed files with 25181 additions and 960 deletions
@@ -530,6 +530,13 @@ namespace BLL
itemRecord.TestScores = db.Training_TestRecordItem.Where(x => x.TestRecordId == itemRecord.TestRecordId).Sum(x => x.SubjectScore) ?? 0;
db.SubmitChanges();
}
//更新三库考试考核
string message = string.Empty;
SanKuDataSummaryReportService.UpdateExaminationRecord(getTestPlan.TestPlanId, ref message);
//if (!string.IsNullOrWhiteSpace(message))
//{
// ShowNotify(message, MessageBoxIcon.Warning);
//}
var getTrainingTasks = from x in db.Training_Task
where x.PlanId == getTestPlan.PlanId && (x.States != "2" || x.States == null)
@@ -777,6 +777,13 @@ namespace BLL
db.SubmitChanges();
getCode = getTestRecord.TestScores ?? 0;
//更新三库考试考核
string message = string.Empty;
SanKuDataSummaryReportService.UpdateExaminationRecordItem(testRecord.TestRecordId, ref message);
//if (!string.IsNullOrWhiteSpace(message))
//{
// ShowNotify(message, MessageBoxIcon.Warning);
//}
}
}
@@ -824,6 +831,17 @@ namespace BLL
}
}
}
if (getAllTestRecords.Count() > 0)
{
//更新三库考试考核
string message = string.Empty;
SanKuDataSummaryReportService.UpdateExaminationRecord(getTestPlan.TestPlanId, ref message);
//if (!string.IsNullOrWhiteSpace(message))
//{
// ShowNotify(message, MessageBoxIcon.Warning);
//}
}
}
}
}
@@ -314,6 +314,14 @@ namespace BLL
}
//更新三库教育培训
string message = string.Empty;
SanKuDataSummaryReportService.UpdateTrainingRecord(newTrainRecord.TrainingId, ref message);
//if (!string.IsNullOrWhiteSpace(message))
//{
// ShowNotify(message, MessageBoxIcon.Warning);
//}
////增加一条编码记录
CodeRecordsService.InsertCodeRecordsByMenuIdProjectIdUnitId(Const.ProjectTrainRecordMenuId, newTrainRecord.ProjectId, null, newTrainRecord.TrainingId, newTrainRecord.TrainStartDate);