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);
}
}
Aggregations