workOrder.setDataFromTransaction(getOrderConfirmation(), userNumber);
JbsOptionPane dialog = JbsOptionPane.showMessageDialog(this, JbsL10N.getString("OrderConfirmation.msgToWorkOrder"), JbsL10N.getString("OrderConfirmation.formTitle"), JbsOptionPane.INFORMATION_MESSAGE);
dialog.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent arg0) {
FmWorkOrderEdit fmWorkOrderEdit = new FmWorkOrderEdit();
fmWorkOrderEdit.showForm(DlgState.dsCopy, workOrder);
addAction(PnTransactionEdit.ACTION_TOWORKORDER);
}
});
} catch (Exception e) {
logger.error("Error creating WorkOrder.", e);