[Bug #939] Fixed adding new method to return a string for the position.

FEA: ItEr72S04BugFixing
This commit is contained in:
Manuel Rego Casasnovas 2011-03-16 12:38:36 +01:00
parent c49d837be8
commit bcce377da3
2 changed files with 5 additions and 1 deletions

View file

@ -83,6 +83,10 @@ public class QualityFormItem implements INewObject {
return position == null ? null : position;
}
public String getStringPosition() {
return position == null ? "" : new Integer(position + 1).toString();
}
public void setPosition(Integer newPosition) {
this.position = newPosition;
}

View file

@ -88,7 +88,7 @@
<row self="@{each='qualityFormItem'}" value="@{qualityFormItem}">
<textbox value="@{qualityFormItem.name}" width="95%"
constraint="@{controller.checkConstraintQualityFormItemName}"/>
<label value="@{qualityFormItem.position}" width="50px"/>
<label value="@{qualityFormItem.stringPosition}" width="50px"/>
<decimalbox scale = "2" width="100px"
visible="@{controller.byPercentage}"