ItEr54S09AdaptacionServiciosRESTItEr53S10: Add the attribute generateCodeForTypesOfWorkHours to Configuration entity.

This commit is contained in:
Jacobo Aragunde Pérez 2010-04-15 21:51:41 +02:00 committed by Javier Moran Rua
parent adbf2474df
commit edf53db337
6 changed files with 47 additions and 0 deletions

View file

@ -49,6 +49,8 @@ public class Configuration extends BaseEntity {
private Boolean generateCodeForResources = false;
private Boolean generateCodeForTypesOfWorkHours = false;
public void setDefaultCalendar(BaseCalendar defaultCalendar) {
this.defaultCalendar = defaultCalendar;
}
@ -111,4 +113,13 @@ public class Configuration extends BaseEntity {
return generateCodeForResources;
}
public void setGenerateCodeForTypesOfWorkHours(
Boolean generateCodeForTypesOfWorkHours) {
this.generateCodeForTypesOfWorkHours = generateCodeForTypesOfWorkHours;
}
public Boolean getGenerateCodeForTypesOfWorkHours() {
return generateCodeForTypesOfWorkHours;
}
}

View file

@ -21,6 +21,7 @@
<property name="generateCodeForLabel" not-null="true" />
<property name="generateCodeForWorkReport" not-null="true" />
<property name="generateCodeForResources" not-null="true" />
<property name="generateCodeForTypesOfWorkHours" not-null="true" />
</class>

View file

@ -163,6 +163,16 @@ public class ConfigurationController extends GenericForwardComposer {
configurationModel.setGenerateCodeForResources(generateCodeForResources);
}
public Boolean getGenerateCodeForTypesOfWorkHours() {
return configurationModel.getGenerateCodeForTypesOfWorkHours();
}
public void setGenerateCodeForTypesOfWorkHours(
Boolean generateCodeForTypesOfWorkHours) {
configurationModel.setGenerateCodeForTypesOfWorkHours(
generateCodeForTypesOfWorkHours);
}
public List<OrderSequence> getOrderSequences() {
return configurationModel.getOrderSequences();
}

View file

@ -268,6 +268,23 @@ public class ConfigurationModel implements IConfigurationModel {
}
}
@Override
public Boolean getGenerateCodeForTypesOfWorkHours() {
if (configuration == null) {
return null;
}
return configuration.getGenerateCodeForTypesOfWorkHours();
}
@Override
public void setGenerateCodeForTypesOfWorkHours(
Boolean generateCodeForTypesOfWorkHours) {
if (configuration != null) {
configuration.setGenerateCodeForTypesOfWorkHours(
generateCodeForTypesOfWorkHours);
}
}
@Override
public List<OrderSequence> getOrderSequences() {
return Collections.unmodifiableList(orderSequences);

View file

@ -63,6 +63,10 @@ public interface IConfigurationModel {
Boolean getGenerateCodeForResources();
void setGenerateCodeForResources(Boolean generateCodeForResources);
Boolean getGenerateCodeForTypesOfWorkHours();
void setGenerateCodeForTypesOfWorkHours(
Boolean generateCodeForTypesOfWorkHours);
List<OrderSequence> getOrderSequences();
void addOrderSequence();
void removeOrderSequence(OrderSequence orderSequence)

View file

@ -77,6 +77,10 @@
<label value="${i18n:_('Generate code for Resources')}" />
<checkbox checked="@{configurationController.generateCodeForResources}" />
</row>
<row>
<label value="${i18n:_('Generate code for Types of work hours')}" />
<checkbox checked="@{configurationController.generateCodeForTypesOfWorkHours}" />
</row>
</rows>
</grid>