bug#12840

dev:valdevir
qua:

git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@88486 d1611594-4594-4d17-8e1d-87c2c4800839
master
wilian 2019-01-03 17:40:18 +00:00
parent 5d7a35f028
commit 5a2e5cc7ac
22 changed files with 906 additions and 297 deletions

View File

@ -7,10 +7,14 @@ import java.sql.Timestamp;
import java.util.Date; import java.util.Date;
import java.util.Map; import java.util.Map;
import org.apache.commons.lang.StringUtils;
import com.rjconsultores.ventaboletos.relatorios.utilitarios.ArrayCustomDataSourceRelatorio; import com.rjconsultores.ventaboletos.relatorios.utilitarios.ArrayCustomDataSourceRelatorio;
import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio; import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio;
import com.rjconsultores.ventaboletos.utilerias.DateUtil; import com.rjconsultores.ventaboletos.utilerias.DateUtil;
import com.rjconsultores.ventaboletos.utilerias.MoneyHelper; import com.rjconsultores.ventaboletos.web.gui.controladores.relatorios.integracaoantifraude.EStatusKonduto;
import com.rjconsultores.ventaboletos.web.gui.controladores.relatorios.integracaoantifraude.EStatusKondutoEnvio;
import com.rjconsultores.ventaboletos.web.gui.controladores.relatorios.integracaoantifraude.EStatusKondutoTotalBus;
import com.rjconsultores.ventaboletos.web.utilerias.NamedParameterStatement; import com.rjconsultores.ventaboletos.web.utilerias.NamedParameterStatement;
public class RelatorioIntegracaoAntiFraude extends Relatorio { public class RelatorioIntegracaoAntiFraude extends Relatorio {
@ -38,30 +42,44 @@ public class RelatorioIntegracaoAntiFraude extends Relatorio {
instrucaoSql.append("WHEN CLI.TIPOIDENTIFICADOS_ID = 2 THEN "); instrucaoSql.append("WHEN CLI.TIPOIDENTIFICADOS_ID = 2 THEN ");
instrucaoSql.append(" NUMIDENTIFICADOS "); instrucaoSql.append(" NUMIDENTIFICADOS ");
instrucaoSql.append("END, 11, '0') CPF_COMPRADOR, CLI.NOMBCLIENTE NOME_COMPRADOR, "); instrucaoSql.append("END, 11, '0') CPF_COMPRADOR, CLI.NOMBCLIENTE NOME_COMPRADOR, ");
instrucaoSql.append("TO_CHAR(B.FECHORVENTA, 'DD/MM/YYYY') DATA_COMPRA, "); instrucaoSql.append("TO_CHAR(COALESCE(B.FECHORVENTA_H,B.FECHORVENTA), 'DD/MM/YYYY HH24:MI') DATA_HORA_COMPRA, ");
instrucaoSql.append("TO_CHAR(B.FECHORVENTA, 'HH24:MI') HORA_COMPRA, "); instrucaoSql.append("TK.NSU, TK.NUMAUTORIZACION AUTORIZACAO, ");
instrucaoSql.append("CT.NSU, CT.NUMAUTORIZACION AUTORIZACAO, ");
instrucaoSql.append("COALESCE(B.PRECIOPAGADO,0) + COALESCE(B.IMPORTETAXAEMBARQUE,0) + "); instrucaoSql.append("COALESCE(B.PRECIOPAGADO,0) + COALESCE(B.IMPORTETAXAEMBARQUE,0) + ");
instrucaoSql.append("COALESCE(B.IMPORTESEGURO,0) + COALESCE(B.IMPORTEPEDAGIO,0) + COALESCE(B.IMPORTEOUTROS,0) AS VALOR_TOTAL, "); instrucaoSql.append("COALESCE(B.IMPORTESEGURO,0) + COALESCE(B.IMPORTEPEDAGIO,0) + COALESCE(B.IMPORTEOUTROS,0) AS VALOR_TOTAL, ");
instrucaoSql.append("B.CORRIDA_ID SERVICO, "); instrucaoSql.append("B.CORRIDA_ID SERVICO, ");
instrucaoSql.append("TO_CHAR(B.FECHORVIAJE, 'DD/MM/YYYY') DATA_VIAGEM, "); instrucaoSql.append("TO_CHAR(B.FECHORVIAJE, 'DD/MM/YYYY HH24:MI') DATA_HORA_VIAGEM, ");
instrucaoSql.append("TO_CHAR(B.FECHORVIAJE, 'HH24:MI') HORA_VIAGEM, ");
instrucaoSql.append("PO.DESCPARADA ORIGEM, PD.DESCPARADA DESTINO, "); instrucaoSql.append("PO.DESCPARADA ORIGEM, PD.DESCPARADA DESTINO, ");
instrucaoSql.append("B.NUMFOLIOSISTEMA BILHETE, "); instrucaoSql.append("B.NUMFOLIOSISTEMA BILHETE, ");
instrucaoSql.append("B.NUMASIENTO POLTRONA, "); instrucaoSql.append("B.NUMASIENTO POLTRONA, ");
instrucaoSql.append("B.NOMBPASAJERO PASSAGEIRO "); instrucaoSql.append("B.NOMBPASAJERO PASSAGEIRO, ");
instrucaoSql.append("TK.STATUSTRANSACAOKONDUTO STATUSTRANSACAOKONDUTO, ");
instrucaoSql.append("TK.STATUSTRANSACAO STATUSTRANSACAO, ");
instrucaoSql.append("TK.TENTATIVAENVIO TENTATIVAENVIO, ");
instrucaoSql.append("TK.STATUSENVIO STATUSENVIO ");
instrucaoSql.append("FROM BOLETO B "); instrucaoSql.append("FROM BOLETO B ");
instrucaoSql.append("INNER JOIN TRANSACAO_KONDUTO TK ON B.BOLETO_ID = TK.BOLETO_ID "); instrucaoSql.append("INNER JOIN TRANSACAO_KONDUTO TK ON B.BOLETO_ID = TK.BOLETO_ID ");
instrucaoSql.append("INNER JOIN MARCA M ON B.MARCA_ID = M.MARCA_ID "); instrucaoSql.append("INNER JOIN MARCA M ON B.MARCA_ID = M.MARCA_ID ");
instrucaoSql.append("LEFT JOIN CLIENTE CLI ON B.CLIENTECOMPRADOR_ID = CLI.CLIENTE_ID "); instrucaoSql.append("LEFT JOIN CLIENTE CLI ON B.CLIENTECOMPRADOR_ID = CLI.CLIENTE_ID ");
instrucaoSql.append("LEFT JOIN CAJA C ON B.BOLETO_ID = C.TRANSACAO_ID ");
instrucaoSql.append("LEFT JOIN CAJA_DET_PAGO CDP ON C.CAJA_ID = CDP.CAJA_ID ");
instrucaoSql.append("LEFT JOIN CAJA_TARJETA CT ON CDP.CAJADETPAGO_ID = CT.CAJADETPAGO_ID ");
instrucaoSql.append("LEFT JOIN PARADA PO ON B.ORIGEN_ID = PO.PARADA_ID "); instrucaoSql.append("LEFT JOIN PARADA PO ON B.ORIGEN_ID = PO.PARADA_ID ");
instrucaoSql.append("LEFT JOIN PARADA PD ON B.DESTINO_ID = PD.PARADA_ID "); instrucaoSql.append("LEFT JOIN PARADA PD ON B.DESTINO_ID = PD.PARADA_ID ");
instrucaoSql.append("WHERE B.FECHORVENTA BETWEEN :dtInicial AND :dtFinal "); instrucaoSql.append("WHERE B.FECHORVENTA BETWEEN :dtInicial AND :dtFinal ");
instrucaoSql.append("AND TK.STATUSTRANSACAO IN("+parametros.get("statusKondutoId").toString()+") ");
instrucaoSql.append("AND M.EMPRESA_ID = :empresaId "); instrucaoSql.append("AND M.EMPRESA_ID = :empresaId ");
if(parametros.get("statusKondutoTotalBusId") != null) {
instrucaoSql.append("AND TK.STATUSTRANSACAO IN("+parametros.get("statusKondutoTotalBusId").toString()+") ");
}
if(parametros.get("puntoventaId") != null) {
instrucaoSql.append("AND TK.PUNTOVENTA_ID = :puntoventaId ");
}
if(parametros.get("statusKondutoId") != null) {
instrucaoSql.append("AND TK.STATUSTRANSACAOKONDUTO IN("+parametros.get("statusKondutoId").toString()+") ");
}
if(parametros.get("statusKondutoEnvioId") != null) {
instrucaoSql.append("AND TK.STATUSENVIO IN("+parametros.get("statusKondutoEnvioId").toString()+") ");
}
} }
@Override @Override
@ -69,19 +87,33 @@ public class RelatorioIntegracaoAntiFraude extends Relatorio {
dataResult.put("ID_KONDUTO", resultSet.getString("ID_KONDUTO")); dataResult.put("ID_KONDUTO", resultSet.getString("ID_KONDUTO"));
dataResult.put("CPF_COMPRADOR", resultSet.getString("CPF_COMPRADOR")); dataResult.put("CPF_COMPRADOR", resultSet.getString("CPF_COMPRADOR"));
dataResult.put("NOME_COMPRADOR", resultSet.getString("NOME_COMPRADOR")); dataResult.put("NOME_COMPRADOR", resultSet.getString("NOME_COMPRADOR"));
dataResult.put("DATA_COMPRA", resultSet.getString("DATA_COMPRA")); dataResult.put("DATA_COMPRA", resultSet.getString("DATA_HORA_COMPRA"));
dataResult.put("HORA_COMPRA", resultSet.getString("HORA_COMPRA"));
dataResult.put("NSU", resultSet.getString("NSU")); dataResult.put("NSU", resultSet.getString("NSU"));
dataResult.put("AUTORIZACAO", resultSet.getString("AUTORIZACAO")); dataResult.put("AUTORIZACAO", resultSet.getString("AUTORIZACAO"));
dataResult.put("VALOR_TOTAL", MoneyHelper.instanciar(resultSet.getBigDecimal("VALOR_TOTAL"))); dataResult.put("VALOR_TOTAL", resultSet.getBigDecimal("VALOR_TOTAL"));
dataResult.put("SERVICO", resultSet.getString("SERVICO")); dataResult.put("SERVICO", resultSet.getString("SERVICO"));
dataResult.put("DATA_VIAGEM", resultSet.getString("DATA_VIAGEM")); dataResult.put("DATA_VIAGEM", resultSet.getString("DATA_HORA_VIAGEM"));
dataResult.put("HORA_VIAGEM", resultSet.getString("HORA_VIAGEM"));
dataResult.put("ORIGEM", resultSet.getString("ORIGEM")); dataResult.put("ORIGEM", resultSet.getString("ORIGEM"));
dataResult.put("DESTINO", resultSet.getString("DESTINO")); dataResult.put("DESTINO", resultSet.getString("DESTINO"));
dataResult.put("BILHETE", resultSet.getString("BILHETE")); dataResult.put("BILHETE", resultSet.getString("BILHETE"));
dataResult.put("POLTRONA", resultSet.getString("POLTRONA")); dataResult.put("POLTRONA", resultSet.getString("POLTRONA"));
dataResult.put("PASSAGEIRO", resultSet.getString("PASSAGEIRO")); dataResult.put("PASSAGEIRO", resultSet.getString("PASSAGEIRO"));
dataResult.put("TENTATIVAENVIO", resultSet.getInt("TENTATIVAENVIO"));
String statustransacao = resultSet.getString("STATUSTRANSACAO");
if(StringUtils.isNotBlank(statustransacao)) {
dataResult.put("STATUSTRANSACAO", EStatusKondutoTotalBus.getStatusKondutoPorId(statustransacao).getDescricao());
}
String statustransacaoKonduto = resultSet.getString("STATUSTRANSACAOKONDUTO");
if(StringUtils.isNotBlank(statustransacaoKonduto)) {
dataResult.put("STATUSTRANSACAOKONDUTO", EStatusKonduto.getStatusKondutoPorId(statustransacaoKonduto).getDescricao());
}
String statusEnvio = resultSet.getString("STATUSENVIO");
if(StringUtils.isNotBlank(statusEnvio)) {
dataResult.put("STATUSENVIO", EStatusKondutoEnvio.getStatusKondutoPorId(statusEnvio).getDescricao());
}
} }
@Override @Override
@ -89,6 +121,10 @@ public class RelatorioIntegracaoAntiFraude extends Relatorio {
stmt.setTimestamp("dtInicial", new Timestamp(DateUtil.inicioFecha((Date) parametros.get("dtInicial")).getTime())); stmt.setTimestamp("dtInicial", new Timestamp(DateUtil.inicioFecha((Date) parametros.get("dtInicial")).getTime()));
stmt.setTimestamp("dtFinal", new Timestamp(DateUtil.fimFecha((Date) parametros.get("dtFinal")).getTime())); stmt.setTimestamp("dtFinal", new Timestamp(DateUtil.fimFecha((Date) parametros.get("dtFinal")).getTime()));
stmt.setObject("empresaId", parametros.get("empresaId")); stmt.setObject("empresaId", parametros.get("empresaId"));
if(parametros.get("puntoventaId") != null) {
stmt.setObject("puntoventaId", parametros.get("puntoventaId"));
}
} }
} }

