wilian 2017-08-14 18:06:01 +00:00
parent 66baeaae39
commit 80e9776a70
6 changed files with 228 additions and 236 deletions

View File

@ -2,19 +2,21 @@ package com.rjconsultores.ventaboletos.relatorios.impl;
import java.sql.Connection;
import java.sql.ResultSet;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import net.sf.jasperreports.engine.data.JRBeanCollectionDataSource;
import org.apache.commons.lang.StringUtils;
import com.rjconsultores.ventaboletos.relatorios.utilitarios.DataSource;
import com.rjconsultores.ventaboletos.relatorios.utilitarios.IndOrdenacion;
import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio;
import com.rjconsultores.ventaboletos.relatorios.utilitarios.RelatorioOCDBean;
import com.rjconsultores.ventaboletos.utilerias.OcdUtil;
import com.rjconsultores.ventaboletos.web.utilerias.NamedParameterStatement;
import net.sf.jasperreports.engine.data.JRBeanCollectionDataSource;
public class RelatorioOCDNaoResgatadaEmpresa extends Relatorio {
private List<RelatorioOCDBean> lsDadosRelatorio;
@ -30,25 +32,34 @@ public class RelatorioOCDNaoResgatadaEmpresa extends Relatorio {
Map<String, Object> parametros = this.relatorio.getParametros();
String fecInicio = parametros.get("fecInicio").toString() + " 00:00:00";
String fecFinal = parametros.get("fecFinal").toString() + " 23:59:59";
String numOperacao = parametros.get("numOperacao").toString();
String fecInicio = parametros.get("fecInicio").toString() + " 00:00";
String fecFinal = parametros.get("fecFinal").toString() + " 23:59";
String localizador = parametros.get("numOperacao").toString();
String numoperacion = null;
Long ocdId = null;
if(OcdUtil.validarLocalizadorOcd(localizador)) {
numoperacion = OcdUtil.getNumOcdByLocalizadorOcd(localizador);
ocdId = OcdUtil.getOcdIdByLocalizadorOcd(localizador);
}
Integer empresaId = parametros.get("empresa") != null ? Integer.parseInt(parametros.get("empresa").toString()) : null;
boolean statusPendente = (Boolean) parametros.get("statusPendente");
boolean statusPago = (Boolean) parametros.get("statusPago");
IndOrdenacion ordenacion = (IndOrdenacion) parametros.get("ordenacion");
String sql = getSql(fecInicio, fecFinal, empresaId, statusPendente, statusPago ,ordenacion, numOperacao);
String sql = getSql(fecInicio, fecFinal, empresaId, statusPendente, statusPago ,ordenacion, numoperacion, ocdId);
NamedParameterStatement stmt = new NamedParameterStatement(conexao, sql);
ResultSet rset = null;
SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy hh:mm:ss");
stmt.setTimestamp("fecInicio", new java.sql.Timestamp(sdf.parse(fecInicio).getTime()));
stmt.setTimestamp("fecFinal", new java.sql.Timestamp(sdf.parse(fecFinal).getTime()));
stmt.setString("fecInicio", fecInicio);
stmt.setString("fecFinal", fecFinal);
if (empresaId != null) {
stmt.setInt("empresaId", empresaId);
}
if(ocdId != null){
stmt.setLong("ocdId", ocdId);
}
rset = stmt.executeQuery();
@ -73,7 +84,6 @@ public class RelatorioOCDNaoResgatadaEmpresa extends Relatorio {
ocdBean.setEmpresa(rset.getString("nombempresa"));
ocdBean.setNombpuntoventa(rset.getString("nombpuntoventa") != null ? rset.getString("nombpuntoventa") : "");
ocdBean.setNombpuntoventapago(rset.getString("nombpuntoventapago") != null ? rset.getString("nombpuntoventapago") : "");
ocdBean.setNombusuario(rset.getString("nombusuario") != null ? rset.getString("nombusuario") : "");
ocdBean.setNombusuarioinc(rset.getString("nombusuarioinc") != null ? rset.getString("nombusuarioinc") : "");
ocdBean.setNombusuariopago(rset.getString("nombusuariopago") != null ? rset.getString("nombusuariopago") : "");
ocdBean.setNumoperacion(rset.getString("numoperacion"));
@ -83,6 +93,8 @@ public class RelatorioOCDNaoResgatadaEmpresa extends Relatorio {
ocdBean.setOrigem(rset.getString("origem"));
ocdBean.setDestino(rset.getString("destino"));
ocdBean.setFeccorrida(rset.getTimestamp("feccorrida"));
ocdBean.setOcdId(rset.getLong("ocd_id"));
ocdBean.setNumoperacion(OcdUtil.generaLocalizadorOCD(ocdBean.getNumoperacion(), ocdBean.getOcdId()));
lsDadosRelatorio.add(ocdBean);
}
@ -105,20 +117,19 @@ public class RelatorioOCDNaoResgatadaEmpresa extends Relatorio {
}
private String getSql(String fecInicio, String fecFinal, Integer empresaId,
boolean statusPendente, boolean statusPago, IndOrdenacion ordenacion, String numOperacao) {
boolean statusPendente, boolean statusPago, IndOrdenacion ordenacion, String numoperacion, Long ocdId) {
StringBuffer sql = new StringBuffer();
sql.append("select nombempresa, o.*, ui.nombusuario nombusuarioinc, ");
sql.append("up.nombusuario nombusuariopago, u.nombusuario nombusuario, ");
sql.append("up.nombusuario nombusuariopago, ");
sql.append("p.nombpuntoventa nombpuntoventa, pp.nombpuntoventa nombpuntoventapago, ");
sql.append(" f.cvepago formaPago, b.NUMASIENTO asiento, pd.CIUDAD_ID destino, po.CIUDAD_ID origem, c.FECHORSALIDA feccorrida ");
sql.append(" f.cvepago formaPago, b.NUMASIENTO asiento, pd.cveparada destino, po.cveparada origem, c.FECHORSALIDA feccorrida ");
sql.append("from ocd o ");
sql.append("join boleto b on b.boleto_id = o.boleto_id ");
sql.append("join boleto_formapago bfp on b.boleto_id = bfp.boleto_id ");
sql.append("join forma_pago f on f.formapago_id = bfp.formapago_id ");
sql.append("join marca m on m.marca_id = b.marca_id ");
sql.append("join empresa e on m.empresa_id = e.empresa_id ");
sql.append("join usuario u on u.usuario_id = o.usuario_id ");
sql.append("join corrida c on c.CORRIDA_ID = b.CORRIDA_ID and c.FECCORRIDA = b.FECCORRIDA ");
sql.append("join usuario ui on ui.usuario_id = o.usuarioinc_id ");
sql.append("join parada po on b.origen_id = po.parada_id ");
@ -126,7 +137,7 @@ public class RelatorioOCDNaoResgatadaEmpresa extends Relatorio {
sql.append("left join usuario up on up.usuario_id = o.usuariopago_id ");
sql.append("join punto_venta p on p.puntoventa_id = o.puntoventa_id ");
sql.append("left join punto_venta pp on pp.puntoventa_id = o.puntoventapago_id ");
sql.append("where o.fecpagar between :fecInicio and :fecFinal ");
sql.append("where o.fecpagar between to_date(:fecInicio,'dd/mm/yyyy hh24:mi') and to_date(:fecFinal,'dd/mm/yyyy hh24:mi') ");
sql.append(" and o.activo = 1 ");
sql.append(statusPendente ? " and o.fecpago is null " : "");
sql.append(statusPendente ? " and o.indpago = 0 " : "");
@ -136,8 +147,11 @@ public class RelatorioOCDNaoResgatadaEmpresa extends Relatorio {
if (empresaId != null) {
sql.append(" and e.empresa_id = :empresaId ");
}
if(!numOperacao.equals("")){
sql.append(" and o.numoperacion like '%"+numOperacao+"%' ");
if(StringUtils.isNotBlank(numoperacion)){
sql.append(" and o.numoperacion like '%"+numoperacion+"%' ");
}
if(ocdId != null){
sql.append(" and o.ocd_id = :ocdId ");
}
sql.append(" order by ");
switch (ordenacion) {

View File

@ -16,14 +16,14 @@ header.filtro.grupo=Grupo de l
detail.boletoId=Boleto
detail.nombpuntoventa=Punto Venta
detail.numoperacion=Num. Operacion
detail.fecpagar=Fecha Pago
detail.fecpago=Fecha Pago
detail.fecpagar=Fecha P/ Pago
detail.valorPagar=Valor Pagar
detail.penalizacion=Penalizacion
detail.nombusuarioinc=Usuário Inc.
detail.fecinc=Fecha Inc.
detail.nombempresa=Empresa
detail.nombusuario=Usuário
detail.nombusuariopago=Usuário Pagar
detail.nombpuntoventapago=Punto Venta Pagar

View File

@ -15,17 +15,17 @@ header.filtro.grupo=Grupo de Linhas\:
detail.boletoId=Boleto
detail.nombpuntoventa=Ponto de Venda
detail.numoperacion=Num. Operação
detail.fecpagar=Data Pag.
detail.numoperacion=Localizador
detail.fecpago=Data Pagamento
detail.fecpagar=Data P/ Pagamento
detail.valorPagar=Vr. Pagar
detail.penalizacion=Penalização
detail.nombusuarioinc=Usuário Inc.
detail.nombusuarioinc=Usuário Geração
detail.fecinc=Data Inc.
detail.fecinc=Data Geração
detail.nombempresa=Empresa
detail.nombusuario=Usuário
detail.nombusuariopago=Usuário Pag.
detail.nombpuntoventapago=Ponto Venda Pag.
detail.nombusuariopago=Usuário Pagamento
detail.nombpuntoventapago=Agência Pagamento
detail.formaPago1=FP1
detail.formaPago2=FP2
@ -33,8 +33,6 @@ detail.formaPago3=FP3
detail.origem=Origem
detail.destino=Destino
detail.feccorrida=Data Viagem
detail.asiento=Asiento
linhas=Linhas
detail.asiento=Assento
linhas=Linhas

View File

@ -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="RelatorioOCDNaoResgatadaEmpresa" pageWidth="1152" pageHeight="595" orientation="Landscape" whenNoDataType="NoDataSection" columnWidth="1112" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" resourceBundle="RelatorioOCDNaoResgatadaEmpresa" whenResourceMissingType="Empty" uuid="94834362-0ecc-46da-b0a2-5cdee355da3e">
<property name="ireport.zoom" value="4.0"/>
<property name="ireport.zoom" value="1.5"/>
<property name="ireport.x" value="0"/>
<property name="ireport.y" value="489"/>
<property name="ireport.y" value="0"/>
<parameter name="fecInicio" class="java.lang.String">
<defaultValueExpression><![CDATA[]]></defaultValueExpression>
</parameter>
@ -30,160 +30,157 @@
<field name="destino" class="java.lang.String"/>
<field name="feccorrida" class="java.sql.Timestamp"/>
<field name="asiento" class="java.lang.String"/>
<field name="fecpago" class="java.util.Date"/>
<group name="empresa">
<groupExpression><![CDATA[$F{empresa}]]></groupExpression>
<groupHeader>
<band height="70">
<textField>
<reportElement x="0" y="0" width="231" height="20" uuid="09306494-79f1-44dd-9eed-c39684384bbf"/>
<textElement>
<band height="49" splitType="Stretch">
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement x="0" y="3" width="590" height="20" uuid="09306494-79f1-44dd-9eed-c39684384bbf"/>
<textElement verticalAlignment="Middle">
<font size="10" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$F{empresa}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="465" y="51" width="61" height="17" uuid="e8355048-a037-4837-866b-e6cf7a3e90ed"/>
<textElement textAlignment="Left" markup="none">
<font size="8"/>
</textElement>
<textFieldExpression><![CDATA[$R{detail.numoperacion}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="618" y="51" width="47" height="17" uuid="edd89ef1-92d6-4b5f-b249-851532fad9df"/>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement positionType="Float" stretchType="RelativeToTallestObject" x="487" y="28" width="65" height="17" uuid="edd89ef1-92d6-4b5f-b249-851532fad9df"/>
<textElement textAlignment="Right" markup="none">
<font size="8"/>
<font size="6"/>
</textElement>
<textFieldExpression><![CDATA[$R{detail.penalizacion}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="725" y="51" width="82" height="17" uuid="73c02335-4bbe-44ba-9c73-1201ed6b3967"/>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement positionType="Float" stretchType="RelativeToTallestObject" x="337" y="28" width="100" height="17" uuid="d88253ec-b6d4-4e99-b677-3c1a0b273a81"/>
<textElement textAlignment="Left" markup="none">
<font size="8"/>
</textElement>
<textFieldExpression><![CDATA[$R{detail.nombusuarioinc}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="385" y="51" width="80" height="17" uuid="d88253ec-b6d4-4e99-b677-3c1a0b273a81"/>
<textElement textAlignment="Left" markup="none">
<font size="8"/>
<font size="6"/>
</textElement>
<textFieldExpression><![CDATA[$R{detail.nombpuntoventa}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="578" y="51" width="40" height="17" uuid="569add1e-cb73-4278-b800-fa44631527f6"/>
<textElement textAlignment="Right" markup="none">
<font size="8"/>
</textElement>
<textFieldExpression><![CDATA[$R{detail.valorPagar}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="526" y="51" width="52" height="17" uuid="31387dbf-1cdc-4c27-992f-2e439abea576"/>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement positionType="Float" stretchType="RelativeToTallestObject" x="1016" y="28" width="95" height="17" uuid="ee67d732-f227-43e9-ae81-bf7e0148bd10"/>
<textElement textAlignment="Left" markup="none">
<font size="8"/>
</textElement>
<textFieldExpression><![CDATA[$R{detail.fecpagar}]]></textFieldExpression>
</textField>
<line>
<reportElement x="0" y="20" width="1112" height="1" uuid="76104c33-e003-4a38-98bb-9db4d0f8636b"/>
</line>
<line>
<reportElement x="0" y="68" width="1112" height="1" uuid="97639de4-d619-4f05-9b3e-e615b643b778"/>
</line>
<textField>
<reportElement x="0" y="51" width="76" height="18" uuid="12ef050d-3938-4dd6-8e82-bfeca7adaa2a"/>
<textElement textAlignment="Left" markup="none">
<font size="8"/>
</textElement>
<textFieldExpression><![CDATA[$R{detail.boletoId}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="1025" y="51" width="86" height="17" uuid="ee67d732-f227-43e9-ae81-bf7e0148bd10"/>
<textElement textAlignment="Left" markup="none">
<font size="8"/>
<font size="6"/>
</textElement>
<textFieldExpression><![CDATA[$R{detail.nombpuntoventapago}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="860" y="51" width="80" height="17" uuid="958109bc-c1cc-4e09-bafd-a6213b6850e9"/>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement positionType="Float" stretchType="RelativeToTallestObject" x="618" y="28" width="73" height="17" uuid="a6d90199-4c64-42e7-abd2-7538664fb203"/>
<textElement textAlignment="Left" markup="none">
<font size="8"/>
</textElement>
<textFieldExpression><![CDATA[$R{detail.nombusuario}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="807" y="51" width="53" height="17" uuid="a6d90199-4c64-42e7-abd2-7538664fb203"/>
<textElement textAlignment="Left" markup="none">
<font size="8"/>
<font size="6"/>
</textElement>
<textFieldExpression><![CDATA[$R{detail.fecinc}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="940" y="51" width="85" height="17" uuid="632ff254-23c5-49d5-9745-a71991042c8c"/>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement positionType="Float" stretchType="RelativeToTallestObject" x="922" y="28" width="90" height="17" uuid="632ff254-23c5-49d5-9745-a71991042c8c"/>
<textElement textAlignment="Left" markup="none">
<font size="8"/>
<font size="6"/>
</textElement>
<textFieldExpression><![CDATA[$R{detail.nombusuariopago}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="665" y="51" width="20" height="17" uuid="9bd12984-c4fa-4782-a7a5-d3c55ef70bdd"/>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement positionType="Float" stretchType="RelativeToTallestObject" x="553" y="28" width="20" height="17" uuid="9bd12984-c4fa-4782-a7a5-d3c55ef70bdd"/>
<textElement textAlignment="Center">
<font size="8"/>
<font size="6"/>
</textElement>
<textFieldExpression><![CDATA[$R{detail.formaPago1}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="685" y="51" width="20" height="17" uuid="6f1b674f-10c4-4584-83f2-0c69baf44a7a"/>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement positionType="Float" stretchType="RelativeToTallestObject" x="575" y="28" width="20" height="17" uuid="6f1b674f-10c4-4584-83f2-0c69baf44a7a"/>
<textElement textAlignment="Center">
<font size="8"/>
<font size="6"/>
</textElement>
<textFieldExpression><![CDATA[$R{detail.formaPago2}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="705" y="51" width="20" height="17" uuid="68832040-b362-4fc8-b195-81a388cfb1d3"/>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement positionType="Float" stretchType="RelativeToTallestObject" x="597" y="28" width="20" height="17" uuid="68832040-b362-4fc8-b195-81a388cfb1d3"/>
<textElement textAlignment="Center">
<font size="8"/>
<font size="6"/>
</textElement>
<textFieldExpression><![CDATA[$R{detail.formaPago3}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="308" y="51" width="77" height="18" uuid="67815fb4-e060-4cb0-b1a0-be93ce07a99c"/>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement positionType="Float" stretchType="RelativeToTallestObject" x="287" y="28" width="50" height="17" uuid="67815fb4-e060-4cb0-b1a0-be93ce07a99c"/>
<textElement textAlignment="Left" markup="none">
<font size="8"/>
<font size="6"/>
</textElement>
<textFieldExpression><![CDATA[$R{detail.destino}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="217" y="51" width="91" height="17" uuid="22d447b0-6ca8-4b5b-832e-0ec939e4109e"/>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement positionType="Float" stretchType="RelativeToTallestObject" x="237" y="28" width="50" height="17" uuid="22d447b0-6ca8-4b5b-832e-0ec939e4109e"/>
<textElement textAlignment="Left" markup="none">
<font size="8"/>
<font size="6"/>
</textElement>
<textFieldExpression><![CDATA[$R{detail.origem}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="76" y="51" width="72" height="17" uuid="8c7fbc35-dbfc-4658-955c-8ac560a022d0"/>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement positionType="Float" stretchType="RelativeToTallestObject" x="117" y="28" width="80" height="17" uuid="8c7fbc35-dbfc-4658-955c-8ac560a022d0"/>
<textElement textAlignment="Left" markup="none">
<font size="8"/>
<font size="6"/>
</textElement>
<textFieldExpression><![CDATA[$R{detail.feccorrida}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="148" y="51" width="69" height="17" uuid="0c52c1e9-31d1-4ec6-8eb9-48eab3fc38b5"/>
<textElement textAlignment="Left" markup="none">
<font size="8"/>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement positionType="Float" stretchType="RelativeToTallestObject" x="197" y="28" width="40" height="17" uuid="0c52c1e9-31d1-4ec6-8eb9-48eab3fc38b5"/>
<textElement textAlignment="Center" markup="none">
<font size="6"/>
</textElement>
<textFieldExpression><![CDATA[$R{detail.asiento}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement positionType="Float" stretchType="RelativeToTallestObject" x="437" y="28" width="50" height="17" uuid="569add1e-cb73-4278-b800-fa44631527f6"/>
<textElement textAlignment="Right" markup="none">
<font size="6"/>
</textElement>
<textFieldExpression><![CDATA[$R{detail.valorPagar}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement positionType="Float" stretchType="RelativeToTallestObject" x="781" y="28" width="80" height="17" uuid="31387dbf-1cdc-4c27-992f-2e439abea576"/>
<textElement textAlignment="Left" markup="none">
<font size="6"/>
</textElement>
<textFieldExpression><![CDATA[$R{detail.fecpagar}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement positionType="Float" stretchType="RelativeToTallestObject" x="691" y="28" width="90" height="17" uuid="73c02335-4bbe-44ba-9c73-1201ed6b3967"/>
<textElement textAlignment="Left" markup="none">
<font size="6"/>
</textElement>
<textFieldExpression><![CDATA[$R{detail.nombusuarioinc}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement positionType="Float" stretchType="RelativeToTallestObject" x="861" y="28" width="61" height="17" uuid="e799ef17-4e56-4c7d-b8d2-1143db4073c5"/>
<textElement textAlignment="Left" markup="none">
<font size="6"/>
</textElement>
<textFieldExpression><![CDATA[$R{detail.fecpago}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement positionType="Float" stretchType="RelativeToTallestObject" x="0" y="28" width="117" height="17" uuid="e8355048-a037-4837-866b-e6cf7a3e90ed"/>
<textElement textAlignment="Left" markup="none">
<font size="6"/>
</textElement>
<textFieldExpression><![CDATA[$R{detail.numoperacion}]]></textFieldExpression>
</textField>
<line>
<reportElement x="0" y="24" width="1112" height="1" uuid="effe0475-3353-4fa6-b092-117faf5720f0"/>
</line>
<line>
<reportElement positionType="Float" x="0" y="48" width="1112" height="1" uuid="4fc49c16-4e8e-426f-88d7-899f985beab2"/>
</line>
<line>
<reportElement x="0" y="1" width="1112" height="1" uuid="c274c839-42a9-4922-aa19-515055e260e5"/>
</line>
</band>
</groupHeader>
<groupFooter>
<band height="48"/>
<band/>
</groupFooter>
</group>
<background>
<band splitType="Stretch"/>
</background>
<pageHeader>
<band height="60" splitType="Stretch">
<band height="41" splitType="Stretch">
<textField>
<reportElement x="0" y="20" width="49" height="20" uuid="e5d4714c-07cc-42ff-a7a8-76d6f6d3e716"/>
<textFieldExpression><![CDATA[$R{header.periodo}]]></textFieldExpression>
@ -192,21 +189,16 @@
<reportElement x="958" y="0" width="56" height="20" uuid="66b2d0f6-2bf1-4bc7-9ec0-a34444e04d60"/>
<textFieldExpression><![CDATA[$R{header.data.hora}]]></textFieldExpression>
</textField>
<textField evaluationTime="Report">
<reportElement x="1090" y="20" width="22" height="20" uuid="8ca68351-fc00-4f19-b94f-f2fd1f41964f"/>
<textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[" " + $V{PAGE_NUMBER}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="1024" y="20" width="42" height="20" uuid="be1692e9-f130-4d08-9173-6ca3e4699030"/>
<textFieldExpression><![CDATA[$R{header.pagina}]]></textFieldExpression>
<reportElement x="1024" y="20" width="88" height="20" uuid="be1692e9-f130-4d08-9173-6ca3e4699030"/>
<textFieldExpression><![CDATA[$R{header.pagina}+ " "+$V{PAGE_NUMBER}+" de "+$V{PAGE_NUMBER}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="49" y="20" width="182" height="20" uuid="4914d9e7-6ce8-4512-b1f8-13f3b572ac50"/>
<textFieldExpression><![CDATA[$P{fecInicio} + " à " + $P{fecFinal}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="0" y="0" width="231" height="20" uuid="652312bd-292a-424d-a234-5f157e3699c6"/>
<reportElement x="0" y="0" width="512" height="20" uuid="652312bd-292a-424d-a234-5f157e3699c6"/>
<textFieldExpression><![CDATA[$P{TITULO}]]></textFieldExpression>
</textField>
<textField pattern="dd/MM/yyyy HH:mm">
@ -214,143 +206,131 @@
<textElement textAlignment="Left"/>
<textFieldExpression><![CDATA[new java.util.Date()]]></textFieldExpression>
</textField>
<textField>
<reportElement x="1066" y="20" width="24" height="20" uuid="7548d623-fb6c-48d4-b8b7-504f5437a79a"/>
<textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$V{PAGE_NUMBER}+" de"]]></textFieldExpression>
</textField>
</band>
</pageHeader>
<columnHeader>
<band splitType="Stretch"/>
</columnHeader>
<detail>
<band height="26" splitType="Stretch">
<textField>
<reportElement x="148" y="1" width="69" height="16" uuid="ff5e5392-4eab-4156-b84d-fdfac82f4894"/>
<textElement>
<font size="8"/>
<band height="18" splitType="Stretch">
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="197" y="1" width="40" height="16" uuid="ff5e5392-4eab-4156-b84d-fdfac82f4894"/>
<textElement textAlignment="Center">
<font size="6"/>
</textElement>
<textFieldExpression><![CDATA[$F{asiento}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="217" y="1" width="91" height="16" uuid="b8ce6eb6-8b05-4936-9980-6a5e83806e36"/>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="237" y="1" width="50" height="16" uuid="b8ce6eb6-8b05-4936-9980-6a5e83806e36"/>
<textElement>
<font size="8"/>
<font size="6"/>
</textElement>
<textFieldExpression><![CDATA[$F{origem}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="0" y="1" width="76" height="16" uuid="0581d767-ed09-4cfd-aad4-47f62bec1404"/>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="922" y="0" width="90" height="17" uuid="f008db4d-9791-4c96-aa15-1c9f0e73f11a"/>
<textElement textAlignment="Left" markup="none">
<font size="8"/>
</textElement>
<textFieldExpression><![CDATA[$F{boletoId}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true">
<reportElement x="940" y="0" width="85" height="17" uuid="f008db4d-9791-4c96-aa15-1c9f0e73f11a"/>
<textElement textAlignment="Left" markup="none">
<font size="8"/>
<font size="6"/>
</textElement>
<textFieldExpression><![CDATA[$F{nombusuariopago}]]></textFieldExpression>
</textField>
<textField pattern="###0.00">
<reportElement x="578" y="0" width="40" height="17" uuid="c328f3f3-1a66-4982-93b4-b0e362cb61b5"/>
<textElement textAlignment="Right" markup="none">
<font size="8"/>
</textElement>
<textFieldExpression><![CDATA[$F{valorPagar}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true">
<reportElement x="725" y="0" width="82" height="17" uuid="2f865730-6cab-430a-8964-d294773464f6"/>
<textField isStretchWithOverflow="true" pattern="dd/MM/yyyy" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="618" y="0" width="73" height="17" uuid="2002ee08-18dd-478b-939a-05cd1174b364"/>
<textElement textAlignment="Left" markup="none">
<font size="8"/>
</textElement>
<textFieldExpression><![CDATA[$F{nombusuarioinc}]]></textFieldExpression>
</textField>
<textField pattern="dd/MM/yyyy">
<reportElement x="807" y="0" width="53" height="17" uuid="2002ee08-18dd-478b-939a-05cd1174b364"/>
<textElement textAlignment="Left" markup="none">
<font size="8"/>
<font size="6"/>
</textElement>
<textFieldExpression><![CDATA[$F{fecinc}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true">
<reportElement x="1025" y="0" width="86" height="17" uuid="35602dab-1999-4ae5-a7d1-e38665a9f994"/>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="1016" y="0" width="95" height="17" uuid="35602dab-1999-4ae5-a7d1-e38665a9f994"/>
<textElement textAlignment="Left" markup="none">
<font size="8"/>
<font size="6"/>
</textElement>
<textFieldExpression><![CDATA[$F{nombpuntoventapago}]]></textFieldExpression>
</textField>
<textField pattern="dd/MM/yyyy">
<reportElement x="526" y="0" width="52" height="17" uuid="89eb3ac5-6fb8-4554-acaa-a9fd499cde57"/>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="337" y="0" width="100" height="17" uuid="a1875870-b2d4-403d-abd0-2a4bc9a68e63"/>
<textElement textAlignment="Left" markup="none">
<font size="8"/>
<font size="6"/>
</textElement>
<textFieldExpression><![CDATA[$F{nombpuntoventa}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" pattern="###0.00" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="487" y="0" width="65" height="17" uuid="d4894786-20fc-45c7-8fe6-a336a8736d24"/>
<textElement textAlignment="Right" markup="none">
<font size="6"/>
</textElement>
<textFieldExpression><![CDATA[$F{penalizacion}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="553" y="0" width="20" height="17" uuid="623040d8-73ae-49d2-86bb-bd57f5e6effd"/>
<textElement textAlignment="Center">
<font size="6"/>
</textElement>
<textFieldExpression><![CDATA[$F{formaPago1}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="575" y="0" width="20" height="17" uuid="1ce5b6a0-d459-4572-a35c-55ed872e1a11"/>
<textElement textAlignment="Center">
<font size="6"/>
</textElement>
<textFieldExpression><![CDATA[$F{formaPago2}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="597" y="0" width="20" height="17" uuid="e8e164e4-c82a-4671-bd23-4215b37b0469"/>
<textElement textAlignment="Center">
<font size="6"/>
</textElement>
<textFieldExpression><![CDATA[$F{formaPago3}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="287" y="1" width="50" height="16" uuid="0a25139e-ca2e-404a-aad0-fece352398b5"/>
<textElement>
<font size="6"/>
</textElement>
<textFieldExpression><![CDATA[$F{destino}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="117" y="1" width="80" height="16" uuid="0a3ebc26-ba0f-4b3a-9d61-88db7600e339"/>
<textElement>
<font size="6"/>
</textElement>
<textFieldExpression><![CDATA[$F{feccorrida}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="0" y="1" width="117" height="16" uuid="3f2de0d3-e1e1-4c38-abe4-539529605c34"/>
<textElement textAlignment="Left" markup="none">
<font size="6"/>
</textElement>
<textFieldExpression><![CDATA[$F{numoperacion}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" pattern="###0.00" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="437" y="0" width="50" height="17" uuid="c328f3f3-1a66-4982-93b4-b0e362cb61b5"/>
<textElement textAlignment="Right" markup="none">
<font size="6"/>
</textElement>
<textFieldExpression><![CDATA[$F{valorPagar}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" pattern="dd/MM/yyyy" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="781" y="0" width="80" height="17" uuid="89eb3ac5-6fb8-4554-acaa-a9fd499cde57"/>
<textElement textAlignment="Left" markup="none">
<font size="6"/>
</textElement>
<textFieldExpression><![CDATA[$F{fecpagar}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement x="385" y="0" width="80" height="17" uuid="a1875870-b2d4-403d-abd0-2a4bc9a68e63"/>
<reportElement stretchType="RelativeToTallestObject" x="691" y="0" width="90" height="17" uuid="2f865730-6cab-430a-8964-d294773464f6"/>
<textElement textAlignment="Left" markup="none">
<font size="8"/>
<font size="6"/>
</textElement>
<textFieldExpression><![CDATA[$F{nombpuntoventa}]]></textFieldExpression>
<textFieldExpression><![CDATA[$F{nombusuarioinc}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true">
<reportElement x="860" y="0" width="80" height="17" uuid="2cb4de67-a11c-45d0-a0a8-24f1e9a605c1"/>
<textField isStretchWithOverflow="true" pattern="dd/MM/yyyy" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="861" y="0" width="61" height="17" uuid="d7502c86-2676-4410-ba9a-55ebadb6b4df"/>
<textElement textAlignment="Left" markup="none">
<font size="8"/>
<font size="6"/>
</textElement>
<textFieldExpression><![CDATA[$F{nombusuario}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="618" y="0" width="47" height="17" uuid="d4894786-20fc-45c7-8fe6-a336a8736d24"/>
<textElement textAlignment="Right" markup="none">
<font size="8"/>
</textElement>
<textFieldExpression><![CDATA[$F{penalizacion}]]></textFieldExpression>
</textField>
<textField isBlankWhenNull="true">
<reportElement x="665" y="0" width="20" height="17" uuid="623040d8-73ae-49d2-86bb-bd57f5e6effd"/>
<textElement textAlignment="Center">
<font size="8"/>
</textElement>
<textFieldExpression><![CDATA[$F{formaPago1}]]></textFieldExpression>
</textField>
<textField isBlankWhenNull="true">
<reportElement x="685" y="0" width="20" height="17" uuid="1ce5b6a0-d459-4572-a35c-55ed872e1a11"/>
<textElement textAlignment="Center">
<font size="8"/>
</textElement>
<textFieldExpression><![CDATA[$F{formaPago2}]]></textFieldExpression>
</textField>
<textField isBlankWhenNull="true">
<reportElement x="705" y="0" width="20" height="17" uuid="e8e164e4-c82a-4671-bd23-4215b37b0469"/>
<textElement textAlignment="Center">
<font size="8"/>
</textElement>
<textFieldExpression><![CDATA[$F{formaPago3}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="465" y="0" width="61" height="17" uuid="3f2de0d3-e1e1-4c38-abe4-539529605c34"/>
<textElement textAlignment="Left" markup="none">
<font size="8"/>
</textElement>
<textFieldExpression><![CDATA[$F{numoperacion}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="308" y="1" width="77" height="16" uuid="0a25139e-ca2e-404a-aad0-fece352398b5"/>
<textElement>
<font size="8"/>
</textElement>
<textFieldExpression><![CDATA[$F{destino}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="76" y="1" width="72" height="16" uuid="0a3ebc26-ba0f-4b3a-9d61-88db7600e339"/>
<textElement>
<font size="8"/>
</textElement>
<textFieldExpression><![CDATA[$F{feccorrida}]]></textFieldExpression>
<textFieldExpression><![CDATA[$F{fecpago}]]></textFieldExpression>
</textField>
</band>
</detail>

View File

@ -476,12 +476,12 @@ relatorioOCDController.indStatusOCD.value=Status OCD
relatorioOCDController.radPendente.value=Pendentes
relatorioOCDController.radPagos.value=Pagos
relatorioOCDController.radTodos.value=Todos
relatorioOCDController.lbNumOperacao.value=Num. Operação
relatorioOCDController.lbNumOperacao.value=Localizador
relatorioOCDController.indOrdenacao.value=Ordenação
relatorioOCDController.radBoleto.value=Bilhete
relatorioOCDController.radNumOperacao.value=Num.Operação
relatorioOCDController.radFecInclusao.value=Data Inclusão
relatorioOCDController.radNumOperacao.value=Localizador
relatorioOCDController.radFecInclusao.value=Data Geração
relatorioOCDController.radFecPagamento.value=Data Pagamento
#Relatorio Linhas Horario