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
43e3840f
Commit
43e3840f
authored
Nov 19, 2018
by
Nilu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
S12522203 # Client - Incoming Issues (raised by Client) #Applicants list not current
parent
6e23043c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
43 additions
and
5 deletions
+43
-5
JobApplication.java
cmsWebApp/src/performa/orm/JobApplication.java
+2
-1
SearchApplicant.java
cmsWebApp/src/performa/search/SearchApplicant.java
+40
-4
view_application_tab_applicant.jsp
...nsions/adminportal/inc/view_application_tab_applicant.jsp
+1
-0
No files found.
cmsWebApp/src/performa/orm/JobApplication.java
View file @
43e3840f
...
...
@@ -638,6 +638,6 @@ public class JobApplication extends BaseJobApplication
public
double
requirementCompletedPercentage
()
{
return
(
getAssessmentCriteriaAnswersCount
()
*
100
)
/
getJob
().
getAssessmentCriteriasCount
()
;
return
getJob
().
getIncludeAssessmentCriteria
()
?
((
getAssessmentCriteriaAnswersCount
()
*
100
)
/
getJob
().
getAssessmentCriteriasCount
())
:
0
d
;
}
}
\ No newline at end of file
cmsWebApp/src/performa/search/SearchApplicant.java
View file @
43e3840f
...
...
@@ -2,6 +2,9 @@ package performa.search;
import
oneit.objstore.BaseBusinessClass
;
import
oneit.objstore.rdbms.filters.EqualsFilter
;
import
performa.orm.Answer
;
import
performa.orm.AssessmentCriteriaAnswer
;
import
performa.orm.CultureCriteriaAnswer
;
import
performa.orm.JobApplication
;
...
...
@@ -18,9 +21,41 @@ public class SearchApplicant extends BaseSearchApplicant
@Override
public
BaseBusinessClass
[]
doSearch
()
{
return
JobApplication
.
SearchByDetails
()
.
byName
(
getDetails
())
.
andJob
(
new
EqualsFilter
<>(
getJob
()))
.
search
(
getTransaction
());
JobApplication
[]
appResults
=
JobApplication
.
SearchByDetails
()
.
byName
(
getDetails
())
.
andJob
(
new
EqualsFilter
<>(
getJob
()))
.
search
(
getTransaction
());
// add to make sure to have any new ones
if
(
getJob
()
!=
null
)
{
for
(
JobApplication
app
:
appResults
)
{
Answer
[]
answers
=
Answer
.
SearchByAll
().
andCandidate
(
new
EqualsFilter
<>(
app
.
getCandidate
())).
search
(
getTransaction
());
for
(
Answer
answer:
answers
)
{
app
.
getCandidate
().
addToProfileAssessmentAnswers
(
answer
);
}
AssessmentCriteriaAnswer
[]
requirements
=
AssessmentCriteriaAnswer
.
SearchByAll
().
andJobApplication
(
new
EqualsFilter
<>(
app
)).
search
(
getTransaction
());
for
(
AssessmentCriteriaAnswer
requirement:
requirements
)
{
app
.
addToAssessmentCriteriaAnswers
(
requirement
);
}
CultureCriteriaAnswer
[]
cultures
=
CultureCriteriaAnswer
.
SearchByAll
().
andCandidate
(
new
EqualsFilter
<>(
app
.
getCandidate
())).
search
(
getTransaction
());
for
(
CultureCriteriaAnswer
culture:
cultures
)
{
app
.
getCandidate
().
addToCultureCriteriaAnswers
(
culture
);
}
getJob
().
addToJobApplications
(
app
);
}
}
return
appResults
;
}
}
\ No newline at end of file
cmsWebApp/webroot/extensions/adminportal/inc/view_application_tab_applicant.jsp
View file @
43e3840f
...
...
@@ -110,6 +110,7 @@
</select>
</span>
<span class="appli-status-short">
<tagfile:ormsingleasso_select obj="<%= jobApplication %>" assocName="WorkFlow" cssClass="form-control app-process"
options="<%= sortedWorkFlows.toArray(new WorkFlow[0]) %>"/>
<oneit:button name="changeApplicationStatus" value=" " cssClass="save-application hidden"
...
...
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