Commit 156e825c by Nilu Committed by Harsh Shah

Clicking (actual) number **> 0** of Filled Jobs goes to HT002 to list any filled…

Clicking (actual) number **> 0** of Filled Jobs goes to HT002 to list any filled jobs {_yes, I know, we don't have a filter nor sort for this yet_}

Row - Job - When moving from Draft to Open, the **clock begins at the time the Job is set to Open** (_not_ the Job's creation date)

fix issue with clonning
parent 3448b7f9
......@@ -12,6 +12,7 @@ import oneit.servlets.process.ORMProcessFormProcessor;
import oneit.servlets.process.ORMProcessState;
import oneit.utils.BusinessException;
import performa.orm.*;
import performa.orm.types.JobStatus;
/**
*
......@@ -41,6 +42,9 @@ public class LoadJobFromTemplateFP extends ORMProcessFormProcessor
jobTemplate.cloneJob(job);
job.initAttribs();
job.setJobStatus(JobStatus.DRAFT);
job.setApplyBy(null);
job.setOpenDate(null);
job.setCompletedDetails(Boolean.TRUE);
job.setCompletedAssessmentType(Boolean.TRUE);
job.setCompletedRequirements(Boolean.TRUE);
......
......@@ -25,10 +25,14 @@ public class SaveJobFP extends SaveFP
LogMgr.log(Job.LOG, LogLevel.PROCESSING1,"In SaveJobFP saving job : ", job );
Job oldJob = (Job) job.getEarliestBackup();
if(oldJob != null && oldJob.getJobStatus() == JobStatus.DRAFT)
{
job.setJobStatus(JobStatus.OPEN);
job.setApplyBy(DateDiff.add(DateDiff.getToday(), Calendar.DATE, 30));
job.setOpenDate(new Date());
}
return super.processForm(process, submission, params);
}
}
\ No newline at end of file
......@@ -2,6 +2,7 @@ package performa.utils;
import java.util.*;
import oneit.objstore.ObjectTransaction;
import oneit.objstore.rdbms.filters.EqualsFilter;
import oneit.objstore.rdbms.filters.GreaterThanEqualFilter;
import oneit.objstore.rdbms.filters.LessThanFilter;
import oneit.security.*;
......@@ -14,6 +15,7 @@ import oneit.utils.*;
import oneit.utils.filter.CollectionFilter;
import oneit.utils.filter.Filter;
import performa.orm.types.AppSortOption;
import performa.orm.types.JobStatus;
/**
*
......
......@@ -2600,6 +2600,14 @@ span.ex-management {
border-radius: 100px;
margin: -5px 11px;
}
.filled-status-icon{
width: 20px;
height: 20px;
border: solid 4px #f56440;
display: inline-block;
border-radius: 100px;
margin: -5px 11px;
}
.draft-status-icon{
width: 20px;
height: 20px;
......
......@@ -10,8 +10,6 @@
String firstTab = WebUtils.getSamePageInRenderMode(request, WebUtils.VIEW_APPLICANTS);
String secondTab = WebUtils.getSamePageInRenderMode(request, WebUtils.APPLICANTS_SHORTLIST);
String thirdTab = WebUtils.getSamePageInRenderMode(request, WebUtils.UNSUITABLE_APPS);
int closingInDays = DateDiff.getDateDiff(Calendar.DATE, DateDiff.getToday(), job.getApplyBy());
%>
<oneit:dynIncluded>
......
......@@ -55,7 +55,7 @@
</div>
</div>
</span>
Job Match
role fit
</div>
<div class="appli-jcs appli-l eq-second-height">
<span class="appli-view-bar">
......@@ -65,7 +65,7 @@
</div>
</div>
</span>
culture
culture fit
</div>
<div class="appli-jcs appli-l eq-second-height">
<span class="appli-view-bar">
......@@ -75,7 +75,7 @@
</div>
</div>
</span>
selection criteria
requirements
</div>
<div class="appli-status appli-l eq-second-height">
<!--TODO: logic needed to be worked out. Added to note that there are three colors-->
......
......@@ -28,12 +28,6 @@
fontWeight: 'normal'
});
// $(".job-row").click(function()
// {
// var id = $(this).closest('.job-list').attr('id');
// $('.' + id).click();
// });
$(".job-status").change(function()
{
var id = $(this).closest('.job-list').attr('id');
......@@ -48,6 +42,8 @@
{
int shortlisted = job.getNoOfCandidatesShortlisted();
int maxShortlist = job.getMaxShortlistApplicants();
nextPage = shortlisted > 0 ? shortlistPage : nextPage;
%>
<div class="job-list" id="<%= job.getID() %>">
<div class="job-row" >
......@@ -116,9 +112,9 @@
</div>
<div class="job-states jl-c wider-select">
<oneit:ormEnum obj="<%= job %>" attributeName="JobStatus" cssClass="form-control status-img job-status"
enums="<%= Arrays.asList(new JobStatus[]{JobStatus.OPEN, JobStatus.COMPLETE}) %>"/>
enums="<%= Arrays.asList(new JobStatus[]{JobStatus.OPEN, JobStatus.COMPLETE, JobStatus.FILLED}) %>"/>
</div>
<oneit:button name="save" value="Save" cssClass="<%= "save-job" + job.getID().toString() + " hidden"%>"
<oneit:button name="saveJob" value="Save" cssClass="<%= "save-job" + job.getID().toString() + " hidden"%>"
requestAttribs="<%= CollectionUtils.mapEntry("nextPage", homePage+ (jobStatus != null ? "&JobStatus=" + jobStatus : "")).toMap() %>" />
</div>
<%
......
<%@ page extends="oneit.servlets.jsp.JSPInclude" %>
<%@ include file="/inc/stdimports50.jsp" %><%-- This is in cougar --%>
<%@ include file="/inc/stdcms.jsp" %><%-- This is in cougar --%>
<%@ include file="/extensions/performa/inc/stdimports.jsp" %>
<%
Job job = (Job) process.getAttribute("Job");
String tabNumber = (String) getData(request, "TabNumber");
String firstTab = WebUtils.getSamePageInRenderMode(request, WebUtils.APPLICANTS_SHORTLIST);
String secondTab = WebUtils.getSamePageInRenderMode(request, WebUtils.APPLICANTS_GRID);
%>
<oneit:dynIncluded>
<script language="Javascript">
function updateOrder(s) {
alert(s.value);
// $('#changeJobStatu
//
// sBtn').click();
}
</script>
<div class="main-applicants-filter main-shortlist-filter">
<div class="appli-list-shorting main-shortlist">
<div class="appli-shorting-dropdown appli-left">
<span class="appli-order-label">Bulk Update</span>
<select class="form-control">
<option>Interview</option>
</select>
</div>
<div class="appli-filter">
<ul class="">
<li class="lable-appli-shorting">View</li>
<li class="<%= (tabNumber == "1" ? "active" : "" ) + " short-list"%>">
<oneit:button value="List" name="gotoPage" skin="link"
requestAttribs="<%= CollectionUtils.mapEntry("nextPage", firstTab)
.mapEntry("procParams", CollectionUtils.mapEntry("Job", job).toMap())
.toMap() %>"/>
</li>
<li class="<%= (tabNumber == "2" ? "active" : "" ) + " grid-list"%>">
<oneit:button value="Grid" name="gotoPage" skin="link"
requestAttribs="<%= CollectionUtils.mapEntry("nextPage", secondTab)
.mapEntry("procParams", CollectionUtils.mapEntry("Job", job).toMap())
.toMap() %>"/>
</li>
</ul>
</div>
<div class="appli-shorting-dropdown">
<span class="appli-order-label">Export</span>
<select class="form-control">
<option>PDF</option>
<option>CSV</option>
<option>XML</option>
</select>
</div>
<div class="appli-shorting-dropdown">
<span class="appli-order-label">order by</span>
<select onChange="updateOrder(this)" class="form-control" id="sortOrder">
<option>Suitability</option>
<option>Newest</option>
<option>Oldest</option>
</select>
</div>
</div>
</div>
</oneit:dynIncluded>
<!-- DELETED -->
\ No newline at end of file
......@@ -58,7 +58,27 @@
</div>
<div class="col-sm-3 col-xs-12 d-three-box gray-light">
<div class="d-fl-left eq-height">
<div class="dash-count c-gray">2</div>
<div class="dash-count c-gray">
<%
Job[] filledJobs = Job.SearchByAll().andJobStatus(new EqualsFilter<>(JobStatus.FILLED))
.andSecUser(new EqualsFilter(SecUser.getTXUser(transaction)))
.search(transaction);
int filledCount = filledJobs != null ? filledJobs.length : 0;
if(filledCount > 0)
{
%>
<oneit:button value=" " name="gotoPage" skin="link"
requestAttribs="<%= CollectionUtils.mapEntry("nextPage", jobsPage)
.mapEntry("procParams", CollectionUtils.mapEntry("JobStatus", JobStatus.FILLED).toMap())
.toMap() %>">
<oneit:toString value="<%= filledCount %>" mode="Integer" nullValue="0"/>
</oneit:button>
<%
}
%>
<%= filledCount == 0 ? "0" : "" %>
</div>
<div class="d-box-title">Jobs filled</div>
</div>
</div>
......
......@@ -20,7 +20,6 @@
String currentPage = WebUtils.getSamePageInRenderMode(request, WebUtils.VIEW_APPLICANTS);
String applicationPage = WebUtils.getSamePageInRenderMode(request, WebUtils.VIEW_APPLICATION);
int closingInDays = DateDiff.getDateDiff(Calendar.DATE, DateDiff.getToday(), job.getApplyBy());
AppSortOption appSortOpt = (AppSortOption) process.getAttribute("AppSortOption");
if(request.getParameter("AppSortOption") != null)
......
......@@ -20,7 +20,6 @@
String currentPage = WebUtils.getSamePageInRenderMode(request, WebUtils.UNSUITABLE_APPS);
String applicationPage = WebUtils.getSamePageInRenderMode(request, WebUtils.VIEW_APPLICATION);
int closingInDays = DateDiff.getDateDiff(Calendar.DATE, DateDiff.getToday(), job.getApplyBy());
AppSortOption appSortOpt = (AppSortOption) process.getAttribute("AppSortOption");
if(request.getParameter("AppSortOption") != null)
......
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