View File

@ -9,5 +9,29 @@ cabecalho.dataHora=Data/Hora:
cabecalho.impressorPor=Impresso por: cabecalho.impressorPor=Impresso por:
cabecalho.pagina=Página cabecalho.pagina=Página
cabecalho.de=de cabecalho.de=de
cabecalho.filtros=Filtros: cabecalho.filtros=Filtros
cabecalho.empresa=Empresa: cabecalho.empresa=Empresa:
cabecalho.statusKonduto=Status Konduto:
cabecalho.puntoventa=Agência:
cabecalho.statusKondutoEnvio=Status Envio:
cabecalho.statusKondutoTotalBus=Status Envio totalBus:
label.idKonduto=ID Konduto
label.cpfComprador=CPF Comprador
label.nomeComprador=Nome Comprador
label.dataCompra=Data Compra
label.nsu=NSU
label.autorizacao=Autorização
label.valor=Valor
label.servico=Serviço
label.dataViagem=Data Viagem
label.origem=Origem
label.destino=Destino
label.bilhete=Bilhete
label.poltrona=Poltrona
label.passageiro=Passageiro
label.tentativasEnvio=Tentativas Envio
label.statusTotalBus=Status totalBus
label.statusKonduto=Status Konduto
label.total=Total
label.statusEnvio=Status Envio

View File

@ -11,4 +11,27 @@ cabecalho.pagina=P
cabecalho.de=de cabecalho.de=de
cabecalho.filtros=Filtros: cabecalho.filtros=Filtros:
cabecalho.empresa=Empresa: cabecalho.empresa=Empresa:
cabecalho.statusKonduto=Filtro Status Konduto: cabecalho.statusKonduto=Status Konduto:
cabecalho.puntoventa=Agência:
cabecalho.statusKondutoEnvio=Status Envio:
cabecalho.statusKondutoTotalBus=Status Envio totalBus:
label.idKonduto=ID Konduto
label.cpfComprador=CPF Comprador
label.nomeComprador=Nome Comprador
label.dataCompra=Data Compra
label.nsu=NSU
label.autorizacao=Autorização
label.valor=Valor
label.servico=Serviço
label.dataViagem=Data Viagem
label.origem=Origem
label.destino=Destino
label.bilhete=Bilhete
label.poltrona=Poltrona
label.passageiro=Passageiro
label.tentativasEnvio=Tentativas Envio
label.statusTotalBus=Status totalBus
label.statusKonduto=Status Konduto
label.total=Total
label.statusEnvio=Status Envio

View File

