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
ea648583
Commit
ea648583
authored
Mar 27, 2018
by
Nilu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
HT001 - Dashboard - Replace 'Open Jobs' with 'Recent Jobs'
parent
a101556e
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
25 additions
and
2 deletions
+25
-2
Job.xml
cmsWebApp/sql/Job.xml
+1
-0
Job.sql
cmsWebApp/sql/ms/Job.sql
+1
-0
Job.sql
cmsWebApp/sql/oracle/Job.sql
+1
-0
Job.sql
cmsWebApp/sql/postgres/Job.sql
+1
-0
SaveJobFP.java
cmsWebApp/src/performa/form/SaveJobFP.java
+2
-0
BaseJob.java
cmsWebApp/src/performa/orm/BaseJob.java
+0
-0
Job.xml
cmsWebApp/src/performa/orm/Job.xml
+1
-0
JobPersistenceMgr.java
cmsWebApp/src/performa/orm/JobPersistenceMgr.java
+0
-0
page_admin_home.jsp
cmsWebApp/webroot/extensions/adminportal/page_admin_home.jsp
+4
-2
20180327_Alter_Job.xml
...ot/extensions/adminportal/upgrades/20180327_Alter_Job.xml
+14
-0
No files found.
cmsWebApp/sql/Job.xml
View file @
ea648583
...
...
@@ -24,6 +24,7 @@
<column
name=
"state"
type=
"String"
nullable=
"true"
length=
"200"
/>
<column
name=
"country"
type=
"String"
nullable=
"true"
length=
"200"
/>
<column
name=
"manually_closed"
type=
"Boolean"
nullable=
"true"
/>
<column
name=
"last_edited"
type=
"Date"
nullable=
"true"
/>
<column
name=
"level_id"
type=
"Long"
length=
"11"
nullable=
"true"
/>
<column
name=
"client_id"
type=
"Long"
length=
"11"
nullable=
"true"
/>
<column
name=
"company_user_id"
type=
"Long"
length=
"11"
nullable=
"true"
/>
...
...
cmsWebApp/sql/ms/Job.sql
View file @
ea648583
...
...
@@ -24,6 +24,7 @@ CREATE TABLE tl_job (
state
varchar
(
200
)
NULL
,
country
varchar
(
200
)
NULL
,
manually_closed
char
(
1
)
NULL
,
last_edited
datetime
NULL
,
level_id
numeric
(
12
)
NULL
,
client_id
numeric
(
12
)
NULL
,
company_user_id
numeric
(
12
)
NULL
,
...
...
cmsWebApp/sql/oracle/Job.sql
View file @
ea648583
...
...
@@ -25,6 +25,7 @@ CREATE TABLE tl_job (
state
varchar2
(
200
)
NULL
,
country
varchar2
(
200
)
NULL
,
manually_closed
char
(
1
)
NULL
,
last_edited
date
NULL
,
level_id
number
(
12
)
NULL
,
client_id
number
(
12
)
NULL
,
company_user_id
number
(
12
)
NULL
,
...
...
cmsWebApp/sql/postgres/Job.sql
View file @
ea648583
...
...
@@ -25,6 +25,7 @@ CREATE TABLE tl_job (
state
varchar
(
200
)
NULL
,
country
varchar
(
200
)
NULL
,
manually_closed
char
(
1
)
NULL
,
last_edited
timestamp
NULL
,
level_id
numeric
(
12
)
NULL
,
client_id
numeric
(
12
)
NULL
,
company_user_id
numeric
(
12
)
NULL
,
...
...
cmsWebApp/src/performa/form/SaveJobFP.java
View file @
ea648583
...
...
@@ -71,6 +71,8 @@ public class SaveJobFP extends SaveFP
job
.
setIsManuallyClosed
(
Boolean
.
TRUE
);
}
job
.
setLastEdited
(
new
Date
());
// restarting process as custom attributes needs to be updated to intercom
completeProcessRestartAndRestoreAttribs
(
process
,
request
);
...
...
cmsWebApp/src/performa/orm/BaseJob.java
View file @
ea648583
This diff is collapsed.
Click to expand it.
cmsWebApp/src/performa/orm/Job.xml
View file @
ea648583
...
...
@@ -47,6 +47,7 @@
<ATTRIB
name=
"State"
type=
"State"
dbcol=
"state"
defaultValue=
"State.WA"
attribHelper=
"EnumeratedAttributeHelper"
/>
<ATTRIB
name=
"Country"
type=
"Countries"
dbcol=
"country"
defaultValue=
"Countries.AU"
attribHelper=
"EnumeratedAttributeHelper"
/>
<ATTRIB
name=
"IsManuallyClosed"
type=
"Boolean"
dbcol=
"manually_closed"
defaultValue=
"Boolean.FALSE"
/>
<ATTRIB
name=
"LastEdited"
type=
"Date"
dbcol=
"last_edited"
/>
<SINGLEREFERENCE
name=
"Level"
type=
"Level"
dbcol=
"level_id"
mandatory=
"false"
/>
<SINGLEREFERENCE
name=
"Client"
type=
"Client"
dbcol=
"client_id"
backreferenceName=
"Jobs"
/>
...
...
cmsWebApp/src/performa/orm/JobPersistenceMgr.java
View file @
ea648583
This diff is collapsed.
Click to expand it.
cmsWebApp/webroot/extensions/adminportal/page_admin_home.jsp
View file @
ea648583
...
...
@@ -53,8 +53,10 @@
.search(transaction);
List<Job> recentJobs = ObjstoreUtils.sort(Arrays.asList(allJobs),
new ObjectTransform[]{ Job.pipesJob().toObjectLastModified() },
new Comparator[]{ CollectionUtils.reverse(CollectionUtils.DEFAULT_COMPARATOR) });
new ObjectTransform[]{ Job.pipesJob().toLastEdited() ,
Job.pipesJob().toObjectLastModified()},
new Comparator[]{ CollectionUtils.reverse(CollectionUtils.DEFAULT_COMPARATOR), CollectionUtils.reverse(CollectionUtils.DEFAULT_COMPARATOR), CollectionUtils.reverse(CollectionUtils.DEFAULT_COMPARATOR) });
Article jobsArticle = WebUtils.getArticleByShortCut(transaction, WebUtils.JOBS);
String nextPage = jobsArticle.getLink(request, CollectionUtils.mapEntry("cms.rm", WebUtils.VIEW_APPLICANTS).toMap());
...
...
cmsWebApp/webroot/extensions/adminportal/upgrades/20180327_Alter_Job.xml
0 → 100644
View file @
ea648583
<?xml version="1.0" encoding="UTF-8"?>
<!-- @AutoRun -->
<OBJECTS
name=
""
xmlns:oneit=
"http://www.1iT.com.au"
>
<NODE
name=
"Script"
factory=
"Vector"
>
<NODE
name=
"DDL"
factory=
"Participant"
class=
"oneit.sql.transfer.RedefineTableOperation"
>
<tableName
factory=
"String"
>
tl_job
</tableName>
<column
name=
"last_edited"
type=
"Date"
nullable=
"true"
/>
</NODE>
</NODE>
</OBJECTS>
\ 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