Atualização do log4j

master
Gleimar Botelho Baleeiro 2023-11-21 12:28:36 -03:00
commit c8f21302a1
23 changed files with 1159 additions and 340 deletions

15
pom.xml
View File

@ -4,12 +4,12 @@
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>br.com.rjconsultores</groupId> <groupId>br.com.rjconsultores</groupId>
<artifactId>ventaboletosadm</artifactId> <artifactId>ventaboletosadm</artifactId>
<version>1.27.2</version> <version>1.33.0</version>
<packaging>war</packaging> <packaging>war</packaging>
<properties> <properties>
<modelWeb.version>1.20.0</modelWeb.version> <modelWeb.version>1.24.0</modelWeb.version>
<flyway.version>1.17.0</flyway.version> <flyway.version>1.20.0</flyway.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
</properties> </properties>
@ -32,6 +32,15 @@
</excludes> </excludes>
</resource> </resource>
</resources> </resources>
<testSourceDirectory>tests</testSourceDirectory>
<testResources>
<testResource>
<directory>tests</directory>
<excludes>
<exclude>**/*.java</exclude>
</excludes>
</testResource>
</testResources>
<plugins> <plugins>
<plugin> <plugin>
<artifactId>maven-compiler-plugin</artifactId> <artifactId>maven-compiler-plugin</artifactId>

View File

@ -17,7 +17,9 @@ import java.util.Map;
import com.rjconsultores.ventaboletos.relatorios.utilitarios.DataSource; import com.rjconsultores.ventaboletos.relatorios.utilitarios.DataSource;
import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio; import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio;
import com.rjconsultores.ventaboletos.relatorios.utilitarios.RelatorioResumoLinhasBean; 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.NamedParameterStatement;
import com.rjconsultores.ventaboletos.web.utilerias.spring.AppContext;
import net.sf.jasperreports.engine.data.JRBeanCollectionDataSource; import net.sf.jasperreports.engine.data.JRBeanCollectionDataSource;
@ -28,6 +30,7 @@ import net.sf.jasperreports.engine.data.JRBeanCollectionDataSource;
public class RelatorioResumoLinhasAnaliticoSimplificadoSumarizado extends Relatorio { public class RelatorioResumoLinhasAnaliticoSimplificadoSumarizado extends Relatorio {
private List<RelatorioResumoLinhasBean> lsDadosRelatorio; private List<RelatorioResumoLinhasBean> lsDadosRelatorio;
private static String CONSTANTE_GRATUIDADE_CRIANCA;
/** /**
* @param parametros * @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 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 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; 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); String sql = getSql(rutaId, grupoRutaId);
NamedParameterStatement stmt = new NamedParameterStatement(conexao, sql); NamedParameterStatement stmt = new NamedParameterStatement(conexao, sql);
@ -66,6 +69,7 @@ public class RelatorioResumoLinhasAnaliticoSimplificadoSumarizado extends Relato
stmt.setInt("GRUPORUTA_ID", grupoRutaId); stmt.setInt("GRUPORUTA_ID", grupoRutaId);
} }
stmt.setInt("EMPRESA_ID", empresaId.intValue()); stmt.setInt("EMPRESA_ID", empresaId.intValue());
stmt.setString("CRIANCA_ID",CONSTANTE_GRATUIDADE_CRIANCA);
rset = stmt.executeQuery(); rset = stmt.executeQuery();
lsDadosRelatorio = new ArrayList<RelatorioResumoLinhasBean>(); lsDadosRelatorio = new ArrayList<RelatorioResumoLinhasBean>();
@ -218,7 +222,7 @@ public class RelatorioResumoLinhasAnaliticoSimplificadoSumarizado extends Relato
sql.append(" AND co.feccorrida = bo.feccorrida "); sql.append(" AND co.feccorrida = bo.feccorrida ");
sql.append(" AND bo.activo = 1 "); sql.append(" AND bo.activo = 1 ");
sql.append(" AND ( bo.motivocancelacion_id IS NULL "); 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(" GROUP BY ");
sql.append(" co.feccorrida, "); sql.append(" co.feccorrida, ");
sql.append(" co.ruta_id, "); sql.append(" co.ruta_id, ");
@ -345,7 +349,7 @@ public class RelatorioResumoLinhasAnaliticoSimplificadoSumarizado extends Relato
sql.append(" AND vt.activo = 1 "); sql.append(" AND vt.activo = 1 ");
sql.append(" AND cr.feccorrida BETWEEN vt.feciniciovigencia AND vt.fecfinvigencia "); 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(" 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(" AND cr.activo = 1 ");
sql.append(" GROUP BY "); sql.append(" GROUP BY ");
sql.append(" rt.ruta_id, "); sql.append(" rt.ruta_id, ");
@ -493,4 +497,8 @@ public class RelatorioResumoLinhasAnaliticoSimplificadoSumarizado extends Relato
return relatorioBean; 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.DataSource;
import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio; import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio;
import com.rjconsultores.ventaboletos.relatorios.utilitarios.RelatorioResumoLinhasBean; 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.NamedParameterStatement;
import com.rjconsultores.ventaboletos.web.utilerias.spring.AppContext;
import net.sf.jasperreports.engine.data.JRBeanCollectionDataSource; import net.sf.jasperreports.engine.data.JRBeanCollectionDataSource;
@ -29,6 +31,7 @@ import net.sf.jasperreports.engine.data.JRBeanCollectionDataSource;
public class RelatorioResumoLinhasAnaliticoSumarizado extends Relatorio { public class RelatorioResumoLinhasAnaliticoSumarizado extends Relatorio {
private List<RelatorioResumoLinhasBean> lsDadosRelatorio; private List<RelatorioResumoLinhasBean> lsDadosRelatorio;
private static String CONSTANTE_GRATUIDADE_CRIANCA;
/** /**
* @param parametros * @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 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 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; 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); String sql = getSql(rutaId, grupoRutaId);
NamedParameterStatement stmt = new NamedParameterStatement(conexao, sql); NamedParameterStatement stmt = new NamedParameterStatement(conexao, sql);
@ -67,6 +70,7 @@ public class RelatorioResumoLinhasAnaliticoSumarizado extends Relatorio {
stmt.setInt("GRUPORUTA_ID", grupoRutaId); stmt.setInt("GRUPORUTA_ID", grupoRutaId);
} }
stmt.setInt("EMPRESA_ID", empresaId.intValue()); stmt.setInt("EMPRESA_ID", empresaId.intValue());
stmt.setString("CRIANCA_ID",CONSTANTE_GRATUIDADE_CRIANCA);
rset = stmt.executeQuery(); rset = stmt.executeQuery();
lsDadosRelatorio = new ArrayList<RelatorioResumoLinhasBean>(); lsDadosRelatorio = new ArrayList<RelatorioResumoLinhasBean>();
@ -150,7 +154,7 @@ public class RelatorioResumoLinhasAnaliticoSumarizado extends Relatorio {
sqlSb.append(" AND CO.FECCORRIDA = BO.FECCORRIDA "); sqlSb.append(" AND CO.FECCORRIDA = BO.FECCORRIDA ");
sqlSb.append(" AND BO.ACTIVO = 1 "); sqlSb.append(" AND BO.ACTIVO = 1 ");
sqlSb.append(" AND (BO.MOTIVOCANCELACION_ID IS NULL "); 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(" GROUP BY CO.FECCORRIDA, ");
sqlSb.append(" CO.RUTA_ID, "); sqlSb.append(" CO.RUTA_ID, ");
sqlSb.append(" BO.PRECIOBASE, "); sqlSb.append(" BO.PRECIOBASE, ");
@ -254,7 +258,7 @@ public class RelatorioResumoLinhasAnaliticoSumarizado extends Relatorio {
sqlSb.append(" AND RT.GRUPORUTA_ID = GR.GRUPORUTA_ID(+) "); sqlSb.append(" AND RT.GRUPORUTA_ID = GR.GRUPORUTA_ID(+) ");
sqlSb.append(" AND TR.ORIGEN_ID = CR.ORIGEN_ID "); sqlSb.append(" AND TR.ORIGEN_ID = CR.ORIGEN_ID ");
sqlSb.append(" AND TR.DESTINO_ID = CR.DESTINO_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 BL.INDSTATUSOPERACION = 'F' ");
sqlSb.append(" AND VT.ACTIVO = 1 "); sqlSb.append(" AND VT.ACTIVO = 1 ");
sqlSb.append(" AND CR.FECCORRIDA BETWEEN VT.FECINICIOVIGENCIA AND VT.FECFINVIGENCIA "); 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.setCollectionDataSource(new JRBeanCollectionDataSource(lsDadosRelatorio));
this.lsDadosRelatorio = lsDadosRelatorio; this.lsDadosRelatorio = lsDadosRelatorio;
} }
private String buscarConstante(String nomeConstante) {
ConstanteService constanteService = (ConstanteService) AppContext.getApplicationContext().getBean("constanteService");
return constanteService.buscarPorNomeConstante(nomeConstante).getValorconstante();
}
@Override @Override

View File

@ -2,7 +2,7 @@
<jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="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"> <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.zoom" value="2.000000000000002"/>
<property name="ireport.x" value="0"/> <property name="ireport.x" value="0"/>
<property name="ireport.y" value="57"/> <property name="ireport.y" value="0"/>
<style name="textStyle" isDefault="true" fontSize="6" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false"/> <style name="textStyle" isDefault="true" fontSize="6" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false"/>
<style name="table"> <style name="table">
<box> <box>
@ -37,6 +37,7 @@
<parameter name="GRUPORUTA_ID" class="java.lang.Integer"/> <parameter name="GRUPORUTA_ID" class="java.lang.Integer"/>
<parameter name="DATA" class="java.util.Date"/> <parameter name="DATA" class="java.util.Date"/>
<parameter name="NOME_USUARIO" class="java.lang.String"/> <parameter name="NOME_USUARIO" class="java.lang.String"/>
<parameter name="CRIANCA_ID" class="java.lang.String"/>
<queryString> <queryString>
<![CDATA[SELECT TAB.*, <![CDATA[SELECT TAB.*,
ROUND((SELECT SUM((DECODE(NVL(TR.CANTKMREAL,0), 0, 1, NVL(TR.CANTKMREAL,0)) / ROUND((SELECT SUM((DECODE(NVL(TR.CANTKMREAL,0), 0, 1, NVL(TR.CANTKMREAL,0)) /
@ -69,7 +70,7 @@
CTD.NUMSECUENCIA CTD.NUMSECUENCIA
AND BO.ACTIVO = 1 AND BO.ACTIVO = 1
AND (BO.MOTIVOCANCELACION_ID IS NULL OR 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), GROUP BY CT.TRAMO_ID, TR.CANTKMREAL),
2) * TAB.EXTENSAO_KM PAX_KM 2) * TAB.EXTENSAO_KM PAX_KM
FROM (SELECT RT.INDSENTIDOIDA, CR.FECCORRIDA, FROM (SELECT RT.INDSENTIDOIDA, CR.FECCORRIDA,
@ -134,53 +135,53 @@ WHERE NVL(TAB.EXTENSAO_KM,0) != 0]]>
<groupHeader> <groupHeader>
<band height="31"> <band height="31">
<staticText> <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> <textElement>
<font size="8" isBold="true"/> <font size="8" isBold="true"/>
</textElement> </textElement>
<text><![CDATA[Data]]></text> <text><![CDATA[Data]]></text>
</staticText> </staticText>
<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"> <textElement textAlignment="Right">
<font size="8" isBold="true"/> <font size="8" isBold="true"/>
</textElement> </textElement>
<text><![CDATA[Passageiros]]></text> <text><![CDATA[Passageiros]]></text>
</staticText> </staticText>
<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"> <textElement textAlignment="Right">
<font size="8" isBold="true"/> <font size="8" isBold="true"/>
</textElement> </textElement>
<text><![CDATA[Viagens]]></text> <text><![CDATA[Viagens]]></text>
</staticText> </staticText>
<textField> <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"> <textElement verticalAlignment="Bottom">
<font size="9" isBold="true"/> <font size="9" isBold="true"/>
</textElement> </textElement>
<textFieldExpression><![CDATA["Linha: "]]></textFieldExpression> <textFieldExpression><![CDATA["Linha: "]]></textFieldExpression>
</textField> </textField>
<line> <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> <graphicElement>
<pen lineWidth="0.5"/> <pen lineWidth="0.5"/>
</graphicElement> </graphicElement>
</line> </line>
<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> <graphicElement>
<pen lineWidth="0.5"/> <pen lineWidth="0.5"/>
</graphicElement> </graphicElement>
</line> </line>
<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> <graphicElement>
<pen lineWidth="0.5"/> <pen lineWidth="0.5"/>
</graphicElement> </graphicElement>
</line> </line>
<staticText> <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"> <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"/> <font fontName="SansSerif" size="8" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/> <paragraph lineSpacing="Single"/>
@ -188,7 +189,7 @@ WHERE NVL(TAB.EXTENSAO_KM,0) != 0]]>
<text><![CDATA[KM Rodados]]></text> <text><![CDATA[KM Rodados]]></text>
</staticText> </staticText>
<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"> <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"/> <font fontName="SansSerif" size="8" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/> <paragraph lineSpacing="Single"/>
@ -196,49 +197,49 @@ WHERE NVL(TAB.EXTENSAO_KM,0) != 0]]>
<text><![CDATA[PAX. KM]]></text> <text><![CDATA[PAX. KM]]></text>
</staticText> </staticText>
<textField> <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"> <textElement verticalAlignment="Bottom">
<font size="7"/> <font size="7"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$F{NUMRUTA}+" - "+$F{DESCRUTA}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{NUMRUTA}+" - "+$F{DESCRUTA}]]></textFieldExpression>
</textField> </textField>
<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"> <textElement textAlignment="Right" verticalAlignment="Bottom">
<font size="9" isBold="true"/> <font size="9" isBold="true"/>
</textElement> </textElement>
<textFieldExpression><![CDATA["Extensão: "]]></textFieldExpression> <textFieldExpression><![CDATA["Extensão: "]]></textFieldExpression>
</textField> </textField>
<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"> <textElement verticalAlignment="Bottom">
<font size="7"/> <font size="7"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[new java.text.DecimalFormat("###0.00").format($F{EXTENSAO_KM})]]></textFieldExpression> <textFieldExpression><![CDATA[new java.text.DecimalFormat("###0.00").format($F{EXTENSAO_KM})]]></textFieldExpression>
</textField> </textField>
<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"> <textElement textAlignment="Right" verticalAlignment="Bottom">
<font size="9" isBold="true"/> <font size="9" isBold="true"/>
</textElement> </textElement>
<textFieldExpression><![CDATA["Empresa: "]]></textFieldExpression> <textFieldExpression><![CDATA["Empresa: "]]></textFieldExpression>
</textField> </textField>
<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"> <textElement verticalAlignment="Bottom">
<font size="7"/> <font size="7"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$P{EMPRESA}]]></textFieldExpression> <textFieldExpression><![CDATA[$P{EMPRESA}]]></textFieldExpression>
</textField> </textField>
<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"> <textElement textAlignment="Right" verticalAlignment="Bottom">
<font size="9" isBold="true"/> <font size="9" isBold="true"/>
</textElement> </textElement>
<textFieldExpression><![CDATA["Sentido: "]]></textFieldExpression> <textFieldExpression><![CDATA["Sentido: "]]></textFieldExpression>
</textField> </textField>
<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"> <textElement verticalAlignment="Bottom">
<font size="7"/> <font size="7"/>
</textElement> </textElement>
@ -249,34 +250,34 @@ WHERE NVL(TAB.EXTENSAO_KM,0) != 0]]>
<groupFooter> <groupFooter>
<band height="20"> <band height="20">
<textField> <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"> <textElement textAlignment="Right">
<font size="8" isBold="true"/> <font size="8" isBold="true"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$V{PASSAGEIROS_1}]]></textFieldExpression> <textFieldExpression><![CDATA[$V{PASSAGEIROS_1}]]></textFieldExpression>
</textField> </textField>
<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"> <textElement textAlignment="Right">
<font size="8" isBold="true"/> <font size="8" isBold="true"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$V{VIAGENS_1}]]></textFieldExpression> <textFieldExpression><![CDATA[$V{VIAGENS_1}]]></textFieldExpression>
</textField> </textField>
<line> <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> <graphicElement>
<pen lineWidth="0.5"/> <pen lineWidth="0.5"/>
</graphicElement> </graphicElement>
</line> </line>
<textField pattern="#,##0.00"> <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"> <textElement textAlignment="Right">
<font size="8" isBold="true"/> <font size="8" isBold="true"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$V{EXTENSAO_1}]]></textFieldExpression> <textFieldExpression><![CDATA[$V{EXTENSAO_1}]]></textFieldExpression>
</textField> </textField>
<textField pattern="#,##0.00" isBlankWhenNull="false"> <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"> <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"/> <font fontName="SansSerif" size="8" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/> <paragraph lineSpacing="Single"/>
@ -284,7 +285,7 @@ WHERE NVL(TAB.EXTENSAO_KM,0) != 0]]>
<textFieldExpression><![CDATA[$V{PAX_KM_1}]]></textFieldExpression> <textFieldExpression><![CDATA[$V{PAX_KM_1}]]></textFieldExpression>
</textField> </textField>
<staticText> <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> <textElement>
<font size="8" isBold="true"/> <font size="8" isBold="true"/>
</textElement> </textElement>
@ -299,7 +300,7 @@ WHERE NVL(TAB.EXTENSAO_KM,0) != 0]]>
<pageHeader> <pageHeader>
<band height="66" splitType="Stretch"> <band height="66" splitType="Stretch">
<textField pattern="" isBlankWhenNull="false"> <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"> <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"/> <font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/> <paragraph lineSpacing="Single"/>
@ -307,7 +308,7 @@ WHERE NVL(TAB.EXTENSAO_KM,0) != 0]]>
<textFieldExpression><![CDATA[$P{NOME_RELATORIO}]]></textFieldExpression> <textFieldExpression><![CDATA[$P{NOME_RELATORIO}]]></textFieldExpression>
</textField> </textField>
<textField pattern="" isBlankWhenNull="false"> <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"> <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"/> <font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/> <paragraph lineSpacing="Single"/>
@ -315,7 +316,7 @@ WHERE NVL(TAB.EXTENSAO_KM,0) != 0]]>
<textFieldExpression><![CDATA[$R{cabecalho.periodo}]]></textFieldExpression> <textFieldExpression><![CDATA[$R{cabecalho.periodo}]]></textFieldExpression>
</textField> </textField>
<textField pattern="dd/MM/yyyy" isBlankWhenNull="false"> <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"> <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"/> <font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/> <paragraph lineSpacing="Single"/>
@ -323,7 +324,7 @@ WHERE NVL(TAB.EXTENSAO_KM,0) != 0]]>
<textFieldExpression><![CDATA[$P{DATA_INICIAL}]]></textFieldExpression> <textFieldExpression><![CDATA[$P{DATA_INICIAL}]]></textFieldExpression>
</textField> </textField>
<textField pattern="dd/MM/yyyy" isBlankWhenNull="false"> <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"> <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"/> <font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/> <paragraph lineSpacing="Single"/>
@ -331,7 +332,7 @@ WHERE NVL(TAB.EXTENSAO_KM,0) != 0]]>
<textFieldExpression><![CDATA[$P{DATA_FINAL}]]></textFieldExpression> <textFieldExpression><![CDATA[$P{DATA_FINAL}]]></textFieldExpression>
</textField> </textField>
<textField pattern="" isBlankWhenNull="false"> <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"> <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"/> <font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/> <paragraph lineSpacing="Single"/>
@ -339,7 +340,7 @@ WHERE NVL(TAB.EXTENSAO_KM,0) != 0]]>
<textFieldExpression><![CDATA[$R{cabecalho.periodoA}]]></textFieldExpression> <textFieldExpression><![CDATA[$R{cabecalho.periodoA}]]></textFieldExpression>
</textField> </textField>
<textField pattern="" isBlankWhenNull="false"> <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"> <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"/> <font fontName="SansSerif" size="12" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/> <paragraph lineSpacing="Single"/>
@ -347,7 +348,7 @@ WHERE NVL(TAB.EXTENSAO_KM,0) != 0]]>
<textFieldExpression><![CDATA[$P{EMPRESA}]]></textFieldExpression> <textFieldExpression><![CDATA[$P{EMPRESA}]]></textFieldExpression>
</textField> </textField>
<textField pattern="dd/MM/yyyy HH:mm" isBlankWhenNull="false"> <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"> <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"/> <font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/> <paragraph lineSpacing="Single"/>
@ -355,14 +356,14 @@ WHERE NVL(TAB.EXTENSAO_KM,0) != 0]]>
<textFieldExpression><![CDATA[new java.util.Date()]]></textFieldExpression> <textFieldExpression><![CDATA[new java.util.Date()]]></textFieldExpression>
</textField> </textField>
<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> <textElement>
<font size="9" isBold="true"/> <font size="9" isBold="true"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$R{cabecalho.dataHora}]]></textFieldExpression> <textFieldExpression><![CDATA[$R{cabecalho.dataHora}]]></textFieldExpression>
</textField> </textField>
<textField pattern="" isBlankWhenNull="false"> <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"> <textElement verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/> <font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/> <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> <textFieldExpression><![CDATA[$R{cabecalho.impressorPor}+" "+$P{USUARIO}+"-"+$P{NOME_USUARIO}]]></textFieldExpression>
</textField> </textField>
<textField pattern="" isBlankWhenNull="false"> <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"> <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"/> <font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/> <paragraph lineSpacing="Single"/>
@ -378,14 +379,14 @@ WHERE NVL(TAB.EXTENSAO_KM,0) != 0]]>
<textFieldExpression><![CDATA[$R{cabecalho.filtros}]]></textFieldExpression> <textFieldExpression><![CDATA[$R{cabecalho.filtros}]]></textFieldExpression>
</textField> </textField>
<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> <textElement>
<font size="8"/> <font size="8"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$P{FILTROS}]]></textFieldExpression> <textFieldExpression><![CDATA[$P{FILTROS}]]></textFieldExpression>
</textField> </textField>
<textField pattern="" isBlankWhenNull="false"> <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"> <textElement verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/> <font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/> <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> <textFieldExpression><![CDATA[$R{cabecalho.pagina}+" "+$V{PAGE_NUMBER}+" "+$R{cabecalho.de}]]></textFieldExpression>
</textField> </textField>
<textField evaluationTime="Report" pattern="" isBlankWhenNull="false"> <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"> <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"/> <font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/> <paragraph lineSpacing="Single"/>
@ -405,21 +406,21 @@ WHERE NVL(TAB.EXTENSAO_KM,0) != 0]]>
<detail> <detail>
<band height="13"> <band height="13">
<textField pattern="dd/MM/yyyy"> <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> <textElement>
<font size="8"/> <font size="8"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$F{FECCORRIDA}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{FECCORRIDA}]]></textFieldExpression>
</textField> </textField>
<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"> <textElement textAlignment="Right">
<font size="8"/> <font size="8"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$F{PASSAGEIROS}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{PASSAGEIROS}]]></textFieldExpression>
</textField> </textField>
<textField pattern="#,##0.00" isBlankWhenNull="false"> <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"> <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"/> <font fontName="SansSerif" size="8" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/> <paragraph lineSpacing="Single"/>
@ -427,14 +428,14 @@ WHERE NVL(TAB.EXTENSAO_KM,0) != 0]]>
<textFieldExpression><![CDATA[$F{PAX_KM}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{PAX_KM}]]></textFieldExpression>
</textField> </textField>
<textField pattern="#,##0.00"> <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"> <textElement textAlignment="Right">
<font size="8"/> <font size="8"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$F{VIAGENS}.multiply($F{EXTENSAO_KM})]]></textFieldExpression> <textFieldExpression><![CDATA[$F{VIAGENS}.multiply($F{EXTENSAO_KM})]]></textFieldExpression>
</textField> </textField>
<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"> <textElement textAlignment="Right">
<font size="8"/> <font size="8"/>
</textElement> </textElement>
@ -445,7 +446,7 @@ WHERE NVL(TAB.EXTENSAO_KM,0) != 0]]>
<noData> <noData>
<band height="39"> <band height="39">
<textField> <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"> <textElement textAlignment="Center" markup="none">
<font size="11" isBold="true"/> <font size="11" isBold="true"/>
</textElement> </textElement>

View File

@ -135,6 +135,7 @@ import com.rjconsultores.ventaboletos.web.utilerias.render.RenderComEmpTipoEvent
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderEmpresaContaBancaria; import com.rjconsultores.ventaboletos.web.utilerias.render.RenderEmpresaContaBancaria;
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderEmpresaImposto; import com.rjconsultores.ventaboletos.web.utilerias.render.RenderEmpresaImposto;
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderEmpresaInscricaoEstadual; import com.rjconsultores.ventaboletos.web.utilerias.render.RenderEmpresaInscricaoEstadual;
import com.rjconsultores.ventaboletos.web.utilerias.security.SecurityEmpresaToken;
/** /**
* *
@ -467,6 +468,12 @@ public class EditarEmpresaController extends MyGenericForwardComposer {
private Textbox txtLatitude; private Textbox txtLatitude;
private Textbox txtLongitude; private Textbox txtLongitude;
private Textbox txtTokenRJ;
private Textbox txtLicenca;
private Button btnDigitarLicenca;
private Button btnValidarLicenca;
private boolean cadastroEmpresaNova = false;
private static final String EMAIL_PATTERN = "^[_A-Za-z0-9-\\+]+(\\.[_A-Za-z0-9-]+)*@" private static final String EMAIL_PATTERN = "^[_A-Za-z0-9-\\+]+(\\.[_A-Za-z0-9-]+)*@"
+ "[A-Za-z0-9-]+(\\.[A-Za-z0-9]+)*(\\.[A-Za-z]{2,})$"; + "[A-Za-z0-9-]+(\\.[A-Za-z0-9]+)*(\\.[A-Za-z]{2,})$";
@ -519,6 +526,8 @@ public class EditarEmpresaController extends MyGenericForwardComposer {
btnAdicionarEstadoImposto.setVisible(false); btnAdicionarEstadoImposto.setVisible(false);
btnAdicionarInscEstadual.setVisible(false); btnAdicionarInscEstadual.setVisible(false);
cadastroEmpresaNova = true;
} else { } else {
btnAdicionarEstadoImposto.setVisible(true); btnAdicionarEstadoImposto.setVisible(true);
btnAdicionarInscEstadual.setVisible(true); btnAdicionarInscEstadual.setVisible(true);
@ -826,6 +835,28 @@ public class EditarEmpresaController extends MyGenericForwardComposer {
ajustarRadioAbaRateioComissao(); ajustarRadioAbaRateioComissao();
} }
public void onClick$btnDigitarLicenca(Event ev) {
txtLicenca.setDisabled(false);
}
public void onClick$btnValidarLicenca(Event ev) throws InterruptedException {
String tokenLicensa = empresaService.validarTokenLicensa(empresa,txtLicenca.getText());
if (StringUtils.isNotBlank(tokenLicensa)){
txtLicenca.setText(tokenLicensa);
txtLicenca.setDisabled(true);
btnValidarLicenca.setDisabled(true);
btnDigitarLicenca.setDisabled(true);
empresa.setLicenca(tokenLicensa);
Messagebox.show(Labels.getLabel("editarEmpresaController.MSG.licencaOK"),
Labels.getLabel("editarEmpresaController.window.title"), Messagebox.OK, Messagebox.INFORMATION);
}else{
txtLicenca.setText("");
Messagebox.show(Labels.getLabel("editarEmpresaController.MSG.licencaNOK"),
Labels.getLabel("editarEmpresaController.window.title"), Messagebox.OK, Messagebox.ERROR);
}
}
public void onClick$chkAutenticacao(Event ev) { public void onClick$chkAutenticacao(Event ev) {
if(chkAutenticacao.isChecked()){ if(chkAutenticacao.isChecked()){
textEmail.setDisabled(false); textEmail.setDisabled(false);
@ -901,6 +932,10 @@ public class EditarEmpresaController extends MyGenericForwardComposer {
Labels.getLabel("editarEmpresaController.contaBancaria.window.title"), args, MyGenericForwardComposer.MODAL); Labels.getLabel("editarEmpresaController.contaBancaria.window.title"), args, MyGenericForwardComposer.MODAL);
} }
public void onClick$btnGerarToken(Event ev) throws InterruptedException {
txtTokenRJ.setText(empresaService.token(empresa));
}
public void onClick$btnSalvar(Event ev) throws InterruptedException { public void onClick$btnSalvar(Event ev) throws InterruptedException {
txtNome.getValue(); txtNome.getValue();
cmbIndTipo.getValue(); cmbIndTipo.getValue();
@ -1268,6 +1303,25 @@ public class EditarEmpresaController extends MyGenericForwardComposer {
Labels.getLabel("editarEmpresaController.window.title"), Labels.getLabel("editarEmpresaController.window.title"),
Messagebox.OK, Messagebox.INFORMATION); Messagebox.OK, Messagebox.INFORMATION);
if (cadastroEmpresaNova){
Messagebox.show(
Labels.getLabel("editarEmpresaController.MSG.tokenNovaEmpresaOK", new String[] {empresa.getToken()}),
Labels.getLabel("editarEmpresaController.window.title"),
Messagebox.OK, Messagebox.EXCLAMATION);
}else{
List<Empresa> lsEmpresa = Arrays.asList(new Empresa[]{empresa});
if (empresaService.filtrarApenasEmpresasLicencaValida(lsEmpresa).isEmpty()){
Messagebox.show(
Labels.getLabel("editarEmpresaController.MSG.licencaNOK"),
Labels.getLabel("editarEmpresaController.window.title"),
Messagebox.OK, Messagebox.EXCLAMATION);
}
}
closeWindow(); closeWindow();
} catch (Exception ex) { } catch (Exception ex) {
@ -2855,4 +2909,9 @@ public void onClick$btnTestEmailFlexBus(Event ev) throws InterruptedException {
public void setHoraFimEmbarque(Timebox horaFimEmbarque) { public void setHoraFimEmbarque(Timebox horaFimEmbarque) {
this.horaFimEmbarque = horaFimEmbarque; this.horaFimEmbarque = horaFimEmbarque;
} }
public boolean isExibeDadosTokenLicenca() {
return !cadastroEmpresaNova;
}
} }

View File

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

View File

@ -5,6 +5,7 @@
package com.rjconsultores.ventaboletos.web.gui.controladores.esquemaoperacional; package com.rjconsultores.ventaboletos.web.gui.controladores.esquemaoperacional;
import java.sql.Time; import java.sql.Time;
import java.util.ArrayList;
import java.util.Date; import java.util.Date;
import java.util.HashMap; import java.util.HashMap;
import java.util.Iterator; import java.util.Iterator;
@ -17,6 +18,7 @@ import org.springframework.stereotype.Controller;
import org.zkoss.util.resource.Labels; import org.zkoss.util.resource.Labels;
import org.zkoss.zhtml.Messagebox; import org.zkoss.zhtml.Messagebox;
import org.zkoss.zk.ui.Component; 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.Event;
import org.zkoss.zk.ui.event.EventListener; import org.zkoss.zk.ui.event.EventListener;
import org.zkoss.zk.ui.event.InputEvent; import org.zkoss.zk.ui.event.InputEvent;
@ -27,17 +29,21 @@ import org.zkoss.zul.Combobox;
import org.zkoss.zul.Comboitem; import org.zkoss.zul.Comboitem;
import org.zkoss.zul.Datebox; import org.zkoss.zul.Datebox;
import org.zkoss.zul.Intbox; import org.zkoss.zul.Intbox;
import org.zkoss.zul.Listheader;
import org.zkoss.zul.Paging; import org.zkoss.zul.Paging;
import org.zkoss.zul.Timebox; import org.zkoss.zul.Timebox;
import com.rjconsultores.ventaboletos.entidad.ClaseServicio; import com.rjconsultores.ventaboletos.entidad.ClaseServicio;
import com.rjconsultores.ventaboletos.entidad.Empresa; import com.rjconsultores.ventaboletos.entidad.Empresa;
import com.rjconsultores.ventaboletos.entidad.EsquemaCorrida; import com.rjconsultores.ventaboletos.entidad.EsquemaCorrida;
import com.rjconsultores.ventaboletos.entidad.HeaderTabelaEsquemaCorrida;
import com.rjconsultores.ventaboletos.entidad.Marca; import com.rjconsultores.ventaboletos.entidad.Marca;
import com.rjconsultores.ventaboletos.entidad.Ruta; import com.rjconsultores.ventaboletos.entidad.Ruta;
import com.rjconsultores.ventaboletos.service.ClaseServicioService; import com.rjconsultores.ventaboletos.service.ClaseServicioService;
import com.rjconsultores.ventaboletos.service.HeaderEsquemaCorridaService;
import com.rjconsultores.ventaboletos.service.MarcaService; import com.rjconsultores.ventaboletos.service.MarcaService;
import com.rjconsultores.ventaboletos.service.RutaService; import com.rjconsultores.ventaboletos.service.RutaService;
import com.rjconsultores.ventaboletos.service.TramoServicioService;
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado; import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer; import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
import com.rjconsultores.ventaboletos.web.utilerias.MyListbox; import com.rjconsultores.ventaboletos.web.utilerias.MyListbox;
@ -83,6 +89,156 @@ public class BusquedaCorridaController extends MyGenericForwardComposer {
private Checkbox chkCorridaCancelada; 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;
private Listheader listHeader16;
@Autowired
private HeaderEsquemaCorridaService headerService;
@Autowired
private TramoServicioService tramoServicioService;
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 Listheader getListHeader16() {
return listHeader16;
}
public void setListHeader16(Listheader listHeader16) {
this.listHeader16 = listHeader16;
}
public Combobox getCmbClase() { public Combobox getCmbClase() {
return cmbClase; return cmbClase;
} }
@ -240,7 +396,23 @@ public class BusquedaCorridaController extends MyGenericForwardComposer {
lsClase = claseService.obtenerTodos(); lsClase = claseService.obtenerTodos();
lsRuta = rutaService.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,16};
List<String> labelsList = new ArrayList<>();
private void criarListaDinamica() {
//Busca do banco as posicoes salvas
posicoesColunasTabela = headerService.buscarHeader();
esquemaCorridaList.setItemRenderer(new RenderConfiguracionCorrida(posicoesColunasTabela, tramoServicioService));
esquemaCorridaList.addEventListener("onDoubleClick", new EventListener() { esquemaCorridaList.addEventListener("onDoubleClick", new EventListener() {
@Override @Override
@ -250,10 +422,118 @@ public class BusquedaCorridaController extends MyGenericForwardComposer {
} }
}); });
btnPesquisa.focus(); iniciarListHeader(listHeader1);
cmbMarca.setSelectedItem(null); 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);
iniciarListHeader(listHeader16);
refreshLista(); criarListaDeLabels();
atualizaLabelsTabela();
}
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());
labelsList.add(listHeader16.getLabel());
}
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));
} else if ( i == 16) {
listHeader16.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, tramoServicioService));
esquemaCorridaList.renderAll();
atualizaLabelsTabela();
}
});
} }
private void verPeriodo(EsquemaCorrida rc) { private void verPeriodo(EsquemaCorrida rc) {

View File

@ -68,17 +68,21 @@ import com.rjconsultores.ventaboletos.entidad.RutaEmbarqueDesembarque;
import com.rjconsultores.ventaboletos.entidad.RutaSecuencia; import com.rjconsultores.ventaboletos.entidad.RutaSecuencia;
import com.rjconsultores.ventaboletos.entidad.Tramo; import com.rjconsultores.ventaboletos.entidad.Tramo;
import com.rjconsultores.ventaboletos.entidad.TramoServicio; import com.rjconsultores.ventaboletos.entidad.TramoServicio;
import com.rjconsultores.ventaboletos.service.AsientoExclusivoService;
import com.rjconsultores.ventaboletos.service.AutobusService; import com.rjconsultores.ventaboletos.service.AutobusService;
import com.rjconsultores.ventaboletos.service.BoletoService; import com.rjconsultores.ventaboletos.service.BoletoService;
import com.rjconsultores.ventaboletos.service.ClaseServicioService; import com.rjconsultores.ventaboletos.service.ClaseServicioService;
import com.rjconsultores.ventaboletos.service.ConstanteService; import com.rjconsultores.ventaboletos.service.ConstanteService;
import com.rjconsultores.ventaboletos.service.CorridaInfoService;
import com.rjconsultores.ventaboletos.service.CorridaService; import com.rjconsultores.ventaboletos.service.CorridaService;
import com.rjconsultores.ventaboletos.service.DisponibilidadService;
import com.rjconsultores.ventaboletos.service.DivisionService; import com.rjconsultores.ventaboletos.service.DivisionService;
import com.rjconsultores.ventaboletos.service.EmpresaService; import com.rjconsultores.ventaboletos.service.EmpresaService;
import com.rjconsultores.ventaboletos.service.EsquemaCorridaEmbarqueDesembarqueService; import com.rjconsultores.ventaboletos.service.EsquemaCorridaEmbarqueDesembarqueService;
import com.rjconsultores.ventaboletos.service.EsquemaCorridaInfoService; import com.rjconsultores.ventaboletos.service.EsquemaCorridaInfoService;
import com.rjconsultores.ventaboletos.service.EsquemaCorridaService; import com.rjconsultores.ventaboletos.service.EsquemaCorridaService;
import com.rjconsultores.ventaboletos.service.EsquemaTramoService; import com.rjconsultores.ventaboletos.service.EsquemaTramoService;
import com.rjconsultores.ventaboletos.service.IntegracaoTotvsService;
import com.rjconsultores.ventaboletos.service.MarcaClaseServicioService; import com.rjconsultores.ventaboletos.service.MarcaClaseServicioService;
import com.rjconsultores.ventaboletos.service.MarcaService; import com.rjconsultores.ventaboletos.service.MarcaService;
import com.rjconsultores.ventaboletos.service.RolOperativoService; import com.rjconsultores.ventaboletos.service.RolOperativoService;
@ -140,6 +144,14 @@ public class EditarCorridaController extends MyGenericForwardComposer {
@Autowired @Autowired
CorridaService corridaService; CorridaService corridaService;
@Autowired @Autowired
private CorridaInfoService corridaInfoService;
@Autowired
private AsientoExclusivoService asientoExclusivoService;
@Autowired
private DisponibilidadService disponibilidadService;
@Autowired
private IntegracaoTotvsService integracaoTotvsService;
@Autowired
BoletoService boletoService; BoletoService boletoService;
@Autowired @Autowired
private RutaEmbarqueDesembarqueService rutaEmbarqueDesembarqueService; private RutaEmbarqueDesembarqueService rutaEmbarqueDesembarqueService;
@ -1063,7 +1075,7 @@ public class EditarCorridaController extends MyGenericForwardComposer {
} }
try { try {
corridaService.borrar(corrida); apagarCorrida(corrida);
}catch (DataIntegrityViolationException e) { }catch (DataIntegrityViolationException e) {
if(e.getRootCause()!=null && e.getRootCause().getLocalizedMessage() !=null && e.getRootCause().getLocalizedMessage().contains("SYS_C004956867")) { if(e.getRootCause()!=null && e.getRootCause().getLocalizedMessage() !=null && e.getRootCause().getLocalizedMessage().contains("SYS_C004956867")) {
String msgErro = "Existe uma ocupação para esta corrida nesta data (tabela Disponibilidade). Corrida:" + corridaId + " data:" + DateUtil.getStringDate(dataIter); String msgErro = "Existe uma ocupação para esta corrida nesta data (tabela Disponibilidade). Corrida:" + corridaId + " data:" + DateUtil.getStringDate(dataIter);
@ -1086,6 +1098,14 @@ public class EditarCorridaController extends MyGenericForwardComposer {
return null; return null;
} }
private void apagarCorrida(Corrida corrida) {
corridaInfoService.borrarByCorrida(corrida);
asientoExclusivoService.borrarByCorrida(corrida);
disponibilidadService.borrarByCorrida(corrida);
integracaoTotvsService.borrarByCorrida(corrida);
corridaService.borrar(corrida);
}
private void salvaNovoEsquemaCorrida(Date dataDeFecInicioVigencia, List<EsquemaCorrida> lsEC) private void salvaNovoEsquemaCorrida(Date dataDeFecInicioVigencia, List<EsquemaCorrida> lsEC)
throws InterruptedException { throws InterruptedException {
Calendar agora = Calendar.getInstance(); Calendar agora = Calendar.getInstance();

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.RelatorioResumoLinhasAnaliticoSimplificadoSumarizado;
import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioResumoLinhasAnaliticoSumarizado; import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioResumoLinhasAnaliticoSumarizado;
import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio; import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio;
import com.rjconsultores.ventaboletos.service.ConstanteService;
import com.rjconsultores.ventaboletos.service.EmpresaService; import com.rjconsultores.ventaboletos.service.EmpresaService;
import com.rjconsultores.ventaboletos.service.GrupoRutaService; import com.rjconsultores.ventaboletos.service.GrupoRutaService;
import com.rjconsultores.ventaboletos.service.RutaService; 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.utilerias.UsuarioLogado;
import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar; import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar;
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer; 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 Radio rdAnalitico;
private Checkbox chcSumarizar; private Checkbox chcSumarizar;
private Checkbox chcSimplificadoSumarizado; private Checkbox chcSimplificadoSumarizado;
private static String CONSTANTE_GRATUIDADE_CRIANCA;
@ -93,6 +96,7 @@ public class RelatorioResumoLinhasController extends MyGenericForwardComposer {
parametros.put("NOME_RELATORIO", Labels.getLabel("relatorioResumoLinhasController.window.title")); parametros.put("NOME_RELATORIO", Labels.getLabel("relatorioResumoLinhasController.window.title"));
parametros.put("USUARIO", UsuarioLogado.getUsuarioLogado().getUsuarioId().toString()); parametros.put("USUARIO", UsuarioLogado.getUsuarioLogado().getUsuarioId().toString());
parametros.put("NOME_USUARIO", UsuarioLogado.getUsuarioLogado().getNombusuario()); parametros.put("NOME_USUARIO", UsuarioLogado.getUsuarioLogado().getNombusuario());
parametros.put("CRIANCA_ID", buscarConstante("GRATUIDADE_CRIANCA"));
Comboitem itemRuta = cmbRuta.getSelectedItem(); Comboitem itemRuta = cmbRuta.getSelectedItem();
@ -160,6 +164,11 @@ public class RelatorioResumoLinhasController extends MyGenericForwardComposer {
super.doAfterCompose(comp); super.doAfterCompose(comp);
} }
private String buscarConstante(String nomeConstante) {
ConstanteService constanteService = (ConstanteService) AppContext.getApplicationContext().getBean("constanteService");
return constanteService.buscarPorNomeConstante(nomeConstante).getValorconstante();
}
public List<Ruta> getLsRuta() { public List<Ruta> getLsRuta() {
return lsRuta; return lsRuta;
} }

View File

@ -30,6 +30,7 @@ import org.zkoss.zk.ui.WebApp;
import com.rjconsultores.ventaboletos.FlyWay; import com.rjconsultores.ventaboletos.FlyWay;
import com.rjconsultores.ventaboletos.entidad.Constante; import com.rjconsultores.ventaboletos.entidad.Constante;
import com.rjconsultores.ventaboletos.service.ConstanteService; import com.rjconsultores.ventaboletos.service.ConstanteService;
import com.rjconsultores.ventaboletos.service.EmpresaService;
import com.rjconsultores.ventaboletos.utilerias.ApplicationProperties; import com.rjconsultores.ventaboletos.utilerias.ApplicationProperties;
import com.rjconsultores.ventaboletos.web.gui.controladores.job.GeneracionConferenciaMovimentoJob; import com.rjconsultores.ventaboletos.web.gui.controladores.job.GeneracionConferenciaMovimentoJob;
import com.rjconsultores.ventaboletos.web.gui.controladores.job.GeneracionCorridaJob; import com.rjconsultores.ventaboletos.web.gui.controladores.job.GeneracionCorridaJob;
@ -106,6 +107,8 @@ public class MyAppInit implements org.zkoss.zk.ui.util.WebAppInit {
customToDatabase(); customToDatabase();
imageToDatabase(); imageToDatabase();
} }
this.atualizarLicencaPrimeiraVez();
} }
@ -435,4 +438,14 @@ public class MyAppInit implements org.zkoss.zk.ui.util.WebAppInit {
ConstanteService cs = (ConstanteService) factory.getBean("constanteService"); ConstanteService cs = (ConstanteService) factory.getBean("constanteService");
return cs; return cs;
} }
private void atualizarLicencaPrimeiraVez(){
ApplicationContext appContext = AppContext.getApplicationContext();
BeanFactory factory = (BeanFactory) appContext;
EmpresaService es = (EmpresaService) factory.getBean("empresaService");
Integer cantLicencaEmpresasPrimeiraVez = es.atualizarLicencaEmpresasPrimeiraVez();
log.info(String.format("cantLicencaEmpresasPrimeiraVez: %s", cantLicencaEmpresasPrimeiraVez));
}
} }

View File

@ -4,122 +4,367 @@
*/ */
package com.rjconsultores.ventaboletos.web.utilerias.render; package com.rjconsultores.ventaboletos.web.utilerias.render;
import com.rjconsultores.ventaboletos.entidad.EsquemaCorrida;
import java.text.SimpleDateFormat; import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Collections;
import java.util.Date;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.zkoss.util.resource.Labels; import org.zkoss.util.resource.Labels;
import org.zkoss.zul.Listcell; import org.zkoss.zul.Listcell;
import org.zkoss.zul.Listitem; import org.zkoss.zul.Listitem;
import org.zkoss.zul.ListitemRenderer; import org.zkoss.zul.ListitemRenderer;
import com.rjconsultores.ventaboletos.entidad.ClaseServicio;
import com.rjconsultores.ventaboletos.entidad.EsquemaCorrida;
import com.rjconsultores.ventaboletos.entidad.EsquemaTramo;
import com.rjconsultores.ventaboletos.entidad.ParadaEsquema;
import com.rjconsultores.ventaboletos.entidad.Tramo;
import com.rjconsultores.ventaboletos.entidad.TramoServicio;
import com.rjconsultores.ventaboletos.service.TramoServicioService;
import com.rjconsultores.ventaboletos.utilerias.DateUtil;
import com.rjconsultores.ventaboletos.utilerias.StringHelper;
/** /**
* *
* @author Rafius * @author Rafius
*/ */
public class RenderConfiguracionCorrida implements ListitemRenderer { public class RenderConfiguracionCorrida implements ListitemRenderer {
private Integer[] posicoes = null;
private SimpleDateFormat dt = new SimpleDateFormat("dd/MM/yy");
private TramoServicioService tramoServicioService;
public RenderConfiguracionCorrida(Integer[] posicoes, TramoServicioService tramoServicioService) {
super();
this.posicoes = posicoes;
this.tramoServicioService = tramoServicioService;
}
public RenderConfiguracionCorrida() {
super();
}
public void render(Listitem lstm, Object o) throws Exception { public void render(Listitem lstm, Object o) throws Exception {
EsquemaCorrida corrida = (EsquemaCorrida) o; EsquemaCorrida corrida = (EsquemaCorrida) o;
Listcell lc = new Listcell(corrida.getEsquemacorridaId().toString()); if(posicoes != null) {
lc.setParent(lstm); Listcell lc;
lc = new Listcell(corrida.getNumCorrida().toString()); for(Integer posicao : posicoes) {
lc.setParent(lstm); lc = buscarListCell(posicao, corrida);
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);
} else { } else {
SimpleDateFormat hr = new SimpleDateFormat("HH:mm"); Listcell lc = new Listcell(corrida.getEsquemacorridaId().toString());
lc = new Listcell(hr.format(corrida.getHorasalida()));
lc.setParent(lstm); 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 = new Listcell(corrida.getNumCorrida().toString());
lc.setParent(lstm); lc.setParent(lstm);
lc = new Listcell(corrida.getRuta().getIndSentidoIda() == true ? Labels.getLabel("editarCatalogoDeRutaController.radIda.value") : Labels.getLabel("editarCatalogoDeRutaController.radVolta.value")); lc = new Listcell(dt.format(corrida.getEsquemaOperacional().getFecniciovigencia()));
lc.setParent(lstm); lc.setParent(lstm);
// Marca lc = new Listcell(dt.format(corrida.getEsquemaOperacional().getFecfinvigencia()));
lc = new Listcell(corrida.getMarca().getDescmarca() == null ? "-" : corrida.getMarca().getDescmarca()); lc.setParent(lstm);
lc.setParent(lstm);
// Semana if (corrida.getHorasalida() == null) {
String l = (corrida.getIndlunes() == Boolean.TRUE) ? "S " : "- "; lc = new Listcell("-");
String ma = (corrida.getIndmartes() == Boolean.TRUE) ? "T " : "- "; lc.setParent(lstm);
String mi = (corrida.getIndmiercoles() == Boolean.TRUE) ? "Q " : "- "; } else {
String j = (corrida.getIndjueves() == Boolean.TRUE) ? "Q " : "- "; SimpleDateFormat hr = new SimpleDateFormat("HH:mm");
String v = (corrida.getIndviernes() == Boolean.TRUE) ? "S " : "- "; lc = new Listcell(hr.format(corrida.getHorasalida()));
String s = (corrida.getIndsabado() == Boolean.TRUE) ? "S " : "- "; lc.setParent(lstm);
String d = (corrida.getInddomingo() == Boolean.TRUE) ? "D " : "- "; }
// Ruta
lc = new Listcell(corrida.getRuta().getDescruta() == null ? "-" : corrida.getRuta().getDescruta());
lc.setParent(lstm);
lc = new Listcell(l + ma + mi + j + v + s + d); lc = new Listcell(corrida.getRuta().getNumRuta() == null ? "-" : corrida.getRuta().getNumRuta());
lc.setParent(lstm); lc.setParent(lstm);
// Clase lc = new Listcell(corrida.getRuta().getIndSentidoIda() == true ? Labels.getLabel("editarCatalogoDeRutaController.radIda.value") : Labels.getLabel("editarCatalogoDeRutaController.radVolta.value"));
try {
lc = new Listcell(corrida.getClaseServicio().getDescclase() == null ? "-" : corrida.getClaseServicio().getDescclase());
lc.setParent(lstm); lc.setParent(lstm);
} catch (Exception e) {
lc = new Listcell("-");
lc.setParent(lstm);
}
// EmpC // Marca
try { lc = new Listcell(corrida.getMarca().getDescmarca() == null ? "-" : corrida.getMarca().getDescmarca());
lc = new Listcell(corrida.getEmpresa().getNombempresa() == null ? "-" : corrida.getEmpresa().getNombempresa());
lc.setParent(lstm); lc.setParent(lstm);
} catch (Exception e) {
lc = new Listcell("-");
lc.setParent(lstm);
}
// EmpI // Semana
try { String l = (corrida.getIndlunes() == Boolean.TRUE) ? "S " : "- ";
lc = new Listcell(corrida.getEmpresa1().getNombempresa() == null ? "-" : corrida.getEmpresa1().getNombempresa()); String ma = (corrida.getIndmartes() == Boolean.TRUE) ? "T " : "- ";
lc.setParent(lstm); String mi = (corrida.getIndmiercoles() == Boolean.TRUE) ? "Q " : "- ";
} catch (Exception e) { String j = (corrida.getIndjueves() == Boolean.TRUE) ? "Q " : "- ";
lc = new Listcell("-"); String v = (corrida.getIndviernes() == Boolean.TRUE) ? "S " : "- ";
lc.setParent(lstm); String s = (corrida.getIndsabado() == Boolean.TRUE) ? "S " : "- ";
} String d = (corrida.getInddomingo() == Boolean.TRUE) ? "D " : "- ";
// RolOperativo lc = new Listcell(l + ma + mi + j + v + s + d);
try {
lc = new Listcell(corrida.getRolOperativo().getDescroloperativo() == null ? "-" : corrida.getRolOperativo().getDescroloperativo());
lc.setParent(lstm); lc.setParent(lstm);
} catch (Exception e) {
lc = new Listcell("-");
lc.setParent(lstm);
}
// Status // Clase
if (corrida.getStatusCorrida() == null) { try {
lc = new Listcell("-"); lc = new Listcell(corrida.getClaseServicio().getDescclase() == null ? "-" : corrida.getClaseServicio().getDescclase());
lc.setParent(lstm); lc.setParent(lstm);
} else if (corrida.getStatusCorrida().equals("L")) { } catch (Exception e) {
lc = new Listcell("LATENTE"); lc = new Listcell("-");
lc.setParent(lstm); lc.setParent(lstm);
} else if (corrida.getStatusCorrida().equals("A")) { }
lc = new Listcell("AUTORIZADA");
lc.setParent(lstm); // EmpC
} else { try {
lc = new Listcell("CANCELADA"); lc = new Listcell(corrida.getEmpresa().getNombempresa() == null ? "-" : corrida.getEmpresa().getNombempresa());
lc.setParent(lstm); 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); 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;
case 16:
// hora de chegada
Date horaSaida = corrida.getHorasalida();
if(horaSaida == null) {
lc = new Listcell("");
} else {
List<EsquemaTramo> lsEsquemaTramo = corrida.getEsquemaTramoList();
//Colocar em ordem de sequencia
Collections.sort(lsEsquemaTramo);
ClaseServicio clase = corrida.getClaseServicio();
Calendar c = Calendar.getInstance();
c.setTime(horaSaida);
long minutosPartida = c.get(Calendar.MINUTE);
int horaPartida = c.get(Calendar.HOUR_OF_DAY);
Long tempoLocalidade = 0l;
for (int i = 0; i < lsEsquemaTramo.size(); i++) {
EsquemaTramo rs = lsEsquemaTramo.get(i);
if(!rs.getActivo()) {
continue;
}
Tramo tramo = rs.getTramo();
Date tiempoEstancia = null;
if ((i != 0) && (i != (lsEsquemaTramo.size()))) {
tiempoEstancia = lsEsquemaTramo.get(i).getTiempoEstancia();
}
Date excepcionRecorrido = null;
if (i != (lsEsquemaTramo.size())) {
excepcionRecorrido = lsEsquemaTramo.get(i).getExcepcionRecorrido();
}
Date defautRecorrido = null;
if (clase != null) {
List<TramoServicio> lsTramoServicio = tramoServicioService.buscarPorTramoServico(tramo, clase);
if (i != (lsEsquemaTramo.size())) {
if (!lsTramoServicio.isEmpty()) {
// soh eh permitido gravar um por classe, get(0):
defautRecorrido = lsTramoServicio.get(0).getTiemporecorrido();
}
}
}
Long tempoPadrao = 0l;
Long tempoParada = 0l;
if (excepcionRecorrido != null) {
tempoPadrao = getMinutos(excepcionRecorrido);
} else {
if (defautRecorrido != null) {
tempoPadrao = getMinutos(defautRecorrido);
}
}
if (tiempoEstancia != null) {
tempoParada = getMinutos(tiempoEstancia);
}
tempoLocalidade += (tempoPadrao + tempoParada);
}
int horasLocalidade = (tempoLocalidade.intValue() / 60) + horaPartida;
long minutosLocalidade = (tempoLocalidade % 60) + minutosPartida;
while(minutosLocalidade >= 60){
horasLocalidade +=1;
minutosLocalidade -= 60;
}
while(horasLocalidade >= 24){
horasLocalidade -= 24;
}
if(horasLocalidade == 0 && minutosLocalidade == 0l){
lc = new Listcell("");
}else{
String sMinutos = String.valueOf(minutosLocalidade);
lc = new Listcell(horasLocalidade + ":" + StringHelper.preencherZeroEsquerda(sMinutos, 2));
}
}
break;
default:
break;
}
return lc;
}
private Long getMinutos(Date data){
Calendar c = Calendar.getInstance();
c.setTime(data);
return DateUtil.getElapsedMinutos(DateUtil.getFecInicio().getTime(), c.getTime());
} }
} }

