Package net.sf.dynamicreports.jasper.builder

Examples of net.sf.dynamicreports.jasper.builder.JasperReportBuilder.addColumn()


                            "Total ventas del día (B): "
                            //+ Constants.df.format(ConnectionDrivers.getTotalDeclared(myDay) * (Shared.getIva() + 100.0) / 100.0)
                            + total
                            + " Bs" + "\n\nFondos de Caja (A)").setStyle(Templates.bold12CenteredStyle));
                    TextColumnBuilder tcb = col.column("Monto", "2", type.bigDecimalType());
                    report.addColumn(col.column("Caja", "0", type.stringType()));
                    report.addColumn(col.column("Fecha", "1", type.stringType()));
                    report.addColumn(tcb);
                /*} catch (SQLException ex) {
                    Logger.getLogger(CreateClosingDayReport.class.getName()).log(Level.SEVERE, null, ex);
                }*/
 
View Full Code Here


                            //+ Constants.df.format(ConnectionDrivers.getTotalDeclared(myDay) * (Shared.getIva() + 100.0) / 100.0)
                            + total
                            + " Bs" + "\n\nFondos de Caja (A)").setStyle(Templates.bold12CenteredStyle));
                    TextColumnBuilder tcb = col.column("Monto", "2", type.bigDecimalType());
                    report.addColumn(col.column("Caja", "0", type.stringType()));
                    report.addColumn(col.column("Fecha", "1", type.stringType()));
                    report.addColumn(tcb);
                /*} catch (SQLException ex) {
                    Logger.getLogger(CreateClosingDayReport.class.getName()).log(Level.SEVERE, null, ex);
                }*/
            }else if ( masterRowNumber == 2 ){
View Full Code Here

                            + total
                            + " Bs" + "\n\nFondos de Caja (A)").setStyle(Templates.bold12CenteredStyle));
                    TextColumnBuilder tcb = col.column("Monto", "2", type.bigDecimalType());
                    report.addColumn(col.column("Caja", "0", type.stringType()));
                    report.addColumn(col.column("Fecha", "1", type.stringType()));
                    report.addColumn(tcb);
                /*} catch (SQLException ex) {
                    Logger.getLogger(CreateClosingDayReport.class.getName()).log(Level.SEVERE, null, ex);
                }*/
            }else if ( masterRowNumber == 2 ){
                report.title(cmp.text("Gastos (C)").setStyle(Templates.bold12CenteredStyle));
View Full Code Here

                    Logger.getLogger(CreateClosingDayReport.class.getName()).log(Level.SEVERE, null, ex);
                }*/
            }else if ( masterRowNumber == 2 ){
                report.title(cmp.text("Gastos (C)").setStyle(Templates.bold12CenteredStyle));
                TextColumnBuilder tcb = col.column("Monto", "2", type.bigDecimalType());
                report.addColumn(col.column("Tipo de Gasto", "0", type.stringType()));
                report.addColumn(col.column("Observaciones", "1", type.stringType()));
                report.addColumn(tcb);
                report.subtotalsAtSummary((AggregationSubtotalBuilder<BigDecimal>)sbt.sum(tcb).setLabel("Total Egresos"));
            } else if ( masterRowNumber == 3 ){
                report.title(cmp.text("Depositos (D)").setStyle(Templates.bold12CenteredStyle));
View Full Code Here

                }*/
            }else if ( masterRowNumber == 2 ){
                report.title(cmp.text("Gastos (C)").setStyle(Templates.bold12CenteredStyle));
                TextColumnBuilder tcb = col.column("Monto", "2", type.bigDecimalType());
                report.addColumn(col.column("Tipo de Gasto", "0", type.stringType()));
                report.addColumn(col.column("Observaciones", "1", type.stringType()));
                report.addColumn(tcb);
                report.subtotalsAtSummary((AggregationSubtotalBuilder<BigDecimal>)sbt.sum(tcb).setLabel("Total Egresos"));
            } else if ( masterRowNumber == 3 ){
                report.title(cmp.text("Depositos (D)").setStyle(Templates.bold12CenteredStyle));
                TextColumnBuilder tcb = col.column("Monto", "3", type.bigDecimalType());
View Full Code Here

            }else if ( masterRowNumber == 2 ){
                report.title(cmp.text("Gastos (C)").setStyle(Templates.bold12CenteredStyle));
                TextColumnBuilder tcb = col.column("Monto", "2", type.bigDecimalType());
                report.addColumn(col.column("Tipo de Gasto", "0", type.stringType()));
                report.addColumn(col.column("Observaciones", "1", type.stringType()));
                report.addColumn(tcb);
                report.subtotalsAtSummary((AggregationSubtotalBuilder<BigDecimal>)sbt.sum(tcb).setLabel("Total Egresos"));
            } else if ( masterRowNumber == 3 ){
                report.title(cmp.text("Depositos (D)").setStyle(Templates.bold12CenteredStyle));
                TextColumnBuilder tcb = col.column("Monto", "3", type.bigDecimalType());
                report.addColumn(col.column("Tipo de Ingreso", "0", type.stringType()));
View Full Code Here

                report.addColumn(tcb);
                report.subtotalsAtSummary((AggregationSubtotalBuilder<BigDecimal>)sbt.sum(tcb).setLabel("Total Egresos"));
            } else if ( masterRowNumber == 3 ){
                report.title(cmp.text("Depositos (D)").setStyle(Templates.bold12CenteredStyle));
                TextColumnBuilder tcb = col.column("Monto", "3", type.bigDecimalType());
                report.addColumn(col.column("Tipo de Ingreso", "0", type.stringType()));
                report.addColumn(col.column("Nombre del Banco", "1", type.stringType()));
                report.addColumn(col.column("Lote", "2", type.stringType()));
                report.addColumn(tcb);
                report.subtotalsAtSummary((AggregationSubtotalBuilder<BigDecimal>)sbt.sum(tcb).setLabel("Total Ingresos"));
            } else if ( masterRowNumber == 4 ) {
View Full Code Here

                report.subtotalsAtSummary((AggregationSubtotalBuilder<BigDecimal>)sbt.sum(tcb).setLabel("Total Egresos"));
            } else if ( masterRowNumber == 3 ){
                report.title(cmp.text("Depositos (D)").setStyle(Templates.bold12CenteredStyle));
                TextColumnBuilder tcb = col.column("Monto", "3", type.bigDecimalType());
                report.addColumn(col.column("Tipo de Ingreso", "0", type.stringType()));
                report.addColumn(col.column("Nombre del Banco", "1", type.stringType()));
                report.addColumn(col.column("Lote", "2", type.stringType()));
                report.addColumn(tcb);
                report.subtotalsAtSummary((AggregationSubtotalBuilder<BigDecimal>)sbt.sum(tcb).setLabel("Total Ingresos"));
            } else if ( masterRowNumber == 4 ) {
                try {
View Full Code Here

            } else if ( masterRowNumber == 3 ){
                report.title(cmp.text("Depositos (D)").setStyle(Templates.bold12CenteredStyle));
                TextColumnBuilder tcb = col.column("Monto", "3", type.bigDecimalType());
                report.addColumn(col.column("Tipo de Ingreso", "0", type.stringType()));
                report.addColumn(col.column("Nombre del Banco", "1", type.stringType()));
                report.addColumn(col.column("Lote", "2", type.stringType()));
                report.addColumn(tcb);
                report.subtotalsAtSummary((AggregationSubtotalBuilder<BigDecimal>)sbt.sum(tcb).setLabel("Total Ingresos"));
            } else if ( masterRowNumber == 4 ) {
                try {
                    Double receiptTotal = ConnectionDrivers.getSumTotalWithIva(myDay,"factura","Facturada", true , null) - ConnectionDrivers.getSumTotalWithIva(myDay,"nota_de_credito","Nota",false, null);
View Full Code Here

                report.title(cmp.text("Depositos (D)").setStyle(Templates.bold12CenteredStyle));
                TextColumnBuilder tcb = col.column("Monto", "3", type.bigDecimalType());
                report.addColumn(col.column("Tipo de Ingreso", "0", type.stringType()));
                report.addColumn(col.column("Nombre del Banco", "1", type.stringType()));
                report.addColumn(col.column("Lote", "2", type.stringType()));
                report.addColumn(tcb);
                report.subtotalsAtSummary((AggregationSubtotalBuilder<BigDecimal>)sbt.sum(tcb).setLabel("Total Ingresos"));
            } else if ( masterRowNumber == 4 ) {
                try {
                    Double receiptTotal = ConnectionDrivers.getSumTotalWithIva(myDay,"factura","Facturada", true , null) - ConnectionDrivers.getSumTotalWithIva(myDay,"nota_de_credito","Nota",false, null);
                    Double income = ConnectionDrivers.getTotalIncomming(myDay);
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.