Package org.jabusuite.transaction.session

Examples of org.jabusuite.transaction.session.WorkOrdersRemote


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


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

        try {
            WorkOrdersRemote workOrders = (WorkOrdersRemote) ClientTools.getRemoteBean(WorkOrdersRemote.class);
            super.doSave();
            if ((this.getDlgState() == DlgState.dsInsert) || (this.getDlgState() == DlgState.dsCopy)) {
                workOrders.createDataset(this.getWorkOrder(), ClientGlobals.getUser(), ClientGlobals.getCompany());
            } else if (this.getDlgState() == DlgState.dsEdit) {
                logger.debug("Saving existing entity " + this.getWorkOrder().getId() + ".");
                workOrders.updateDataset(this.getWorkOrder(), 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.WorkOrdersRemote

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.