@ -1,12 +1,15 @@
<?xml version="1.0" encoding="UTF-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="RelatorioIntegracaoAntiFraude" pageWidth="842" pageHeight="595" orientation="Landscape" columnWidth="802" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="7e37af0b-caa1-4f25-831c-5cbb2bb78560"> <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="RelatorioIntegracaoAntiFraude" pageWidth="1390" pageHeight="595" orientation="Landscape" columnWidth="1350" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="7e37af0b-caa1-4f25-831c-5cbb2bb78560">
<property name="ireport.zoom" value="1.2100000000000002"/> <property name="ireport.zoom" value="1.5"/>
<property name="ireport.x" value="0"/> <property name="ireport.x" value="1337"/>
<property name="ireport.y" value="0"/> <property name="ireport.y" value="121"/>
<parameter name="NOME_RELATORIO" class="java.lang.String"/> <parameter name="NOME_RELATORIO" class="java.lang.String"/>
<parameter name="empresa" class="java.lang.String"/> <parameter name="empresa" class="java.lang.String"/>
<parameter name="statusKonduto" class="java.lang.String"/> <parameter name="statusKonduto" class="java.lang.String"/>
<parameter name="periodo" class="java.lang.String"/> <parameter name="periodo" class="java.lang.String"/>
<parameter name="statusKondutoEnvio" class="java.lang.String"/>
<parameter name="statusKondutoTotalBus" class="java.lang.String"/>
<parameter name="puntoventa" class="java.lang.String"/>
<field name="ID_KONDUTO" class="java.lang.String"/> <field name="ID_KONDUTO" class="java.lang.String"/>
<field name="CPF_COMPRADOR" class="java.lang.String"/> <field name="CPF_COMPRADOR" class="java.lang.String"/>
<field name="NOME_COMPRADOR" class="java.lang.String"/> <field name="NOME_COMPRADOR" class="java.lang.String"/>
@ -23,6 +26,10 @@
<field name="BILHETE" class="java.lang.String"/> <field name="BILHETE" class="java.lang.String"/>
<field name="POLTRONA" class="java.lang.String"/> <field name="POLTRONA" class="java.lang.String"/>
<field name="PASSAGEIRO" class="java.lang.String"/> <field name="PASSAGEIRO" class="java.lang.String"/>
<field name="TENTATIVAENVIO" class="java.lang.Integer"/>
<field name="STATUSTRANSACAO" class="java.lang.String"/>
<field name="STATUSTRANSACAOKONDUTO" class="java.lang.String"/>
<field name="STATUSENVIO" class="java.lang.String"/>
<variable name="somaValorTotal" class="java.math.BigDecimal" calculation="Sum"> <variable name="somaValorTotal" class="java.math.BigDecimal" calculation="Sum">
<variableExpression><![CDATA[$F{VALOR_TOTAL}]]></variableExpression> <variableExpression><![CDATA[$F{VALOR_TOTAL}]]></variableExpression>
</variable> </variable>
@ -30,315 +37,410 @@
<band splitType="Stretch"/> <band splitType="Stretch"/>
</background> </background>
<pageHeader> <pageHeader>
<band height="105" splitType="Stretch"> <band height="167" splitType="Stretch">
<textField isStretchWithOverflow="true"> <textField isStretchWithOverflow="true">
<reportElement uuid="e4d992c9-eb58-4b1e-878c-51ae5c729ab5" x="0" y="0" width="802" height="25"/> <reportElement positionType="Float" x="0" y="0" width="960" height="25" uuid="e4d992c9-eb58-4b1e-878c-51ae5c729ab5"/>
<textElement textAlignment="Center"> <textElement>
<font size="14" isBold="true"/> <font size="12" isBold="true"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$P{NOME_RELATORIO}]]></textFieldExpression> <textFieldExpression><![CDATA[$P{NOME_RELATORIO}]]></textFieldExpression>
</textField> </textField>
<textField> <textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement uuid="b6b378f0-944f-4749-9a9d-3e472361e7f7" x="0" y="39" width="130" height="20"/> <reportElement positionType="Float" x="0" y="45" width="130" height="20" uuid="b6b378f0-944f-4749-9a9d-3e472361e7f7"/>
<textElement textAlignment="Right"> <textElement>
<font isBold="true"/> <font isBold="true"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$R{cabecalho.empresa}]]></textFieldExpression> <textFieldExpression><![CDATA[$R{cabecalho.empresa}]]></textFieldExpression>
</textField> </textField>
<textField> <textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement uuid="8c699a77-f856-411f-9fac-501e7302c091" x="147" y="39" width="655" height="20"/> <reportElement positionType="Float" x="133" y="45" width="827" height="20" uuid="8c699a77-f856-411f-9fac-501e7302c091"/>
<textElement> <textElement>
<font isBold="true"/> <font isBold="false"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$P{empresa}]]></textFieldExpression> <textFieldExpression><![CDATA[$P{empresa}]]></textFieldExpression>
</textField> </textField>
<textField> <textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement uuid="50284f0b-f675-46bb-8631-39946652702e" x="0" y="59" width="130" height="20"/> <reportElement positionType="Float" x="0" y="85" width="130" height="20" uuid="50284f0b-f675-46bb-8631-39946652702e"/>
<textElement textAlignment="Right">
<font isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$R{cabecalho.statusKonduto}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="82bb8887-102e-4aac-a389-754fc985b623" x="147" y="59" width="655" height="20"/>
<textElement> <textElement>
<font isBold="true"/> <font isBold="true"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$P{statusKonduto}]]></textFieldExpression> <textFieldExpression><![CDATA[$R{cabecalho.statusKondutoEnvio}]]></textFieldExpression>
</textField> </textField>
<textField> <textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement uuid="9d5eb781-7cdf-4c6e-95a6-d16b53a2d20e" x="0" y="79" width="130" height="20"/> <reportElement positionType="Float" x="133" y="85" width="827" height="20" uuid="82bb8887-102e-4aac-a389-754fc985b623"/>
<textElement textAlignment="Right"> <textElement>
<font isBold="false"/>
</textElement>
<textFieldExpression><![CDATA[$P{statusKondutoEnvio}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement positionType="Float" x="0" y="145" width="130" height="20" uuid="9d5eb781-7cdf-4c6e-95a6-d16b53a2d20e"/>
<textElement>
<font isBold="true"/> <font isBold="true"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$R{cabecalho.periodo}]]></textFieldExpression> <textFieldExpression><![CDATA[$R{cabecalho.periodo}]]></textFieldExpression>
</textField> </textField>
<textField> <textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement uuid="173b3e52-5b2e-4876-b40d-2774497dfbbe" x="147" y="79" width="655" height="20"/> <reportElement positionType="Float" x="133" y="145" width="827" height="20" uuid="173b3e52-5b2e-4876-b40d-2774497dfbbe"/>
<textElement> <textElement>
<font isBold="true"/> <font isBold="false"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$P{periodo}]]></textFieldExpression> <textFieldExpression><![CDATA[$P{periodo}]]></textFieldExpression>
</textField> </textField>
<line> <line>
<reportElement uuid="ef42d3b8-d503-4309-a5ea-8f2b934d6ca9" x="0" y="102" width="802" height="1"/> <reportElement positionType="Float" x="0" y="165" width="1350" height="1" uuid="ef42d3b8-d503-4309-a5ea-8f2b934d6ca9"/>
</line> </line>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement positionType="Float" x="0" y="65" width="130" height="20" uuid="27dd2e10-0e2b-4097-b225-7ab431136158"/>
<textElement>
<font isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$R{cabecalho.puntoventa}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement positionType="Float" x="0" y="125" width="130" height="20" uuid="f857aa5c-26c1-40c6-a731-ec0e5fae0b05"/>
<textElement>
<font isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$R{cabecalho.statusKondutoTotalBus}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement positionType="Float" x="133" y="125" width="827" height="20" uuid="37d45334-7880-4026-925c-7f6fd1fed061"/>
<textElement>
<font isBold="false"/>
</textElement>
<textFieldExpression><![CDATA[$P{statusKondutoTotalBus}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement positionType="Float" x="0" y="105" width="130" height="20" uuid="7564ad6b-f931-4fe4-9b4d-ef6553588799"/>
<textElement>
<font isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$R{cabecalho.statusKonduto}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement positionType="Float" x="133" y="105" width="827" height="20" uuid="5b6e5bff-8ea4-4636-b37a-9718beba94bc"/>
<textElement>
<font isBold="false"/>
</textElement>
<textFieldExpression><![CDATA[$P{statusKonduto}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement positionType="Float" x="133" y="65" width="827" height="20" uuid="61231496-b3aa-4d25-a803-30c76c3d5a6a"/>
<textElement>
<font isBold="false"/>
</textElement>
<textFieldExpression><![CDATA[$P{puntoventa}]]></textFieldExpression>
</textField>
<textField pattern="dd/MM/yyyy HH:mm">
<reportElement positionType="Float" x="960" y="1" width="310" height="24" uuid="bdf1ee26-9dc5-467a-877a-90019ca01dc6"/>
<textElement textAlignment="Right" verticalAlignment="Middle">
<font isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[new java.util.Date()]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement positionType="Float" x="0" y="25" width="130" height="20" uuid="e1840009-d195-4e49-a429-a0518a001233"/>
<textElement>
<font isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$R{cabecalho.filtros}]]></textFieldExpression>
</textField>
</band> </band>
</pageHeader> </pageHeader>
<columnHeader> <columnHeader>
<band height="23" splitType="Stretch"> <band height="16" splitType="Stretch">
<staticText> <textField isStretchWithOverflow="true">
<reportElement uuid="7dfac679-5777-44d4-ad71-1d3f9a357d6c" x="0" y="0" width="63" height="23"/> <reportElement stretchType="RelativeToTallestObject" x="0" y="0" width="130" height="15" isPrintWhenDetailOverflows="true" uuid="bc4fa527-08d2-47c0-88e3-2e7573f76082"/>
<textElement> <textElement verticalAlignment="Top" markup="none">
<font size="8"/> <font size="5" isBold="true"/>
</textElement> </textElement>
<text><![CDATA[ID Konduto]]></text> <textFieldExpression><![CDATA[$R{label.idKonduto}]]></textFieldExpression>
</staticText> </textField>
<staticText> <textField isStretchWithOverflow="true">
<reportElement uuid="97304743-de9a-4844-8e9d-379d072740cf" x="73" y="0" width="53" height="23"/> <reportElement stretchType="RelativeToTallestObject" x="133" y="0" width="70" height="15" isPrintWhenDetailOverflows="true" uuid="df8f2359-9bc6-4240-85b1-fabbd51266e7"/>
<textElement> <textElement verticalAlignment="Top" markup="none">
<font size="8"/> <font size="5" isBold="true"/>
</textElement> </textElement>
<text><![CDATA[CPF Comprador]]></text> <textFieldExpression><![CDATA[$R{label.cpfComprador}]]></textFieldExpression>
</staticText> </textField>
<staticText> <textField isStretchWithOverflow="true">
<reportElement uuid="8d03ea0b-eb6f-4747-81d8-864d399fd64a" x="126" y="0" width="74" height="23"/> <reportElement stretchType="RelativeToTallestObject" x="207" y="0" width="145" height="15" isPrintWhenDetailOverflows="true" uuid="38345db5-0501-48ed-a79a-e5ef4676c0c1"/>
<textElement> <textElement verticalAlignment="Top" markup="none">
<font size="8"/> <font size="5" isBold="true"/>
</textElement> </textElement>
<text><![CDATA[Nome Comprador]]></text> <textFieldExpression><![CDATA[$R{label.nomeComprador}]]></textFieldExpression>
</staticText> </textField>
<staticText> <textField isStretchWithOverflow="true">
<reportElement uuid="4c1e5926-c37e-456d-94ce-5e31e7c27757" x="200" y="0" width="56" height="23"/> <reportElement stretchType="RelativeToTallestObject" x="355" y="0" width="90" height="15" isPrintWhenDetailOverflows="true" uuid="d25a7ba5-0ddf-4b47-b316-9c7dffb3920d"/>
<textElement> <textElement verticalAlignment="Top" markup="none">
<font size="8"/> <font size="5" isBold="true"/>
</textElement> </textElement>
<text><![CDATA[Data Compra]]></text> <textFieldExpression><![CDATA[$R{label.dataCompra}]]></textFieldExpression>
</staticText> </textField>
<staticText> <textField isStretchWithOverflow="true">
<reportElement uuid="d00c3059-6ba6-49f0-bd00-8b6152b9dae5" x="256" y="0" width="35" height="23"/> <reportElement stretchType="RelativeToTallestObject" x="445" y="0" width="53" height="15" isPrintWhenDetailOverflows="true" uuid="02a11b08-b54f-46c4-8215-cd28b5245bcd"/>
<textElement> <textElement verticalAlignment="Top" markup="none">
<font size="8"/> <font size="5" isBold="true"/>
</textElement> </textElement>
<text><![CDATA[Hora Compra]]></text> <textFieldExpression><![CDATA[$R{label.nsu}]]></textFieldExpression>
</staticText> </textField>
<staticText> <textField isStretchWithOverflow="true">
<reportElement uuid="4f35ab49-374e-4e2c-9e74-228d741e9b57" x="291" y="0" width="39" height="23"/> <reportElement stretchType="RelativeToTallestObject" x="498" y="0" width="67" height="15" isPrintWhenDetailOverflows="true" uuid="1b2c6c92-7f44-4d8a-ae91-d2bdd70b2f47"/>
<textElement> <textElement verticalAlignment="Top" markup="none">
<font size="8"/> <font size="5" isBold="true"/>
</textElement> </textElement>
<text><![CDATA[NSU]]></text> <textFieldExpression><![CDATA[$R{label.autorizacao}]]></textFieldExpression>
</staticText> </textField>
<staticText> <textField isStretchWithOverflow="true">
<reportElement uuid="b9eb76a8-f79d-4725-9443-aeb97b5e1a69" x="330" y="0" width="50" height="23"/> <reportElement stretchType="RelativeToTallestObject" x="565" y="0" width="63" height="15" isPrintWhenDetailOverflows="true" uuid="7533d8a1-f1a8-441a-97a0-38c6cc824a95"/>
<textElement> <box rightPadding="2"/>
<font size="8"/> <textElement textAlignment="Right" verticalAlignment="Top" markup="none">
<font size="5" isBold="true"/>
</textElement> </textElement>
<text><![CDATA[Autorização]]></text> <textFieldExpression><![CDATA[$R{label.valor}]]></textFieldExpression>
</staticText> </textField>
<staticText> <textField isStretchWithOverflow="true">
<reportElement uuid="3516a9cc-6c22-4fa0-815a-3f31877197fb" x="380" y="0" width="56" height="23"/> <reportElement stretchType="RelativeToTallestObject" x="629" y="0" width="56" height="15" isPrintWhenDetailOverflows="true" uuid="09f2c725-427d-4357-9ef8-3cbcfdcae0d8"/>
<textElement> <textElement verticalAlignment="Top" markup="none">
<font size="8"/> <font size="5" isBold="true"/>
</textElement> </textElement>
<text><![CDATA[Valor Total]]></text> <textFieldExpression><![CDATA[$R{label.servico}]]></textFieldExpression>
</staticText> </textField>
<staticText> <textField isStretchWithOverflow="true">
<reportElement uuid="3ea703d0-9b0f-4977-ae63-04df3521e47b" x="436" y="0" width="39" height="23"/> <reportElement stretchType="RelativeToTallestObject" x="685" y="0" width="90" height="15" isPrintWhenDetailOverflows="true" uuid="135b6ed3-6172-4370-b8b3-adc33c9c3be2"/>
<textElement> <textElement verticalAlignment="Top" markup="none">
<font size="8"/> <font size="5" isBold="true"/>
</textElement> </textElement>
<text><![CDATA[Serviço]]></text> <textFieldExpression><![CDATA[$R{label.dataViagem}]]></textFieldExpression>
</staticText> </textField>
<staticText> <textField isStretchWithOverflow="true">
<reportElement uuid="5c38c141-cf4f-4d4c-b497-8dbe3e01473f" x="528" y="0" width="35" height="23"/> <reportElement stretchType="RelativeToTallestObject" x="775" y="0" width="80" height="15" isPrintWhenDetailOverflows="true" uuid="b35a8bb5-69dd-4d81-b7a9-e98af9844c72"/>
<textElement> <textElement verticalAlignment="Top" markup="none">
<font size="8"/> <font size="5" isBold="true"/>
</textElement> </textElement>
<text><![CDATA[Hora Viagem]]></text> <textFieldExpression><![CDATA[$R{label.origem}]]></textFieldExpression>
</staticText> </textField>
<staticText> <textField isStretchWithOverflow="true">
<reportElement uuid="1d79c1ce-b507-4738-a06a-39cb074f8c5f" x="475" y="0" width="53" height="23"/> <reportElement stretchType="RelativeToTallestObject" x="855" y="0" width="80" height="15" isPrintWhenDetailOverflows="true" uuid="c7001418-2dff-4fed-a3db-b45eefa27e37"/>
<textElement> <textElement verticalAlignment="Top" markup="none">
<font size="8"/> <font size="5" isBold="true"/>
</textElement> </textElement>
<text><![CDATA[Data Viagem]]></text> <textFieldExpression><![CDATA[$R{label.destino}]]></textFieldExpression>
</staticText> </textField>
<staticText> <textField isStretchWithOverflow="true">
<reportElement uuid="1263b027-8974-4a64-bbdc-3b7b150f13aa" x="563" y="0" width="57" height="23"/> <reportElement stretchType="RelativeToTallestObject" x="935" y="0" width="40" height="15" isPrintWhenDetailOverflows="true" uuid="92dd360b-f3a4-40b7-a27d-5fa9faa89d0d"/>
<textElement> <textElement verticalAlignment="Top" markup="none">
<font size="8"/> <font size="5" isBold="true"/>
</textElement> </textElement>
<text><![CDATA[Origem]]></text> <textFieldExpression><![CDATA[$R{label.bilhete}]]></textFieldExpression>
</staticText> </textField>
<staticText> <textField isStretchWithOverflow="true">
<reportElement uuid="706c9a98-e0f6-4941-8826-847d0a3127db" x="620" y="0" width="57" height="23"/> <reportElement stretchType="RelativeToTallestObject" x="975" y="0" width="41" height="15" isPrintWhenDetailOverflows="true" uuid="8ac0d76a-3a3d-4ce4-bbff-0d6d70f79502"/>
<textElement> <textElement textAlignment="Center" verticalAlignment="Top" markup="none">
<font size="8"/> <font size="5" isBold="true"/>
</textElement> </textElement>
<text><![CDATA[Destino]]></text> <textFieldExpression><![CDATA[$R{label.poltrona}]]></textFieldExpression>
</staticText> </textField>
<staticText> <textField isStretchWithOverflow="true">
<reportElement uuid="d9cdf407-544a-439c-b161-bf7e79d99913" x="677" y="0" width="34" height="23"/> <reportElement stretchType="RelativeToTallestObject" x="1016" y="0" width="100" height="15" isPrintWhenDetailOverflows="true" uuid="1259a31a-c3a2-44ba-97c6-5c351bc95d3b"/>
<textElement> <textElement verticalAlignment="Top" markup="none">
<font size="8"/> <font size="5" isBold="true"/>
</textElement> </textElement>
<text><![CDATA[Bilhete]]></text> <textFieldExpression><![CDATA[$R{label.passageiro}]]></textFieldExpression>
</staticText> </textField>
<staticText> <textField isStretchWithOverflow="true">
<reportElement uuid="a5528f8f-5767-40d0-b506-9f11c6e52848" x="711" y="0" width="36" height="23"/> <reportElement stretchType="RelativeToTallestObject" x="1116" y="0" width="52" height="15" isPrintWhenDetailOverflows="true" uuid="e8e712cc-504e-4c09-9c97-016434df2ec3"/>
<textElement> <box rightPadding="2"/>
<font size="8"/> <textElement textAlignment="Center" verticalAlignment="Top" markup="none">
<font size="5" isBold="true"/>
</textElement> </textElement>
<text><![CDATA[Poltrona]]></text> <textFieldExpression><![CDATA[$R{label.tentativasEnvio}]]></textFieldExpression>
</staticText> </textField>
<staticText> <textField isStretchWithOverflow="true">
<reportElement uuid="e6e8ba92-2ead-4ecb-a61c-06b25da28c38" x="747" y="0" width="55" height="23"/> <reportElement stretchType="RelativeToTallestObject" x="1168" y="0" width="60" height="15" isPrintWhenDetailOverflows="true" uuid="5d87fe51-2795-41b1-a26b-b09068e7acfe"/>
<textElement> <textElement verticalAlignment="Top" markup="none">
<font size="8"/> <font size="5" isBold="true"/>
</textElement> </textElement>
<text><![CDATA[Passageiro]]></text> <textFieldExpression><![CDATA[$R{label.statusTotalBus}]]></textFieldExpression>
</staticText> </textField>
<textField isStretchWithOverflow="true">
<reportElement stretchType="RelativeToTallestObject" x="1228" y="0" width="60" height="15" isPrintWhenDetailOverflows="true" uuid="b404b43a-b24e-426c-a420-98e6d4a0eaa5"/>
<textElement verticalAlignment="Top" markup="none">
<font size="5" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$R{label.statusKonduto}]]></textFieldExpression>
</textField>
<line>
<reportElement positionType="Float" x="0" y="15" width="1350" height="1" uuid="a26eeb8d-4c0a-4456-87af-21e38559cf31"/>
</line>
<textField isStretchWithOverflow="true">
<reportElement stretchType="RelativeToTallestObject" x="1288" y="0" width="62" height="15" isPrintWhenDetailOverflows="true" uuid="c1b5077b-162b-4d10-b8c2-ae334c16123f"/>
<textElement verticalAlignment="Top" markup="none">
<font size="5" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$R{label.statusEnvio}]]></textFieldExpression>
</textField>
</band> </band>
</columnHeader> </columnHeader>
<detail> <detail>
<band height="20" splitType="Stretch"> <band height="16" splitType="Stretch">
<textField isStretchWithOverflow="true" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement uuid="69fbf8f0-42ff-4ac1-b4c3-98cb8981756d" x="0" y="0" width="63" height="20"/> <reportElement stretchType="RelativeToTallestObject" x="0" y="0" width="130" height="15" isPrintWhenDetailOverflows="true" uuid="69fbf8f0-42ff-4ac1-b4c3-98cb8981756d"/>
<textElement> <textElement verticalAlignment="Top">
<font size="8"/> <font size="5"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$F{ID_KONDUTO}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{ID_KONDUTO}]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement uuid="736fff80-1a77-49d3-ac6e-6db0455dea25" x="73" y="0" width="53" height="20"/> <reportElement stretchType="RelativeToTallestObject" x="133" y="0" width="70" height="15" isPrintWhenDetailOverflows="true" uuid="736fff80-1a77-49d3-ac6e-6db0455dea25"/>
<textElement> <textElement verticalAlignment="Top">
<font size="8"/> <font size="5"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$F{CPF_COMPRADOR}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{CPF_COMPRADOR}]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement uuid="24dc6a67-c61b-455b-92cf-6513bf0dd395" x="126" y="0" width="74" height="20"/> <reportElement stretchType="RelativeToTallestObject" x="207" y="0" width="145" height="15" isPrintWhenDetailOverflows="true" uuid="24dc6a67-c61b-455b-92cf-6513bf0dd395"/>
<textElement> <textElement verticalAlignment="Top">
<font size="8"/> <font size="5"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$F{NOME_COMPRADOR}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{NOME_COMPRADOR}]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement uuid="1c152ef7-6a39-4213-89f2-6c132b72fec2" x="200" y="0" width="56" height="20"/> <reportElement stretchType="RelativeToTallestObject" x="355" y="0" width="90" height="15" isPrintWhenDetailOverflows="true" uuid="1c152ef7-6a39-4213-89f2-6c132b72fec2"/>
<textElement> <textElement verticalAlignment="Top">
<font size="8"/> <font size="5"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$F{DATA_COMPRA}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{DATA_COMPRA}]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true"> <textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement uuid="baef4435-91db-4234-a7dd-4f4c68dd4934" x="256" y="0" width="35" height="20"/> <reportElement stretchType="RelativeToTallestObject" x="445" y="0" width="53" height="15" isPrintWhenDetailOverflows="true" uuid="7b56a17d-dce8-44c3-9bfc-4e662ddb039a"/>
<textElement> <textElement verticalAlignment="Top">
<font size="8"/> <font size="5"/>
</textElement>
<textFieldExpression><![CDATA[$F{HORA_COMPRA}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement uuid="7b56a17d-dce8-44c3-9bfc-4e662ddb039a" x="291" y="0" width="39" height="20"/>
<textElement>
<font size="8"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$F{NSU}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{NSU}]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true"> <textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement uuid="50e5e2c2-aa07-40d8-9f9e-bc7317b4b3cc" x="330" y="0" width="50" height="20"/> <reportElement stretchType="RelativeToTallestObject" x="498" y="0" width="67" height="15" isPrintWhenDetailOverflows="true" uuid="50e5e2c2-aa07-40d8-9f9e-bc7317b4b3cc"/>
<textElement> <textElement verticalAlignment="Top">
<font size="8"/> <font size="5"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$F{AUTORIZACAO}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{AUTORIZACAO}]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" pattern=""> <textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
<reportElement uuid="219b202b-d6c8-4a30-8571-184406a093ec" x="380" y="0" width="56" height="20"/> <reportElement stretchType="RelativeToTallestObject" x="565" y="0" width="63" height="15" isPrintWhenDetailOverflows="true" uuid="219b202b-d6c8-4a30-8571-184406a093ec"/>
<textElement> <box rightPadding="2"/>
<font size="8"/> <textElement textAlignment="Right" verticalAlignment="Top">
<font size="5"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$F{VALOR_TOTAL}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{VALOR_TOTAL}]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true"> <textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement uuid="f967b32f-1e8a-4847-9378-a9583ed64eb8" x="436" y="0" width="39" height="20"/> <reportElement stretchType="RelativeToTallestObject" x="629" y="0" width="56" height="15" isPrintWhenDetailOverflows="true" uuid="f967b32f-1e8a-4847-9378-a9583ed64eb8"/>
<textElement> <textElement verticalAlignment="Top">
<font size="8"/> <font size="5"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$F{SERVICO}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{SERVICO}]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true"> <textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement uuid="e295288e-747b-4c60-ba2c-79a650503a95" x="475" y="0" width="53" height="20"/> <reportElement stretchType="RelativeToTallestObject" x="685" y="0" width="90" height="15" isPrintWhenDetailOverflows="true" uuid="e295288e-747b-4c60-ba2c-79a650503a95"/>
<textElement> <textElement verticalAlignment="Top">
<font size="8"/> <font size="5"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$F{DATA_VIAGEM}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{DATA_VIAGEM}]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true"> <textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement uuid="3a0b2b6e-5ff7-487e-91fb-1a09b0b2d674" x="528" y="0" width="35" height="20"/> <reportElement stretchType="RelativeToTallestObject" x="775" y="0" width="80" height="15" isPrintWhenDetailOverflows="true" uuid="6028c261-a71d-406e-a140-3e6a88dd81d6"/>
<textElement> <textElement verticalAlignment="Top">
<font size="8"/> <font size="5"/>
</textElement>
<textFieldExpression><![CDATA[$F{HORA_VIAGEM}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true">
<reportElement uuid="6028c261-a71d-406e-a140-3e6a88dd81d6" x="563" y="0" width="57" height="20"/>
<textElement>
<font size="8"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$F{ORIGEM}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{ORIGEM}]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true"> <textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement uuid="8dfd6984-4f8f-43b2-8f13-7693b3172a73" x="620" y="0" width="57" height="20"/> <reportElement stretchType="RelativeToTallestObject" x="855" y="0" width="80" height="15" isPrintWhenDetailOverflows="true" uuid="8dfd6984-4f8f-43b2-8f13-7693b3172a73"/>
<textElement> <textElement verticalAlignment="Top">
<font size="8"/> <font size="5"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$F{DESTINO}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{DESTINO}]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true"> <textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement uuid="9782340c-2080-4c8a-94c9-78c62e48a6a3" x="677" y="0" width="34" height="20"/> <reportElement stretchType="RelativeToTallestObject" x="935" y="0" width="40" height="15" isPrintWhenDetailOverflows="true" uuid="9782340c-2080-4c8a-94c9-78c62e48a6a3"/>
<textElement> <textElement verticalAlignment="Top">
<font size="8"/> <font size="5"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$F{BILHETE}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{BILHETE}]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true"> <textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement uuid="9ad8048f-4355-44ef-b14d-e54825347828" x="711" y="0" width="36" height="20"/> <reportElement stretchType="RelativeToTallestObject" x="975" y="0" width="41" height="15" isPrintWhenDetailOverflows="true" uuid="9ad8048f-4355-44ef-b14d-e54825347828"/>
<textElement> <textElement textAlignment="Center" verticalAlignment="Top">
<font size="8"/> <font size="5"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$F{POLTRONA}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{POLTRONA}]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true"> <textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement uuid="420a5c3e-4798-4c66-98c8-a6ea957712e0" x="747" y="0" width="55" height="20"/> <reportElement stretchType="RelativeToTallestObject" x="1016" y="0" width="100" height="15" isPrintWhenDetailOverflows="true" uuid="420a5c3e-4798-4c66-98c8-a6ea957712e0"/>
<textElement> <textElement verticalAlignment="Top">
<font size="8"/> <font size="5"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$F{PASSAGEIRO}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{PASSAGEIRO}]]></textFieldExpression>
</textField> </textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="1116" y="0" width="52" height="15" isPrintWhenDetailOverflows="true" uuid="4f2454f2-2d38-4ae6-9844-abdcc350bc88"/>
<box rightPadding="2"/>
<textElement textAlignment="Center" verticalAlignment="Top">
<font size="5"/>
</textElement>
<textFieldExpression><![CDATA[$F{TENTATIVAENVIO}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="1168" y="0" width="60" height="15" isPrintWhenDetailOverflows="true" uuid="e11d547a-4953-4bfa-b9c0-a8841b84ca9b"/>
<textElement verticalAlignment="Top">
<font size="5"/>
</textElement>
<textFieldExpression><![CDATA[$F{STATUSTRANSACAO}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="1228" y="0" width="60" height="15" isPrintWhenDetailOverflows="true" uuid="bcb0b169-9e5e-4b1c-a242-9c9c03f755f7"/>
<textElement verticalAlignment="Top">
<font size="5"/>
</textElement>
<textFieldExpression><![CDATA[$F{STATUSTRANSACAOKONDUTO}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement stretchType="RelativeToTallestObject" x="1288" y="0" width="62" height="15" isPrintWhenDetailOverflows="true" uuid="2acd487c-c9de-4f48-b8c1-4974d49d2799"/>
<textElement verticalAlignment="Top">
<font size="5"/>
</textElement>
<textFieldExpression><![CDATA[$F{STATUSENVIO}]]></textFieldExpression>
</textField>
</band> </band>
</detail> </detail>
<summary> <summary>
<band height="20" splitType="Stretch"> <band height="23" splitType="Stretch">
<textField> <textField pattern="#,##0.00">
<reportElement uuid="ca18f432-671a-4981-9cdb-650412bebc8a" x="380" y="0" width="95" height="20"/> <reportElement x="564" y="2" width="64" height="15" uuid="ca18f432-671a-4981-9cdb-650412bebc8a"/>
<textElement> <box rightPadding="2"/>
<font size="8"/> <textElement textAlignment="Right" verticalAlignment="Middle">
<font size="6" isBold="true"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$V{somaValorTotal}]]></textFieldExpression> <textFieldExpression><![CDATA[$V{somaValorTotal}]]></textFieldExpression>
</textField> </textField>
<staticText> <textField>
<reportElement uuid="f5133a4b-5e4a-4fbd-a009-f9c4e19455cf" x="330" y="0" width="50" height="20"/> <reportElement x="498" y="2" width="65" height="15" uuid="8173158a-4d47-402b-b255-49336c811b7b"/>
<textElement> <textElement textAlignment="Right" verticalAlignment="Middle" markup="none">
<font size="8"/> <font size="6" isBold="true"/>
</textElement> </textElement>
<text><![CDATA[Total Geral:]]></text> <textFieldExpression><![CDATA[$R{label.total}]]></textFieldExpression>
</staticText> </textField>
<line>
<reportElement x="0" y="1" width="1350" height="1" uuid="a05ac3c2-aff5-472f-b942-34f4bd106232"/>
</line>
</band> </band>
</summary> </summary>
<noData> <noData>
<band height="50"> <band height="27">
<textField> <textField>
<reportElement uuid="09b96c81-b864-4947-8a86-27e7e007139d" x="24" y="24" width="530" height="26"/> <reportElement x="33" y="0" width="530" height="26" uuid="09b96c81-b864-4947-8a86-27e7e007139d"/>
<textElement markup="none"> <textElement markup="none">
<font size="11" isBold="true"/> <font size="11" isBold="true"/>
</textElement> </textElement>

View File

@ -90,6 +90,7 @@ import com.rjconsultores.ventaboletos.entidad.PtoVtaSeguro;
import com.rjconsultores.ventaboletos.entidad.PtoVtaUsuarioBancario; import com.rjconsultores.ventaboletos.entidad.PtoVtaUsuarioBancario;
import com.rjconsultores.ventaboletos.entidad.PtovtaAgencia; import com.rjconsultores.ventaboletos.entidad.PtovtaAgencia;
import com.rjconsultores.ventaboletos.entidad.PtovtaAntecipacomissao; import com.rjconsultores.ventaboletos.entidad.PtovtaAntecipacomissao;
import com.rjconsultores.ventaboletos.entidad.PtovtaAntifraude;
import com.rjconsultores.ventaboletos.entidad.PtovtaCatInd; import com.rjconsultores.ventaboletos.entidad.PtovtaCatInd;
import com.rjconsultores.ventaboletos.entidad.PtovtaComissao; import com.rjconsultores.ventaboletos.entidad.PtovtaComissao;
import com.rjconsultores.ventaboletos.entidad.PtovtaDiversos; import com.rjconsultores.ventaboletos.entidad.PtovtaDiversos;
@ -104,6 +105,7 @@ import com.rjconsultores.ventaboletos.entidad.TipoPuntoVenta;
import com.rjconsultores.ventaboletos.entidad.Usuario; import com.rjconsultores.ventaboletos.entidad.Usuario;
import com.rjconsultores.ventaboletos.entidad.UsuarioBancario; import com.rjconsultores.ventaboletos.entidad.UsuarioBancario;
import com.rjconsultores.ventaboletos.entidad.UsuarioPerfil; import com.rjconsultores.ventaboletos.entidad.UsuarioPerfil;
import com.rjconsultores.ventaboletos.enums.TipoAntifraude;
import com.rjconsultores.ventaboletos.exception.BusinessException; import com.rjconsultores.ventaboletos.exception.BusinessException;
import com.rjconsultores.ventaboletos.exception.IntegracionException; import com.rjconsultores.ventaboletos.exception.IntegracionException;
import com.rjconsultores.ventaboletos.exception.ValidacionCampoException; import com.rjconsultores.ventaboletos.exception.ValidacionCampoException;
@ -120,6 +122,7 @@ import com.rjconsultores.ventaboletos.service.NodoService;
import com.rjconsultores.ventaboletos.service.PtoVtaCheckinService; import com.rjconsultores.ventaboletos.service.PtoVtaCheckinService;
import com.rjconsultores.ventaboletos.service.PtoVtaSeguroService; import com.rjconsultores.ventaboletos.service.PtoVtaSeguroService;
import com.rjconsultores.ventaboletos.service.PtoVtaUsuarioBancarioService; import com.rjconsultores.ventaboletos.service.PtoVtaUsuarioBancarioService;
import com.rjconsultores.ventaboletos.service.PtovtaAntifraudeService;
import com.rjconsultores.ventaboletos.service.PtovtaCatIndService; import com.rjconsultores.ventaboletos.service.PtovtaCatIndService;
import com.rjconsultores.ventaboletos.service.PtovtaComissaoService; import com.rjconsultores.ventaboletos.service.PtovtaComissaoService;
import com.rjconsultores.ventaboletos.service.PtovtaEmpresaBloqueadaService; import com.rjconsultores.ventaboletos.service.PtovtaEmpresaBloqueadaService;
@ -153,6 +156,7 @@ import com.rjconsultores.ventaboletos.web.utilerias.render.RenderCategoriaBloque
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderEmpresaBloquear; import com.rjconsultores.ventaboletos.web.utilerias.render.RenderEmpresaBloquear;
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderParadaPtoVtaCheckin; import com.rjconsultores.ventaboletos.web.utilerias.render.RenderParadaPtoVtaCheckin;
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderPtoVtaSeguro; import com.rjconsultores.ventaboletos.web.utilerias.render.RenderPtoVtaSeguro;
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderPtovtaAntifraude;
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderPtovtaCatInd; import com.rjconsultores.ventaboletos.web.utilerias.render.RenderPtovtaCatInd;
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderPtovtaComissao; import com.rjconsultores.ventaboletos.web.utilerias.render.RenderPtovtaComissao;
import com.rjconsultores.ws.totvs.service.GeradorTitulosIntegracion; import com.rjconsultores.ws.totvs.service.GeradorTitulosIntegracion;
@ -220,6 +224,8 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
private CategoriaBloqueioImpPosteriorService categoriaBloqueioImpPosteriorService; private CategoriaBloqueioImpPosteriorService categoriaBloqueioImpPosteriorService;
@Autowired @Autowired
private ConstanteService constanteService; private ConstanteService constanteService;
@Autowired
private PtovtaAntifraudeService ptovtaAntifraudeService;
private PuntoVenta puntoVenta; private PuntoVenta puntoVenta;
private Textbox txtCP; private Textbox txtCP;
@ -241,11 +247,14 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
private MyListbox ptovtaHistoricoList; private MyListbox ptovtaHistoricoList;
private MyListbox categoriasBloqImpPosteriorList; private MyListbox categoriasBloqImpPosteriorList;
private MyListbox empresaContaBancariaList; private MyListbox empresaContaBancariaList;
private Textbox txtChaveAntifraude;
private MyListbox ptovtaAntifraudeList;
private List<Categoria> lsCategoriaBloquear; private List<Categoria> lsCategoriaBloquear;
private List<Empresa> lsEmpresasBloquear; private List<Empresa> lsEmpresasBloquear;
private List<Empresa> lsEmpresas; private List<Empresa> lsEmpresas;
private List<Empresa> lsEmpresasSemTodos;
private List<Empresa> lsEmpresasFormapago; private List<Empresa> lsEmpresasFormapago;
private List<EmpresaContaBancaria> lsEmpresaContaBancarias; private List<EmpresaContaBancaria> lsEmpresaContaBancarias;
private List<InstiFinanceira> lsBanco; private List<InstiFinanceira> lsBanco;
@ -293,6 +302,7 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
private Combobox cmbEmpresa; private Combobox cmbEmpresa;
private Combobox cmbEmpresaPtoVta; private Combobox cmbEmpresaPtoVta;
private Combobox cmbEmpresaPtoVtaUsuarioBancario; private Combobox cmbEmpresaPtoVtaUsuarioBancario;
private Combobox cmbEmpresaPtoVtaAntifraude;
private Combobox cmbParada; private Combobox cmbParada;
private Combobox cmbPtoVtaCheckinParada; private Combobox cmbPtoVtaCheckinParada;
private Combobox cmbEmpresaSeguro; private Combobox cmbEmpresaSeguro;
@ -433,6 +443,7 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
@Autowired @Autowired
private DataSource dataSource; private DataSource dataSource;
public Button getBtnApagar() { public Button getBtnApagar() {
return btnApagar; return btnApagar;
} }
@ -465,6 +476,7 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
lsCategoriaBloquear = categoriaService.obtenerTodasCategoriasVisibles(); lsCategoriaBloquear = categoriaService.obtenerTodasCategoriasVisibles();
lsEmpresasBloquear = empresaService.obtenerTodos(); lsEmpresasBloquear = empresaService.obtenerTodos();
lsEmpresas = UsuarioLogado.getUsuarioLogado().getEmpresa(); lsEmpresas = UsuarioLogado.getUsuarioLogado().getEmpresa();
lsEmpresasSemTodos = UsuarioLogado.getUsuarioLogado().getEmpresa();
lsMoneda = monedaService.obtenerTodos(); lsMoneda = monedaService.obtenerTodos();
lsBanco = ptovtaBancoService.obtenerTodos(); lsBanco = ptovtaBancoService.obtenerTodos();
lsColonia = new ArrayList<Colonia>(); lsColonia = new ArrayList<Colonia>();
@ -806,8 +818,6 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
puntoVenta.setLsPtovtaUsuarioBancario(new ArrayList<PtoVtaUsuarioBancario>()); puntoVenta.setLsPtovtaUsuarioBancario(new ArrayList<PtoVtaUsuarioBancario>());
} }
lsPtovtaUsuarioBancario = puntoVenta.getLsPtovtaUsuarioBancario(); lsPtovtaUsuarioBancario = puntoVenta.getLsPtovtaUsuarioBancario();
ptovtaUsuarioBancarioList.setData(lsPtovtaUsuarioBancario); ptovtaUsuarioBancarioList.setData(lsPtovtaUsuarioBancario);
@ -834,6 +844,9 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
if (puntoVenta.getValidaTempoParaImpressao() != null) { if (puntoVenta.getValidaTempoParaImpressao() != null) {
txtTempoParaImpressao.setDisabled(!puntoVenta.getValidaTempoParaImpressao()); txtTempoParaImpressao.setDisabled(!puntoVenta.getValidaTempoParaImpressao());
} }
ptovtaAntifraudeList.setItemRenderer(new RenderPtovtaAntifraude());
ptovtaAntifraudeList.setData(puntoVenta.getPtovtaAntifraudes());
} }
private void downloadLogIntegracao(Combobox cmb){ private void downloadLogIntegracao(Combobox cmb){
@ -936,6 +949,7 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
clearCombobox(cmbLote); clearCombobox(cmbLote);
clearCombobox(cmbPosicao); clearCombobox(cmbPosicao);
clearCombobox(cmbEmpresas); clearCombobox(cmbEmpresas);
clearCombobox(cmbEmpresas);
clearCombobox(cmbCategorias); clearCombobox(cmbCategorias);
clearCombobox(cmbUsuarioEmpresa); clearCombobox(cmbUsuarioEmpresa);
@ -3406,6 +3420,88 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
} }
} }
public void onClick$btnAddChaveAntifraude(Event event) {
try {
if(verificarCamposAddChaveAntifraude()) {
if (cmbEmpresaPtoVtaAntifraude.getSelectedItem() == null) {
return;
}
txtChaveAntifraude.getValue();
PtovtaAntifraude ptovtaAntifraude = new PtovtaAntifraude();
ptovtaAntifraude.setEmpresa((Empresa)cmbEmpresaPtoVtaAntifraude.getSelectedItem().getValue());
ptovtaAntifraude.setPuntoventa(puntoVenta);
ptovtaAntifraude.setChave(txtChaveAntifraude.getValue());
ptovtaAntifraude.setTipo(TipoAntifraude.KONDUTO);
ptovtaAntifraude.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
puntoVenta.addChaveAntifurto(ptovtaAntifraude);
ptovtaAntifraudeList.setData(puntoVenta.getPtovtaAntifraudes());
txtChaveAntifraude.setValue("");
}
} catch (Exception e) {
log.error(e.getMessage(), e);
}
}
private boolean verificarCamposAddChaveAntifraude() throws InterruptedException {
if (cmbEmpresaPtoVtaAntifraude.getSelectedItem() == null) {
Messagebox.show(
Labels.getLabel("editarPuntoVentaController.MSG.empresaAntifraudeNaoInformada"),
Labels.getLabel("editarPuntoVentaController.window.title"),
Messagebox.OK, Messagebox.EXCLAMATION);
return false;
}
txtChaveAntifraude.getValue();
if(StringUtils.isBlank(txtChaveAntifraude.getValue())) {
Messagebox.show(
Labels.getLabel("editarPuntoVentaController.MSG.chaveAntifraudeNaoInformada"),
Labels.getLabel("editarPuntoVentaController.window.title"),
Messagebox.OK, Messagebox.EXCLAMATION);
return false;
}
if(puntoVenta.getPtovtaAntifraudes() != null) {
Empresa empresa = (Empresa) cmbEmpresaPtoVtaAntifraude.getSelectedItem().getValue();
for (PtovtaAntifraude ptovtaAntifraude : puntoVenta.getPtovtaAntifraudes()) {
if(empresa.equals(ptovtaAntifraude.getEmpresa())) {
Messagebox.show(
Labels.getLabel("editarPuntoVentaController.MSG.empresaAntifraudeJaCadastrada"),
Labels.getLabel("editarPuntoVentaController.window.title"),
Messagebox.OK, Messagebox.EXCLAMATION);
return false;
}
}
}
return true;
}
public void onClick$btnRemoveChaveAntifraude(Event event) {
try{
PtovtaAntifraude ptovtaAntifraude = (PtovtaAntifraude)ptovtaAntifraudeList.getSelected();
if(ptovtaAntifraude != null) {
int resp = Messagebox.show(
Labels.getLabel("editarPuntoVentaController.MSG.borrarChaveAntifraude", new String[] {ptovtaAntifraude.getEmpresa() != null ? ptovtaAntifraude.getEmpresa().getNombempresa() : ""}),
Labels.getLabel("editarPuntoVentaController.window.title"),
Messagebox.YES | Messagebox.NO, Messagebox.QUESTION);
if (resp == Messagebox.YES) {
puntoVenta.removeChaveAntifurto(ptovtaAntifraude);
if(ptovtaAntifraude.getPtovtaAntifraudeId() != null) {
ptovtaAntifraudeService.borrar(ptovtaAntifraude);
}
ptovtaAntifraudeList.setData(puntoVenta.getPtovtaAntifraudes());
}
}
} catch (Exception e){
log.error("", e);
}
}
public void onClick$radIndvendsegtabelaNo(Event event) { public void onClick$radIndvendsegtabelaNo(Event event) {
if (radIndvendsegtabelaNo.isChecked()) { if (radIndvendsegtabelaNo.isChecked()) {
radIndestansegtabelaSi.setDisabled(true); radIndestansegtabelaSi.setDisabled(true);
@ -3556,4 +3652,8 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
this.radIndvendsegtabelaNo = radIndvendsegtabelaNo; this.radIndvendsegtabelaNo = radIndvendsegtabelaNo;
} }
public List<Empresa> getLsEmpresasSemTodos() {
return lsEmpresasSemTodos;
}
} }

