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
2c610723
Commit
2c610723
authored
Oct 13, 2018
by
Nilu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adding occupation reference to job
parent
51afe037
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
80 additions
and
15 deletions
+80
-15
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
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
Occupation.java
cmsWebApp/src/performa/orm/Occupation.java
+7
-15
WebUtils.java
cmsWebApp/src/performa/utils/WebUtils.java
+2
-0
GeneralConfig_adminPortal.xml
...root/extensions/adminportal/GeneralConfig_adminPortal.xml
+1
-0
job_detail.jsp
cmsWebApp/webroot/extensions/adminportal/job_detail.jsp
+1
-0
occupation_selector.jsp
...pp/webroot/extensions/adminportal/occupation_selector.jsp
+51
-0
20181013_Alter_Job.xml
...ot/extensions/adminportal/upgrades/20181013_Alter_Job.xml
+13
-0
No files found.
cmsWebApp/sql/Job.xml
View file @
2c610723
...
@@ -36,6 +36,7 @@
...
@@ -36,6 +36,7 @@
<column
name=
"job_owner_id"
type=
"Long"
length=
"11"
nullable=
"true"
/>
<column
name=
"job_owner_id"
type=
"Long"
length=
"11"
nullable=
"true"
/>
<column
name=
"company_user_id"
type=
"Long"
length=
"11"
nullable=
"true"
/>
<column
name=
"company_user_id"
type=
"Long"
length=
"11"
nullable=
"true"
/>
<column
name=
"hiring_team_id"
type=
"Long"
length=
"11"
nullable=
"true"
/>
<column
name=
"hiring_team_id"
type=
"Long"
length=
"11"
nullable=
"true"
/>
<column
name=
"occupation_id"
type=
"Long"
length=
"11"
nullable=
"true"
/>
<column
name=
"shortened_url_id"
type=
"Long"
length=
"11"
nullable=
"true"
/>
<column
name=
"shortened_url_id"
type=
"Long"
length=
"11"
nullable=
"true"
/>
</NODE>
</NODE>
...
...
cmsWebApp/sql/ms/Job.sql
View file @
2c610723
...
@@ -36,6 +36,7 @@ CREATE TABLE tl_job (
...
@@ -36,6 +36,7 @@ CREATE TABLE tl_job (
job_owner_id
numeric
(
12
)
NULL
,
job_owner_id
numeric
(
12
)
NULL
,
company_user_id
numeric
(
12
)
NULL
,
company_user_id
numeric
(
12
)
NULL
,
hiring_team_id
numeric
(
12
)
NULL
,
hiring_team_id
numeric
(
12
)
NULL
,
occupation_id
numeric
(
12
)
NULL
,
shortened_url_id
numeric
(
12
)
NULL
shortened_url_id
numeric
(
12
)
NULL
);
);
...
...
cmsWebApp/sql/oracle/Job.sql
View file @
2c610723
...
@@ -37,6 +37,7 @@ CREATE TABLE tl_job (
...
@@ -37,6 +37,7 @@ CREATE TABLE tl_job (
job_owner_id
number
(
12
)
NULL
,
job_owner_id
number
(
12
)
NULL
,
company_user_id
number
(
12
)
NULL
,
company_user_id
number
(
12
)
NULL
,
hiring_team_id
number
(
12
)
NULL
,
hiring_team_id
number
(
12
)
NULL
,
occupation_id
number
(
12
)
NULL
,
shortened_url_id
number
(
12
)
NULL
shortened_url_id
number
(
12
)
NULL
);
);
...
...
cmsWebApp/sql/postgres/Job.sql
View file @
2c610723
...
@@ -37,6 +37,7 @@ CREATE TABLE tl_job (
...
@@ -37,6 +37,7 @@ CREATE TABLE tl_job (
job_owner_id
numeric
(
12
)
NULL
,
job_owner_id
numeric
(
12
)
NULL
,
company_user_id
numeric
(
12
)
NULL
,
company_user_id
numeric
(
12
)
NULL
,
hiring_team_id
numeric
(
12
)
NULL
,
hiring_team_id
numeric
(
12
)
NULL
,
occupation_id
numeric
(
12
)
NULL
,
shortened_url_id
numeric
(
12
)
NULL
shortened_url_id
numeric
(
12
)
NULL
);
);
...
...
cmsWebApp/src/performa/orm/BaseJob.java
View file @
2c610723
This diff is collapsed.
Click to expand it.
cmsWebApp/src/performa/orm/Job.xml
View file @
2c610723
...
@@ -60,6 +60,7 @@
...
@@ -60,6 +60,7 @@
<SINGLEREFERENCE
name=
"JobOwner"
type=
"CompanyUser"
dbcol=
"job_owner_id"
/>
<SINGLEREFERENCE
name=
"JobOwner"
type=
"CompanyUser"
dbcol=
"job_owner_id"
/>
<SINGLEREFERENCE
name=
"CreatedBy"
type=
"CompanyUser"
dbcol=
"company_user_id"
/>
<SINGLEREFERENCE
name=
"CreatedBy"
type=
"CompanyUser"
dbcol=
"company_user_id"
/>
<SINGLEREFERENCE
name=
"HiringTeam"
type=
"HiringTeam"
dbcol=
"hiring_team_id"
/>
<SINGLEREFERENCE
name=
"HiringTeam"
type=
"HiringTeam"
dbcol=
"hiring_team_id"
/>
<SINGLEREFERENCE
name=
"Occupation"
type=
"Occupation"
dbcol=
"occupation_id"
/>
<SINGLEREFERENCE
name=
"ShortenedURL"
type=
"ShortenedURL"
dbcol=
"shortened_url_id"
/>
<SINGLEREFERENCE
name=
"ShortenedURL"
type=
"ShortenedURL"
dbcol=
"shortened_url_id"
/>
</TABLE>
</TABLE>
...
...
cmsWebApp/src/performa/orm/JobPersistenceMgr.java
View file @
2c610723
This diff is collapsed.
Click to expand it.
cmsWebApp/src/performa/orm/Occupation.java
View file @
2c610723
package
performa
.
orm
;
package
performa
.
orm
;
import
java.io.*
;
import
java.util.*
;
import
oneit.appservices.config.*
;
import
oneit.logging.*
;
import
oneit.objstore.*
;
import
oneit.utils.*
;
import
performa.orm.types.*
;
public
class
Occupation
extends
BaseOccupation
public
class
Occupation
extends
BaseOccupation
{
{
...
@@ -24,5 +10,10 @@ public class Occupation extends BaseOccupation
...
@@ -24,5 +10,10 @@ public class Occupation extends BaseOccupation
{
{
// Do not add any code to this, always put it in initialiseNewObject
// Do not add any code to this, always put it in initialiseNewObject
}
}
}
@Override
public
String
getToString
()
{
return
getName
();
}
}
\ No newline at end of file
cmsWebApp/src/performa/utils/WebUtils.java
View file @
2c610723
...
@@ -19,6 +19,7 @@ public class WebUtils
...
@@ -19,6 +19,7 @@ public class WebUtils
public
static
final
String
ADMIN_HOME
=
"AdminHome"
;
public
static
final
String
ADMIN_HOME
=
"AdminHome"
;
public
static
final
String
APPLICANT_HOME
=
"ApplicantHome"
;
public
static
final
String
APPLICANT_HOME
=
"ApplicantHome"
;
public
static
final
String
CREATE_JOB
=
"CreateJob"
;
public
static
final
String
CREATE_JOB
=
"CreateJob"
;
public
static
final
String
OCCUPATION
=
"Occupation"
;
public
static
final
String
ASSESSMENT_CRITERIA
=
"AssessmentCriteria"
;
public
static
final
String
ASSESSMENT_CRITERIA
=
"AssessmentCriteria"
;
public
static
final
String
WORKPLACE_CULTURE
=
"WorkplaceCulture"
;
public
static
final
String
WORKPLACE_CULTURE
=
"WorkplaceCulture"
;
public
static
final
String
JOB_MATCH
=
"JobMatchAssessment"
;
public
static
final
String
JOB_MATCH
=
"JobMatchAssessment"
;
...
@@ -155,6 +156,7 @@ public class WebUtils
...
@@ -155,6 +156,7 @@ public class WebUtils
renderMode
.
equals
(
CARD_PAYMENT
)
||
renderMode
.
equals
(
CARD_PAYMENT
)
||
renderMode
.
equals
(
REPLACE_CARD
)
||
renderMode
.
equals
(
REPLACE_CARD
)
||
renderMode
.
equals
(
EDIT_CARD
)
||
renderMode
.
equals
(
EDIT_CARD
)
||
renderMode
.
equals
(
OCCUPATION
)
||
renderMode
.
equals
(
CREATED_JOB
);
renderMode
.
equals
(
CREATED_JOB
);
}
}
...
...
cmsWebApp/webroot/extensions/adminportal/GeneralConfig_adminPortal.xml
View file @
2c610723
...
@@ -45,6 +45,7 @@
...
@@ -45,6 +45,7 @@
<RenderMode
name=
"CreatedJob"
preIncludeJSP=
"extensions/adminportal/created_job.jsp"
/>
<RenderMode
name=
"CreatedJob"
preIncludeJSP=
"extensions/adminportal/created_job.jsp"
/>
<RenderMode
name=
"ReplaceCard"
preIncludeJSP=
"extensions/adminportal/replace_card_payment.jsp"
/>
<RenderMode
name=
"ReplaceCard"
preIncludeJSP=
"extensions/adminportal/replace_card_payment.jsp"
/>
<RenderMode
name=
"EditCard"
preIncludeJSP=
"extensions/adminportal/edit_card_payment.jsp"
/>
<RenderMode
name=
"EditCard"
preIncludeJSP=
"extensions/adminportal/edit_card_payment.jsp"
/>
<RenderMode
name=
"Occupation"
preIncludeJSP=
"extensions/adminportal/occupation_selector.jsp"
/>
</NODE>
</NODE>
</MAP>
</MAP>
...
...
cmsWebApp/webroot/extensions/adminportal/job_detail.jsp
View file @
2c610723
...
@@ -175,6 +175,7 @@
...
@@ -175,6 +175,7 @@
</div>
</div>
<div class="col-md-6">
<div class="col-md-6">
<label><oneit:label GUIName="Job Occupation Classification" /></label>
<label><oneit:label GUIName="Job Occupation Classification" /></label>
<tagfile:ormsingleasso_select obj="<%= job %>" assocName="Occupation" options="<%= Occupation.searchAll(transaction) %>"/>
</div>
</div>
</div>
</div>
<div class="form-group row">
<div class="form-group row">
...
...
cmsWebApp/webroot/extensions/adminportal/occupation_selector.jsp
0 → 100644
View file @
2c610723
<%@ 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" %>
<oneit:dynIncluded>
<%
String nextPage = WebUtils.getSamePageInRenderMode(request, "Occupation");
String jobPage = WebUtils.getSamePageInRenderMode(request, "CreateJob");
%>
<oneit:form name="editJob" method="post" enctype="multipart/form-data">
<div class="container-fluid">
<h1 class="page-title">Create a job</h1>
<div class="form-page-area">
<div>
<ul>
<%
for (Occupation occupation : Occupation.SearchByAll().andLevel(new EqualsFilter<>(OccupationLevel.LEVEL_1)).search(transaction))
{
%>
<li>
<%= occupation%>
</li>
<%
}
%>
</ul>
</div>
<div>
<ul>
<%
for (Occupation occupation : Occupation.SearchByAll().andLevel(new EqualsFilter<>(OccupationLevel.LEVEL_1)).search(transaction))
{
%>
<li>
<%= occupation%>
</li>
<%
}
%>
</ul>
</div>
</div>
</div>
</oneit:form>
</oneit:dynIncluded>
cmsWebApp/webroot/extensions/adminportal/upgrades/20181013_Alter_Job.xml
0 → 100644
View file @
2c610723
<?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=
"occupation_id"
type=
"Long"
length=
"11"
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