1
This commit is contained in:
@@ -310,10 +310,10 @@ namespace FineUIPro.Web.HSSE.EduTrain
|
||||
}
|
||||
else
|
||||
{
|
||||
var addTrainingItem = Funs.DB.Training_TestTrainingItem.FirstOrDefault(x => x.Abstracts == newViewTrainingItem.Abstracts
|
||||
&& x.TrainingId == newViewTrainingItem.TrainingId);
|
||||
if (addTrainingItem == null)
|
||||
{
|
||||
// var addTrainingItem = Funs.DB.Training_TestTrainingItem.FirstOrDefault(x => x.Abstracts == newViewTrainingItem.Abstracts
|
||||
// && x.TrainingId == newViewTrainingItem.TrainingId);
|
||||
// if (addTrainingItem == null)
|
||||
// {
|
||||
Model.Training_TestTrainingItem newTrainingItem = new Model.Training_TestTrainingItem
|
||||
{
|
||||
TrainingItemId = newViewTrainingItem.TrainingItemId = SQLHelper.GetNewID(typeof(Model.Training_TestTraining)),
|
||||
@@ -347,11 +347,11 @@ namespace FineUIPro.Web.HSSE.EduTrain
|
||||
BLL.TestTrainingItemService.AddTestTrainingItem(newTrainingItem);
|
||||
///加入培训试题库
|
||||
viewTrainingItems.Add(newViewTrainingItem);
|
||||
}
|
||||
else
|
||||
{
|
||||
result += "第" + (i + 2).ToString() + "行," + "导入试题重复" + "|";
|
||||
}
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// result += "第" + (i + 2).ToString() + "行," + "导入试题重复" + "|";
|
||||
// }
|
||||
}
|
||||
}
|
||||
if (viewTrainingItems.Count > 0)
|
||||
|
||||
Reference in New Issue
Block a user