2023-04-28

This commit is contained in:
2023-04-28 14:56:47 +08:00
parent f2ab2d5b73
commit 5b740e7bda
35 changed files with 1321 additions and 519 deletions
+26
View File
@@ -35,6 +35,7 @@ namespace BLL
TestScores = x.TestScores ?? 0,
TestType = x.TestType,
TemporaryUser = x.TemporaryUser,
Signature= x.Signature
}).ToList();
foreach(var item in getDataLists)
@@ -90,6 +91,7 @@ namespace BLL
TestScores = x.TestScores ?? 0,
TestType = x.TestType,
TemporaryUser = x.TemporaryUser,
Signature= x.Signature
};
var res = getDataLists.FirstOrDefault();
if (res != null)
@@ -845,5 +847,29 @@ namespace BLL
}
}
#endregion
/// <summary>
/// 修改考试记录信息
/// </summary>
/// <param name="Training"></param>
public static void updateTestRecord(Model.Training_TestRecord testRecord)
{
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
{
Model.Training_TestRecord newTestRecord = db.Training_TestRecord.FirstOrDefault(e => e.TestRecordId == testRecord.TestRecordId);
if (newTestRecord != null)
{
newTestRecord.TestScores = testRecord.TestScores;
newTestRecord.TestEndTime = testRecord.TestEndTime;
newTestRecord.IsFiled = testRecord.IsFiled;
newTestRecord.Signature = testRecord.Signature;
newTestRecord.Fingerprint = testRecord.Fingerprint;
db.SubmitChanges();
}
}
}
}
}