Fixes Bug #0009446
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@72722 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
2929df7150
commit
0be3dff92f
|
@ -17,7 +17,6 @@ import net.sf.jasperreports.engine.data.JRBeanCollectionDataSource;
|
|||
public class RelatorioGratuidade extends Relatorio {
|
||||
|
||||
private Integer orgaoConcedenteId;
|
||||
private String orgaoConcedenteDesc;
|
||||
|
||||
private List<RelatorioGratuidadeBean> lsDadosRelatorio;
|
||||
|
||||
|
@ -32,8 +31,22 @@ public class RelatorioGratuidade extends Relatorio {
|
|||
|
||||
Map<String, Object> parametros = this.relatorio.getParametros();
|
||||
|
||||
String fecInicio = parametros.get("fecInicio").toString() + " 00:00:00";
|
||||
String fecFinal = parametros.get("fecFinal").toString() + " 23:59:59";
|
||||
String fecInicioViagem = null;
|
||||
if (parametros.get("fecInicioViagem") != null) {
|
||||
fecInicioViagem = parametros.get("fecInicioViagem").toString() + " 00:00:00";
|
||||
}
|
||||
String fecFinalViagem = null;
|
||||
if (parametros.get("fecFinalViagem") != null) {
|
||||
fecFinalViagem = parametros.get("fecFinalViagem").toString() + " 23:59:59";
|
||||
}
|
||||
String fecInicioVenda = null;
|
||||
if (parametros.get("fecInicioVenda") != null) {
|
||||
fecInicioVenda = parametros.get("fecInicioVenda").toString() + " 00:00:00";
|
||||
}
|
||||
String fecFinalVenda = null;
|
||||
if (parametros.get("fecFinalVenda") != null) {
|
||||
fecFinalVenda = parametros.get("fecFinalVenda").toString() + " 23:59:59";
|
||||
}
|
||||
String empresa = parametros.get("empresa") != null ? parametros.get("empresa").toString() : "";
|
||||
String agencia = parametros.get("agencia") != null ? parametros.get("agencia").toString() : "";
|
||||
String ruta = parametros.get("ruta") != null && !parametros.get("ruta").equals(-1) ? parametros.get("ruta").toString() : "";
|
||||
|
@ -41,16 +54,25 @@ public class RelatorioGratuidade extends Relatorio {
|
|||
String destino = parametros.get("destino") != null ? parametros.get("destino").toString() : "";
|
||||
String categoria = parametros.get("categoria") != null ? parametros.get("categoria").toString() : "";
|
||||
orgaoConcedenteId = parametros.get("orgao_concedente_id") != null ? (Integer) parametros.get("orgao_concedente_id") : null;
|
||||
orgaoConcedenteDesc = parametros.get("orgao_concedente_desc") != null ? parametros.get("orgao_concedente_desc").toString() : null;
|
||||
|
||||
String sql = getSql(empresa, agencia, ruta, fecInicio, fecFinal, origem, destino, categoria);
|
||||
String sql = getSql(empresa, agencia, ruta, fecInicioViagem, fecFinalViagem, fecInicioVenda, fecFinalVenda, origem, destino, categoria);
|
||||
|
||||
System.out.println(sql);
|
||||
|
||||
SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy hh:mm:ss");
|
||||
NamedParameterStatement stmt = new NamedParameterStatement(conexao, sql);
|
||||
stmt.setTimestamp("fecInicio", new java.sql.Timestamp(sdf.parse(fecInicio).getTime()));
|
||||
stmt.setTimestamp("fecFinal", new java.sql.Timestamp(sdf.parse(fecFinal).getTime()));
|
||||
if (fecInicioViagem != null) {
|
||||
stmt.setTimestamp("fecInicioViagem", new java.sql.Timestamp(sdf.parse(fecInicioViagem).getTime()));
|
||||
}
|
||||
if (fecFinalViagem != null) {
|
||||
stmt.setTimestamp("fecFinalViagem", new java.sql.Timestamp(sdf.parse(fecFinalViagem).getTime()));
|
||||
}
|
||||
if (fecInicioVenda != null) {
|
||||
stmt.setTimestamp("fecInicioVenda", new java.sql.Timestamp(sdf.parse(fecInicioVenda).getTime()));
|
||||
}
|
||||
if (fecFinalVenda != null) {
|
||||
stmt.setTimestamp("fecFinalVenda", new java.sql.Timestamp(sdf.parse(fecFinalVenda).getTime()));
|
||||
}
|
||||
if(empresa != null && !empresa.equals("")){
|
||||
stmt.setInt("empresa_id", Integer.parseInt(empresa));
|
||||
}
|
||||
|
@ -102,9 +124,19 @@ public class RelatorioGratuidade extends Relatorio {
|
|||
gratuidadeBean.setDescorigen(rset.getString("descorigen"));
|
||||
gratuidadeBean.setDescdestino(rset.getString("descdestino"));
|
||||
gratuidadeBean.setNumfoliosistema(rset.getString("numfoliosistema"));
|
||||
|
||||
gratuidadeBean.setTipoDoc(rset.getString("desctipo"));
|
||||
gratuidadeBean.setTipo(rset.getString("desccategoria"));
|
||||
gratuidadeBean.setSeguro(rset.getBigDecimal("importeseguro"));
|
||||
gratuidadeBean.setPedagio(rset.getBigDecimal("importepedagio"));
|
||||
gratuidadeBean.setUtr(rset.getBigDecimal("importetaxaembarque"));
|
||||
gratuidadeBean.setRg(rset.getString("DESCNUMDOC"));
|
||||
gratuidadeBean.setStatus(rset.getString("INDSTATUSBOLETO"));
|
||||
//gratuidadeBean.setDataMd(rset.getDate(""));
|
||||
|
||||
lsDadosRelatorio.add(gratuidadeBean);
|
||||
}
|
||||
|
||||
|
||||
if (lsDadosRelatorio.size() > 0) {
|
||||
setLsDadosRelatorio(lsDadosRelatorio);
|
||||
}
|
||||
|
@ -121,12 +153,12 @@ public class RelatorioGratuidade extends Relatorio {
|
|||
protected void processaParametros() throws Exception {
|
||||
}
|
||||
|
||||
private String getSql(String empresa, String agencia, String ruta, String fecInicio, String fecFinal, String origem, String destino, String categoria) {
|
||||
private String getSql(String empresa, String agencia, String ruta, String fecInicioViagem, String fecFinalViagem, String fecInicioVenda, String fecFinalVenda, String origem, String destino, String categoria) {
|
||||
StringBuffer sql = new StringBuffer();
|
||||
sql.append("SELECT b.feccorrida, ori.cveparada origen, des.cveparada destino, ori.descparada descorigen, des.descparada descdestino, ");
|
||||
sql.append("b.numkmviaje, r.descruta, b.corrida_id, b.fechorviaje, b.numasiento, b.numfoliosistema, ");
|
||||
sql.append("tv.desctipoventa, b.nombpasajero, b.descnumdoc, tar.preciooriginal, ");
|
||||
sql.append("b.porccategoria, b.preciopagado, u.cveusuario, ag.nombpuntoventa, e.nombempresa, cat.cvecategoria ");
|
||||
sql.append("SELECT DISTINCT b.feccorrida, ori.cveparada origen, des.cveparada destino, ori.descparada descorigen, des.descparada descdestino, b.numkmviaje, ");
|
||||
sql.append("r.descruta, b.corrida_id, b.fechorviaje, b.numasiento, b.numfoliosistema, tv.desctipoventa, b.nombpasajero, b.descnumdoc, tar.preciooriginal, ");
|
||||
sql.append("b.porccategoria, b.preciopagado, u.cveusuario, ag.nombpuntoventa, e.nombempresa, C.cvecategoria, ti.DESCTIPO, ");
|
||||
sql.append("c.DESCCATEGORIA, tar.IMPORTEPEDAGIO, tar.IMPORTESEGURO, tar.IMPORTETAXAEMBARQUE, b.DESCNUMDOC, b.INDSTATUSBOLETO ");
|
||||
sql.append("FROM boleto b ");
|
||||
sql.append("JOIN categoria c ON b.categoria_id = c.categoria_id ");
|
||||
sql.append("JOIN parada ori ON ori.parada_id = b.origen_id ");
|
||||
|
@ -143,9 +175,14 @@ public class RelatorioGratuidade extends Relatorio {
|
|||
sql.append(" AND tar.origen_id = b.origen_id ");
|
||||
sql.append(" AND tar.destino_id = b.destino_id) ");
|
||||
sql.append("JOIN empresa e ON e.empresa_id = b.empresacorrida_id ");
|
||||
sql.append("JOIN categoria cat ON cat.categoria_id = b.categoria_id ");
|
||||
sql.append("WHERE ");
|
||||
sql.append(" b.feccorrida BETWEEN :fecInicio AND :fecFinal ");
|
||||
sql.append("LEFT JOIN TIPO_IDENTIFICACION ti ON ti.TIPOIDENTIFICACION_ID = b.TIPOIDENTIFICACIONDOC_ID ");
|
||||
sql.append("WHERE 1=1 ");
|
||||
if (fecInicioViagem != null && fecFinalViagem != null) {
|
||||
sql.append(" AND b.feccorrida BETWEEN :fecInicioViagem AND :fecFinalViagem ");
|
||||
}
|
||||
if (fecInicioVenda != null && fecFinalVenda != null) {
|
||||
sql.append(" AND b.b.FECHORVENTA BETWEEN :fecInicioVenda AND :fecFinalVenda ");
|
||||
}
|
||||
sql.append("AND b.motivocancelacion_id IS NULL ");
|
||||
if (!empresa.isEmpty()){
|
||||
sql.append("AND b.empresacorrida_id = :empresa_id ");
|
||||
|
@ -163,12 +200,12 @@ public class RelatorioGratuidade extends Relatorio {
|
|||
sql.append(" AND des.parada_id = :destino_id ");
|
||||
}
|
||||
if(!categoria.isEmpty()){
|
||||
sql.append(" AND c.categoria_id = :categoria_id ");
|
||||
sql.append(" AND c.categoria_id in(:categoria_id) ");
|
||||
}
|
||||
if(orgaoConcedenteId != null){
|
||||
sql.append(" AND r.orgaoconcedente_id = :orgao_concedente_id ");
|
||||
}
|
||||
|
||||
|
||||
return sql.toString();
|
||||
}
|
||||
}
|
|
@ -11,6 +11,8 @@ header.filtro.servico=Servi
|
|||
header.filtro.linha=Linha\:
|
||||
header.filtro.grupo=Grupo de Linhas\:
|
||||
header.empresa=Empresa\:
|
||||
header.periodo.viagem=Período Viagem
|
||||
header.periodo.venda=Período Venda
|
||||
|
||||
#Labels detail
|
||||
|
||||
|
@ -30,6 +32,15 @@ detail.desconto=Desc.(%)
|
|||
detail.tarifadesconto=Tarifa
|
||||
detail.bilheteiro=Bilheteiro
|
||||
detail.agencia=Agência
|
||||
detail.dataMD=Data MD
|
||||
detail.tipo=Tipo
|
||||
detail.tipoDoc=Tipo Doc.
|
||||
detail.tarifa=Tarifa
|
||||
detail.seguro=Seguro
|
||||
detail.utr=UTR
|
||||
detail.pedagio=Pedágio
|
||||
detail.rg=RG
|
||||
detail.status=Status
|
||||
|
||||
detail.total=Total Quantidade:
|
||||
|
||||
|
|
Binary file not shown.
|
@ -1,17 +1,20 @@
|
|||
<?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="RelatorioEmpresaCorrida" pageWidth="842" pageHeight="595" orientation="Landscape" whenNoDataType="NoDataSection" columnWidth="822" leftMargin="10" rightMargin="10" topMargin="20" bottomMargin="20" resourceBundle="RelatorioEmpresaCorrida" whenResourceMissingType="Empty" uuid="94834362-0ecc-46da-b0a2-5cdee355da3e">
|
||||
<property name="ireport.zoom" value="2.196150000000002"/>
|
||||
<property name="ireport.x" value="0"/>
|
||||
<property name="ireport.y" value="192"/>
|
||||
<parameter name="fecInicio" class="java.lang.String">
|
||||
<property name="ireport.zoom" value="3.5369215365000204"/>
|
||||
<property name="ireport.x" value="1984"/>
|
||||
<property name="ireport.y" value="461"/>
|
||||
<property name="net.sf.jasperreports.export.xls.exclude.origin.band.2" value="pageHeader"/>
|
||||
<parameter name="fecInicioViagem" class="java.lang.String">
|
||||
<defaultValueExpression><![CDATA[]]></defaultValueExpression>
|
||||
</parameter>
|
||||
<parameter name="NOMBEMPRESA" class="java.lang.String"/>
|
||||
<parameter name="fecFinal" class="java.lang.String"/>
|
||||
<parameter name="fecFinalViagem" class="java.lang.String"/>
|
||||
<parameter name="USUARIO_ID" class="java.lang.String"/>
|
||||
<parameter name="LINHA_FILTRO" class="java.lang.String"/>
|
||||
<parameter name="SERVICO_FILTRO" class="java.lang.String"/>
|
||||
<parameter name="TITULO" class="java.lang.String"/>
|
||||
<parameter name="fecInicioVenda" class="java.lang.String"/>
|
||||
<parameter name="fecFinalVenda" class="java.lang.String"/>
|
||||
<queryString>
|
||||
<![CDATA[]]>
|
||||
</queryString>
|
||||
|
@ -36,7 +39,14 @@
|
|||
<field name="descorigen" class="java.lang.String"/>
|
||||
<field name="descdestino" class="java.lang.String"/>
|
||||
<field name="numfoliosistema" class="java.lang.String"/>
|
||||
<field name="orgaoConcedente" class="java.lang.String"/>
|
||||
<field name="tipo" class="java.lang.String"/>
|
||||
<field name="tipoDoc" class="java.lang.String"/>
|
||||
<field name="seguro" class="java.math.BigDecimal"/>
|
||||
<field name="utr" class="java.math.BigDecimal"/>
|
||||
<field name="pedagio" class="java.math.BigDecimal"/>
|
||||
<field name="rg" class="java.lang.String"/>
|
||||
<field name="status" class="java.lang.String"/>
|
||||
<field name="dataMd" class="java.lang.String"/>
|
||||
<variable name="qtde" class="java.lang.Integer" calculation="Count">
|
||||
<variableExpression><![CDATA[$F{km}]]></variableExpression>
|
||||
</variable>
|
||||
|
@ -51,86 +61,86 @@
|
|||
<groupHeader>
|
||||
<band height="68">
|
||||
<textField pattern="dd/MM/yyyy" isBlankWhenNull="true">
|
||||
<reportElement uuid="d15af518-c902-4903-bf8a-d4cf3ff6c05e" x="121" y="10" width="144" height="16"/>
|
||||
<reportElement uuid="d15af518-c902-4903-bf8a-d4cf3ff6c05e" x="69" y="10" width="191" height="16"/>
|
||||
<textElement textAlignment="Left">
|
||||
<font size="10"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{nombempresa}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement uuid="d08e6683-5388-4505-9e47-fc3d501c62b9" x="0" y="51" width="49" height="16"/>
|
||||
<reportElement uuid="d08e6683-5388-4505-9e47-fc3d501c62b9" x="0" y="40" width="34" height="27"/>
|
||||
<textElement/>
|
||||
<textFieldExpression><![CDATA[$R{detail.data}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement uuid="2c09f3ff-c554-4ce2-886e-eaab93fa15eb" x="49" y="51" width="50" height="16"/>
|
||||
<reportElement uuid="2c09f3ff-c554-4ce2-886e-eaab93fa15eb" x="34" y="40" width="35" height="27"/>
|
||||
<textElement/>
|
||||
<textFieldExpression><![CDATA[$R{detail.origen}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement uuid="e18edb89-17f4-417e-8041-664f11245cbd" x="99" y="51" width="44" height="16"/>
|
||||
<reportElement uuid="e18edb89-17f4-417e-8041-664f11245cbd" x="69" y="40" width="44" height="27"/>
|
||||
<textElement/>
|
||||
<textFieldExpression><![CDATA[$R{detail.destino}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement uuid="6124e4be-a471-4867-86f5-bb635ce5db7f" x="143" y="51" width="21" height="16"/>
|
||||
<reportElement uuid="6124e4be-a471-4867-86f5-bb635ce5db7f" x="113" y="40" width="21" height="27"/>
|
||||
<textElement/>
|
||||
<textFieldExpression><![CDATA[$R{detail.km}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement uuid="67851ba5-cc9c-4f37-8857-9e3c5be9b362" x="164" y="51" width="114" height="16"/>
|
||||
<reportElement uuid="67851ba5-cc9c-4f37-8857-9e3c5be9b362" x="134" y="40" width="40" height="27"/>
|
||||
<textElement/>
|
||||
<textFieldExpression><![CDATA[$R{detail.linha}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement uuid="93fedb4f-18e2-4d95-82e8-2108d3eb135c" x="278" y="51" width="44" height="16"/>
|
||||
<reportElement uuid="93fedb4f-18e2-4d95-82e8-2108d3eb135c" x="174" y="40" width="44" height="27"/>
|
||||
<textElement/>
|
||||
<textFieldExpression><![CDATA[$R{detail.servicio}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement uuid="3de0b54a-0b10-4556-9b0a-ba8f19989716" x="322" y="51" width="42" height="16"/>
|
||||
<reportElement uuid="3de0b54a-0b10-4556-9b0a-ba8f19989716" x="218" y="40" width="42" height="27"/>
|
||||
<textElement/>
|
||||
<textFieldExpression><![CDATA[$R{detail.hora}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement uuid="cc834009-ae90-46d4-8bbb-37578b69f621" x="420" y="40" width="44" height="27"/>
|
||||
<reportElement uuid="cc834009-ae90-46d4-8bbb-37578b69f621" x="316" y="40" width="29" height="27"/>
|
||||
<textElement>
|
||||
<font size="9"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{detail.tipobilhete}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement uuid="842c2e2b-0a9e-4a28-9010-9b0c814c5bcb" x="508" y="51" width="66" height="16"/>
|
||||
<reportElement uuid="842c2e2b-0a9e-4a28-9010-9b0c814c5bcb" x="374" y="40" width="33" height="27"/>
|
||||
<textElement/>
|
||||
<textFieldExpression><![CDATA[$R{detail.pasajero}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement uuid="94fe9e9b-e231-43b8-aeb8-7bc3eb2d61af" x="574" y="51" width="44" height="16"/>
|
||||
<reportElement uuid="94fe9e9b-e231-43b8-aeb8-7bc3eb2d61af" x="407" y="40" width="32" height="27"/>
|
||||
<textElement/>
|
||||
<textFieldExpression><![CDATA[$R{detail.documento}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement uuid="952c3d60-ade1-4f57-8801-3ef6bc7f2333" x="618" y="51" width="28" height="16"/>
|
||||
<reportElement uuid="952c3d60-ade1-4f57-8801-3ef6bc7f2333" x="439" y="40" width="28" height="27"/>
|
||||
<textElement/>
|
||||
<textFieldExpression><![CDATA[$R{detail.precio}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement uuid="e14732be-42a0-4f54-9eb2-52f10ece154b" x="646" y="51" width="30" height="16"/>
|
||||
<reportElement uuid="e14732be-42a0-4f54-9eb2-52f10ece154b" x="467" y="40" width="30" height="27"/>
|
||||
<textElement textAlignment="Right"/>
|
||||
<textFieldExpression><![CDATA[$R{detail.desconto}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement uuid="b34ce751-6969-47b0-aeb7-fff00a5de1e3" x="676" y="51" width="24" height="16"/>
|
||||
<reportElement uuid="b34ce751-6969-47b0-aeb7-fff00a5de1e3" x="497" y="40" width="24" height="27"/>
|
||||
<textElement textAlignment="Right"/>
|
||||
<textFieldExpression><![CDATA[$R{detail.tarifadesconto}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement uuid="bb3d2388-6bda-4727-ba30-0a5f4612f1a8" x="701" y="51" width="51" height="16"/>
|
||||
<reportElement uuid="bb3d2388-6bda-4727-ba30-0a5f4612f1a8" x="521" y="40" width="30" height="27"/>
|
||||
<textElement/>
|
||||
<textFieldExpression><![CDATA[$R{detail.bilheteiro}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement uuid="e727feec-a329-4f8c-af2a-c89c3c2e9606" x="752" y="51" width="70" height="16"/>
|
||||
<reportElement uuid="e727feec-a329-4f8c-af2a-c89c3c2e9606" x="551" y="40" width="30" height="27"/>
|
||||
<textElement/>
|
||||
<textFieldExpression><![CDATA[$R{detail.agencia}]]></textFieldExpression>
|
||||
</textField>
|
||||
|
@ -138,27 +148,67 @@
|
|||
<reportElement uuid="8e2d6686-e4d7-43d5-b3a9-46adc3e58350" x="1" y="67" width="821" height="1"/>
|
||||
</line>
|
||||
<textField>
|
||||
<reportElement uuid="8fb67bb3-6ff2-40d1-b338-714f199ea7f0" x="1" y="10" width="120" height="16"/>
|
||||
<reportElement uuid="8fb67bb3-6ff2-40d1-b338-714f199ea7f0" x="1" y="10" width="68" height="16"/>
|
||||
<textElement/>
|
||||
<textFieldExpression><![CDATA[$R{header.empresa}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement uuid="6b1fac8d-c098-4893-b1dd-7b64573f0173" x="464" y="40" width="44" height="27"/>
|
||||
<reportElement uuid="6b1fac8d-c098-4893-b1dd-7b64573f0173" x="345" y="40" width="29" height="27"/>
|
||||
<textElement>
|
||||
<font size="9"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{detail.tipopassagem}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement uuid="0948a2fc-fc39-4f2d-ab06-d7c97a66df39" x="364" y="51" width="26" height="16"/>
|
||||
<reportElement uuid="0948a2fc-fc39-4f2d-ab06-d7c97a66df39" x="260" y="40" width="26" height="27"/>
|
||||
<textElement/>
|
||||
<textFieldExpression><![CDATA[$R{detail.numasiento}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement uuid="c4b5d11d-79a1-4850-8294-8ccaa0898bca" x="390" y="51" width="30" height="16"/>
|
||||
<reportElement uuid="c4b5d11d-79a1-4850-8294-8ccaa0898bca" x="286" y="40" width="30" height="27"/>
|
||||
<textElement/>
|
||||
<textFieldExpression><![CDATA[$R{detail.numfoliosistema}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement uuid="2af7bea7-e8bf-424a-9813-c9d2be7c0459" x="581" y="40" width="30" height="27"/>
|
||||
<textElement/>
|
||||
<textFieldExpression><![CDATA[$R{detail.dataMD}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement uuid="7b62e459-04bc-4227-be76-24bf5938d552" x="611" y="40" width="30" height="27"/>
|
||||
<textElement/>
|
||||
<textFieldExpression><![CDATA[$R{detail.tipo}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement uuid="069eab80-7d6d-4dae-a598-c5014deb81f4" x="641" y="40" width="30" height="27"/>
|
||||
<textElement/>
|
||||
<textFieldExpression><![CDATA[$R{detail.tipoDoc}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement uuid="5105aee2-c3ec-4571-a14c-06b69218decc" x="671" y="40" width="30" height="27"/>
|
||||
<textElement/>
|
||||
<textFieldExpression><![CDATA[$R{detail.rg}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement uuid="1fe1fad6-d193-4dc1-9696-5614ff9a10d0" x="701" y="40" width="30" height="27"/>
|
||||
<textElement/>
|
||||
<textFieldExpression><![CDATA[$R{detail.status}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement uuid="f3655778-94dd-4fb6-8c84-cf32416201e0" x="731" y="40" width="30" height="27"/>
|
||||
<textElement/>
|
||||
<textFieldExpression><![CDATA[$R{detail.seguro}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement uuid="b68a4e34-b6e9-4006-8373-707c4e37eb31" x="761" y="40" width="30" height="27"/>
|
||||
<textElement/>
|
||||
<textFieldExpression><![CDATA[$R{detail.utr}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement uuid="c74391a0-cc07-44f7-90af-3036910e6bb3" x="791" y="40" width="31" height="27"/>
|
||||
<textElement/>
|
||||
<textFieldExpression><![CDATA[$R{detail.pedagio}]]></textFieldExpression>
|
||||
</textField>
|
||||
</band>
|
||||
</groupHeader>
|
||||
</group>
|
||||
|
@ -168,9 +218,9 @@
|
|||
<pageHeader>
|
||||
<band height="71" splitType="Stretch">
|
||||
<textField>
|
||||
<reportElement uuid="e5d4714c-07cc-42ff-a7a8-76d6f6d3e716" x="0" y="20" width="49" height="20"/>
|
||||
<reportElement uuid="e5d4714c-07cc-42ff-a7a8-76d6f6d3e716" x="0" y="20" width="113" height="20"/>
|
||||
<textElement/>
|
||||
<textFieldExpression><![CDATA[$R{header.periodo}]]></textFieldExpression>
|
||||
<textFieldExpression><![CDATA[$R{header.periodo.viagem}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement uuid="66b2d0f6-2bf1-4bc7-9ec0-a34444e04d60" x="666" y="0" width="56" height="20"/>
|
||||
|
@ -188,12 +238,12 @@
|
|||
<textFieldExpression><![CDATA[$R{header.pagina}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement uuid="4914d9e7-6ce8-4512-b1f8-13f3b572ac50" x="49" y="20" width="182" height="20"/>
|
||||
<reportElement uuid="4914d9e7-6ce8-4512-b1f8-13f3b572ac50" x="113" y="20" width="147" height="20"/>
|
||||
<textElement/>
|
||||
<textFieldExpression><![CDATA[$P{fecInicio} + " à " + $P{fecFinal}]]></textFieldExpression>
|
||||
<textFieldExpression><![CDATA[( $P{fecInicioViagem} != null ? ($P{fecInicioViagem} + " à " + $P{fecFinalViagem}) : "" )]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement uuid="652312bd-292a-424d-a234-5f157e3699c6" x="0" y="0" width="231" height="20"/>
|
||||
<reportElement uuid="652312bd-292a-424d-a234-5f157e3699c6" x="0" y="0" width="260" height="20"/>
|
||||
<textElement/>
|
||||
<textFieldExpression><![CDATA[$P{TITULO}]]></textFieldExpression>
|
||||
</textField>
|
||||
|
@ -207,139 +257,205 @@
|
|||
<textElement textAlignment="Right"/>
|
||||
<textFieldExpression><![CDATA[$V{PAGE_NUMBER}+" de"]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement uuid="a79c03e0-bbe4-4b1c-8297-533a0d137b27" x="0" y="40" width="113" height="20"/>
|
||||
<textElement/>
|
||||
<textFieldExpression><![CDATA[$R{header.periodo.venda}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement uuid="b31b00a3-1ced-4f9c-acb7-470646f7b335" x="113" y="40" width="147" height="20"/>
|
||||
<textElement/>
|
||||
<textFieldExpression><![CDATA[( $P{fecInicioVenda} != null ? ($P{fecInicioVenda} + " à " + $P{fecFinalVenda}) : "" )]]></textFieldExpression>
|
||||
</textField>
|
||||
</band>
|
||||
</pageHeader>
|
||||
<columnHeader>
|
||||
<band splitType="Stretch"/>
|
||||
</columnHeader>
|
||||
<detail>
|
||||
<band height="16" splitType="Prevent">
|
||||
<band height="23" splitType="Prevent">
|
||||
<textField isStretchWithOverflow="true">
|
||||
<reportElement uuid="c29b2244-5b3e-48a2-9adf-8e10ee2a3856" stretchType="RelativeToBandHeight" x="143" y="0" width="21" height="16"/>
|
||||
<reportElement uuid="c29b2244-5b3e-48a2-9adf-8e10ee2a3856" stretchType="RelativeToBandHeight" x="113" y="0" width="21" height="23"/>
|
||||
<textElement textAlignment="Left">
|
||||
<font size="8"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{km}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||
<reportElement uuid="3111776a-f727-4313-841c-55dabd804df4" stretchType="RelativeToBandHeight" x="278" y="0" width="44" height="16"/>
|
||||
<reportElement uuid="3111776a-f727-4313-841c-55dabd804df4" stretchType="RelativeToBandHeight" x="174" y="0" width="44" height="23"/>
|
||||
<textElement textAlignment="Left">
|
||||
<font size="8"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{corridaId}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" pattern="HH:mm:ss" isBlankWhenNull="true">
|
||||
<reportElement uuid="4a68f71a-7be1-467a-b3eb-641a0c1f9a48" stretchType="RelativeToBandHeight" x="322" y="0" width="42" height="16"/>
|
||||
<reportElement uuid="4a68f71a-7be1-467a-b3eb-641a0c1f9a48" stretchType="RelativeToBandHeight" x="218" y="0" width="42" height="23"/>
|
||||
<textElement textAlignment="Left">
|
||||
<font size="8"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{fechorviaje}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||
<reportElement uuid="cee727cd-cbc7-41d0-8020-d70aa33d8c9f" stretchType="RelativeToBandHeight" x="164" y="0" width="114" height="16"/>
|
||||
<reportElement uuid="cee727cd-cbc7-41d0-8020-d70aa33d8c9f" stretchType="RelativeToBandHeight" x="134" y="0" width="40" height="23"/>
|
||||
<textElement textAlignment="Left">
|
||||
<font size="8"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{linha}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" pattern="dd/MM/yyyy" isBlankWhenNull="true">
|
||||
<reportElement uuid="9f731da4-307a-4409-a8d5-28b2c4c40fce" stretchType="RelativeToBandHeight" x="0" y="0" width="49" height="16"/>
|
||||
<reportElement uuid="9f731da4-307a-4409-a8d5-28b2c4c40fce" stretchType="RelativeToBandHeight" x="0" y="0" width="34" height="23"/>
|
||||
<textElement textAlignment="Left">
|
||||
<font size="8"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{feccorrida}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||
<reportElement uuid="6cc780bc-645e-4f03-a7d0-b4ecf7d4eb6c" stretchType="RelativeToBandHeight" x="420" y="0" width="44" height="16"/>
|
||||
<reportElement uuid="6cc780bc-645e-4f03-a7d0-b4ecf7d4eb6c" stretchType="RelativeToBandHeight" x="316" y="0" width="29" height="23"/>
|
||||
<textElement textAlignment="Center">
|
||||
<font size="8"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{desctipoventa}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||
<reportElement uuid="9c9861ac-780e-4e8b-aab8-9a4f506ce62b" stretchType="RelativeToBandHeight" x="508" y="0" width="66" height="16"/>
|
||||
<reportElement uuid="9c9861ac-780e-4e8b-aab8-9a4f506ce62b" stretchType="RelativeToBandHeight" x="374" y="0" width="33" height="23"/>
|
||||
<textElement textAlignment="Left">
|
||||
<font size="8"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{nombpasajero}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||
<reportElement uuid="37fa056d-c401-4268-a455-c5caf5e4eb54" stretchType="RelativeToBandHeight" x="574" y="0" width="44" height="16"/>
|
||||
<reportElement uuid="37fa056d-c401-4268-a455-c5caf5e4eb54" stretchType="RelativeToBandHeight" x="407" y="0" width="32" height="23"/>
|
||||
<textElement textAlignment="Left">
|
||||
<font size="8"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{descnumdoc}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" pattern="###0.00;-###0.00" isBlankWhenNull="true">
|
||||
<reportElement uuid="d7019a40-a617-43c7-9ad2-b7c47fb38d60" stretchType="RelativeToBandHeight" x="646" y="0" width="30" height="16"/>
|
||||
<reportElement uuid="d7019a40-a617-43c7-9ad2-b7c47fb38d60" stretchType="RelativeToBandHeight" x="467" y="0" width="30" height="23"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="8"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{porccategoria}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" pattern="###0.00;-###0.00" isBlankWhenNull="true">
|
||||
<reportElement uuid="f0161d55-b853-4318-8028-8aec04c0487d" stretchType="RelativeToBandHeight" x="676" y="0" width="24" height="16"/>
|
||||
<reportElement uuid="f0161d55-b853-4318-8028-8aec04c0487d" stretchType="RelativeToBandHeight" x="497" y="0" width="24" height="23"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="8"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{preciopagado}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||
<reportElement uuid="1f3bab43-ae23-41b1-b5a6-a6c4c09fd359" stretchType="RelativeToBandHeight" x="701" y="0" width="51" height="16"/>
|
||||
<reportElement uuid="1f3bab43-ae23-41b1-b5a6-a6c4c09fd359" stretchType="RelativeToBandHeight" x="521" y="0" width="30" height="23"/>
|
||||
<textElement textAlignment="Left">
|
||||
<font size="8"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{cveusuario}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||
<reportElement uuid="24dcce32-309b-48f9-8543-1e1bffdef942" isPrintRepeatedValues="false" x="752" y="0" width="70" height="16"/>
|
||||
<reportElement uuid="24dcce32-309b-48f9-8543-1e1bffdef942" isPrintRepeatedValues="false" x="551" y="0" width="30" height="23"/>
|
||||
<textElement textAlignment="Left">
|
||||
<font size="8"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{nombpuntoventa}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true">
|
||||
<reportElement uuid="3343aea7-212b-4bd5-a29c-8dcab3cb7568" stretchType="RelativeToBandHeight" x="99" y="0" width="44" height="16"/>
|
||||
<reportElement uuid="3343aea7-212b-4bd5-a29c-8dcab3cb7568" stretchType="RelativeToBandHeight" x="69" y="0" width="44" height="23"/>
|
||||
<textElement textAlignment="Left">
|
||||
<font size="8"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{descdestino}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" pattern="dd/MM/yyyy" isBlankWhenNull="true">
|
||||
<reportElement uuid="b36dbddb-2fa9-48a5-809e-0e15ad54c529" stretchType="RelativeToBandHeight" x="49" y="0" width="50" height="16"/>
|
||||
<reportElement uuid="b36dbddb-2fa9-48a5-809e-0e15ad54c529" stretchType="RelativeToBandHeight" x="34" y="0" width="35" height="23"/>
|
||||
<textElement textAlignment="Left">
|
||||
<font size="8"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{descorigen}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" pattern="###0.00;-###0.00" isBlankWhenNull="true">
|
||||
<reportElement uuid="695d5bfa-16e3-4163-82a0-36d2a2ba21ed" stretchType="RelativeToBandHeight" x="618" y="0" width="28" height="16"/>
|
||||
<reportElement uuid="695d5bfa-16e3-4163-82a0-36d2a2ba21ed" stretchType="RelativeToBandHeight" x="439" y="0" width="28" height="23"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="8"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{preciooriginal}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||
<reportElement uuid="f7539e74-4ab5-45e3-b3ca-b66967acc3e2" stretchType="RelativeToBandHeight" x="464" y="0" width="44" height="16"/>
|
||||
<reportElement uuid="f7539e74-4ab5-45e3-b3ca-b66967acc3e2" stretchType="RelativeToBandHeight" x="345" y="0" width="29" height="23"/>
|
||||
<textElement textAlignment="Center">
|
||||
<font size="8"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{cvecategoria}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" pattern="###0.00;-###0.00" isBlankWhenNull="true">
|
||||
<reportElement uuid="8b89e606-e89c-4b3d-a5b5-4dfd339de5df" stretchType="RelativeToBandHeight" x="364" y="0" width="26" height="16"/>
|
||||
<reportElement uuid="8b89e606-e89c-4b3d-a5b5-4dfd339de5df" stretchType="RelativeToBandHeight" x="260" y="0" width="26" height="23"/>
|
||||
<textElement>
|
||||
<font size="8"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{numasiento}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" pattern="###0.00;-###0.00" isBlankWhenNull="true">
|
||||
<reportElement uuid="4177f54f-ba97-4731-8c32-c8fc23ce483a" stretchType="RelativeToBandHeight" x="390" y="0" width="30" height="16"/>
|
||||
<reportElement uuid="4177f54f-ba97-4731-8c32-c8fc23ce483a" stretchType="RelativeToBandHeight" x="286" y="0" width="30" height="23"/>
|
||||
<textElement>
|
||||
<font size="8"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{numfoliosistema}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement uuid="9e5ccd79-6850-4b3c-bfa1-405a96d3f826" isPrintRepeatedValues="false" x="791" y="0" width="31" height="23"/>
|
||||
<textElement textAlignment="Left">
|
||||
<font size="8"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{pedagio}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement uuid="32e01305-63ee-444c-a4a7-e9246621ca83" isPrintRepeatedValues="false" x="761" y="0" width="30" height="23"/>
|
||||
<textElement textAlignment="Left">
|
||||
<font size="8"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{utr}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement uuid="bff1a8a9-115f-4abf-811a-92ac988ca380" isPrintRepeatedValues="false" x="731" y="0" width="30" height="23"/>
|
||||
<textElement textAlignment="Left">
|
||||
<font size="8"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{seguro}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||
<reportElement uuid="9df5776a-63e5-4480-81d5-34427fd79e23" isPrintRepeatedValues="false" x="641" y="0" width="30" height="23"/>
|
||||
<textElement textAlignment="Left">
|
||||
<font size="8"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{tipoDoc}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||
<reportElement uuid="d75d9725-26ac-47f5-94db-995e5b49f30a" isPrintRepeatedValues="false" x="611" y="0" width="30" height="23"/>
|
||||
<textElement textAlignment="Left">
|
||||
<font size="8"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{tipo}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true">
|
||||
<reportElement uuid="fe98c2f8-b8cc-4f51-bf9d-9b767fe94088" isPrintRepeatedValues="false" x="671" y="0" width="30" height="23"/>
|
||||
<textElement textAlignment="Left">
|
||||
<font size="8"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{rg}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||
<reportElement uuid="c6379bbf-bdfb-4600-b6ec-e1e9a6640c6d" isPrintRepeatedValues="false" x="701" y="0" width="30" height="23"/>
|
||||
<textElement textAlignment="Left">
|
||||
<font size="8"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{status}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||
<reportElement uuid="230fcb25-af91-4a54-b98e-a4477a3f5935" isPrintRepeatedValues="false" x="581" y="0" width="30" height="23"/>
|
||||
<textElement textAlignment="Left">
|
||||
<font size="8"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{dataMd}]]></textFieldExpression>
|
||||
</textField>
|
||||
</band>
|
||||
</detail>
|
||||
<summary>
|
||||
|
@ -355,12 +471,12 @@
|
|||
<textFieldExpression><![CDATA[$V{qtde}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement uuid="c3632bd6-baee-4919-880b-1e0f94fe44c0" x="530" y="24" width="73" height="16"/>
|
||||
<reportElement uuid="c3632bd6-baee-4919-880b-1e0f94fe44c0" x="521" y="24" width="90" height="16"/>
|
||||
<textElement textAlignment="Right"/>
|
||||
<textFieldExpression><![CDATA[$V{total_sem_desconto}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement uuid="5bb15b93-745c-48fd-8803-3047a49c358c" x="635" y="24" width="65" height="16"/>
|
||||
<reportElement uuid="5bb15b93-745c-48fd-8803-3047a49c358c" x="611" y="24" width="90" height="16"/>
|
||||
<textElement textAlignment="Right"/>
|
||||
<textFieldExpression><![CDATA[$V{total_com_desconto}]]></textFieldExpression>
|
||||
</textField>
|
||||
|
|
|
@ -25,7 +25,63 @@ public class RelatorioGratuidadeBean {
|
|||
private String cvecategoria;
|
||||
private String numasiento;
|
||||
private String numfoliosistema;
|
||||
private String tipoDoc;
|
||||
private String tipo;
|
||||
private BigDecimal seguro;
|
||||
private BigDecimal pedagio;
|
||||
private BigDecimal utr;
|
||||
private String rg;
|
||||
private String status;
|
||||
private Date dataMd;
|
||||
|
||||
public Date getDataMd() {
|
||||
return dataMd;
|
||||
}
|
||||
public void setDataMd(Date dataMd) {
|
||||
this.dataMd = dataMd;
|
||||
}
|
||||
public String getStatus() {
|
||||
return status;
|
||||
}
|
||||
public void setStatus(String status) {
|
||||
this.status = status;
|
||||
}
|
||||
public String getRg() {
|
||||
return rg;
|
||||
}
|
||||
public void setRg(String rg) {
|
||||
this.rg = rg;
|
||||
}
|
||||
public String getTipoDoc() {
|
||||
return tipoDoc;
|
||||
}
|
||||
public void setTipoDoc(String tipoDoc) {
|
||||
this.tipoDoc = tipoDoc;
|
||||
}
|
||||
public String getTipo() {
|
||||
return tipo;
|
||||
}
|
||||
public void setTipo(String tipo) {
|
||||
this.tipo = tipo;
|
||||
}
|
||||
public BigDecimal getSeguro() {
|
||||
return seguro;
|
||||
}
|
||||
public void setSeguro(BigDecimal seguro) {
|
||||
this.seguro = seguro;
|
||||
}
|
||||
public BigDecimal getPedagio() {
|
||||
return pedagio;
|
||||
}
|
||||
public void setPedagio(BigDecimal pedagio) {
|
||||
this.pedagio = pedagio;
|
||||
}
|
||||
public BigDecimal getUtr() {
|
||||
return utr;
|
||||
}
|
||||
public void setUtr(BigDecimal utr) {
|
||||
this.utr = utr;
|
||||
}
|
||||
public Date getFeccorrida() {
|
||||
return feccorrida;
|
||||
}
|
||||
|
|
|
@ -1,17 +1,18 @@
|
|||
package com.rjconsultores.ventaboletos.web.gui.controladores.relatorios;
|
||||
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import javax.sql.DataSource;
|
||||
|
||||
import org.apache.log4j.Logger;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.context.annotation.Scope;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.zkoss.util.resource.Labels;
|
||||
import org.zkoss.zhtml.Messagebox;
|
||||
import org.zkoss.zk.ui.Component;
|
||||
import org.zkoss.zk.ui.event.Event;
|
||||
import org.zkoss.zul.Datebox;
|
||||
|
@ -27,34 +28,33 @@ import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio;
|
|||
import com.rjconsultores.ventaboletos.service.CategoriaService;
|
||||
import com.rjconsultores.ventaboletos.service.EmpresaService;
|
||||
import com.rjconsultores.ventaboletos.service.OrgaoConcedenteService;
|
||||
import com.rjconsultores.ventaboletos.service.PuntoVentaService;
|
||||
import com.rjconsultores.ventaboletos.service.RutaService;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxPuntoVenta;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyListbox;
|
||||
|
||||
@Controller("relatorioGratuidadeController")
|
||||
@Scope("prototype")
|
||||
public class RelatorioGratuidadeController extends MyGenericForwardComposer {
|
||||
private static final long serialVersionUID = 1L;
|
||||
private static Logger log = Logger.getLogger(RelatorioGratuidadeController.class);
|
||||
|
||||
@Autowired
|
||||
private DataSource dataSourceRead;
|
||||
@Autowired
|
||||
private EmpresaService empresaService;
|
||||
@Autowired
|
||||
private PuntoVentaService puntoVentaService;
|
||||
@Autowired
|
||||
private RutaService rutaService;
|
||||
@Autowired
|
||||
private CategoriaService categoriaService;
|
||||
@Autowired
|
||||
private OrgaoConcedenteService orgaocConcedenteService;
|
||||
|
||||
private Datebox datInicial;
|
||||
private Datebox datFinal;
|
||||
private Datebox datInicialViagem;
|
||||
private Datebox datFinalViagem;
|
||||
private Datebox datInicialVenda;
|
||||
private Datebox datFinalVenda;
|
||||
private MyComboboxEstandar cmbTeste;
|
||||
private MyComboboxPuntoVenta cmbAgencia;
|
||||
private MyComboboxEstandar cmbLinha;
|
||||
|
@ -66,16 +66,69 @@ public class RelatorioGratuidadeController extends MyGenericForwardComposer {
|
|||
private List<Empresa> lsEmpresas;
|
||||
private List<Ruta> lsLinhas;
|
||||
private List<Categoria> lsCategorias;
|
||||
|
||||
private MyListbox selectedTipoGratuidadeList;
|
||||
private List<Categoria> listSelectedTipoGratuidade;
|
||||
|
||||
private List<OrgaoConcedente> lsOrgaoConcedente;
|
||||
|
||||
public void onClick$btnRemoveTipoGratuidade(Event ev) throws InterruptedException {
|
||||
Categoria categoria = (Categoria) selectedTipoGratuidadeList.getSelectedItem().getValue();
|
||||
listSelectedTipoGratuidade.remove(categoria);
|
||||
selectedTipoGratuidadeList.setData(listSelectedTipoGratuidade);
|
||||
}
|
||||
|
||||
public void onClick$btnAddTipoTipoGratuidade(Event ev) throws InterruptedException {
|
||||
if (cmbTipoGratuidade.getSelectedItem() != null) {
|
||||
listSelectedTipoGratuidade.add((Categoria) cmbTipoGratuidade.getSelectedItem().getValue());
|
||||
selectedTipoGratuidadeList.setData(listSelectedTipoGratuidade);
|
||||
selectedTipoGratuidadeList.setSelectedItem(null);
|
||||
}
|
||||
}
|
||||
|
||||
public MyListbox getSelectedTipoGratuidadeList() {
|
||||
return selectedTipoGratuidadeList;
|
||||
}
|
||||
|
||||
public void setSelectedTipoGratuidadeList(MyListbox selectedTipoGratuidadeList) {
|
||||
this.selectedTipoGratuidadeList = selectedTipoGratuidadeList;
|
||||
}
|
||||
|
||||
public List<Categoria> getListSelectedTipoGratuidade() {
|
||||
return listSelectedTipoGratuidade;
|
||||
}
|
||||
|
||||
public void setListSelectedTipoGratuidade(List<Categoria> listSelectedTipoGratuidade) {
|
||||
this.listSelectedTipoGratuidade = listSelectedTipoGratuidade;
|
||||
}
|
||||
|
||||
private void executarRelatorio() throws Exception {
|
||||
|
||||
Map<String, Object> parametros = new HashMap<String, Object>();
|
||||
|
||||
SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy");
|
||||
parametros.put("fecInicio", sdf.format(this.datInicial.getValue()));
|
||||
parametros.put("fecFinal", sdf.format(this.datFinal.getValue()));
|
||||
if (this.datInicialViagem.getValue() != null) {
|
||||
parametros.put("fecInicioViagem", sdf.format(this.datInicialViagem.getValue()));
|
||||
}
|
||||
if (this.datFinalViagem.getValue() != null) {
|
||||
parametros.put("fecFinalViagem", sdf.format(this.datFinalViagem.getValue()));
|
||||
}
|
||||
|
||||
if (this.datInicialVenda.getValue() != null) {
|
||||
parametros.put("fecInicioVenda", sdf.format(this.datInicialVenda.getValue()));
|
||||
}
|
||||
if (this.datFinalVenda.getValue() != null) {
|
||||
parametros.put("fecFinalVenda", sdf.format(this.datFinalVenda.getValue()));
|
||||
}
|
||||
|
||||
if ((parametros.get("fecInicioViagem") == null && parametros.get("datFinalViagem") == null) ||
|
||||
(parametros.get("fecInicioVenda") == null && parametros.get("datFinalVenda") == null)) {
|
||||
Messagebox.show(Labels.getLabel("relatorioGratuidadeController.data.obrigatoria"),
|
||||
Labels.getLabel("relatorioGratuidadeController.window.title"),
|
||||
Messagebox.OK, Messagebox.INFORMATION);
|
||||
return;
|
||||
}
|
||||
|
||||
if (cmbTeste.getSelectedIndex() != -1) {
|
||||
parametros.put("empresa", ((Empresa) cmbTeste.getSelectedItem().getValue()).getEmpresaId());
|
||||
}
|
||||
|
@ -91,8 +144,12 @@ public class RelatorioGratuidadeController extends MyGenericForwardComposer {
|
|||
if(cmbDestino.getSelectedIndex() != -1){
|
||||
parametros.put("destino", ((Parada) cmbDestino.getSelectedItem().getValue()).getParadaId());
|
||||
}
|
||||
if(cmbTipoGratuidade.getSelectedIndex() != -1){
|
||||
parametros.put("categoria", ((Categoria) cmbTipoGratuidade.getSelectedItem().getValue()).getCategoriaId());
|
||||
if(listSelectedTipoGratuidade.size() > 0){
|
||||
String categoriaId = "";
|
||||
for (Categoria categoria : listSelectedTipoGratuidade) {
|
||||
categoriaId = categoria.getCategoriaId() + ",";
|
||||
}
|
||||
parametros.put("categoria", categoriaId.substring(0, categoriaId.length()-1));
|
||||
}
|
||||
if (cmbOrgaoConcedente.getSelectedItem() != null) {
|
||||
OrgaoConcedente orgaoConcedente = (OrgaoConcedente) cmbOrgaoConcedente.getSelectedItem().getValue();
|
||||
|
@ -123,6 +180,7 @@ public class RelatorioGratuidadeController extends MyGenericForwardComposer {
|
|||
lsEmpresas = empresaService.obtenerTodos();
|
||||
lsCategorias = categoriaService.obtenerTodos();
|
||||
lsOrgaoConcedente = orgaocConcedenteService.obtenerTodos();
|
||||
listSelectedTipoGratuidade = new ArrayList<Categoria>();
|
||||
|
||||
super.doAfterCompose(comp);
|
||||
}
|
||||
|
@ -151,20 +209,36 @@ public class RelatorioGratuidadeController extends MyGenericForwardComposer {
|
|||
this.lsCategorias = lsCategorias;
|
||||
}
|
||||
|
||||
public Datebox getDatInicial() {
|
||||
return datInicial;
|
||||
public Datebox getDatInicialViagem() {
|
||||
return datInicialViagem;
|
||||
}
|
||||
|
||||
public void setDatInicial(Datebox datInicial) {
|
||||
this.datInicial = datInicial;
|
||||
public void setDatInicialViagem(Datebox datInicialViagem) {
|
||||
this.datInicialViagem = datInicialViagem;
|
||||
}
|
||||
|
||||
public Datebox getDatFinal() {
|
||||
return datFinal;
|
||||
public Datebox getDatFinalViagem() {
|
||||
return datFinalViagem;
|
||||
}
|
||||
|
||||
public void setDatFinal(Datebox datFinal) {
|
||||
this.datFinal = datFinal;
|
||||
public void setDatFinalViagem(Datebox datFinalViagem) {
|
||||
this.datFinalViagem = datFinalViagem;
|
||||
}
|
||||
|
||||
public Datebox getDatInicialVenda() {
|
||||
return datInicialVenda;
|
||||
}
|
||||
|
||||
public void setDatInicialVenda(Datebox datInicialVenda) {
|
||||
this.datInicialVenda = datInicialVenda;
|
||||
}
|
||||
|
||||
public Datebox getDatFinalVenda() {
|
||||
return datFinalVenda;
|
||||
}
|
||||
|
||||
public void setDatFinalVenda(Datebox datFinalVenda) {
|
||||
this.datFinalVenda = datFinalVenda;
|
||||
}
|
||||
|
||||
public MyComboboxPuntoVenta getCmbAgencia() {
|
||||
|
|
|
@ -10,6 +10,52 @@
|
|||
contentStyle="overflow:auto" height="320px" width="550px"
|
||||
border="normal">
|
||||
|
||||
<grid fixedLayout="true">
|
||||
<columns>
|
||||
<column width="25%" />
|
||||
<column width="25%" />
|
||||
<column width="25%" />
|
||||
<column width="25%" />
|
||||
</columns>
|
||||
<rows>
|
||||
<row>
|
||||
<label value="${c:l('relatorioGratuidadeController.lvViagem')}" />
|
||||
<label value=" " />
|
||||
<label value=" " />
|
||||
<label value=" " />
|
||||
</row>
|
||||
<row>
|
||||
<label
|
||||
value="${c:l('relatorioGratuidadeController.lbDataIniViagem.value')}" />
|
||||
<datebox id="datInicialViagem" width="100%" mold="rounded"
|
||||
format="dd/MM/yyyy"
|
||||
maxlength="10" />
|
||||
<label
|
||||
value="${c:l('relatorioGratuidadeController.lbDataFinViagem.value')}" />
|
||||
<datebox id="datFinalViagem" width="100%" mold="rounded"
|
||||
format="dd/MM/yyyy"
|
||||
maxlength="10" />
|
||||
</row>
|
||||
<row>
|
||||
<label value="${c:l('relatorioGratuidadeController.lvVenda')}" />
|
||||
<label value=" " />
|
||||
<label value=" " />
|
||||
<label value=" " />
|
||||
</row>
|
||||
<row>
|
||||
<label
|
||||
value="${c:l('relatorioGratuidadeController.lbDataIniVenda.value')}" />
|
||||
<datebox id="datInicialVenda" width="100%" mold="rounded"
|
||||
format="dd/MM/yyyy"
|
||||
maxlength="10" />
|
||||
<label
|
||||
value="${c:l('relatorioGratuidadeController.lbDataFinVenda.value')}" />
|
||||
<datebox id="datFinalVenda" width="100%" mold="rounded"
|
||||
format="dd/MM/yyyy"
|
||||
maxlength="10" />
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
<grid fixedLayout="true">
|
||||
<columns>
|
||||
<column width="50%" />
|
||||
|
@ -68,28 +114,39 @@
|
|||
</row>
|
||||
|
||||
<row>
|
||||
<label
|
||||
value="${c:l('relatorioGratuidadeController.lbTipoGratuidade.value')}" />
|
||||
<label value="${c:l('relatorioGratuidadeController.lbTipoGratuidade.value')}" />
|
||||
<combobox id="cmbTipoGratuidade" width="70%"
|
||||
maxlength="60" mold="rounded" buttonVisible="true"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||
model="@{winFiltroRelatorioGratuidade$composer.lsCategorias}"/>
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
<grid fixedLayout="true">
|
||||
<columns>
|
||||
<column width="100%" />
|
||||
</columns>
|
||||
<rows>
|
||||
<row>
|
||||
<toolbar>
|
||||
<button id="btnRemoveTipoGratuidade" height="20"
|
||||
image="/gui/img/remove.png" width="35px"
|
||||
tooltiptext="${c:l('generarTarifaOrgaoController.labelRemoveRuta.value')}" />
|
||||
<button id="btnAddTipoTipoGratuidade" height="20"
|
||||
image="/gui/img/add.png" width="35px"
|
||||
tooltiptext="${c:l('generarTarifaOrgaoController.labelAddRuta.value')}" />
|
||||
</toolbar>
|
||||
</row>
|
||||
<row>
|
||||
<listbox id="selectedTipoGratuidadeList"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
||||
multiple="false">
|
||||
<listhead sizable="true">
|
||||
<listheader image="/gui/img/builder.gif"
|
||||
label="${c:l('generarTarifaOrgaoController.labelEmpresa.value')}" width="100%"/>
|
||||
</listhead>
|
||||
</listbox>
|
||||
</row>
|
||||
|
||||
<row>
|
||||
<label
|
||||
value="${c:l('relatorioGratuidadeController.lbDataIni.value')}" />
|
||||
<datebox id="datInicial" width="100%" mold="rounded"
|
||||
format="dd/MM/yyyy" constraint="no empty"
|
||||
maxlength="10" />
|
||||
</row>
|
||||
<row>
|
||||
<label
|
||||
value="${c:l('relatorioGratuidadeController.lbDataFin.value')}" />
|
||||
<datebox id="datFinal" width="100%" mold="rounded"
|
||||
format="dd/MM/yyyy" constraint="no empty"
|
||||
maxlength="10" />
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
<toolbar>
|
||||
|
|
Loading…
Reference in New Issue