Examples of HierarchyCustomersRemote


Examples of org.jabusuite.address.customer.session.HierarchyCustomersRemote

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

            this.getControlData();
            this.checkData();
            //super.doSave();
            logger.debug(getCustomer().isDeleted());

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

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

Examples of org.jabusuite.address.customer.session.HierarchyCustomersRemote

           
    }

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

Examples of org.jabusuite.address.customer.session.HierarchyCustomersRemote

   

    @Override
    protected void printLetters() {
        try {
            HierarchyCustomersRemote custManagement = (HierarchyCustomersRemote)ClientTools.getRemoteBean(HierarchyCustomersRemote.class);
            List customers = null;
            if (this.getParentCustomer()!=null)
                customers=custManagement.getSubDatasets(this.getParentCustomer(), this.getFilter(), "a.name1, a.name2, a.name3", ClientGlobals.getUser(), ClientGlobals.getCompany(), 0, 0);
            else
                customers=custManagement.getDatasets(this.getFilter(), "a.name1, a.name2, a.name3", ClientGlobals.getUser(), ClientGlobals.getCompany(), 0, 0);
           
            MassLetterWizard massLetterWizard = new MassLetterWizard();
            massLetterWizard.setContacts(customers);

            FmWizard fmWizard = new FmWizard(massLetterWizard, JbsL10N.getString("MassLetterWizard.title"));
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.