ItEr56S14GraficaInferiorPantallaCargaRecursos: Added configuration to select if load chart is or not visible by default at resource load view.

This commit is contained in:
Manuel Rego Casasnovas 2010-05-13 13:18:08 +02:00 committed by Javier Moran Rua
parent 0f1b6c11a7
commit cce3f2296c
6 changed files with 48 additions and 0 deletions

View file

@ -59,6 +59,8 @@ public class Configuration extends BaseEntity {
private Boolean expandOrderPlanningViewCharts = true;
private Boolean expandResourceLoadViewCharts = true;
public void setDefaultCalendar(BaseCalendar defaultCalendar) {
this.defaultCalendar = defaultCalendar;
}
@ -165,4 +167,13 @@ public class Configuration extends BaseEntity {
return expandOrderPlanningViewCharts;
}
public void setExpandResourceLoadViewCharts(
Boolean expandResourceLoadViewCharts) {
this.expandResourceLoadViewCharts = expandResourceLoadViewCharts;
}
public Boolean isExpandResourceLoadViewCharts() {
return expandResourceLoadViewCharts;
}
}

View file

@ -26,6 +26,7 @@
<property name="generateCodeForUnitTypes" not-null="true" />
<property name="expandCompanyPlanningViewCharts" not-null="true" />
<property name="expandOrderPlanningViewCharts" not-null="true" />
<property name="expandResourceLoadViewCharts" not-null="true" />
</class>

View file

@ -366,4 +366,14 @@ public class ConfigurationController extends GenericForwardComposer {
return configurationModel.isExpandOrderPlanningViewCharts();
}
public void setExpandResourceLoadViewCharts(
Boolean expandResourceLoadViewCharts) {
configurationModel
.setExpandResourceLoadViewCharts(expandResourceLoadViewCharts);
}
public Boolean isExpandResourceLoadViewCharts() {
return configurationModel.isExpandResourceLoadViewCharts();
}
}

View file

@ -373,4 +373,22 @@ public class ConfigurationModel implements IConfigurationModel {
return configuration.isExpandOrderPlanningViewCharts();
}
@Override
public void setExpandResourceLoadViewCharts(
Boolean expandResourceLoadViewCharts) {
if (configuration != null) {
configuration
.setExpandResourceLoadViewCharts(expandResourceLoadViewCharts);
}
}
@Override
public Boolean isExpandResourceLoadViewCharts() {
if (configuration == null) {
return null;
}
return configuration.isExpandResourceLoadViewCharts();
}
}

View file

@ -85,6 +85,10 @@ public interface IConfigurationModel {
Boolean isExpandOrderPlanningViewCharts();
void setExpandResourceLoadViewCharts(Boolean expandResourceLoadViewCharts);
Boolean isExpandResourceLoadViewCharts();
/*
* Final conversation steps
*/

View file

@ -108,6 +108,10 @@
<checkbox label="${i18n:_('Order view')}"
checked="@{configurationController.expandOrderPlanningViewCharts}" />
</row>
<row>
<checkbox label="${i18n:_('Resource load view')}"
checked="@{configurationController.expandResourceLoadViewCharts}" />
</row>
</rows>
</grid>
</row>