Implementação do fluxo de autorização para novas empresas

master
Gleimar Botelho Baleeiro 2023-11-16 10:22:15 -03:00
commit bca8b5a852
21 changed files with 814 additions and 355 deletions

View File

@ -4,12 +4,12 @@
<modelVersion>4.0.0</modelVersion>
<groupId>br.com.rjconsultores</groupId>
<artifactId>ventaboletosadm</artifactId>
<version>1.26.2</version>
<version>1.30.1</version>
<packaging>war</packaging>
<properties>
<modelWeb.version>1.19.1</modelWeb.version>
<flyway.version>1.17.0</flyway.version>
<modelWeb.version>1.21.0</modelWeb.version>
<flyway.version>1.18.0</flyway.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
</properties>
@ -113,7 +113,7 @@
<dependency>
<groupId>br.com.rjconsultores</groupId>
<artifactId>GeneradorBoletosCNAB</artifactId>
<version>1.1.2</version>
<version>1.2.1</version>
</dependency>
<dependency>

View File

@ -17,7 +17,9 @@ import java.util.Map;
import com.rjconsultores.ventaboletos.relatorios.utilitarios.DataSource;
import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio;
import com.rjconsultores.ventaboletos.relatorios.utilitarios.RelatorioResumoLinhasBean;
import com.rjconsultores.ventaboletos.service.ConstanteService;
import com.rjconsultores.ventaboletos.web.utilerias.NamedParameterStatement;
import com.rjconsultores.ventaboletos.web.utilerias.spring.AppContext;
import net.sf.jasperreports.engine.data.JRBeanCollectionDataSource;
@ -28,6 +30,7 @@ import net.sf.jasperreports.engine.data.JRBeanCollectionDataSource;
public class RelatorioResumoLinhasAnaliticoSimplificadoSumarizado extends Relatorio {
private List<RelatorioResumoLinhasBean> lsDadosRelatorio;
private static String CONSTANTE_GRATUIDADE_CRIANCA;
/**
* @param parametros
@ -42,7 +45,7 @@ public class RelatorioResumoLinhasAnaliticoSimplificadoSumarizado extends Relato
Integer rutaId = parametros.get("RUTA_ID") != null ? Integer.valueOf(parametros.get("RUTA_ID").toString()) : null;
Integer empresaId = parametros.get("EMPRESA_ID") != null ? Integer.valueOf(parametros.get("EMPRESA_ID").toString()) : null;
Integer grupoRutaId = parametros.get("GRUPORUTA_ID") != null ? Integer.valueOf(parametros.get("GRUPORUTA_ID").toString()) : null;
CONSTANTE_GRATUIDADE_CRIANCA = buscarConstante("GRATUIDADE_CRIANCA");
String sql = getSql(rutaId, grupoRutaId);
NamedParameterStatement stmt = new NamedParameterStatement(conexao, sql);
@ -66,6 +69,7 @@ public class RelatorioResumoLinhasAnaliticoSimplificadoSumarizado extends Relato
stmt.setInt("GRUPORUTA_ID", grupoRutaId);
}
stmt.setInt("EMPRESA_ID", empresaId.intValue());
stmt.setString("CRIANCA_ID",CONSTANTE_GRATUIDADE_CRIANCA);
rset = stmt.executeQuery();
lsDadosRelatorio = new ArrayList<RelatorioResumoLinhasBean>();
@ -218,7 +222,7 @@ public class RelatorioResumoLinhasAnaliticoSimplificadoSumarizado extends Relato
sql.append(" AND co.feccorrida = bo.feccorrida ");
sql.append(" AND bo.activo = 1 ");
sql.append(" AND ( bo.motivocancelacion_id IS NULL ");
sql.append(" OR bo.motivocancelacion_id = 0 ) ");
sql.append(" OR bo.motivocancelacion_id = 0 AND bo.CATEGORIA_ID <> :CRIANCA_ID ) ");
sql.append(" GROUP BY ");
sql.append(" co.feccorrida, ");
sql.append(" co.ruta_id, ");
@ -291,7 +295,7 @@ public class RelatorioResumoLinhasAnaliticoSimplificadoSumarizado extends Relato
sql.append(" nvl(gr.descgrupo, 'Não Definido') grupo_linha, ");
sql.append(" ( ");
sql.append(" SELECT ");
sql.append(" SUM(nvl(rs.kmoriginal, 0)) ");
sql.append(" SUM(nvl(TR.CANTKMREAL, 0)) ");
sql.append(" FROM ");
sql.append(" ruta_secuencia rs, ");
sql.append(" tramo tr ");
@ -345,7 +349,7 @@ public class RelatorioResumoLinhasAnaliticoSimplificadoSumarizado extends Relato
sql.append(" AND vt.activo = 1 ");
sql.append(" AND cr.feccorrida BETWEEN vt.feciniciovigencia AND vt.fecfinvigencia ");
sql.append(" AND cr.feccorrida BETWEEN TO_DATE(:DATA_INICIAL, 'DD/MM/YY hh24:mi:ss') AND TO_DATE(:DATA_FINAL, ");
sql.append(" 'DD/MM/YY hh24:mi:ss') ");
sql.append(" 'DD/MM/YY hh24:mi:ss') AND bl.CATEGORIA_ID <> :CRIANCA_ID ");
sql.append(" AND cr.activo = 1 ");
sql.append(" GROUP BY ");
sql.append(" rt.ruta_id, ");
@ -492,5 +496,9 @@ public class RelatorioResumoLinhasAnaliticoSimplificadoSumarizado extends Relato
}
return relatorioBean;
}
private String buscarConstante(String nomeConstante) {
ConstanteService constanteService = (ConstanteService) AppContext.getApplicationContext().getBean("constanteService");
return constanteService.buscarPorNomeConstante(nomeConstante).getValorconstante();
}
}

View File

@ -18,7 +18,9 @@ import java.util.Set;
import com.rjconsultores.ventaboletos.relatorios.utilitarios.DataSource;
import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio;
import com.rjconsultores.ventaboletos.relatorios.utilitarios.RelatorioResumoLinhasBean;
import com.rjconsultores.ventaboletos.service.ConstanteService;
import com.rjconsultores.ventaboletos.web.utilerias.NamedParameterStatement;
import com.rjconsultores.ventaboletos.web.utilerias.spring.AppContext;
import net.sf.jasperreports.engine.data.JRBeanCollectionDataSource;
@ -29,6 +31,7 @@ import net.sf.jasperreports.engine.data.JRBeanCollectionDataSource;
public class RelatorioResumoLinhasAnaliticoSumarizado extends Relatorio {
private List<RelatorioResumoLinhasBean> lsDadosRelatorio;
private static String CONSTANTE_GRATUIDADE_CRIANCA;
/**
* @param parametros
@ -43,7 +46,7 @@ public class RelatorioResumoLinhasAnaliticoSumarizado extends Relatorio {
Integer rutaId = parametros.get("RUTA_ID") != null ? Integer.valueOf(parametros.get("RUTA_ID").toString()) : null;
Integer empresaId = parametros.get("EMPRESA_ID") != null ? Integer.valueOf(parametros.get("EMPRESA_ID").toString()) : null;
Integer grupoRutaId = parametros.get("GRUPORUTA_ID") != null ? Integer.valueOf(parametros.get("GRUPORUTA_ID").toString()) : null;
CONSTANTE_GRATUIDADE_CRIANCA = buscarConstante("GRATUIDADE_CRIANCA");
String sql = getSql(rutaId, grupoRutaId);
NamedParameterStatement stmt = new NamedParameterStatement(conexao, sql);
@ -67,6 +70,7 @@ public class RelatorioResumoLinhasAnaliticoSumarizado extends Relatorio {
stmt.setInt("GRUPORUTA_ID", grupoRutaId);
}
stmt.setInt("EMPRESA_ID", empresaId.intValue());
stmt.setString("CRIANCA_ID",CONSTANTE_GRATUIDADE_CRIANCA);
rset = stmt.executeQuery();
lsDadosRelatorio = new ArrayList<RelatorioResumoLinhasBean>();
@ -150,7 +154,7 @@ public class RelatorioResumoLinhasAnaliticoSumarizado extends Relatorio {
sqlSb.append(" AND CO.FECCORRIDA = BO.FECCORRIDA ");
sqlSb.append(" AND BO.ACTIVO = 1 ");
sqlSb.append(" AND (BO.MOTIVOCANCELACION_ID IS NULL ");
sqlSb.append(" OR BO.MOTIVOCANCELACION_ID = 0) ");
sqlSb.append(" OR BO.MOTIVOCANCELACION_ID = 0 AND BO.CATEGORIA_ID <> :CRIANCA_ID ) ");
sqlSb.append(" GROUP BY CO.FECCORRIDA, ");
sqlSb.append(" CO.RUTA_ID, ");
sqlSb.append(" BO.PRECIOBASE, ");
@ -211,7 +215,7 @@ public class RelatorioResumoLinhasAnaliticoSumarizado extends Relatorio {
sqlSb.append(" ELSE 'N' ");
sqlSb.append(" END INTERESTADUAL, ");
sqlSb.append(" NVL(GR.DESCGRUPO, 'Não Definido') GRUPO_LINHA, ");
sqlSb.append(" (SELECT SUM(NVL(RS.KMORIGINAL,0)) ");
sqlSb.append(" (SELECT SUM(NVL(TR.CANTKMREAL, 0)) ");
sqlSb.append(" FROM RUTA_SECUENCIA RS, ");
sqlSb.append(" TRAMO TR ");
sqlSb.append(" WHERE RS.RUTA_ID = RT.RUTA_ID ");
@ -254,7 +258,7 @@ public class RelatorioResumoLinhasAnaliticoSumarizado extends Relatorio {
sqlSb.append(" AND RT.GRUPORUTA_ID = GR.GRUPORUTA_ID(+) ");
sqlSb.append(" AND TR.ORIGEN_ID = CR.ORIGEN_ID ");
sqlSb.append(" AND TR.DESTINO_ID = CR.DESTINO_ID ");
sqlSb.append(" AND BL.MOTIVOCANCELACION_ID IS NULL ");
sqlSb.append(" AND BL.MOTIVOCANCELACION_ID IS NULL AND BL.CATEGORIA_ID <> :CRIANCA_ID");
sqlSb.append(" AND BL.INDSTATUSOPERACION = 'F' ");
sqlSb.append(" AND VT.ACTIVO = 1 ");
sqlSb.append(" AND CR.FECCORRIDA BETWEEN VT.FECINICIOVIGENCIA AND VT.FECFINVIGENCIA ");
@ -394,7 +398,10 @@ public class RelatorioResumoLinhasAnaliticoSumarizado extends Relatorio {
this.setCollectionDataSource(new JRBeanCollectionDataSource(lsDadosRelatorio));
this.lsDadosRelatorio = lsDadosRelatorio;
}
private String buscarConstante(String nomeConstante) {
ConstanteService constanteService = (ConstanteService) AppContext.getApplicationContext().getBean("constanteService");
return constanteService.buscarPorNomeConstante(nomeConstante).getValorconstante();
}
@Override

View File

@ -53,6 +53,7 @@ public class RelatorioVendaBilhetePorEmpresaAutorizadoraAnalitico extends Relato
}
private void carregarDataResult(ResultSet rset, Map<String, Object> dataResult) throws SQLException {
dataResult.put("DATA_EVENTO", rset.getDate("DATA_EVENTO"));
dataResult.put("CODIGO_AGENCIA", rset.getString("CODIGO_AGENCIA"));
dataResult.put("NOME_AGENCIA", rset.getString("NOME_AGENCIA"));
dataResult.put("CODIGO_BILHETEIRO", rset.getString("CODIGO_BILHETEIRO"));
@ -83,11 +84,13 @@ public class RelatorioVendaBilhetePorEmpresaAutorizadoraAnalitico extends Relato
if (!StringUtils.isBlank(formasPagamento)) {
final String[] formaPagamento = formasPagamento.split("\\;");
if (formaPagamento.length > 1) {
int contador = 0;
while (contador < formaPagamento.length) {
String valorformapago = "VALORFORMAPAGO" + contador+1;
dataResult.put(valorformapago, formatarValorFormaDePagamento(formaPagamento[contador]));
int contador = 1;
int contadorFormaPagamento =0;
while (contador <=formaPagamento.length) {
String valorformapago = "VALORFORMAPAGO" + contador;
dataResult.put(valorformapago, formatarValorFormaDePagamento(formaPagamento[contadorFormaPagamento]));
contador ++;
contadorFormaPagamento++;
}
} else {
@ -100,11 +103,14 @@ public class RelatorioVendaBilhetePorEmpresaAutorizadoraAnalitico extends Relato
if (!StringUtils.isBlank(formasPagamento)) {
final String[] formaPagamento = formasPagamento.split("\\;");
if (formaPagamento.length > 1) {
int contador = 0;
while (contador < formaPagamento.length) {
String formaPago = "FORMAPAGO" + contador+1;
dataResult.put(formaPago, formatarFormaDePagamento(formaPagamento[contador]));
int contador = 1;
int contadorFormaPagamento =0;
while (contador <= formaPagamento.length) {
String formaPago = "FORMAPAGO" + contador;
dataResult.put(formaPago, formatarFormaDePagamento(formaPagamento[contadorFormaPagamento]));
contador ++;
contadorFormaPagamento ++;
}
} else {
@ -125,7 +131,7 @@ public class RelatorioVendaBilhetePorEmpresaAutorizadoraAnalitico extends Relato
}
private void getSQL(Map<String, Object> parametros, StringBuilder sql) {
sql.append(" select pv.NUMPUNTOVENTA CODIGO_AGENCIA, ");
sql.append(" select c.feccreacion DATA_EVENTO, pv.NUMPUNTOVENTA CODIGO_AGENCIA, ");
sql.append(" pv.NOMBPUNTOVENTA NOME_AGENCIA, ");
sql.append(" u.CVEUSUARIO CODIGO_BILHETEIRO, ");
sql.append(" u.NOMBUSUARIO NOME_BILHETEIRO, ");
@ -144,7 +150,7 @@ public class RelatorioVendaBilhetePorEmpresaAutorizadoraAnalitico extends Relato
" (NVL(c.PRECIOPAGADO,0)+(NVL(c.IMPORTEPEDAGIO,0)+ NVL(c.IMPORTETAXAEMBARQUE,0)+ NVL(c.IMPORTESEGURO,0))) TOTAL_BILHETE, ");
sql.append(" cs.DESCCLASE CLASSE, ");
sql.append(
" LISTAGG(fp.cvepago||' /'||CAST(cf.IMPORTE AS VARCHAR(10)),';') WITHIN GROUP( ORDER BY 1 DESC ) AS descpago, ");
" LISTAGG(DISTINCT cf.cajaformapago_id||' /'|| fp.cvepago||' /'||CAST(cf.IMPORTE AS VARCHAR(10)),';') WITHIN GROUP( ORDER BY 1 DESC ) AS descpago, ");
sql.append(" e.empresa_id EMPRESAAUTORIZADORA_ID, e.nombempresa EMPRESAAUTORIZADORA, ");
sql.append(" c.num_bpe NUMBPE ");
@ -169,7 +175,7 @@ public class RelatorioVendaBilhetePorEmpresaAutorizadoraAnalitico extends Relato
sql.append(" and c.FECHORVENTA <= :DATA_FINAL ");
sql.append(" and ((c.indreimpresion = 1 ");
sql.append(
" AND (c.motivoreimpresion_id = 99 or c.motivocancelacion_id in (27) )) or c.indreimpresion = 0) ");
" AND (c.motivoreimpresion_id = 99 )) or c.indreimpresion = 0) ");
if (parametros.get("NUMPUNTOVENTA") != null && !possuiFiltroTodos("NUMPUNTOVENTA")) {
sql.append(" and pv.PUNTOVENTA_ID IN (" + parametros.get("NUMPUNTOVENTA").toString() + ")");
}
@ -177,6 +183,7 @@ public class RelatorioVendaBilhetePorEmpresaAutorizadoraAnalitico extends Relato
sql.append(" and u.NOMBUSUARIO like '" + parametros.get("BILHETEIRO") + "%'");
}
sql.append(" GROUP BY ");
sql.append(" c.feccreacion, ");
sql.append(" pv.numpuntoventa, ");
sql.append(" pv.nombpuntoventa, ");
sql.append(" u.cveusuario, ");
@ -207,6 +214,7 @@ public class RelatorioVendaBilhetePorEmpresaAutorizadoraAnalitico extends Relato
sql.append(" u.NOMBUSUARIO, ");
sql.append(" pv.NUMPUNTOVENTA, ");
sql.append(" pv.NOMBPUNTOVENTA, ");
sql.append(" c.feccreacion, ");
sql.append(" c.NUMFOLIOSISTEMA, ");
sql.append(" p_origen.DESCPARADA, ");
sql.append(" p_destino.DESCPARADA, ");
@ -227,7 +235,7 @@ public class RelatorioVendaBilhetePorEmpresaAutorizadoraAnalitico extends Relato
private String formatarFormaDePagamento(String formaDePagamento) {
if (formaDePagamento != null) {
final String[] formaPagamentoAuxilar = formaDePagamento.split("\\/");
return formaPagamentoAuxilar[0];
return formaPagamentoAuxilar[1];
}
return null;
}
@ -235,7 +243,7 @@ public class RelatorioVendaBilhetePorEmpresaAutorizadoraAnalitico extends Relato
private BigDecimal formatarValorFormaDePagamento(String formaDePagamento){
if(formaDePagamento!=null){
final String[] formaPagamentoAuxilar = formaDePagamento.split("\\/") ;
return formaPagamentoAuxilar.length>1? new BigDecimal(formaPagamentoAuxilar[1].replace(",", ".").trim()):new BigDecimal("0.0");
return formaPagamentoAuxilar.length>2? new BigDecimal(formaPagamentoAuxilar[2].replace(",", ".").trim()):new BigDecimal("0.0");
}
return null;
}

View File

@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="RelatorioResumoLinhasAnalitico" pageWidth="595" pageHeight="842" whenNoDataType="NoDataSection" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" isFloatColumnFooter="true" uuid="efbc89d4-6f08-4ea5-802f-d4f48ed208e2">
<property name="ireport.zoom" value="2.000000000000002"/>
<property name="ireport.x" value="452"/>
<property name="ireport.y" value="57"/>
<property name="ireport.x" value="0"/>
<property name="ireport.y" value="0"/>
<style name="textStyle" isDefault="true" fontSize="6" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false"/>
<style name="table">
<box>
@ -37,6 +37,7 @@
<parameter name="GRUPORUTA_ID" class="java.lang.Integer"/>
<parameter name="DATA" class="java.util.Date"/>
<parameter name="NOME_USUARIO" class="java.lang.String"/>
<parameter name="CRIANCA_ID" class="java.lang.String"/>
<queryString>
<![CDATA[SELECT TAB.*,
ROUND((SELECT SUM((DECODE(NVL(TR.CANTKMREAL,0), 0, 1, NVL(TR.CANTKMREAL,0)) /
@ -69,7 +70,7 @@
CTD.NUMSECUENCIA
AND BO.ACTIVO = 1
AND (BO.MOTIVOCANCELACION_ID IS NULL OR
BO.MOTIVOCANCELACION_ID = 0)
BO.MOTIVOCANCELACION_ID = 0 AND BO.CATEGORIA_ID <> $P{CRIANCA_ID})
GROUP BY CT.TRAMO_ID, TR.CANTKMREAL),
2) * TAB.EXTENSAO_KM PAX_KM
FROM (SELECT RT.INDSENTIDOIDA, CR.FECCORRIDA,
@ -134,53 +135,53 @@ WHERE NVL(TAB.EXTENSAO_KM,0) != 0]]>
<groupHeader>
<band height="31">
<staticText>
<reportElement uuid="9c579f27-ee14-4804-b73d-64994a6e41ec" x="0" y="18" width="50" height="11"/>
<reportElement x="0" y="18" width="50" height="11" uuid="9c579f27-ee14-4804-b73d-64994a6e41ec"/>
<textElement>
<font size="8" isBold="true"/>
</textElement>
<text><![CDATA[Data]]></text>
</staticText>
<staticText>
<reportElement uuid="7b8a8f38-e513-4a8c-a82b-a9c6ffd21f6f" x="111" y="18" width="64" height="11"/>
<reportElement x="111" y="18" width="64" height="11" uuid="7b8a8f38-e513-4a8c-a82b-a9c6ffd21f6f"/>
<textElement textAlignment="Right">
<font size="8" isBold="true"/>
</textElement>
<text><![CDATA[Passageiros]]></text>
</staticText>
<staticText>
<reportElement uuid="4f8fcbb3-73e7-4b15-9687-30ff12bb1526" x="224" y="17" width="42" height="11"/>
<reportElement x="224" y="17" width="42" height="11" uuid="4f8fcbb3-73e7-4b15-9687-30ff12bb1526"/>
<textElement textAlignment="Right">
<font size="8" isBold="true"/>
</textElement>
<text><![CDATA[Viagens]]></text>
</staticText>
<textField>
<reportElement uuid="9e40c4ad-b386-4e8a-9d84-977a27bfebcc" mode="Opaque" x="0" y="2" width="30" height="12" backcolor="#CDCDCD"/>
<reportElement mode="Opaque" x="0" y="2" width="30" height="12" backcolor="#CDCDCD" uuid="9e40c4ad-b386-4e8a-9d84-977a27bfebcc"/>
<textElement verticalAlignment="Bottom">
<font size="9" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA["Linha: "]]></textFieldExpression>
</textField>
<line>
<reportElement uuid="afaaa1cf-1a3e-4a42-9fa3-e634a66fc3d3" x="0" y="1" width="554" height="1"/>
<reportElement x="0" y="1" width="554" height="1" uuid="afaaa1cf-1a3e-4a42-9fa3-e634a66fc3d3"/>
<graphicElement>
<pen lineWidth="0.5"/>
</graphicElement>
</line>
<line>
<reportElement uuid="04a75f17-3686-484b-be43-7b7e22e9def7" x="0" y="16" width="554" height="1"/>
<reportElement x="0" y="16" width="554" height="1" uuid="04a75f17-3686-484b-be43-7b7e22e9def7"/>
<graphicElement>
<pen lineWidth="0.5"/>
</graphicElement>
</line>
<line>
<reportElement uuid="d9f712d0-01a8-4241-a1e6-dc096b4ee773" x="0" y="30" width="554" height="1"/>
<reportElement x="0" y="30" width="554" height="1" uuid="d9f712d0-01a8-4241-a1e6-dc096b4ee773"/>
<graphicElement>
<pen lineWidth="0.5"/>
</graphicElement>
</line>
<staticText>
<reportElement uuid="7b817589-f754-49f1-bf53-856be52946fb" mode="Transparent" x="313" y="18" width="65" height="11" forecolor="#000000" backcolor="#FFFFFF"/>
<reportElement mode="Transparent" x="313" y="18" width="65" height="11" forecolor="#000000" backcolor="#FFFFFF" uuid="7b817589-f754-49f1-bf53-856be52946fb"/>
<textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="8" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
@ -188,7 +189,7 @@ WHERE NVL(TAB.EXTENSAO_KM,0) != 0]]>
<text><![CDATA[KM Rodados]]></text>
</staticText>
<staticText>
<reportElement uuid="4e931a04-04b4-41b7-90c2-e66083daf0fe" mode="Transparent" x="417" y="18" width="98" height="11" forecolor="#000000" backcolor="#FFFFFF"/>
<reportElement mode="Transparent" x="417" y="18" width="98" height="11" forecolor="#000000" backcolor="#FFFFFF" uuid="4e931a04-04b4-41b7-90c2-e66083daf0fe"/>
<textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="8" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
@ -196,49 +197,49 @@ WHERE NVL(TAB.EXTENSAO_KM,0) != 0]]>
<text><![CDATA[PAX. KM]]></text>
</staticText>
<textField>
<reportElement uuid="d97e582d-1e88-4841-8aa4-bc589f2a486a" mode="Opaque" x="28" y="2" width="184" height="12" backcolor="#CDCDCD"/>
<reportElement mode="Opaque" x="28" y="2" width="184" height="12" backcolor="#CDCDCD" uuid="d97e582d-1e88-4841-8aa4-bc589f2a486a"/>
<textElement verticalAlignment="Bottom">
<font size="7"/>
</textElement>
<textFieldExpression><![CDATA[$F{NUMRUTA}+" - "+$F{DESCRUTA}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="a2466836-6444-4afd-95e0-b920d2514a9b" mode="Opaque" x="212" y="2" width="54" height="12" backcolor="#CDCDCD"/>
<reportElement mode="Opaque" x="212" y="2" width="54" height="12" backcolor="#CDCDCD" uuid="a2466836-6444-4afd-95e0-b920d2514a9b"/>
<textElement textAlignment="Right" verticalAlignment="Bottom">
<font size="9" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA["Extensão: "]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="f4196d5c-5656-42cb-8f0e-c200044c844a" mode="Opaque" x="266" y="2" width="69" height="12" backcolor="#CDCDCD"/>
<reportElement mode="Opaque" x="266" y="2" width="69" height="12" backcolor="#CDCDCD" uuid="f4196d5c-5656-42cb-8f0e-c200044c844a"/>
<textElement verticalAlignment="Bottom">
<font size="7"/>
</textElement>
<textFieldExpression><![CDATA[new java.text.DecimalFormat("###0.00").format($F{EXTENSAO_KM})]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="019480ff-577f-48a2-9bcc-984c592b308a" mode="Opaque" x="335" y="2" width="43" height="12" backcolor="#CDCDCD"/>
<reportElement mode="Opaque" x="335" y="2" width="43" height="12" backcolor="#CDCDCD" uuid="019480ff-577f-48a2-9bcc-984c592b308a"/>
<textElement textAlignment="Right" verticalAlignment="Bottom">
<font size="9" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA["Empresa: "]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="8697043c-3c96-4ead-9a13-b22febaba3b5" mode="Opaque" x="378" y="2" width="95" height="12" backcolor="#CDCDCD"/>
<reportElement mode="Opaque" x="378" y="2" width="95" height="12" backcolor="#CDCDCD" uuid="8697043c-3c96-4ead-9a13-b22febaba3b5"/>
<textElement verticalAlignment="Bottom">
<font size="7"/>
</textElement>
<textFieldExpression><![CDATA[$P{EMPRESA}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="14af2efb-fe6b-4be6-ae66-43a2ce8ed03a" mode="Opaque" x="473" y="2" width="42" height="12" backcolor="#CDCDCD"/>
<reportElement mode="Opaque" x="473" y="2" width="42" height="12" backcolor="#CDCDCD" uuid="14af2efb-fe6b-4be6-ae66-43a2ce8ed03a"/>
<textElement textAlignment="Right" verticalAlignment="Bottom">
<font size="9" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA["Sentido: "]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="238edf00-2a59-4367-ab86-62aea2afd2ab" mode="Opaque" x="515" y="2" width="39" height="12" backcolor="#CDCDCD"/>
<reportElement mode="Opaque" x="515" y="2" width="39" height="12" backcolor="#CDCDCD" uuid="238edf00-2a59-4367-ab86-62aea2afd2ab"/>
<textElement verticalAlignment="Bottom">
<font size="7"/>
</textElement>
@ -249,34 +250,34 @@ WHERE NVL(TAB.EXTENSAO_KM,0) != 0]]>
<groupFooter>
<band height="20">
<textField>
<reportElement uuid="102eebb5-25f0-4175-ab9b-78fbca54bc06" x="111" y="1" width="64" height="13"/>
<reportElement x="111" y="1" width="64" height="13" uuid="102eebb5-25f0-4175-ab9b-78fbca54bc06"/>
<textElement textAlignment="Right">
<font size="8" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$V{PASSAGEIROS_1}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="9f6ea621-a236-429f-bb13-ae57118ff5b3" x="224" y="0" width="42" height="12"/>
<reportElement x="224" y="0" width="42" height="12" uuid="9f6ea621-a236-429f-bb13-ae57118ff5b3"/>
<textElement textAlignment="Right">
<font size="8" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$V{VIAGENS_1}]]></textFieldExpression>
</textField>
<line>
<reportElement uuid="422ef3af-efca-47b0-80ba-16120724ca36" x="0" y="0" width="554" height="1"/>
<reportElement x="0" y="0" width="554" height="1" uuid="422ef3af-efca-47b0-80ba-16120724ca36"/>
<graphicElement>
<pen lineWidth="0.5"/>
</graphicElement>
</line>
<textField pattern="#,##0.00">
<reportElement uuid="3a2d351f-134e-43d6-acea-e3556fc61897" x="313" y="2" width="65" height="12"/>
<reportElement x="313" y="2" width="65" height="12" uuid="3a2d351f-134e-43d6-acea-e3556fc61897"/>
<textElement textAlignment="Right">
<font size="8" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$V{EXTENSAO_1}]]></textFieldExpression>
</textField>
<textField pattern="#,##0.00" isBlankWhenNull="false">
<reportElement uuid="7fc513ea-f587-433c-88fa-6357bdb9ed55" mode="Transparent" x="417" y="2" width="98" height="12" forecolor="#000000" backcolor="#FFFFFF"/>
<reportElement mode="Transparent" x="417" y="2" width="98" height="12" forecolor="#000000" backcolor="#FFFFFF" uuid="7fc513ea-f587-433c-88fa-6357bdb9ed55"/>
<textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="8" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
@ -284,7 +285,7 @@ WHERE NVL(TAB.EXTENSAO_KM,0) != 0]]>
<textFieldExpression><![CDATA[$V{PAX_KM_1}]]></textFieldExpression>
</textField>
<staticText>
<reportElement uuid="984a2f82-b446-4dc7-8202-0d092824ee4d" x="0" y="1" width="50" height="11"/>
<reportElement x="0" y="1" width="50" height="11" uuid="984a2f82-b446-4dc7-8202-0d092824ee4d"/>
<textElement>
<font size="8" isBold="true"/>
</textElement>
@ -299,7 +300,7 @@ WHERE NVL(TAB.EXTENSAO_KM,0) != 0]]>
<pageHeader>
<band height="66" splitType="Stretch">
<textField pattern="" isBlankWhenNull="false">
<reportElement uuid="2ed4524d-5c06-487c-a8f1-abc59a8ef7fc" mode="Opaque" x="0" y="21" width="443" height="15" forecolor="#000000" backcolor="#CDCDCD"/>
<reportElement mode="Opaque" x="0" y="21" width="443" height="15" forecolor="#000000" backcolor="#CDCDCD" uuid="2ed4524d-5c06-487c-a8f1-abc59a8ef7fc"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
@ -307,7 +308,7 @@ WHERE NVL(TAB.EXTENSAO_KM,0) != 0]]>
<textFieldExpression><![CDATA[$P{NOME_RELATORIO}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="false">
<reportElement uuid="fc199edd-4f2f-4b5f-9397-44f4af50a920" mode="Opaque" x="0" y="36" width="50" height="15" forecolor="#000000" backcolor="#CDCDCD"/>
<reportElement mode="Opaque" x="0" y="36" width="50" height="15" forecolor="#000000" backcolor="#CDCDCD" uuid="fc199edd-4f2f-4b5f-9397-44f4af50a920"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
@ -315,7 +316,7 @@ WHERE NVL(TAB.EXTENSAO_KM,0) != 0]]>
<textFieldExpression><![CDATA[$R{cabecalho.periodo}]]></textFieldExpression>
</textField>
<textField pattern="dd/MM/yyyy" isBlankWhenNull="false">
<reportElement uuid="f64c2e3c-d936-4072-a0b1-d914f408bbbb" mode="Opaque" x="50" y="36" width="61" height="15" forecolor="#000000" backcolor="#CDCDCD"/>
<reportElement mode="Opaque" x="50" y="36" width="61" height="15" forecolor="#000000" backcolor="#CDCDCD" uuid="f64c2e3c-d936-4072-a0b1-d914f408bbbb"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
@ -323,7 +324,7 @@ WHERE NVL(TAB.EXTENSAO_KM,0) != 0]]>
<textFieldExpression><![CDATA[$P{DATA_INICIAL}]]></textFieldExpression>
</textField>
<textField pattern="dd/MM/yyyy" isBlankWhenNull="false">
<reportElement uuid="00093c35-d3a5-4b0e-8a7a-26a86912dd25" mode="Opaque" x="111" y="36" width="332" height="15" forecolor="#000000" backcolor="#CDCDCD"/>
<reportElement mode="Opaque" x="111" y="36" width="332" height="15" forecolor="#000000" backcolor="#CDCDCD" uuid="00093c35-d3a5-4b0e-8a7a-26a86912dd25"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
@ -331,7 +332,7 @@ WHERE NVL(TAB.EXTENSAO_KM,0) != 0]]>
<textFieldExpression><![CDATA[$P{DATA_FINAL}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="false">
<reportElement uuid="def1b81c-a286-4749-9ef7-f90984a3a5eb" mode="Transparent" x="101" y="36" width="10" height="14" forecolor="#000000" backcolor="#FFFFFF"/>
<reportElement mode="Transparent" x="101" y="36" width="10" height="14" forecolor="#000000" backcolor="#FFFFFF" uuid="def1b81c-a286-4749-9ef7-f90984a3a5eb"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
@ -339,7 +340,7 @@ WHERE NVL(TAB.EXTENSAO_KM,0) != 0]]>
<textFieldExpression><![CDATA[$R{cabecalho.periodoA}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="false">
<reportElement uuid="5dfea5f4-257a-43bc-94cb-bdead81ef7ac" mode="Opaque" x="0" y="0" width="417" height="21" forecolor="#000000" backcolor="#CDCDCD"/>
<reportElement mode="Opaque" x="0" y="0" width="417" height="21" forecolor="#000000" backcolor="#CDCDCD" uuid="5dfea5f4-257a-43bc-94cb-bdead81ef7ac"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="12" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
@ -347,7 +348,7 @@ WHERE NVL(TAB.EXTENSAO_KM,0) != 0]]>
<textFieldExpression><![CDATA[$P{EMPRESA}]]></textFieldExpression>
</textField>
<textField pattern="dd/MM/yyyy HH:mm" isBlankWhenNull="false">
<reportElement uuid="ea4dfc22-27b5-4600-8e8b-7d74460ed744" mode="Opaque" x="463" y="0" width="92" height="21" forecolor="#000000" backcolor="#CDCDCD"/>
<reportElement mode="Opaque" x="463" y="0" width="92" height="21" forecolor="#000000" backcolor="#CDCDCD" uuid="ea4dfc22-27b5-4600-8e8b-7d74460ed744"/>
<textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
@ -355,14 +356,14 @@ WHERE NVL(TAB.EXTENSAO_KM,0) != 0]]>
<textFieldExpression><![CDATA[new java.util.Date()]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="a46c91f5-fb60-48d8-93c1-3814ce0160dd" mode="Opaque" x="417" y="0" width="46" height="21" backcolor="#CDCDCD"/>
<reportElement mode="Opaque" x="417" y="0" width="46" height="21" backcolor="#CDCDCD" uuid="a46c91f5-fb60-48d8-93c1-3814ce0160dd"/>
<textElement>
<font size="9" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$R{cabecalho.dataHora}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="false">
<reportElement uuid="623b5d82-e7b3-4439-96c5-f44833fb8864" mode="Opaque" x="417" y="34" width="138" height="17" forecolor="#000000" backcolor="#CDCDCD"/>
<reportElement mode="Opaque" x="417" y="34" width="138" height="17" forecolor="#000000" backcolor="#CDCDCD" uuid="623b5d82-e7b3-4439-96c5-f44833fb8864"/>
<textElement verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
@ -370,7 +371,7 @@ WHERE NVL(TAB.EXTENSAO_KM,0) != 0]]>
<textFieldExpression><![CDATA[$R{cabecalho.impressorPor}+" "+$P{USUARIO}+"-"+$P{NOME_USUARIO}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="false">
<reportElement uuid="ccec8b66-ed79-418b-b66d-15d9ed3bf2ce" mode="Opaque" x="0" y="51" width="50" height="15" forecolor="#000000" backcolor="#CDCDCD"/>
<reportElement mode="Opaque" x="0" y="51" width="50" height="15" forecolor="#000000" backcolor="#CDCDCD" uuid="ccec8b66-ed79-418b-b66d-15d9ed3bf2ce"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
@ -378,14 +379,14 @@ WHERE NVL(TAB.EXTENSAO_KM,0) != 0]]>
<textFieldExpression><![CDATA[$R{cabecalho.filtros}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="98fc1c7e-3fee-4c70-924f-2cbb17fd243f" mode="Opaque" x="50" y="51" width="505" height="15" backcolor="#CDCDCD"/>
<reportElement mode="Opaque" x="50" y="51" width="505" height="15" backcolor="#CDCDCD" uuid="98fc1c7e-3fee-4c70-924f-2cbb17fd243f"/>
<textElement>
<font size="8"/>
</textElement>
<textFieldExpression><![CDATA[$P{FILTROS}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="false">
<reportElement uuid="6aae4c9b-2e2a-4fd5-9115-760449d3c263" mode="Opaque" x="417" y="21" width="125" height="13" forecolor="#000000" backcolor="#CDCDCD"/>
<reportElement mode="Opaque" x="417" y="21" width="125" height="13" forecolor="#000000" backcolor="#CDCDCD" uuid="6aae4c9b-2e2a-4fd5-9115-760449d3c263"/>
<textElement verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
@ -393,7 +394,7 @@ WHERE NVL(TAB.EXTENSAO_KM,0) != 0]]>
<textFieldExpression><![CDATA[$R{cabecalho.pagina}+" "+$V{PAGE_NUMBER}+" "+$R{cabecalho.de}]]></textFieldExpression>
</textField>
<textField evaluationTime="Report" pattern="" isBlankWhenNull="false">
<reportElement uuid="5a57c3a1-ed8e-46fb-836f-d250116a238a" mode="Opaque" x="542" y="21" width="13" height="13" forecolor="#000000" backcolor="#CDCDCD"/>
<reportElement mode="Opaque" x="542" y="21" width="13" height="13" forecolor="#000000" backcolor="#CDCDCD" uuid="5a57c3a1-ed8e-46fb-836f-d250116a238a"/>
<textElement textAlignment="Center" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
@ -405,21 +406,21 @@ WHERE NVL(TAB.EXTENSAO_KM,0) != 0]]>
<detail>
<band height="13">
<textField pattern="dd/MM/yyyy">
<reportElement uuid="ee9c23bd-e562-43d1-a766-851d09848504" x="0" y="0" width="50" height="12"/>
<reportElement x="0" y="0" width="50" height="12" uuid="ee9c23bd-e562-43d1-a766-851d09848504"/>
<textElement>
<font size="8"/>
</textElement>
<textFieldExpression><![CDATA[$F{FECCORRIDA}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="9557122b-0661-4f5e-9a89-b0bfd74dabe3" x="111" y="0" width="64" height="12"/>
<reportElement x="111" y="0" width="64" height="12" uuid="9557122b-0661-4f5e-9a89-b0bfd74dabe3"/>
<textElement textAlignment="Right">
<font size="8"/>
</textElement>
<textFieldExpression><![CDATA[$F{PASSAGEIROS}]]></textFieldExpression>
</textField>
<textField pattern="#,##0.00" isBlankWhenNull="false">
<reportElement uuid="beb097c0-f4c1-4fe3-a62e-badfdf823c0c" mode="Transparent" x="417" y="0" width="98" height="12" forecolor="#000000" backcolor="#FFFFFF"/>
<reportElement mode="Transparent" x="417" y="0" width="98" height="12" forecolor="#000000" backcolor="#FFFFFF" uuid="beb097c0-f4c1-4fe3-a62e-badfdf823c0c"/>
<textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="8" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
@ -427,14 +428,14 @@ WHERE NVL(TAB.EXTENSAO_KM,0) != 0]]>
<textFieldExpression><![CDATA[$F{PAX_KM}]]></textFieldExpression>
</textField>
<textField pattern="#,##0.00">
<reportElement uuid="21f73b7d-c377-4047-9960-41e085463aa0" x="313" y="1" width="65" height="12"/>
<reportElement x="313" y="1" width="65" height="12" uuid="21f73b7d-c377-4047-9960-41e085463aa0"/>
<textElement textAlignment="Right">
<font size="8"/>
</textElement>
<textFieldExpression><![CDATA[$F{VIAGENS}.multiply($F{EXTENSAO_KM})]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="01a234c4-7c30-4ac3-9a7c-dc09d0ebe314" x="224" y="1" width="42" height="12"/>
<reportElement x="224" y="1" width="42" height="12" uuid="01a234c4-7c30-4ac3-9a7c-dc09d0ebe314"/>
<textElement textAlignment="Right">
<font size="8"/>
</textElement>
@ -445,7 +446,7 @@ WHERE NVL(TAB.EXTENSAO_KM,0) != 0]]>
<noData>
<band height="39">
<textField>
<reportElement uuid="a640c0eb-ead8-4a2a-bda4-675165e8bc7d" x="0" y="8" width="555" height="20"/>
<reportElement x="0" y="8" width="555" height="20" uuid="a640c0eb-ead8-4a2a-bda4-675165e8bc7d"/>
<textElement textAlignment="Center" markup="none">
<font size="11" isBold="true"/>
</textElement>

View File

@ -1,7 +1,7 @@
<?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="RelatorioVendaBilhetePorEmpresaAutorizadora" pageWidth="1900" pageHeight="595" orientation="Landscape" whenNoDataType="NoDataSection" columnWidth="1860" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="b92fb063-a827-4619-8a69-5c78e3afbb8c">
<property name="ireport.zoom" value="1.610510000000003"/>
<property name="ireport.x" value="1719"/>
<property name="ireport.x" value="0"/>
<property name="ireport.y" value="0"/>
<property name="net.sf.jasperreports.export.xls.exclude.origin.band.2" value="pageHeader"/>
<property name="net.sf.jasperreports.export.xls.exclude.origin.keep.first.band.2" value="columnHeader"/>
@ -40,6 +40,7 @@
<field name="EMPRESAAUTORIZADORA_ID" class="java.lang.String"/>
<field name="EMPRESAAUTORIZADORA" class="java.lang.String"/>
<field name="NUMBPE" class="java.lang.String"/>
<field name="DATA_EVENTO" class="java.util.Date"/>
<variable name="TOTAL_TARIFA" class="java.math.BigDecimal" resetType="Group" resetGroup="EMPRESA_AUTORIZADORA" calculation="Sum">
<variableExpression><![CDATA[$F{TARIFA}!=null && $F{STATUS_PASSAGEM}.equals("CANCELADO")?$F{TARIFA}.multiply(new java.math.BigDecimal("-1") ):$F{TARIFA}]]></variableExpression>
</variable>
@ -228,14 +229,14 @@
<textFieldExpression><![CDATA["N. BPE"]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="false">
<reportElement uuid="175c2491-a0c4-47bb-bfb1-f8cbdfff876a" x="224" y="0" width="110" height="19"/>
<reportElement uuid="175c2491-a0c4-47bb-bfb1-f8cbdfff876a" x="254" y="0" width="80" height="19"/>
<textElement textAlignment="Left" markup="none">
<font size="8" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA["Cód. Bilheteiro "]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="false">
<reportElement uuid="cf67c704-990d-476b-b216-6c6fc14f5016" x="0" y="0" width="84" height="19"/>
<reportElement uuid="cf67c704-990d-476b-b216-6c6fc14f5016" x="74" y="0" width="40" height="19"/>
<textElement textAlignment="Left" markup="none">
<font size="8" isBold="true"/>
</textElement>
@ -281,7 +282,7 @@
<textFieldExpression><![CDATA["Tarifa"]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="false">
<reportElement uuid="4e544fca-dc45-44b3-a40e-1f6b2982961f" x="84" y="0" width="140" height="19"/>
<reportElement uuid="4e544fca-dc45-44b3-a40e-1f6b2982961f" x="114" y="0" width="140" height="19"/>
<textElement textAlignment="Left" markup="none">
<font size="8" isBold="true"/>
</textElement>
@ -392,19 +393,26 @@
</textElement>
<textFieldExpression><![CDATA["Vlr. Pago1"]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="false">
<reportElement uuid="16673147-602d-4f0d-9a90-8ec5c0be12f8" x="0" y="0" width="74" height="19"/>
<textElement textAlignment="Left" markup="none">
<font size="8" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA["Data Mov."]]></textFieldExpression>
</textField>
</band>
</columnHeader>
<detail>
<band height="20" splitType="Stretch">
<textField isStretchWithOverflow="true" isBlankWhenNull="false">
<reportElement uuid="e3a43e5d-2326-47c4-9d47-8c4d69d18d99" x="84" y="0" width="140" height="20"/>
<reportElement uuid="e3a43e5d-2326-47c4-9d47-8c4d69d18d99" x="114" y="0" width="140" height="20"/>
<textElement textAlignment="Left">
<font fontName="SansSerif" size="8"/>
</textElement>
<textFieldExpression><![CDATA[$F{NOME_AGENCIA}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="false">
<reportElement uuid="82c36c16-1662-4af9-a285-c935ab350e79" x="224" y="0" width="110" height="20"/>
<reportElement uuid="82c36c16-1662-4af9-a285-c935ab350e79" x="254" y="0" width="80" height="20"/>
<textElement textAlignment="Left">
<font fontName="SansSerif" size="8"/>
</textElement>
@ -544,7 +552,7 @@
<textFieldExpression><![CDATA[$F{VALORFORMAPAGO3}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="false">
<reportElement uuid="bc091860-adab-47d8-8352-982bc8e484a3" x="0" y="0" width="84" height="20"/>
<reportElement uuid="bc091860-adab-47d8-8352-982bc8e484a3" x="74" y="0" width="40" height="20"/>
<textElement textAlignment="Left">
<font fontName="SansSerif" size="8"/>
</textElement>
@ -557,6 +565,13 @@
</textElement>
<textFieldExpression><![CDATA[$F{NUMBPE}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="false">
<reportElement uuid="7913b2bf-8633-4f59-8168-75ea82fbcfb3" x="0" y="0" width="74" height="20"/>
<textElement textAlignment="Left">
<font fontName="SansSerif" size="8"/>
</textElement>
<textFieldExpression><![CDATA[$F{DATA_EVENTO}]]></textFieldExpression>
</textField>
</band>
</detail>
<summary>

View File

@ -587,6 +587,7 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
private Checkbox checkIndBloqueioDescontoAPI;
private Checkbox checkIndBloqueioDescontoWEB;
private Checkbox checkIndTaxaConvenienciaOrgaoConcedente;
@Autowired
private CobrancaAdcPuntoVentaService cobrancaAdcService;
@ -1213,6 +1214,7 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
txtTaxaConvenienciaPorc.setDisabled(true);
checkIndBloqueioDescontoAPI.setDisabled(true);
checkIndBloqueioDescontoWEB.setDisabled(true);
checkIndTaxaConvenienciaOrgaoConcedente.setDisabled(true);
}
}

View File

@ -5,6 +5,7 @@
package com.rjconsultores.ventaboletos.web.gui.controladores.esquemaoperacional;
import java.sql.Time;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.Iterator;
@ -17,6 +18,7 @@ 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.DropEvent;
import org.zkoss.zk.ui.event.Event;
import org.zkoss.zk.ui.event.EventListener;
import org.zkoss.zk.ui.event.InputEvent;
@ -27,15 +29,18 @@ import org.zkoss.zul.Combobox;
import org.zkoss.zul.Comboitem;
import org.zkoss.zul.Datebox;
import org.zkoss.zul.Intbox;
import org.zkoss.zul.Listheader;
import org.zkoss.zul.Paging;
import org.zkoss.zul.Timebox;
import com.rjconsultores.ventaboletos.entidad.ClaseServicio;
import com.rjconsultores.ventaboletos.entidad.Empresa;
import com.rjconsultores.ventaboletos.entidad.EsquemaCorrida;
import com.rjconsultores.ventaboletos.entidad.HeaderTabelaEsquemaCorrida;
import com.rjconsultores.ventaboletos.entidad.Marca;
import com.rjconsultores.ventaboletos.entidad.Ruta;
import com.rjconsultores.ventaboletos.service.ClaseServicioService;
import com.rjconsultores.ventaboletos.service.HeaderEsquemaCorridaService;
import com.rjconsultores.ventaboletos.service.MarcaService;
import com.rjconsultores.ventaboletos.service.RutaService;
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
@ -82,6 +87,145 @@ public class BusquedaCorridaController extends MyGenericForwardComposer {
private Checkbox chkNaoIncluirLinhaInativa;
private Checkbox chkCorridaCancelada;
private Listheader listHeader1;
private Listheader listHeader2;
private Listheader listHeader3;
private Listheader listHeader4;
private Listheader listHeader5;
private Listheader listHeader6;
private Listheader listHeader7;
private Listheader listHeader8;
private Listheader listHeader9;
private Listheader listHeader10;
private Listheader listHeader11;
private Listheader listHeader12;
private Listheader listHeader13;
private Listheader listHeader14;
private Listheader listHeader15;
@Autowired
private HeaderEsquemaCorridaService headerService;
public Listheader getListHeader1() {
return listHeader1;
}
public void setListHeader1(Listheader listHeader1) {
this.listHeader1 = listHeader1;
}
public Listheader getListHeader2() {
return listHeader2;
}
public void setListHeader2(Listheader listHeader1) {
this.listHeader2 = listHeader1;
}
public Listheader getListHeader3() {
return listHeader3;
}
public void setListHeader3(Listheader listHeader3) {
this.listHeader3 = listHeader3;
}
public Listheader getListHeader4() {
return listHeader4;
}
public void setListHeader4(Listheader listHeader4) {
this.listHeader4 = listHeader4;
}
public Listheader getListHeader5() {
return listHeader5;
}
public void setListHeader5(Listheader listHeader5) {
this.listHeader5 = listHeader5;
}
public Listheader getListHeader6() {
return listHeader6;
}
public void setListHeader6(Listheader listHeader6) {
this.listHeader6 = listHeader6;
}
public Listheader getListHeader7() {
return listHeader7;
}
public void setListHeader7(Listheader listHeader7) {
this.listHeader7 = listHeader7;
}
public Listheader getListHeader8() {
return listHeader8;
}
public void setListHeader8(Listheader listHeader8) {
this.listHeader8 = listHeader8;
}
public Listheader getListHeader9() {
return listHeader9;
}
public void setListHeader9(Listheader listHeader9) {
this.listHeader9 = listHeader9;
}
public Listheader getListHeader10() {
return listHeader10;
}
public void setListHeader10(Listheader listHeader10) {
this.listHeader10 = listHeader10;
}
public Listheader getListHeader11() {
return listHeader11;
}
public void setListHeader11(Listheader listHeader11) {
this.listHeader11 = listHeader11;
}
public Listheader getListHeader12() {
return listHeader12;
}
public void setListHeader12(Listheader listHeader12) {
this.listHeader12 = listHeader12;
}
public Listheader getListHeader13() {
return listHeader13;
}
public void setListHeader13(Listheader listHeader13) {
this.listHeader13 = listHeader13;
}
public Listheader getListHeader14() {
return listHeader14;
}
public void setListHeader14(Listheader listHeader14) {
this.listHeader14 = listHeader14;
}
public Listheader getListHeader15() {
return listHeader15;
}
public void setListHeader15(Listheader listHeader15) {
this.listHeader15 = listHeader15;
}
public Combobox getCmbClase() {
return cmbClase;
@ -240,7 +384,23 @@ public class BusquedaCorridaController extends MyGenericForwardComposer {
lsClase = claseService.obtenerTodos();
lsRuta = rutaService.obtenerTodos();
esquemaCorridaList.setItemRenderer(new RenderConfiguracionCorrida());
criarListaDinamica();
btnPesquisa.focus();
cmbMarca.setSelectedItem(null);
refreshLista();
}
Integer posicoesColunasTabela[] = {1,2,3,4,5,6,7,8,9,10,11,12,13,14,15};
List<String> labelsList = new ArrayList<>();
private void criarListaDinamica() {
//Busca do banco as posicoes salvas
posicoesColunasTabela = headerService.buscarHeader();
esquemaCorridaList.setItemRenderer(new RenderConfiguracionCorrida(posicoesColunasTabela));
esquemaCorridaList.addEventListener("onDoubleClick", new EventListener() {
@Override
@ -249,11 +409,115 @@ public class BusquedaCorridaController extends MyGenericForwardComposer {
verPeriodo(rc);
}
});
iniciarListHeader(listHeader1);
iniciarListHeader(listHeader2);
iniciarListHeader(listHeader3);
iniciarListHeader(listHeader4);
iniciarListHeader(listHeader5);
iniciarListHeader(listHeader6);
iniciarListHeader(listHeader7);
iniciarListHeader(listHeader8);
iniciarListHeader(listHeader9);
iniciarListHeader(listHeader10);
iniciarListHeader(listHeader11);
iniciarListHeader(listHeader12);
iniciarListHeader(listHeader13);
iniciarListHeader(listHeader14);
iniciarListHeader(listHeader15);
criarListaDeLabels();
atualizaLabelsTabela();
}
btnPesquisa.focus();
cmbMarca.setSelectedItem(null);
private void criarListaDeLabels() {
labelsList.add("ZERO");
labelsList.add(listHeader1.getLabel());
labelsList.add(listHeader2.getLabel());
labelsList.add(listHeader3.getLabel());
labelsList.add(listHeader4.getLabel());
labelsList.add(listHeader5.getLabel());
labelsList.add(listHeader6.getLabel());
labelsList.add(listHeader7.getLabel());
labelsList.add(listHeader8.getLabel());
labelsList.add(listHeader9.getLabel());
labelsList.add(listHeader10.getLabel());
labelsList.add(listHeader11.getLabel());
labelsList.add(listHeader12.getLabel());
labelsList.add(listHeader13.getLabel());
labelsList.add(listHeader14.getLabel());
labelsList.add(listHeader15.getLabel());
}
refreshLista();
private void atualizaLabelsTabela() {
int i = 1;
for(Integer posicao : posicoesColunasTabela) {
if(i == 1) {
listHeader1.setLabel(labelsList.get(posicao));
} else if ( i == 2) {
listHeader2.setLabel(labelsList.get(posicao));
} else if ( i == 3) {
listHeader3.setLabel(labelsList.get(posicao));
} else if ( i == 4) {
listHeader4.setLabel(labelsList.get(posicao));
} else if ( i == 5) {
listHeader5.setLabel(labelsList.get(posicao));
} else if ( i == 6) {
listHeader6.setLabel(labelsList.get(posicao));
} else if ( i == 7) {
listHeader7.setLabel(labelsList.get(posicao));
} else if ( i == 8) {
listHeader8.setLabel(labelsList.get(posicao));
} else if ( i == 9) {
listHeader9.setLabel(labelsList.get(posicao));
} else if ( i == 10) {
listHeader10.setLabel(labelsList.get(posicao));
} else if ( i == 11) {
listHeader11.setLabel(labelsList.get(posicao));
} else if ( i == 12) {
listHeader12.setLabel(labelsList.get(posicao));
} else if ( i == 13) {
listHeader13.setLabel(labelsList.get(posicao));
} else if ( i == 14) {
listHeader14.setLabel(labelsList.get(posicao));
} else if ( i == 15) {
listHeader15.setLabel(labelsList.get(posicao));
}
i++;
}
}
private void iniciarListHeader(Listheader listHeader) {
listHeader.setDraggable("true");
listHeader.setDroppable("true");
listHeader.addEventListener("onDrop", new EventListener() {
public void onEvent(Event inEvent) throws Exception {
DropEvent dropEvent = (DropEvent) inEvent;
Component dragged = dropEvent.getDragged();
int de = dragged.getParent().getChildren().indexOf(dragged);
int para = listHeader.getParent().getChildren().indexOf(listHeader);
Integer posicaoDe = posicoesColunasTabela[de];
Integer posicaoPara = posicoesColunasTabela[para];
posicoesColunasTabela[para] = posicaoDe;
posicoesColunasTabela[de] = posicaoPara;
headerService.salvarPosicoesHeader(posicoesColunasTabela);
esquemaCorridaList.setItemRenderer(new RenderConfiguracionCorrida(posicoesColunasTabela));
esquemaCorridaList.renderAll();
atualizaLabelsTabela();
}
});
}
private void verPeriodo(EsquemaCorrida rc) {

View File

@ -31,6 +31,7 @@ import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioResumoLinhasAnali
import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioResumoLinhasAnaliticoSimplificadoSumarizado;
import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioResumoLinhasAnaliticoSumarizado;
import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio;
import com.rjconsultores.ventaboletos.service.ConstanteService;
import com.rjconsultores.ventaboletos.service.EmpresaService;
import com.rjconsultores.ventaboletos.service.GrupoRutaService;
import com.rjconsultores.ventaboletos.service.RutaService;
@ -38,6 +39,7 @@ import com.rjconsultores.ventaboletos.utilerias.DateUtil;
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar;
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
import com.rjconsultores.ventaboletos.web.utilerias.spring.AppContext;
/**
*
@ -70,6 +72,7 @@ public class RelatorioResumoLinhasController extends MyGenericForwardComposer {
private Radio rdAnalitico;
private Checkbox chcSumarizar;
private Checkbox chcSimplificadoSumarizado;
private static String CONSTANTE_GRATUIDADE_CRIANCA;
@ -88,11 +91,12 @@ public class RelatorioResumoLinhasController extends MyGenericForwardComposer {
Map<String, Object> parametros = new HashMap<String, Object>();
StringBuilder filtro = new StringBuilder();
parametros.put("DATA_INICIAL", (java.util.Date) this.fecCorridaIni.getValue());
parametros.put("DATA_FINAL", DateUtil.fimFecha((java.util.Date) this.fecCorridaFin.getValue()));
parametros.put("DATA_INICIAL", this.fecCorridaIni.getValue());
parametros.put("DATA_FINAL", DateUtil.fimFecha(this.fecCorridaFin.getValue()));
parametros.put("NOME_RELATORIO", Labels.getLabel("relatorioResumoLinhasController.window.title"));
parametros.put("USUARIO", UsuarioLogado.getUsuarioLogado().getUsuarioId().toString());
parametros.put("NOME_USUARIO", UsuarioLogado.getUsuarioLogado().getNombusuario().toString());
parametros.put("NOME_USUARIO", UsuarioLogado.getUsuarioLogado().getNombusuario());
parametros.put("CRIANCA_ID", buscarConstante("GRATUIDADE_CRIANCA"));
Comboitem itemRuta = cmbRuta.getSelectedItem();
@ -159,6 +163,11 @@ public class RelatorioResumoLinhasController extends MyGenericForwardComposer {
super.doAfterCompose(comp);
}
private String buscarConstante(String nomeConstante) {
ConstanteService constanteService = (ConstanteService) AppContext.getApplicationContext().getBean("constanteService");
return constanteService.buscarPorNomeConstante(nomeConstante).getValorconstante();
}
public List<Ruta> getLsRuta() {
return lsRuta;

View File

@ -38,6 +38,7 @@ public class MyComboboxEmpresa extends Combobox {
this.setAutodrop(false);
this.setAutocomplete(false);
this.addEventListener("onOK", new EventListener() {

View File

@ -19,107 +19,245 @@ import org.zkoss.zul.ListitemRenderer;
*/
public class RenderConfiguracionCorrida implements ListitemRenderer {
private Integer[] posicoes = null;
private SimpleDateFormat dt = new SimpleDateFormat("dd/MM/yy");
public RenderConfiguracionCorrida(Integer[] posicoes) {
super();
this.posicoes = posicoes;
}
public RenderConfiguracionCorrida() {
super();
}
public void render(Listitem lstm, Object o) throws Exception {
EsquemaCorrida corrida = (EsquemaCorrida) o;
Listcell lc = new Listcell(corrida.getEsquemacorridaId().toString());
lc.setParent(lstm);
lc = new Listcell(corrida.getNumCorrida().toString());
lc.setParent(lstm);
SimpleDateFormat dt = new SimpleDateFormat("dd/MM/yy");
lc = new Listcell(dt.format(corrida.getEsquemaOperacional().getFecniciovigencia()));
lc.setParent(lstm);
lc = new Listcell(dt.format(corrida.getEsquemaOperacional().getFecfinvigencia()));
lc.setParent(lstm);
if (corrida.getHorasalida() == null) {
lc = new Listcell("-");
lc.setParent(lstm);
if(posicoes != null) {
Listcell lc;
for(Integer posicao : posicoes) {
lc = buscarListCell(posicao, corrida);
lc.setParent(lstm);
}
} else {
SimpleDateFormat hr = new SimpleDateFormat("HH:mm");
lc = new Listcell(hr.format(corrida.getHorasalida()));
Listcell lc = new Listcell(corrida.getEsquemacorridaId().toString());
lc.setParent(lstm);
lc = new Listcell(corrida.getNumCorrida().toString());
lc.setParent(lstm);
lc = new Listcell(dt.format(corrida.getEsquemaOperacional().getFecniciovigencia()));
lc.setParent(lstm);
lc = new Listcell(dt.format(corrida.getEsquemaOperacional().getFecfinvigencia()));
lc.setParent(lstm);
if (corrida.getHorasalida() == null) {
lc = new Listcell("-");
lc.setParent(lstm);
} else {
SimpleDateFormat hr = new SimpleDateFormat("HH:mm");
lc = new Listcell(hr.format(corrida.getHorasalida()));
lc.setParent(lstm);
}
// Ruta
lc = new Listcell(corrida.getRuta().getDescruta() == null ? "-" : corrida.getRuta().getDescruta());
lc.setParent(lstm);
lc = new Listcell(corrida.getRuta().getNumRuta() == null ? "-" : corrida.getRuta().getNumRuta());
lc.setParent(lstm);
lc = new Listcell(corrida.getRuta().getIndSentidoIda() == true ? Labels.getLabel("editarCatalogoDeRutaController.radIda.value") : Labels.getLabel("editarCatalogoDeRutaController.radVolta.value"));
lc.setParent(lstm);
// Marca
lc = new Listcell(corrida.getMarca().getDescmarca() == null ? "-" : corrida.getMarca().getDescmarca());
lc.setParent(lstm);
// Semana
String l = (corrida.getIndlunes() == Boolean.TRUE) ? "S " : "- ";
String ma = (corrida.getIndmartes() == Boolean.TRUE) ? "T " : "- ";
String mi = (corrida.getIndmiercoles() == Boolean.TRUE) ? "Q " : "- ";
String j = (corrida.getIndjueves() == Boolean.TRUE) ? "Q " : "- ";
String v = (corrida.getIndviernes() == Boolean.TRUE) ? "S " : "- ";
String s = (corrida.getIndsabado() == Boolean.TRUE) ? "S " : "- ";
String d = (corrida.getInddomingo() == Boolean.TRUE) ? "D " : "- ";
lc = new Listcell(l + ma + mi + j + v + s + d);
lc.setParent(lstm);
// Clase
try {
lc = new Listcell(corrida.getClaseServicio().getDescclase() == null ? "-" : corrida.getClaseServicio().getDescclase());
lc.setParent(lstm);
} catch (Exception e) {
lc = new Listcell("-");
lc.setParent(lstm);
}
// EmpC
try {
lc = new Listcell(corrida.getEmpresa().getNombempresa() == null ? "-" : corrida.getEmpresa().getNombempresa());
lc.setParent(lstm);
} catch (Exception e) {
lc = new Listcell("-");
lc.setParent(lstm);
}
// EmpI
try {
lc = new Listcell(corrida.getEmpresa1().getNombempresa() == null ? "-" : corrida.getEmpresa1().getNombempresa());
lc.setParent(lstm);
} catch (Exception e) {
lc = new Listcell("-");
lc.setParent(lstm);
}
// RolOperativo
try {
lc = new Listcell(corrida.getRolOperativo().getDescroloperativo() == null ? "-" : corrida.getRolOperativo().getDescroloperativo());
lc.setParent(lstm);
} catch (Exception e) {
lc = new Listcell("-");
lc.setParent(lstm);
}
// Status
if (corrida.getStatusCorrida() == null) {
lc = new Listcell("-");
lc.setParent(lstm);
} else if (corrida.getStatusCorrida().equals("L")) {
lc = new Listcell("LATENTE");
lc.setParent(lstm);
} else if (corrida.getStatusCorrida().equals("A")) {
lc = new Listcell("AUTORIZADA");
lc.setParent(lstm);
} else {
lc = new Listcell("CANCELADA");
lc.setParent(lstm);
}
}
// Ruta
lc = new Listcell(corrida.getRuta().getDescruta() == null ? "-" : corrida.getRuta().getDescruta());
lc.setParent(lstm);
lc = new Listcell(corrida.getRuta().getNumRuta() == null ? "-" : corrida.getRuta().getNumRuta());
lc.setParent(lstm);
lc = new Listcell(corrida.getRuta().getIndSentidoIda() == true ? Labels.getLabel("editarCatalogoDeRutaController.radIda.value") : Labels.getLabel("editarCatalogoDeRutaController.radVolta.value"));
lc.setParent(lstm);
// Marca
lc = new Listcell(corrida.getMarca().getDescmarca() == null ? "-" : corrida.getMarca().getDescmarca());
lc.setParent(lstm);
// Semana
String l = (corrida.getIndlunes() == Boolean.TRUE) ? "S " : "- ";
String ma = (corrida.getIndmartes() == Boolean.TRUE) ? "T " : "- ";
String mi = (corrida.getIndmiercoles() == Boolean.TRUE) ? "Q " : "- ";
String j = (corrida.getIndjueves() == Boolean.TRUE) ? "Q " : "- ";
String v = (corrida.getIndviernes() == Boolean.TRUE) ? "S " : "- ";
String s = (corrida.getIndsabado() == Boolean.TRUE) ? "S " : "- ";
String d = (corrida.getInddomingo() == Boolean.TRUE) ? "D " : "- ";
lc = new Listcell(l + ma + mi + j + v + s + d);
lc.setParent(lstm);
// Clase
try {
lc = new Listcell(corrida.getClaseServicio().getDescclase() == null ? "-" : corrida.getClaseServicio().getDescclase());
lc.setParent(lstm);
} catch (Exception e) {
lc = new Listcell("-");
lc.setParent(lstm);
}
// EmpC
try {
lc = new Listcell(corrida.getEmpresa().getNombempresa() == null ? "-" : corrida.getEmpresa().getNombempresa());
lc.setParent(lstm);
} catch (Exception e) {
lc = new Listcell("-");
lc.setParent(lstm);
}
// EmpI
try {
lc = new Listcell(corrida.getEmpresa1().getNombempresa() == null ? "-" : corrida.getEmpresa1().getNombempresa());
lc.setParent(lstm);
} catch (Exception e) {
lc = new Listcell("-");
lc.setParent(lstm);
}
// RolOperativo
try {
lc = new Listcell(corrida.getRolOperativo().getDescroloperativo() == null ? "-" : corrida.getRolOperativo().getDescroloperativo());
lc.setParent(lstm);
} catch (Exception e) {
lc = new Listcell("-");
lc.setParent(lstm);
}
// Status
if (corrida.getStatusCorrida() == null) {
lc = new Listcell("-");
lc.setParent(lstm);
} else if (corrida.getStatusCorrida().equals("L")) {
lc = new Listcell("LATENTE");
lc.setParent(lstm);
} else if (corrida.getStatusCorrida().equals("A")) {
lc = new Listcell("AUTORIZADA");
lc.setParent(lstm);
} else {
lc = new Listcell("CANCELADA");
lc.setParent(lstm);
}
lstm.setAttribute("data", corrida);
}
private Listcell buscarListCell(Integer posicao, EsquemaCorrida corrida) {
Listcell lc = null;
switch (posicao) {
case 1:
lc = new Listcell(corrida.getEsquemacorridaId().toString());
break;
case 2:
lc = new Listcell(corrida.getNumCorrida().toString());
break;
case 3:
lc = new Listcell(dt.format(corrida.getEsquemaOperacional().getFecniciovigencia()));
break;
case 4:
lc = new Listcell(dt.format(corrida.getEsquemaOperacional().getFecfinvigencia()));
break;
case 5:
if (corrida.getHorasalida() == null) {
lc = new Listcell("-");
} else {
SimpleDateFormat hr = new SimpleDateFormat("HH:mm");
lc = new Listcell(hr.format(corrida.getHorasalida()));
}
break;
case 6:
// Ruta
lc = new Listcell(corrida.getRuta().getDescruta() == null ? "-" : corrida.getRuta().getDescruta());
break;
case 7:
lc = new Listcell(corrida.getRuta().getNumRuta() == null ? "-" : corrida.getRuta().getNumRuta());
break;
case 8:
lc = new Listcell(corrida.getRuta().getIndSentidoIda() == true ? Labels.getLabel("editarCatalogoDeRutaController.radIda.value") : Labels.getLabel("editarCatalogoDeRutaController.radVolta.value"));
break;
case 9:
// Marca
lc = new Listcell(corrida.getMarca().getDescmarca() == null ? "-" : corrida.getMarca().getDescmarca());
break;
case 10:
// Semana
String l = (corrida.getIndlunes() == Boolean.TRUE) ? "S " : "- ";
String ma = (corrida.getIndmartes() == Boolean.TRUE) ? "T " : "- ";
String mi = (corrida.getIndmiercoles() == Boolean.TRUE) ? "Q " : "- ";
String j = (corrida.getIndjueves() == Boolean.TRUE) ? "Q " : "- ";
String v = (corrida.getIndviernes() == Boolean.TRUE) ? "S " : "- ";
String s = (corrida.getIndsabado() == Boolean.TRUE) ? "S " : "- ";
String d = (corrida.getInddomingo() == Boolean.TRUE) ? "D " : "- ";
lc = new Listcell(l + ma + mi + j + v + s + d);
break;
case 11:
// Clase
try {
lc = new Listcell(corrida.getClaseServicio().getDescclase() == null ? "-" : corrida.getClaseServicio().getDescclase());
} catch (Exception e) {
lc = new Listcell("-");
}
break;
case 12:
// EmpC
try {
lc = new Listcell(corrida.getEmpresa().getNombempresa() == null ? "-" : corrida.getEmpresa().getNombempresa());
} catch (Exception e) {
lc = new Listcell("-");
}
break;
case 13:
// EmpI
try {
lc = new Listcell(corrida.getEmpresa1().getNombempresa() == null ? "-" : corrida.getEmpresa1().getNombempresa());
} catch (Exception e) {
lc = new Listcell("-");
}
break;
case 14:
// RolOperativo
try {
lc = new Listcell(corrida.getRolOperativo().getDescroloperativo() == null ? "-" : corrida.getRolOperativo().getDescroloperativo());
} catch (Exception e) {
lc = new Listcell("-");
}
break;
case 15:
// Status
if (corrida.getStatusCorrida() == null) {
lc = new Listcell("-");
} else if (corrida.getStatusCorrida().equals("L")) {
lc = new Listcell("LATENTE");
} else if (corrida.getStatusCorrida().equals("A")) {
lc = new Listcell("AUTORIZADA");
} else {
lc = new Listcell("CANCELADA");
}
break;
default:
break;
}
return lc;
}
}

View File

@ -451,7 +451,8 @@
<value>com.rjconsultores.ventaboletos.entidad.GP_PricingGestao</value>
<value>com.rjconsultores.ventaboletos.entidad.GP_PricingHistorico</value>
<value>com.rjconsultores.ventaboletos.entidad.PricingConexao</value>
<value>com.rjconsultores.ventaboletos.entidad.OrgaoComprovanteCustomizado</value>
<value>com.rjconsultores.ventaboletos.entidad.OrgaoComprovanteCustomizado</value>
<value>com.rjconsultores.ventaboletos.entidad.HeaderTabelaEsquemaCorrida</value>
</list>
</property>

View File

@ -1996,6 +1996,7 @@ editarPuntoVentaController.lbQrcodeTaxaEmbarqueRodTTL.label= Imprimir na venda o
editarPuntoVentaController.checkIndBloqueioDescontoAPI.label = Bloquear descuento a través de api
editarPuntoVentaController.checkIndBloqueioDescontoWEB.label = Bloquear descuento en internet
editarPuntoVentaController.merchantStoreAdyen.label= Merchant Store Adyen
editarPuntoVentaController.lbTaxaConvenienciaOrgaoConcedente.label= Taxa Conveniência por Órgao Concedente
# Fechamento Conta Contábil Agencia
editarPuntoVentaController.puntoventa.label = Agencia
@ -9287,6 +9288,7 @@ editarEmpresaController.confMovFPTrocaVlrDeposito.help=Suma del método de pago
editarEmpresaController.comTransfGeraCaja=Transferencias de suma que mueven efectivo en los retornos totales en el cálculo de la comisión
editarEmpresaController.comTransfGeraCaja.help=Transferencias de suma que mueven efectivo en los retornos totales en el cálculo de la comisión
editarEmpresaController.indSegundaViaSeguroOpcional= Emite una segunda copia del seguro opcional
editarEmpresaController.indSegundaViaSeguroOpcional.tooltip=Con este flag seleccionado, al emitir una 2da copia de boleto con seguro vinculado opcional, el sistema también emite la 2da copia del seguro y lo registra en caja en transacciones que no generan efectivo. Además, con esta bandera seleccionada, al cambiar/transferir un billete, el seguro anterior se cancela automáticamente en caja y el importe pagado se utiliza como “crédito” para pagar el nuevo seguro que se registrará en caja.
editarEmpresaController.indJurosCredito= Habilita juros no cartão de crédito
editarEmpresaController.encerraViagemFechorllegada.ajuda=Controla o encerramento da viagem pela data de saída data de chegada da corrida.

View File

@ -2295,6 +2295,7 @@ editarPuntoVentaController.checkIndBloqueioDescontoWEB.label = Bloquear desconto
editarPuntoVentaController.merchantStoreAdyen.label= Merchant Store Adyen
editarPuntoVentaController.tempoMaxServicoEmVenda.label= Tempo máx. Serviço em venda antes/após saída (minutos)
editarPuntoVentaController.dicatempoMaxServicoEmVenda.value=Tempo em minutos em que o serviço ficará em venda, antes saída (inserir valor negativo) ou após saída (inserir valor positivo) para este ponto de venda. Caso configurado este campo terá prioridade em relação as Config. Gerais (menu Configuração Geral) hoje usadas para esta finalidade tal como a Confi.Geral TIEMPO_ULTIMA_HORA_CORRIDA ou TIEMPO_ANTES_SALIDA_VENTAWEB(para substituir o valor desta constante deve inserir valor negativo).
editarPuntoVentaController.lbTaxaConvenienciaOrgaoConcedente.label= Taxa Conveniência por Órgao Concedente
# Editar comissão ponto de venda
editarPuntoVentaComissaoController.window.title = Comissão Empresa/Ponto de Venda - {0}
@ -9683,7 +9684,8 @@ editarEmpresaController.alertaVDAPosHorarioViagem=Alerta para venda após horár
editarEmpresaController.alertaVDAPosHorarioViagem.help=Alerta para venda após horário da viagem
editarEmpresaController.confMovFPTrocaVlrDeposito=Soma Forma de Pagamento 'TROCA PASSAGEM' no Valor de Depósito na Conferência de Movimento
editarEmpresaController.confMovFPTrocaVlrDeposito.help=Soma Forma de Pagamento 'TROCA PASSAGEM' no Valor de Depósito na Conferência de Movimento
editarEmpresaController.indSegundaViaSeguroOpcional= Emite Segunda via do seguro opcional
editarEmpresaController.indSegundaViaSeguroOpcional= Emite 2ª via Seguro e Ativa Seguro nas operações Troca/Transferência
editarEmpresaController.indSegundaViaSeguroOpcional.tooltip=Com esta flag marcada, ao emitir uma 2ª via de passagem com seguro opcional vinculado, o sistema emite também a 2ª via do seguro e registra no caixa em movimentação que não gera caixa. Além disso, com esta flag marcada, na troca/transferência de passagem o seguro anterior é cancelado automaticamente no caixa e o valor pago é usado como “crédito” para pagamento do novo seguro a ser registrado no caixa.
editarEmpresaController.indJurosCredito= Habilita juros no cartão de crédito
editarEmpresaController.indHabilitaVendaDeBilheteSemelhante= Hailita a venda de bilhete semelhante na mesma cesta de compra.
editarEmpresaController.indHabilitaVendaDeBilheteSemelhante.help = Habilita a venda de bilhetes semelhante na mesma cesta de compra, respeitando o preço do primeiro bilhete.

View File

@ -980,7 +980,7 @@
<groupbox>
<caption label="${c:l('editarEmpresaController.habilitaVendaSeguroW2Digital')}" />
<hlayout>
<checkbox id="cnhIndSeguroOpcionalW2Digital"
<checkbox id="cnhIndSeguroOpcionalW2Digital" disabled="true"
value="@{winEditarEmpresa$composer.empresa.indSeguroW2Digital}" />
<image src="/gui/img/Question_mark_1.png"
tooltiptext="${c:l('editarEmpresaController.habilitaVendaSeguroW2Digital')}" style="cursor: help" />
@ -1038,7 +1038,7 @@
            
<hlayout>
<checkbox id="chkIndSegundaViaSeguroOpcional" value="@{winEditarEmpresa$composer.empresa.indSegundaViaSegOpcional}" />
<image src="/gui/img/Question_mark_1.png" tooltiptext="${c:l('editarEmpresaController.indSegundaViaSeguroOpcional')}" style="cursor: help" />
<image src="/gui/img/Question_mark_1.png" tooltiptext="${c:l('editarEmpresaController.indSegundaViaSeguroOpcional.tooltip')}" style="cursor: help" />
</hlayout>
</groupbox>

View File

@ -506,7 +506,13 @@
<label
value="${c:l('editarPuntoVentaController.checkIndBloqueioDescontoWEB.label')}" />
<checkbox id="checkIndBloqueioDescontoWEB" checked="@{winEditarPuntoVenta$composer.puntoVenta.indBloquearDescontoWEB}" />
</row>
</row>
<row>
<label
value="${c:l('editarPuntoVentaController.lbTaxaConvenienciaOrgaoConcedente.label')}" />
<checkbox id="checkIndTaxaConvenienciaOrgaoConcedente" checked="@{winEditarPuntoVenta$composer.puntoVenta.indTaxaConvenienciaOrgaoConcedente}" />
</row>
</rows>
</grid>
</tabpanel>

View File

@ -126,48 +126,48 @@
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
multiple="false" vflex="true" height="50%">
<listhead sizable="true">
<listheader width="50px" image="/gui/img/builder.gif"
<listheader width="50px" image="/gui/img/builder.gif" id="listHeader1"
label="${c:l('busquedaConfiguracionCorridaController.lhId.label')}"
sort="auto(esquemacorridaId)" />
<listheader width="130px" image="/gui/img/builder.gif"
<listheader width="130px" image="/gui/img/builder.gif" id="listHeader2"
label="${c:l('busquedaConfiguracionCorridaController.lbNumCorrida.label')}"
sort="auto(numCorrida)" />
<listheader width="110px" image="/gui/img/builder.gif"
<listheader width="110px" image="/gui/img/builder.gif" id="listHeader3"
label="${c:l('busquedaConfiguracionCorridaController.lhDe.label')}"
sort="auto(esquemaOperacional.fecniciovigencia)" />
<listheader width="110px" image="/gui/img/builder.gif"
<listheader width="110px" image="/gui/img/builder.gif" id="listHeader4"
label="${c:l('busquedaConfiguracionCorridaController.lhHasta.label')}"
sort="auto(esquemaOperacional.fecfinvigencia)" />
<listheader width="110px" image="/gui/img/builder.gif"
<listheader width="110px" image="/gui/img/builder.gif" id="listHeader5"
label="${c:l('busquedaConfiguracionCorridaController.lhHora.label')}"
sort="auto(horasalida)" />
<listheader width="110px" image="/gui/img/builder.gif"
<listheader width="110px" image="/gui/img/builder.gif" id="listHeader6"
label="${c:l('busquedaConfiguracionCorridaController.lhRuta.label')}"
sort="auto(ruta.descruta)" />
<listheader width="110px" image="/gui/img/builder.gif"
<listheader width="110px" image="/gui/img/builder.gif" id="listHeader7"
label="${c:l('busquedaConfiguracionCorridaController.numRuta.label')}"
sort="auto(ruta.numRuta)" />
<listheader width="110px" image="/gui/img/builder.gif"
<listheader width="110px" image="/gui/img/builder.gif" id="listHeader8"
label="${c:l('busquedaConfiguracionCorridaController.sentidoRuta.label')}"
sort="auto(ruta.indSentidoIda)" />
<listheader width="110px" image="/gui/img/builder.gif"
<listheader width="110px" image="/gui/img/builder.gif" id="listHeader9"
label="${c:l('busquedaConfiguracionCorridaController.lhMarca.value')}"
sort="auto(marca.descmarca)" />
<listheader width="110px" image="/gui/img/builder.gif"
<listheader width="110px" image="/gui/img/builder.gif" id="listHeader10"
label="${c:l('busquedaConfiguracionCorridaController.lhSemana.value')}" />
<listheader width="110px" image="/gui/img/builder.gif"
<listheader width="110px" image="/gui/img/builder.gif" id="listHeader11"
label="${c:l('busquedaConfiguracionCorridaController.lhClase.value')}"
sort="auto(claseServicio.descclase)" />
<listheader width="110px" image="/gui/img/builder.gif"
<listheader width="110px" image="/gui/img/builder.gif" id="listHeader12"
label="${c:l('busquedaConfiguracionCorridaController.lhEmpresaCorrida.value')}"
sort="auto(empresa.nombempresa)" />
<listheader width="110px" image="/gui/img/builder.gif"
<listheader width="110px" image="/gui/img/builder.gif" id="listHeader13"
label="${c:l('busquedaConfiguracionCorridaController.lhEmpresaIngresso.value')}"
sort="auto(empresa1.nombempresa)" />
<listheader width="110px" image="/gui/img/builder.gif"
<listheader width="110px" image="/gui/img/builder.gif" id="listHeader14"
label="${c:l('busquedaConfiguracionCorridaController.lhEmpresaRolOperativo.value')}"
sort="auto(rolOperativo.descroloperativo)" />
<listheader width="110px" image="/gui/img/builder.gif"
<listheader width="110px" image="/gui/img/builder.gif" id="listHeader15"
label="${c:l('busquedaConfiguracionCorridaController.lhStatus.value')}"
sort="auto(statusCorrida)" />
</listhead>