fixes bug#13945

dev:lucas

qua: 

git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@92797 d1611594-4594-4d17-8e1d-87c2c4800839
master
lucas.taia 2019-05-03 18:29:10 +00:00
parent f161462f15
commit 6b0d828901
4 changed files with 10 additions and 10 deletions

View File

@ -93,7 +93,7 @@ public class RelatorioQuadroDemonstrativoMovimentoPassageiros extends Relatorio
sql.append(" AND b.indstatusboleto <> 'C' ");
if (!linhasIds.equals("0")) {
sql.append(" AND r.ruta_id IN (").append(linhasIds).append(") ");
sql.append(" AND r.NUMRUTA = '").append(linhasIds).append("' ");
}
sql.append(" AND b.feccorrida BETWEEN To_date('").append(dataDe).append("', 'dd/mm/yyyy HH24:mi:ss') ");

View File

@ -1,6 +1,6 @@
<?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="RelatorioBPe" pageWidth="800" pageHeight="842" whenNoDataType="NoDataSection" columnWidth="760" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="2de20ee0-535e-49d2-a7be-c24a30351d9f">
<property name="ireport.zoom" value="1.1269722013523664"/>
<property name="ireport.zoom" value="0.8467108950806659"/>
<property name="ireport.x" value="0"/>
<property name="ireport.y" value="0"/>
<property name="net.sf.jasperreports.export.xls.exclude.origin.band.1" value="title"/>
@ -141,7 +141,7 @@
<staticText>
<reportElement x="219" y="0" width="219" height="15" uuid="51dd342e-a2ed-4398-890e-66531dea6d89"/>
<textElement textAlignment="Left" markup="none">
<font size="8" isBold="true" pdfFontName="Helvetica-Bold"/>
<font size="10" isBold="true" pdfFontName="Helvetica-Bold"/>
</textElement>
<text><![CDATA[Destino]]></text>
</staticText>
@ -153,14 +153,14 @@
<text><![CDATA[Extensão KM]]></text>
</staticText>
<staticText>
<reportElement x="571" y="0" width="116" height="15" uuid="345032f7-5553-45d9-b43c-e99c5fa6199b"/>
<reportElement x="571" y="0" width="104" height="15" uuid="345032f7-5553-45d9-b43c-e99c5fa6199b"/>
<textElement textAlignment="Left" markup="none">
<font size="10" isBold="true" pdfFontName="Helvetica-Bold"/>
</textElement>
<text><![CDATA[Pagantes Ida]]></text>
</staticText>
<staticText>
<reportElement x="687" y="0" width="63" height="15" uuid="4beb4651-7357-407d-8883-0b606361907a"/>
<reportElement x="676" y="0" width="84" height="15" uuid="4beb4651-7357-407d-8883-0b606361907a"/>
<textElement textAlignment="Left" markup="none">
<font size="10" isBold="true" pdfFontName="Helvetica-Bold"/>
</textElement>
@ -178,7 +178,7 @@
<textFieldExpression><![CDATA[$F{origem}]]></textFieldExpression>
</textField>
<textField isBlankWhenNull="true">
<reportElement x="687" y="0" width="63" height="15" uuid="e6244540-af1b-4d94-8b0f-d2c3e501db61"/>
<reportElement x="676" y="0" width="84" height="15" uuid="e6244540-af1b-4d94-8b0f-d2c3e501db61"/>
<textElement>
<font size="10"/>
</textElement>
@ -199,7 +199,7 @@
<textFieldExpression><![CDATA[$F{km}]]></textFieldExpression>
</textField>
<textField isBlankWhenNull="true">
<reportElement x="571" y="0" width="116" height="15" uuid="319b345c-ad14-4025-8fd3-3e34e8cacd54"/>
<reportElement x="571" y="0" width="104" height="15" uuid="319b345c-ad14-4025-8fd3-3e34e8cacd54"/>
<textElement>
<font size="10"/>
</textElement>
@ -217,14 +217,14 @@
<textFieldExpression><![CDATA[$V{SOMA_KM}]]></textFieldExpression>
</textField>
<textField isBlankWhenNull="true">
<reportElement x="571" y="0" width="116" height="15" uuid="4c886880-2c26-44c3-885e-4fa8b6c5ba81"/>
<reportElement x="571" y="0" width="104" height="15" uuid="4c886880-2c26-44c3-885e-4fa8b6c5ba81"/>
<textElement>
<font size="10"/>
</textElement>
<textFieldExpression><![CDATA[$V{SOMA_IDA}]]></textFieldExpression>
</textField>
<textField isBlankWhenNull="true">
<reportElement x="687" y="0" width="63" height="15" uuid="5a617d83-4628-46a2-9618-ae4003f4738b"/>
<reportElement x="676" y="0" width="84" height="15" uuid="5a617d83-4628-46a2-9618-ae4003f4738b"/>
<textElement>
<font size="10"/>
</textElement>

View File

@ -67,7 +67,7 @@ public class RelatorioQuadroDemonstrativoMovimentoPassageirosController extends
if (cmbLinha.getSelectedItem() != null) {
if (!cmbLinha.getSelectedItem().getValue().equals("-1")) {
Ruta ruta = ((Ruta) cmbLinha.getSelectedItem().getValue());
parametros.put("LINHAS", (ruta.getRutaId().toString()));
parametros.put("LINHAS", (ruta.getNumRuta()));
parametros.put("DESC_LINHAS_SELECIONADAS", (ruta.getDescruta()));
parametros.put("CANTASIENTOS", (ruta.getCantAsientos() != null ? ruta.getCantAsientos().toString() : ""));
}