培训考试积分
This commit is contained in:
@@ -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>();
|
||||
|
||||
@@ -519,12 +519,7 @@ namespace FineUIPro.Web.Person.EduTrain
|
||||
where x.PlanId == itemRecord.PlanId
|
||||
select x;
|
||||
////及格分数
|
||||
int passScore = 80;
|
||||
//var testRule = Funs.DB.Sys_TestRule.FirstOrDefault();
|
||||
//if (testRule != null)
|
||||
//{
|
||||
// passScore = testRule.PassingScore;
|
||||
//}
|
||||
int passScore = SysConstSetService.getPassScore();
|
||||
foreach (var item in getTrainingTasks)
|
||||
{
|
||||
bool isInsert = true;
|
||||
|
||||
@@ -232,8 +232,7 @@ namespace FineUIPro.Web.Person.EduTrain
|
||||
&& x.TestPlanId == this.TestPlanId);
|
||||
if (getTestRecord.Count() > 0)
|
||||
{ ////及格分数
|
||||
int getPassScores = 80;
|
||||
//int getPassScores = SysConstSetService.getPassScore();
|
||||
int getPassScores = SysConstSetService.getPassScore();
|
||||
var getOK = getTestRecord.FirstOrDefault(x => x.TestScores >= getPassScores);
|
||||
if (getOK != null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user