alexandre.lima 2017-09-04 13:20:43 +00:00
parent 069cc59470
commit 51dbb21e4e
3 changed files with 31 additions and 15 deletions

View File

@ -36,6 +36,7 @@ public class RelatorioBilhetesVendidos extends Relatorio {
StringBuilder sql = new StringBuilder();
sql.append(" select ");
sql.append(" B.TIPOVENTA_ID IMPRESSAO_POSTERIOR, ");
sql.append(" B.NUMFOLIOSISTEMA NUMERO_PASSAGEM, ");
sql.append(" B.NUMSERIEPREIMPRESA SERIE, ");
sql.append(" B.NUMSERIEPREIMPRESA SUB_SERIE, ");
@ -113,6 +114,7 @@ public class RelatorioBilhetesVendidos extends Relatorio {
dataResult.put("SUB_SERIE", rset.getString("SERIE").split("-")[1]);
}
}
dataResult.put("IMPRESSAO_POSTERIOR", rset.getInt("IMPRESSAO_POSTERIOR"));
dataResult.put("PRE_IMPRESSO", rset.getString("PRE_IMPRESSO"));
dataResult.put("COD_ORIGEM", rset.getString("COD_ORIGEM"));
dataResult.put("ORIGEM", rset.getString("ORIGEM"));

View File

