Examples of ArticleVATsRemote


Examples of org.jabusuite.article.session.ArticleVATsRemote

     */
    @Override
    public void doSave() throws EJbsObject {
        logger.debug("Saving data...");
        try {
            ArticleVATsRemote vats = (ArticleVATsRemote) ClientTools.getRemoteBean(ArticleVATsRemote.class);

            super.doSave();
            if (this.getDlgState() == DlgState.dsInsert) {
                logger.debug("Adding new entity " + this.getVAT().getId() + ".");
                vats.createDataset(this.getVAT(), ClientGlobals.getUser(), ClientGlobals.getCompany());
            } else if (this.getDlgState() == DlgState.dsEdit) {
                logger.debug("Saving existing entity " + this.getVAT().getId() + ".");
                vats.updateDataset(this.getVAT(), ClientGlobals.getUser());
            }
            logger.debug("Entity saved.");
        } catch (NamingException e) {
            logger.error("Error svaing vat.", e);
        }
View Full Code Here

Examples of org.jabusuite.article.session.ArticleVATsRemote

     */
    @Override
    public List<JbsBaseObject> getDataFromServer(int startIndex,
            int resultCount) {
        try {
            ArticleVATsRemote vats = (ArticleVATsRemote)ClientTools.getRemoteBean(ArticleVATsRemote.class);
            return vats.getDatasets(this.getFilter(), this.getOrderFields(), this.getUser(), this.getCompany(), startIndex, resultCount);
        } catch (Exception e) {
            logger.error("Error fetching vats.", e);
            return null;
        }
    }
View Full Code Here

Examples of org.jabusuite.article.session.ArticleVATsRemote

     * @see org.jabusuite.client.datalist.LiveJbsObjectList#getListSize()
     */
    @Override
    public int getListSize() {
        try {
            ArticleVATsRemote vats = (ArticleVATsRemote)ClientTools.getRemoteBean(ArticleVATsRemote.class);
            return (int) vats.getDatasetCount(this.getFilter(), this.getUser(), this.getCompany());
        } catch (Exception e) {
            logger.error("Error getting vat-count.", e);
            return 0;
        }
    }
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.