Fixes Bug #0009359
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@71926 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
118aafdfb3
commit
a994c4aa41
|
@ -0,0 +1,97 @@
|
|||
/**
|
||||
*
|
||||
*/
|
||||
package com.rjconsultores.ventaboletos.relatorios.impl;
|
||||
|
||||
import java.sql.Connection;
|
||||
import java.sql.ResultSet;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.Date;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
import com.rjconsultores.ventaboletos.relatorios.utilitarios.ArrayDataSource;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.NamedParameterStatement;
|
||||
|
||||
/**
|
||||
* @author Thiago
|
||||
*
|
||||
*/
|
||||
public class RelatorioFinanceiroGrupoLinhas extends RelatorioDemandas {
|
||||
public RelatorioFinanceiroGrupoLinhas(Map<String, Object> parametros, Connection conexao) throws Exception {
|
||||
super(parametros, conexao);
|
||||
this.setCustomDataSource(new ArrayDataSource(this) {
|
||||
@Override
|
||||
public void initDados() throws Exception {
|
||||
SimpleDateFormat format = new SimpleDateFormat("dd/MM/yyyy");
|
||||
Connection conexao = this.relatorio.getConexao();
|
||||
Map<String, Object> parametros = this.relatorio.getParametros();
|
||||
|
||||
Date dataIncial = (Date) parametros.get("DATA_INICIAL");
|
||||
|
||||
Date dataFinal = (Date) parametros.get("DATA_FINAL");
|
||||
|
||||
Integer empresa = (Integer) parametros.get("EMPRESA");
|
||||
|
||||
Integer agencia = (Integer) parametros.get("AGENCIA");
|
||||
|
||||
Boolean somenteCancelados = (Boolean) parametros.get("SOMENTE_CANCELADOS");
|
||||
|
||||
StringBuilder where = new StringBuilder();
|
||||
where.append(" WHERE 1 = 1 ");
|
||||
|
||||
if (dataIncial != null) {
|
||||
where.append(" AND caja.fechorventa >= to_date('" + format.format(dataIncial) + "','dd/MM/yyyy') ");
|
||||
}
|
||||
|
||||
if (dataFinal != null) {
|
||||
where.append(" AND caja.fechorventa <= to_date('" + format.format(dataFinal) + "','dd/MM/yyyy') ");
|
||||
}
|
||||
|
||||
if (empresa != null) {
|
||||
where.append(" AND caja.EMPRESAPUNTOVENTA_ID = " + empresa + " ");
|
||||
}
|
||||
|
||||
if (agencia != null) {
|
||||
where.append(" AND pv.PUNTOVENTA_ID = " + agencia + " ");
|
||||
}
|
||||
|
||||
if (somenteCancelados) {
|
||||
where.append(" AND caja.MOTIVOCANCELACION_ID is not null ");
|
||||
}
|
||||
|
||||
StringBuilder sql = new StringBuilder();
|
||||
sql.append(" select to_date(caja.FECHORVENTA, 'dd/MM/yyyy') as FECHORVENTA,MC.DESCMOTIVO,pv.NOMBPUNTOVENTA,EMPRESA.NOMBEMPRESA,gr.DESCGRUPO,sum(caja.PRECIOPAGADO) as PRECIOPAGADO ");
|
||||
sql.append(" from caja join ruta on caja.RUTA_ID = ruta.RUTA_ID ");
|
||||
sql.append(" join grupo_ruta gr on ruta.GRUPORUTA_ID = gr.GRUPORUTA_ID ");
|
||||
sql.append(" join PUNTO_VENTA pv on pv.PUNTOVENTA_ID = caja.PUNTOVENTA_ID ");
|
||||
sql.append(" join MARCA on caja.MARCA_ID = MARCA.MARCA_ID ");
|
||||
sql.append(" join EMPRESA on EMPRESA.EMPRESA_ID = MARCA.EMPRESA_ID ");
|
||||
sql.append(" LEFT JOIN MOTIVO_CANCELACION MC ON MC.MOTIVOCANCELACION_ID = caja.MOTIVOCANCELACION_ID ");
|
||||
sql.append(where);
|
||||
sql.append(" group by to_date(caja.FECHORVENTA, 'dd/MM/yyyy'),MC.DESCMOTIVO,pv.NOMBPUNTOVENTA,EMPRESA.NOMBEMPRESA,gr.DESCGRUPO ");
|
||||
sql.append(" order by pv.NOMBPUNTOVENTA, to_date(caja.FECHORVENTA,'dd/MM/yyyy') ");
|
||||
|
||||
NamedParameterStatement stmt = new NamedParameterStatement(conexao, sql.toString());
|
||||
|
||||
ResultSet rset = stmt.executeQuery();
|
||||
|
||||
while (rset.next()) {
|
||||
Map<String, Object> dataResult = new HashMap<String, Object>();
|
||||
|
||||
dataResult.put("FECHORVENTA", format.format(rset.getDate("FECHORVENTA")));
|
||||
dataResult.put("DESCMOTIVO", rset.getString("DESCMOTIVO"));
|
||||
dataResult.put("NOMBPUNTOVENTA", rset.getString("NOMBPUNTOVENTA"));
|
||||
dataResult.put("NOMBEMPRESA", rset.getString("NOMBEMPRESA"));
|
||||
dataResult.put("DESCGRUPO", rset.getString("DESCGRUPO"));
|
||||
dataResult.put("NOMBEMPRESA", rset.getString("NOMBEMPRESA"));
|
||||
dataResult.put("PRECIOPAGADO", rset.getDouble("PRECIOPAGADO"));
|
||||
|
||||
this.dados.add(dataResult);
|
||||
}
|
||||
|
||||
this.resultSet = rset;
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
|
@ -0,0 +1 @@
|
|||
msg.noData=Não foi possivel obter dados com os parâmetros informados.
|
Binary file not shown.
|
@ -0,0 +1,181 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="relatorioFormaPagamentoAgencia" pageWidth="842" pageHeight="595" orientation="Landscape" whenNoDataType="NoDataSection" columnWidth="802" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" isFloatColumnFooter="true" uuid="832cc8a2-6330-4063-9b36-f96514ae8283">
|
||||
<property name="ireport.zoom" value="2.593742460100019"/>
|
||||
<property name="ireport.x" value="0"/>
|
||||
<property name="ireport.y" value="71"/>
|
||||
<parameter name="DATA_INICIAL" class="java.util.Date"/>
|
||||
<parameter name="DATA_FINAL" class="java.util.Date"/>
|
||||
<queryString language="SQL">
|
||||
<![CDATA[]]>
|
||||
</queryString>
|
||||
<field name="FECHORVENTA" class="java.lang.String"/>
|
||||
<field name="DESCMOTIVO" class="java.lang.String"/>
|
||||
<field name="NOMBPUNTOVENTA" class="java.lang.String"/>
|
||||
<field name="NOMBEMPRESA" class="java.lang.String"/>
|
||||
<field name="DESCGRUPO" class="java.lang.String"/>
|
||||
<field name="PRECIOPAGADO" class="java.lang.Double"/>
|
||||
<group name="grupoLinha">
|
||||
<groupExpression><![CDATA[$F{NOMBPUNTOVENTA}]]></groupExpression>
|
||||
<groupHeader>
|
||||
<band height="24">
|
||||
<textField isBlankWhenNull="true">
|
||||
<reportElement uuid="151a46f2-5c54-4a0e-91c2-a49986a08cff" x="66" y="0" width="300" height="20" isPrintWhenDetailOverflows="true"/>
|
||||
<textElement>
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{NOMBPUNTOVENTA}]]></textFieldExpression>
|
||||
</textField>
|
||||
<staticText>
|
||||
<reportElement uuid="1fee5538-4ea6-478e-b565-0733f1433db8" x="0" y="0" width="66" height="20"/>
|
||||
<textElement>
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
<text><![CDATA[AGÊNCIA:]]></text>
|
||||
</staticText>
|
||||
<line>
|
||||
<reportElement uuid="dc28a147-134b-4d45-bed6-1480b4d3a4c6" x="0" y="21" width="801" height="1"/>
|
||||
</line>
|
||||
<line>
|
||||
<reportElement uuid="ec3398d1-80da-48c7-8ded-9aedf86a3306" x="0" y="-5" width="801" height="1"/>
|
||||
</line>
|
||||
</band>
|
||||
</groupHeader>
|
||||
<groupFooter>
|
||||
<band/>
|
||||
</groupFooter>
|
||||
</group>
|
||||
<background>
|
||||
<band splitType="Stretch"/>
|
||||
</background>
|
||||
<title>
|
||||
<band height="62" splitType="Stretch">
|
||||
<staticText>
|
||||
<reportElement uuid="7f9cea32-d0e7-4c05-9efc-233cdd5137ab" x="0" y="39" width="66" height="20"/>
|
||||
<textElement>
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
<text><![CDATA[PERÍODO:]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement uuid="367cee8b-2874-4078-b9c4-90285e81ec06" x="0" y="0" width="802" height="20"/>
|
||||
<textElement textAlignment="Center">
|
||||
<font size="14" isBold="true"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Relatório Financeiro por Grupo de Linhas]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement uuid="c45a1ecd-8b5e-4bd7-9139-56e0844cea7e" x="127" y="39" width="10" height="20"/>
|
||||
<textElement>
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
<text><![CDATA[ - ]]></text>
|
||||
</staticText>
|
||||
<textField pattern="dd/MM/yyyy">
|
||||
<reportElement uuid="07dfa225-148c-4de6-a428-3c91f83c4081" x="67" y="39" width="60" height="20"/>
|
||||
<textElement/>
|
||||
<textFieldExpression><![CDATA[$P{DATA_INICIAL}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="dd/MM/yyyy">
|
||||
<reportElement uuid="3948e59f-21d8-47c8-8077-a57af30605c5" x="137" y="39" width="60" height="20"/>
|
||||
<textElement/>
|
||||
<textFieldExpression><![CDATA[$P{DATA_FINAL}]]></textFieldExpression>
|
||||
</textField>
|
||||
</band>
|
||||
</title>
|
||||
<columnHeader>
|
||||
<band height="27">
|
||||
<staticText>
|
||||
<reportElement uuid="a355fd56-2041-4ca0-b9bd-c3ed0173f704" x="0" y="0" width="66" height="20"/>
|
||||
<textElement>
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
<text><![CDATA[DATA]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement uuid="70c670fb-e9a0-49b8-8332-1eb625b27fc6" x="67" y="0" width="300" height="20"/>
|
||||
<textElement>
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
<text><![CDATA[MOTIVO]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement uuid="73e6808f-fb41-4017-b857-2a1611fd8006" x="367" y="0" width="219" height="20"/>
|
||||
<textElement>
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
<text><![CDATA[EMPRESA]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement uuid="97055f24-9341-4ac3-8445-7f2d2ebc76e2" x="586" y="0" width="107" height="20"/>
|
||||
<textElement>
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
<text><![CDATA[LINHA]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement uuid="d381d9e7-bb72-431f-af00-3584f9ca9f7b" x="693" y="0" width="107" height="20"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
<text><![CDATA[PREÇO]]></text>
|
||||
</staticText>
|
||||
</band>
|
||||
</columnHeader>
|
||||
<detail>
|
||||
<band height="22" splitType="Stretch">
|
||||
<textField isBlankWhenNull="true">
|
||||
<reportElement uuid="e873a0b8-5b07-4883-8be6-edf75307e9ab" x="66" y="1" width="300" height="20" isPrintWhenDetailOverflows="true"/>
|
||||
<textElement/>
|
||||
<textFieldExpression><![CDATA[$F{DESCMOTIVO}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="" isBlankWhenNull="true">
|
||||
<reportElement uuid="d2f490c1-e807-4243-a3e0-b86229a83c6b" x="366" y="1" width="220" height="20" isPrintWhenDetailOverflows="true"/>
|
||||
<textElement/>
|
||||
<textFieldExpression><![CDATA[$F{NOMBEMPRESA}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="¤ #,##0.00" isBlankWhenNull="true">
|
||||
<reportElement uuid="a3119d26-2d10-40c5-98dc-bf0f6be3fc25" x="586" y="1" width="107" height="20" isPrintWhenDetailOverflows="true"/>
|
||||
<textElement/>
|
||||
<textFieldExpression><![CDATA[$F{DESCGRUPO}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="¤ #,##0.00" isBlankWhenNull="true">
|
||||
<reportElement uuid="ccad4f84-243a-47cf-904a-15c4ba7feee4" x="693" y="1" width="107" height="20" isPrintWhenDetailOverflows="true"/>
|
||||
<textElement textAlignment="Right"/>
|
||||
<textFieldExpression><![CDATA[$F{PRECIOPAGADO}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isBlankWhenNull="true">
|
||||
<reportElement uuid="66455995-be07-4062-8234-ade8ccfd79c0" x="0" y="1" width="66" height="20" isPrintWhenDetailOverflows="true"/>
|
||||
<textElement/>
|
||||
<textFieldExpression><![CDATA[$F{FECHORVENTA}]]></textFieldExpression>
|
||||
</textField>
|
||||
</band>
|
||||
</detail>
|
||||
<columnFooter>
|
||||
<band/>
|
||||
</columnFooter>
|
||||
<lastPageFooter>
|
||||
<band/>
|
||||
</lastPageFooter>
|
||||
<summary>
|
||||
<band height="50">
|
||||
<staticText>
|
||||
<reportElement uuid="23836f01-2215-4ba5-8d68-59a493e7f45a" x="586" y="0" width="107" height="20"/>
|
||||
<textElement>
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Total]]></text>
|
||||
</staticText>
|
||||
</band>
|
||||
</summary>
|
||||
<noData>
|
||||
<band height="45">
|
||||
<textField>
|
||||
<reportElement uuid="6c28de84-ceae-409b-bde5-04f66cb9a805" x="175" y="12" width="553" height="20"/>
|
||||
<textElement markup="none">
|
||||
<font size="11" isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{msg.noData}]]></textFieldExpression>
|
||||
</textField>
|
||||
</band>
|
||||
</noData>
|
||||
</jasperReport>
|
Binary file not shown.
|
@ -1,8 +1,8 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="relatorioFormaPagamentoAgencia" pageWidth="842" pageHeight="595" orientation="Landscape" whenNoDataType="NoDataSection" columnWidth="802" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" isFloatColumnFooter="true" uuid="832cc8a2-6330-4063-9b36-f96514ae8283">
|
||||
<property name="ireport.zoom" value="1.0000000000000009"/>
|
||||
<property name="ireport.x" value="129"/>
|
||||
<property name="ireport.y" value="17"/>
|
||||
<property name="ireport.zoom" value="3.138428376721016"/>
|
||||
<property name="ireport.x" value="58"/>
|
||||
<property name="ireport.y" value="205"/>
|
||||
<parameter name="DATA_INICIAL" class="java.util.Date"/>
|
||||
<parameter name="DATA_FINAL" class="java.util.Date"/>
|
||||
<queryString language="SQL">
|
||||
|
@ -36,9 +36,9 @@
|
|||
<band splitType="Stretch"/>
|
||||
</background>
|
||||
<title>
|
||||
<band height="102" splitType="Stretch">
|
||||
<band height="68" splitType="Stretch">
|
||||
<staticText>
|
||||
<reportElement uuid="7f9cea32-d0e7-4c05-9efc-233cdd5137ab" x="1" y="39" width="51" height="20"/>
|
||||
<reportElement uuid="7f9cea32-d0e7-4c05-9efc-233cdd5137ab" x="1" y="39" width="65" height="20"/>
|
||||
<textElement>
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
|
@ -52,91 +52,91 @@
|
|||
<text><![CDATA[Relatório de Forma de Pagamento por Agência]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement uuid="c45a1ecd-8b5e-4bd7-9139-56e0844cea7e" x="165" y="39" width="10" height="20"/>
|
||||
<reportElement uuid="c45a1ecd-8b5e-4bd7-9139-56e0844cea7e" x="125" y="39" width="10" height="20"/>
|
||||
<textElement>
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
<text><![CDATA[ - ]]></text>
|
||||
</staticText>
|
||||
<textField pattern="dd/MM/yyyy">
|
||||
<reportElement uuid="07dfa225-148c-4de6-a428-3c91f83c4081" x="80" y="39" width="85" height="20"/>
|
||||
<reportElement uuid="07dfa225-148c-4de6-a428-3c91f83c4081" x="66" y="39" width="59" height="20"/>
|
||||
<textElement/>
|
||||
<textFieldExpression><![CDATA[$P{DATA_INICIAL}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="dd/MM/yyyy">
|
||||
<reportElement uuid="3948e59f-21d8-47c8-8077-a57af30605c5" x="175" y="39" width="100" height="20"/>
|
||||
<reportElement uuid="3948e59f-21d8-47c8-8077-a57af30605c5" x="135" y="39" width="63" height="20"/>
|
||||
<textElement/>
|
||||
<textFieldExpression><![CDATA[$P{DATA_FINAL}]]></textFieldExpression>
|
||||
</textField>
|
||||
</band>
|
||||
</title>
|
||||
<columnHeader>
|
||||
<band height="50">
|
||||
<band height="23">
|
||||
<staticText>
|
||||
<reportElement uuid="a355fd56-2041-4ca0-b9bd-c3ed0173f704" x="1" y="30" width="66" height="20"/>
|
||||
<reportElement uuid="a355fd56-2041-4ca0-b9bd-c3ed0173f704" x="0" y="0" width="66" height="20"/>
|
||||
<textElement>
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
<text><![CDATA[DATA]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement uuid="70c670fb-e9a0-49b8-8332-1eb625b27fc6" x="67" y="30" width="132" height="20"/>
|
||||
<reportElement uuid="70c670fb-e9a0-49b8-8332-1eb625b27fc6" x="66" y="0" width="132" height="20"/>
|
||||
<textElement>
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
<text><![CDATA[AGÊNCIA]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement uuid="1fee5538-4ea6-478e-b565-0733f1433db8" x="199" y="30" width="91" height="20"/>
|
||||
<textElement>
|
||||
<reportElement uuid="1fee5538-4ea6-478e-b565-0733f1433db8" x="198" y="0" width="91" height="20"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
<text><![CDATA[FORMA DE PAG.]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement uuid="73e6808f-fb41-4017-b857-2a1611fd8006" x="290" y="30" width="91" height="20"/>
|
||||
<textElement>
|
||||
<reportElement uuid="73e6808f-fb41-4017-b857-2a1611fd8006" x="289" y="0" width="91" height="20"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
<text><![CDATA[TARIFA]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement uuid="97055f24-9341-4ac3-8445-7f2d2ebc76e2" x="381" y="30" width="107" height="20"/>
|
||||
<textElement>
|
||||
<reportElement uuid="97055f24-9341-4ac3-8445-7f2d2ebc76e2" x="380" y="0" width="107" height="20"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
<text><![CDATA[PEDÁGIO]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement uuid="d381d9e7-bb72-431f-af00-3584f9ca9f7b" x="488" y="30" width="107" height="20"/>
|
||||
<textElement>
|
||||
<reportElement uuid="d381d9e7-bb72-431f-af00-3584f9ca9f7b" x="487" y="0" width="107" height="20"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
<text><![CDATA[SEGURO]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement uuid="aec51c2e-ed8d-47aa-ab7c-77a1f5fc365a" x="595" y="30" width="60" height="20"/>
|
||||
<textElement>
|
||||
<reportElement uuid="aec51c2e-ed8d-47aa-ab7c-77a1f5fc365a" x="594" y="0" width="60" height="20"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
<text><![CDATA[TAXAS]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement uuid="6aa29773-39b4-4f17-a08d-e296df7df1b9" x="655" y="30" width="85" height="20"/>
|
||||
<textElement>
|
||||
<reportElement uuid="6aa29773-39b4-4f17-a08d-e296df7df1b9" x="655" y="0" width="85" height="20"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
<text><![CDATA[TOTAL]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement uuid="5a09d3e0-7464-4a7e-8378-544ecfd8d01e" x="740" y="30" width="63" height="20"/>
|
||||
<textElement>
|
||||
<reportElement uuid="5a09d3e0-7464-4a7e-8378-544ecfd8d01e" x="740" y="0" width="49" height="20"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
<text><![CDATA[QTDE]]></text>
|
||||
</staticText>
|
||||
<line>
|
||||
<reportElement uuid="ec3398d1-80da-48c7-8ded-9aedf86a3306" x="0" y="49" width="801" height="1"/>
|
||||
<reportElement uuid="33fdc3c8-28af-450b-9afb-bffbe50ff8b8" x="1" y="20" width="801" height="1"/>
|
||||
</line>
|
||||
</band>
|
||||
</columnHeader>
|
||||
|
@ -149,7 +149,7 @@
|
|||
</textField>
|
||||
<textField isBlankWhenNull="true">
|
||||
<reportElement uuid="151a46f2-5c54-4a0e-91c2-a49986a08cff" x="198" y="0" width="91" height="20" isPrintWhenDetailOverflows="true"/>
|
||||
<textElement/>
|
||||
<textElement textAlignment="Right"/>
|
||||
<textFieldExpression><![CDATA[$F{FORMA_PAGAMENTO}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isBlankWhenNull="true">
|
||||
|
@ -159,7 +159,7 @@
|
|||
</textField>
|
||||
<textField pattern="" isBlankWhenNull="true">
|
||||
<reportElement uuid="d2f490c1-e807-4243-a3e0-b86229a83c6b" x="289" y="0" width="91" height="20" isPrintWhenDetailOverflows="true"/>
|
||||
<textElement/>
|
||||
<textElement textAlignment="Right"/>
|
||||
<textFieldExpression><![CDATA[$F{TARIFA}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="¤ #,##0.00" isBlankWhenNull="true">
|
||||
|
@ -190,7 +190,7 @@
|
|||
</band>
|
||||
</detail>
|
||||
<columnFooter>
|
||||
<band height="36"/>
|
||||
<band/>
|
||||
</columnFooter>
|
||||
<lastPageFooter>
|
||||
<band/>
|
||||
|
@ -198,21 +198,21 @@
|
|||
<summary>
|
||||
<band height="50">
|
||||
<staticText>
|
||||
<reportElement uuid="23836f01-2215-4ba5-8d68-59a493e7f45a" x="199" y="0" width="91" height="20"/>
|
||||
<textElement>
|
||||
<reportElement uuid="23836f01-2215-4ba5-8d68-59a493e7f45a" x="198" y="0" width="91" height="20"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Total]]></text>
|
||||
</staticText>
|
||||
<textField pattern="¤ #,##0.00" isBlankWhenNull="true">
|
||||
<reportElement uuid="26a2768f-98c4-40d6-8437-a3431e29767d" x="488" y="0" width="107" height="20"/>
|
||||
<reportElement uuid="26a2768f-98c4-40d6-8437-a3431e29767d" x="487" y="0" width="107" height="20"/>
|
||||
<textElement textAlignment="Right" verticalAlignment="Middle">
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$V{SEGURO}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="¤ #,##0.00" isBlankWhenNull="true">
|
||||
<reportElement uuid="c3d56b38-e963-4eb8-8c1d-631bc26d3c68" x="382" y="0" width="106" height="20"/>
|
||||
<reportElement uuid="c3d56b38-e963-4eb8-8c1d-631bc26d3c68" x="380" y="0" width="107" height="20"/>
|
||||
<textElement textAlignment="Right" verticalAlignment="Middle">
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
|
|
|
@ -0,0 +1,161 @@
|
|||
/*
|
||||
* To change this template, choose Tools | Templates
|
||||
* and open the template in the editor.
|
||||
*/
|
||||
package com.rjconsultores.ventaboletos.web.gui.controladores.financeiro;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import javax.sql.DataSource;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.context.annotation.Scope;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.zkoss.util.resource.Labels;
|
||||
import org.zkoss.zk.ui.Component;
|
||||
import org.zkoss.zk.ui.event.Event;
|
||||
import org.zkoss.zul.Checkbox;
|
||||
import org.zkoss.zul.Datebox;
|
||||
|
||||
import com.rjconsultores.ventaboletos.entidad.PuntoVenta;
|
||||
import com.rjconsultores.ventaboletos.entidad.Empresa;
|
||||
import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioFinanceiroGrupoLinhas;
|
||||
import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioFormaPagamentoAgencia;
|
||||
import com.rjconsultores.ventaboletos.service.FormaPagamentoAgenciaService;
|
||||
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxPuntoVenta;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Administrador
|
||||
*/
|
||||
@Controller("financeiroGrupoLinhasController")
|
||||
@Scope("prototype")
|
||||
public class FinanceiroGrupoLinhasController extends MyGenericForwardComposer {
|
||||
|
||||
@Autowired
|
||||
private FormaPagamentoAgenciaService financeiroService;
|
||||
|
||||
@Autowired
|
||||
private DataSource dataSourceRead;
|
||||
|
||||
private Datebox fecInicio;
|
||||
private Datebox fecFinal;
|
||||
private Checkbox somenteCancelados;
|
||||
|
||||
private MyComboboxEstandar cmbEmpresa;
|
||||
private List<Empresa> lsEmpresas;
|
||||
|
||||
private MyComboboxPuntoVenta cmbAgencia;
|
||||
|
||||
@Override
|
||||
public void doAfterCompose(Component comp) throws Exception {
|
||||
|
||||
lsEmpresas = UsuarioLogado.getUsuarioLogado().getEmpresa();
|
||||
|
||||
super.doAfterCompose(comp);
|
||||
}
|
||||
|
||||
|
||||
public Checkbox getSomenteCancelados() {
|
||||
return somenteCancelados;
|
||||
}
|
||||
|
||||
|
||||
public void setSomenteCancelados(Checkbox somenteCancelados) {
|
||||
this.somenteCancelados = somenteCancelados;
|
||||
}
|
||||
|
||||
|
||||
public MyComboboxPuntoVenta getCmbAgencia() {
|
||||
return cmbAgencia;
|
||||
}
|
||||
|
||||
|
||||
public void setCmbAgencia(MyComboboxPuntoVenta cmbAgencia) {
|
||||
this.cmbAgencia = cmbAgencia;
|
||||
}
|
||||
|
||||
|
||||
public FormaPagamentoAgenciaService getFinanceiroService() {
|
||||
return financeiroService;
|
||||
}
|
||||
|
||||
public void setFinanceiroService(FormaPagamentoAgenciaService financeiroService) {
|
||||
this.financeiroService = financeiroService;
|
||||
}
|
||||
|
||||
public DataSource getDataSourceRead() {
|
||||
return dataSourceRead;
|
||||
}
|
||||
|
||||
public void setDataSourceRead(DataSource dataSourceRead) {
|
||||
this.dataSourceRead = dataSourceRead;
|
||||
}
|
||||
|
||||
public MyComboboxEstandar getCmbEmpresa() {
|
||||
return cmbEmpresa;
|
||||
}
|
||||
|
||||
public void setCmbEmpresa(MyComboboxEstandar cmbEmpresa) {
|
||||
this.cmbEmpresa = cmbEmpresa;
|
||||
}
|
||||
|
||||
public List<Empresa> getLsEmpresas() {
|
||||
return lsEmpresas;
|
||||
}
|
||||
|
||||
public void setLsEmpresas(List<Empresa> lsEmpresas) {
|
||||
this.lsEmpresas = lsEmpresas;
|
||||
}
|
||||
|
||||
public Datebox getFecFinal() {
|
||||
return fecFinal;
|
||||
}
|
||||
|
||||
public void setFecFinal(Datebox fecFinal) {
|
||||
this.fecFinal = fecFinal;
|
||||
}
|
||||
|
||||
public Datebox getFecInicio() {
|
||||
return fecInicio;
|
||||
}
|
||||
|
||||
public void setFecInicio(Datebox fecInicio) {
|
||||
this.fecInicio = fecInicio;
|
||||
}
|
||||
|
||||
public void onClick$btnInforme(Event e) throws Exception {
|
||||
Date dataInicio = fecInicio.getValue();
|
||||
Date dataFinal = fecFinal.getValue();
|
||||
|
||||
Map argsInforme = new HashMap();
|
||||
argsInforme.put("DATA_INICIAL", dataInicio);
|
||||
argsInforme.put("DATA_FINAL", dataFinal);
|
||||
argsInforme.put("SOMENTE_CANCELADOS", somenteCancelados.isChecked());
|
||||
|
||||
if (cmbEmpresa.isValid() && cmbEmpresa.getSelectedItem() != null) {
|
||||
Integer empresaId = ((Empresa)cmbEmpresa.getSelectedItem().getValue()).getEmpresaId();
|
||||
argsInforme.put("EMPRESA", empresaId);
|
||||
}
|
||||
|
||||
if (cmbAgencia.getSelectedItem() != null) {
|
||||
Integer agencia = ((PuntoVenta) cmbAgencia.getSelectedItem().getValue()).getPuntoventaId();
|
||||
argsInforme.put("AGENCIA", agencia);
|
||||
}
|
||||
|
||||
RelatorioFinanceiroGrupoLinhas relatorio = new RelatorioFinanceiroGrupoLinhas(argsInforme, dataSourceRead.getConnection());
|
||||
|
||||
Map args = new HashMap();
|
||||
args.put("relatorio", relatorio);
|
||||
|
||||
openWindow("/component/reportView.zul",
|
||||
Labels.getLabel("financeiroGrupoLinhasController.window.title"), args, MODAL);
|
||||
|
||||
}
|
||||
}
|
|
@ -0,0 +1,25 @@
|
|||
package com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios;
|
||||
|
||||
import org.zkoss.util.resource.Labels;
|
||||
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.PantallaUtileria;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.menu.DefaultItemMenuSistema;
|
||||
|
||||
public class ItemMenuRelatorioFinanceiroGrupoLinhas extends DefaultItemMenuSistema {
|
||||
|
||||
public ItemMenuRelatorioFinanceiroGrupoLinhas() {
|
||||
super("financeiroGrupoLinhasController.mniRelatorioFinanceiro.label");
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getClaveMenu() {
|
||||
return "COM.RJCONSULTORES.ADMINISTRACION.GUI.RELATORIOS.MENU.RELATORIOFINANCEIROGRUPOLINHASCONTROLLER";
|
||||
}
|
||||
|
||||
@Override
|
||||
public void ejecutar() {
|
||||
PantallaUtileria.openWindow("/gui/informes/formaPagamentoAgencia/financeiroGrupoLinhas.zul",
|
||||
Labels.getLabel("financeiroGrupoLinhasController.mniRelatorioFinanceiro.label"), getArgs(), desktop);
|
||||
}
|
||||
|
||||
}
|
|
@ -170,7 +170,8 @@ analitico.gerenciais.financeiro.relatorioFinanceiroReceitasDespesas=com.rjconsul
|
|||
analitico.gerenciais.financeiro.relatorioDepositos=com.rjconsultores.ventaboletos.web.utilerias.menu.item.contacorrente.ItemMenuRelatorioDepositos
|
||||
analitico.gerenciais.financeiro.relatorioDepositosDetalhados=com.rjconsultores.ventaboletos.web.utilerias.menu.item.contacorrente.ItemMenuRelatorioDepositosDetalhados
|
||||
analitico.gerenciais.financeiro.relatorioPosicaoCaixaAnalitico=com.rjconsultores.ventaboletos.web.utilerias.menu.item.contacorrente.ItemMenuRelatorioPosicaoCaixaAnalitico
|
||||
analitico.gerenciais.financeiro.relatorioPosicaoCaixaAnalitico=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioFormaPagamentoAgencia
|
||||
analitico.gerenciais.financeiro.relatorioFormaPagamentoAgencia=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioFormaPagamentoAgencia
|
||||
analitico.gerenciais.financeiro.relatorioFinanceiroGrupoLinhas=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioFinanceiroGrupoLinhas
|
||||
analitico.gerenciais.pacote=com.rjconsultores.ventaboletos.web.utilerias.menu.item.analitico.gerenciais.pacote.SubMenuRelatorioPacote
|
||||
analitico.gerenciais.pacote.boletos=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioVendasPacotesBoletos
|
||||
analitico.gerenciais.pacote.detalhado=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioVendasPacotesDetalhado
|
||||
|
|
|
@ -374,6 +374,15 @@ formaPagamentoAgenciaController.lbDataIni.value = Data Início
|
|||
formaPagamentoAgenciaController.lbDataFin.value = Data Fim
|
||||
formaPagamentoAgenciaController.lbEmpresa.value = Empresa
|
||||
|
||||
# Relatório Financeiro por Grupo de Linhas
|
||||
financeiroGrupoLinhasController.mniRelatorioFinanceiro.label = Financeiro por Grupo de Linhas
|
||||
financeiroGrupoLinhasController.window.title = Financeiro por Grupo de Linhas
|
||||
financeiroGrupoLinhasController.lbAgencia.value = Agência
|
||||
financeiroGrupoLinhasController.lbDataIni.value = Data Início
|
||||
financeiroGrupoLinhasController.lbDataFin.value = Data Fim
|
||||
financeiroGrupoLinhasController.lbEmpresa.value = Empresa
|
||||
financeiroGrupoLinhasController.label.somenteCancelados = Somente Cancelados
|
||||
|
||||
# Muestra a Pesquisa Tipo Classe
|
||||
busquedaClaseServicioController.window.title = Tipo de Classe
|
||||
busquedaClaseServicioController.btnRefresh.tooltiptext = Atualizar
|
||||
|
|
Loading…
Reference in New Issue