View File

@ -1,32 +1,62 @@
package com.rjconsultores.ventaboletos.web.gui.controladores.relatorios.integracaoantifraude; package com.rjconsultores.ventaboletos.web.gui.controladores.relatorios.integracaoantifraude;
public enum EStatusKonduto { import java.util.List;
PENDENTE("P", "Pendente"),
APROVADO("A", "Aprovado"),
NEGADO("N", "Negado");
private String id; public enum EStatusKonduto {
PENDING("PENDING", "Pendente"),
APPROVED("APPROVED","Aprovado"),
DECLINED("DECLINED","Negado"),
FRAUD("FRAUD","Fraude"),
NOT_AUTHORIZED("NOT_AUTHORIZED","Não autorizado"),
NOT_ANALYZED("NOT_ANALYZED","Não analisado"),
CANCELED("CANCELED","Cancelado");
private String codigo;
private String descricao; private String descricao;
private EStatusKonduto(String id, String descricao) { private EStatusKonduto(String codigo, String descricao) {
this.id = id; this.codigo = codigo;
this.descricao = descricao; this.descricao = descricao;
} }
public String getId() { public String getCodigo() {
return id; return codigo;
} }
public String getDescricao() { public String getDescricao() {
return descricao; return descricao;
} }
public static String getDescricaoTodos(List<EStatusKonduto> list) {
StringBuilder str = new StringBuilder();
for (EStatusKonduto eStatusKonduto : list) {
if(str.length() > 0) {
str.append(", ");
}
str.append(eStatusKonduto.getDescricao());
}
return str.toString();
}
public static String getIdTodos(List<EStatusKonduto> list) {
StringBuilder str = new StringBuilder();
for (EStatusKonduto eStatusKonduto : list) {
if(str.length() > 0) {
str.append(", ");
}
str.append("'").append(eStatusKonduto.getCodigo()).append("'");
}
return str.toString();
}
public static EStatusKonduto getStatusKondutoPorId(String id) { public static EStatusKonduto getStatusKondutoPorId(String id) {
for (EStatusKonduto status : EStatusKonduto.values()) { for (EStatusKonduto status: EStatusKonduto.values()) {
if (status.getId().equals(id)) { if (status.getCodigo().equals(id)) {
return status; return status;
} }
} }
throw new IllegalArgumentException("Status Konduto não encontrado."); throw new IllegalArgumentException("Status Konduto não encontrado.");
} }
} }