View File

@ -0,0 +1,13 @@
package com.rjconsultores.ventaboletos.web.utilerias.security.exception;
public class SecurityException extends Exception {
private static final long serialVersionUID = 1801174850577435303L;
public SecurityException(String arg0, Throwable arg1) {
super(arg0, arg1);
}
public SecurityException(String arg0) {
super(arg0);
}
}

View File

@ -452,6 +452,8 @@
<value>com.rjconsultores.ventaboletos.entidad.GP_PricingHistorico</value> <value>com.rjconsultores.ventaboletos.entidad.GP_PricingHistorico</value>
<value>com.rjconsultores.ventaboletos.entidad.PricingConexao</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>
<value>com.rjconsultores.ventaboletos.entidad.Disponibilidad</value>
</list> </list>
</property> </property>

View File

@ -0,0 +1,117 @@
package com.rjconsultores.tests;
import static org.junit.Assert.fail;
import java.time.Duration;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.rjconsultores.ventaboletos.web.utilerias.security.SecurityEmpresaToken;
public class SecurityEmpresaTokenTest {
private static final Logger log = LoggerFactory.getLogger(SecurityEmpresaTokenTest.class);
@Before
public void initApplicationContext() {
log.info("[ BEGIN ]");
}
@After
public void closeApplicationContext() {
log.info("[ END ]");
}
@Test
public void test_Token() throws Exception {
// license request -> token request -> token response -> license
Integer empresaId = 1313;
String cnpj = "00073778000120";
SecurityEmpresaToken security = new SecurityEmpresaToken();
final String bodyRequest = security.bodyRequestGenerate(empresaId, cnpj);
final String request = security.requestGenerate(bodyRequest);
final String reponse = "eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiI4ZTY2MGVmOTQwMGRlNjU2MmQ1MjljZTVkZDMyZDU0NmM2OGU5YTk0NTUwYjUyNzc4MDhjNWIxMjgzNzkwNjVlNzI0NWU2ZTMxNzBjMTQ2ZGVlOWUyNGQwZjc1YzMwYTVmM2JlYmY5NjY0YzZiNWNiYjU3NTk1NzVmOGYzMTk4OTljNmVmODNkZDc3NmI4YjM2MGM1NDE3N2RhMzFkMDAzNTA5ZDFlIiwiZXhwIjoxNjk5NjQ5OTQ1LCJ1c2VySWQiOiJhZG0iLCJyb2xlIjoiUk9MRV9UT0tFTiJ9.0WFPKf6RcpPYle4Rgq_D-GScwhkw_Q4pmCvNCL_INfg";
final String license = security.tokenValidate(reponse);
final boolean valid = security.licenseValidate(license, empresaId, cnpj);
log.info("Body Request: " + bodyRequest);
log.info("Request: " + request);
log.info("License: " + license);
log.info("Valid: " + Boolean.toString(valid));
if (!valid) fail("Licença inválida");
}
@Test
public void test_EmpresaNova() throws Exception {
// license request -> token request -> token response -> license
Integer empresaId = 1313;
String cnpj = "00073778000120";
SecurityEmpresaToken security = new SecurityEmpresaToken();
final String bodyRequest = security.bodyRequestGenerate(empresaId, cnpj);
final String request = security.requestGenerate(bodyRequest);
final String license = security.tokenValidate(request);
final boolean valid = security.licenseValidate(license, empresaId, cnpj);
log.info("Body Request: " + bodyRequest);
log.info("Request: " + request);
log.info("License: " + license);
log.info("Valid: " + Boolean.toString(valid));
if (valid) fail("Licença válida");
}
@Test
public void test_Licenca() throws Exception {
Integer empresaId = 1313;
String cnpj = "00073778000120";
SecurityEmpresaToken security = new SecurityEmpresaToken();
final String license = security.licenseDefaultGenerate(empresaId, cnpj);
final boolean valid = security.licenseValidate(license, empresaId, cnpj);
log.info("License: " + license);
log.info("Valid: " + Boolean.toString(valid));
if (!valid) fail("Licença inválida");
}
@Test(expected = SecurityException.class)
public void test_TTL_expired() throws Exception {
Duration ttl = Duration.ofSeconds(5);
Integer empresaId = 1313;
String cnpj = "00073778000120";
SecurityEmpresaToken security = new SecurityEmpresaToken();
final String bodyRequest = security.bodyRequestGenerate(empresaId, cnpj);
final String request = security.requestGenerate(bodyRequest, ttl);
log.info("Body Request: " + bodyRequest);
log.info("Request: " + request);
Thread.sleep(Duration.ofSeconds(10).toMillis());
final String license = security.tokenValidate(request);
final boolean valid = security.licenseValidate(license, empresaId, cnpj);
log.info("License: " + license);
log.info("Valid: " + Boolean.toString(valid));
if (valid) fail("Licença válida");
}
}

