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
private transient Integer WeightingScore;
private transient String CultureDescription;
private Importance (String name, String value, String description, boolean disabled)
{
super (name, value, description, disabled);
......@@ -56,6 +58,11 @@ public class Importance extends AbstractEnumerated
return WeightingScore;
}
public String getCultureDescription()
{
return CultureDescription;
}
public static final Comparator COMPARE_BY_POSITION = new CompareEnumByPosition (allImportances);
......@@ -125,12 +132,16 @@ public class Importance extends AbstractEnumerated
{
NOT_APPLICABLE.ConsiderForAssessment = false;
NOT_APPLICABLE.WeightingScore = 0;
NOT_APPLICABLE.CultureDescription = "Not Applicable";
DESIRABLE.ConsiderForAssessment = true;
DESIRABLE.WeightingScore = 2;
DESIRABLE.CultureDescription = "Somewhat Important";
HIGHLY_DESIRABLE.ConsiderForAssessment = true;
HIGHLY_DESIRABLE.WeightingScore = 5;
HIGHLY_DESIRABLE.CultureDescription = "Important";
ESSENTIAL.ConsiderForAssessment = true;
ESSENTIAL.WeightingScore = 10;
ESSENTIAL.CultureDescription = "Essential";
}
......@@ -160,6 +171,7 @@ public class Importance extends AbstractEnumerated
attribs.put ("ConsiderForAssessment", ArrayFormatter.toObject(getConsiderForAssessment()));
attribs.put ("WeightingScore", ArrayFormatter.toObject(getWeightingScore()));
attribs.put ("CultureDescription", ArrayFormatter.toObject(getCultureDescription()));
return attribs;
}
......
......@@ -5,11 +5,12 @@
<DATA name="ConsiderForAssessment" type="boolean" />
<DATA name="WeightingScore" type="Integer"/>
<DATA name="CultureDescription" type="String"/>
<VALUE name="NOT_APPLICABLE" description="Not Applicable" ConsiderForAssessment="false" WeightingScore="0"/>
<VALUE name="DESIRABLE" description="Desirable" ConsiderForAssessment="true" WeightingScore="2"/>
<VALUE name="HIGHLY_DESIRABLE" description="Highly Desirable" ConsiderForAssessment="true" WeightingScore="5"/>
<VALUE name="ESSENTIAL" description="Essential" ConsiderForAssessment="true" WeightingScore="10"/>
<VALUE name="NOT_APPLICABLE" description="Not Applicable" ConsiderForAssessment="false" WeightingScore="0" CultureDescription='"Not Applicable"'/>
<VALUE name="DESIRABLE" description="Desirable" ConsiderForAssessment="true" WeightingScore="2" CultureDescription='"Somewhat Important"'/>
<VALUE name="HIGHLY_DESIRABLE" description="Highly Desirable" ConsiderForAssessment="true" WeightingScore="5" CultureDescription='"Important"'/>
<VALUE name="ESSENTIAL" description="Essential" ConsiderForAssessment="true" WeightingScore="10" CultureDescription='"Essential"'/>
</CONSTANT>
</ROOT>
\ No newline at end of file
......@@ -32,7 +32,6 @@
{
criteriaDiv.find(".element_rating_radio").prop("disabled",true);
criteriaDiv.find(".element_rating_radio").prop('checked', false);
}
}
......@@ -180,7 +179,7 @@
<a href="javascript:void(0)" class="importance">
<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>
</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