20240206 生产人员培训

This commit is contained in:
2024-02-06 17:11:15 +08:00
parent 68f0498287
commit 49458be8e5
20 changed files with 1885 additions and 911 deletions
@@ -1,8 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Linq;
namespace BLL
{
@@ -36,7 +32,13 @@ namespace BLL
UploadDate = trainRecords.UploadDate,
CompileMan = trainRecords.CompileMan,
CompileDate = trainRecords.CompileDate,
Remark = trainRecords.Remark
Remark = trainRecords.Remark,
ClassHours = trainRecords.ClassHours,
TrainingTime = trainRecords.TrainingTime,
TrainingAddress = trainRecords.TrainingAddress,
TrainingLevel = trainRecords.TrainingLevel,
Speaker = trainRecords.Speaker,
States=trainRecords.States
};
Funs.DB.TestRun_TrainRecords.InsertOnSubmit(newTrainRecords);
Funs.DB.SubmitChanges();
@@ -57,6 +59,12 @@ namespace BLL
newTrainRecords.CompileMan = trainRecords.CompileMan;
newTrainRecords.CompileDate = trainRecords.CompileDate;
newTrainRecords.Remark = trainRecords.Remark;
newTrainRecords.ClassHours = trainRecords.ClassHours;
newTrainRecords.TrainingTime = trainRecords.TrainingTime;
newTrainRecords.TrainingAddress = trainRecords.TrainingAddress;
newTrainRecords.TrainingLevel = trainRecords.TrainingLevel;
newTrainRecords.Speaker = trainRecords.Speaker;
newTrainRecords.States = trainRecords.States;
Funs.DB.SubmitChanges();
}
}
@@ -70,7 +78,8 @@ namespace BLL
Model.TestRun_TrainRecords newTrainRecords = Funs.DB.TestRun_TrainRecords.FirstOrDefault(e => e.TrainRecordsId == trainRecordId);
if (newTrainRecords != null)
{
CommonService.DeleteAttachFileById(trainRecordId);//删除附件
CommonService.DeleteAttachFileById(trainRecordId + "#1");//删除附件
CommonService.DeleteAttachFileById(trainRecordId + "#2");//删除附件
Funs.DB.TestRun_TrainRecords.DeleteOnSubmit(newTrainRecords);
Funs.DB.SubmitChanges();
}