培训类型
This commit is contained in:
@@ -113,6 +113,8 @@ namespace BLL
|
||||
States = x.States,
|
||||
QRCodeUrl = x.QRCodeUrl.Replace('\\', '/'),
|
||||
TrainingPlanId = x.PlanId,
|
||||
TrainTypeId= x.TrainTypeId,
|
||||
TrainTypeName = db.Base_TrainType.Where(xx=>xx.TrainTypeId==x.TrainTypeId).Select(xx=>xx.TrainTypeName).FirstOrDefault()
|
||||
}).FirstOrDefault();
|
||||
|
||||
if (getDataLists != null)
|
||||
@@ -174,6 +176,7 @@ namespace BLL
|
||||
DepartIds = getTestPlan.DepartIds,
|
||||
States = getTestPlan.States,
|
||||
PlanDate = DateTime.Now,
|
||||
TrainTypeId=getTestPlan.TrainTypeId
|
||||
};
|
||||
if (!string.IsNullOrEmpty(getTestPlan.ProjectId))
|
||||
{
|
||||
@@ -200,7 +203,6 @@ namespace BLL
|
||||
|
||||
db.Training_TestPlan.InsertOnSubmit(newTestPlan);
|
||||
db.SubmitChanges();
|
||||
|
||||
CodeRecordsService.InsertCodeRecordsByMenuIdProjectIdUnitId(Const.ProjectTestPlanMenuId, newTestPlan.ProjectId, null, newTestPlan.TestPlanId, newTestPlan.PlanDate);
|
||||
}
|
||||
else
|
||||
@@ -220,6 +222,7 @@ namespace BLL
|
||||
isUpdate.UnitIds = newTestPlan.UnitIds;
|
||||
isUpdate.WorkPostIds = newTestPlan.WorkPostIds;
|
||||
isUpdate.DepartIds = newTestPlan.DepartIds;
|
||||
isUpdate.TrainTypeId = newTestPlan.TrainTypeId;
|
||||
////删除 考生记录
|
||||
var deleteRecords = from x in db.Training_TestRecord
|
||||
where x.TestPlanId == isUpdate.TestPlanId
|
||||
@@ -239,7 +242,7 @@ namespace BLL
|
||||
}
|
||||
|
||||
db.Training_TestRecord.DeleteAllOnSubmit(deleteRecords);
|
||||
db.SubmitChanges();
|
||||
db.SubmitChanges();
|
||||
}
|
||||
|
||||
////删除 考试题目类型
|
||||
|
||||
Reference in New Issue
Block a user