2023-04-28
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user