Examples of CategoriaDRE


Examples of com.sevenrtc.aas.entidades.CategoriaDRE

    public static void updateCategorias() {
        // Lista temporaria de categorias
        ArrayList<CategoriaDRE> categorias = new ArrayList<CategoriaDRE>();

        // Cria as categorias
        categorias.add(new CategoriaDRE(0, "(Nenhuma)"));
        categorias.add(new CategoriaDRE(1, "Receita Bruta"));
        categorias.add(new CategoriaDRE(2, "Deduções"));
        categorias.add(new CategoriaDRE(3, "Custos do Período"));
        categorias.add(new CategoriaDRE(4, "Resultado Operacional"));
        categorias.add(new CategoriaDRE(5, "Resultado Financeiro"));
        categorias.add(new CategoriaDRE(6, "Resultado Não Operacional"));
        categorias.add(new CategoriaDRE(7, "Imposto de Renda e C.S."));
        categorias.add(new CategoriaDRE(8, "Participações"));
        // Converte-as para um vetor
        categoriasDRE = categorias.toArray();

        try {
            // Se as categorias ainda não foram persistidas no banco
View Full Code Here

Examples of com.sevenrtc.aas.entidades.CategoriaDRE

            PartidaDiario.update(pd2);

        }
        // Testa as funcionalidades da classe Categoria_DRE
        {
            CategoriaDRE cat = new CategoriaDRE((long) -1, "teste");
            CategoriaDRE.store(cat);
            ResultSet rs = DAO.query("select * from cat_categoriadre where cat_nome = 'teste'");
            try {
                rs.next();
            } catch (SQLException e) {
                e.printStackTrace();
            }
            CategoriaDRE cat2 = CategoriaDRE.load(rs);
            CategoriaDRE.delete(cat);
            CategoriaDRE.store(cat2);
            cat2.setNome("teste 2");
            CategoriaDRE.update(cat2);
        }
        // Testa as funcionalidades da classe Conta
        {
            Conta con = new Conta("33.33.1", 2, "teste", (Number) Constantes.getFormatterValor().stringToValue("999,99"), 'z', 'z',
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.