use of org.projectforge.plugins.eed.model.EmployeeConfigurationTimedDO in project projectforge by micromata.
the class EmployeeConfigurationForm method init.
@Override
protected void init() {
super.init();
// AttrPanels
// set hasSubSplitPanel to true to remove borders from this split panel
gridBuilder.newSplitPanel(GridSize.COL100, true);
final DivPanel divPanel = gridBuilder.getPanel();
final Function<AttrGroup, EmployeeConfigurationTimedDO> addNewEntryFunction = group -> employeeConfigurationService.addNewTimeAttributeRow(data, group.getName());
attrSchemaService.createAttrPanels(divPanel, data, parentPage, addNewEntryFunction);
}
use of org.projectforge.plugins.eed.model.EmployeeConfigurationTimedDO in project projectforge by micromata.
the class EmployeeConfigurationServiceImpl method addNewTimeAttributeRow.
public EmployeeConfigurationTimedDO addNewTimeAttributeRow(final EmployeeConfigurationDO employeeConfiguration, final String groupName) {
final EmployeeConfigurationTimedDO row = new EmployeeConfigurationTimedDO();
row.setEmployeeConfiguration(employeeConfiguration);
row.setGroupName(groupName);
employeeConfiguration.addTimeableAttribute(row);
return row;
}
Aggregations