View File

@ -0,0 +1,47 @@
package com.rjconsultores.ventaboletos.web.gui.controladores.relatorios.integracaoantifraude;
import java.util.List;
public enum EStatusKondutoEnvio {
ENVIADO("Enviado"),
PENDENTE("Pendente"),
ENVIADO_POSTERIOR("Enviado Posterior");
private String descricao;
private EStatusKondutoEnvio(String descricao) {
this.descricao = descricao;
}
public String getDescricao() {
return descricao;
}
public static String getDescricaoTodos(List<EStatusKondutoEnvio> list) {
StringBuilder str = new StringBuilder();
for (EStatusKondutoEnvio eStatusKondutoEnvio : list) {
if(str.length() > 0) {
str.append(", ");
}
str.append(eStatusKondutoEnvio.getDescricao());
}
return str.toString();
}
public static String getIdTodos(List<EStatusKondutoEnvio> list) {
StringBuilder str = new StringBuilder();
for (EStatusKondutoEnvio eStatusKondutoEnvio : list) {
if(str.length() > 0) {
str.append(", ");
}
str.append("'").append(eStatusKondutoEnvio.toString()).append("'");
}
return str.toString();
}
public static EStatusKondutoEnvio getStatusKondutoPorId(String id) {
return EStatusKondutoEnvio.valueOf(id);
}
}

