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
fd7bdb88
Commit
fd7bdb88
authored
Oct 11, 2017
by
Nilu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
J003 For ‘Rate Importance’ use (Not Applicable / Somewhat Important / Important / Essential)
parent
57a0e7d9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
6 deletions
+19
-6
Importance.java
cmsWebApp/src/performa/orm/types/Importance.java
+12
-0
Importance.xml
cmsWebApp/src/performa/orm/types/Importance.xml
+6
-4
workplace_culture.jsp
...bApp/webroot/extensions/adminportal/workplace_culture.jsp
+1
-2
No files found.
cmsWebApp/src/performa/orm/types/Importance.java
View file @
fd7bdb88
...
@@ -41,6 +41,8 @@ public class Importance extends AbstractEnumerated
...
@@ -41,6 +41,8 @@ public class Importance extends AbstractEnumerated
private
transient
Integer
WeightingScore
;
private
transient
Integer
WeightingScore
;
private
transient
String
CultureDescription
;
private
Importance
(
String
name
,
String
value
,
String
description
,
boolean
disabled
)
private
Importance
(
String
name
,
String
value
,
String
description
,
boolean
disabled
)
{
{
super
(
name
,
value
,
description
,
disabled
);
super
(
name
,
value
,
description
,
disabled
);
...
@@ -55,6 +57,11 @@ public class Importance extends AbstractEnumerated
...
@@ -55,6 +57,11 @@ public class Importance extends AbstractEnumerated
{
{
return
WeightingScore
;
return
WeightingScore
;
}
}
public
String
getCultureDescription
()
{
return
CultureDescription
;
}
public
static
final
Comparator
COMPARE_BY_POSITION
=
new
CompareEnumByPosition
(
allImportances
);
public
static
final
Comparator
COMPARE_BY_POSITION
=
new
CompareEnumByPosition
(
allImportances
);
...
@@ -125,12 +132,16 @@ public class Importance extends AbstractEnumerated
...
@@ -125,12 +132,16 @@ public class Importance extends AbstractEnumerated
{
{
NOT_APPLICABLE
.
ConsiderForAssessment
=
false
;
NOT_APPLICABLE
.
ConsiderForAssessment
=
false
;
NOT_APPLICABLE
.
WeightingScore
=
0
;
NOT_APPLICABLE
.
WeightingScore
=
0
;
NOT_APPLICABLE
.
CultureDescription
=
"Not Applicable"
;
DESIRABLE
.
ConsiderForAssessment
=
true
;
DESIRABLE
.
ConsiderForAssessment
=
true
;
DESIRABLE
.
WeightingScore
=
2
;
DESIRABLE
.
WeightingScore
=
2
;
DESIRABLE
.
CultureDescription
=
"Somewhat Important"
;
HIGHLY_DESIRABLE
.
ConsiderForAssessment
=
true
;
HIGHLY_DESIRABLE
.
ConsiderForAssessment
=
true
;
HIGHLY_DESIRABLE
.
WeightingScore
=
5
;
HIGHLY_DESIRABLE
.
WeightingScore
=
5
;
HIGHLY_DESIRABLE
.
CultureDescription
=
"Important"
;
ESSENTIAL
.
ConsiderForAssessment
=
true
;
ESSENTIAL
.
ConsiderForAssessment
=
true
;
ESSENTIAL
.
WeightingScore
=
10
;
ESSENTIAL
.
WeightingScore
=
10
;
ESSENTIAL
.
CultureDescription
=
"Essential"
;
}
}
...
@@ -160,6 +171,7 @@ public class Importance extends AbstractEnumerated
...
@@ -160,6 +171,7 @@ public class Importance extends AbstractEnumerated
attribs
.
put
(
"ConsiderForAssessment"
,
ArrayFormatter
.
toObject
(
getConsiderForAssessment
()));
attribs
.
put
(
"ConsiderForAssessment"
,
ArrayFormatter
.
toObject
(
getConsiderForAssessment
()));
attribs
.
put
(
"WeightingScore"
,
ArrayFormatter
.
toObject
(
getWeightingScore
()));
attribs
.
put
(
"WeightingScore"
,
ArrayFormatter
.
toObject
(
getWeightingScore
()));
attribs
.
put
(
"CultureDescription"
,
ArrayFormatter
.
toObject
(
getCultureDescription
()));
return
attribs
;
return
attribs
;
}
}
...
...
cmsWebApp/src/performa/orm/types/Importance.xml
View file @
fd7bdb88
...
@@ -5,11 +5,12 @@
...
@@ -5,11 +5,12 @@
<DATA
name=
"ConsiderForAssessment"
type=
"boolean"
/>
<DATA
name=
"ConsiderForAssessment"
type=
"boolean"
/>
<DATA
name=
"WeightingScore"
type=
"Integer"
/>
<DATA
name=
"WeightingScore"
type=
"Integer"
/>
<DATA
name=
"CultureDescription"
type=
"String"
/>
<VALUE
name=
"NOT_APPLICABLE"
description=
"Not Applicable"
ConsiderForAssessment=
"false"
WeightingScore=
"0"
/>
<VALUE
name=
"NOT_APPLICABLE"
description=
"Not Applicable"
ConsiderForAssessment=
"false"
WeightingScore=
"0"
CultureDescription=
'"Not Applicable"'
/>
<VALUE
name=
"DESIRABLE"
description=
"Desirable"
ConsiderForAssessment=
"true"
WeightingScore=
"2"
/>
<VALUE
name=
"DESIRABLE"
description=
"Desirable"
ConsiderForAssessment=
"true"
WeightingScore=
"2"
CultureDescription=
'"Somewhat Important"'
/>
<VALUE
name=
"HIGHLY_DESIRABLE"
description=
"Highly Desirable"
ConsiderForAssessment=
"true"
WeightingScore=
"5"
/>
<VALUE
name=
"HIGHLY_DESIRABLE"
description=
"Highly Desirable"
ConsiderForAssessment=
"true"
WeightingScore=
"5"
CultureDescription=
'"Important"'
/>
<VALUE
name=
"ESSENTIAL"
description=
"Essential"
ConsiderForAssessment=
"true"
WeightingScore=
"10"
/>
<VALUE
name=
"ESSENTIAL"
description=
"Essential"
ConsiderForAssessment=
"true"
WeightingScore=
"10"
CultureDescription=
'"Essential"'
/>
</CONSTANT>
</CONSTANT>
</ROOT>
</ROOT>
\ No newline at end of file
cmsWebApp/webroot/extensions/adminportal/workplace_culture.jsp
View file @
fd7bdb88
...
@@ -32,7 +32,6 @@
...
@@ -32,7 +32,6 @@
{
{
criteriaDiv.find(".element_rating_radio").prop("disabled",true);
criteriaDiv.find(".element_rating_radio").prop("disabled",true);
criteriaDiv.find(".element_rating_radio").prop('checked', false);
criteriaDiv.find(".element_rating_radio").prop('checked', false);
}
}
}
}
...
@@ -180,7 +179,7 @@
...
@@ -180,7 +179,7 @@
<a href="javascript:void(0)" class="importance">
<a href="javascript:void(0)" class="importance">
<input type="radio" name="<%= importanceKey %>" id="<%= importanceId %>" class="importance_radio" value="<%= importance.getName() %>" <%= selected %>/>
<input type="radio" name="<%= importanceKey %>" id="<%= importanceId %>" class="importance_radio" value="<%= importance.getName() %>" <%= selected %>/>
<label for="<%= importanceId %>"><oneit:toString value="<%= importance %>" mode="EscapeHTML" /></label>
<label for="<%= importanceId %>"><oneit:toString value="<%= importance
.getCultureDescription()
%>" mode="EscapeHTML" /></label>
</a>
</a>
</li>
</li>
<%
<%
...
...
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