Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
PERFORMA_REPLICA
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Muhammad Usman
PERFORMA_REPLICA
Commits
3b3133a4
Commit
3b3133a4
authored
Sep 08, 2017
by
Harsh Shah
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bugfix: Assessment Completed logic considering only left questions
parent
05a36e6f
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
6 deletions
+13
-6
Candidate.java
cmsWebApp/src/performa/orm/Candidate.java
+1
-1
Job.java
cmsWebApp/src/performa/orm/Job.java
+9
-0
JobApplication.java
cmsWebApp/src/performa/orm/JobApplication.java
+2
-4
job_match_assessment.jsp
...broot/extensions/applicantportal/job_match_assessment.jsp
+1
-1
No files found.
cmsWebApp/src/performa/orm/Candidate.java
View file @
3b3133a4
...
@@ -112,7 +112,7 @@ public class Candidate extends BaseCandidate
...
@@ -112,7 +112,7 @@ public class Candidate extends BaseCandidate
public
boolean
assessmentCompleted
(
Job
job
)
//role
public
boolean
assessmentCompleted
(
Job
job
)
//role
{
{
int
allAnswersCount
=
job
.
getAllLeftQuestions
(
Arrays
.
asList
(
Question
.
searchAll
(
getTransaction
()))
).
size
();
int
allAnswersCount
=
job
.
getAllQuestions
(
).
size
();
if
(
allAnswersCount
>
0
)
if
(
allAnswersCount
>
0
)
{
{
...
...
cmsWebApp/src/performa/orm/Job.java
View file @
3b3133a4
...
@@ -130,6 +130,15 @@ public class Job extends BaseJob
...
@@ -130,6 +130,15 @@ public class Job extends BaseJob
return
getAssessmentCriteraByType
(
criteria
).
size
();
return
getAssessmentCriteraByType
(
criteria
).
size
();
}
}
public
List
<
Question
>
getAllQuestions
()
{
return
Arrays
.
asList
(
Question
.
searchAll
(
getTransaction
()));
}
public
List
<
Question
>
getAllLeftQuestions
()
{
return
getAllLeftQuestions
(
getAllQuestions
());
}
//to get only left Questions
//to get only left Questions
public
List
<
Question
>
getAllLeftQuestions
(
List
<
Question
>
totalQuestions
)
public
List
<
Question
>
getAllLeftQuestions
(
List
<
Question
>
totalQuestions
)
...
...
cmsWebApp/src/performa/orm/JobApplication.java
View file @
3b3133a4
...
@@ -323,7 +323,7 @@ public class JobApplication extends BaseJobApplication
...
@@ -323,7 +323,7 @@ public class JobApplication extends BaseJobApplication
int
remainingTime
=
0
;
int
remainingTime
=
0
;
//REQ
//REQ
if
(
getJob
()!=
null
&&
getJob
().
getIncludeAssessmentCriteria
()==
Boolean
.
TRUE
)
if
(
getJob
()!=
null
&&
isTrue
(
getJob
().
getIncludeAssessmentCriteria
())
)
{
{
if
(!
selectionCompleted
())
if
(!
selectionCompleted
())
{
{
...
@@ -359,7 +359,7 @@ public class JobApplication extends BaseJobApplication
...
@@ -359,7 +359,7 @@ public class JobApplication extends BaseJobApplication
}
}
else
//partially completed test for role
else
//partially completed test for role
{
{
int
allAnswersCount
=
getJob
().
getAll
LeftQuestions
(
Arrays
.
asList
(
Question
.
searchAll
(
getTransaction
()))
).
size
();
int
allAnswersCount
=
getJob
().
getAll
Questions
(
).
size
();
if
(
allAnswersCount
>
0
)
if
(
allAnswersCount
>
0
)
{
{
...
@@ -374,7 +374,6 @@ public class JobApplication extends BaseJobApplication
...
@@ -374,7 +374,6 @@ public class JobApplication extends BaseJobApplication
}
}
}
}
}
}
return
remainingTime
;
return
remainingTime
;
}
}
}
}
\ No newline at end of file
cmsWebApp/webroot/extensions/applicantportal/job_match_assessment.jsp
View file @
3b3133a4
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
if(totalQuestions == null)
if(totalQuestions == null)
{
{
totalQuestions =
Arrays.asList(Question.searchAll(transaction)
);
totalQuestions =
job.getAllQuestions(
);
process.setAttribute("TotalQuestions", totalQuestions);
process.setAttribute("TotalQuestions", totalQuestions);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment