1、优化考勤记录导入,优化出入记录写实名制推送记录表。2、优化考试答题,交卷接口方法。3、优化写入培训记录。
This commit is contained in:
@@ -245,6 +245,14 @@ namespace BLL
|
||||
TestType = item.TestType,
|
||||
Duration = newTestPlan.Duration,
|
||||
};
|
||||
if (string.IsNullOrEmpty(newTrainDetail.TestType))
|
||||
{
|
||||
var getTrainTypeName = db.Training_TestPlan.FirstOrDefault(x => x.TestPlanId == newTrainDetail.TestPlanId);
|
||||
if (getTrainTypeName != null)
|
||||
{
|
||||
newTrainDetail.TestType = getTrainTypeName.PlanName;
|
||||
}
|
||||
}
|
||||
db.Training_TestRecord.InsertOnSubmit(newTrainDetail);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user