2024-02-19 试车分包管理修改
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user