Commit fd7bdb88 by Nilu

J003 For ‘Rate Importance’ use (Not Applicable / Somewhat Important / Important / Essential)

parent 57a0e7d9
...@@ -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;
} }
......
...@@ -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
...@@ -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>
<% <%
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment