ItEr56S14GraficaInferiorPantallaCargaRecursos: Added configuration to select if load chart is or not visible by default at resource load view.
This commit is contained in:
parent
0f1b6c11a7
commit
cce3f2296c
6 changed files with 48 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -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>
|
||||
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -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();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -85,6 +85,10 @@ public interface IConfigurationModel {
|
|||
|
||||
Boolean isExpandOrderPlanningViewCharts();
|
||||
|
||||
void setExpandResourceLoadViewCharts(Boolean expandResourceLoadViewCharts);
|
||||
|
||||
Boolean isExpandResourceLoadViewCharts();
|
||||
|
||||
/*
|
||||
* Final conversation steps
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue