培训考试积分

This commit is contained in:
2026-11-20 15:32:57 +08:00
parent 02a1a827f1
commit 6baa4ed8b5
16 changed files with 552 additions and 535 deletions
@@ -37,6 +37,7 @@ namespace FineUIPro.Web.Person.EduTrain
/// </summary>
private void BindGrid()
{
var passingScore = SysConstSetService.getPassScore().ToString();
string strSql = @"SELECT UserId PersonId,IdentityCard CardNo,UserName PersonName,person.UnitId,Unit.UnitCode,Unit.UnitName,person.DepartId,Depart.DepartCode,Depart.DepartName
,WorkPostName,ISNULL(TestCount,0) AS TestCount,ISNULL(TestQualifyCount,0) AS TestQualifyCount
FROM Sys_User AS person
@@ -45,7 +46,7 @@ namespace FineUIPro.Web.Person.EduTrain
LEFT JOIN Base_Depart AS Depart ON person.DepartId=Depart.DepartId
LEFT JOIN (SELECT COUNT(TestRecordId) AS TestCount,TestManId FROM Training_TestRecord GROUP BY TestManId) AS TestCount
ON person.UserId=TestCount.TestManId
LEFT JOIN (SELECT COUNT(TestRecordId) AS TestQualifyCount,TestManId FROM Training_TestRecord WHERE TestScores>= 60 GROUP BY TestManId) AS TestQualifyCount
LEFT JOIN (SELECT COUNT(TestRecordId) AS TestQualifyCount,TestManId FROM Training_TestRecord WHERE TestScores>= " + passingScore + @" GROUP BY TestManId) AS TestQualifyCount
ON person.UserId=TestQualifyCount.TestManId
WHERE UserId <> '" + BLL.Const.sysglyId + "' ";
List<SqlParameter> listStr = new List<SqlParameter>();