Search in sources :

Example 1 with EmployeeConfigurationTimedDO

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);
}
Also used : AccessException(org.projectforge.framework.access.AccessException) SpringBean(org.apache.wicket.spring.injection.annot.SpringBean) EmployeeConfigurationDO(org.projectforge.plugins.eed.model.EmployeeConfigurationDO) Logger(org.slf4j.Logger) GridSize(org.projectforge.web.wicket.bootstrap.GridSize) EmployeeConfigurationService(org.projectforge.plugins.eed.service.EmployeeConfigurationService) Function(java.util.function.Function) UserRightValue(org.projectforge.business.user.UserRightValue) AttrGroup(de.micromata.genome.db.jpa.tabattr.api.AttrGroup) GuiAttrSchemaService(org.projectforge.framework.persistence.attr.impl.GuiAttrSchemaService) EmployeeConfigurationTimedDO(org.projectforge.plugins.eed.model.EmployeeConfigurationTimedDO) DivPanel(org.projectforge.web.wicket.flowlayout.DivPanel) AbstractEditForm(org.projectforge.web.wicket.AbstractEditForm) UserRightId(org.projectforge.business.user.UserRightId) EmployeeConfigurationTimedDO(org.projectforge.plugins.eed.model.EmployeeConfigurationTimedDO) DivPanel(org.projectforge.web.wicket.flowlayout.DivPanel) AttrGroup(de.micromata.genome.db.jpa.tabattr.api.AttrGroup)

Example 2 with EmployeeConfigurationTimedDO

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;
}
Also used : EmployeeConfigurationTimedDO(org.projectforge.plugins.eed.model.EmployeeConfigurationTimedDO)

Aggregations

EmployeeConfigurationTimedDO (org.projectforge.plugins.eed.model.EmployeeConfigurationTimedDO)2 AttrGroup (de.micromata.genome.db.jpa.tabattr.api.AttrGroup)1 Function (java.util.function.Function)1 SpringBean (org.apache.wicket.spring.injection.annot.SpringBean)1 UserRightId (org.projectforge.business.user.UserRightId)1 UserRightValue (org.projectforge.business.user.UserRightValue)1 AccessException (org.projectforge.framework.access.AccessException)1 GuiAttrSchemaService (org.projectforge.framework.persistence.attr.impl.GuiAttrSchemaService)1 EmployeeConfigurationDO (org.projectforge.plugins.eed.model.EmployeeConfigurationDO)1 EmployeeConfigurationService (org.projectforge.plugins.eed.service.EmployeeConfigurationService)1 AbstractEditForm (org.projectforge.web.wicket.AbstractEditForm)1 GridSize (org.projectforge.web.wicket.bootstrap.GridSize)1 DivPanel (org.projectforge.web.wicket.flowlayout.DivPanel)1 Logger (org.slf4j.Logger)1