[Bug #939] Fixed adding the same method also in TaskQualityFormItem.

Fixed also translation of QualityForm type.

FEA: ItEr72S04BugFixing
This commit is contained in:
Manuel Rego Casasnovas 2011-03-17 09:14:58 +01:00
parent 3fb9fa3361
commit e244ca49d9
2 changed files with 7 additions and 3 deletions

View file

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

View file

@ -275,8 +275,8 @@ public class AssignedTaskQualityFormsToOrderElementController extends
appendDetails(row, taskQualityForm);
appendNewLabel(row, taskQualityForm.getQualityForm().getName());
appendNewLabel(row, taskQualityForm.getQualityForm()
.getQualityFormType().toString());
appendNewLabel(row, _(taskQualityForm.getQualityForm()
.getQualityFormType().toString()));
appendCheckboxReportAdvance(row, taskQualityForm);
appendOperations(row);
}
@ -424,7 +424,7 @@ public class AssignedTaskQualityFormsToOrderElementController extends
row.setValue(item);
appendNewLabel(row, item.getName());
appendNewLabel(row, item.getPosition().toString());
appendNewLabel(row, item.getStringPosition());
appendNewLabel(row, item.getPercentage().toString());
appendCheckPassed(row);
appendDate(row);