Examples of DeliveryNotesRemote


Examples of org.jabusuite.transaction.session.DeliveryNotesRemote

        DeliveryNote deliveryNote = (DeliveryNote) jbsBaseObject;
        //We have to get the positions from the database also
        if ((deliveryNote != null) && (this.getDlgState() == DlgState.dsEdit)) {
            logger.debug("Retrieving positions for delivery-note " + deliveryNote.getId());
            try {
                DeliveryNotesRemote deliveryNotes = (DeliveryNotesRemote) ClientTools.getRemoteBean(DeliveryNotesRemote.class);
                DeliveryNote exDelivNote = deliveryNotes.findDataset(deliveryNote.getId(), true);
                deliveryNote = exDelivNote;
            } catch (NamingException e) {
                logger.error("Error retrieving delivery-note.", e);
            }
        }
View Full Code Here

Examples of org.jabusuite.transaction.session.DeliveryNotesRemote

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

        try {
            DeliveryNotesRemote deliveryNotes = (DeliveryNotesRemote) ClientTools.getRemoteBean(DeliveryNotesRemote.class);
            super.doSave();
            if ((this.getDlgState() == DlgState.dsInsert) || (this.getDlgState() == DlgState.dsCopy)) {
                deliveryNotes.createDataset(this.getDeliveryNote(), ClientGlobals.getUser(), ClientGlobals.getCompany());
            } else if (this.getDlgState() == DlgState.dsEdit) {
                logger.debug("Saving existing entity " + this.getDeliveryNote().getId() + ".");
                deliveryNotes.updateDataset(this.getDeliveryNote(), ClientGlobals.getUser());
            }
            logger.debug("Entity saved.");
        } catch (NamingException e) {
            logger.error("Error saving delivery-note..", e);
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.