培训考试积分
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user