1
This commit is contained in:
@@ -864,6 +864,7 @@
|
|||||||
<Compile Include="ReportManage\HazardFactor\HazardFactorOccHealthService.cs" />
|
<Compile Include="ReportManage\HazardFactor\HazardFactorOccHealthService.cs" />
|
||||||
<Compile Include="ReportManage\HazardFactor\HazardFactorSafetyService.cs" />
|
<Compile Include="ReportManage\HazardFactor\HazardFactorSafetyService.cs" />
|
||||||
<Compile Include="ReportManage\SafeEnvBudget\SafetyManagementDataService.cs" />
|
<Compile Include="ReportManage\SafeEnvBudget\SafetyManagementDataService.cs" />
|
||||||
|
<Compile Include="Score\ScoreService.cs" />
|
||||||
<Compile Include="Score\ScoreUserService.cs" />
|
<Compile Include="Score\ScoreUserService.cs" />
|
||||||
<Compile Include="Score\ScoreFlowLogService.cs" />
|
<Compile Include="Score\ScoreFlowLogService.cs" />
|
||||||
<Compile Include="Service References\CNCECHSSEService\Reference.cs">
|
<Compile Include="Service References\CNCECHSSEService\Reference.cs">
|
||||||
|
|||||||
@@ -0,0 +1,15 @@
|
|||||||
|
using Model;
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
|
||||||
|
namespace BLL
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// 人员积分
|
||||||
|
/// </summary>
|
||||||
|
public class ScoreService
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -338,7 +338,7 @@ namespace WebAPI.Controllers
|
|||||||
////及格分数
|
////及格分数
|
||||||
int getPassScores = 80;
|
int getPassScores = 80;
|
||||||
//int getPassScores = SysConstSetService.getPassScore();
|
//int getPassScores = SysConstSetService.getPassScore();
|
||||||
if (getTestScores <= getPassScores)
|
if (getTestScores < getPassScores)
|
||||||
{
|
{
|
||||||
int testCount = Funs.DB.Training_TestRecord.Where(x => x.TestPlanId == getTestRecord.TestPlanId && x.TestManId == getTestRecord.TestManId).Count();
|
int testCount = Funs.DB.Training_TestRecord.Where(x => x.TestPlanId == getTestRecord.TestPlanId && x.TestManId == getTestRecord.TestManId).Count();
|
||||||
if (testCount < 2)
|
if (testCount < 2)
|
||||||
@@ -452,7 +452,7 @@ namespace WebAPI.Controllers
|
|||||||
//{
|
//{
|
||||||
// getPassScores = testRule.PassingScore;
|
// getPassScores = testRule.PassingScore;
|
||||||
//}
|
//}
|
||||||
if (getTestScores <= getPassScores)
|
if (getTestScores < getPassScores)
|
||||||
{
|
{
|
||||||
int testCount = db.Training_TestRecord.Where(x => x.TestPlanId == getTestRecord.TestPlanId && x.TestManId == getTestRecord.TestManId).Count();
|
int testCount = db.Training_TestRecord.Where(x => x.TestPlanId == getTestRecord.TestPlanId && x.TestManId == getTestRecord.TestManId).Count();
|
||||||
if (testCount < 2)
|
if (testCount < 2)
|
||||||
|
|||||||
Reference in New Issue
Block a user