Search in sources :

Example 1 with UiUnitSupport

use of eu.ggnet.dwoss.receipt.UiUnitSupport in project dwoss by gg-net.

the class EditUnitAction method actionPerformed.

/**
 * Action to allow the Manipulation of an existing Unit.
 * <p/>
 * @author oliver.guenther
 * @param e the event
 */
@Override
public void actionPerformed(ActionEvent e) {
    String refurbishedId = JOptionPane.showInputDialog(UiCore.getMainFrame(), "Bitte SopoNr/Seriennummer eingeben:");
    try {
        UiUnitSupport uiUnitSupport = new UiUnitSupport(Dl.remote().lookup(UnitProcessor.class));
        uiUnitSupport.editUnit(refurbishedId);
    } catch (UserInfoException ex) {
        JOptionPane.showMessageDialog(UiCore.getMainFrame(), ex.getMessage(), "Nutzerfehler", JOptionPane.INFORMATION_MESSAGE);
    }
}
Also used : UnitProcessor(eu.ggnet.dwoss.receipt.ee.UnitProcessor) UiUnitSupport(eu.ggnet.dwoss.receipt.UiUnitSupport) UserInfoException(eu.ggnet.dwoss.util.UserInfoException)

Aggregations

UiUnitSupport (eu.ggnet.dwoss.receipt.UiUnitSupport)1 UnitProcessor (eu.ggnet.dwoss.receipt.ee.UnitProcessor)1 UserInfoException (eu.ggnet.dwoss.util.UserInfoException)1