@ -2,7 +2,7 @@
<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="RelatorioVendasBilheteiro" pageWidth="842" pageHeight="595" orientation="Landscape" whenNoDataType="NoDataSection" columnWidth="802" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="b92fb063-a827-4619-8a69-5c78e3afbb8c">
<property name="ireport.zoom" value="2.41576500000001"/>
<property name="ireport.x" value="1260"/>
<property name="ireport.y" value="9"/>
<property name="ireport.y" value="19"/>
<property name="net.sf.jasperreports.export.xls.exclude.origin.band.2" value="pageHeader"/>
<property name="net.sf.jasperreports.export.xls.exclude.origin.keep.first.band.2" value="columnHeader"/>
<property name="net.sf.jasperreports.export.xls.remove.empty.space.between.rows" value="true"/>
@ -60,6 +60,7 @@
<field name="COD_DESTINO" class="java.lang.String"/>
<field name="COD_AGENCIA" class="java.lang.String"/>
<field name="COD_LINHA" class="java.lang.String"/>
<field name="IMPRESSAO_POSTERIOR" class="java.lang.Integer"/>
<background>
<band splitType="Stretch"/>
</background>
@ -275,7 +276,7 @@
<text><![CDATA[Sentido]]></text>
</staticText>
<staticText>
<reportElement uuid="f00ced65-e4ea-4332-87d4-0674493f0f87" mode="Transparent" x="658" y="0" width="38" height="24" forecolor="#000000" backcolor="#FFFFFF"/>
<reportElement uuid="f00ced65-e4ea-4332-87d4-0674493f0f87" mode="Transparent" x="645" y="0" width="30" height="24" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="7" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
@ -283,14 +284,14 @@
<text><![CDATA[Status]]></text>
</staticText>
<staticText>
<reportElement uuid="235c8f23-9c13-48cd-ab7a-e74363424caf" x="600" y="0" width="58" height="24"/>
<reportElement uuid="235c8f23-9c13-48cd-ab7a-e74363424caf" x="600" y="0" width="45" height="24"/>
<textElement>
<font size="7"/>
</textElement>
<text><![CDATA[Desc Linha]]></text>
</staticText>
<staticText>
<reportElement uuid="5de9c4ee-7a93-4086-9106-c7d2ad35497e" mode="Transparent" x="696" y="0" width="40" height="24" forecolor="#000000" backcolor="#FFFFFF"/>
<reportElement uuid="5de9c4ee-7a93-4086-9106-c7d2ad35497e" mode="Transparent" x="675" y="0" width="24" height="24" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="7" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
@ -298,7 +299,7 @@
<text><![CDATA[Tar]]></text>
</staticText>
<staticText>
<reportElement uuid="ed37427e-5811-4fd0-b5ea-627d9a56448d" mode="Transparent" x="736" y="0" width="22" height="24" forecolor="#000000" backcolor="#FFFFFF"/>
<reportElement uuid="ed37427e-5811-4fd0-b5ea-627d9a56448d" mode="Transparent" x="699" y="0" width="22" height="24" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="7" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
@ -306,7 +307,7 @@
<text><![CDATA[Tax]]></text>
</staticText>
<staticText>
<reportElement uuid="8a929bec-8a30-4e9f-a2f2-32bd629776df" mode="Transparent" x="758" y="0" width="22" height="24" forecolor="#000000" backcolor="#FFFFFF"/>
<reportElement uuid="8a929bec-8a30-4e9f-a2f2-32bd629776df" mode="Transparent" x="721" y="0" width="22" height="24" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="7" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
@ -314,7 +315,7 @@
<text><![CDATA[Ped]]></text>
</staticText>
<staticText>
<reportElement uuid="6c2a21a8-3afa-4fc6-89b3-10f1887233c8" mode="Transparent" x="780" y="0" width="22" height="24" forecolor="#000000" backcolor="#FFFFFF"/>
<reportElement uuid="6c2a21a8-3afa-4fc6-89b3-10f1887233c8" mode="Transparent" x="743" y="0" width="22" height="24" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="7" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
@ -327,14 +328,22 @@
<font fontName="SansSerif" size="7" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<text><![CDATA[Cod. Agência]]></text>
<text><![CDATA[Num. Agência]]></text>
</staticText>
<staticText>
<reportElement uuid="cbaa75b2-d156-4324-94b5-4f633008d9ce" x="574" y="0" width="26" height="24"/>
<textElement>
<font size="7"/>
</textElement>
<text><![CDATA[Cod. Linha]]></text>
<text><![CDATA[Num. Linha]]></text>
</staticText>
<staticText>
<reportElement uuid="b81ac40e-df45-4de0-b4fe-7452a9b48a9c" mode="Transparent" x="765" y="0" width="35" height="24" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="7" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<text><![CDATA[Imp. Posterior]]></text>
</staticText>
</band>
</columnHeader>
@ -411,32 +420,32 @@
<textFieldExpression><![CDATA[$F{SENTIDO} == 0 ? "I" : "V"]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="true">
<reportElement uuid="27ec5d64-d949-4b02-a4a7-d6c5db93b3bd" x="658" y="0" width="38" height="25"/>
<reportElement uuid="27ec5d64-d949-4b02-a4a7-d6c5db93b3bd" x="645" y="0" width="30" height="25"/>
<textElement textAlignment="Left"/>
<textFieldExpression><![CDATA[$F{STATUS_PASSAGEM}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="true">
<reportElement uuid="f5f01da5-4ea3-41ba-8b58-b1f7e8e70601" x="600" y="0" width="58" height="25"/>
<reportElement uuid="f5f01da5-4ea3-41ba-8b58-b1f7e8e70601" x="600" y="0" width="45" height="25"/>
<textElement textAlignment="Left"/>
<textFieldExpression><![CDATA[$F{DESC_LINHA}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="true">
<reportElement uuid="5c87326c-e72c-47fb-95d0-0cb47c42d16f" x="696" y="0" width="40" height="25"/>
<reportElement uuid="5c87326c-e72c-47fb-95d0-0cb47c42d16f" x="675" y="0" width="24" height="25"/>
<textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$F{TARIFA}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="true">
<reportElement uuid="1ffff7a9-956e-489d-bdd4-61e0f8ce6a13" x="736" y="0" width="22" height="25"/>
<reportElement uuid="1ffff7a9-956e-489d-bdd4-61e0f8ce6a13" x="699" y="0" width="22" height="25"/>
<textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$F{TX_EMBARQUE}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="true">
<reportElement uuid="4ee7ead3-26af-4d0d-b3aa-cf07e24b0594" x="758" y="0" width="22" height="25"/>
<reportElement uuid="4ee7ead3-26af-4d0d-b3aa-cf07e24b0594" x="721" y="0" width="22" height="25"/>
<textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$F{PEDAGIO}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="true">
<reportElement uuid="07367eac-338d-4ba8-b718-fa416fa3f012" x="780" y="0" width="22" height="25"/>
<reportElement uuid="07367eac-338d-4ba8-b718-fa416fa3f012" x="743" y="0" width="22" height="25"/>
<textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$F{SEGURO}]]></textFieldExpression>
</textField>
@ -450,6 +459,11 @@
<textElement textAlignment="Left"/>
<textFieldExpression><![CDATA[$F{COD_LINHA}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="true">
<reportElement uuid="e5abc4be-54af-4252-acc0-a6181c085023" x="765" y="0" width="35" height="25"/>
<textElement textAlignment="Center"/>
<textFieldExpression><![CDATA[$F{IMPRESSAO_POSTERIOR} == 18 ? "S" : "N"]]></textFieldExpression>
</textField>
</band>
</detail>
<noData>