View File

@ -1996,6 +1996,7 @@ editarPuntoVentaController.lbQrcodeTaxaEmbarqueRodTTL.label= Imprimir na venda o
editarPuntoVentaController.checkIndBloqueioDescontoAPI.label = Bloquear descuento a través de api editarPuntoVentaController.checkIndBloqueioDescontoAPI.label = Bloquear descuento a través de api
editarPuntoVentaController.checkIndBloqueioDescontoWEB.label = Bloquear descuento en internet editarPuntoVentaController.checkIndBloqueioDescontoWEB.label = Bloquear descuento en internet
editarPuntoVentaController.merchantStoreAdyen.label= Merchant Store Adyen editarPuntoVentaController.merchantStoreAdyen.label= Merchant Store Adyen
editarPuntoVentaController.lbTaxaConvenienciaOrgaoConcedente.label= Taxa Conveniência por Órgao Concedente
# Fechamento Conta Contábil Agencia # Fechamento Conta Contábil Agencia
editarPuntoVentaController.puntoventa.label = Agencia editarPuntoVentaController.puntoventa.label = Agencia
@ -3109,6 +3110,7 @@ busquedaConfiguracionCorridaController.lhId.label = ID
busquedaConfiguracionCorridaController.lbNumCorrida.label = Numero de servicio busquedaConfiguracionCorridaController.lbNumCorrida.label = Numero de servicio
busquedaConfiguracionCorridaController.lhDesc.label = Servicio busquedaConfiguracionCorridaController.lhDesc.label = Servicio
busquedaConfiguracionCorridaController.lhHora.label = Horário busquedaConfiguracionCorridaController.lhHora.label = Horário
busquedaConfiguracionCorridaController.lhHoraChegada.label= H. Llegada
busquedaConfiguracionCorridaController.lhRuta.label = Linea busquedaConfiguracionCorridaController.lhRuta.label = Linea
busquedaConfiguracionCorridaController.numRuta.label = Numero da Linha busquedaConfiguracionCorridaController.numRuta.label = Numero da Linha
busquedaConfiguracionCorridaController.sentidoRuta.label = Sentido da Linha busquedaConfiguracionCorridaController.sentidoRuta.label = Sentido da Linha
@ -9287,6 +9289,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=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.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= 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.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. editarEmpresaController.encerraViagemFechorllegada.ajuda=Controla o encerramento da viagem pela data de saída data de chegada da corrida.

