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
f3c5a50e
Commit
f3c5a50e
authored
Jul 10, 2017
by
chenith
Committed by
Harsh Shah
Sep 06, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update job to get close date
parent
4ce838cd
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
7 deletions
+5
-7
Job.java
cmsWebApp/src/performa/orm/Job.java
+5
-7
No files found.
cmsWebApp/src/performa/orm/Job.java
View file @
f3c5a50e
...
@@ -158,9 +158,9 @@ public class Job extends BaseJob
...
@@ -158,9 +158,9 @@ public class Job extends BaseJob
{
{
int
dateDiff
=
0
;
int
dateDiff
=
0
;
if
(
this
.
getJobStatus
()==
JobStatus
.
OPEN
&&
this
.
getApplyBy
()!=
null
)
if
(
getJobStatus
()==
JobStatus
.
OPEN
&&
getApplyBy
()!=
null
)
{
{
dateDiff
=
DateDiff
.
getDateDiff
(
Calendar
.
DATE
,
DateDiff
.
getToday
(),
this
.
getApplyBy
());
dateDiff
=
DateDiff
.
getDateDiff
(
Calendar
.
DATE
,
DateDiff
.
getToday
(),
getApplyBy
());
}
}
return
dateDiff
>
0
?
dateDiff
:
0
;
return
dateDiff
>
0
?
dateDiff
:
0
;
...
@@ -173,7 +173,7 @@ public class Job extends BaseJob
...
@@ -173,7 +173,7 @@ public class Job extends BaseJob
if
(
getApplyBy
()!=
null
)
if
(
getApplyBy
()!=
null
)
{
{
int
dateDiff
=
DateDiff
.
getDateDiff
(
Calendar
.
DATE
,
DateDiff
.
getToday
(),
getApplyBy
()
);
int
dateDiff
=
getNoOfDaystoClosed
(
);
sb
.
append
(
dateDiff
);
sb
.
append
(
dateDiff
);
...
@@ -194,7 +194,7 @@ public class Job extends BaseJob
...
@@ -194,7 +194,7 @@ public class Job extends BaseJob
{
{
StringBuilder
sb
=
new
StringBuilder
(
"Closing in "
);
StringBuilder
sb
=
new
StringBuilder
(
"Closing in "
);
if
(
this
.
getApplyBy
()!=
null
)
if
(
getApplyBy
()!=
null
)
{
{
int
dateDiff
=
getNoOfDaystoClosed
();
int
dateDiff
=
getNoOfDaystoClosed
();
...
@@ -217,9 +217,8 @@ public class Job extends BaseJob
...
@@ -217,9 +217,8 @@ public class Job extends BaseJob
{
{
StringBuilder
sb
=
new
StringBuilder
(
"THIS JOB IS "
);
StringBuilder
sb
=
new
StringBuilder
(
"THIS JOB IS "
);
sb
.
append
(
this
.
getJobStatus
().
getDescription
());
sb
.
append
(
getJobStatus
().
getDescription
());
return
sb
.
toString
();
return
sb
.
toString
();
}
}
}
}
\ No newline at end of file
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