Package org.jabusuite.transaction.session

Examples of org.jabusuite.transaction.session.OrderConfirmationsRemote


        OrderConfirmation orderConfirmation = (OrderConfirmation) jbsBaseObject;
        //We have to get the positions from the database also
        if ((orderConfirmation != null) && (this.getDlgState() == DlgState.dsEdit)) {
            logger.debug("Retrieving positions for order confirmation " + orderConfirmation.getId());
            try {
                OrderConfirmationsRemote orderConfirmations = (OrderConfirmationsRemote) ClientTools.getRemoteBean(OrderConfirmationsRemote.class);
                OrderConfirmation exDelivNote = orderConfirmations.findDataset(orderConfirmation.getId(), true);
                orderConfirmation = exDelivNote;
            } catch (NamingException e) {
                logger.error("Error retrieving order confirmation.", e);
            }
        }
View Full Code Here


    @Override
    public void doSave() throws EJbsObject {
        logger.debug("Saving data...");

        try {
            OrderConfirmationsRemote orderConfirmations = (OrderConfirmationsRemote) ClientTools.getRemoteBean(OrderConfirmationsRemote.class);
            super.doSave();
            if ((this.getDlgState() == DlgState.dsInsert) || (this.getDlgState() == DlgState.dsCopy)) {
                orderConfirmations.createDataset(this.getOrderConfirmation(), ClientGlobals.getUser(), ClientGlobals.getCompany());
            } else if (this.getDlgState() == DlgState.dsEdit) {
                logger.debug("Saving existing entity " + this.getOrderConfirmation().getId() + ".");
                orderConfirmations.updateDataset(this.getOrderConfirmation(), ClientGlobals.getUser());
            }
            logger.debug("Entity saved.");
        } catch (NamingException e) {
            logger.error("Error saving credit-note..", e);
        }
View Full Code Here

TOP

Related Classes of org.jabusuite.transaction.session.OrderConfirmationsRemote

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.