View File

@ -1740,6 +1740,9 @@ editarEmpresaController.lbNome.value = Descrição
editarEmpresaController.lbConfiguraciones.value = Configurações editarEmpresaController.lbConfiguraciones.value = Configurações
editarEmpresaController.lbActivo.value = Ativo editarEmpresaController.lbActivo.value = Ativo
editarEmpresaController.MSG.suscribirOK = Empresa Registrada com Sucesso. editarEmpresaController.MSG.suscribirOK = Empresa Registrada com Sucesso.
editarEmpresaController.MSG.tokenNovaEmpresaOK = Para que a Empresa cadastrada possa ser utilizada no sistema, favor acionar o Suporte com o seguinte TOKEN: {0}
editarEmpresaController.MSG.licencaNOK = Licença Informada não é válida. A empresa não ficará disponível para utilização. Favor entrar em contato com o Suporte.
editarEmpresaController.MSG.licencaOK = Licença validada.
editarEmpresaController.MSG.borrarPergunta = Deseja Eliminar esta empresa? editarEmpresaController.MSG.borrarPergunta = Deseja Eliminar esta empresa?
editarEmpresaController.MSG.borrarOK = Empresa Excluida com Sucesso. editarEmpresaController.MSG.borrarOK = Empresa Excluida com Sucesso.
editarEmpresaController.MSG.insEstadualCadastrada = Já existe uma inscrição estadual para este estado. editarEmpresaController.MSG.insEstadualCadastrada = Já existe uma inscrição estadual para este estado.
@ -1860,6 +1863,8 @@ editarEmpresaController.cst00.label = CST=00 (Tribuitação Normal)
editarEmpresaController.cst40.label = CST=40 (Isento) editarEmpresaController.cst40.label = CST=40 (Isento)
editarEmpresaController.cst41.label = CST=41 (Não Tributado) editarEmpresaController.cst41.label = CST=41 (Não Tributado)
editarEmpresaController.codContPrevidencia.label = Código Indicador de Contribuição Previdenciária editarEmpresaController.codContPrevidencia.label = Código Indicador de Contribuição Previdenciária
editarEmpresaController.tokenEmpresa.label = Token para Licença
editarEmpresaController.tokenLicenca.label = Licença
editarEmpresaController.lbInscricaoMunicipal.value =Inscrição Municipal editarEmpresaController.lbInscricaoMunicipal.value =Inscrição Municipal
editarEmpresaController.label.isento = ISENTO editarEmpresaController.label.isento = ISENTO
editarEmpresaController.lbInscricaoMunicipal.label =Insc.Municipal editarEmpresaController.lbInscricaoMunicipal.label =Insc.Municipal
@ -2290,6 +2295,7 @@ editarPuntoVentaController.checkIndBloqueioDescontoWEB.label = Bloquear desconto
editarPuntoVentaController.merchantStoreAdyen.label= Merchant Store Adyen editarPuntoVentaController.merchantStoreAdyen.label= Merchant Store Adyen
editarPuntoVentaController.tempoMaxServicoEmVenda.label= Tempo máx. Serviço em venda antes/após saída (minutos) 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.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 # Editar comissão ponto de venda
editarPuntoVentaComissaoController.window.title = Comissão Empresa/Ponto de Venda - {0} editarPuntoVentaComissaoController.window.title = Comissão Empresa/Ponto de Venda - {0}
@ -3415,6 +3421,7 @@ busquedaConfiguracionCorridaController.lhId.label = ID
busquedaConfiguracionCorridaController.lbNumCorrida.label = Número de Serviço busquedaConfiguracionCorridaController.lbNumCorrida.label = Número de Serviço
busquedaConfiguracionCorridaController.lhDesc.label = Serviço busquedaConfiguracionCorridaController.lhDesc.label = Serviço
busquedaConfiguracionCorridaController.lhHora.label = Horário busquedaConfiguracionCorridaController.lhHora.label = Horário
busquedaConfiguracionCorridaController.lhHoraChegada.label= H. Chegada
busquedaConfiguracionCorridaController.lhRuta.label = Linha busquedaConfiguracionCorridaController.lhRuta.label = Linha
busquedaConfiguracionCorridaController.numRuta.label = Número da Linha busquedaConfiguracionCorridaController.numRuta.label = Número da Linha
busquedaConfiguracionCorridaController.sentidoRuta.label = Sentido da Linha busquedaConfiguracionCorridaController.sentidoRuta.label = Sentido da Linha
@ -9678,7 +9685,8 @@ editarEmpresaController.alertaVDAPosHorarioViagem=Alerta para venda após horár
editarEmpresaController.alertaVDAPosHorarioViagem.help=Alerta para venda após horário da viagem 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=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.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.indJurosCredito= Habilita juros no cartão de crédito
editarEmpresaController.indHabilitaVendaDeBilheteSemelhante= Hailita a venda de bilhete semelhante na mesma cesta de compra. 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. editarEmpresaController.indHabilitaVendaDeBilheteSemelhante.help = Habilita a venda de bilhetes semelhante na mesma cesta de compra, respeitando o preço do primeiro bilhete.

