培训考试积分

This commit is contained in:
2026-11-20 15:32:57 +08:00
parent 02a1a827f1
commit 6baa4ed8b5
16 changed files with 552 additions and 535 deletions
+7 -3
View File
@@ -1012,6 +1012,7 @@ namespace BLL
TestType = getTestRecord.TestType,
TemporaryUser = getTestRecord.TemporaryUser,
Duration = getTestRecord.Duration,
CompanyTrainingItemId = getTestRecord.CompanyTrainingItemId,
// TestStartTime = DateTime.Now,
};
@@ -1019,10 +1020,13 @@ namespace BLL
Funs.DB.SubmitChanges();
var getTestPlan = Funs.DB.Training_TestPlan.FirstOrDefault(x => x.TestPlanId == newTestRecord.TestPlanId);
var person = PersonService.GetPersonByUserId(newTestRecord.TestManId, getTestPlan.ProjectId);
if (getTestPlan != null && person != null)
if (getTestPlan != null)
{
CreateTestRecordItem(getTestPlan, newTestRecord.TestRecordId, person);
var person = PersonService.GetPersonByUserId(newTestRecord.TestManId, getTestPlan.ProjectId);
if (person != null)
{
CreateTestRecordItem(getTestPlan, newTestRecord.TestRecordId, person);
}
}
return newTestRecord.TestRecordId;
}
+1 -6
View File
@@ -128,12 +128,7 @@ namespace BLL
db.SubmitChanges();
////及格分数
int passScore = 80;
//var testRule = db.Sys_TestRule.FirstOrDefault();
//if (testRule != null)
//{
// passScore = testRule.PassingScore;
//}
int passScore = SysConstSetService.getPassScore();
foreach (var item in getTrainingTasks)
{