Added qualitative indicators to deadline ratios

FEA: ItEr76S15OrganizingPerProjectDashboard
This commit is contained in:
Lorenzo Tilve Álvaro 2012-05-14 15:06:32 +02:00
parent 5be596302d
commit 3dd50d12a5
4 changed files with 26 additions and 1 deletions

View file

@ -101,11 +101,18 @@ public class DashboardController extends GenericForwardComposer {
private void renderOvertimeRatio() {
lblOvertimeRatio.setValue(String.format("%.2f", dashboardModel
.getOvertimeRatio().doubleValue()));
String valueMeaning = (dashboardModel.getOvertimeRatio().doubleValue() > 1) ? "negative"
: "positive";
lblOvertimeRatio.setSclass("dashboard-label-remarked " + valueMeaning);
}
private void renderAvailabilityRatio() {
lblAvailabilityRatio.setValue(String.format("%.2f", dashboardModel
.getAvailabilityRatio().doubleValue()));
String valueMeaning = (dashboardModel.getAvailabilityRatio()
.doubleValue() > 1) ? "negative" : "positive";
lblAvailabilityRatio.setSclass("dashboard-label-remarked "
+ valueMeaning);
}
private void renderCostStatus(Order order) {

View file

@ -13,10 +13,28 @@
}
.dashboard-label-remarked {
font-size: 1em;
color: #666;
font-family: Trebuchet MS,Arial,Helvetica,sans-serif;
font-size: 16px;
font-weight: bold;
}
.dashboard-label-remarked.positive,
.dashboard-label-remarked.negative {
background-position: 100%;
background-repeat: no-repeat;
padding-right: 25px;
background-size: 25px;
}
.dashboard-label-remarked.negative {
background-image: url('../img/value-meaning-negative.png');
}
.dashboard-label-remarked.positive {
background-image: url('../img/value-meaning-positive.png');
}
.dashboard-box {
border: solid 2px #9B9B9B;
background: #fffdf6;

Binary file not shown.

After

Width:  |  Height:  |  Size: 401 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 363 B