ItEr54S09AdaptacionServiciosRESTItEr53S10: Added the attribute generateCodeForUnitTypes in Configuration entity.
This commit is contained in:
parent
c461a61820
commit
b38368594d
6 changed files with 45 additions and 0 deletions
|
|
@ -53,6 +53,8 @@ public class Configuration extends BaseEntity {
|
|||
|
||||
private Boolean generateCodeForMaterialCategories = false;
|
||||
|
||||
private Boolean generateCodeForUnitTypes = false;
|
||||
|
||||
public void setDefaultCalendar(BaseCalendar defaultCalendar) {
|
||||
this.defaultCalendar = defaultCalendar;
|
||||
}
|
||||
|
|
@ -133,4 +135,12 @@ public class Configuration extends BaseEntity {
|
|||
return generateCodeForMaterialCategories;
|
||||
}
|
||||
|
||||
public void setGenerateCodeForUnitTypes(Boolean generateCodeForUnitTypes) {
|
||||
this.generateCodeForUnitTypes = generateCodeForUnitTypes;
|
||||
}
|
||||
|
||||
public Boolean getGenerateCodeForUnitTypes() {
|
||||
return generateCodeForUnitTypes;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -23,6 +23,7 @@
|
|||
<property name="generateCodeForResources" not-null="true" />
|
||||
<property name="generateCodeForTypesOfWorkHours" not-null="true" />
|
||||
<property name="generateCodeForMaterialCategories" not-null="true" />
|
||||
<property name="generateCodeForUnitTypes" not-null="true" />
|
||||
|
||||
</class>
|
||||
|
||||
|
|
|
|||
|
|
@ -183,6 +183,16 @@ public class ConfigurationController extends GenericForwardComposer {
|
|||
generateCodeForMaterialCategories);
|
||||
}
|
||||
|
||||
public Boolean getGenerateCodeForUnitTypes() {
|
||||
return configurationModel.getGenerateCodeForUnitTypes();
|
||||
}
|
||||
|
||||
public void setGenerateCodeForUnitTypes(
|
||||
Boolean generateCodeForUnitTypes) {
|
||||
configurationModel.setGenerateCodeForUnitTypes(
|
||||
generateCodeForUnitTypes);
|
||||
}
|
||||
|
||||
public List<OrderSequence> getOrderSequences() {
|
||||
return configurationModel.getOrderSequences();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -302,6 +302,22 @@ public class ConfigurationModel implements IConfigurationModel {
|
|||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public Boolean getGenerateCodeForUnitTypes() {
|
||||
if (configuration == null) {
|
||||
return null;
|
||||
}
|
||||
return configuration.getGenerateCodeForUnitTypes();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setGenerateCodeForUnitTypes(Boolean generateCodeForUnitTypes) {
|
||||
if (configuration != null) {
|
||||
configuration.setGenerateCodeForUnitTypes(
|
||||
generateCodeForUnitTypes);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<OrderSequence> getOrderSequences() {
|
||||
return Collections.unmodifiableList(orderSequences);
|
||||
|
|
|
|||
|
|
@ -82,4 +82,8 @@ public interface IConfigurationModel {
|
|||
void confirm();
|
||||
void cancel();
|
||||
|
||||
Boolean getGenerateCodeForUnitTypes();
|
||||
|
||||
void setGenerateCodeForUnitTypes(Boolean generateCodeForUnitTypes);
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -85,6 +85,10 @@
|
|||
<label value="${i18n:_('Generate code for Material categories')}" />
|
||||
<checkbox checked="@{configurationController.generateCodeForMaterialCategories}" />
|
||||
</row>
|
||||
<row>
|
||||
<label value="${i18n:_('Generate code for Unit Types')}" />
|
||||
<checkbox checked="@{configurationController.generateCodeForUnitTypes}" />
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue