Commit 3a43cd00 by Nilu

incomplete applications HT007 updates

parent 2ba8a0b6
......@@ -109,6 +109,16 @@ public class Candidate extends BaseCandidate
return false;
}
public double cultureCompletedPercentage(Job job)
{
return (getCultureCriteriaAnswersCount() * 100) / job.getCultureCriteriasCount() ;
}
public double roleFitCompletedPercentage(Job job)
{
return (getProfileAssessmentAnswersCount() * 100) / job.getAllLeftQuestions().size() ;
}
public Collection<Answer> getCompletedAnswers(Job job)
{
return CollectionFilter.filter(getProfileAssessmentAnswersSet(), new ExpressAnswerFilter(job.isExpressJob()));
......
......@@ -331,6 +331,13 @@ public class JobApplication extends BaseJobApplication
return hasFailedEssentialRequirements() ? "red-b" : (score >= 80 ? "green" : (score >= 60 ? "yellow" : "red-b"));
}
// public Long cultureCompleteness()
// {
// getCandidate().getCompletedAnswers(BaseJob.DUMMY_Job)
// }
public Boolean hasFailedEssentialRequirements()
{
......
......@@ -31,8 +31,8 @@
for(JobApplication jobApplication : applications)
{
long criteriaVal = jobApplication.getRequirementFitScore();
String roleFit = FormatUtils.stringify(jobApplication.getRoleFitPercentage(), "PercentageTwoDP", "0");
String culture = FormatUtils.stringify(jobApplication.getCultureFitScore(), "PercentageWholeNumber", "0");
String roleFit = FormatUtils.stringify(jobApplication.getCandidate().roleFitCompletedPercentage(job), "PercentageTwoDP", "0");
String culture = FormatUtils.stringify(jobApplication.getCandidate().cultureCompletedPercentage(job), "PercentageWholeNumber", "0");
String criteria = FormatUtils.stringify(jobApplication.getRequirementFitScore(), "PercentageWholeNumber", "0");
String appID = "app-id-" + jobApplication.getID().toString();
Integer overallRank = jobApplication.getOverallRank();
......@@ -56,19 +56,11 @@
.toMap() %>">
<oneit:toString value="<%= jobApplication.getCandidate() %>" mode="EscapeHTML" />
<div class="appli-int-status">
<oneit:toString value="<%= jobApplication.getApplicantStatusStr() %>" mode="EscapeHTML" />
<a href="<%= "mailto:" + jobApplication.getCandidate().getUser().getUserName() %>">Email</a>
<oneit:toString value="<%= jobApplication.getCandidate().getPhone() %>" mode="EscapeHTML" />
</div>
</oneit:button>
</div>
<div class="appli-overall appli-l eq-second-height">
<div class="rank">
Overall rank
</div>
<!--TODO: logic needed to be worked out. Added to note that there are three colors-->
<div class="<%= "appli-percent-no blue " + (isTopRank ? "first" : "")%>">
<oneit:toString value="<%= jobApplication.getOverallRank() %>" mode="Integer" />
</div>
</div>
<%
String widthClass = "appli-jcs2";
......@@ -76,29 +68,8 @@
{
widthClass = "appli-jcs";
}
%>
<div class="<%= widthClass %> appli-l eq-second-height">
<span class="appli-view-bar">
<div class="progress">
<div class="progress-bar" role="progressbar" aria-valuenow="<%= roleFit %>" aria-valuemin="0" aria-valuemax="100"
style="<%= "width: " + roleFit %>">
</div>
</div>
</span>
role fit
</div>
<div class="<%= widthClass %> appli-l eq-second-height">
<span class="appli-view-bar">
<div class="progress">
<div class="progress-bar" role="progressbar" aria-valuenow="<%= culture %>" aria-valuemin="0" aria-valuemax="100"
style="<%= "width: " + culture %>">
</div>
</div>
</span>
culture fit
</div>
<%
if(job.getIncludeAssessmentCriteria()==Boolean.TRUE)
if(job.getIncludeAssessmentCriteria() == Boolean.TRUE)
{
%>
<div class="<%= widthClass %> appli-l eq-second-height">
......@@ -117,6 +88,26 @@
<%
}
%>
<div class="<%= widthClass %> appli-l eq-second-height">
<span class="appli-view-bar">
<div class="progress">
<div class="progress-bar" role="progressbar" aria-valuenow="<%= culture %>" aria-valuemin="0" aria-valuemax="100"
style="<%= "width: " + culture %>">
</div>
</div>
</span>
culture fit
</div>
<div class="<%= widthClass %> appli-l eq-second-height">
<span class="appli-view-bar">
<div class="progress">
<div class="progress-bar" role="progressbar" aria-valuenow="<%= roleFit %>" aria-valuemin="0" aria-valuemax="100"
style="<%= "width: " + roleFit %>">
</div>
</div>
</span>
role fit
</div>
<div class="appli-status appli-l eq-second-height">
<div class="appli-list-drop">
<tagfile:ormsingleasso_select obj="<%= jobApplication %>" assocName="WorkFlow" cssClass="form-control app-process"
......
......@@ -35,8 +35,6 @@
{
subscription = StripeUtils.retrieveSubscription(hiringTeam.getStripeSubscription());
}
System.out.println(subscription);
%>
<script type="text/javascript">
var Popup = null;
......
......@@ -110,7 +110,7 @@
<%
if(showList)
{
if(workflowStatus == ApplicationStatus.SHORTLISTED)
if(workflowStatus == ApplicationStatus.DRAFT)
{
%>
<oneit:dynInclude page="/extensions/adminportal/inc/incomplete_applicants_list.jsp"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment