Examples of QtyUnitsRemote


Examples of org.jabusuite.article.session.QtyUnitsRemote

    @Override
    public void doSave() throws EJbsObject {
        logger.debug("Saving data...");
        try {
            QtyUnitsRemote qtyUnits = (QtyUnitsRemote)ClientTools.getRemoteBean(QtyUnitsRemote.class);

            super.doSave();

            if (this.getDlgState() == DlgState.dsInsert) {
                logger.debug("Adding new entity");
                qtyUnits.createDataset(this.getQtyUnit(), ClientGlobals.getUser(), ClientGlobals.getCompany());
            } else if (this.getDlgState() == DlgState.dsEdit) {
                logger.debug("Saving exisiting entity.");
                qtyUnits.updateDataset(this.getQtyUnit(),ClientGlobals.getUser());
            }
            logger.debug("Entity saved.");

        } catch (NamingException e) {
            logger.error("Error saving entity",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.