Erro - Criança Gratuidade (fixes bug #6629)
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@47996 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
7fa3b4c828
commit
0ff2891e50
|
@ -394,6 +394,7 @@ public class RelatorioAcompanhamentoEquivalentes extends Relatorio {
|
|||
sql.append(" AND BO.ACTIVO = 1 ");
|
||||
sql.append(" AND BO.INDSTATUSOPERACION = 'F' ");
|
||||
sql.append(" AND BO.MOTIVOCANCELACION_ID IS NULL OR BO.MOTIVOCANCELACION_ID = 0 ");
|
||||
sql.append(" AND BO.CATEGORIA_ID <> ").append(CONSTANTE_GRATUIDADE_CRIANCA);
|
||||
sql.append(" GROUP BY CR.CORRIDA_ID, CR.FECCORRIDA, SUB_KM.KM ");
|
||||
sql.append(" ) SUB_REC ");
|
||||
sql.append("ORDER BY SUB_REC.FECCORRIDA ");
|
||||
|
|
|
@ -20,12 +20,15 @@ import com.rjconsultores.ventaboletos.entidad.Ruta;
|
|||
import com.rjconsultores.ventaboletos.relatorios.utilitarios.DataSource;
|
||||
import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio;
|
||||
import com.rjconsultores.ventaboletos.relatorios.utilitarios.RelatorioLinhasHorarioBean;
|
||||
import com.rjconsultores.ventaboletos.service.ConstanteService;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.NamedParameterStatement;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.spring.AppContext;
|
||||
|
||||
public class RelatorioLinhasHorario extends Relatorio {
|
||||
|
||||
private static Logger log = Logger.getLogger(RelatorioLinhasHorario.class);
|
||||
private List<RelatorioLinhasHorarioBean> lsDadosRelatorio;
|
||||
private static String CONSTANTE_GRATUIDADE_CRIANCA;
|
||||
|
||||
public RelatorioLinhasHorario(Map<String, Object> parametros, Connection conexao) throws Exception {
|
||||
super(parametros, conexao);
|
||||
|
@ -34,6 +37,8 @@ public class RelatorioLinhasHorario extends Relatorio {
|
|||
@Override
|
||||
public void initDados() throws Exception {
|
||||
|
||||
CONSTANTE_GRATUIDADE_CRIANCA = buscarConstante("GRATUIDADE_CRIANCA");
|
||||
|
||||
Connection conexao = this.relatorio.getConexao();
|
||||
|
||||
Map<String, Object> parametros = this.relatorio.getParametros();
|
||||
|
@ -435,6 +440,7 @@ public class RelatorioLinhasHorario extends Relatorio {
|
|||
sql.append(" LEFT JOIN BOLETO B ON (B.CORRIDA_ID = C.CORRIDA_ID AND B.FECCORRIDA = C.FECCORRIDA ) ");
|
||||
sql.append(" WHERE C.ACTIVO <> 0 AND B.ACTIVO = 1 ");
|
||||
sql.append(" AND B.MOTIVOCANCELACION_ID IS NULL ");
|
||||
sql.append(" AND B.CATEGORIA_ID <> ").append(CONSTANTE_GRATUIDADE_CRIANCA);
|
||||
sql.append(" GROUP BY C.CORRIDA_ID, C.ROLOPERATIVO_ID) TB4, ");
|
||||
sql.append(" CORRIDA C ");
|
||||
sql.append("INNER JOIN ");
|
||||
|
@ -454,6 +460,7 @@ public class RelatorioLinhasHorario extends Relatorio {
|
|||
sql.append(" INNER JOIN BOLETO BO ON CO.CORRIDA_ID = BO.CORRIDA_ID AND CO.FECCORRIDA = BO.FECCORRIDA ");
|
||||
sql.append(" WHERE BO.ACTIVO = 1 AND CO.ACTIVO <> 0 ");
|
||||
sql.append(" AND BO.INDSTATUSBOLETO != 'S' AND BO.MOTIVOCANCELACION_ID IS NULL ");
|
||||
sql.append(" AND BO.CATEGORIA_ID <> ").append(CONSTANTE_GRATUIDADE_CRIANCA);
|
||||
sql.append(" AND BO.FECCORRIDA BETWEEN :DATA_INICIO AND :DATA_FINAL ");
|
||||
|
||||
if (lsNumServico.size() > 0) {
|
||||
|
@ -532,4 +539,9 @@ public class RelatorioLinhasHorario extends Relatorio {
|
|||
return sql.toString();
|
||||
|
||||
}
|
||||
|
||||
private String buscarConstante(String nomeConstante) {
|
||||
ConstanteService constanteService = (ConstanteService) AppContext.getApplicationContext().getBean("constanteService");
|
||||
return constanteService.buscarPorNomeConstante(nomeConstante).getValorconstante();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -14,15 +14,22 @@ import java.util.Map;
|
|||
|
||||
import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio;
|
||||
import com.rjconsultores.ventaboletos.relatorios.utilitarios.beans.PesoOperacional;
|
||||
import com.rjconsultores.ventaboletos.service.ConstanteService;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.spring.AppContext;
|
||||
|
||||
public class RelatorioOrigemDestino extends Relatorio {
|
||||
|
||||
private static String CONSTANTE_GRATUIDADE_CRIANCA;
|
||||
|
||||
public RelatorioOrigemDestino(Map<String, Object> parametros, Connection conexao) throws Exception {
|
||||
super(parametros, conexao);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void processaParametros() throws Exception {
|
||||
|
||||
CONSTANTE_GRATUIDADE_CRIANCA = buscarConstante("GRATUIDADE_CRIANCA");
|
||||
|
||||
String corridasIds = (String) getParametros().get("CORRIDAS_SELECIONADAS");
|
||||
String empresaIds = (String) getParametros().get("EMPRESA_IDS");
|
||||
String dataDe = (String) getParametros().get("DATA_DE_WHERE");
|
||||
|
@ -58,6 +65,7 @@ public class RelatorioOrigemDestino extends Relatorio {
|
|||
sql.append(" INNER JOIN PARADA D ON D.PARADA_ID = CA.DESTINO_ID ");
|
||||
sql.append(" WHERE CA.ACTIVO = 1 ");
|
||||
sql.append(" AND CA.MOTIVOCANCELACION_ID IS NULL ");
|
||||
sql.append(" AND CA.CATEGORIA_ID <> ").append(CONSTANTE_GRATUIDADE_CRIANCA);
|
||||
sql.append(" AND CA.PRECIOBASE IS NOT NULL ");
|
||||
if (bilhetesGratuitos) {
|
||||
sql.append(" AND CA.PRECIOBASE >= 0 ");
|
||||
|
@ -131,6 +139,7 @@ public class RelatorioOrigemDestino extends Relatorio {
|
|||
sql.append(" WHERE CA.ACTIVO = 1 ");
|
||||
sql.append(" AND RS.ACTIVO = 1 ");
|
||||
sql.append(" AND CA.MOTIVOCANCELACION_ID IS NULL ");
|
||||
sql.append(" AND CA.CATEGORIA_ID <> ").append(CONSTANTE_GRATUIDADE_CRIANCA);
|
||||
sql.append(" AND CA.PRECIOBASE IS NOT NULL ");
|
||||
if (bilhetesGratuitos) {
|
||||
sql.append(" AND CA.PRECIOBASE >= 0 ");
|
||||
|
@ -297,10 +306,11 @@ public class RelatorioOrigemDestino extends Relatorio {
|
|||
sql.append(" FROM boleto CA ");
|
||||
sql.append(" INNER JOIN corrida CO ON ( CO.corrida_id = CA.corrida_id AND CO.feccorrida = CA.feccorrida ) ");
|
||||
sql.append(" WHERE CA.activo = 1 ");
|
||||
sql.append((" AND CO.EMPRESACORRIDA_ID IN (") + empresaIds + ") ");
|
||||
sql.append((" AND CO.EMPRESACORRIDA_ID IN (") + empresaIds + ") ");
|
||||
sql.append(" AND CA.corrida_id = RESULTADO.corrida_id ");
|
||||
sql.append(" AND CA.FECCORRIDA BETWEEN to_date('" + dataDe + "','dd/mm/yyyy HH24:mi:ss') AND to_date('" + dataAte + "','dd/mm/yyyy HH24:mi:ss') ");
|
||||
sql.append(" AND CA.FECCORRIDA BETWEEN to_date('" + dataDe + "','dd/mm/yyyy HH24:mi:ss') AND to_date('" + dataAte + "','dd/mm/yyyy HH24:mi:ss') ");
|
||||
sql.append(" AND CA.motivocancelacion_id IS NULL ");
|
||||
sql.append(" AND CA.CATEGORIA_ID <> ").append(CONSTANTE_GRATUIDADE_CRIANCA);
|
||||
sql.append(" AND CA.preciobase IS NOT NULL ");
|
||||
sql.append((bilhetesGratuitos ? " AND CA.PRECIOBASE >= 0 ) " : " AND CA.PRECIOBASE > 0 ) "));
|
||||
sql.append(" ABSOLUTO_TOTAL_CORRIDA ");
|
||||
|
@ -316,22 +326,26 @@ public class RelatorioOrigemDestino extends Relatorio {
|
|||
sql.append(" Count(*) ABSOLUTOS, ");
|
||||
sql.append(" Sum(CA.preciopagado) RECEITA, ");
|
||||
sql.append(" CA.preciobase, ");
|
||||
sql.append(" TF.importetaxaembarque, ");
|
||||
sql.append(" TF.importepedagio ");
|
||||
sql.append(" CA.IMPORTETAXAEMBARQUE as importetaxaembarque, ");
|
||||
sql.append(" CA.IMPORTEPEDAGIO as importepedagio ");
|
||||
sql.append(" FROM boleto CA ");
|
||||
sql.append(" INNER JOIN parada ORI ON ORI.parada_id = CA.origen_id ");
|
||||
sql.append(" INNER JOIN parada DES ON DES.parada_id = CA.destino_id ");
|
||||
sql.append(" INNER JOIN corrida CO ON ( CO.corrida_id = CA.corrida_id AND CO.feccorrida = CA.feccorrida ) ");
|
||||
sql.append(" INNER JOIN empresa EM ON EM.empresa_id = CO.empresacorrida_id ");
|
||||
sql.append(" INNER JOIN ruta RU ON RU.ruta_id = CO.ruta_id ");
|
||||
sql.append("INNER JOIN tarifa TF ON (TF.CLASESERVICIO_ID = CO.CLASESERVICIO_ID AND TF.DESTINO_ID = CO.DESTINO_ID AND TF.ORIGEN_ID = CO.ORIGEN_ID AND TF.MARCA_ID = CO.MARCA_ID ");
|
||||
sql.append("AND TF.RUTA_ID = CO.RUTA_ID)");
|
||||
sql.append(" INNER JOIN tarifa TF ON (TF.CLASESERVICIO_ID = CO.CLASESERVICIO_ID ");
|
||||
sql.append(" AND TF.DESTINO_ID = CO.DESTINO_ID ");
|
||||
sql.append(" AND TF.ORIGEN_ID = CO.ORIGEN_ID ");
|
||||
sql.append(" AND TF.MARCA_ID = CO.MARCA_ID ");
|
||||
sql.append(" AND TF.RUTA_ID = CO.RUTA_ID)");
|
||||
sql.append("INNER JOIN VIGENCIA_TARIFA VT ON (TF.VIGENCIATARIFA_ID=VT.VIGENCIATARIFA_ID)");
|
||||
sql.append(" WHERE CA.activo = 1 AND RU.activo = 1 AND EM.activo = 1 AND ORI.activo = 1 AND DES.activo = 1 ");
|
||||
sql.append((!corridasIds.equals("Todas") ? " AND CA.CORRIDA_ID IN (" + corridasIds + ") " : " "));
|
||||
sql.append((" AND CO.EMPRESACORRIDA_ID IN (") + empresaIds + ") ");
|
||||
sql.append(" AND CA.FECCORRIDA BETWEEN to_date('" + dataDe + "','dd/mm/yyyy HH24:mi:ss') AND to_date('" + dataAte + "','dd/mm/yyyy HH24:mi:ss') ");
|
||||
sql.append((" AND CO.EMPRESACORRIDA_ID IN (") + empresaIds + ") ");
|
||||
sql.append(" AND CA.FECCORRIDA BETWEEN to_date('" + dataDe + "','dd/mm/yyyy HH24:mi:ss') AND to_date('" + dataAte + "','dd/mm/yyyy HH24:mi:ss') ");
|
||||
sql.append(" AND CA.motivocancelacion_id IS NULL ");
|
||||
sql.append(" AND CA.CATEGORIA_ID <> ").append(CONSTANTE_GRATUIDADE_CRIANCA);
|
||||
sql.append(" AND CA.preciobase IS NOT NULL ");
|
||||
sql.append((bilhetesGratuitos ? " AND CA.PRECIOBASE >= 0 " : " AND CA.PRECIOBASE > 0 "));
|
||||
sql.append(" AND CO.FECCORRIDA BETWEEN vt.FECINICIOVIGENCIA and vt.FECFINVIGENCIA");
|
||||
|
@ -344,8 +358,9 @@ public class RelatorioOrigemDestino extends Relatorio {
|
|||
sql.append(" RU.descruta, ");
|
||||
sql.append(" RU.indsentidoida, ");
|
||||
sql.append(" CA.preciobase, ");
|
||||
sql.append(" TF.IMPORTETAXAEMBARQUE, ");
|
||||
sql.append(" TF.IMPORTEPEDAGIO ) RESULTADO ");
|
||||
sql.append(" CA.IMPORTETAXAEMBARQUE, ");
|
||||
sql.append(" CA.IMPORTEPEDAGIO ) RESULTADO ");
|
||||
|
||||
sql.append(" INNER JOIN ruta_secuencia RS ON RS.ruta_id = RESULTADO.ruta_id ");
|
||||
sql.append(" INNER JOIN tramo TR ON TR.tramo_id = RS.tramo_id ");
|
||||
sql.append(" WHERE RS.activo = 1 AND TR.activo = 1 ");
|
||||
|
@ -392,10 +407,11 @@ public class RelatorioOrigemDestino extends Relatorio {
|
|||
sql.append(" INNER JOIN parada PO ON CA.origen_id = PO.parada_id ");
|
||||
sql.append(" INNER JOIN parada PD ON CA.destino_id = PD.parada_id ");
|
||||
sql.append(" WHERE CA.activo = 1 ");
|
||||
sql.append((" AND CO.EMPRESACORRIDA_ID IN (") + empresaIds + ") ");
|
||||
sql.append((" AND CO.EMPRESACORRIDA_ID IN (") + empresaIds + ") ");
|
||||
sql.append(" AND CA.corrida_id = RESULTADO.corrida_id ");
|
||||
sql.append(" AND CA.FECCORRIDA BETWEEN to_date('" + dataDe + "','dd/mm/yyyy HH24:mi:ss') AND to_date('" + dataAte + "','dd/mm/yyyy HH24:mi:ss') ");
|
||||
sql.append(" AND CA.FECCORRIDA BETWEEN to_date('" + dataDe + "','dd/mm/yyyy HH24:mi:ss') AND to_date('" + dataAte + "','dd/mm/yyyy HH24:mi:ss') ");
|
||||
sql.append(" AND CA.motivocancelacion_id IS NULL ");
|
||||
sql.append(" AND CA.CATEGORIA_ID <> ").append(CONSTANTE_GRATUIDADE_CRIANCA);
|
||||
sql.append(" AND CA.preciobase IS NOT NULL ");
|
||||
sql.append(" AND CA.preciobase = RESULTADO.preciobase ");
|
||||
sql.append(" AND PO.cveparada = RESULTADO.origem ");
|
||||
|
@ -417,6 +433,7 @@ public class RelatorioOrigemDestino extends Relatorio {
|
|||
sql.append((" AND CO.EMPRESACORRIDA_ID IN (") + empresaIds + ") ");
|
||||
sql.append(" AND CA.FECCORRIDA BETWEEN to_date('" + dataDe + "','dd/mm/yyyy HH24:mi:ss') AND to_date('" + dataAte + "','dd/mm/yyyy HH24:mi:ss') ");
|
||||
sql.append(" AND CA.motivocancelacion_id IS NULL ");
|
||||
sql.append(" AND CA.CATEGORIA_ID <> ").append(CONSTANTE_GRATUIDADE_CRIANCA);
|
||||
sql.append(" AND CA.preciobase IS NOT NULL ");
|
||||
sql.append((bilhetesGratuitos ? " AND CA.PRECIOBASE >= 0 " : " AND CA.PRECIOBASE > 0 "));
|
||||
sql.append(" GROUP BY RU.ruta_id, ");
|
||||
|
@ -518,4 +535,9 @@ public class RelatorioOrigemDestino extends Relatorio {
|
|||
return RelatorioOrigemDestino.this;
|
||||
}
|
||||
}
|
||||
|
||||
private String buscarConstante(String nomeConstante) {
|
||||
ConstanteService constanteService = (ConstanteService) AppContext.getApplicationContext().getBean("constanteService");
|
||||
return constanteService.buscarPorNomeConstante(nomeConstante).getValorconstante();
|
||||
}
|
||||
}
|
||||
|
|
Binary file not shown.
|
@ -43,8 +43,8 @@
|
|||
<field name="DISPONIBILIDADE" class="java.lang.Integer"/>
|
||||
<field name="VIAGENS" class="java.lang.Integer"/>
|
||||
<field name="ABSOLUTO_TOTAL_CORRIDA" class="java.lang.Integer"/>
|
||||
<field name="IMPORTETAXAEMBARQUE" class="java.lang.String"/>
|
||||
<field name="IMPORTEPEDAGIO" class="java.lang.String"/>
|
||||
<field name="IMPORTETAXAEMBARQUE" class="java.math.BigDecimal"/>
|
||||
<field name="IMPORTEPEDAGIO" class="java.math.BigDecimal"/>
|
||||
<variable name="RECEITA_1" class="java.math.BigDecimal" resetType="Group" resetGroup="group_corrida_id" calculation="Sum">
|
||||
<variableExpression><![CDATA[$F{RECEITA}]]></variableExpression>
|
||||
</variable>
|
||||
|
@ -101,172 +101,166 @@
|
|||
<groupHeader>
|
||||
<band height="69">
|
||||
<staticText>
|
||||
<reportElement uuid="781a710f-41c2-44a8-aeef-e6a41eaea789" x="1" y="47" width="58" height="21"/>
|
||||
<reportElement x="1" y="47" width="58" height="21" uuid="781a710f-41c2-44a8-aeef-e6a41eaea789"/>
|
||||
<textElement verticalAlignment="Middle">
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Origem]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement uuid="b19dd283-526d-42b2-8692-1d0c56eda657" x="59" y="47" width="49" height="21"/>
|
||||
<reportElement x="59" y="47" width="49" height="21" uuid="b19dd283-526d-42b2-8692-1d0c56eda657"/>
|
||||
<textElement verticalAlignment="Middle">
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Destino]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement uuid="b26182c0-96bd-4b51-82d3-c589579af47a" x="108" y="47" width="41" height="21"/>
|
||||
<reportElement x="108" y="47" width="41" height="21" uuid="b26182c0-96bd-4b51-82d3-c589579af47a"/>
|
||||
<textElement textAlignment="Right" verticalAlignment="Middle">
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
<text><![CDATA[KM]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement uuid="fe8b55b0-c7a9-4e29-bc91-080042193b20" x="149" y="47" width="44" height="21"/>
|
||||
<reportElement x="149" y="47" width="44" height="21" uuid="fe8b55b0-c7a9-4e29-bc91-080042193b20"/>
|
||||
<textElement textAlignment="Right" verticalAlignment="Middle">
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Tarifa]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement uuid="9b8e97b5-9895-4865-bc1c-f9541e80a054" x="329" y="47" width="78" height="21"/>
|
||||
<reportElement x="329" y="47" width="78" height="21" uuid="9b8e97b5-9895-4865-bc1c-f9541e80a054"/>
|
||||
<textElement textAlignment="Right" verticalAlignment="Middle">
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Absolutos]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement uuid="3cb1abe8-5eb1-4260-8337-1276ba50ec6e" x="407" y="47" width="64" height="21"/>
|
||||
<reportElement x="407" y="47" width="64" height="21" uuid="3cb1abe8-5eb1-4260-8337-1276ba50ec6e"/>
|
||||
<textElement textAlignment="Right" verticalAlignment="Middle">
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Receitas]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement uuid="8a06a97e-99ba-450a-b773-fe8c72da4aa3" x="471" y="47" width="65" height="21"/>
|
||||
<reportElement x="471" y="47" width="65" height="21" uuid="8a06a97e-99ba-450a-b773-fe8c72da4aa3"/>
|
||||
<textElement textAlignment="Right" verticalAlignment="Middle">
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Rec./Abs.]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement uuid="a7139fb0-1036-4b6c-a3b7-49d277aa02c1" x="536" y="47" width="74" height="21"/>
|
||||
<reportElement x="536" y="47" width="74" height="21" uuid="a7139fb0-1036-4b6c-a3b7-49d277aa02c1"/>
|
||||
<textElement textAlignment="Right" verticalAlignment="Middle">
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Equivalente]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement uuid="89706cbe-b0fb-458b-843c-fcfad356e1da" x="610" y="47" width="52" height="21"/>
|
||||
<reportElement x="610" y="47" width="52" height="21" uuid="89706cbe-b0fb-458b-843c-fcfad356e1da"/>
|
||||
<textElement textAlignment="Right" verticalAlignment="Middle">
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Pax*KM]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement uuid="0fdf3c83-7477-4770-804d-c856d929700c" x="662" y="47" width="51" height="21"/>
|
||||
<reportElement x="662" y="47" width="51" height="21" uuid="0fdf3c83-7477-4770-804d-c856d929700c"/>
|
||||
<textElement textAlignment="Right" verticalAlignment="Middle">
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
<text><![CDATA[%Abs]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement uuid="3ac11ce6-e68d-4a22-b398-12ae861e97c2" x="713" y="47" width="52" height="21"/>
|
||||
<reportElement x="713" y="47" width="52" height="21" uuid="3ac11ce6-e68d-4a22-b398-12ae861e97c2"/>
|
||||
<textElement textAlignment="Right" verticalAlignment="Middle">
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
<text><![CDATA[%Equi]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement uuid="c0095aaf-98df-4c84-a162-73e7f5fd2fa2" x="271" y="-1" width="265" height="19"/>
|
||||
<reportElement x="271" y="-1" width="265" height="19" uuid="c0095aaf-98df-4c84-a162-73e7f5fd2fa2"/>
|
||||
<textElement verticalAlignment="Middle">
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Linha]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement uuid="c2ca7785-7d17-4ed3-aba1-6dc0324c27ab" x="589" y="-1" width="50" height="19"/>
|
||||
<reportElement x="589" y="-1" width="50" height="19" uuid="c2ca7785-7d17-4ed3-aba1-6dc0324c27ab"/>
|
||||
<textElement verticalAlignment="Middle">
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Horário]]></text>
|
||||
</staticText>
|
||||
<textField>
|
||||
<reportElement uuid="523ac3ad-3918-41f8-9a59-a89ae6bbc9ca" x="193" y="21" width="77" height="25"/>
|
||||
<textElement/>
|
||||
<reportElement x="193" y="21" width="77" height="25" uuid="523ac3ad-3918-41f8-9a59-a89ae6bbc9ca"/>
|
||||
<textFieldExpression><![CDATA[$F{CORRIDA_1}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement uuid="d4373b5b-172d-44fb-b2aa-5ab7cb02137e" x="270" y="21" width="266" height="25"/>
|
||||
<textElement/>
|
||||
<reportElement x="270" y="21" width="266" height="25" uuid="d4373b5b-172d-44fb-b2aa-5ab7cb02137e"/>
|
||||
<textFieldExpression><![CDATA[$F{DESCRUTA}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="HH:mm">
|
||||
<reportElement uuid="933f2533-0f1e-4359-a70b-71f39018068d" x="589" y="21" width="50" height="25"/>
|
||||
<textElement/>
|
||||
<reportElement x="589" y="21" width="50" height="25" uuid="933f2533-0f1e-4359-a70b-71f39018068d"/>
|
||||
<textFieldExpression><![CDATA[$F{FECHORSALIDA}]]></textFieldExpression>
|
||||
</textField>
|
||||
<line>
|
||||
<reportElement uuid="840b06de-e082-4cbb-9eb3-f684933a17fb" x="0" y="19" width="763" height="1"/>
|
||||
<reportElement x="0" y="19" width="763" height="1" uuid="840b06de-e082-4cbb-9eb3-f684933a17fb"/>
|
||||
</line>
|
||||
<line>
|
||||
<reportElement uuid="e43ff8fc-e645-4e03-a46c-b9259e03eead" x="0" y="46" width="763" height="1"/>
|
||||
<reportElement x="0" y="46" width="763" height="1" uuid="e43ff8fc-e645-4e03-a46c-b9259e03eead"/>
|
||||
</line>
|
||||
<line>
|
||||
<reportElement uuid="aa242ed1-f522-4932-ab75-b459a8e1aa9a" x="0" y="68" width="763" height="1"/>
|
||||
<reportElement x="0" y="68" width="763" height="1" uuid="aa242ed1-f522-4932-ab75-b459a8e1aa9a"/>
|
||||
</line>
|
||||
<staticText>
|
||||
<reportElement uuid="21260120-2ec7-4efe-bb44-fbfcd1c0e38c" x="0" y="-1" width="192" height="19"/>
|
||||
<reportElement x="0" y="-1" width="192" height="19" uuid="21260120-2ec7-4efe-bb44-fbfcd1c0e38c"/>
|
||||
<textElement verticalAlignment="Middle">
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Empresa]]></text>
|
||||
</staticText>
|
||||
<textField>
|
||||
<reportElement uuid="ac63342f-d2bb-4fb8-8f3f-6d1a621c92f0" x="0" y="21" width="193" height="25"/>
|
||||
<textElement/>
|
||||
<reportElement x="0" y="21" width="193" height="25" uuid="ac63342f-d2bb-4fb8-8f3f-6d1a621c92f0"/>
|
||||
<textFieldExpression><![CDATA[$F{NOMBEMPRESA}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isBlankWhenNull="true">
|
||||
<reportElement uuid="a24cf606-d6da-4c49-bbc6-1f4df6d625c9" x="536" y="21" width="53" height="25"/>
|
||||
<textElement/>
|
||||
<reportElement x="536" y="21" width="53" height="25" uuid="a24cf606-d6da-4c49-bbc6-1f4df6d625c9"/>
|
||||
<textFieldExpression><![CDATA[$F{INDSENTIDOIDA}==1?"Ida":$F{INDSENTIDOIDA}==0?"Volta":""]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField evaluationTime="Group" evaluationGroup="group_corrida_id" pattern="#,##0.00">
|
||||
<reportElement uuid="6b5e70f2-4dea-4f8e-a912-f06af74d8053" x="639" y="21" width="126" height="25"/>
|
||||
<textElement/>
|
||||
<reportElement x="639" y="21" width="126" height="25" uuid="6b5e70f2-4dea-4f8e-a912-f06af74d8053"/>
|
||||
<textFieldExpression><![CDATA[$V{PRECIOBASE_1}]]></textFieldExpression>
|
||||
</textField>
|
||||
<staticText>
|
||||
<reportElement uuid="7e4b01fa-7ae7-4e9d-b67e-e215a7cd847f" x="536" y="-1" width="53" height="19"/>
|
||||
<reportElement x="536" y="-1" width="53" height="19" uuid="7e4b01fa-7ae7-4e9d-b67e-e215a7cd847f"/>
|
||||
<textElement verticalAlignment="Middle">
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Sentido]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement uuid="b73636f9-9b1b-4538-9364-6abf618779da" x="639" y="-1" width="126" height="19"/>
|
||||
<reportElement x="639" y="-1" width="126" height="19" uuid="b73636f9-9b1b-4538-9364-6abf618779da"/>
|
||||
<textElement verticalAlignment="Middle">
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Tar.Max.]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement uuid="c3b59366-d5f6-4922-a151-a6b26108760b" x="193" y="47" width="77" height="21"/>
|
||||
<reportElement x="193" y="47" width="77" height="21" uuid="c3b59366-d5f6-4922-a151-a6b26108760b"/>
|
||||
<textElement textAlignment="Right" verticalAlignment="Middle">
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Tx Embarque]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement uuid="87db336a-d9ef-4afd-9930-3791c35cc842" x="270" y="47" width="59" height="21"/>
|
||||
<reportElement x="270" y="47" width="59" height="21" uuid="87db336a-d9ef-4afd-9930-3791c35cc842"/>
|
||||
<textElement textAlignment="Right" verticalAlignment="Middle">
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Pedagio]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement uuid="3e50d8ca-1a89-47d9-b0f6-dea5d1246e10" x="192" y="-1" width="79" height="19"/>
|
||||
<reportElement x="192" y="-1" width="79" height="19" uuid="3e50d8ca-1a89-47d9-b0f6-dea5d1246e10"/>
|
||||
<textElement verticalAlignment="Middle">
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
|
@ -277,184 +271,182 @@
|
|||
<groupFooter>
|
||||
<band height="252">
|
||||
<textField pattern="#,##0.00">
|
||||
<reportElement uuid="47543add-d41f-4a2d-bd53-424b419773d2" x="407" y="0" width="63" height="21"/>
|
||||
<reportElement x="407" y="0" width="63" height="21" uuid="47543add-d41f-4a2d-bd53-424b419773d2"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$V{RECEITA_1}]]></textFieldExpression>
|
||||
</textField>
|
||||
<line>
|
||||
<reportElement uuid="e9c629c4-15d0-4aee-ae29-082da09a8fb0" x="0" y="0" width="763" height="1"/>
|
||||
<reportElement x="0" y="0" width="763" height="1" uuid="e9c629c4-15d0-4aee-ae29-082da09a8fb0"/>
|
||||
</line>
|
||||
<textField pattern="#,##0.00">
|
||||
<reportElement uuid="90793b40-e058-4031-995e-fc5c38d2e0f8" x="470" y="0" width="67" height="21"/>
|
||||
<reportElement x="470" y="0" width="67" height="21" uuid="90793b40-e058-4031-995e-fc5c38d2e0f8"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$V{sum_rec_abs}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="#,##0.00">
|
||||
<reportElement uuid="f5b5d4fa-4dd5-4a16-ad32-b401a3a36c08" x="610" y="0" width="52" height="21"/>
|
||||
<reportElement x="610" y="0" width="52" height="21" uuid="f5b5d4fa-4dd5-4a16-ad32-b401a3a36c08"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$V{sum_pax_km}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="#,##0.00">
|
||||
<reportElement uuid="ae2ce014-7ac9-431e-8200-3954a90b61e8" x="537" y="0" width="73" height="21"/>
|
||||
<reportElement x="537" y="0" width="73" height="21" uuid="ae2ce014-7ac9-431e-8200-3954a90b61e8"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$V{sum_equivalente}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="#,##0.00">
|
||||
<reportElement uuid="ae118f4b-99af-4420-9086-f53850abba8b" x="714" y="0" width="50" height="21"/>
|
||||
<reportElement x="714" y="0" width="50" height="21" uuid="ae118f4b-99af-4420-9086-f53850abba8b"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$V{sum_por_equivalente}.compareTo(new BigDecimal("100.00"))>0?new BigDecimal("100.00"):$V{sum_por_equivalente}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="#,##0.00">
|
||||
<reportElement uuid="186bc0ae-ff2b-404c-ab57-7c9144108e72" x="662" y="0" width="52" height="21"/>
|
||||
<reportElement x="662" y="0" width="52" height="21" uuid="186bc0ae-ff2b-404c-ab57-7c9144108e72"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$V{sum_porc_abs}.compareTo(new BigDecimal("100.00"))>0?new BigDecimal("100.00"):$V{sum_porc_abs}]]></textFieldExpression>
|
||||
</textField>
|
||||
<staticText>
|
||||
<reportElement uuid="1c570d9f-a48f-404c-9afc-a46d4787af91" x="0" y="21" width="763" height="20"/>
|
||||
<reportElement x="0" y="21" width="763" height="20" uuid="1c570d9f-a48f-404c-9afc-a46d4787af91"/>
|
||||
<textElement>
|
||||
<font size="8" isBold="true"/>
|
||||
</textElement>
|
||||
<text><![CDATA[*Exibe somente trechos que possuam tabela de preço com data inferior ou igual a data final do filtro.]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement uuid="1496ac48-72e2-40be-a3a3-35b723cd4223" x="0" y="41" width="763" height="20"/>
|
||||
<reportElement x="0" y="41" width="763" height="20" uuid="1496ac48-72e2-40be-a3a3-35b723cd4223"/>
|
||||
<textElement verticalAlignment="Middle">
|
||||
<font size="11" isBold="true"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Resumo]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement uuid="ba8b9a18-6d78-4b14-8266-99736c209dd5" x="0" y="61" width="94" height="20"/>
|
||||
<reportElement x="0" y="61" width="94" height="20" uuid="ba8b9a18-6d78-4b14-8266-99736c209dd5"/>
|
||||
<textElement verticalAlignment="Middle">
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Extensão:]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement uuid="bbf0782f-ce0f-4d29-9d8e-dc9862a01e21" x="0" y="81" width="94" height="20"/>
|
||||
<reportElement x="0" y="81" width="94" height="20" uuid="bbf0782f-ce0f-4d29-9d8e-dc9862a01e21"/>
|
||||
<textElement verticalAlignment="Middle">
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Viagens:]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement uuid="f83de431-6542-43c7-84b7-c6fd27dad121" x="0" y="101" width="94" height="20"/>
|
||||
<reportElement x="0" y="101" width="94" height="20" uuid="f83de431-6542-43c7-84b7-c6fd27dad121"/>
|
||||
<textElement verticalAlignment="Middle">
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
<text><![CDATA[KM Rodados:]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement uuid="9a6d0493-c402-4a16-ba87-731a610f2338" x="0" y="121" width="94" height="20"/>
|
||||
<reportElement x="0" y="121" width="94" height="20" uuid="9a6d0493-c402-4a16-ba87-731a610f2338"/>
|
||||
<textElement verticalAlignment="Middle">
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Pax*KM:]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement uuid="a949f120-6b99-4f0b-99b8-d3fd3a102ba4" x="221" y="61" width="70" height="20"/>
|
||||
<reportElement x="221" y="61" width="70" height="20" uuid="a949f120-6b99-4f0b-99b8-d3fd3a102ba4"/>
|
||||
<textElement verticalAlignment="Middle">
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
<text><![CDATA[R$/KM:]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement uuid="774bb049-2929-4577-81ad-974a9301637d" x="221" y="81" width="70" height="20"/>
|
||||
<reportElement x="221" y="81" width="70" height="20" uuid="774bb049-2929-4577-81ad-974a9301637d"/>
|
||||
<textElement verticalAlignment="Middle">
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
<text><![CDATA[R$/Viagens:]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement uuid="b294680b-1a1c-435f-b2a7-d0dcedd318f7" x="221" y="101" width="70" height="20"/>
|
||||
<reportElement x="221" y="101" width="70" height="20" uuid="b294680b-1a1c-435f-b2a7-d0dcedd318f7"/>
|
||||
<textElement verticalAlignment="Middle">
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Pax.Equi:]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement uuid="ea81bb10-d7c5-4cbc-a581-9f26b944520f" x="221" y="121" width="70" height="20"/>
|
||||
<reportElement x="221" y="121" width="70" height="20" uuid="ea81bb10-d7c5-4cbc-a581-9f26b944520f"/>
|
||||
<textElement verticalAlignment="Middle">
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
<text><![CDATA[IAP%:]]></text>
|
||||
</staticText>
|
||||
<textField pattern="#,##0.00">
|
||||
<reportElement uuid="260d5364-9582-4f45-ae01-94dfd2781677" x="291" y="61" width="472" height="20"/>
|
||||
<textElement/>
|
||||
<reportElement x="291" y="61" width="472" height="20" uuid="260d5364-9582-4f45-ae01-94dfd2781677"/>
|
||||
<textFieldExpression><![CDATA[$V{RECEITA_2}.divide( new BigDecimal($F{KM_CORRIDA}.toString()).multiply(new BigDecimal($F{VIAGENS}.toString())),4,2 )]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="#,##0.00">
|
||||
<reportElement uuid="5756db85-1209-46de-90eb-0097958f8e9c" x="291" y="81" width="472" height="20"/>
|
||||
<textElement/>
|
||||
<reportElement x="291" y="81" width="472" height="20" uuid="5756db85-1209-46de-90eb-0097958f8e9c"/>
|
||||
<textFieldExpression><![CDATA[$V{RECEITA_3}.divide(new BigDecimal($F{VIAGENS}.toString()),2,2 )]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="#,##0.00">
|
||||
<reportElement uuid="1b9f5961-347c-4afe-94a8-8a221be656cb" x="94" y="121" width="127" height="20"/>
|
||||
<reportElement x="94" y="121" width="127" height="20" uuid="1b9f5961-347c-4afe-94a8-8a221be656cb"/>
|
||||
<textElement textAlignment="Left">
|
||||
<font isBold="false"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$V{sum_pax_km}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="#,##0.00">
|
||||
<reportElement uuid="baa10eb2-baf4-49ae-83cd-c06104a06d75" x="291" y="101" width="472" height="20"/>
|
||||
<reportElement x="291" y="101" width="472" height="20" uuid="baa10eb2-baf4-49ae-83cd-c06104a06d75"/>
|
||||
<textElement textAlignment="Left">
|
||||
<font isBold="false"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$V{sum_equivalente}]]></textFieldExpression>
|
||||
</textField>
|
||||
<line>
|
||||
<reportElement uuid="a8bb0411-9a3c-49da-9ef4-b7d1bc20696e" positionType="Float" x="0" y="231" width="763" height="1"/>
|
||||
<reportElement positionType="Float" x="0" y="231" width="763" height="1" uuid="a8bb0411-9a3c-49da-9ef4-b7d1bc20696e"/>
|
||||
</line>
|
||||
<staticText>
|
||||
<reportElement uuid="d4f3ad63-ee47-44d6-9ffd-966cf144a7d1" x="0" y="191" width="257" height="20"/>
|
||||
<reportElement x="0" y="191" width="257" height="20" uuid="d4f3ad63-ee47-44d6-9ffd-966cf144a7d1"/>
|
||||
<textElement verticalAlignment="Middle">
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Localidade]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement uuid="4e986dd5-a716-4d02-a723-3e9fbed1d4fd" x="257" y="191" width="95" height="20"/>
|
||||
<reportElement x="257" y="191" width="95" height="20" uuid="4e986dd5-a716-4d02-a723-3e9fbed1d4fd"/>
|
||||
<textElement verticalAlignment="Middle">
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Rec. Saida]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement uuid="07c2b3bb-13ef-4862-95d6-da697714905e" x="352" y="191" width="100" height="20"/>
|
||||
<reportElement x="352" y="191" width="100" height="20" uuid="07c2b3bb-13ef-4862-95d6-da697714905e"/>
|
||||
<textElement verticalAlignment="Middle">
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Rec. Chegada]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement uuid="8930f2c6-9cbe-419a-9678-8d72dc141eed" x="452" y="191" width="65" height="20"/>
|
||||
<reportElement x="452" y="191" width="65" height="20" uuid="8930f2c6-9cbe-419a-9678-8d72dc141eed"/>
|
||||
<textElement verticalAlignment="Middle">
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Soma]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement uuid="64d4208c-4752-4389-aa26-4ca6e97db6ac" x="517" y="191" width="246" height="20"/>
|
||||
<reportElement x="517" y="191" width="246" height="20" uuid="64d4208c-4752-4389-aa26-4ca6e97db6ac"/>
|
||||
<textElement verticalAlignment="Middle">
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Peso]]></text>
|
||||
</staticText>
|
||||
<componentElement>
|
||||
<reportElement uuid="fc473644-667d-480e-adf3-0b7abdc99aa5" x="0" y="211" width="763" height="20" isRemoveLineWhenBlank="true"/>
|
||||
<reportElement x="0" y="211" width="763" height="20" isRemoveLineWhenBlank="true" uuid="fc473644-667d-480e-adf3-0b7abdc99aa5"/>
|
||||
<jr:list xmlns:jr="http://jasperreports.sourceforge.net/jasperreports/components" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports/components http://jasperreports.sourceforge.net/xsd/components.xsd" printOrder="Vertical">
|
||||
<datasetRun subDataset="peso_operacional" uuid="522d9fc1-f32a-42a0-aac6-d2149d3ef7c8">
|
||||
<datasetParameter name="corrida_id_relatorio">
|
||||
|
@ -464,90 +456,79 @@
|
|||
</datasetRun>
|
||||
<jr:listContents height="20" width="763">
|
||||
<textField>
|
||||
<reportElement uuid="4ef0b54c-34d5-4bf6-b86c-b807b23e7026" x="0" y="0" width="257" height="20" isRemoveLineWhenBlank="true">
|
||||
<reportElement x="0" y="0" width="257" height="20" isRemoveLineWhenBlank="true" uuid="4ef0b54c-34d5-4bf6-b86c-b807b23e7026">
|
||||
<printWhenExpression><![CDATA[$P{corrida_id_relatorio}.equals(new BigDecimal($F{corridaId}.toString()))]]></printWhenExpression>
|
||||
</reportElement>
|
||||
<textElement/>
|
||||
<textFieldExpression><![CDATA[$F{localidade}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="#,##0.00">
|
||||
<reportElement uuid="06fc754c-d01f-4a92-bd76-7e900d93a69a" x="257" y="0" width="95" height="20" isRemoveLineWhenBlank="true">
|
||||
<reportElement x="257" y="0" width="95" height="20" isRemoveLineWhenBlank="true" uuid="06fc754c-d01f-4a92-bd76-7e900d93a69a">
|
||||
<printWhenExpression><![CDATA[$P{corrida_id_relatorio}.equals(new BigDecimal($F{corridaId}.toString()))]]></printWhenExpression>
|
||||
</reportElement>
|
||||
<textElement/>
|
||||
<textFieldExpression><![CDATA[$F{receitaSaida}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="#,##0.00">
|
||||
<reportElement uuid="ceb27078-6808-4d71-882d-c22332c3e5a3" x="352" y="0" width="100" height="20" isRemoveLineWhenBlank="true">
|
||||
<reportElement x="352" y="0" width="100" height="20" isRemoveLineWhenBlank="true" uuid="ceb27078-6808-4d71-882d-c22332c3e5a3">
|
||||
<printWhenExpression><![CDATA[$P{corrida_id_relatorio}.equals(new BigDecimal($F{corridaId}.toString()))]]></printWhenExpression>
|
||||
</reportElement>
|
||||
<textElement/>
|
||||
<textFieldExpression><![CDATA[$F{receitaChegada}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="#,##0.00">
|
||||
<reportElement uuid="d75fc1b6-95f3-453a-8d09-40e9bc7959b8" x="452" y="0" width="65" height="20" isRemoveLineWhenBlank="true">
|
||||
<reportElement x="452" y="0" width="65" height="20" isRemoveLineWhenBlank="true" uuid="d75fc1b6-95f3-453a-8d09-40e9bc7959b8">
|
||||
<printWhenExpression><![CDATA[$P{corrida_id_relatorio}.equals(new BigDecimal($F{corridaId}.toString()))]]></printWhenExpression>
|
||||
</reportElement>
|
||||
<textElement/>
|
||||
<textFieldExpression><![CDATA[$F{soma}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="#,##0.00">
|
||||
<reportElement uuid="fd0a475e-2147-498c-8363-04a4af4031c4" x="517" y="0" width="246" height="20" isRemoveLineWhenBlank="true">
|
||||
<reportElement x="517" y="0" width="246" height="20" isRemoveLineWhenBlank="true" uuid="fd0a475e-2147-498c-8363-04a4af4031c4">
|
||||
<printWhenExpression><![CDATA[$P{corrida_id_relatorio}.equals(new BigDecimal($F{corridaId}.toString()))]]></printWhenExpression>
|
||||
</reportElement>
|
||||
<textElement/>
|
||||
<textFieldExpression><![CDATA[$F{peso}.multiply(new BigDecimal("100"))]]></textFieldExpression>
|
||||
</textField>
|
||||
</jr:listContents>
|
||||
</jr:list>
|
||||
</componentElement>
|
||||
<staticText>
|
||||
<reportElement uuid="f65284c0-c782-4168-b4be-867c1fbcdd79" x="0" y="171" width="763" height="20"/>
|
||||
<reportElement x="0" y="171" width="763" height="20" uuid="f65284c0-c782-4168-b4be-867c1fbcdd79"/>
|
||||
<textElement verticalAlignment="Middle">
|
||||
<font size="11" isBold="true"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Peso Operacional]]></text>
|
||||
</staticText>
|
||||
<textField pattern="#,##0.00">
|
||||
<reportElement uuid="2e9a3a57-4989-4418-83d5-6a389f91f1b7" x="94" y="61" width="127" height="20"/>
|
||||
<textElement/>
|
||||
<reportElement x="94" y="61" width="127" height="20" uuid="2e9a3a57-4989-4418-83d5-6a389f91f1b7"/>
|
||||
<textFieldExpression><![CDATA[$F{KM_CORRIDA}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="#,##0.00">
|
||||
<reportElement uuid="9d44eaed-c896-4000-a73d-2443760ede53" x="94" y="101" width="127" height="20"/>
|
||||
<textElement/>
|
||||
<reportElement x="94" y="101" width="127" height="20" uuid="9d44eaed-c896-4000-a73d-2443760ede53"/>
|
||||
<textFieldExpression><![CDATA[$V{KM_CORRIDA_1}]]></textFieldExpression>
|
||||
</textField>
|
||||
<staticText>
|
||||
<reportElement uuid="214d1ffb-e86e-4d8c-a7a2-3138ac92f161" x="0" y="141" width="94" height="20"/>
|
||||
<reportElement x="0" y="141" width="94" height="20" uuid="214d1ffb-e86e-4d8c-a7a2-3138ac92f161"/>
|
||||
<textElement verticalAlignment="Middle">
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Pax Ofertado:]]></text>
|
||||
</staticText>
|
||||
<textField pattern="#,##0.00">
|
||||
<reportElement uuid="5c8faa69-f13d-41c0-9ba4-46007cae9716" x="94" y="141" width="669" height="20"/>
|
||||
<textElement/>
|
||||
<reportElement x="94" y="141" width="669" height="20" uuid="5c8faa69-f13d-41c0-9ba4-46007cae9716"/>
|
||||
<textFieldExpression><![CDATA[$V{PAX_OFERTADO}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="#,##0.00">
|
||||
<reportElement uuid="f73cbb8b-ccfd-4145-8314-7f6da15129b8" x="291" y="121" width="472" height="20"/>
|
||||
<textElement/>
|
||||
<reportElement x="291" y="121" width="472" height="20" uuid="f73cbb8b-ccfd-4145-8314-7f6da15129b8"/>
|
||||
<textFieldExpression><![CDATA[$V{sum_pax_km}.divide( $V{PAX_OFERTADO}, 4, RoundingMode.HALF_UP).multiply(new BigDecimal("100"))]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement uuid="530855a6-9450-465a-8f7c-cdd67a2a311a" x="94" y="81" width="127" height="20"/>
|
||||
<textElement/>
|
||||
<reportElement x="94" y="81" width="127" height="20" uuid="530855a6-9450-465a-8f7c-cdd67a2a311a"/>
|
||||
<textFieldExpression><![CDATA[$F{VIAGENS}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement uuid="14716f25-b47e-44d0-8736-30363a0f4a7b" x="329" y="0" width="78" height="21"/>
|
||||
<reportElement x="329" y="0" width="78" height="21" uuid="14716f25-b47e-44d0-8736-30363a0f4a7b"/>
|
||||
<textElement textAlignment="Right"/>
|
||||
<textFieldExpression><![CDATA[$V{ABSOLUTOS_1}]]></textFieldExpression>
|
||||
</textField>
|
||||
<staticText>
|
||||
<reportElement uuid="01f4d447-bbe3-47ed-90f1-53d6f9241041" x="0" y="0" width="329" height="21"/>
|
||||
<textElement/>
|
||||
<reportElement x="0" y="0" width="329" height="21" uuid="01f4d447-bbe3-47ed-90f1-53d6f9241041"/>
|
||||
<text><![CDATA[]]></text>
|
||||
</staticText>
|
||||
</band>
|
||||
|
@ -559,50 +540,49 @@
|
|||
<title>
|
||||
<band height="82" splitType="Stretch">
|
||||
<staticText>
|
||||
<reportElement uuid="58b5b133-43e0-42f0-a904-5cc3645d3df3" x="0" y="0" width="391" height="20"/>
|
||||
<reportElement x="0" y="0" width="391" height="20" uuid="58b5b133-43e0-42f0-a904-5cc3645d3df3"/>
|
||||
<textElement verticalAlignment="Middle">
|
||||
<font size="14" isBold="true"/>
|
||||
</textElement>
|
||||
<text><![CDATA[ORIGEM/DESTINO OD]]></text>
|
||||
</staticText>
|
||||
<textField pattern="dd/MM/yyyy HH:mm">
|
||||
<reportElement uuid="4d1bcd65-c9a6-44b4-8dca-cc3c4c20c9a5" x="391" y="0" width="374" height="20"/>
|
||||
<reportElement x="391" y="0" width="374" height="20" uuid="4d1bcd65-c9a6-44b4-8dca-cc3c4c20c9a5"/>
|
||||
<textElement textAlignment="Right" verticalAlignment="Middle">
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[new java.util.Date()]]></textFieldExpression>
|
||||
</textField>
|
||||
<staticText>
|
||||
<reportElement uuid="bb8d0dec-2060-456e-bca1-c69d7c272fa3" x="0" y="63" width="74" height="19"/>
|
||||
<reportElement x="0" y="63" width="74" height="19" uuid="bb8d0dec-2060-456e-bca1-c69d7c272fa3"/>
|
||||
<textElement verticalAlignment="Middle">
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Serviço(s):]]></text>
|
||||
</staticText>
|
||||
<textField>
|
||||
<reportElement uuid="a16eb33b-78ca-4fb4-80c2-f5c85a0d09c3" x="0" y="20" width="765" height="20"/>
|
||||
<reportElement x="0" y="20" width="765" height="20" uuid="a16eb33b-78ca-4fb4-80c2-f5c85a0d09c3"/>
|
||||
<textElement verticalAlignment="Middle">
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA["Período: " + $P{DATA_DE} + " a " + $P{DATA_ATE}]]></textFieldExpression>
|
||||
</textField>
|
||||
<line>
|
||||
<reportElement uuid="3f36efc2-5272-4015-95bb-b8efdc893b89" x="0" y="81" width="765" height="1"/>
|
||||
<reportElement x="0" y="81" width="765" height="1" uuid="3f36efc2-5272-4015-95bb-b8efdc893b89"/>
|
||||
</line>
|
||||
<staticText>
|
||||
<reportElement uuid="3857502f-b69a-4362-97fe-6f7a7f6ee32b" x="0" y="40" width="74" height="23"/>
|
||||
<reportElement x="0" y="40" width="74" height="23" uuid="3857502f-b69a-4362-97fe-6f7a7f6ee32b"/>
|
||||
<textElement verticalAlignment="Middle">
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Empresa(s):]]></text>
|
||||
</staticText>
|
||||
<textField>
|
||||
<reportElement uuid="7f31cdf0-886d-4eef-b64c-28bc94c05b77" x="74" y="40" width="691" height="23" isPrintWhenDetailOverflows="true"/>
|
||||
<textElement/>
|
||||
<reportElement x="74" y="40" width="691" height="23" isPrintWhenDetailOverflows="true" uuid="7f31cdf0-886d-4eef-b64c-28bc94c05b77"/>
|
||||
<textFieldExpression><![CDATA[$P{EMPRESAS}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement uuid="44b1c344-61df-4dd0-b661-cae5f2f8e699" x="74" y="63" width="691" height="19" isPrintWhenDetailOverflows="true"/>
|
||||
<reportElement x="74" y="63" width="691" height="19" isPrintWhenDetailOverflows="true" uuid="44b1c344-61df-4dd0-b661-cae5f2f8e699"/>
|
||||
<textElement>
|
||||
<font isBold="false" isUnderline="false" isStrikeThrough="false"/>
|
||||
</textElement>
|
||||
|
@ -616,10 +596,10 @@
|
|||
<pageHeader>
|
||||
<band height="21" splitType="Stretch">
|
||||
<line>
|
||||
<reportElement uuid="4f39b5b4-849a-4fe2-9365-06930866fbaa" x="0" y="20" width="763" height="1"/>
|
||||
<reportElement x="0" y="20" width="763" height="1" uuid="4f39b5b4-849a-4fe2-9365-06930866fbaa"/>
|
||||
</line>
|
||||
<textField>
|
||||
<reportElement uuid="6a8a0843-7236-40a3-98ae-5fbf59b4cfec" x="0" y="0" width="765" height="20"/>
|
||||
<reportElement x="0" y="0" width="765" height="20" uuid="6a8a0843-7236-40a3-98ae-5fbf59b4cfec"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
|
@ -633,67 +613,65 @@
|
|||
<detail>
|
||||
<band height="21" splitType="Stretch">
|
||||
<textField>
|
||||
<reportElement uuid="c45c70fb-1c4e-46a8-9a39-f804605e85b5" x="329" y="0" width="77" height="21"/>
|
||||
<reportElement x="329" y="0" width="77" height="21" uuid="c45c70fb-1c4e-46a8-9a39-f804605e85b5"/>
|
||||
<textElement textAlignment="Right"/>
|
||||
<textFieldExpression><![CDATA[$F{ABSOLUTOS}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement uuid="87a6161e-e6ed-4330-bbff-34a87a5fb1a6" x="108" y="0" width="41" height="21"/>
|
||||
<reportElement x="108" y="0" width="41" height="21" uuid="87a6161e-e6ed-4330-bbff-34a87a5fb1a6"/>
|
||||
<textElement textAlignment="Right"/>
|
||||
<textFieldExpression><![CDATA[$F{KM_TRAMO}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="#,##0.00">
|
||||
<reportElement uuid="22d22d0b-ed49-44a7-8725-c4a62b7fbb41" x="662" y="0" width="51" height="21"/>
|
||||
<reportElement x="662" y="0" width="51" height="21" uuid="22d22d0b-ed49-44a7-8725-c4a62b7fbb41"/>
|
||||
<textElement textAlignment="Right"/>
|
||||
<textFieldExpression><![CDATA[$V{porc_abs}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="#,##0.00">
|
||||
<reportElement uuid="5ecd33c0-2648-482f-b87a-d5197d2f193e" x="713" y="0" width="50" height="21"/>
|
||||
<reportElement x="713" y="0" width="50" height="21" uuid="5ecd33c0-2648-482f-b87a-d5197d2f193e"/>
|
||||
<textElement textAlignment="Right"/>
|
||||
<textFieldExpression><![CDATA[$V{por_equivalente}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement uuid="0de4edf8-49c8-49d2-b2d6-0476fb8ab3ed" x="610" y="0" width="52" height="21"/>
|
||||
<reportElement x="610" y="0" width="52" height="21" uuid="0de4edf8-49c8-49d2-b2d6-0476fb8ab3ed"/>
|
||||
<textElement textAlignment="Right"/>
|
||||
<textFieldExpression><![CDATA[$V{pax_km}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="#,##0.00">
|
||||
<reportElement uuid="c88714a3-010d-4e26-801d-8982acc15a19" x="406" y="0" width="64" height="21"/>
|
||||
<reportElement x="406" y="0" width="64" height="21" uuid="c88714a3-010d-4e26-801d-8982acc15a19"/>
|
||||
<textElement textAlignment="Right"/>
|
||||
<textFieldExpression><![CDATA[$F{RECEITA}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement uuid="3a76b131-6ebf-4234-a367-ba5e1527886a" x="193" y="0" width="77" height="21"/>
|
||||
<textField pattern="###0.00;-###0.00" isBlankWhenNull="true">
|
||||
<reportElement x="193" y="0" width="77" height="21" uuid="3a76b131-6ebf-4234-a367-ba5e1527886a"/>
|
||||
<textElement textAlignment="Right"/>
|
||||
<textFieldExpression><![CDATA[$F{IMPORTETAXAEMBARQUE}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isBlankWhenNull="true">
|
||||
<reportElement uuid="32534bbc-2bf6-4786-b5cd-e68c4062d3ec" x="270" y="0" width="59" height="21"/>
|
||||
<textField pattern="###0.00;-###0.00" isBlankWhenNull="true">
|
||||
<reportElement x="270" y="0" width="59" height="21" uuid="32534bbc-2bf6-4786-b5cd-e68c4062d3ec"/>
|
||||
<textElement textAlignment="Right"/>
|
||||
<textFieldExpression><![CDATA[$F{IMPORTEPEDAGIO}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="#,##0.00">
|
||||
<reportElement uuid="0fe8352f-f787-46b6-adcb-e8dda60b4d9d" x="470" y="0" width="66" height="21"/>
|
||||
<reportElement x="470" y="0" width="66" height="21" uuid="0fe8352f-f787-46b6-adcb-e8dda60b4d9d"/>
|
||||
<textElement textAlignment="Right"/>
|
||||
<textFieldExpression><![CDATA[$V{rec_abs}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="#,##0.00">
|
||||
<reportElement uuid="5ad372c0-5127-4441-aae3-be6ca2949a93" x="536" y="0" width="74" height="21"/>
|
||||
<reportElement x="536" y="0" width="74" height="21" uuid="5ad372c0-5127-4441-aae3-be6ca2949a93"/>
|
||||
<textElement textAlignment="Right"/>
|
||||
<textFieldExpression><![CDATA[$V{equivalente}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement uuid="b3bae3e1-ad19-4ed0-8188-b4700f493c28" x="1" y="0" width="58" height="21"/>
|
||||
<textElement/>
|
||||
<reportElement x="1" y="0" width="58" height="21" uuid="b3bae3e1-ad19-4ed0-8188-b4700f493c28"/>
|
||||
<textFieldExpression><![CDATA[$F{ORIGEM}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement uuid="e3a13390-06e7-4bda-bb55-8afbfb15d6fb" x="59" y="0" width="49" height="21"/>
|
||||
<textElement/>
|
||||
<reportElement x="59" y="0" width="49" height="21" uuid="e3a13390-06e7-4bda-bb55-8afbfb15d6fb"/>
|
||||
<textFieldExpression><![CDATA[$F{DESTINO}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement uuid="9fef3b4f-3c79-4b11-8702-0f4c5757b81e" x="149" y="0" width="44" height="21"/>
|
||||
<textField pattern="###0.00;-###0.00">
|
||||
<reportElement x="149" y="0" width="44" height="21" uuid="9fef3b4f-3c79-4b11-8702-0f4c5757b81e"/>
|
||||
<textElement textAlignment="Right"/>
|
||||
<textFieldExpression><![CDATA[$F{PRECIOBASE}]]></textFieldExpression>
|
||||
</textField>
|
||||
|
|
Loading…
Reference in New Issue