督查大队台账上报

This commit is contained in:
geh
2026-01-13 20:23:03 +08:00
parent 1fd5831f29
commit 4ca3eeeb96
16 changed files with 5596 additions and 1 deletions
@@ -115,7 +115,10 @@ namespace FineUIPro.Web.HSSE.EduTrain
{
string strSql = @"SELECT TestRecord.TestRecordId,TestRecord.TestPlanId, TestRecord.TestManId,TestRecord.TestStartTime,TestRecord.TestEndTime, TestRecord.TestScores,
(CASE WHEN TestPlan.PlanName IS NULL THEN testTrain.TrainingName ELSE TestPlan.PlanName END) AS PlanName,
ISNULL(TestPlan.Duration,90) AS Duration,ISNULL(TestPlan.TotalScore,100) AS TotalScore,TestPlan.TestPalce,ISNULL(TestPlan.QuestionCount,95) AS QuestionCount,TestRecord.TemporaryUser,Person.PersonName AS TestManName
ISNULL(TestPlan.Duration,TestRecord.Duration) AS Duration ,TestPlan.TestPalce,
ISNULL(TestPlan.TotalScore,(select sum(Score) from Training_TestRecordItem where TestRecordId= TestRecord.TestRecordId )) AS TotalScore,
TestPlan.TestPalce,ISNULL(TestPlan.QuestionCount,(select count(1) from Training_TestRecordItem where TestRecordId = TestRecord.TestRecordId )) AS QuestionCount,
TestRecord.TemporaryUser,Person.PersonName AS TestManName
,Unit.UnitName,testTrain.TrainingName as TrainingName1"
+ @" FROM dbo.Training_TestRecord AS TestRecord"
+ @" LEFT JOIN dbo.Training_TestPlan AS TestPlan ON TestPlan.TestPlanId=TestRecord.TestPlanId"