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
e67837be
Commit
e67837be
authored
Oct 26, 2018
by
Nilu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
saving occupation
parent
69aa23fe
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
15 additions
and
3 deletions
+15
-3
ProcessCultureFP.java
cmsWebApp/src/performa/form/ProcessCultureFP.java
+8
-0
SaveJobFP.java
cmsWebApp/src/performa/form/SaveJobFP.java
+5
-0
BaseJob.java
cmsWebApp/src/performa/orm/BaseJob.java
+0
-0
Job.xml
cmsWebApp/src/performa/orm/Job.xml
+1
-0
job_detail.jsp
cmsWebApp/webroot/extensions/adminportal/job_detail.jsp
+1
-3
No files found.
cmsWebApp/src/performa/form/ProcessCultureFP.java
View file @
e67837be
...
...
@@ -12,6 +12,7 @@ import performa.orm.Job;
import
oneit.objstore.parser.BusinessObjectParser
;
import
oneit.servlets.process.ProcessRedirectResult
;
import
oneit.servlets.process.SaveFP
;
import
performa.orm.Occupation
;
public
class
ProcessCultureFP
extends
SaveFP
{
...
...
@@ -19,6 +20,13 @@ public class ProcessCultureFP extends SaveFP
@Override
public
SuccessfulResult
processForm
(
ORMProcessState
process
,
SubmissionDetails
submission
,
Map
params
)
throws
BusinessException
,
StorageException
{
Job
job
=
(
Job
)
process
.
getAttribute
(
"Job"
);
if
(
job
.
getOccupationId
()
!=
null
)
{
job
.
setOccupation
(
Occupation
.
getOccupationByID
(
process
.
getTransaction
(),
Long
.
valueOf
(
job
.
getOccupationId
())));
}
return
new
ProcessRedirectResult
((
String
)
submission
.
getRequest
().
getAttribute
(
"nextPage"
),
new
String
[
0
]);
}
...
...
cmsWebApp/src/performa/form/SaveJobFP.java
View file @
e67837be
...
...
@@ -85,6 +85,11 @@ public class SaveJobFP extends SaveFP
job
.
setDraftLocation
(
draftLocation
);
}
if
(
job
.
getOccupationId
()
!=
null
)
{
job
.
setOccupation
(
Occupation
.
getOccupationByID
(
process
.
getTransaction
(),
Long
.
valueOf
(
job
.
getOccupationId
())));
}
// restarting process as custom attributes needs to be updated to intercom
completeProcessRestartAndRestoreAttribs
(
process
,
request
);
...
...
cmsWebApp/src/performa/orm/BaseJob.java
View file @
e67837be
This diff is collapsed.
Click to expand it.
cmsWebApp/src/performa/orm/Job.xml
View file @
e67837be
...
...
@@ -26,6 +26,7 @@
<TRANSIENT
name=
"CultureTemplateName"
type=
"String"
/>
<TRANSIENT
name=
"AppProcessOption"
type=
"AppProcessOption"
attribHelper=
"EnumeratedAttributeHelper"
/>
<TRANSIENT
name=
"RankingCompleted"
type=
"Boolean"
/>
<TRANSIENT
name=
"OccupationId"
type=
"String"
/>
<TRANSIENTSINGLE
name=
"AssessmentTemplate"
type=
"AssessmentCriteriaTemplate"
/>
<TRANSIENTSINGLE
name=
"CultureTemplate"
type=
"CultureCriteriaTemplate"
/>
...
...
cmsWebApp/webroot/extensions/adminportal/job_detail.jsp
View file @
e67837be
...
...
@@ -252,9 +252,7 @@
<label><oneit:label GUIName="Job Occupation Classification" /></label>
<input type="text" class="form-control select-occupation search-input " placeholder="Select the occupation classification"
value="<%= job.getOccupation() != null ? job.getOccupation() : "Select the occupation classification"%>"></input>
<input type="hidden" id="select-occupation-id" />
<!--<tagfile:ormsingleasso_select obj="<%= job %>" assocName="Occupation" options="<%= Occupation.searchAll(transaction) %>"/>-->
<oneit:ormInput obj="<%= job %>" id="select-occupation-id" attributeName="OccupationId" type="hidden"/>
</div>
</div>
<div class="form-group row">
...
...
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