ItEr45S10CUAsignacionRecursosEspecificosAPlanificacionItEr44S16: Showing in a better way if the chart cannot be generated

This commit is contained in:
Óscar González Fernández 2010-01-26 18:24:22 +01:00
parent 4718bb4869
commit 4ff0b3c648
2 changed files with 10 additions and 3 deletions

View file

@ -295,4 +295,8 @@ public class StretchesFunctionController extends GenericForwardComposer {
return graphicGenerator.areChartsEnabled(stretchesFunctionModel);
}
public boolean isChartsDisabled() {
return !isChartsEnabled();
}
}

View file

@ -20,7 +20,7 @@
<?page title="${i18n:_('Navalpro: Scheduling')}"?>
<?taglib uri="/WEB-INF/tld/i18n.tld" prefix="i18n"?>
<zk>
<zk xmlns:n="http://www.zkoss.org/2005/zk/native">
<zscript><![CDATA[
stretchesFunctionController = arg.get("stretchesFunctionController");
@ -58,12 +58,15 @@
</vbox>
<vbox id="charts" visible="@{stretchesFunctionController.chartsEnabled}">
<vbox id="charts">
<div visible="@{stretchesFunctionController.chartsDisabled}">
<n:h4>${i18n:_('Can\'t calculate charts for current data')}</n:h4>
</div>
<chart id="dedicationChart" title="${i18n:_('Dedication chart')}"
type="time_series" threeD="false"
model="@{stretchesFunctionController.getDedicationChartData}"
yAxis= "${i18n:_('Hours')}" paneColor="#FFFFFF"
showLegend="false" />
showLegend="false"/>
<chart id="accumulatedHoursChart"
title="${i18n:_('Accumulated hours chart')}"