View File

@ -166,24 +166,43 @@
</row> </row>
<row> <row>
<hlayout> <hlayout>
<label <label
value="${c:l('editarEmpresaController.cpfCnpjAutorizadoDownload.label')}" /> value="${c:l('editarEmpresaController.cpfCnpjAutorizadoDownload.label')}" />
<image src="/gui/img/Question_mark_1.png" tooltiptext="${c:l('editarEmpresaController.cpfCnpjAutorizadoDownload.ajuda')}" <image src="/gui/img/Question_mark_1.png" tooltiptext="${c:l('editarEmpresaController.cpfCnpjAutorizadoDownload.ajuda')}"
style="cursor: help" /> style="cursor: help" />
</hlayout> </hlayout>
<textbox id="txtCpfCnpj_AutorizadoDowload" width="150px" type="text" <textbox id="txtCpfCnpj_AutorizadoDowload" width="150px" type="text"
value="@{winEditarEmpresa$composer.empresa.cpfCnpjAutDownload}" value="@{winEditarEmpresa$composer.empresa.cpfCnpjAutDownload}"
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" /> use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
</row> </row>
<row> <row visible="@{winEditarEmpresa$composer.exibeDadosTokenLicenca}">
<label <label
value="${c:l('editarEmpresaController.codContPrevidencia.label')}" /> value="${c:l('editarEmpresaController.tokenEmpresa.label')}" />
<textbox id="txtCodContPrevidencia" width="150px" type="text"
maxlength="8" <textbox id="txtTokenRJ" width="650px" type="text" readonly="true"
value="@{winEditarEmpresa$composer.empresa.codContPrevidencia}"/> value="@{winEditarEmpresa$composer.empresa.token}"/>
</row>
<row visible="@{winEditarEmpresa$composer.exibeDadosTokenLicenca}">
<label value="${c:l('editarEmpresaController.tokenLicenca.label')}" />
<hlayout>
<textbox id="txtLicenca" width="550px" type="text" value="@{winEditarEmpresa$composer.empresa.licenca}" disabled="true" />
<button
id="btnDigitarLicenca" height="20"
width="55px"
label="Digitar Licença"/>
<button
id="btnValidarLicenca" height="20"
width="55px"
label="Validar Licença"/>
</hlayout>
</row> </row>
</rows> </rows>
</grid> </grid>
@ -961,7 +980,7 @@
<groupbox> <groupbox>
<caption label="${c:l('editarEmpresaController.habilitaVendaSeguroW2Digital')}" /> <caption label="${c:l('editarEmpresaController.habilitaVendaSeguroW2Digital')}" />
<hlayout> <hlayout>
<checkbox id="cnhIndSeguroOpcionalW2Digital" <checkbox id="cnhIndSeguroOpcionalW2Digital" disabled="true"
value="@{winEditarEmpresa$composer.empresa.indSeguroW2Digital}" /> value="@{winEditarEmpresa$composer.empresa.indSeguroW2Digital}" />
<image src="/gui/img/Question_mark_1.png" <image src="/gui/img/Question_mark_1.png"
tooltiptext="${c:l('editarEmpresaController.habilitaVendaSeguroW2Digital')}" style="cursor: help" /> tooltiptext="${c:l('editarEmpresaController.habilitaVendaSeguroW2Digital')}" style="cursor: help" />
@ -1019,7 +1038,7 @@
                         
