Examples of updateDataset()


Examples of org.jabusuite.article.session.QtyUnitsRemote.updateDataset()

            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

Examples of org.jabusuite.cms.news.employee.session.EmployeeNewsEntriesRemote.updateDataset()

            if (this.getDlgState() == DlgState.dsInsert) {
                logger.debug("Adding new entity " + this.getEmployeeNewsEntry().getId() + ".");
                newsEntries.createDataset(this.getEmployeeNewsEntry(), ClientGlobals.getUser(), ClientGlobals.getCompany());
            } else if (this.getDlgState() == DlgState.dsEdit) {
                logger.debug("Saving existing entity " + this.getEmployeeNewsEntry().getId() + ".");
                newsEntries.updateDataset(this.getEmployeeNewsEntry(), ClientGlobals.getUser());
            }
            logger.debug("Entity saved.");
        } catch (NamingException e) {
            logger.error("Error saving news-entry.",e);
            JbsOptionPane.showErrorDialog(this, JbsL10N.getString("Generic.saveErrorMessage"));
View Full Code Here

Examples of org.jabusuite.cms.news.session.CmsNewsEntriesRemote.updateDataset()

            if (this.getDlgState() == DlgState.dsInsert) {
                logger.debug("Adding new entity " + this.getCmsNewsEntry().getId() + ".");
                newsEntries.createDataset(this.getCmsNewsEntry(), ClientGlobals.getUser(), ClientGlobals.getCompany());
            } else if (this.getDlgState() == DlgState.dsEdit) {
                logger.debug("Saving existing entity " + this.getCmsNewsEntry().getId() + ".");
                newsEntries.updateDataset(this.getCmsNewsEntry(), ClientGlobals.getUser());
            }
            logger.debug("Entity saved.");
        } catch (NamingException e) {
            logger.error("Error saving news-entry.",e);
            JbsOptionPane.showErrorDialog(this, JbsL10N.getString("Generic.saveErrorMessage"));
View Full Code Here

Examples of org.jabusuite.core.reporting.session.ReportTemplatesRemote.updateDataset()

            if (this.getDlgState() == DlgState.dsInsert) {
                logger.debug("Adding new entity " + this.getReportTemplate().getId() + ".");
                reportTemplates.createDataset(this.getReportTemplate(), ClientGlobals.getUser(), ClientGlobals.getUser().getMainGroup(), ClientGlobals.getCompany());
            } else if (this.getDlgState() == DlgState.dsEdit) {
                logger.debug("Saving existing entity " + this.getReportTemplate().getId() + ".");
                reportTemplates.updateDataset(this.getReportTemplate(), ClientGlobals.getUser());
            }
            logger.debug("Entity saved.");
        } catch (NamingException e) {
            logger.error("Error saving news-entry.",e);
            JbsOptionPane.showErrorDialog(this, JbsL10N.getString("Generic.saveErrorMessage"));
View Full Code Here

Examples of org.jabusuite.core.users.session.JbsUserGroupsRemote.updateDataset()

            if (this.getDlgState() == DlgState.dsInsert) {
                System.out.println("Adding new entity");
                jbsUserGroups.createGroup(this.getUserGroup());
            } else if (this.getDlgState() == DlgState.dsEdit) {
                System.out.println("Saving existing entity " + this.getUserGroup().getId() + ".");
                jbsUserGroups.updateDataset(this.getUserGroup());
            }
            System.out.println("Entity saved.");

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

Examples of org.jabusuite.transaction.session.CreditNotesRemote.updateDataset()

            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.DeliveryNotesRemote.updateDataset()

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

Examples of org.jabusuite.transaction.session.InvoicesRemote.updateDataset()

            super.doSave();
            if ((this.getDlgState() == DlgState.dsInsert) || (this.getDlgState() == DlgState.dsCopy)) {
                invoices.createDataset(this.getInvoice(), ClientGlobals.getUser(), ClientGlobals.getCompany());
            } else if (this.getDlgState() == DlgState.dsEdit) {
                logger.debug("Saving existing entity " + this.getInvoice().getId() + ".");
                invoices.updateDataset(this.getInvoice(), ClientGlobals.getUser());
            }
            logger.debug("Entity saved.");
        } catch (NamingException e) {
            logger.error("Error saving offer.", e);
        }
View Full Code Here

Examples of org.jabusuite.transaction.session.OffersRemote.updateDataset()

            super.doSave();
            if ((this.getDlgState() == DlgState.dsInsert) || (this.getDlgState() == DlgState.dsCopy)) {
                offers.createDataset(this.getOffer(), ClientGlobals.getUser(), ClientGlobals.getCompany());
            } else if (this.getDlgState() == DlgState.dsEdit) {
                logger.debug("Saving existing entity " + this.getOffer().getId() + ".");
                offers.updateDataset(this.getOffer(), ClientGlobals.getUser());
            }
            logger.debug("Entity saved.");
        } catch (NamingException e) {
            logger.error("Error saving offer.", e);
        }
View Full Code Here

Examples of org.jabusuite.transaction.session.OrderConfirmationsRemote.updateDataset()

            super.doSave();
            if ((this.getDlgState() == DlgState.dsInsert) || (this.getDlgState() == DlgState.dsCopy)) {
                orderConfirmations.createDataset(this.getOrderConfirmation(), ClientGlobals.getUser(), ClientGlobals.getCompany());
            } else if (this.getDlgState() == DlgState.dsEdit) {
                logger.debug("Saving existing entity " + this.getOrderConfirmation().getId() + ".");
                orderConfirmations.updateDataset(this.getOrderConfirmation(), ClientGlobals.getUser());
            }
            logger.debug("Entity saved.");
        } catch (NamingException e) {
            logger.error("Error saving credit-note..", 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.