View File

@ -0,0 +1,58 @@
package com.rjconsultores.ventaboletos.web.gui.controladores.relatorios.integracaoantifraude;
import java.util.List;
public enum EStatusKondutoTotalBus {
PENDENTE("P", "Pendente"),
APROVADO("A", "Aprovado"),
NEGADO("N", "Negado"),
STATUS_NEGADO_CARTAO("NC", "Cartao não Aprovado");
private String id;
private String descricao;
private EStatusKondutoTotalBus(String id, String descricao) {
this.id = id;
this.descricao = descricao;
}
public String getId() {
return id;
}
public String getDescricao() {
return descricao;
}
public static EStatusKondutoTotalBus getStatusKondutoPorId(String id) {
for (EStatusKondutoTotalBus status : EStatusKondutoTotalBus.values()) {
if (status.getId().equals(id)) {
return status;
}
}
throw new IllegalArgumentException("Status Konduto totalBus não encontrado.");
}
public static String getDescricaoTodos(List<EStatusKondutoTotalBus> list) {
StringBuilder str = new StringBuilder();
for (EStatusKondutoTotalBus eStatusKondutoTotalBus : list) {
if(str.length() > 0) {
str.append(", ");
}
str.append(eStatusKondutoTotalBus.getDescricao());
}
return str.toString();
}
public static String getIdTodos(List<EStatusKondutoTotalBus> list) {
StringBuilder str = new StringBuilder();
for (EStatusKondutoTotalBus eStatusKondutoTotalBus : list) {
if(str.length() > 0) {
str.append(", ");
}
str.append("'").append(eStatusKondutoTotalBus.getId()).append("'");
}
return str.toString();
}
}

View File

@ -1,7 +1,6 @@
package com.rjconsultores.ventaboletos.web.gui.controladores.relatorios.integracaoantifraude; package com.rjconsultores.ventaboletos.web.gui.controladores.relatorios.integracaoantifraude;
import java.sql.SQLException; import java.sql.SQLException;
import java.util.ArrayList;
import java.util.Date; import java.util.Date;
import java.util.HashMap; import java.util.HashMap;
import java.util.List; import java.util.List;
@ -11,6 +10,7 @@ import org.zkoss.util.resource.Labels;
import org.zkoss.zk.ui.event.EventListener; import org.zkoss.zk.ui.event.EventListener;
import com.rjconsultores.ventaboletos.entidad.Empresa; import com.rjconsultores.ventaboletos.entidad.Empresa;
import com.rjconsultores.ventaboletos.entidad.PuntoVenta;
import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioIntegracaoAntiFraude; import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioIntegracaoAntiFraude;
import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio; import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio;
import com.rjconsultores.ventaboletos.utils.FormataUtil; import com.rjconsultores.ventaboletos.utils.FormataUtil;
@ -49,34 +49,32 @@ public class EventListenerExecutarRelatorioIntegracaoAntiFraude extends EventLis
Empresa empresa = getController().getCmbEmpresa().getSelecteObject(Empresa.class); Empresa empresa = getController().getCmbEmpresa().getSelecteObject(Empresa.class);
parametros.put("empresaId", empresa.getEmpresaId()); parametros.put("empresaId", empresa.getEmpresaId());
parametros.put("empresa", empresa.getNombempresa()); parametros.put("empresa", empresa.getNombempresa());
List<StringBuilder> statusKondutoSelecionados = obtemIdsEDescricaoStatusKondutoSelecionados();
parametros.put("statusKondutoId", statusKondutoSelecionados.get(0).toString()); PuntoVenta puntoVenta = getController().getCmbPuntoVenta().getSelecteObject(PuntoVenta.class);
parametros.put("statusKonduto", statusKondutoSelecionados.get(1).toString()); if(puntoVenta != null) {
parametros.put("puntoventaId", puntoVenta.getPuntoventaId());
parametros.put("puntoventa", puntoVenta.getNombpuntoventa());
} else {
parametros.put("puntoventa", "Todos");
}
obtemIdsEDescricaoStatusKondutoSelecionados(parametros);
return parametros; return parametros;
} }
private List<StringBuilder> obtemIdsEDescricaoStatusKondutoSelecionados() { private void obtemIdsEDescricaoStatusKondutoSelecionados(Map<String, Object> parametros) {
StringBuilder idsKonduto = new StringBuilder(); List<EStatusKondutoTotalBus> statusKondutoTotalBusSelecionados = getController().getKondutoTotalBusList().getItensSelecionados(EStatusKondutoTotalBus.class);
StringBuilder descricaoKonduto = new StringBuilder(); parametros.put("statusKondutoTotalBusId", EStatusKondutoTotalBus.getIdTodos(statusKondutoTotalBusSelecionados));
List<Object> statusKondutoSelecionados = getController().getKondutoList().getItensSelecionados(); parametros.put("statusKondutoTotalBus", EStatusKondutoTotalBus.getDescricaoTodos(statusKondutoTotalBusSelecionados));
populaKondutoSelecionados(idsKonduto, descricaoKonduto, statusKondutoSelecionados);
ArrayList<StringBuilder> kondutosSelecionados = new ArrayList<StringBuilder>();
kondutosSelecionados.add(idsKonduto);
kondutosSelecionados.add(descricaoKonduto);
return kondutosSelecionados;
}
private void populaKondutoSelecionados(StringBuilder idsKonduto, StringBuilder descricaoKonduto, List<Object> statusKondutoSelecionados) { List<EStatusKondutoEnvio> statusKondutoEnvioSelecionados = getController().getKondutoEnvioList().getItensSelecionados(EStatusKondutoEnvio.class);
for (int i = 0; i < statusKondutoSelecionados.size(); i++) { parametros.put("statusKondutoEnvioId", EStatusKondutoEnvio.getIdTodos(statusKondutoEnvioSelecionados));
EStatusKonduto statusKonduto = (EStatusKonduto)statusKondutoSelecionados.get(i); parametros.put("statusKondutoEnvio", EStatusKondutoEnvio.getDescricaoTodos(statusKondutoEnvioSelecionados));
idsKonduto.append("'"+statusKonduto.getId()+"'");
descricaoKonduto.append(statusKonduto.getDescricao()); List<EStatusKonduto> statusKondutoSelecionados = getController().getKondutoList().getItensSelecionados(EStatusKonduto.class);
if (i != statusKondutoSelecionados.size()-1) { parametros.put("statusKondutoId", EStatusKonduto.getIdTodos(statusKondutoSelecionados));
idsKonduto.append(", "); parametros.put("statusKonduto", EStatusKonduto.getDescricaoTodos(statusKondutoSelecionados));
descricaoKonduto.append(", ");
}
}
} }
private String obtemPeriodo() { private String obtemPeriodo() {

View File

@ -1,5 +1,6 @@
package com.rjconsultores.ventaboletos.web.gui.controladores.relatorios.integracaoantifraude; package com.rjconsultores.ventaboletos.web.gui.controladores.relatorios.integracaoantifraude;
import java.util.ArrayList;
import java.util.Arrays; import java.util.Arrays;
import java.util.List; import java.util.List;
@ -13,9 +14,11 @@ import org.zkoss.zul.Button;
import org.zkoss.zul.Datebox; import org.zkoss.zul.Datebox;
import com.rjconsultores.ventaboletos.entidad.Empresa; import com.rjconsultores.ventaboletos.entidad.Empresa;
import com.rjconsultores.ventaboletos.entidad.PuntoVenta;
import com.rjconsultores.ventaboletos.enums.TypeEventListener; import com.rjconsultores.ventaboletos.enums.TypeEventListener;
import com.rjconsultores.ventaboletos.service.EmpresaService; import com.rjconsultores.ventaboletos.service.EmpresaService;
import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar; import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar;
import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxPuntoVenta;
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer; import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
import com.rjconsultores.ventaboletos.web.utilerias.MyListbox; import com.rjconsultores.ventaboletos.web.utilerias.MyListbox;
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderPersonalizado; import com.rjconsultores.ventaboletos.web.utilerias.render.RenderPersonalizado;
@ -26,7 +29,7 @@ public class RelatorioIntegracaoAntiFraudeController extends MyGenericForwardCom
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
public static final String TITULO_RELATORIO = "indexController.mniRelatorioIntegracaoAntifraude.label"; public static final String TITULO_RELATORIO = "indexController.mniRelatorioIntegracaoAntiFraude.label";
@Autowired @Autowired
private DataSource dataSource; private DataSource dataSource;
@ -38,18 +41,34 @@ public class RelatorioIntegracaoAntiFraudeController extends MyGenericForwardCom
private EmpresaService empresaService; private EmpresaService empresaService;
private List<Empresa> lsEmpresa; private List<Empresa> lsEmpresa;
private MyComboboxEstandar cmbEmpresa; private MyComboboxEstandar cmbEmpresa;
private List<PuntoVenta> lsPuntoVenta;
private MyComboboxPuntoVenta cmbPuntoVenta;
private List<EStatusKondutoTotalBus> lsStatusKondutoTotalBus;
private List<EStatusKonduto> lsStatusKonduto; private List<EStatusKonduto> lsStatusKonduto;
private List<EStatusKondutoEnvio> lsStatusKondutoEnvio;
private MyListbox kondutoList; private MyListbox kondutoList;
private MyListbox kondutoTotalBusList;
private MyListbox kondutoEnvioList;
private Button btnExecutarRelatorio; private Button btnExecutarRelatorio;
@Override @Override
public void doAfterCompose(Component comp) throws Exception { public void doAfterCompose(Component comp) throws Exception {
lsEmpresa = empresaService.obtenerTodos(); lsEmpresa = empresaService.obtenerTodos();
lsPuntoVenta = new ArrayList<PuntoVenta>();
super.doAfterCompose(comp); super.doAfterCompose(comp);
kondutoList.setItemRenderer(new RenderPersonalizado<EStatusKonduto>(Arrays.asList("descricao"))); kondutoList.setItemRenderer(new RenderPersonalizado<EStatusKonduto>(Arrays.asList("descricao")));
kondutoList.setData(Arrays.asList(EStatusKonduto.values())); kondutoList.setData(Arrays.asList(EStatusKonduto.values()));
kondutoTotalBusList.setItemRenderer(new RenderPersonalizado<EStatusKondutoTotalBus>(Arrays.asList("descricao")));
kondutoTotalBusList.setData(Arrays.asList(EStatusKondutoTotalBus.values()));
kondutoEnvioList.setItemRenderer(new RenderPersonalizado<EStatusKondutoEnvio>(Arrays.asList("descricao")));
kondutoEnvioList.setData(Arrays.asList(EStatusKondutoEnvio.values()));
configuraEventosExecucaoRelatorio(); configuraEventosExecucaoRelatorio();
} }
@ -86,4 +105,28 @@ public class RelatorioIntegracaoAntiFraudeController extends MyGenericForwardCom
return lsEmpresa; return lsEmpresa;
} }
public List<EStatusKondutoTotalBus> getLsStatusKondutoTotalBus() {
return lsStatusKondutoTotalBus;
}
public List<EStatusKondutoEnvio> getLsStatusKondutoEnvio() {
return lsStatusKondutoEnvio;
}
public List<PuntoVenta> getLsPuntoVenta() {
return lsPuntoVenta;
}
public MyComboboxPuntoVenta getCmbPuntoVenta() {
return cmbPuntoVenta;
}
public MyListbox getKondutoTotalBusList() {
return kondutoTotalBusList;
}
public MyListbox getKondutoEnvioList() {
return kondutoEnvioList;
}
} }

