Package org.jabusuite.address.supplier.session

Examples of org.jabusuite.address.supplier.session.SuppliersRemote


        return new PlSuppliers(ClientGlobals.getUser(), ClientGlobals.getCompany());
    }

    @Override
    public void doDeleteJbsObject(JbsBaseObject jbsObject) throws Exception {
        SuppliersRemote custManagement = (SuppliersRemote)ClientTools.getRemoteBean(SuppliersRemote.class);
        custManagement.deleteDataset((Supplier)jbsObject, ClientGlobals.getUser());
    }
View Full Code Here


            case CT_EMPLOYEE :
                EmployeesRemote employeeManagement = (EmployeesRemote)ClientTools.getRemoteBean(EmployeesRemote.class);
                this.setContacts(employeeManagement.getDatasets(filter, "a.name1, a.name2, a.name3", ClientGlobals.getUser(), ClientGlobals.getCompany(), 0, 0));
                break;
            case CT_SUPPLIER :
                SuppliersRemote supplierManagement = (SuppliersRemote)ClientTools.getRemoteBean(SuppliersRemote.class);
                this.setContacts(supplierManagement.getDatasets(filter, "a.name1, a.name2, a.name3", ClientGlobals.getUser(), ClientGlobals.getCompany(), 0, 0));
                break;
            default:
                throw new Exception(JbsL10N.getString("Generic.unknowncontactTypeError")+" "+contactType.toString());
        }
    }
View Full Code Here

    public void doSave() throws EJbsObject {
        if (logger.isDebugEnabled()) {
            logger.debug("Saving data...");
        }
        try {
            SuppliersRemote suppliers = (SuppliersRemote)ClientTools.getRemoteBean(SuppliersRemote.class);

            super.doSave();
            logger.debug(getSupplier().isDeleted());

            if (this.getDlgState() == DlgState.dsInsert) {
                System.out.println("Adding new entity");
                suppliers.createDataset(this.getSupplier(), ClientGlobals.getUser(), ClientGlobals.getCompany());
            } else if (this.getDlgState() == DlgState.dsEdit) {
                System.out.println("Saving exisiting entity.");
                suppliers.updateDataset(this.getSupplier(), ClientGlobals.getUser());
            }
            System.out.println("Entity saved.");

        } catch (NamingException e) {
            e.printStackTrace();
View Full Code Here

TOP

Related Classes of org.jabusuite.address.supplier.session.SuppliersRemote

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.