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
8f0fee74
Commit
8f0fee74
authored
Oct 23, 2017
by
john
Browse files
Options
Browse Files
Download
Plain Diff
Finish 20171023
parents
1576dac4
b7132697
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
115 additions
and
33 deletions
+115
-33
CultureCriteria.xml
cmsWebApp/sql/CultureCriteria.xml
+1
-1
CultureCriteria.sql
cmsWebApp/sql/ms/CultureCriteria.sql
+1
-1
CultureCriteria.sql
cmsWebApp/sql/oracle/CultureCriteria.sql
+1
-1
CultureCriteria.sql
cmsWebApp/sql/postgres/CultureCriteria.sql
+1
-1
ProcessCultureFP.java
cmsWebApp/src/performa/form/ProcessCultureFP.java
+45
-0
SaveCultureTemplateFP.java
cmsWebApp/src/performa/form/SaveCultureTemplateFP.java
+16
-3
SaveJobFP.java
cmsWebApp/src/performa/form/SaveJobFP.java
+10
-1
BaseCultureCriteria.java
cmsWebApp/src/performa/orm/BaseCultureCriteria.java
+1
-4
CultureCriteria.java
cmsWebApp/src/performa/orm/CultureCriteria.java
+9
-0
CultureCriteria.xml
cmsWebApp/src/performa/orm/CultureCriteria.xml
+1
-1
CustomServlets_adminPortal.xml
...oot/extensions/adminportal/CustomServlets_adminPortal.xml
+1
-0
job_main_tabs.jsp
...bApp/webroot/extensions/adminportal/inc/job_main_tabs.jsp
+4
-4
job_review_submit.jsp
...bApp/webroot/extensions/adminportal/job_review_submit.jsp
+1
-0
workplace_culture.jsp
...bApp/webroot/extensions/adminportal/workplace_culture.jsp
+19
-16
20171023_UpdateCultureCriteria.sql
...ions/performa/upgrades/20171023_UpdateCultureCriteria.sql
+4
-0
No files found.
cmsWebApp/sql/CultureCriteria.xml
View file @
8f0fee74
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
<column
name=
"object_created_date"
type=
"Date"
nullable=
"false"
length=
"22"
/>
<column
name=
"object_created_date"
type=
"Date"
nullable=
"false"
length=
"22"
/>
<column
name=
"importance"
type=
"String"
nullable=
"false"
length=
"200"
/>
<column
name=
"importance"
type=
"String"
nullable=
"false"
length=
"200"
/>
<column
name=
"culture_element_id"
type=
"Long"
length=
"11"
nullable=
"false"
/>
<column
name=
"culture_element_id"
type=
"Long"
length=
"11"
nullable=
"false"
/>
<column
name=
"culture_element_rating_id"
type=
"Long"
length=
"11"
nullable=
"
fals
e"
/>
<column
name=
"culture_element_rating_id"
type=
"Long"
length=
"11"
nullable=
"
tru
e"
/>
<column
name=
"job_id"
type=
"Long"
length=
"11"
nullable=
"true"
/>
<column
name=
"job_id"
type=
"Long"
length=
"11"
nullable=
"true"
/>
<column
name=
"template_id"
type=
"Long"
length=
"11"
nullable=
"true"
/>
<column
name=
"template_id"
type=
"Long"
length=
"11"
nullable=
"true"
/>
</NODE>
</NODE>
...
...
cmsWebApp/sql/ms/CultureCriteria.sql
View file @
8f0fee74
...
@@ -10,7 +10,7 @@ CREATE TABLE tl_culture_criteria (
...
@@ -10,7 +10,7 @@ CREATE TABLE tl_culture_criteria (
,
,
importance
varchar
(
200
)
NOT
NULL
,
importance
varchar
(
200
)
NOT
NULL
,
culture_element_id
numeric
(
12
)
NOT
NULL
,
culture_element_id
numeric
(
12
)
NOT
NULL
,
culture_element_rating_id
numeric
(
12
)
N
OT
N
ULL
,
culture_element_rating_id
numeric
(
12
)
NULL
,
job_id
numeric
(
12
)
NULL
,
job_id
numeric
(
12
)
NULL
,
template_id
numeric
(
12
)
NULL
template_id
numeric
(
12
)
NULL
);
);
...
...
cmsWebApp/sql/oracle/CultureCriteria.sql
View file @
8f0fee74
...
@@ -11,7 +11,7 @@ CREATE TABLE tl_culture_criteria (
...
@@ -11,7 +11,7 @@ CREATE TABLE tl_culture_criteria (
,
,
importance
varchar2
(
200
)
NOT
NULL
,
importance
varchar2
(
200
)
NOT
NULL
,
culture_element_id
number
(
12
)
NOT
NULL
,
culture_element_id
number
(
12
)
NOT
NULL
,
culture_element_rating_id
number
(
12
)
N
OT
N
ULL
,
culture_element_rating_id
number
(
12
)
NULL
,
job_id
number
(
12
)
NULL
,
job_id
number
(
12
)
NULL
,
template_id
number
(
12
)
NULL
template_id
number
(
12
)
NULL
);
);
...
...
cmsWebApp/sql/postgres/CultureCriteria.sql
View file @
8f0fee74
...
@@ -11,7 +11,7 @@ CREATE TABLE tl_culture_criteria (
...
@@ -11,7 +11,7 @@ CREATE TABLE tl_culture_criteria (
,
,
importance
varchar
(
200
)
NOT
NULL
,
importance
varchar
(
200
)
NOT
NULL
,
culture_element_id
numeric
(
12
)
NOT
NULL
,
culture_element_id
numeric
(
12
)
NOT
NULL
,
culture_element_rating_id
numeric
(
12
)
N
OT
N
ULL
,
culture_element_rating_id
numeric
(
12
)
NULL
,
job_id
numeric
(
12
)
NULL
,
job_id
numeric
(
12
)
NULL
,
template_id
numeric
(
12
)
NULL
template_id
numeric
(
12
)
NULL
);
);
...
...
cmsWebApp/src/performa/form/ProcessCultureFP.java
0 → 100644
View file @
8f0fee74
package
performa
.
form
;
import
oneit.servlets.forms.*
;
import
oneit.utils.*
;
import
performa.orm.CultureCriteria
;
import
java.util.Map
;
import
javax.servlet.http.HttpServletRequest
;
import
oneit.objstore.StorageException
;
import
oneit.servlets.forms.SubmissionDetails
;
import
oneit.servlets.process.ORMProcessState
;
import
performa.orm.Job
;
import
oneit.objstore.parser.BusinessObjectParser
;
import
oneit.servlets.process.ProcessRedirectResult
;
import
oneit.servlets.process.SaveFP
;
public
class
ProcessCultureFP
extends
SaveFP
{
@Override
public
SuccessfulResult
processForm
(
ORMProcessState
process
,
SubmissionDetails
submission
,
Map
params
)
throws
BusinessException
,
StorageException
{
return
new
ProcessRedirectResult
((
String
)
submission
.
getRequest
().
getAttribute
(
"nextPage"
),
new
String
[
0
]);
}
@Override
public
void
validate
(
ORMProcessState
process
,
SubmissionDetails
submission
,
MultiException
exceptions
,
Map
params
)
throws
StorageException
{
super
.
validate
(
process
,
submission
,
exceptions
,
params
);
HttpServletRequest
request
=
submission
.
getRequest
();
Job
job
=
(
Job
)
process
.
getAttribute
(
"Job"
);
Debug
.
assertion
(
job
!=
null
,
"No job found . Call from "
+
getClass
().
getName
());
for
(
CultureCriteria
criteria:
job
.
getCultureCriteriasSet
())
{
if
(
criteria
.
isRatingRequired
())
{
BusinessObjectParser
.
assertFieldCondition
(
criteria
.
getCultureElementRating
()
!=
null
,
criteria
,
CultureCriteria
.
SINGLEREFERENCE_CultureElementRating
,
"mandatory"
,
exceptions
,
true
,
request
);
}
}
}
}
\ No newline at end of file
cmsWebApp/src/performa/form/SaveCultureTemplateFP.java
View file @
8f0fee74
...
@@ -49,8 +49,12 @@ public class SaveCultureTemplateFP extends ORMProcessFormProcessor
...
@@ -49,8 +49,12 @@ public class SaveCultureTemplateFP extends ORMProcessFormProcessor
criteriaCopy
.
setCultureElement
(
criteria
.
getCultureElement
().
getInTransaction
(
newObjTran
));
criteriaCopy
.
setCultureElement
(
criteria
.
getCultureElement
().
getInTransaction
(
newObjTran
));
criteriaCopy
.
setImportance
(
criteria
.
getImportance
());
criteriaCopy
.
setImportance
(
criteria
.
getImportance
());
criteriaCopy
.
setCultureElementRating
(
criteria
.
getCultureElementRating
().
getInTransaction
(
newObjTran
));
if
(
criteria
.
getCultureElementRating
()!=
null
)
{
criteriaCopy
.
setCultureElementRating
(
criteria
.
getCultureElementRating
().
getInTransaction
(
newObjTran
));
}
newTemplate
.
addToCultureCriterias
(
criteriaCopy
);
newTemplate
.
addToCultureCriterias
(
criteriaCopy
);
}
}
});
});
...
@@ -71,8 +75,16 @@ public class SaveCultureTemplateFP extends ORMProcessFormProcessor
...
@@ -71,8 +75,16 @@ public class SaveCultureTemplateFP extends ORMProcessFormProcessor
HttpServletRequest
request
=
submission
.
getRequest
();
HttpServletRequest
request
=
submission
.
getRequest
();
Job
job
=
(
Job
)
request
.
getAttribute
(
"Job"
);
Job
job
=
(
Job
)
request
.
getAttribute
(
"Job"
);
for
(
CultureCriteria
criteria:
job
.
getCultureCriteriasSet
())
{
if
(
criteria
.
isRatingRequired
())
{
BusinessObjectParser
.
assertFieldCondition
(
criteria
.
getCultureElementRating
()
!=
null
,
criteria
,
CultureCriteria
.
SINGLEREFERENCE_CultureElementRating
,
"mandatory"
,
exceptions
,
true
,
request
);
}
}
BusinessObjectParser
.
assertFieldCondition
(
job
.
getCultureTemplateName
()
!=
null
,
job
,
Job
.
FIELD_CultureTemplateName
,
"mandatory"
,
exceptions
,
true
,
request
);
BusinessObjectParser
.
assertFieldCondition
(
job
.
getCultureTemplateName
()
!=
null
,
job
,
Job
.
FIELD_CultureTemplateName
,
"mandatory"
,
exceptions
,
true
,
request
);
super
.
validate
(
process
,
submission
,
exceptions
,
params
);
super
.
validate
(
process
,
submission
,
exceptions
,
params
);
}
}
}
}
\ No newline at end of file
cmsWebApp/src/performa/form/SaveJobFP.java
View file @
8f0fee74
...
@@ -14,7 +14,6 @@ import oneit.servlets.process.SaveFP;
...
@@ -14,7 +14,6 @@ import oneit.servlets.process.SaveFP;
import
oneit.utils.BusinessException
;
import
oneit.utils.BusinessException
;
import
oneit.utils.DateDiff
;
import
oneit.utils.DateDiff
;
import
performa.orm.Job
;
import
performa.orm.Job
;
import
performa.orm.ShortenedURL
;
import
performa.orm.types.JobStatus
;
import
performa.orm.types.JobStatus
;
...
@@ -25,6 +24,7 @@ public class SaveJobFP extends SaveFP
...
@@ -25,6 +24,7 @@ public class SaveJobFP extends SaveFP
{
{
HttpServletRequest
request
=
submission
.
getRequest
();
HttpServletRequest
request
=
submission
.
getRequest
();
Job
job
=
process
.
getAttribute
(
"Job"
)
!=
null
?
(
Job
)
process
.
getAttribute
(
"Job"
)
:
(
Job
)
request
.
getAttribute
(
"Job"
);
Job
job
=
process
.
getAttribute
(
"Job"
)
!=
null
?
(
Job
)
process
.
getAttribute
(
"Job"
)
:
(
Job
)
request
.
getAttribute
(
"Job"
);
Boolean
openJob
=
(
Boolean
)
request
.
getAttribute
(
"openJob"
);
LogMgr
.
log
(
Job
.
LOG
,
LogLevel
.
PROCESSING1
,
"In SaveJobFP saving job : "
,
job
);
LogMgr
.
log
(
Job
.
LOG
,
LogLevel
.
PROCESSING1
,
"In SaveJobFP saving job : "
,
job
);
...
@@ -36,6 +36,15 @@ public class SaveJobFP extends SaveFP
...
@@ -36,6 +36,15 @@ public class SaveJobFP extends SaveFP
job
.
setOpenDate
(
new
Date
());
job
.
setOpenDate
(
new
Date
());
}
}
if
(
openJob
==
Boolean
.
TRUE
)
{
job
.
setJobStatus
(
JobStatus
.
OPEN
);
job
.
setApplyBy
(
DateDiff
.
add
(
DateDiff
.
getToday
(),
Calendar
.
DATE
,
30
));
job
.
setOpenDate
(
new
Date
());
LogMgr
.
log
(
Job
.
LOG
,
LogLevel
.
PROCESSING1
,
"Job status changed as Open. "
,
job
);
}
if
(
job
.
getJobStatus
()
==
JobStatus
.
OPEN
&&
job
.
getShortenedURL
()
==
null
)
if
(
job
.
getJobStatus
()
==
JobStatus
.
OPEN
&&
job
.
getShortenedURL
()
==
null
)
{
{
job
.
createShortenedURL
();
job
.
createShortenedURL
();
...
...
cmsWebApp/src/performa/orm/BaseCultureCriteria.java
View file @
8f0fee74
...
@@ -130,7 +130,7 @@ public abstract class BaseCultureCriteria extends BaseBusinessClass
...
@@ -130,7 +130,7 @@ public abstract class BaseCultureCriteria extends BaseBusinessClass
Map
metaInfo
=
new
HashMap
();
Map
metaInfo
=
new
HashMap
();
metaInfo
.
put
(
"dbcol"
,
"culture_element_rating_id"
);
metaInfo
.
put
(
"dbcol"
,
"culture_element_rating_id"
);
metaInfo
.
put
(
"mandatory"
,
"
tru
e"
);
metaInfo
.
put
(
"mandatory"
,
"
fals
e"
);
metaInfo
.
put
(
"name"
,
"CultureElementRating"
);
metaInfo
.
put
(
"name"
,
"CultureElementRating"
);
metaInfo
.
put
(
"type"
,
"CultureElementRating"
);
metaInfo
.
put
(
"type"
,
"CultureElementRating"
);
...
@@ -704,7 +704,6 @@ public abstract class BaseCultureCriteria extends BaseBusinessClass
...
@@ -704,7 +704,6 @@ public abstract class BaseCultureCriteria extends BaseBusinessClass
*/
*/
public
void
setCultureElementRating
(
CultureElementRating
newCultureElementRating
)
throws
StorageException
,
FieldException
public
void
setCultureElementRating
(
CultureElementRating
newCultureElementRating
)
throws
StorageException
,
FieldException
{
{
BusinessObjectParser
.
assertFieldCondition
(
newCultureElementRating
!=
null
,
this
,
SINGLEREFERENCE_CultureElementRating
,
"mandatory"
);
if
(
_CultureElementRating
.
wouldReferencedChange
(
newCultureElementRating
))
if
(
_CultureElementRating
.
wouldReferencedChange
(
newCultureElementRating
))
...
@@ -1231,8 +1230,6 @@ public abstract class BaseCultureCriteria extends BaseBusinessClass
...
@@ -1231,8 +1230,6 @@ public abstract class BaseCultureCriteria extends BaseBusinessClass
context
.
check
(
getCultureElementID
()
!=
null
,
this
,
SINGLEREFERENCE_CultureElement
,
"mandatory"
);
context
.
check
(
getCultureElementID
()
!=
null
,
this
,
SINGLEREFERENCE_CultureElement
,
"mandatory"
);
context
.
check
(
getCultureElementRatingID
()
!=
null
,
this
,
SINGLEREFERENCE_CultureElementRating
,
"mandatory"
);
}
}
...
...
cmsWebApp/src/performa/orm/CultureCriteria.java
View file @
8f0fee74
package
performa
.
orm
;
package
performa
.
orm
;
import
performa.orm.types.Importance
;
public
class
CultureCriteria
extends
BaseCultureCriteria
public
class
CultureCriteria
extends
BaseCultureCriteria
{
{
...
@@ -10,4 +12,10 @@ public class CultureCriteria extends BaseCultureCriteria
...
@@ -10,4 +12,10 @@ public class CultureCriteria extends BaseCultureCriteria
{
{
// Do not add any code to this, always put it in initialiseNewObject
// Do not add any code to this, always put it in initialiseNewObject
}
}
public
Boolean
isRatingRequired
()
{
return
getImportance
()!=
null
&&
getImportance
()!=
Importance
.
NOT_APPLICABLE
;
}
}
}
\ No newline at end of file
cmsWebApp/src/performa/orm/CultureCriteria.xml
View file @
8f0fee74
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
<ATTRIB
name=
"Importance"
type=
"Importance"
dbcol=
"importance"
attribHelper=
"EnumeratedAttributeHelper"
mandatory=
"true"
defaultValue=
"Importance.NOT_APPLICABLE"
/>
<ATTRIB
name=
"Importance"
type=
"Importance"
dbcol=
"importance"
attribHelper=
"EnumeratedAttributeHelper"
mandatory=
"true"
defaultValue=
"Importance.NOT_APPLICABLE"
/>
<SINGLEREFERENCE
name=
"CultureElement"
type=
"CultureElement"
dbcol=
"culture_element_id"
mandatory=
"true"
/>
<SINGLEREFERENCE
name=
"CultureElement"
type=
"CultureElement"
dbcol=
"culture_element_id"
mandatory=
"true"
/>
<SINGLEREFERENCE
name=
"CultureElementRating"
type=
"CultureElementRating"
dbcol=
"culture_element_rating_id"
mandatory=
"
true"
/>
<SINGLEREFERENCE
name=
"CultureElementRating"
type=
"CultureElementRating"
dbcol=
"culture_element_rating_id"
mandatory=
"
false"
/>
<SINGLEREFERENCE
name=
"Job"
type=
"Job"
dbcol=
"job_id"
backreferenceName=
"CultureCriterias"
/>
<SINGLEREFERENCE
name=
"Job"
type=
"Job"
dbcol=
"job_id"
backreferenceName=
"CultureCriterias"
/>
<SINGLEREFERENCE
name=
"Template"
type=
"CultureCriteriaTemplate"
dbcol=
"template_id"
backreferenceName=
"CultureCriterias"
/>
<SINGLEREFERENCE
name=
"Template"
type=
"CultureCriteriaTemplate"
dbcol=
"template_id"
backreferenceName=
"CultureCriterias"
/>
...
...
cmsWebApp/webroot/extensions/adminportal/CustomServlets_adminPortal.xml
View file @
8f0fee74
...
@@ -52,6 +52,7 @@
...
@@ -52,6 +52,7 @@
</FORM>
</FORM>
<FORM
name=
"*.saveClient"
factory=
"Participant"
class=
"performa.form.SaveClientFP"
/>
<FORM
name=
"*.saveClient"
factory=
"Participant"
class=
"performa.form.SaveClientFP"
/>
<FORM
name=
"*.saveCompany"
factory=
"Participant"
class=
"performa.form.SaveCompanyFP"
/>
<FORM
name=
"*.saveCompany"
factory=
"Participant"
class=
"performa.form.SaveCompanyFP"
/>
<FORM
name=
"*.processCulture"
factory=
"Participant"
class=
"performa.form.ProcessCultureFP"
/>
</NODE>
</NODE>
<NODE
name=
"job_assessment_criteria_add_jsp"
factory=
"Participant"
>
<NODE
name=
"job_assessment_criteria_add_jsp"
factory=
"Participant"
>
...
...
cmsWebApp/webroot/extensions/adminportal/inc/job_main_tabs.jsp
View file @
8f0fee74
...
@@ -29,7 +29,7 @@
...
@@ -29,7 +29,7 @@
</oneit:button>
</oneit:button>
</li>
</li>
<li class="<%= pageNumber == "2" ? "active" : CollectionUtils.equals(job.getCompletedAssessmentType(), Boolean.TRUE) || savedJob ? "complate" : ""%>">
<li class="<%= pageNumber == "2" ? "active" : CollectionUtils.equals(job.getCompletedAssessmentType(), Boolean.TRUE) || savedJob ? "complate" : ""%>">
<oneit:button value=" " name="
gotoPag
e" skin="link"
<oneit:button value=" " name="
processCultur
e" skin="link"
requestAttribs="<%= CollectionUtils.mapEntry("nextPage", secondPage)
requestAttribs="<%= CollectionUtils.mapEntry("nextPage", secondPage)
.mapEntry("procParams", CollectionUtils.mapEntry("Job", job).toMap())
.mapEntry("procParams", CollectionUtils.mapEntry("Job", job).toMap())
.toMap() %>">
.toMap() %>">
...
@@ -38,7 +38,7 @@
...
@@ -38,7 +38,7 @@
</oneit:button>
</oneit:button>
</li>
</li>
<li class="<%= pageNumber == "3" ? "active" : CollectionUtils.equals(job.getCompletedCulture(), Boolean.TRUE) || savedJob ? "complate" : ""%>">
<li class="<%= pageNumber == "3" ? "active" : CollectionUtils.equals(job.getCompletedCulture(), Boolean.TRUE) || savedJob ? "complate" : ""%>">
<oneit:button value=" " name="
gotoPag
e" skin="link"
<oneit:button value=" " name="
processCultur
e" skin="link"
requestAttribs="<%= CollectionUtils.mapEntry("nextPage", thirdPage)
requestAttribs="<%= CollectionUtils.mapEntry("nextPage", thirdPage)
.mapEntry("procParams", CollectionUtils.mapEntry("Job", job).toMap())
.mapEntry("procParams", CollectionUtils.mapEntry("Job", job).toMap())
.toMap() %>">
.toMap() %>">
...
@@ -47,7 +47,7 @@
...
@@ -47,7 +47,7 @@
</oneit:button>
</oneit:button>
</li>
</li>
<li class="<%= pageNumber == "4" ? "active" : CollectionUtils.equals(job.getCompletedRequirements(), Boolean.TRUE) || savedJob ? "complate" : ""%>">
<li class="<%= pageNumber == "4" ? "active" : CollectionUtils.equals(job.getCompletedRequirements(), Boolean.TRUE) || savedJob ? "complate" : ""%>">
<oneit:button value=" " name="
gotoPag
e" skin="link"
<oneit:button value=" " name="
processCultur
e" skin="link"
requestAttribs="<%= CollectionUtils.mapEntry("nextPage", fourthPage)
requestAttribs="<%= CollectionUtils.mapEntry("nextPage", fourthPage)
.mapEntry("procParams", CollectionUtils.mapEntry("Job", job).toMap())
.mapEntry("procParams", CollectionUtils.mapEntry("Job", job).toMap())
.toMap() %>">
.toMap() %>">
...
@@ -56,7 +56,7 @@
...
@@ -56,7 +56,7 @@
</oneit:button>
</oneit:button>
</li>
</li>
<li class="<%= pageNumber == "5" ? "active" : ""%>">
<li class="<%= pageNumber == "5" ? "active" : ""%>">
<oneit:button value=" " name="
gotoPag
e" skin="link"
<oneit:button value=" " name="
processCultur
e" skin="link"
requestAttribs="<%= CollectionUtils.mapEntry("nextPage", fifthPage)
requestAttribs="<%= CollectionUtils.mapEntry("nextPage", fifthPage)
.mapEntry("procParams", CollectionUtils.mapEntry("Job", job).toMap())
.mapEntry("procParams", CollectionUtils.mapEntry("Job", job).toMap())
.toMap() %>">
.toMap() %>">
...
...
cmsWebApp/webroot/extensions/adminportal/job_review_submit.jsp
View file @
8f0fee74
...
@@ -215,6 +215,7 @@
...
@@ -215,6 +215,7 @@
<oneit:button value="Open this job" name="saveJob" cssClass="btn btn-primary btn-green top-margin-25 largeBtn"
<oneit:button value="Open this job" name="saveJob" cssClass="btn btn-primary btn-green top-margin-25 largeBtn"
requestAttribs="<%= CollectionUtils.mapEntry("nextPage", nextPage)
requestAttribs="<%= CollectionUtils.mapEntry("nextPage", nextPage)
.mapEntry ("fromPage", fifthPage)
.mapEntry ("fromPage", fifthPage)
.mapEntry ("openJob", Boolean.TRUE)
.mapEntry ("restartProcess", Boolean.TRUE)
.mapEntry ("restartProcess", Boolean.TRUE)
.mapEntry ("attribNamesToRestore", Collections.singleton("Job"))
.mapEntry ("attribNamesToRestore", Collections.singleton("Job"))
.toMap() %>" />
.toMap() %>" />
...
...
cmsWebApp/webroot/extensions/adminportal/workplace_culture.jsp
View file @
8f0fee74
...
@@ -188,21 +188,23 @@
...
@@ -188,21 +188,23 @@
</span>
</span>
</div>
</div>
</div>
</div>
<%
<oneit:recalcClass htmlTag="div" classScript="criteria.isRatingRequired() ? 'show': 'hide'" criteria="<%= criteria %>">
for (CultureElementRating rating : criteria.getCultureElement().getRatingsSet())
<%
{
for (CultureElementRating rating : criteria.getCultureElement().getRatingsSet())
String ratingId = String.valueOf(rating.getID().longID());
{
String selectedStr = (CollectionUtils.equals(ratingId, formValue) ? "checked" : "");
String ratingId = String.valueOf(rating.getID().longID());
%>
String selectedStr = (CollectionUtils.equals(ratingId, formValue) ? "checked" : "");
<div class="<%= "radio radio-primary workplace-radio " %>">
%>
<input type="radio" name="<%= optionKey %>" id="<%= ratingId %>" class="element_rating_radio" value="<%= ratingId %>" <%= selectedStr %> >
<div class="<%= "radio radio-primary workplace-radio " %>">
<label for="<%= ratingId %>">
<input type="radio" name="<%= optionKey %>" id="<%= ratingId %>" class="element_rating_radio" value="<%= ratingId %>" <%= selectedStr %> >
<oneit:toString value="<%= rating %>" mode="EscapeHTML"/>
<label for="<%= ratingId %>">
</label>
<oneit:toString value="<%= rating %>" mode="EscapeHTML"/>
</div>
</label>
<%
</div>
}
<%
%>
}
%>
</oneit:recalcClass>
</div>
</div>
<div class="form-brack-line-sub"></div>
<div class="form-brack-line-sub"></div>
<%
<%
...
@@ -239,8 +241,9 @@
...
@@ -239,8 +241,9 @@
</div>
</div>
</oneit:recalcClass>
</oneit:recalcClass>
<div class="text-center">
<div class="text-center">
<oneit:button value="Proceed to Requirements" name="
gotoPag
e" cssClass="btn btn-primary top-margin-25 largeBtn"
<oneit:button value="Proceed to Requirements" name="
processCultur
e" cssClass="btn btn-primary top-margin-25 largeBtn"
requestAttribs="<%= CollectionUtils.mapEntry("nextPage", nextPage)
requestAttribs="<%= CollectionUtils.mapEntry("nextPage", nextPage)
.mapEntry("Job", job)
.mapEntry("procParams", CollectionUtils.mapEntry("Job", job).toMap())
.mapEntry("procParams", CollectionUtils.mapEntry("Job", job).toMap())
.toMap() %>" />
.toMap() %>" />
</div>
</div>
...
...
cmsWebApp/webroot/extensions/performa/upgrades/20171023_UpdateCultureCriteria.sql
0 → 100644
View file @
8f0fee74
-- @AutoRun
ALTER
TABLE
tl_culture_criteria
ALTER
COLUMN
culture_element_rating_id
DROP
NOT
NULL
;
\ 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