Examples of CreditNotesRemote


Examples of org.jabusuite.transaction.session.CreditNotesRemote

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

Examples of org.jabusuite.transaction.session.CreditNotesRemote

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

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

Examples of org.jabusuite.transaction.session.CreditNotesRemote

        return new FmCreditNoteEdit();
    }

    @Override
    public void doDeleteJbsObject(JbsBaseObject jbsObject) throws Exception {
        CreditNotesRemote cnManager = (CreditNotesRemote)ClientTools.getRemoteBean(CreditNotesRemote.class);
        cnManager.deleteDataset((CreditNote)jbsObject, ClientGlobals.getUser());
    }
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.