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
f562b95f
Commit
f562b95f
authored
Sep 12, 2017
by
Harsh Shah
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Application ranking logic, Role Fit graph issue sorted
parent
5d25e9da
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
180 additions
and
66 deletions
+180
-66
BaseJob.java
cmsWebApp/src/performa/orm/BaseJob.java
+0
-0
BaseJobApplication.java
cmsWebApp/src/performa/orm/BaseJobApplication.java
+0
-0
Job.java
cmsWebApp/src/performa/orm/Job.java
+25
-19
Job.xml
cmsWebApp/src/performa/orm/Job.xml
+1
-0
JobApplication.java
cmsWebApp/src/performa/orm/JobApplication.java
+72
-16
JobApplication.xml
cmsWebApp/src/performa/orm/JobApplication.xml
+4
-1
JobApplicationCultureFitTransform.java
...src/performa/utils/JobApplicationCultureFitTransform.java
+24
-0
JobApplicationRoleFitTransform.java
...pp/src/performa/utils/JobApplicationRoleFitTransform.java
+24
-0
Utils.java
cmsWebApp/src/performa/utils/Utils.java
+6
-6
application_list_data.jsp
...root/extensions/adminportal/inc/application_list_data.jsp
+6
-6
view_application_tab_applicant.jsp
...nsions/adminportal/inc/view_application_tab_applicant.jsp
+7
-7
view_applicants_shortlist_grid.jsp
...extensions/adminportal/view_applicants_shortlist_grid.jsp
+7
-7
view_applicantss_grid.jsp
.../webroot/extensions/adminportal/view_applicantss_grid.jsp
+4
-4
No files found.
cmsWebApp/src/performa/orm/BaseJob.java
View file @
f562b95f
This diff is collapsed.
Click to expand it.
cmsWebApp/src/performa/orm/BaseJobApplication.java
View file @
f562b95f
This diff is collapsed.
Click to expand it.
cmsWebApp/src/performa/orm/Job.java
View file @
f562b95f
...
@@ -14,7 +14,7 @@ import oneit.utils.filter.CollectionFilter;
...
@@ -14,7 +14,7 @@ import oneit.utils.filter.CollectionFilter;
import
oneit.utils.filter.Filter
;
import
oneit.utils.filter.Filter
;
import
oneit.utils.parsers.FieldException
;
import
oneit.utils.parsers.FieldException
;
import
performa.orm.types.*
;
import
performa.orm.types.*
;
import
performa.utils.
Utils
;
import
performa.utils.
*
;
public
class
Job
extends
BaseJob
public
class
Job
extends
BaseJob
...
@@ -92,28 +92,34 @@ public class Job extends BaseJob
...
@@ -92,28 +92,34 @@ public class Job extends BaseJob
return
super
.
getWriteability_JobStatus
();
return
super
.
getWriteability_JobStatus
();
}
}
public
void
calculateRoleFitForRanking
()
throws
FieldException
public
Boolean
jobDetailsCompleted
()
{
return
getJobTitle
()
!=
null
&&
getJobDescription
()
!=
null
;
}
public
Boolean
assessmentCompleted
()
{
return
Boolean
.
TRUE
;
}
public
Boolean
cultureCompleted
()
{
{
return
Boolean
.
FALSE
;
if
(!
isTrue
(
getRankingCompleted
()))
{
//Preloading data
pipelineJob
().
toJobApplications
().
toCandidate
().
toTestAnalysises
().
toCandidateClassScores
().
uniqueVals
();
pipelineJob
().
toJobApplications
().
toCandidate
().
toCultureCriteriaAnswers
().
toSelectedQuestion
().
toNarratives
().
toCultureElementRating
().
uniqueVals
();
pipelineJob
().
toJobApplications
().
toCandidate
().
toCultureCriteriaAnswers
().
toCultureElement
().
uniqueVals
();
pipelineJob
().
toLevel
().
toLevelClassCriterias
().
toFactorClass
().
uniqueVals
();
pipelineJob
().
toLevel
().
toClassNormalisations
().
uniqueVals
();
pipelineJob
().
toLevel
().
toLevelNormalisations
().
uniqueVals
();
List
<
JobApplication
>
sortedApplications
=
ObjstoreUtils
.
sort
(
getSubmittedApplications
(),
new
ObjectTransform
[]{
JobApplicationRoleFitTransform
.
INSTANCE
,
JobApplicationCultureFitTransform
.
INSTANCE
},
new
Comparator
[]{
CollectionUtils
.
reverse
(
CollectionUtils
.
DEFAULT_COMPARATOR
),
CollectionUtils
.
reverse
(
CollectionUtils
.
DEFAULT_COMPARATOR
)});
for
(
JobApplication
jobApplication
:
getSubmittedApplications
())
{
jobApplication
.
setOverallRank
(
sortedApplications
.
indexOf
(
jobApplication
)
+
1
);
}
}
setRankingCompleted
(
true
);
}
}
public
Boolean
jobDetailsCompleted
()
public
Boolean
jobMatchCompleted
()
{
{
return
Boolean
.
TRUE
;
return
getJobTitle
()
!=
null
&&
getJobDescription
()
!=
null
;
}
}
...
...
cmsWebApp/src/performa/orm/Job.xml
View file @
f562b95f
...
@@ -23,6 +23,7 @@
...
@@ -23,6 +23,7 @@
<TRANSIENT
name=
"AssessmentTemplateName"
type=
"String"
/>
<TRANSIENT
name=
"AssessmentTemplateName"
type=
"String"
/>
<TRANSIENT
name=
"CultureTemplateName"
type=
"String"
/>
<TRANSIENT
name=
"CultureTemplateName"
type=
"String"
/>
<TRANSIENT
name=
"AppProcessOption"
type=
"AppProcessOption"
attribHelper=
"EnumeratedAttributeHelper"
/>
<TRANSIENT
name=
"AppProcessOption"
type=
"AppProcessOption"
attribHelper=
"EnumeratedAttributeHelper"
/>
<TRANSIENT
name=
"RankingCompleted"
type=
"Boolean"
/>
<TRANSIENTSINGLE
name=
"AssessmentTemplate"
type=
"AssessmentCriteriaTemplate"
/>
<TRANSIENTSINGLE
name=
"AssessmentTemplate"
type=
"AssessmentCriteriaTemplate"
/>
<TRANSIENTSINGLE
name=
"CultureTemplate"
type=
"CultureCriteriaTemplate"
/>
<TRANSIENTSINGLE
name=
"CultureTemplate"
type=
"CultureCriteriaTemplate"
/>
...
...
cmsWebApp/src/performa/orm/JobApplication.java
View file @
f562b95f
package
performa
.
orm
;
package
performa
.
orm
;
import
java.util.*
;
import
java.util.*
;
import
oneit.logging.
LoggingArea
;
import
oneit.logging.
*
;
import
oneit.objstore.*
;
import
oneit.objstore.*
;
import
oneit.objstore.rdbms.filters.EqualsFilter
;
import
oneit.objstore.rdbms.filters.EqualsFilter
;
import
oneit.objstore.rdbms.filters.IsNotNullFilter
;
import
oneit.objstore.rdbms.filters.IsNotNullFilter
;
...
@@ -236,33 +236,89 @@ public class JobApplication extends BaseJobApplication
...
@@ -236,33 +236,89 @@ public class JobApplication extends BaseJobApplication
{
{
return
getJob
()
!=
null
&&
isTrue
(
getJob
().
getIncludeAssessmentCriteria
());
return
getJob
()
!=
null
&&
isTrue
(
getJob
().
getIncludeAssessmentCriteria
());
}
}
// TODO: Fix these hard coded values
@Override
@Override
public
Integer
getOverallSuitability
()
public
Map
getRoleFit
()
{
{
return
1
;
if
(
super
.
getRoleFit
()
==
null
&&
getCandidate
()
!=
null
&&
getJob
()
!=
null
&&
getJob
().
getLevel
()
!=
null
)
{
try
{
setRoleFit
(
AnalysisEngine
.
getRoleFitSuitability
(
getCandidate
(),
getJob
().
getLevel
()));
}
catch
(
FieldException
ex
)
{
LogMgr
.
log
(
LOG
,
LogLevel
.
PROCESSING1
,
ex
,
"Error occured when setting RoleFit for "
+
this
);
}
}
return
super
.
getRoleFit
();
}
}
@Override
public
Double
getJobMatchPercentage
()
//ROLE
public
Map
getCultureFit
()
{
{
return
AnalysisEngine
.
getRoleFitSuitability
(
getCandidate
(),
getJob
().
getLevel
()).
get
(
null
);
if
(
super
.
getCultureFit
()
==
null
&&
getCandidate
()
!=
null
&&
getJob
()
!=
null
&&
getJob
().
getLevel
()
!=
null
)
{
try
{
setCultureFit
(
AnalysisEngine
.
getCultureFit
(
getCandidate
().
getCultureCriteriaAnswersSet
(),
getJob
()));
}
catch
(
FieldException
ex
)
{
LogMgr
.
log
(
LOG
,
LogLevel
.
PROCESSING1
,
ex
,
"Error occured when setting CultureFit for "
+
this
);
}
}
return
super
.
getCultureFit
();
}
}
@Override
public
int
getCulturePercentage
()
public
Map
getRequirementFit
()
{
{
return
AnalysisEngine
.
getCultureFit
(
getCandidate
().
getCultureCriteriaAnswersSet
(),
getJob
()).
get
(
null
).
intValue
();
if
(
super
.
getRequirementFit
()
==
null
)
{
try
{
setRequirementFit
(
AnalysisEngine
.
getRequirementFit
(
getAssessmentCriteriaAnswersSet
()));
}
catch
(
FieldException
ex
)
{
LogMgr
.
log
(
LOG
,
LogLevel
.
PROCESSING1
,
ex
,
"Error occured when setting RequirementFit for "
+
this
);
}
}
return
super
.
getRequirementFit
();
}
@Override
public
Integer
getOverallRank
()
{
if
(
getJob
()
!=
null
)
{
try
{
getJob
().
calculateRoleFitForRanking
();
}
catch
(
FieldException
ex
)
{
LogMgr
.
log
(
LOG
,
LogLevel
.
PROCESSING1
,
ex
,
"Error occured when setting OverallRank for "
+
this
);
}
}
return
super
.
getOverallRank
();
}
}
public
Double
getRoleFitScore
()
{
return
getRoleFit
()
!=
null
?
(
Double
)
getRoleFit
().
get
(
null
)
:
0
d
;
}
public
int
getCriteriaPercentage
()
//REQ
public
Long
getCultureFitScore
()
{
{
return
AnalysisEngine
.
getRequirementFit
(
getAssessmentCriteriaAnswersSet
()).
get
(
null
).
intValue
()
;
return
getCultureFit
()
!=
null
?
(
Long
)
getCultureFit
().
get
(
null
)
:
0
;
}
}
public
Long
getRequirementFitScore
()
{
return
getRequirementFit
()
!=
null
?
(
Long
)
getRequirementFit
().
get
(
null
)
:
0
;
}
public
List
<
AppProcessOption
>
getValidProcessOptions
()
public
List
<
AppProcessOption
>
getValidProcessOptions
()
{
{
...
...
cmsWebApp/src/performa/orm/JobApplication.xml
View file @
f562b95f
...
@@ -8,7 +8,10 @@
...
@@ -8,7 +8,10 @@
<MULTIPLEREFERENCE
name=
"AssessmentCriteriaAnswers"
type=
"AssessmentCriteriaAnswer"
backreferenceName=
"JobApplication"
/>
<MULTIPLEREFERENCE
name=
"AssessmentCriteriaAnswers"
type=
"AssessmentCriteriaAnswer"
backreferenceName=
"JobApplication"
/>
<TRANSIENT
name=
"AppProcessOption"
type=
"AppProcessOption"
attribHelper=
"EnumeratedAttributeHelper"
/>
<TRANSIENT
name=
"AppProcessOption"
type=
"AppProcessOption"
attribHelper=
"EnumeratedAttributeHelper"
/>
<TRANSIENT
name=
"OverallSuitability"
type=
"Integer"
/>
<TRANSIENT
name=
"OverallRank"
type=
"Integer"
/>
<TRANSIENT
name=
"RoleFit"
type=
"Map"
attribHelper=
"BLOBAttributeHelper"
attribHelperInstance=
"BLOBAttributeHelper.INSTANCE"
/>
<TRANSIENT
name=
"RequirementFit"
type=
"Map"
attribHelper=
"BLOBAttributeHelper"
attribHelperInstance=
"BLOBAttributeHelper.INSTANCE"
/>
<TRANSIENT
name=
"CultureFit"
type=
"Map"
attribHelper=
"BLOBAttributeHelper"
attribHelperInstance=
"BLOBAttributeHelper.INSTANCE"
/>
<TABLE
name=
"tl_job_application"
tablePrefix=
"object"
polymorphic=
"FALSE"
>
<TABLE
name=
"tl_job_application"
tablePrefix=
"object"
polymorphic=
"FALSE"
>
...
...
cmsWebApp/src/performa/utils/JobApplicationCultureFitTransform.java
0 → 100644
View file @
f562b95f
package
performa
.
utils
;
import
oneit.utils.ObjectTransform
;
import
performa.orm.JobApplication
;
/**
*
* @author Harsh
*/
public
class
JobApplicationCultureFitTransform
implements
ObjectTransform
<
JobApplication
,
Long
>
{
public
static
final
JobApplicationCultureFitTransform
INSTANCE
=
new
JobApplicationCultureFitTransform
();
@Override
public
Long
transform
(
JobApplication
original
)
{
if
(
original
==
null
)
{
return
null
;
}
return
original
.
getCultureFitScore
();
}
}
\ No newline at end of file
cmsWebApp/src/performa/utils/JobApplicationRoleFitTransform.java
0 → 100644
View file @
f562b95f
package
performa
.
utils
;
import
oneit.utils.ObjectTransform
;
import
performa.orm.JobApplication
;
/**
*
* @author Harsh
*/
public
class
JobApplicationRoleFitTransform
implements
ObjectTransform
<
JobApplication
,
Double
>
{
public
static
final
JobApplicationRoleFitTransform
INSTANCE
=
new
JobApplicationRoleFitTransform
();
@Override
public
Double
transform
(
JobApplication
original
)
{
if
(
original
==
null
)
{
return
null
;
}
return
original
.
getRoleFitScore
();
}
}
\ No newline at end of file
cmsWebApp/src/performa/utils/Utils.java
View file @
f562b95f
...
@@ -164,17 +164,17 @@ public class Utils
...
@@ -164,17 +164,17 @@ public class Utils
if
(
appSortOption
==
AppSortOption
.
OLDEST
)
if
(
appSortOption
==
AppSortOption
.
OLDEST
)
{
{
transform
=
JobApplication
.
pipesJobApplication
().
toSubmittedDate
();
transform
=
JobApplication
.
pipesJobApplication
().
toSubmittedDate
();
comparator
=
CollectionUtils
.
DEFAULT_COMPARATOR
;
comparator
=
CollectionUtils
.
DEFAULT_COMPARATOR
_NULLS_FIRST
;
}
}
else
if
(
appSortOption
==
AppSortOption
.
NEWEST
)
else
if
(
appSortOption
==
AppSortOption
.
NEWEST
)
{
{
transform
=
JobApplication
.
pipesJobApplication
().
toSubmittedDate
();
transform
=
JobApplication
.
pipesJobApplication
().
toSubmittedDate
();
comparator
=
CollectionUtils
.
reverse
(
CollectionUtils
.
DEFAULT_COMPARATOR
);
comparator
=
CollectionUtils
.
reverse
(
CollectionUtils
.
DEFAULT_COMPARATOR
_NULLS_FIRST
);
}
}
else
if
(
appSortOption
==
AppSortOption
.
RANK
)
else
if
(
appSortOption
==
AppSortOption
.
RANK
)
{
{
transform
=
JobApplication
.
pipesJobApplication
().
toOverall
Suitability
();
transform
=
JobApplication
.
pipesJobApplication
().
toOverall
Rank
();
comparator
=
CollectionUtils
.
reverse
(
CollectionUtils
.
DEFAULT_COMPARATOR
)
;
comparator
=
CollectionUtils
.
DEFAULT_COMPARATOR_NULLS_FIRST
;
}
}
else
if
(
appSortOption
==
AppSortOption
.
ALPHA_A_Z
)
else
if
(
appSortOption
==
AppSortOption
.
ALPHA_A_Z
)
{
{
...
@@ -188,8 +188,8 @@ public class Utils
...
@@ -188,8 +188,8 @@ public class Utils
}
}
return
ObjstoreUtils
.
sort
(
Arrays
.
asList
(
applications
),
return
ObjstoreUtils
.
sort
(
Arrays
.
asList
(
applications
),
new
ObjectTransform
[]{
transform
},
new
ObjectTransform
[]{
transform
},
new
Comparator
[]{
comparator
});
new
Comparator
[]{
comparator
});
}
}
...
...
cmsWebApp/webroot/extensions/adminportal/inc/application_list_data.jsp
View file @
f562b95f
...
@@ -29,9 +29,9 @@
...
@@ -29,9 +29,9 @@
for(JobApplication jobApplication : applications)
for(JobApplication jobApplication : applications)
{
{
String
jobMatch = FormatUtils.stringify(jobApplication.getJobMatchPercentage(), "TwoDPDouble
", "0");
String
roleFit = FormatUtils.stringify(jobApplication.getRoleFitScore(), "PercentageWholeNumber
", "0");
String culture = FormatUtils.stringify(jobApplication.getCulture
Percentag
e(), "PercentageWholeNumber", "0");
String culture = FormatUtils.stringify(jobApplication.getCulture
FitScor
e(), "PercentageWholeNumber", "0");
String criteria = FormatUtils.stringify(jobApplication.get
CriteriaPercentag
e(), "PercentageWholeNumber", "0");
String criteria = FormatUtils.stringify(jobApplication.get
RequirementFitScor
e(), "PercentageWholeNumber", "0");
String appID = "app-id-" + jobApplication.getID().toString();
String appID = "app-id-" + jobApplication.getID().toString();
%>
%>
<div class="appli-row" id="<%= jobApplication.getID() %>">
<div class="appli-row" id="<%= jobApplication.getID() %>">
...
@@ -57,14 +57,14 @@
...
@@ -57,14 +57,14 @@
</div>
</div>
<!--TODO: logic needed to be worked out. Added to note that there are three colors-->
<!--TODO: logic needed to be worked out. Added to note that there are three colors-->
<div class="<%= "appli-percent-no " + (j == 0 ? "first green" : (j < 3 ? "blue" : "grey" ))%>">
<div class="<%= "appli-percent-no " + (j == 0 ? "first green" : (j < 3 ? "blue" : "grey" ))%>">
<oneit:toString value="<%= jobApplication.getOverall
Suitability
() %>" mode="Integer" />
<oneit:toString value="<%= jobApplication.getOverall
Rank
() %>" mode="Integer" />
</div>
</div>
</div>
</div>
<div class="appli-jcs appli-l eq-second-height">
<div class="appli-jcs appli-l eq-second-height">
<span class="appli-view-bar">
<span class="appli-view-bar">
<div class="progress">
<div class="progress">
<div class="progress-bar" role="progressbar" aria-valuenow="<%=
jobMatch
%>" aria-valuemin="0" aria-valuemax="100"
<div class="progress-bar" role="progressbar" aria-valuenow="<%=
roleFit
%>" aria-valuemin="0" aria-valuemax="100"
style="<%= "width: " +
jobMatch
%>">
style="<%= "width: " +
roleFit
%>">
</div>
</div>
</div>
</div>
</span>
</span>
...
...
cmsWebApp/webroot/extensions/adminportal/inc/view_application_tab_applicant.jsp
View file @
f562b95f
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
<oneit:dynIncluded>
<oneit:dynIncluded>
<%
<%
Map<FactorClass, Double> roleScoreMap =
AnalysisEngine.getRoleFitSuitability(candidate, job.getLevel()
);
Map<FactorClass, Double> roleScoreMap =
(Map<FactorClass, Double>)jobApplication.getRoleFit(
);
%>
%>
<script>
<script>
function tabToggle(tab) {
function tabToggle(tab) {
...
@@ -74,19 +74,19 @@
...
@@ -74,19 +74,19 @@
<div class="col-sm-4 col-xs-12 text-center" href="#1a" data-toggle="tab" id="progress1" onClick="tabToggle('#tab1')">
<div class="col-sm-4 col-xs-12 text-center" href="#1a" data-toggle="tab" id="progress1" onClick="tabToggle('#tab1')">
<label class="progress-label">role fit</label>
<label class="progress-label">role fit</label>
<div class="percent-green fixed-width">
<div class="percent-green fixed-width">
<p style="display:none;"><oneit:toString value="<%=
roleScoreMap.get(null) %>"
mode="TwoDPDouble" nullValue="0"/></p>
<p style="display:none;"><oneit:toString value="<%=
jobApplication.getRoleFitScore() %>"
mode="TwoDPDouble" nullValue="0"/></p>
</div>
</div>
</div>
</div>
<div class="col-sm-4 col-xs-12 text-center" href="#2a" data-toggle="tab" id="progress2" onClick="tabToggle('#tab2')">
<div class="col-sm-4 col-xs-12 text-center" href="#2a" data-toggle="tab" id="progress2" onClick="tabToggle('#tab2')">
<label class="progress-label">culture fit</label>
<label class="progress-label">culture fit</label>
<div class="percent-green fixed-width">
<div class="percent-green fixed-width">
<p style="display:none;"><oneit:toString value="<%= jobApplication.getCulture
Percentage() %>"
mode="PercentageWholeNumber" /></p>
<p style="display:none;"><oneit:toString value="<%= jobApplication.getCulture
FitScore() %>"
mode="PercentageWholeNumber" /></p>
</div>
</div>
</div>
</div>
<div class="col-sm-4 col-xs-12 text-center" href="#3a" data-toggle="tab" id="progress3" onClick="tabToggle('#tab3')">
<div class="col-sm-4 col-xs-12 text-center" href="#3a" data-toggle="tab" id="progress3" onClick="tabToggle('#tab3')">
<label class="progress-label">requirements</label>
<label class="progress-label">requirements</label>
<div class="percent-blue fixed-width">
<div class="percent-blue fixed-width">
<p style="display:none;"><oneit:toString value="<%= jobApplication.get
CriteriaPercentage() %>"
mode="PercentageWholeNumber" /></p>
<p style="display:none;"><oneit:toString value="<%= jobApplication.get
RequirementFitScore() %>"
mode="PercentageWholeNumber" /></p>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -163,7 +163,7 @@
...
@@ -163,7 +163,7 @@
</div>
</div>
<div class="tab-pane" id="2a">
<div class="tab-pane" id="2a">
<%
<%
Map<CultureClass, Long> cultureFitData =
AnalysisEngine.getCultureFit(candidate.getCultureCriteriaAnswersSet(), job
);
Map<CultureClass, Long> cultureFitData =
(Map<CultureClass, Long>)jobApplication.getCultureFit(
);
for(CultureClass cClass: cultureFitData.keySet())
for(CultureClass cClass: cultureFitData.keySet())
{
{
...
@@ -236,7 +236,7 @@
...
@@ -236,7 +236,7 @@
</div>
</div>
<div class="tab-pane" id="3a">
<div class="tab-pane" id="3a">
<%
<%
Map<Importance, Long> requirementFitData =
AnalysisEngine.getRequirementFit(jobApplication.getAssessmentCriteriaAnswersSet()
);
Map<Importance, Long> requirementFitData =
(Map<Importance, Long>)jobApplication.getRequirementFit(
);
for(Importance importance: requirementFitData.keySet())
for(Importance importance: requirementFitData.keySet())
{
{
...
@@ -317,7 +317,7 @@
...
@@ -317,7 +317,7 @@
<div class="app-right-b">
<div class="app-right-b">
<div class="overall-suit">overall rank</div>
<div class="overall-suit">overall rank</div>
<div class="big-percentage">
<div class="big-percentage">
<oneit:toString value="<%= jobApplication.getOverall
Suitability
() %>" mode="Integer" />
<oneit:toString value="<%= jobApplication.getOverall
Rank
() %>" mode="Integer" />
</div>
</div>
</div>
</div>
<div class="applicant-contact-info">
<div class="applicant-contact-info">
...
...
cmsWebApp/webroot/extensions/adminportal/view_applicants_shortlist_grid.jsp
View file @
f562b95f
...
@@ -127,7 +127,7 @@
...
@@ -127,7 +127,7 @@
Candidate candidate = jobApplication.getCandidate();
Candidate candidate = jobApplication.getCandidate();
String appID = "app-id-" + jobApplication.getID().toString();
String appID = "app-id-" + jobApplication.getID().toString();
Map<FactorClass, Double> roleScoreMap =
AnalysisEngine.getRoleFitSuitability(candidate, job.getLevel()
);
Map<FactorClass, Double> roleScoreMap =
(Map<FactorClass, Double>)jobApplication.getRoleFit(
);
%>
%>
<div class="<%= "appl-c-box " + (i == 0 ? " cb-one" : "")%> ">
<div class="<%= "appl-c-box " + (i == 0 ? " cb-one" : "")%> ">
<oneit:button value=" " name="gotoPage" skin="link"
<oneit:button value=" " name="gotoPage" skin="link"
...
@@ -148,14 +148,14 @@
...
@@ -148,14 +148,14 @@
<div class="overall-suitablity grid-suitability">
<div class="overall-suitablity grid-suitability">
<!--TODO: need to work on the logic. just added to demonstrate that there are 3 different colors for this-->
<!--TODO: need to work on the logic. just added to demonstrate that there are 3 different colors for this-->
<div class="<%= "over-all " + (i == 0 ? "f-60 green" : (i < 3 ? "blue" : "gray"))%>">
<div class="<%= "over-all " + (i == 0 ? "f-60 green" : (i < 3 ? "blue" : "gray"))%>">
<oneit:toString value="<%= jobApplication.getOverall
Suitability
() %>" mode="Integer" />
<oneit:toString value="<%= jobApplication.getOverall
Rank
() %>" mode="Integer" />
</div>
</div>
<div class="<%= "overall " + (i == 0 ? "f-60" : "")%>">overall rank</div>
<div class="<%= "overall " + (i == 0 ? "f-60" : "")%>">overall rank</div>
</div>
</div>
<div class="jcc-box">
<div class="jcc-box">
<div class="job-match jcc">
<div class="job-match jcc">
<img src="images/app-job-match-icon.svg"> Role fit
<img src="images/app-job-match-icon.svg"> Role fit
<span><oneit:toString value="<%= jobApplication.get
JobMatchPercentage() %>"
mode="TwoDPDouble" /></span>
<span><oneit:toString value="<%= jobApplication.get
RoleFitScore() %>"
mode="TwoDPDouble" /></span>
</div>
</div>
<div class="detail-box">
<div class="detail-box">
<%
<%
...
@@ -181,13 +181,13 @@
...
@@ -181,13 +181,13 @@
requestAttribs="<%= CollectionUtils.mapEntry("nextPage", applicationPage)
requestAttribs="<%= CollectionUtils.mapEntry("nextPage", applicationPage)
.mapEntry("procParams", CollectionUtils.mapEntry("JobApplication", jobApplication).toMap())
.mapEntry("procParams", CollectionUtils.mapEntry("JobApplication", jobApplication).toMap())
.toMap() %>">
.toMap() %>">
<oneit:toString value="<%= jobApplication.getCulture
Percentage() %>"
mode="PercentageWholeNumber" />
<oneit:toString value="<%= jobApplication.getCulture
FitScore() %>"
mode="PercentageWholeNumber" />
</oneit:button>
</oneit:button>
</span>
</span>
</div>
</div>
<div class="detail-box">
<div class="detail-box">
<%
<%
Map<CultureClass, Long> cultureFitData =
AnalysisEngine.getCultureFit(candidate.getCultureCriteriaAnswersSet(), job
);
Map<CultureClass, Long> cultureFitData =
(Map<CultureClass, Long>)jobApplication.getCultureFit(
);
for(CultureClass cClass: cultureFitData.keySet())
for(CultureClass cClass: cultureFitData.keySet())
{
{
...
@@ -211,13 +211,13 @@
...
@@ -211,13 +211,13 @@
requestAttribs="<%= CollectionUtils.mapEntry("nextPage", applicationPage)
requestAttribs="<%= CollectionUtils.mapEntry("nextPage", applicationPage)
.mapEntry("procParams", CollectionUtils.mapEntry("JobApplication", jobApplication).toMap())
.mapEntry("procParams", CollectionUtils.mapEntry("JobApplication", jobApplication).toMap())
.toMap() %>">
.toMap() %>">
<oneit:toString value="<%= jobApplication.get
CriteriaPercentage() %>"
mode="PercentageWholeNumber" />
<oneit:toString value="<%= jobApplication.get
RequirementFitScore() %>"
mode="PercentageWholeNumber" />
</oneit:button>
</oneit:button>
</span>
</span>
</div>
</div>
<div class="detail-box">
<div class="detail-box">
<%
<%
Map<Importance, Long> requirementFitData =
AnalysisEngine.getRequirementFit(jobApplication.getAssessmentCriteriaAnswersSet()
);
Map<Importance, Long> requirementFitData =
(Map<Importance, Long>)jobApplication.getRequirementFit(
);
for(Importance importance: requirementFitData.keySet())
for(Importance importance: requirementFitData.keySet())
{
{
...
...
cmsWebApp/webroot/extensions/adminportal/view_applicantss_grid.jsp
View file @
f562b95f
...
@@ -140,7 +140,7 @@
...
@@ -140,7 +140,7 @@
<div class="overall-suitablity">
<div class="overall-suitablity">
<div class="<%= "overall " + (index == 0 ? "f-60" : "")%>">overall rank</div>
<div class="<%= "overall " + (index == 0 ? "f-60" : "")%>">overall rank</div>
<div class="<%= "over-all " + (index == 0 ? "f-60 green" : (index < 3 ? "blue" : "gray"))%> ">
<div class="<%= "over-all " + (index == 0 ? "f-60 green" : (index < 3 ? "blue" : "gray"))%> ">
<oneit:toString value="<%= jobApplication.getOverall
Suitability
() %>" mode="Integer" />
<oneit:toString value="<%= jobApplication.getOverall
Rank
() %>" mode="Integer" />
</div>
</div>
</div>
</div>
<div class="jcc-box">
<div class="jcc-box">
...
@@ -151,7 +151,7 @@
...
@@ -151,7 +151,7 @@
requestAttribs="<%= CollectionUtils.mapEntry("nextPage", applicationPage)
requestAttribs="<%= CollectionUtils.mapEntry("nextPage", applicationPage)
.mapEntry("procParams", CollectionUtils.mapEntry("JobApplication", jobApplication).toMap())
.mapEntry("procParams", CollectionUtils.mapEntry("JobApplication", jobApplication).toMap())
.toMap() %>">
.toMap() %>">
<oneit:toString value="<%= jobApplication.get
JobMatchPercentage() %>"
mode="TwoDPDouble" />
<oneit:toString value="<%= jobApplication.get
RoleFitScore() %>"
mode="TwoDPDouble" />
</oneit:button>
</oneit:button>
</span>
</span>
</div>
</div>
...
@@ -162,7 +162,7 @@
...
@@ -162,7 +162,7 @@
requestAttribs="<%= CollectionUtils.mapEntry("nextPage", applicationPage)
requestAttribs="<%= CollectionUtils.mapEntry("nextPage", applicationPage)
.mapEntry("procParams", CollectionUtils.mapEntry("JobApplication", jobApplication).toMap())
.mapEntry("procParams", CollectionUtils.mapEntry("JobApplication", jobApplication).toMap())
.toMap() %>">
.toMap() %>">
<oneit:toString value="<%= jobApplication.getCulture
Percentage() %>"
mode="PercentageWholeNumber" />
<oneit:toString value="<%= jobApplication.getCulture
FitScore() %>"
mode="PercentageWholeNumber" />
</oneit:button>
</oneit:button>
</span>
</span>
</div>
</div>
...
@@ -173,7 +173,7 @@
...
@@ -173,7 +173,7 @@
requestAttribs="<%= CollectionUtils.mapEntry("nextPage", applicationPage)
requestAttribs="<%= CollectionUtils.mapEntry("nextPage", applicationPage)
.mapEntry("procParams", CollectionUtils.mapEntry("JobApplication", jobApplication).toMap())
.mapEntry("procParams", CollectionUtils.mapEntry("JobApplication", jobApplication).toMap())
.toMap() %>">
.toMap() %>">
<oneit:toString value="<%= jobApplication.get
CriteriaPercentage() %>"
mode="PercentageWholeNumber" />
<oneit:toString value="<%= jobApplication.get
RequirementFitScore() %>"
mode="PercentageWholeNumber" />
</oneit:button>
</oneit:button>
</span>
</span>
</div>
</div>
...
...
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