督查大队台账上报
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user