View File

@ -13,6 +13,8 @@ public class ValidaFormRelatorioIntegracaoAntiFraude implements ValidaForm {
private static final String MSG_DATA_INICIAL_MAIOR_FINAL = "relatorioPosicaoVendaBilheteIdosoController.MSG.dataInicialMaiorFinal"; private static final String MSG_DATA_INICIAL_MAIOR_FINAL = "relatorioPosicaoVendaBilheteIdosoController.MSG.dataInicialMaiorFinal";
private static final String MSG_EMPRESA_NAO_INFORMADO = "relatorioPosicaoVendaBilheteIdosoController.MSG.informarEmpresa"; private static final String MSG_EMPRESA_NAO_INFORMADO = "relatorioPosicaoVendaBilheteIdosoController.MSG.informarEmpresa";
private static final String MSG_STATUS_KONDUTO_NAO_INFORMADO = "relatorioIntegracaoAntiFraudeController.MSG.informarStatusKonduto"; private static final String MSG_STATUS_KONDUTO_NAO_INFORMADO = "relatorioIntegracaoAntiFraudeController.MSG.informarStatusKonduto";
private static final String MSG_STATUS_KONDUTO_ENVIO_NAO_INFORMADO = "relatorioIntegracaoAntiFraudeController.MSG.informarStatusKondutoEnvio";
private static final String MSG_STATUS_KONDUTO_TOTALBUS_NAO_INFORMADO = "relatorioIntegracaoAntiFraudeController.MSG.informarStatusKondutoTotalBus";
private RelatorioIntegracaoAntiFraudeController controller; private RelatorioIntegracaoAntiFraudeController controller;
@ -28,10 +30,20 @@ public class ValidaFormRelatorioIntegracaoAntiFraude implements ValidaForm {
private boolean isFiltrosValidos() { private boolean isFiltrosValidos() {
return possuiEmpresaSelecionada() return possuiEmpresaSelecionada()
&& possuiStatusKondutoSelecionado(); && possuiStatusKondutoEnvioSelecionado()
&& possuiStatusKondutoSelecionado()
&& possuiStatusKondutoTotalBusSelecionado();
} }
private Boolean possuiStatusKondutoSelecionado() { private boolean possuiStatusKondutoEnvioSelecionado() {
if (controller.getKondutoEnvioList().getSelectedsItens().isEmpty()) {
MensagensUtils.showMessageInformation(MSG_STATUS_KONDUTO_ENVIO_NAO_INFORMADO, TITULO_RELATORIO);
return false;
}
return true;
}
private boolean possuiStatusKondutoSelecionado() {
if (controller.getKondutoList().getSelectedsItens().isEmpty()) { if (controller.getKondutoList().getSelectedsItens().isEmpty()) {
MensagensUtils.showMessageInformation(MSG_STATUS_KONDUTO_NAO_INFORMADO, TITULO_RELATORIO); MensagensUtils.showMessageInformation(MSG_STATUS_KONDUTO_NAO_INFORMADO, TITULO_RELATORIO);
return false; return false;
@ -39,6 +51,14 @@ public class ValidaFormRelatorioIntegracaoAntiFraude implements ValidaForm {
return true; return true;
} }
private Boolean possuiStatusKondutoTotalBusSelecionado() {
if (controller.getKondutoTotalBusList().getSelectedsItens().isEmpty()) {
MensagensUtils.showMessageInformation(MSG_STATUS_KONDUTO_TOTALBUS_NAO_INFORMADO, TITULO_RELATORIO);
return false;
}
return true;
}
private boolean possuiEmpresaSelecionada() { private boolean possuiEmpresaSelecionada() {
if (controller.getCmbEmpresa().getSelectedItem() == null) { if (controller.getCmbEmpresa().getSelectedItem() == null) {
MensagensUtils.showMessageInformation(MSG_EMPRESA_NAO_INFORMADO, TITULO_RELATORIO); MensagensUtils.showMessageInformation(MSG_EMPRESA_NAO_INFORMADO, TITULO_RELATORIO);

View File

@ -121,4 +121,11 @@ public class MyComboboxPuntoVenta extends Combobox {
this.sinTodos = sinTodos; this.sinTodos = sinTodos;
} }
public <T> T getSelecteObject(Class<T> cType) {
if (this.getSelectedItem() != null) {
return cType.cast(this.getSelectedItem().getValue());
}
return null;
}
} }

View File

@ -135,6 +135,18 @@ public class MyListbox extends Listbox {
return selecteds; return selecteds;
} }
public <E> List<E> getItensSelecionados(Class<E> classe) {
int qtd = this.getSelectedCount();
List<E> selecteds = new ArrayList<E>();
for (int i = 0; i < qtd; i++) {
Object obj = modelList.get(((Listitem)getSelectedItems().toArray()[i]).getIndex());
if(classe.isInstance(obj)) {
selecteds.add(classe.cast(obj));
}
}
return selecteds;
}
public List<Object> getSelectedItemsByIndex() { public List<Object> getSelectedItemsByIndex() {
List<Object> selecteds = new ArrayList<Object>(); List<Object> selecteds = new ArrayList<Object>();
Set<Listitem> selList = this.getSelectedItems(); Set<Listitem> selList = this.getSelectedItems();

View File

@ -9,7 +9,7 @@ import com.rjconsultores.ventaboletos.web.utilerias.menu.DefaultItemMenuSistema;
public class ItemMenuRelatorioIntegracaoAntiFraude extends DefaultItemMenuSistema { public class ItemMenuRelatorioIntegracaoAntiFraude extends DefaultItemMenuSistema {
public ItemMenuRelatorioIntegracaoAntiFraude() { public ItemMenuRelatorioIntegracaoAntiFraude() {
super("indexController.mniRelatorioIntegracaoAntifraude.label"); super("indexController.mniRelatorioIntegracaoAntiFraude.label");
} }
@Override @Override
@ -20,7 +20,7 @@ public class ItemMenuRelatorioIntegracaoAntiFraude extends DefaultItemMenuSistem
@Override @Override
public void ejecutar() { public void ejecutar() {
PantallaUtileria.openWindow("/gui/relatorios/filtroRelatorioIntegracaoAntiFraude.zul", PantallaUtileria.openWindow("/gui/relatorios/filtroRelatorioIntegracaoAntiFraude.zul",
Labels.getLabel("indexController.mniRelatorioIntegracaoAntifraude.label"), getArgs() ,desktop); Labels.getLabel("indexController.mniRelatorioIntegracaoAntiFraude.label"), getArgs() ,desktop);
} }
} }

View File

@ -0,0 +1,25 @@
package com.rjconsultores.ventaboletos.web.utilerias.render;
import org.apache.commons.lang.StringUtils;
import org.zkoss.zul.Listcell;
import org.zkoss.zul.Listitem;
import org.zkoss.zul.ListitemRenderer;
import com.rjconsultores.ventaboletos.entidad.PtovtaAntifraude;
public class RenderPtovtaAntifraude implements ListitemRenderer {
@Override
public void render(Listitem lstm, Object o) throws Exception {
PtovtaAntifraude ptoVta = (PtovtaAntifraude) o;
Listcell lc = new Listcell(ptoVta.getEmpresa() == null ? " - " : ptoVta.getEmpresa().getNombempresa());
lc.setParent(lstm);
lc = new Listcell(StringUtils.isNotBlank(ptoVta.getChave()) ? ptoVta.getChave() : "");
lc.setParent(lstm);
lstm.setAttribute("data", ptoVta);
}
}

View File

@ -474,6 +474,7 @@
<value>com.rjconsultores.ventaboletos.entidad.EmpresaEmail</value> <value>com.rjconsultores.ventaboletos.entidad.EmpresaEmail</value>
<value>com.rjconsultores.ventaboletos.entidad.EmpresaEmailConfig</value> <value>com.rjconsultores.ventaboletos.entidad.EmpresaEmailConfig</value>
<value>com.rjconsultores.ventaboletos.entidad.CtrlFechamentoCaixa</value> <value>com.rjconsultores.ventaboletos.entidad.CtrlFechamentoCaixa</value>
<value>com.rjconsultores.ventaboletos.entidad.PtovtaAntifraude</value>
</list> </list>
</property> </property>

View File

@ -279,7 +279,7 @@ indexController.mniRelatorioGratuidadeIdosoDeficiente.label = Gratuidades Idoso/
indexController.mniRelatorioVendasBilheteiro.label = Ventas por agente de pasajes indexController.mniRelatorioVendasBilheteiro.label = Ventas por agente de pasajes
indexController.mniRelatorioVendasBilheteiroSintetico.label = Ventas por agentes sintético indexController.mniRelatorioVendasBilheteiroSintetico.label = Ventas por agentes sintético
indexController.mniRelatorioAgenciasNaoImportadas.label = Reporte puntos venta no importados indexController.mniRelatorioAgenciasNaoImportadas.label = Reporte puntos venta no importados
indexController.mniRelatorioIntegracaoAntifraude.label = Relatório de Integração com Anti-Fraude indexController.mniRelatorioIntegracaoAntiFraude.label = Relatório de Integração com Anti-Fraude
indexController.mniRelatorioCheckin.label = Checkin's indexController.mniRelatorioCheckin.label = Checkin's
indexController.mniFechamentoParamgeral.label = Cierre cuenta indexController.mniFechamentoParamgeral.label = Cierre cuenta
indexController.mniFechamentoParamptovta.label = Cierre cuenta contábil punto de venta indexController.mniFechamentoParamptovta.label = Cierre cuenta contábil punto de venta
@ -1543,6 +1543,13 @@ editarPuntoVentaController.label.lbIndPermisoTasaEmbarque.value = Permite desele
editarPuntoVentaController.label.lbIndPermisoTasaEmbarqueVtaManual.value = Permite deseleccionar Tasa de abordaje en Venda Manual editarPuntoVentaController.label.lbIndPermisoTasaEmbarqueVtaManual.value = Permite deseleccionar Tasa de abordaje en Venda Manual
editarPuntoVentaController.label.lbIndPermisoTasaEmbarqueVtaAgencia.value = Permite deseleccionar Tasa de abordaje en Venda Agencia editarPuntoVentaController.label.lbIndPermisoTasaEmbarqueVtaAgencia.value = Permite deseleccionar Tasa de abordaje en Venda Agencia
editarPuntoVentaController.tab.label.empresas = Empresas editarPuntoVentaController.tab.label.empresas = Empresas
editarPuntoVentaController.tab.label.antifraude = Antifraude
editarPuntoVentaController.btnAddChaveAntifurto.tooltiptext = Añade llave de antifraude para la empresa informada
editarPuntoVentaController.btnRemoveChaveAntifurto.tooltiptext = Remueve llave de antifraude de la empresa seleccionada
editarPuntoVentaController.MSG.borrarChaveAntifraude = Desea eliminar la llave antifraude empresa {0} ?
editarPuntoVentaController.MSG.empresaAntifraudeJaCadastrada = Empresa informada ya dada de alta
editarPuntoVentaController.MSG.chaveAntifraudeNaoInformada = Informe la llave antifraude
editarPuntoVentaController.MSG.empresaAntifraudeNaoInformada = Informe la empresa
editarPuntoVentaController.label.isento = ISENTO editarPuntoVentaController.label.isento = ISENTO
editarPuntoVentaController.label.totvs = Integracion TOTVS editarPuntoVentaController.label.totvs = Integracion TOTVS
@ -6759,8 +6766,12 @@ integracion.totvs.ja.cadastrado = Esta agencia ya tiene registrado en el sistema
relatorioIntegracaoAntiFraudeController.lblDataIni.value = Período Inicial relatorioIntegracaoAntiFraudeController.lblDataIni.value = Período Inicial
relatorioIntegracaoAntiFraudeController.lblDataFin.value = Período Final relatorioIntegracaoAntiFraudeController.lblDataFin.value = Período Final
relatorioIntegracaoAntiFraudeController.lblEmpresa.value = Empresa relatorioIntegracaoAntiFraudeController.lblEmpresa.value = Empresa
relatorioIntegracaoAntiFraudeController.lblStatusKondutoTotalBus.value = Status Konduto totalBus
relatorioIntegracaoAntiFraudeController.lblStatusKonduto.value = Status Konduto relatorioIntegracaoAntiFraudeController.lblStatusKonduto.value = Status Konduto
relatorioIntegracaoAntiFraudeController.lblStatusKondutoEnvio.value = Status Envio
relatorioIntegracaoAntiFraudeController.MSG.informarStatusKonduto = Favor informar ao menos um status Konduto. relatorioIntegracaoAntiFraudeController.MSG.informarStatusKonduto = Favor informar ao menos um status Konduto.
relatorioIntegracaoAntiFraudeController.MSG.informarStatusKondutoTotalBus = Favor informar ao menos um status Konduto totalBus.
relatorioIntegracaoAntiFraudeController.MSG.informarStatusKondutoEnvio = Favor informar ao menos um status Konduto Envio.
# Búsqueda Hotel # Búsqueda Hotel
busquedaHotelController.window.title = Hotel busquedaHotelController.window.title = Hotel

View File

@ -288,7 +288,7 @@ indexController.mniRelatorioVendasBilheteiro.label = Vendas por Bilheteiro
indexController.mniRelatorioVendasBilheteiroSintetico.label = Vendas por Bilheteiro Sintético indexController.mniRelatorioVendasBilheteiroSintetico.label = Vendas por Bilheteiro Sintético
indexController.mniRelatorioCancelamentoAutomaticoECF.label = Relatório de Cancelamento Automatico ECF indexController.mniRelatorioCancelamentoAutomaticoECF.label = Relatório de Cancelamento Automatico ECF
indexController.mniRelatorioAgenciasNaoImportadas.label = Relatório de Agências não Importadas indexController.mniRelatorioAgenciasNaoImportadas.label = Relatório de Agências não Importadas
indexController.mniRelatorioIntegracaoAntifraude.label = Relatório de Integração com Anti-Fraude indexController.mniRelatorioIntegracaoAntiFraude.label = Relatório de Integração com Anti-Fraude
indexController.mniRelatorioCheckin.label = Checkin's indexController.mniRelatorioCheckin.label = Checkin's
indexController.mniFechamentoParamgeral.label = Configuração de Boleto indexController.mniFechamentoParamgeral.label = Configuração de Boleto
indexController.mniFechamentoParamptovta.label = Fechamento Conta Corrente Agência indexController.mniFechamentoParamptovta.label = Fechamento Conta Corrente Agência
@ -1702,6 +1702,13 @@ editarPuntoVentaController.lbCheckCartaoAG.value = Cartão
editarPuntoVentaController.lbCheckBoletoAG.value = Boleto editarPuntoVentaController.lbCheckBoletoAG.value = Boleto
editarPuntoVentaController.lbCheckDepositoAG.value = Depósito editarPuntoVentaController.lbCheckDepositoAG.value = Depósito
editarPuntoVentaController.lbCheckAdiantamentoAG.value = Adiantamentos editarPuntoVentaController.lbCheckAdiantamentoAG.value = Adiantamentos
editarPuntoVentaController.tab.label.antifraude = Antifraude
editarPuntoVentaController.btnAddChaveAntifraude.tooltiptext = Adiciona chave de antifraude para a empresa informada
editarPuntoVentaController.btnRemoveChaveAntifraude.tooltiptext = Remove chave de antifraude da empresa selecionada
editarPuntoVentaController.MSG.borrarChaveAntifraude = Deseja eliminar a chave antifraude empresa {0} ?
editarPuntoVentaController.MSG.empresaAntifraudeJaCadastrada = Empresa informada já cadastrada
editarPuntoVentaController.MSG.chaveAntifraudeNaoInformada = Informe a chave antifraude
editarPuntoVentaController.MSG.empresaAntifraudeNaoInformada = Informe a empresa
editarPuntoVentaController.lbCheckDinheiro.value=R$ editarPuntoVentaController.lbCheckDinheiro.value=R$
editarPuntoVentaController.lbCheckCredito.value=CC editarPuntoVentaController.lbCheckCredito.value=CC
@ -7246,8 +7253,12 @@ filtroRelatorioAgenciasNaoImportadas.lbDataFin.value = Data Final
relatorioIntegracaoAntiFraudeController.lblDataIni.value = Período Inicial relatorioIntegracaoAntiFraudeController.lblDataIni.value = Período Inicial
relatorioIntegracaoAntiFraudeController.lblDataFin.value = Período Final relatorioIntegracaoAntiFraudeController.lblDataFin.value = Período Final
relatorioIntegracaoAntiFraudeController.lblEmpresa.value = Empresa relatorioIntegracaoAntiFraudeController.lblEmpresa.value = Empresa
relatorioIntegracaoAntiFraudeController.lblStatusKondutoTotalBus.value = Status Konduto totalBus
relatorioIntegracaoAntiFraudeController.lblStatusKonduto.value = Status Konduto relatorioIntegracaoAntiFraudeController.lblStatusKonduto.value = Status Konduto
relatorioIntegracaoAntiFraudeController.lblStatusKondutoEnvio.value = Status Envio
relatorioIntegracaoAntiFraudeController.MSG.informarStatusKonduto = Favor informar ao menos um status Konduto. relatorioIntegracaoAntiFraudeController.MSG.informarStatusKonduto = Favor informar ao menos um status Konduto.
relatorioIntegracaoAntiFraudeController.MSG.informarStatusKondutoTotalBus = Favor informar ao menos um status Konduto totalBus.
relatorioIntegracaoAntiFraudeController.MSG.informarStatusKondutoEnvio = Favor informar ao menos um status Konduto Envio.
# Buscar Manutenção Pacote # Buscar Manutenção Pacote
busquedaManutencaoPacoteController.window.title = Pesquisar Venda Pacotes busquedaManutencaoPacoteController.window.title = Pesquisar Venda Pacotes

View File

@ -46,9 +46,6 @@
<tab <tab
label="${c:l('editarEmpresaController.fidelidade.label')}" /> label="${c:l('editarEmpresaController.fidelidade.label')}" />
<tab
label="${c:l('editarEmpresaController.antiFraude.label')}" />
<tab <tab
label="${c:l('editarEmpresaController.configCallCenter.label')}" /> label="${c:l('editarEmpresaController.configCallCenter.label')}" />
@ -1220,25 +1217,6 @@
</grid> </grid>
</tabpanel> </tabpanel>
<tabpanel>
<grid fixedLayout="true">
<columns>
<column width="25%" />
<column width="75%" />
</columns>
<rows>
<row>
<label
value="${c:l('editarEmpresaController.antiFraude.chave.label')}" />
<textbox id="txtChaveAntifraude"
maxlength="50"
value="@{winEditarEmpresa$composer.empresa.antifraudekey}"
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
</row>
</rows>
</grid>
</tabpanel>
<tabpanel> <tabpanel>
<tabbox> <tabbox>

View File

@ -6,7 +6,7 @@
<zk xmlns="http://www.zkoss.org/2005/zul"> <zk xmlns="http://www.zkoss.org/2005/zul">
<window id="winEditarPuntoVenta" border="normal" <window id="winEditarPuntoVenta" border="normal"
apply="${editarPuntoVentaController}" height="575px" width="640px" apply="${editarPuntoVentaController}" height="575px" width="700px"
contentStyle="overflow:auto" xmlns:h="http://www.w3.org/1999/xhtml" contentStyle="overflow:auto" xmlns:h="http://www.w3.org/1999/xhtml"
title="${c:l('editarPuntoVentaController.window.title')}"> title="${c:l('editarPuntoVentaController.window.title')}">
@ -80,6 +80,9 @@
label="${c:l('editarPuntoVentaController.tab.label.historico')}" /> label="${c:l('editarPuntoVentaController.tab.label.historico')}" />
<tab <tab
label="${c:l('editarPuntoVentaController.tab.label.bloqueiaVendaImpPosterior')}" /> label="${c:l('editarPuntoVentaController.tab.label.bloqueiaVendaImpPosterior')}" />
<tab
label="${c:l('editarPuntoVentaController.tab.label.antifraude')}" />
</tabs> </tabs>
<tabpanels> <tabpanels>
@ -1867,6 +1870,62 @@
</listhead> </listhead>
</listbox> </listbox>
</tabpanel> </tabpanel>
<tabpanel height="470px" style="overflow:auto;">
<grid fixedLayout="true">
<columns>
<column width="10%" />
<column width="30%" />
<column width="15%" />
<column width="45%" />
</columns>
<rows>
<row>
<label
value="${c:l('editarPuntoVentaController.lbEmpresa.value')}" />
<combobox id="cmbEmpresaPtoVtaAntifraude"
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
mold="rounded"
buttonVisible="true"
width="95%"
model="@{winEditarPuntoVenta$composer.lsEmpresasSemTodos}" />
<label
value="${c:l('editarEmpresaController.antiFraude.chave.label')}" />
<textbox id="txtChaveAntifraude"
maxlength="50"
width="98%"
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
</row>
</rows>
</grid>
<toolbar>
<hbox spacing="5px" style="padding:1px"
align="right">
<button
id="btnAddChaveAntifraude" height="20"
image="/gui/img/add.png" width="35px"
tooltiptext="${c:l('editarPuntoVentaController.btnAddChaveAntifraude.tooltiptext')}" />
<button
id="btnRemoveChaveAntifraude" height="20"
image="/gui/img/remove.png" width="35px"
tooltiptext="${c:l('editarPuntoVentaController.btnRemoveChaveAntifraude.tooltiptext')}" />
</hbox>
</toolbar>
<listbox id="ptovtaAntifraudeList"
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
vflex="true" multiple="false" style="overflow:auto">
<listhead sizable="true"
style="overflow:auto">
<listheader id="lhEmpreaAntifraude"
image="/gui/img/create_doc.gif"
label="${c:l('editarPuntoVentaController.lbEmpresa.value')}" />
<listheader id="lhChaveAntifraude"
image="/gui/img/create_doc.gif"
label="${c:l('editarEmpresaController.antiFraude.chave.label')}" />
</listhead>
</listbox>
</tabpanel>
</tabpanels> </tabpanels>
</tabbox> </tabbox>
</window> </window>

View File

@ -7,7 +7,7 @@
<zk xmlns="http://www.zkoss.org/2005/zul"> <zk xmlns="http://www.zkoss.org/2005/zul">
<window id="winfiltroRelatorioIntegracaoAntiFraude" apply="${relatorioIntegracaoAntiFraudeController}" <window id="winfiltroRelatorioIntegracaoAntiFraude" apply="${relatorioIntegracaoAntiFraudeController}"
contentStyle="overflow:auto" contentStyle="overflow:auto"
height="480x" width="500px" border="normal"> height="480x" width="600px" border="normal">
<grid fixedLayout="true"> <grid fixedLayout="true">
<columns> <columns>
<column width="25%" /> <column width="25%" />
@ -35,10 +35,34 @@
model="@{winfiltroRelatorioIntegracaoAntiFraude$composer.lsEmpresa}" model="@{winfiltroRelatorioIntegracaoAntiFraude$composer.lsEmpresa}"
width="100%" /> width="100%" />
</row> </row>
<row spans="1,3">
<label
value="${c:l('busquedaUsuarioController.puntoventa.label')}" />
<combobox id="cmbPuntoVenta"
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxPuntoVenta"
width="100%" mold="rounded" buttonVisible="true"
model="@{winBusquedaCalculoComissao$composer.lsPuntoVenta}" />
</row>
<row spans="1, 3">
<label
value="${c:l('relatorioIntegracaoAntiFraudeController.lblStatusKondutoEnvio.value')}" />
<listbox id="kondutoEnvioList" rows="${relatorioIntegracaoAntiFraudeController.lsStatusKondutoEnvio.size}" vflex="false"
width="100%" multiple="true" checkmark="true"
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox">
</listbox>
</row>
<row spans="1, 3">
<label
value="${c:l('relatorioIntegracaoAntiFraudeController.lblStatusKondutoTotalBus.value')}" />
<listbox id="kondutoTotalBusList" rows="${relatorioIntegracaoAntiFraudeController.lsStatusKondutoTotalBus.size}" vflex="false"
width="100%" multiple="true" checkmark="true"
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox">
</listbox>
</row>
<row spans="1, 3"> <row spans="1, 3">
<label <label
value="${c:l('relatorioIntegracaoAntiFraudeController.lblStatusKonduto.value')}" /> value="${c:l('relatorioIntegracaoAntiFraudeController.lblStatusKonduto.value')}" />
<listbox id="kondutoList" rows="3" vflex="false" <listbox id="kondutoList" rows="${relatorioIntegracaoAntiFraudeController.lsStatusKonduto.size}" vflex="false"
width="100%" multiple="true" checkmark="true" width="100%" multiple="true" checkmark="true"
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"> use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox">
</listbox> </listbox>