<hlayout> <hlayout>
<checkbox id="chkIndSegundaViaSeguroOpcional" value="@{winEditarEmpresa$composer.empresa.indSegundaViaSegOpcional}" /> <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> </hlayout>
</groupbox> </groupbox>

View File

@ -507,6 +507,12 @@
value="${c:l('editarPuntoVentaController.checkIndBloqueioDescontoWEB.label')}" /> value="${c:l('editarPuntoVentaController.checkIndBloqueioDescontoWEB.label')}" />
<checkbox id="checkIndBloqueioDescontoWEB" checked="@{winEditarPuntoVenta$composer.puntoVenta.indBloquearDescontoWEB}" /> <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> </rows>
</grid> </grid>
</tabpanel> </tabpanel>

View File

@ -126,50 +126,53 @@
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox" use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
multiple="false" vflex="true" height="50%"> multiple="false" vflex="true" height="50%">
<listhead sizable="true"> <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')}" label="${c:l('busquedaConfiguracionCorridaController.lhId.label')}"
sort="auto(esquemacorridaId)" /> 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')}" label="${c:l('busquedaConfiguracionCorridaController.lbNumCorrida.label')}"
sort="auto(numCorrida)" /> 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')}" label="${c:l('busquedaConfiguracionCorridaController.lhDe.label')}"
sort="auto(esquemaOperacional.fecniciovigencia)" /> 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')}" label="${c:l('busquedaConfiguracionCorridaController.lhHasta.label')}"
sort="auto(esquemaOperacional.fecfinvigencia)" /> 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')}" label="${c:l('busquedaConfiguracionCorridaController.lhHora.label')}"
sort="auto(horasalida)" /> 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')}" label="${c:l('busquedaConfiguracionCorridaController.lhRuta.label')}"
sort="auto(ruta.descruta)" /> 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')}" label="${c:l('busquedaConfiguracionCorridaController.numRuta.label')}"
sort="auto(ruta.numRuta)" /> 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')}" label="${c:l('busquedaConfiguracionCorridaController.sentidoRuta.label')}"
sort="auto(ruta.indSentidoIda)" /> 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')}" label="${c:l('busquedaConfiguracionCorridaController.lhMarca.value')}"
sort="auto(marca.descmarca)" /> 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')}" /> 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')}" label="${c:l('busquedaConfiguracionCorridaController.lhClase.value')}"
sort="auto(claseServicio.descclase)" /> 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')}" label="${c:l('busquedaConfiguracionCorridaController.lhEmpresaCorrida.value')}"
sort="auto(empresa.nombempresa)" /> 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')}" label="${c:l('busquedaConfiguracionCorridaController.lhEmpresaIngresso.value')}"
sort="auto(empresa1.nombempresa)" /> 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')}" label="${c:l('busquedaConfiguracionCorridaController.lhEmpresaRolOperativo.value')}"
sort="auto(rolOperativo.descroloperativo)" /> 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')}" label="${c:l('busquedaConfiguracionCorridaController.lhStatus.value')}"
sort="auto(statusCorrida)" /> sort="auto(statusCorrida)" />
<listheader width="110px" image="/gui/img/builder.gif" id="listHeader16"
label="${c:l('busquedaConfiguracionCorridaController.lhHoraChegada.label')}"
/>
</listhead> </listhead>
</listbox> </listbox>
</window> </window>