Visual improvements for workReport page.
Code refactoring.
This commit is contained in:
parent
6b6179e750
commit
14eef2d7a2
2 changed files with 8 additions and 3 deletions
|
|
@ -22,10 +22,11 @@
|
|||
package org.libreplan.business.planner.entities;
|
||||
|
||||
/**
|
||||
* It represents the value that is calculated
|
||||
* It represents the value that is calculated.
|
||||
*
|
||||
* @author Óscar González Fernández <ogonzalez@igalia.com>
|
||||
*/
|
||||
public enum CalculatedValue {
|
||||
|
||||
NUMBER_OF_HOURS, END_DATE, RESOURCES_PER_DAY;
|
||||
NUMBER_OF_HOURS, END_DATE, RESOURCES_PER_DAY
|
||||
}
|
||||
|
|
|
|||
|
|
@ -987,6 +987,10 @@ public class WorkReportCRUDController
|
|||
// Create the fields and labels
|
||||
appendFieldsAndLabelsInLines(row);
|
||||
|
||||
NewDataSortableGrid grid = (NewDataSortableGrid) row.getParent().getParent();
|
||||
NewDataSortableColumn priorityColumn = (NewDataSortableColumn) grid.getChildren().get(1).getChildren().get(2);
|
||||
priorityColumn.setWidth("110px");
|
||||
|
||||
if (!getWorkReport().getWorkReportType().getHoursManagement().equals(HoursManagementEnum.NUMBER_OF_HOURS)) {
|
||||
appendHoursStartAndFinish(row);
|
||||
}
|
||||
|
|
@ -1374,7 +1378,7 @@ public class WorkReportCRUDController
|
|||
descriptionValue::setValue);
|
||||
}
|
||||
|
||||
private Autocomplete createAutocompleteLabels(LabelType labelType,Label selectedLabel) {
|
||||
private Autocomplete createAutocompleteLabels(LabelType labelType, Label selectedLabel) {
|
||||
Autocomplete comboLabels = new Autocomplete();
|
||||
comboLabels.setButtonVisible(true);
|
||||
comboLabels.setWidth("100px");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue