Package business

Examples of business.ContainerArvores


        super(pView, pMessage);
    }

    @Override
    void doCommand() throws Exception {
        ContainerArvores containerArvores = ((IEditorView) view).getPresenter().getContainerArvores();

        ((IEditorView) view).getPresenter().getProjetoDAO().connect();
        Projeto projeto = ((IEditorView) view).getPresenter().getProjetoDAO().find(containerArvores.getProjeto().getId());
        for (Long idArvore : ((IEditorView) view).getArvoresSelecionadas()) {
            projeto.getCenarioById(containerArvores.getId()).removeArvore(idArvore);
        }
        ((IEditorView) view).getPresenter().getProjetoDAO().update(projeto, true, containerArvores.getProjeto().getId());
    }
View Full Code Here


        super(pView, pMessage);
    }

    @Override
    void doCommand() throws Exception {
        ContainerArvores ContainerArvores = ((IEditorView) view).getPresenter().getContainerArvores().getProjeto();
        ((IEditorView) view).getPresenter().getProjetoDAO().connect();
        ArrayList<Arvore> arvores = new ArrayList<>(((IEditorView) view).getPresenter().getCenarioTM().getUpdatedArvores());
        ((IEditorView) view).getPresenter().getContainerArvores().addArvores(arvores);
        ((IEditorView) view).getPresenter().getProjetoDAO().update(((IEditorView) view).getPresenter().getContainerArvores().getProjeto(), true, ContainerArvores.getId());
    }
View Full Code Here

        super(pView, pMessage);
    }

    @Override
    void doCommand() {
        ContainerArvores cenario = ((IEditorView) view).getPresenter().getContainerArvores();
        CenarioInventarioTableModel cenarioTM = ((IEditorView) view).getPresenter().getCenarioTM();
        int coluna = ((IEditorView) view).getPresenter().getColumn();
        if (cenarioTM.getColumnCount() >= 2) {
            if (coluna > 0) {
                try {
                    String nomeColuna = cenario.getHeadersNames(false).get(coluna);
                    Set<Map.Entry<String, String>> formulas = cenario.getHeaderAndFormulas();
                    for (Map.Entry<String, String> entry : formulas) {
                        String col = entry.getKey();
                        String formula = entry.getValue().toLowerCase();
                        if (formula.contains(nomeColuna.toLowerCase())) {
                            throw new Exception("A coluna " + nomeColuna.toUpperCase() + " faz parte da fórmula da coluna "
View Full Code Here

TOP

Related Classes of business.ContainerArvores

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.