Fixes bug#AL-4549
commit
051bf9fcbe
15
pom.xml
15
pom.xml
|
@ -1,15 +1,15 @@
|
|||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd ">
|
||||
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>br.com.rjconsultores</groupId>
|
||||
<artifactId>ventaboletosadm</artifactId>
|
||||
<version>1.121.4</version>
|
||||
<packaging>war</packaging>
|
||||
<version>1.131.3</version>
|
||||
<packaging>war</packaging>
|
||||
|
||||
<properties>
|
||||
<modelWeb.version>1.93.1</modelWeb.version>
|
||||
<flyway.version>1.80.4</flyway.version>
|
||||
<modelWeb.version>1.101.0</modelWeb.version>
|
||||
<flyway.version>1.88.1</flyway.version>
|
||||
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
||||
</properties>
|
||||
|
||||
|
@ -76,7 +76,7 @@
|
|||
<dependency>
|
||||
<groupId>br.com.rjconsultores</groupId>
|
||||
<artifactId>Flyway</artifactId>
|
||||
<version>${flyway.version}</version>
|
||||
<version>${flyway.version}</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
|
@ -297,6 +297,5 @@
|
|||
<version>1.0.0</version>
|
||||
</dependency>
|
||||
|
||||
</dependencies>
|
||||
|
||||
</dependencies>
|
||||
</project>
|
||||
|
|
|
@ -139,11 +139,12 @@ public class RelatorioComissaoSintetico extends Relatorio {
|
|||
sql.append(" LEFT JOIN (SELECT importe, puntoventa_id, empresa_id, fechoroperacion FROM conta_corrente_ptovta ");
|
||||
sql.append(" WHERE feccorte BETWEEN :DATA_INICIAL AND :DATA_FINAL ");
|
||||
if (!agencia.isEmpty()) {
|
||||
sql.append(" AND puntoventa_id in ("+agencia+") ");
|
||||
sql.append(" AND puntoventa_id in ("+agencia+") ");
|
||||
}
|
||||
if (!empresa.isEmpty()) {
|
||||
sql.append(" AND empresa_id = :EMPRESA_ID ");
|
||||
sql.append(" AND empresa_id = :EMPRESA_ID ");
|
||||
}
|
||||
sql.append(" AND activo = 1 ");
|
||||
sql.append(" AND tipooperacioncc_id = 5) cc on (cc.empresa_id = cm.empresa_id ");
|
||||
sql.append(" and cc.puntoventa_id = pv.puntoventa_id ");
|
||||
sql.append(" and cc.fechoroperacion = cm.datamovimento ");
|
||||
|
@ -156,6 +157,7 @@ public class RelatorioComissaoSintetico extends Relatorio {
|
|||
if (!empresa.isEmpty()) {
|
||||
sql.append(" AND cm.empresa_id = :EMPRESA_ID ");
|
||||
}
|
||||
sql.append(" AND cm.activo = 1 ");
|
||||
sql.append(" ORDER BY pv.nombpuntoventa, cm.datamovimento ");
|
||||
|
||||
return sql.toString();
|
||||
|
|
|
@ -0,0 +1,178 @@
|
|||
package com.rjconsultores.ventaboletos.relatorios.impl;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.sql.Connection;
|
||||
import java.sql.ResultSet;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import com.rjconsultores.ventaboletos.entidad.ContratoCorporativo;
|
||||
import com.rjconsultores.ventaboletos.enums.DataGeracaoLegalizacaoEnum;
|
||||
import com.rjconsultores.ventaboletos.enums.EstadoBilheteConsultarEnum;
|
||||
import com.rjconsultores.ventaboletos.relatorios.utilitarios.DataSource;
|
||||
import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio;
|
||||
import com.rjconsultores.ventaboletos.relatorios.utilitarios.RelatorioDetalheContratoBean;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.NamedParameterStatement;
|
||||
|
||||
import net.sf.jasperreports.engine.data.JRBeanCollectionDataSource;
|
||||
|
||||
public class RelatorioDetalheContrato extends Relatorio {
|
||||
|
||||
private List<RelatorioDetalheContratoBean> lsDadosRelatorio;
|
||||
private BigDecimal valorAdicionado = BigDecimal.ZERO;
|
||||
private BigDecimal executado = BigDecimal.ZERO;
|
||||
|
||||
public RelatorioDetalheContrato(Map<String, Object> parametros, Connection conexao) throws Exception {
|
||||
super(parametros, conexao);
|
||||
|
||||
this.setCustomDataSource(new DataSource(this) {
|
||||
@Override
|
||||
public void initDados() throws Exception {
|
||||
|
||||
Connection conexao = this.relatorio.getConexao();
|
||||
Map<String, Object> parametros = this.relatorio.getParametros();
|
||||
|
||||
Date dataInicial = (Date) parametros.get("DATA_DE");
|
||||
Date dataFinal = (Date) parametros.get("DATA_ATE");
|
||||
DataGeracaoLegalizacaoEnum geracao = (DataGeracaoLegalizacaoEnum) parametros.get("GERACAO");
|
||||
EstadoBilheteConsultarEnum estadoBilhetes = (EstadoBilheteConsultarEnum) parametros.get("ESTADO_BILHETES");
|
||||
String numContrato = parametros.get("NUM_CONTRATO") != null ? parametros.get("NUM_CONTRATO").toString() : null;
|
||||
Boolean saldoContrato = (Boolean) parametros.get("SALDO_CONTRATO");
|
||||
|
||||
NamedParameterStatement nps = new NamedParameterStatement(conexao, getSql(dataInicial, dataFinal, geracao, estadoBilhetes, numContrato));
|
||||
|
||||
if(dataInicial != null && dataFinal != null){
|
||||
nps.setDate("dataInicial", new java.sql.Date(dataInicial.getTime()));
|
||||
nps.setDate("dataFinal", new java.sql.Date(dataFinal.getTime()));
|
||||
}
|
||||
|
||||
if (numContrato != null) {
|
||||
nps.setString("numContrato", numContrato);
|
||||
}
|
||||
|
||||
ResultSet rset = nps.executeQuery();
|
||||
|
||||
List<RelatorioDetalheContratoBean> ls = new ArrayList<RelatorioDetalheContratoBean>();
|
||||
|
||||
while (rset.next()) {
|
||||
|
||||
RelatorioDetalheContratoBean detalhe = new RelatorioDetalheContratoBean();
|
||||
detalhe.setTiquete(rset.getString("contratoId"));
|
||||
detalhe.setDataVenda((Date)rset.getObject("dataVenda"));
|
||||
detalhe.setDestino(rset.getString("destino"));
|
||||
detalhe.setOrigem(rset.getString("origem"));
|
||||
detalhe.setEmpresa(rset.getString("empresa"));
|
||||
detalhe.setEstado(rset.getString("estado"));
|
||||
detalhe.setFatura(rset.getString("fatura"));
|
||||
detalhe.setNomePassageiro(rset.getString("cliente"));
|
||||
detalhe.setNomeUsuario(rset.getString("usuario"));
|
||||
detalhe.setPassageiroCod((Long)rset.getObject("clicod"));
|
||||
detalhe.setPassagem(rset.getString("passagem"));
|
||||
detalhe.setPrecioPagado((BigDecimal)rset.getBigDecimal("valorUnit"));
|
||||
detalhe.setPreco((BigDecimal)rset.getBigDecimal("valorTiquete"));
|
||||
detalhe.setTipoDoc(rset.getString("tipoDoc"));
|
||||
detalhe.setClienteId(rset.getLong("clientecorporativo_id"));
|
||||
detalhe.setNomCliente(rset.getString("nomclientecorp"));
|
||||
|
||||
if (detalhe.getTipoDoc() != null && detalhe.getTipoDoc().equals("Evento Extra")) {
|
||||
valorAdicionado.add(detalhe.getPrecioPagado());
|
||||
}
|
||||
|
||||
executado.add(detalhe.getPrecioPagado());
|
||||
|
||||
ls.add(detalhe);
|
||||
}
|
||||
|
||||
setLsDadosRelatorio(ls);
|
||||
|
||||
nps = new NamedParameterStatement(conexao, "select numContrato, valor_contrato from contrato_corporativo where numContrato = :numContrato");
|
||||
nps.setString("numContrato", parametros.get("NUMCONTRATO").toString());
|
||||
rset = nps.executeQuery();
|
||||
|
||||
if (rset.next()) {
|
||||
BigDecimal valorContrato = rset.getBigDecimal("valor_contrato");
|
||||
parametros.put("CONTRATO", rset.getString("numContrato"));
|
||||
parametros.put("VALOR_CONTRATO", valorContrato);
|
||||
parametros.put("VALOR_ADICIONADO", valorAdicionado);
|
||||
parametros.put("EXECUTADO", executado);
|
||||
parametros.put("QUOTA_ATUAL", valorContrato.add(valorAdicionado).subtract(executado).abs());
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
private String getSql(Date dataInicial, Date dataFinal, DataGeracaoLegalizacaoEnum geracao,
|
||||
EstadoBilheteConsultarEnum status, String numContrato) {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("select ");
|
||||
sb.append(" COALESCE(c.numfoliosistema, TO_CHAR(v.voucher_id), TO_CHAR(e.eventoextra_id)) as contratoId, ");
|
||||
sb.append(" COALESCE(c.fechorventa, v.data_inclusao, e.fechoringreso) as dataVenda, ");
|
||||
sb.append(" case ");
|
||||
sb.append(" when c.caja_id is not null then 'Bilhete' ");
|
||||
sb.append(" when v.voucher_id is not null then 'Bono' ");
|
||||
sb.append(" when e.eventoextra_id is not null then 'Evento Extra' ");
|
||||
sb.append(" end as tipoDoc, ");
|
||||
sb.append(" v.num_fatura as fatura, ");
|
||||
sb.append(" v.status as estado, ");
|
||||
sb.append(" porigen.descparada as origem, ");
|
||||
sb.append(" pdestino.descparada as destino, ");
|
||||
sb.append(" 1 as passagem, ");
|
||||
sb.append(" coalesce(c.preciopagado, 0) as valorUnit, ");
|
||||
sb.append(" coalesce(c.preciobase, 0) as valorTiquete, ");
|
||||
sb.append(" t.nome_transportadora as empresa, ");
|
||||
sb.append(" c.cliente_id as clicod, ");
|
||||
sb.append(" cli.nombcliente cliente, ");
|
||||
sb.append(" u.nombusuario as usuario, ");
|
||||
sb.append(" clicorp.clientecorporativo_id, ");
|
||||
sb.append(" clicorp.nomclientecorp ");
|
||||
sb.append("from caixa_contrato cc ");
|
||||
sb.append("join contrato_corporativo corp on corp.contrato_id = cc.contrato_id ");
|
||||
sb.append("join cliente_corporativo clicorp on clicorp.clientecorporativo_id = corp.clientecorporativo_id ");
|
||||
sb.append("left join caja c on cc.caja_id = c.caja_id ");
|
||||
sb.append("left join voucher v on v.voucher_id = cc.voucher_id ");
|
||||
sb.append("left join transportadora t on t.transportadora_id = v.transportadora_id ");
|
||||
sb.append("left join evento_extra e on e.eventoextra_id = cc.eventoextra_id ");
|
||||
sb.append("left join cliente cli on cli.cliente_id = c.cliente_id ");
|
||||
sb.append("left join parada porigen on c.origen_id = porigen.parada_id ");
|
||||
sb.append("left join parada pdestino on c.destino_id = pdestino.parada_id ");
|
||||
sb.append("left join usuario u on u.usuario_id = c.usuario_id ");
|
||||
sb.append("where 1 = 1 ");
|
||||
|
||||
if(dataInicial != null && dataFinal != null){
|
||||
sb.append(" and c.fechorventa between :dataInicial and :dataFinal ");
|
||||
if (geracao == DataGeracaoLegalizacaoEnum.GERACAO) {
|
||||
sb.append(" and v.data_inclusao between :dataInicial and :dataFinal ");
|
||||
} else {
|
||||
sb.append(" and v.data_legaliza between :dataInicial and :dataFinal ");
|
||||
}
|
||||
}
|
||||
|
||||
if (status != null) {
|
||||
if (status == EstadoBilheteConsultarEnum.FATURADO) {
|
||||
sb.append(" and v.status = 2 ");
|
||||
} else if (status == EstadoBilheteConsultarEnum.NAO_FATURADO) {
|
||||
sb.append(" and v.status <> 2 ");
|
||||
}
|
||||
}
|
||||
if (numContrato != null) {
|
||||
sb.append(" and c.numfoliosistema = :numContrato or v.voucher_id = :numContrato or e.eventoextra_id = :numContrato ");
|
||||
}
|
||||
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void processaParametros() throws Exception {
|
||||
}
|
||||
|
||||
public List<RelatorioDetalheContratoBean> getLsDadosRelatorio() {
|
||||
return lsDadosRelatorio;
|
||||
}
|
||||
|
||||
public void setLsDadosRelatorio(List<RelatorioDetalheContratoBean> lsDadosRelatorio) {
|
||||
this.setCollectionDataSource(new JRBeanCollectionDataSource(lsDadosRelatorio));
|
||||
this.lsDadosRelatorio = lsDadosRelatorio;
|
||||
}
|
||||
}
|
|
@ -4,6 +4,7 @@ import java.math.BigDecimal;
|
|||
import java.sql.Connection;
|
||||
import java.sql.ResultSet;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Calendar;
|
||||
import java.util.Collections;
|
||||
import java.util.Comparator;
|
||||
import java.util.Date;
|
||||
|
@ -14,7 +15,6 @@ import java.util.Map;
|
|||
import com.rjconsultores.ventaboletos.relatorios.utilitarios.ArrayDataSource;
|
||||
import com.rjconsultores.ventaboletos.relatorios.utilitarios.ItemReporteControleEstoqueBoletos;
|
||||
import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio;
|
||||
import com.rjconsultores.ventaboletos.relatorios.utilitarios.RelatorioBilhetesVendidosEstoqueAgenciaBean;
|
||||
import com.rjconsultores.ventaboletos.utilerias.DateUtil;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.NamedParameterStatement;
|
||||
|
||||
|
@ -48,12 +48,21 @@ public class RelatorioEstoque extends Relatorio {
|
|||
}
|
||||
String sql = retornarItensConsultaPorPuloFolio(puntoVentaId,empresaId, dtInicio, dtFim, aidfTipoId, aidfId);
|
||||
NamedParameterStatement stmt = new NamedParameterStatement(conexao, sql);
|
||||
|
||||
if(dtInicio != null && dtFim != null) {
|
||||
stmt.setString("dataInicio", DateUtil.getStringDate(dtInicio, "dd/MM/yyyy") + " 00:00:00");
|
||||
stmt.setString("dataFinal", DateUtil.getStringDate(dtFim, "dd/MM/yyyy") + " 23:59:59");
|
||||
stmt.setString("dataFinal", DateUtil.getStringDate(dtFim, "dd/MM/yyyy") + " 23:59:59");
|
||||
}else if(dtInicio != null) {
|
||||
stmt.setString("dataInicio", DateUtil.getStringDate(dtInicio, "dd/MM/yyyy") + " 00:00:00");
|
||||
}
|
||||
|
||||
Calendar c = Calendar.getInstance();
|
||||
c.setTime(dtInicio);
|
||||
c.add(Calendar.YEAR, -3);
|
||||
|
||||
stmt.setString("dataInicioVenda", DateUtil.getStringDate(c.getTime(), "dd/MM/yyyy") + " 23:59:59");
|
||||
stmt.setString("dataFimVenda", DateUtil.getStringDate(new Date(), "dd/MM/yyyy") + " 23:59:59");
|
||||
|
||||
if(aidfTipoId != null) {
|
||||
stmt.setInt("aidfTipo",aidfTipoId);
|
||||
}
|
||||
|
@ -82,6 +91,7 @@ public class RelatorioEstoque extends Relatorio {
|
|||
item.setFechorAquisicion((Date) rset.getObject("fechorAquisicion"));
|
||||
item.setFecVencimento((Date) rset.getObject("fecVencimento"));
|
||||
item.setID((String) rset.getObject("ID"));
|
||||
item.setPuntoVentaId(rset.getInt("puntoVentaId") > 0 ? rset.getInt("puntoVentaId") : null);
|
||||
lsEstoquePorSalto.add(item);
|
||||
}
|
||||
|
||||
|
@ -98,6 +108,10 @@ public class RelatorioEstoque extends Relatorio {
|
|||
}else if(dtInicio != null) {
|
||||
stmt2.setString("dataInicio", DateUtil.getStringDate(dtInicio, "dd/MM/yyyy") + " 00:00:00");
|
||||
}
|
||||
|
||||
stmt2.setString("dataInicioVenda", DateUtil.getStringDate(c.getTime(), "dd/MM/yyyy") + " 23:59:59");
|
||||
stmt2.setString("dataFimVenda", DateUtil.getStringDate(new Date(), "dd/MM/yyyy") + " 23:59:59");
|
||||
|
||||
if(aidfTipoId != null) {
|
||||
stmt2.setInt("aidfTipo",aidfTipoId);
|
||||
}
|
||||
|
@ -107,6 +121,7 @@ public class RelatorioEstoque extends Relatorio {
|
|||
|
||||
ResultSet rset2 = null;
|
||||
rset2 = stmt2.executeQuery();
|
||||
|
||||
List<ItemReporteControleEstoqueBoletos> lsEstoque = new ArrayList<>() ;
|
||||
while (rset2.next()) {
|
||||
|
||||
|
@ -137,6 +152,7 @@ public class RelatorioEstoque extends Relatorio {
|
|||
List<ItemReporteControleEstoqueBoletos> lsTemp = new ArrayList<>();
|
||||
List<ItemReporteControleEstoqueBoletos> lsTempRetorno = new ArrayList<>();
|
||||
List<ItemReporteControleEstoqueBoletos> lsTempRetornoAux = new ArrayList<>();
|
||||
lsEstoquePorSalto = validarFolioPreImpressoPuntoventa(lsEstoquePorSalto, puntoVentaId);
|
||||
for (ItemReporteControleEstoqueBoletos i : lsEstoquePorSalto) {
|
||||
if(map.get(i.getID()) == null) {
|
||||
for (ItemReporteControleEstoqueBoletos item : lsEstoquePorSalto) {
|
||||
|
@ -145,6 +161,7 @@ public class RelatorioEstoque extends Relatorio {
|
|||
}
|
||||
}
|
||||
map.put(i.getID(), i.getID());
|
||||
//criar metodo for dentro do outro para remover o que a consulta retornar
|
||||
lsTempRetorno.addAll(gerarRangesDeFolios(recuperarOsFaltantes(lsTemp), lsTemp));
|
||||
lsTemp = new ArrayList<ItemReporteControleEstoqueBoletos>();
|
||||
}
|
||||
|
@ -211,12 +228,13 @@ public class RelatorioEstoque extends Relatorio {
|
|||
sb.append(" TB.articuloId as articuloId, ");
|
||||
sb.append(" TB.nombEmpresa as nombEmpresa, ");
|
||||
sb.append(" TB.empresaId as empresaId, ");
|
||||
sb.append(" TB.marcaId as marcaId, ");
|
||||
// sb.append(" TB.marcaId as marcaId, ");
|
||||
sb.append(" TB.fechorAquisicion as fechorAquisicion, ");
|
||||
sb.append(" TB.tipo as tipo, ");
|
||||
sb.append(" TB.fecVencimento as fecVencimento, ");
|
||||
sb.append(" TB.ID as ID , TB.nomeEstado as nomeEstado, ");
|
||||
sb.append(" TB.tipoAidf as tipoAidf ");
|
||||
sb.append(" TB.tipoAidf as tipoAidf, ");
|
||||
sb.append(" TB.puntoVentaId as puntoVentaId, TB.fechorventa as fechorVenta ");
|
||||
sb.append(" from (SELECT DAB.AIDF_ID AS aidfId, est.NOMBESTADO as nomeEstado, ");
|
||||
sb.append(" dab.NUMSERIEPREIMPRESA AS serie, ");
|
||||
sb.append(" TO_NUMBER(CJ.NUMFOLIOPREIMPRESO) AS folioCaja, ");
|
||||
|
@ -226,7 +244,7 @@ public class RelatorioEstoque extends Relatorio {
|
|||
sb.append(" AB.ARTICULO_ID AS articuloId, ");
|
||||
sb.append(" EM.NOMBEMPRESA AS nombEmpresa, ");
|
||||
sb.append(" EM.EMPRESA_ID AS empresaId, ");
|
||||
sb.append(" M.MARCA_ID AS marcaId, ");
|
||||
// sb.append(" M.MARCA_ID AS marcaId, ");
|
||||
sb.append(" DAB.AIDF_ID || DAB.NUMSERIEPREIMPRESA || DAB.NUMFOLIOINICIAL || DAB.NUMFOLIOFINAL || EM.EMPRESA_ID AS ID, ");
|
||||
sb.append(" CASE ");
|
||||
sb.append(" WHEN dab.STATUSOPERACION = 4 THEN CONCAT(a.descarticulo, ' (Distribuição Estoque)') ");
|
||||
|
@ -234,12 +252,13 @@ public class RelatorioEstoque extends Relatorio {
|
|||
sb.append(" END AS tipo , ");
|
||||
sb.append(" to_date(to_char(AI.fecadquisicion, 'dd/MM/yyyy'), 'dd/MM/yyyy') AS fechorAquisicion, ");
|
||||
sb.append(" to_date(to_char(ai.fecvencimiento, 'dd/MM/yyyy'), 'dd/MM/yyyy') AS fecVencimento, ");
|
||||
sb.append(" AIT.DESCTIPO tipoAidf ");
|
||||
sb.append(" AIT.DESCTIPO tipoAidf, ");
|
||||
sb.append(" PV.PUNTOVENTA_ID AS puntoVentaId, cj.fechorVenta as fechorVenta ");
|
||||
sb.append(" FROM CAJA CJ, ");
|
||||
sb.append(" ARTICULO A, ");
|
||||
sb.append(" EMPRESA EM, ");
|
||||
sb.append(" MARCA M, ");
|
||||
sb.append(" USUARIO U, ");
|
||||
// sb.append(" MARCA M, ");
|
||||
// sb.append(" USUARIO U, ");
|
||||
sb.append(" AIDF AI, ");
|
||||
sb.append(" AIDF_TIPO AIT, ");
|
||||
sb.append(" ESTADO est,");
|
||||
|
@ -249,31 +268,30 @@ public class RelatorioEstoque extends Relatorio {
|
|||
sb.append(" LEFT JOIN DET_ABASTO_BOLETO DAB ON (AB.ABASTOBOLETO_ID = DAB.ABASTOBOLETO_ID) ");
|
||||
sb.append(" WHERE TO_NUMBER(CJ.NUMFOLIOPREIMPRESO) BETWEEN TO_NUMBER(DAB.NUMFOLIOINICIAL) AND TO_NUMBER(DAB.NUMFOLIOFINAL) ");
|
||||
// sb.append(" AND CJ.PUNTOVENTA_ID = AB.PUNTOVENTA_ID ");
|
||||
sb.append(" AND DAB.ACTIVO = 1 ");
|
||||
sb.append(" AND (cj.NUMSERIEPREIMPRESA = dab.NUMSERIEPREIMPRESA ");
|
||||
sb.append(" OR (cj.NUMSERIEPREIMPRESA IS NULL ");
|
||||
sb.append(" AND dab.NUMSERIEPREIMPRESA IS NULL)) ");
|
||||
if (puntoVentaId != null) {
|
||||
sb.append(" AND (cj.PUNTOVENTA_ID in("+puntoVentaId+ ") or AB.PUNTOVENTA_ID in("+puntoVentaId+")) ");
|
||||
}
|
||||
sb.append(" AND DAB.ACTIVO = 1 ");
|
||||
sb.append(" AND (cj.NUMSERIEPREIMPRESA = dab.NUMSERIEPREIMPRESA OR (cj.NUMSERIEPREIMPRESA IS NULL AND dab.NUMSERIEPREIMPRESA IS NULL)) ");
|
||||
// if (puntoVentaId != null) {
|
||||
// sb.append(" AND (cj.PUNTOVENTA_ID in("+puntoVentaId+ ") or AB.PUNTOVENTA_ID in("+puntoVentaId+")) ");
|
||||
// }
|
||||
if(empresaId != null) {
|
||||
sb.append(" AND Em.empresa_ID = ")
|
||||
.append(empresaId);
|
||||
}
|
||||
if(dataInicio!= null && dataFim != null) {
|
||||
sb.append(" AND AI.fecadquisicion BETWEEN TO_DATE(:dataInicio,'dd/mm/yyyy hh24:mi:ss') AND TO_DATE(:dataFinal,'dd/mm/yyyy hh24:mi:ss') ");
|
||||
sb.append(" AND AI.fecadquisicion BETWEEN TO_DATE(:dataInicio,'dd/mm/yyyy hh24:mi:ss') AND TO_DATE(:dataFinal,'dd/mm/yyyy hh24:mi:ss') ");
|
||||
}else if(dataInicio!= null) {
|
||||
sb.append(" AND AI.fecadquisicion >= TO_DATE(:dataInicio,'dd/mm/yyyy hh24:mi:ss') ");
|
||||
}
|
||||
sb.append(" AND DAB.NUMFOLIOFINAL < 2147483647 ");
|
||||
sb.append(" AND cj.fechorventa BETWEEN TO_DATE(:dataInicioVenda,'dd/mm/yyyy hh24:mi:ss') AND TO_DATE(:dataFimVenda,'dd/mm/yyyy hh24:mi:ss') ");
|
||||
sb.append(" AND DAB.NUMFOLIOFINAL < 2147483647 ");
|
||||
sb.append(" AND DAB.STATUSOPERACION IN(0, ");
|
||||
sb.append(" 1, ");
|
||||
sb.append(" 4) ");
|
||||
sb.append(" AND A.ARTICULO_ID = AB.ARTICULO_ID ");
|
||||
sb.append(" AND EM.EMPRESA_ID = AB.EMPRESA_ID ");
|
||||
sb.append(" AND M.EMPRESA_ID = EM.EMPRESA_ID ");
|
||||
sb.append(" AND M.ACTIVO = 1 ");
|
||||
sb.append(" AND CJ.USUARIO_ID = U.USUARIO_ID ");
|
||||
sb.append(" AND EM.EMPRESA_ID = AB.EMPRESA_ID AND AI.EMPRESA_ID = AB.EMPRESA_ID ");
|
||||
// sb.append(" AND M.EMPRESA_ID = EM.EMPRESA_ID ");
|
||||
// sb.append(" AND M.ACTIVO = 1 ");
|
||||
// sb.append(" AND CJ.USUARIO_ID = U.USUARIO_ID ");
|
||||
sb.append(" AND (CJ.INDREIMPRESION = 0 ");
|
||||
sb.append(" OR (CJ.INDREIMPRESION = 1 ");
|
||||
sb.append(" AND CJ.INDSTATUSBOLETO = 'E')) ");
|
||||
|
@ -290,14 +308,14 @@ public class RelatorioEstoque extends Relatorio {
|
|||
sb.append(" PV.NOMBPUNTOVENTA, ");
|
||||
sb.append(" AB.ARTICULO_ID, ");
|
||||
sb.append(" EM.NOMBEMPRESA, ");
|
||||
sb.append(" U.USUARIO_ID, ");
|
||||
// sb.append(" U.USUARIO_ID, ");
|
||||
sb.append(" EM.EMPRESA_ID, ");
|
||||
sb.append(" DAB.AIDF_ID, ");
|
||||
sb.append(" M.MARCA_ID, ");
|
||||
// sb.append(" M.MARCA_ID, ");
|
||||
sb.append(" A.descarticulo, ");
|
||||
sb.append(" dab.STATUSOPERACION , ");
|
||||
sb.append(" to_char(AI.fecadquisicion, 'dd/MM/yyyy'), ");
|
||||
sb.append(" to_char(ai.fecvencimiento, 'dd/MM/yyyy'), est.NOMBESTADO , AIT.DESCTIPO ");
|
||||
sb.append(" to_char(ai.fecvencimiento, 'dd/MM/yyyy'), est.NOMBESTADO , AIT.DESCTIPO, PV.PUNTOVENTA_ID, cj.fechorVenta ");
|
||||
sb.append(" ");
|
||||
sb.append(" UNION ALL ");
|
||||
sb.append(" SELECT DAB.AIDF_ID AS aidfId, est.NOMBESTADO as nomeEstado , ");
|
||||
|
@ -309,7 +327,7 @@ public class RelatorioEstoque extends Relatorio {
|
|||
sb.append(" AB.ARTICULO_ID AS articuloId, ");
|
||||
sb.append(" EM.NOMBEMPRESA AS nombEmpresa, ");
|
||||
sb.append(" EM.EMPRESA_ID AS empresaId, ");
|
||||
sb.append(" M.MARCA_ID AS marcaId, ");
|
||||
// sb.append(" M.MARCA_ID AS marcaId, ");
|
||||
sb.append(" DAB.AIDF_ID || DAB.NUMSERIEPREIMPRESA || DAB.NUMFOLIOINICIAL || DAB.NUMFOLIOFINAL || EM.EMPRESA_ID AS ID, ");
|
||||
sb.append(" CASE ");
|
||||
sb.append(" WHEN dab.STATUSOPERACION = 4 THEN CONCAT(a.descarticulo, ' (Distribuição Estoque)') ");
|
||||
|
@ -317,15 +335,17 @@ public class RelatorioEstoque extends Relatorio {
|
|||
sb.append(" END AS tipo, ");
|
||||
sb.append(" to_date(to_char(AI.fecadquisicion, 'dd/MM/yyyy'), 'dd/MM/yyyy') AS fechorAquisicion, ");
|
||||
sb.append(" to_date(to_char(ai.fecvencimiento, 'dd/MM/yyyy'), 'dd/MM/yyyy') AS fecVencimento, ");
|
||||
sb.append(" AIT.DESCTIPO tipoAidf ");
|
||||
sb.append(" AIT.DESCTIPO tipoAidf, ");
|
||||
sb.append(" PV.PUNTOVENTA_ID AS puntoVentaId, ");
|
||||
sb.append(" CJ.FECHORVTA as fechorVenta ");
|
||||
sb.append(" FROM CAJA_DIVERSOS CJ, ");
|
||||
sb.append(" ARTICULO A, ");
|
||||
sb.append(" EMPRESA EM, ");
|
||||
sb.append(" MARCA M, ");
|
||||
// sb.append(" MARCA M, ");
|
||||
sb.append(" AIDF AI, ");
|
||||
sb.append(" AIDF_TIPO AIT, ");
|
||||
sb.append(" ESTADO est,");
|
||||
sb.append(" USUARIO U, ");
|
||||
// sb.append(" USUARIO U, ");
|
||||
sb.append(" PUNTO_VENTA PV, ");
|
||||
sb.append(" ABASTO_BOLETO AB ");
|
||||
sb.append(" LEFT JOIN DET_ABASTO_BOLETO DAB ON (AB.ABASTOBOLETO_ID = DAB.ABASTOBOLETO_ID) ");
|
||||
|
@ -334,9 +354,9 @@ public class RelatorioEstoque extends Relatorio {
|
|||
sb.append(" AND (cj.NUMSERIEPREIMPRESA = dab.NUMSERIEPREIMPRESA ");
|
||||
sb.append(" OR (cj.NUMSERIEPREIMPRESA IS NULL ");
|
||||
sb.append(" AND dab.NUMSERIEPREIMPRESA IS NULL)) ");
|
||||
if (puntoVentaId != null) {
|
||||
sb.append(" AND (cj.PUNTOVENTA_ID in("+puntoVentaId+ ") or AB.PUNTOVENTA_ID in("+puntoVentaId+")) ");
|
||||
}
|
||||
// if (puntoVentaId != null) {
|
||||
// sb.append(" AND (cj.PUNTOVENTA_ID in("+puntoVentaId+ ") or AB.PUNTOVENTA_ID in("+puntoVentaId+")) ");
|
||||
// }
|
||||
if(empresaId != null) {
|
||||
sb.append(" AND Em.empresa_ID = ")
|
||||
.append(empresaId);
|
||||
|
@ -346,19 +366,21 @@ public class RelatorioEstoque extends Relatorio {
|
|||
}else if(dataInicio!= null) {
|
||||
sb.append(" AND AI.fecadquisicion >= TO_DATE(:dataInicio,'dd/mm/yyyy hh24:mi:ss') ");
|
||||
}
|
||||
sb.append(" AND FECHORVTA BETWEEN TO_DATE(:dataInicioVenda,'dd/mm/yyyy hh24:mi:ss') AND TO_DATE(:dataFimVenda,'dd/mm/yyyy hh24:mi:ss') ");
|
||||
sb.append(" AND DAB.NUMFOLIOFINAL < 2147483647 ");
|
||||
sb.append(" AND DAB.STATUSOPERACION IN(0, ");
|
||||
sb.append(" 1, ");
|
||||
sb.append(" 4) ");
|
||||
sb.append(" AND A.ARTICULO_ID = AB.ARTICULO_ID ");
|
||||
sb.append(" AND A.ARTICULO_ID = AB.ARTICULO_ID AND AI.EMPRESA_ID = AB.EMPRESA_ID ");
|
||||
sb.append(" AND EM.EMPRESA_ID = AB.EMPRESA_ID ");
|
||||
sb.append(" AND M.EMPRESA_ID = EM.EMPRESA_ID ");
|
||||
sb.append(" AND M.ACTIVO = 1 ");
|
||||
sb.append(" AND CJ.USUARIO_ID = U.USUARIO_ID ");
|
||||
// sb.append(" AND M.EMPRESA_ID = EM.EMPRESA_ID ");
|
||||
// sb.append(" AND M.ACTIVO = 1 ");
|
||||
// sb.append(" AND CJ.USUARIO_ID = U.USUARIO_ID ");
|
||||
sb.append(" AND CJ.PUNTOVENTA_ID = PV.PUNTOVENTA_ID ");
|
||||
sb.append(" AND DAB.ACTIVO = 1 ");
|
||||
sb.append(" AND AB.activo =1 AND AI.activo = 1 and est.estado_id = ai.ESTADO_ID ");
|
||||
sb.append(" AND AB.activo =1 AND AI.activo = 1 and est.estado_id = ai.ESTADO_ID ");
|
||||
sb.append(aidfTipo != null ? " AND (AI.AIDFTIPO_ID =:aidfTipo AND AIT.AIDFTIPO_ID = AI.AIDFTIPO_ID) " : " AND AIT.AIDFTIPO_ID = AI.AIDFTIPO_ID ");
|
||||
sb.append(" and CJ.aidf_id = AI.AIDF_ID ");
|
||||
sb.append(aidfId != null ? " AND (AI.AIDF_ID =:aidfId AND DAB.AIDF_ID = AI.AIDF_ID) " : " AND DAB.AIDF_ID = AI.AIDF_ID ");
|
||||
sb.append(" GROUP BY DAB.AIDF_ID, ");
|
||||
sb.append(" DAB.NUMSERIEPREIMPRESA, ");
|
||||
|
@ -368,14 +390,16 @@ public class RelatorioEstoque extends Relatorio {
|
|||
sb.append(" PV.NOMBPUNTOVENTA, ");
|
||||
sb.append(" AB.ARTICULO_ID, ");
|
||||
sb.append(" EM.NOMBEMPRESA, ");
|
||||
sb.append(" U.USUARIO_ID, ");
|
||||
// sb.append(" U.USUARIO_ID, ");
|
||||
sb.append(" EM.EMPRESA_ID, ");
|
||||
sb.append(" DAB.AIDF_ID, ");
|
||||
sb.append(" M.MARCA_ID, ");
|
||||
// sb.append(" M.MARCA_ID, ");
|
||||
sb.append(" A.descarticulo, ");
|
||||
sb.append(" dab.STATUSOPERACION, ");
|
||||
sb.append(" to_char(AI.fecadquisicion, 'dd/MM/yyyy'), ");
|
||||
sb.append(" to_char(ai.fecvencimiento, 'dd/MM/yyyy') , est.NOMBESTADO , AIT.DESCTIPO ) TB ");
|
||||
sb.append(" to_char(ai.fecvencimiento, 'dd/MM/yyyy') , est.NOMBESTADO , AIT.DESCTIPO, PV.PUNTOVENTA_ID, CJ.FECHORVTA ) TB ");
|
||||
sb.append(" where exists ( SELECT * FROM CAJA_DIVERSOS CA WHERE CA.ACTIVO = 1 AND CA.NUMFOLIOPREIMPRESO = TB.folioCaja and ca.numseriepreimpresa = TB.SERIE and CA.FECHORVTA = TB.fechorVenta) ");
|
||||
sb.append(" OR exists ( SELECT * FROM CAJA CA WHERE CA.ACTIVO = 1 AND CA.NUMFOLIOPREIMPRESO = TB.folioCaja and ca.numseriepreimpresa = TB.SERIE AND CA.ACTIVO = 1 AND CA.INDSTATUSBOLETO <> 'C' AND ( CA.motivocancelacion_id is null OR CA.motivocancelacion_id = 31 ) AND CA.EMPRESACORRIDA_ID = TB.empresaId and TB.fechorVenta = CA.fechorventa) ");
|
||||
sb.append(" ORDER BY TB.aidfId, ");
|
||||
sb.append(" TB.serie, ");
|
||||
sb.append(" TB.folioCaja ");
|
||||
|
@ -439,12 +463,20 @@ public class RelatorioEstoque extends Relatorio {
|
|||
.append("LEFT JOIN aidf_tipo ait ON ait.AIDFTIPO_ID= ai.AIDFTIPO_ID ")
|
||||
.append("LEFT JOIN ESTADO est ON est.ESTADO_ID = ai.ESTADO_ID ")
|
||||
.append("LEFT JOIN ESTACION ES ON es.ESTACION_ID = ab.ESTACION_ID ")
|
||||
.append("JOIN CAJA_DIVERSOS CJ ON CJ.AIDF_ID = dab.AIDF_ID ")
|
||||
.append("WHERE dab.STATUSOPERACION IN(0,1,4) ")
|
||||
.append("AND dab.ACTIVO = 1 ")
|
||||
.append(" and dab.NUMFOLIOFINAL < 2147483647 ")
|
||||
.append(" AND DAB.AIDF_ID = AI.AIDF_ID and ai.activo = 1 ")
|
||||
.append(aidfTipo != null ? " AND AI.AIDFTIPO_ID = :aidfTipo " : " ")
|
||||
.append(aidfId != null ? " AND AI.AIDF_ID = :aidfId " : " ");
|
||||
.append(aidfId != null ? " AND AI.AIDF_ID = :aidfId " : " ")
|
||||
.append("AND TO_NUMBER(CJ.NUMFOLIOPREIMPRESO) BETWEEN TO_NUMBER(DAB.NUMFOLIOINICIAL) AND TO_NUMBER(DAB.NUMFOLIOFINAL) ")
|
||||
.append(" AND (cj.NUMSERIEPREIMPRESA = dab.NUMSERIEPREIMPRESA ")
|
||||
.append(" OR (cj.NUMSERIEPREIMPRESA IS NULL ")
|
||||
.append("AND dab.NUMSERIEPREIMPRESA IS NULL)) ")
|
||||
.append(" AND CJ.FECHORVTA BETWEEN TO_DATE(:dataInicioVenda,'dd/mm/yyyy hh24:mi:ss') AND TO_DATE(:dataFimVenda,'dd/mm/yyyy hh24:mi:ss') ");
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -599,5 +631,22 @@ public class RelatorioEstoque extends Relatorio {
|
|||
return lsBlocoJaTodoUtilizado;
|
||||
}
|
||||
|
||||
private List<ItemReporteControleEstoqueBoletos> validarFolioPreImpressoPuntoventa(List<ItemReporteControleEstoqueBoletos> lsEstoquePorSalto, String puntoVentaId) {
|
||||
|
||||
List<ItemReporteControleEstoqueBoletos> lsEstoquePorSaltoaux = new ArrayList<>(lsEstoquePorSalto);
|
||||
String[] puntoVentaIds = null;
|
||||
|
||||
if (puntoVentaId != null) {
|
||||
puntoVentaIds = puntoVentaId.split(",");
|
||||
for (ItemReporteControleEstoqueBoletos itemReporteControleEstoqueBoletos : lsEstoquePorSalto) {
|
||||
for (String id : puntoVentaIds) {
|
||||
if(!itemReporteControleEstoqueBoletos.getPuntoVentaId().equals(Integer.valueOf(id))) {
|
||||
lsEstoquePorSaltoaux.remove(itemReporteControleEstoqueBoletos);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return lsEstoquePorSaltoaux;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -0,0 +1,149 @@
|
|||
package com.rjconsultores.ventaboletos.relatorios.impl;
|
||||
|
||||
import java.sql.Connection;
|
||||
import java.sql.ResultSet;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import com.rjconsultores.ventaboletos.enums.EstadoBilheteConsultarEnum;
|
||||
import com.rjconsultores.ventaboletos.relatorios.utilitarios.DataSource;
|
||||
import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio;
|
||||
import com.rjconsultores.ventaboletos.relatorios.utilitarios.RelatorioSaldosContratosBean;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.NamedParameterStatement;
|
||||
|
||||
import net.sf.jasperreports.engine.data.JRBeanCollectionDataSource;
|
||||
|
||||
public class RelatorioSaldosDeContratos extends Relatorio {
|
||||
|
||||
private List<RelatorioSaldosContratosBean> lsDadosRelatorio;
|
||||
|
||||
public RelatorioSaldosDeContratos(Map<String, Object> parametros, Connection conexao) throws Exception {
|
||||
super(parametros, conexao);
|
||||
|
||||
this.setCustomDataSource(new DataSource(this) {
|
||||
@Override
|
||||
public void initDados() throws Exception {
|
||||
|
||||
Connection conexao = this.relatorio.getConexao();
|
||||
Map<String, Object> parametros = this.relatorio.getParametros();
|
||||
|
||||
Date dataInicial = (Date) parametros.get("DATA_DE");
|
||||
Date dataFinal = (Date) parametros.get("DATA_ATE");
|
||||
Integer empresaId = (Integer) parametros.get("EMPRESA_ID");
|
||||
String numContrato = parametros.get("NUM_CONTRATO") != null ? parametros.get("NUM_CONTRATO").toString() : null;
|
||||
Long grupoContratoId = (Long) parametros.get("GRUPOCONTRATO_ID");
|
||||
Integer status = (Integer) parametros.get("STATUS");
|
||||
|
||||
NamedParameterStatement nps = new NamedParameterStatement(conexao, getSql(dataInicial,
|
||||
dataFinal, empresaId, numContrato, grupoContratoId, status));
|
||||
|
||||
if(dataInicial != null && dataFinal != null){
|
||||
nps.setDate("dataInicial", new java.sql.Date(dataInicial.getTime()));
|
||||
nps.setDate("dataFinal", new java.sql.Date(dataFinal.getTime()));
|
||||
}
|
||||
|
||||
if (empresaId != null) {
|
||||
nps.setLong("clienteId", empresaId);
|
||||
}
|
||||
|
||||
if (numContrato != null) {
|
||||
nps.setString("numContrato", numContrato);
|
||||
}
|
||||
|
||||
if (grupoContratoId != null) {
|
||||
nps.setLong("grupoContratoId", grupoContratoId);
|
||||
}
|
||||
|
||||
if (status != null) {
|
||||
nps.setInt("status", status);
|
||||
}
|
||||
|
||||
ResultSet rset = nps.executeQuery();
|
||||
|
||||
List<RelatorioSaldosContratosBean> ls = new ArrayList<RelatorioSaldosContratosBean>();
|
||||
|
||||
while (rset.next()) {
|
||||
|
||||
RelatorioSaldosContratosBean saldo = new RelatorioSaldosContratosBean();
|
||||
saldo.setAdicional(rset.getBigDecimal("adicao"));
|
||||
saldo.setDataInicio(rset.getDate("data_inicial"));
|
||||
saldo.setExecutado(rset.getBigDecimal("executado"));
|
||||
saldo.setNit(rset.getString("identificacao"));
|
||||
saldo.setNumContrato(rset.getString("numContrato"));
|
||||
saldo.setRazaoSocial(rset.getString("nomclientecorp"));
|
||||
saldo.setValorContrato(rset.getBigDecimal("valor_contrato"));
|
||||
saldo.setSaldoAtual(saldo.getValorContrato().add(saldo.getAdicional()).subtract(saldo.getExecutado()).abs());
|
||||
|
||||
|
||||
ls.add(saldo);
|
||||
}
|
||||
|
||||
setLsDadosRelatorio(ls);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
private String getSql(Date dataInicial, Date dataFinal, Integer empresaId,
|
||||
String numContrato, Long grupoContratoId, Integer status) {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("select ");
|
||||
sb.append(" cli.identificacao, ");
|
||||
sb.append(" cli.nomclientecorp, ");
|
||||
sb.append(" c.numcontrato, ");
|
||||
sb.append(" c.data_inicial, ");
|
||||
sb.append(" coalesce(c.valor_contrato,0) as valor_contrato, ");
|
||||
sb.append(" coalesce(a.adicao, 0) as adicao, ");
|
||||
sb.append(" sum(cc.valor) as executado ");
|
||||
sb.append("from contrato_corporativo c ");
|
||||
sb.append("left join (select coalesce(SUM(cc2.valor), 0) as adicao, cc2.contrato_id as contrato_id ");
|
||||
sb.append(" from caixa_contrato cc2 ");
|
||||
sb.append(" where cc2.eventoextra_id is not null ");
|
||||
sb.append(" group by cc2.contrato_id) a on a.contrato_id = c.contrato_id ");
|
||||
sb.append("join caixa_contrato cc on cc.contrato_id = c.contrato_id ");
|
||||
sb.append("join cliente_corporativo cli on cli.clientecorporativo_id = cli.clientecorporativo_id ");
|
||||
sb.append("where 1 = 1 ");
|
||||
|
||||
if(dataInicial != null && dataFinal != null){
|
||||
sb.append(" and cc.data_lancamento between :dataInicial and :dataFinal ");
|
||||
}
|
||||
|
||||
if (empresaId != null) {
|
||||
sb.append(" and c.clientecorporativo_id = :clienteId ");
|
||||
}
|
||||
|
||||
if (numContrato != null) {
|
||||
sb.append(" and c.numcontrato in (:numContrato) ");
|
||||
}
|
||||
|
||||
if (grupoContratoId != null) {
|
||||
sb.append(" and c.grupocontrato_id = :grupoContratoId ");
|
||||
}
|
||||
|
||||
if (status != null) {
|
||||
sb.append(" and c.status_contrato = :status ");
|
||||
}
|
||||
|
||||
sb.append("group by ");
|
||||
sb.append(" cli.identificacao, ");
|
||||
sb.append(" cli.nomclientecorp, ");
|
||||
sb.append(" c.numcontrato, ");
|
||||
sb.append(" c.data_inicial, ");
|
||||
sb.append(" c.valor_contrato, a.adicao");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void processaParametros() throws Exception {
|
||||
}
|
||||
|
||||
public List<RelatorioSaldosContratosBean> getLsDadosRelatorio() {
|
||||
return lsDadosRelatorio;
|
||||
}
|
||||
|
||||
public void setLsDadosRelatorio(List<RelatorioSaldosContratosBean> lsDadosRelatorio) {
|
||||
this.setCollectionDataSource(new JRBeanCollectionDataSource(lsDadosRelatorio));
|
||||
this.lsDadosRelatorio = lsDadosRelatorio;
|
||||
}
|
||||
}
|
|
@ -49,10 +49,15 @@ public class RelatorioVendasBilheteiro extends Relatorio {
|
|||
sql.append(" c.CORRIDA_ID SERVICO, ");
|
||||
sql.append(" c.IMPORTEPEDAGIO PEDAGIO," );
|
||||
sql.append(" c.IMPORTETAXAEMBARQUE TX_EMBARQUE," );
|
||||
sql.append(" c.IMPORTEOUTROS OUTROS," );
|
||||
sql.append(" c.IMPORTEOUTROS OUTROS,");
|
||||
sql.append(" c.IMPORTESEGURO AS VALOR_SEGURO, ");
|
||||
sql.append(" c.PRECIOPAGADO TARIFA," );
|
||||
sql.append(" (coalesce(c.PRECIOPAGADO,0)+(coalesce(c.IMPORTEPEDAGIO,0)+ coalesce(c.IMPORTETAXAEMBARQUE,0)+ coalesce(c.IMPORTESEGURO,0)+ coalesce(c.IMPORTEOUTROS,0))) TOTAL_BILHETE, " );
|
||||
sql.append(" cs.DESCCLASE CLASSE ");
|
||||
sql.append(" cs.DESCCLASE CLASSE, ");
|
||||
|
||||
sql.append(" fp.DESCPAGO as FORMA_PAGO, ");
|
||||
sql.append(" r.ruta_id as NUM_LINHA, ");
|
||||
sql.append(" r.DESCRUTA as DESC_LINHA ");
|
||||
|
||||
sql.append(" from caja c ");
|
||||
sql.append(" join PUNTO_VENTA pv on c.PUNTOVENTA_ID = pv.PUNTOVENTA_ID ");
|
||||
|
@ -62,6 +67,11 @@ public class RelatorioVendasBilheteiro extends Relatorio {
|
|||
sql.append(" join CATEGORIA ct on ct.CATEGORIA_ID = c.CATEGORIA_ID ");
|
||||
sql.append(" join CLASE_SERVICIO cs on cs.CLASESERVICIO_ID = c.CLASESERVICIO_ID ");
|
||||
sql.append(" join MARCA m on m.marca_id = c.marca_id ");
|
||||
|
||||
sql.append(" left join caja_formapago cfp on c.caja_id = cfp.caja_id and cfp.activo = 1 ");
|
||||
sql.append(" left join forma_pago fp on cfp.formapago_id = fp.formapago_id and fp.activo = 1 ");
|
||||
sql.append(" left join ruta r on r.ruta_id = c.ruta_id and r.activo = 1 ");
|
||||
|
||||
sql.append(" where ");
|
||||
sql.append(" m.EMPRESA_ID = :EMPRESA_ID ");
|
||||
sql.append(" and c.FECHORVENTA >= :DATA_INICIAL ");
|
||||
|
@ -119,7 +129,10 @@ public class RelatorioVendasBilheteiro extends Relatorio {
|
|||
dataResult.put("SERVICO", rset.getBigDecimal("SERVICO"));
|
||||
dataResult.put("DATA_VIAGEM", rset.getDate("DATA_VIAGEM"));
|
||||
dataResult.put("CLASSE", rset.getString("CLASSE"));
|
||||
|
||||
dataResult.put("FORMA_PAGO", rset.getString("FORMA_PAGO"));
|
||||
dataResult.put("VALOR_SEGURO", rset.getBigDecimal("VALOR_SEGURO"));
|
||||
dataResult.put("NUM_LINHA", rset.getString("NUM_LINHA"));
|
||||
dataResult.put("DESC_LINHA", rset.getString("DESC_LINHA"));
|
||||
this.dados.add(dataResult);
|
||||
|
||||
}
|
||||
|
|
|
@ -32,7 +32,13 @@ public class RelatorioW2ITaxaEmbarqueAnalitico extends Relatorio {
|
|||
Map<String, Object> parametros = this.relatorio.getParametros();
|
||||
String puntosVentaIds = (String) parametros.get("NUMPUNTOVENTA");
|
||||
List<Integer> puntosVentaIdsList = new ArrayList<>();
|
||||
boolean isTodasAgencias = false;
|
||||
for (String id : puntosVentaIds.split(",")) {
|
||||
if("-1".equals(id)) {
|
||||
isTodasAgencias = true;
|
||||
break;
|
||||
}
|
||||
|
||||
puntosVentaIdsList.add(Integer.parseInt(id));
|
||||
}
|
||||
lsDadosRelatorio = new ArrayList<RelatorioW2IBean>();
|
||||
|
@ -40,7 +46,7 @@ public class RelatorioW2ITaxaEmbarqueAnalitico extends Relatorio {
|
|||
Integer origemID = (Integer) parametros.get("ORIGEN_ID");
|
||||
Integer destinoID = (Integer) parametros.get("DESTINO_ID");
|
||||
|
||||
String sql = getSql(puntosVentaIdsList.size(), empresaID, origemID, destinoID);
|
||||
String sql = getSql(isTodasAgencias ? 0 : puntosVentaIdsList.size(), empresaID, origemID, destinoID);
|
||||
|
||||
NamedParameterStatement stmt = new NamedParameterStatement(conexao, sql);
|
||||
|
||||
|
@ -60,13 +66,14 @@ public class RelatorioW2ITaxaEmbarqueAnalitico extends Relatorio {
|
|||
stmt.setInt("ORIGEN_ID", destinoID);
|
||||
|
||||
int paramIndex = 0;
|
||||
for (Integer id : puntosVentaIdsList) {
|
||||
stmt.setInt("PUNTO_VENTA_"+paramIndex, id);
|
||||
paramIndex++;
|
||||
if(!isTodasAgencias) {
|
||||
for (Integer id : puntosVentaIdsList) {
|
||||
stmt.setInt("PUNTO_VENTA_"+paramIndex, id);
|
||||
paramIndex++;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
rset = stmt.executeQuery();
|
||||
rset = stmt.executeQuery();
|
||||
|
||||
RelatorioW2IBean relatorioW2IBean = null;
|
||||
while (rset.next()) {
|
||||
|
@ -136,8 +143,8 @@ public class RelatorioW2ITaxaEmbarqueAnalitico extends Relatorio {
|
|||
sql.append("AND po.parada_id = :ORIGEN_ID ");
|
||||
if(destinoID != null)
|
||||
sql.append("AND pd.parada_id = :DESTINO_ID ");
|
||||
|
||||
gerarBindPuntoVenta(numPuntosVentaIds, sql);
|
||||
if(numPuntosVentaIds > 0)
|
||||
gerarBindPuntoVenta(numPuntosVentaIds, sql);
|
||||
|
||||
sql.append(" UNION ");
|
||||
|
||||
|
@ -171,7 +178,8 @@ public class RelatorioW2ITaxaEmbarqueAnalitico extends Relatorio {
|
|||
if(destinoID != null)
|
||||
sql.append("AND pd.parada_id = :DESTINO_ID ");
|
||||
|
||||
gerarBindPuntoVenta(numPuntosVentaIds, sql);
|
||||
if(numPuntosVentaIds > 0)
|
||||
gerarBindPuntoVenta(numPuntosVentaIds, sql);
|
||||
|
||||
sql.append("ORDER BY dataVenda ASC ");
|
||||
|
||||
|
|
|
@ -0,0 +1,27 @@
|
|||
#geral
|
||||
msg.noData=Não foi possivel obter dados com os parâmetros informados.
|
||||
|
||||
header.titulo.relatorio=RELATÓRIO DETALHES DO CONTRATO
|
||||
header.empresa=Empresa:
|
||||
header.contrato=Contrato:
|
||||
header.valor.contrato=Valor Contrato:
|
||||
header.valor.adicionado=Valor Adicionado:
|
||||
header.executado=Executado:
|
||||
header.quota.actual=Quota Atual:
|
||||
|
||||
#Labels header
|
||||
label.tiquete=Tiquete
|
||||
label.dataVendae=Data Venda
|
||||
label.tipoDoc=Tipo Doc.
|
||||
label.fatura=Fatura
|
||||
label.estado=Estado
|
||||
label.origem=Origem
|
||||
label.destino=Destino
|
||||
label.passagem=Passagem
|
||||
label.preco=Preço
|
||||
label.precioPagado=Tarifa
|
||||
label.empresa=Empresa
|
||||
label.passageiroCod=Cód. Passageiro
|
||||
label.passageiroNome=Nome Passageiro
|
||||
label.legalizado=Legalizado
|
||||
label.nomeUsuario=Usuário
|
|
@ -0,0 +1,10 @@
|
|||
header.titulo.relatorio = CREDITS - CONTRACT BALANCES
|
||||
label.adicional = Additional
|
||||
label.contrato = Contract
|
||||
label.executado = Executed
|
||||
label.inicio = Start
|
||||
label.nit = Nit
|
||||
label.razaoSocial = Company Name
|
||||
label.saldo = Balance
|
||||
label.valorContrato = Contract Value
|
||||
msg.noData = It was not possible to obtain data with the parameters entered.
|
|
@ -0,0 +1,10 @@
|
|||
header.titulo.relatorio = CRÉDITOS - SALDOS DE CONTRATO
|
||||
label.adicional = Adicional
|
||||
label.contrato = Contrato
|
||||
label.executado = Ejecutado
|
||||
label.inicio = Comenzar
|
||||
label.nit = Nit
|
||||
label.razaoSocial = Razón Social
|
||||
label.saldo = Balance
|
||||
label.valorContrato = Valor del contrato
|
||||
msg.noData = No fue posible obtener datos con los parámetros ingresados.
|
|
@ -0,0 +1,10 @@
|
|||
header.titulo.relatorio = CRÉDITS - SOLDES DU CONTRAT
|
||||
label.adicional = Supplémentaire
|
||||
label.contrato = Contracter
|
||||
label.executado = Exécuté
|
||||
label.inicio = Commencer
|
||||
label.nit = Nit
|
||||
label.razaoSocial = Raison d'entreprise
|
||||
label.saldo = Équilibre
|
||||
label.valorContrato = Valeur du contrat
|
||||
msg.noData = Il n'a pas été possible d'obtenir des données avec les paramètres saisis.
|
|
@ -0,0 +1,12 @@
|
|||
#geral
|
||||
header.titulo.relatorio = CRÉDITOS - SALDOS DE CONTRATOS
|
||||
label.adicional = Adicional
|
||||
label.contrato = Contrato
|
||||
label.executado = Executado
|
||||
label.inicio = Início
|
||||
#Labels header
|
||||
label.nit = Nit
|
||||
label.razaoSocial = Razão Social
|
||||
label.saldo = Saldo
|
||||
label.valorContrato = Valor Contrato
|
||||
msg.noData = Não foi possivel obter dados com os parâmetros informados.
|
Binary file not shown.
|
@ -0,0 +1,572 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="RelatorioCorridas" pageWidth="1205" pageHeight="595" orientation="Landscape" whenNoDataType="NoDataSection" columnWidth="1165" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="dc003bfe-c791-4f88-acc6-736e8c97f7e2">
|
||||
<property name="ireport.zoom" value="1.5026296018031564"/>
|
||||
<property name="ireport.x" value="0"/>
|
||||
<property name="ireport.y" value="0"/>
|
||||
<property name="net.sf.jasperreports.export.xls.exclude.origin.band.2" value="title"/>
|
||||
<property name="net.sf.jasperreports.export.xls.exclude.origin.band.3" value="pageHeader"/>
|
||||
<property name="net.sf.jasperreports.export.xls.exclude.origin.keep.first.band.2" value="columnHeader"/>
|
||||
<property name="net.sf.jasperreports.export.xls.remove.empty.space.between.rows" value="true"/>
|
||||
<property name="net.sf.jasperreports.export.xls.remove.empty.space.between.columns" value="true"/>
|
||||
<parameter name="EMPRESA" class="java.lang.String"/>
|
||||
<parameter name="DATA_DE" class="java.sql.Date"/>
|
||||
<parameter name="DATA_ATE" class="java.sql.Date"/>
|
||||
<parameter name="CONTRATO" class="java.lang.Long"/>
|
||||
<parameter name="VALOR_CONTRATO" class="java.math.BigDecimal"/>
|
||||
<parameter name="VALOR_ADICIONADO" class="java.math.BigDecimal"/>
|
||||
<parameter name="EXECUTADO" class="java.math.BigDecimal"/>
|
||||
<parameter name="QUOTA_ATUAL" class="java.lang.Number"/>
|
||||
<field name="tiquete" class="java.lang.String"/>
|
||||
<field name="dataVenda" class="java.util.Date"/>
|
||||
<field name="tipoDoc" class="java.lang.String"/>
|
||||
<field name="fatura" class="java.lang.String"/>
|
||||
<field name="estado" class="java.lang.String"/>
|
||||
<field name="origem" class="java.lang.String"/>
|
||||
<field name="destino" class="java.lang.String"/>
|
||||
<field name="passagem" class="java.lang.String"/>
|
||||
<field name="preco" class="java.math.BigDecimal"/>
|
||||
<field name="precioPagado" class="java.math.BigDecimal"/>
|
||||
<field name="empresa" class="java.lang.String"/>
|
||||
<field name="passageiroCod" class="java.lang.Long"/>
|
||||
<field name="nomePassageiro" class="java.lang.String"/>
|
||||
<field name="legalizado" class="java.lang.Integer"/>
|
||||
<field name="nomeUsuario" class="java.lang.String"/>
|
||||
<field name="clienteId" class="java.lang.Long"/>
|
||||
<field name="nomCliente" class="java.lang.String"/>
|
||||
<group name="Group CliCorp">
|
||||
<groupExpression><![CDATA[$F{clienteId}]]></groupExpression>
|
||||
<groupHeader>
|
||||
<band height="50">
|
||||
<textField isStretchWithOverflow="true">
|
||||
<reportElement uuid="dcc61ae7-46e2-46f3-b54f-4f5a8cfb85c7" stretchType="RelativeToTallestObject" x="0" y="11" width="63" height="20"/>
|
||||
<box>
|
||||
<topPen lineWidth="0.25"/>
|
||||
<leftPen lineWidth="0.25"/>
|
||||
<bottomPen lineWidth="0.25"/>
|
||||
<rightPen lineWidth="0.25"/>
|
||||
</box>
|
||||
<textElement>
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{clienteId}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true">
|
||||
<reportElement uuid="ddb0ab2d-c8eb-4b88-9a90-506a5c7c7862" stretchType="RelativeToTallestObject" x="63" y="11" width="197" height="20"/>
|
||||
<box>
|
||||
<topPen lineWidth="0.25"/>
|
||||
<leftPen lineWidth="0.25"/>
|
||||
<bottomPen lineWidth="0.25"/>
|
||||
<rightPen lineWidth="0.25"/>
|
||||
</box>
|
||||
<textElement>
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{nomCliente}]]></textFieldExpression>
|
||||
</textField>
|
||||
</band>
|
||||
</groupHeader>
|
||||
<groupFooter>
|
||||
<band height="50"/>
|
||||
</groupFooter>
|
||||
</group>
|
||||
<background>
|
||||
<band splitType="Stretch"/>
|
||||
</background>
|
||||
<title>
|
||||
<band height="102" splitType="Stretch">
|
||||
<textField>
|
||||
<reportElement uuid="20a767f1-d0d5-4485-9d6c-3c762e97bc70" x="0" y="60" width="141" height="20"/>
|
||||
<textElement markup="none"/>
|
||||
<textFieldExpression><![CDATA[$R{header.valor.contrato}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement uuid="96572021-01f9-4d05-938c-11ca5721f81c" x="1015" y="0" width="149" height="20"/>
|
||||
<textElement textAlignment="Right"/>
|
||||
<textFieldExpression><![CDATA[new java.util.Date()]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement uuid="e24ed6f5-a072-4bda-b735-ef26b59fa179" x="0" y="80" width="141" height="20"/>
|
||||
<textElement markup="none"/>
|
||||
<textFieldExpression><![CDATA[$R{header.valor.adicionado}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement uuid="efc3193a-c42a-4935-95ee-84f086336574" x="302" y="80" width="79" height="20"/>
|
||||
<textElement markup="none"/>
|
||||
<textFieldExpression><![CDATA[$R{header.quota.atual}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="dd/MM/yyyy">
|
||||
<reportElement uuid="110852df-8752-44d8-98ae-534a5cb8d5e2" x="141" y="80" width="161" height="20"/>
|
||||
<textElement/>
|
||||
<textFieldExpression><![CDATA[$P{VALOR_ADICIONADO}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="dd/MM/yyyy">
|
||||
<reportElement uuid="4d410653-2490-49ff-b176-530feaeab535" x="381" y="80" width="463" height="20"/>
|
||||
<textElement/>
|
||||
<textFieldExpression><![CDATA[$P{QUOTA_ATUAL}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement uuid="2879d620-3c3b-465f-9459-f94154b9e9c7" x="381" y="40" width="463" height="20"/>
|
||||
<textElement/>
|
||||
<textFieldExpression><![CDATA[$P{EXECUTADO}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement uuid="06d06c40-6984-4a32-90e2-48e1d8cdcc9b" x="141" y="60" width="161" height="20"/>
|
||||
<textElement/>
|
||||
<textFieldExpression><![CDATA[$P{VALOR_CONTRATO}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement uuid="577578e8-3add-42a2-88c0-df7647b59844" x="0" y="40" width="141" height="20"/>
|
||||
<textElement markup="none"/>
|
||||
<textFieldExpression><![CDATA[$R{header.contrato}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement uuid="481f4afe-f201-4297-b478-8b654dbc15e6" x="302" y="60" width="79" height="20"/>
|
||||
<textElement markup="none"/>
|
||||
<textFieldExpression><![CDATA[$R{header.destino}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement uuid="145e00cf-dde5-4ca3-b799-b15de40d3606" x="381" y="60" width="463" height="20"/>
|
||||
<textElement/>
|
||||
<textFieldExpression><![CDATA[]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement uuid="f6fe1c2b-09af-45e6-9883-f6aa7fe3016c" x="0" y="0" width="1015" height="20"/>
|
||||
<textElement markup="none">
|
||||
<font size="14" isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{header.titulo.relatorio}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement uuid="6c1cdde2-67c3-4a56-9744-5a4d249115f9" x="141" y="40" width="161" height="20"/>
|
||||
<textElement/>
|
||||
<textFieldExpression><![CDATA[$P{CONTRATO}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement uuid="4f697f82-2de4-4665-af6f-4cc16270d631" x="302" y="40" width="79" height="20"/>
|
||||
<textElement markup="none"/>
|
||||
<textFieldExpression><![CDATA[$R{header.executado}]]></textFieldExpression>
|
||||
</textField>
|
||||
</band>
|
||||
</title>
|
||||
<pageHeader>
|
||||
<band splitType="Stretch"/>
|
||||
</pageHeader>
|
||||
<columnHeader>
|
||||
<band height="20" splitType="Stretch">
|
||||
<textField isStretchWithOverflow="true">
|
||||
<reportElement uuid="c06195d4-ba58-47be-aef7-1563b191de27" stretchType="RelativeToTallestObject" x="0" y="0" width="152" height="20"/>
|
||||
<box>
|
||||
<topPen lineWidth="0.25"/>
|
||||
<leftPen lineWidth="0.25"/>
|
||||
<bottomPen lineWidth="0.25"/>
|
||||
<rightPen lineWidth="0.25"/>
|
||||
</box>
|
||||
<textElement markup="none">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{label.tiquete}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true">
|
||||
<reportElement uuid="1ecd7528-3828-4cf5-a9c8-f85e07e4ba28" stretchType="RelativeToTallestObject" x="231" y="0" width="51" height="20"/>
|
||||
<box>
|
||||
<topPen lineWidth="0.25"/>
|
||||
<leftPen lineWidth="0.25"/>
|
||||
<bottomPen lineWidth="0.25"/>
|
||||
<rightPen lineWidth="0.25"/>
|
||||
</box>
|
||||
<textElement textAlignment="Center" markup="none">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{label.tipoDoc}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true">
|
||||
<reportElement uuid="1f6c0d70-a694-43e9-8ad3-aebfb91eed3c" stretchType="RelativeToTallestObject" x="422" y="0" width="90" height="20"/>
|
||||
<box>
|
||||
<topPen lineWidth="0.25"/>
|
||||
<leftPen lineWidth="0.25"/>
|
||||
<bottomPen lineWidth="0.25"/>
|
||||
<rightPen lineWidth="0.25"/>
|
||||
</box>
|
||||
<textElement markup="none">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{label.origem}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true">
|
||||
<reportElement uuid="d1cbc7f5-2632-46d4-a223-c97577604537" stretchType="RelativeToTallestObject" x="512" y="0" width="90" height="20"/>
|
||||
<box>
|
||||
<topPen lineWidth="0.25"/>
|
||||
<leftPen lineWidth="0.25"/>
|
||||
<bottomPen lineWidth="0.25"/>
|
||||
<rightPen lineWidth="0.25"/>
|
||||
</box>
|
||||
<textElement markup="none">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{label.destino}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true">
|
||||
<reportElement uuid="838fd9f8-3595-4eb7-8b1c-a593b306bce3" stretchType="RelativeToTallestObject" x="649" y="0" width="31" height="20"/>
|
||||
<box>
|
||||
<topPen lineWidth="0.25"/>
|
||||
<leftPen lineWidth="0.25"/>
|
||||
<bottomPen lineWidth="0.25"/>
|
||||
<rightPen lineWidth="0.25"/>
|
||||
</box>
|
||||
<textElement textAlignment="Center" markup="none">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{label.preco}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true">
|
||||
<reportElement uuid="162ffd2f-696a-459d-ae23-2df0b308fa43" stretchType="RelativeToTallestObject" x="282" y="0" width="51" height="20"/>
|
||||
<box>
|
||||
<topPen lineWidth="0.25"/>
|
||||
<leftPen lineWidth="0.25"/>
|
||||
<bottomPen lineWidth="0.25"/>
|
||||
<rightPen lineWidth="0.25"/>
|
||||
</box>
|
||||
<textElement textAlignment="Center" markup="none">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{label.fatura}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true">
|
||||
<reportElement uuid="1729b2fd-2ba3-40b0-851f-69f5349a8eb7" stretchType="RelativeToTallestObject" x="964" y="0" width="90" height="20"/>
|
||||
<box>
|
||||
<topPen lineWidth="0.25"/>
|
||||
<leftPen lineWidth="0.25"/>
|
||||
<bottomPen lineWidth="0.25"/>
|
||||
<rightPen lineWidth="0.25"/>
|
||||
</box>
|
||||
<textElement markup="none">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{label.nomeUsuario}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true">
|
||||
<reportElement uuid="a7946998-7bb2-4936-b0c4-c54ca8749dfa" stretchType="RelativeToTallestObject" x="152" y="0" width="79" height="20"/>
|
||||
<box>
|
||||
<topPen lineWidth="0.25"/>
|
||||
<leftPen lineWidth="0.25"/>
|
||||
<bottomPen lineWidth="0.25"/>
|
||||
<rightPen lineWidth="0.25"/>
|
||||
</box>
|
||||
<textElement markup="none">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{label.dataVenda}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true">
|
||||
<reportElement uuid="1f8dae8e-1925-477d-b9de-059ba69c84f5" stretchType="RelativeToTallestObject" x="333" y="0" width="89" height="20"/>
|
||||
<box>
|
||||
<topPen lineWidth="0.25"/>
|
||||
<leftPen lineWidth="0.25"/>
|
||||
<bottomPen lineWidth="0.25"/>
|
||||
<rightPen lineWidth="0.25"/>
|
||||
</box>
|
||||
<textElement textAlignment="Center" markup="none">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{label.estado}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true">
|
||||
<reportElement uuid="b0ab84b3-6e08-46f6-bf81-4c04b7ee39b0" stretchType="RelativeToTallestObject" x="602" y="0" width="47" height="20"/>
|
||||
<box>
|
||||
<topPen lineWidth="0.25"/>
|
||||
<leftPen lineWidth="0.25"/>
|
||||
<bottomPen lineWidth="0.25"/>
|
||||
<rightPen lineWidth="0.25"/>
|
||||
</box>
|
||||
<textElement textAlignment="Center" markup="none">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{label.passagem}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true">
|
||||
<reportElement uuid="21c168b8-f4de-4072-a332-f747335b42e1" stretchType="RelativeToTallestObject" x="680" y="0" width="53" height="20"/>
|
||||
<box>
|
||||
<topPen lineWidth="0.25"/>
|
||||
<leftPen lineWidth="0.25"/>
|
||||
<bottomPen lineWidth="0.25"/>
|
||||
<rightPen lineWidth="0.25"/>
|
||||
</box>
|
||||
<textElement textAlignment="Center" markup="none">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{label.precioPagado}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true">
|
||||
<reportElement uuid="599cec9c-c85c-4b21-aca1-083af166804f" stretchType="RelativeToTallestObject" x="733" y="0" width="53" height="20"/>
|
||||
<box>
|
||||
<topPen lineWidth="0.25"/>
|
||||
<leftPen lineWidth="0.25"/>
|
||||
<bottomPen lineWidth="0.25"/>
|
||||
<rightPen lineWidth="0.25"/>
|
||||
</box>
|
||||
<textElement textAlignment="Center" markup="none">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{label.empresa}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true">
|
||||
<reportElement uuid="59b102ac-758c-4143-b54c-3a8c209bd027" stretchType="RelativeToTallestObject" x="786" y="0" width="53" height="20"/>
|
||||
<box>
|
||||
<topPen lineWidth="0.25"/>
|
||||
<leftPen lineWidth="0.25"/>
|
||||
<bottomPen lineWidth="0.25"/>
|
||||
<rightPen lineWidth="0.25"/>
|
||||
</box>
|
||||
<textElement textAlignment="Center" markup="none">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{label.passageiroCod}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true">
|
||||
<reportElement uuid="96250910-b2bf-49de-95d2-72465cce0769" stretchType="RelativeToTallestObject" x="839" y="0" width="46" height="20"/>
|
||||
<box>
|
||||
<topPen lineWidth="0.25"/>
|
||||
<leftPen lineWidth="0.25"/>
|
||||
<bottomPen lineWidth="0.25"/>
|
||||
<rightPen lineWidth="0.25"/>
|
||||
</box>
|
||||
<textElement textAlignment="Center" markup="none">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{label.passageiroNome}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true">
|
||||
<reportElement uuid="d4abd954-bbc3-482b-bd2f-bfe2f030eaad" stretchType="RelativeToTallestObject" x="885" y="0" width="79" height="20"/>
|
||||
<box>
|
||||
<topPen lineWidth="0.25"/>
|
||||
<leftPen lineWidth="0.25"/>
|
||||
<bottomPen lineWidth="0.25"/>
|
||||
<rightPen lineWidth="0.25"/>
|
||||
</box>
|
||||
<textElement textAlignment="Center" markup="none">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{label.legalizado}]]></textFieldExpression>
|
||||
</textField>
|
||||
</band>
|
||||
</columnHeader>
|
||||
<detail>
|
||||
<band height="20" splitType="Stretch">
|
||||
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||
<reportElement uuid="7a8c77d7-97f8-4e37-8ebc-97c6ab05eaed" stretchType="RelativeToTallestObject" x="0" y="0" width="152" height="20"/>
|
||||
<box>
|
||||
<topPen lineWidth="0.25"/>
|
||||
<leftPen lineWidth="0.25"/>
|
||||
<bottomPen lineWidth="0.25"/>
|
||||
<rightPen lineWidth="0.25"/>
|
||||
</box>
|
||||
<textElement>
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{tiquete}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true">
|
||||
<reportElement uuid="b31c9ab2-0cfe-4db1-83ca-57aba183a88b" stretchType="RelativeToTallestObject" x="231" y="0" width="51" height="20"/>
|
||||
<box>
|
||||
<topPen lineWidth="0.25"/>
|
||||
<leftPen lineWidth="0.25"/>
|
||||
<bottomPen lineWidth="0.25"/>
|
||||
<rightPen lineWidth="0.25"/>
|
||||
</box>
|
||||
<textElement textAlignment="Center">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{tipoDoc}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true">
|
||||
<reportElement uuid="4768cf26-74b8-48a5-b8eb-cbcc63d5d968" stretchType="RelativeToTallestObject" x="422" y="0" width="90" height="20"/>
|
||||
<box>
|
||||
<topPen lineWidth="0.25"/>
|
||||
<leftPen lineWidth="0.25"/>
|
||||
<bottomPen lineWidth="0.25"/>
|
||||
<rightPen lineWidth="0.25"/>
|
||||
</box>
|
||||
<textElement>
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{origem}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" pattern="dd/MM/yyyy HH:mm">
|
||||
<reportElement uuid="301029ea-db8d-48bd-8e13-ed67f6140081" stretchType="RelativeToTallestObject" x="152" y="0" width="79" height="20"/>
|
||||
<box>
|
||||
<topPen lineWidth="0.25"/>
|
||||
<leftPen lineWidth="0.25"/>
|
||||
<bottomPen lineWidth="0.25"/>
|
||||
<rightPen lineWidth="0.25"/>
|
||||
</box>
|
||||
<textElement>
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{dataVenda}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true">
|
||||
<reportElement uuid="7da11eed-f034-4eb3-bba2-0c7547074136" stretchType="RelativeToTallestObject" x="282" y="0" width="51" height="20"/>
|
||||
<box>
|
||||
<topPen lineWidth="0.25"/>
|
||||
<leftPen lineWidth="0.25"/>
|
||||
<bottomPen lineWidth="0.25"/>
|
||||
<rightPen lineWidth="0.25"/>
|
||||
</box>
|
||||
<textElement textAlignment="Center">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{fatura}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true">
|
||||
<reportElement uuid="2cdbea3c-5b25-4bd1-b7ae-d5ed59952e57" stretchType="RelativeToTallestObject" x="512" y="0" width="90" height="20"/>
|
||||
<box>
|
||||
<topPen lineWidth="0.25"/>
|
||||
<leftPen lineWidth="0.25"/>
|
||||
<bottomPen lineWidth="0.25"/>
|
||||
<rightPen lineWidth="0.25"/>
|
||||
</box>
|
||||
<textElement>
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{destino}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true">
|
||||
<reportElement uuid="a1e05674-d013-4612-8bcd-0f08cc68849f" stretchType="RelativeToTallestObject" x="964" y="0" width="90" height="20"/>
|
||||
<box>
|
||||
<topPen lineWidth="0.25"/>
|
||||
<leftPen lineWidth="0.25"/>
|
||||
<bottomPen lineWidth="0.25"/>
|
||||
<rightPen lineWidth="0.25"/>
|
||||
</box>
|
||||
<textElement>
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{nomeUsuario}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true">
|
||||
<reportElement uuid="cf5d37e0-ce0e-4089-bcaa-edf01bf46fc3" stretchType="RelativeToTallestObject" x="649" y="0" width="31" height="20"/>
|
||||
<box>
|
||||
<topPen lineWidth="0.25"/>
|
||||
<leftPen lineWidth="0.25"/>
|
||||
<bottomPen lineWidth="0.25"/>
|
||||
<rightPen lineWidth="0.25"/>
|
||||
</box>
|
||||
<textElement textAlignment="Center">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{preco}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true">
|
||||
<reportElement uuid="21f02b6f-9b56-46ef-af2f-3a602603e8a8" stretchType="RelativeToTallestObject" x="602" y="0" width="47" height="20"/>
|
||||
<box>
|
||||
<topPen lineWidth="0.25"/>
|
||||
<leftPen lineWidth="0.25"/>
|
||||
<bottomPen lineWidth="0.25"/>
|
||||
<rightPen lineWidth="0.25"/>
|
||||
</box>
|
||||
<textElement textAlignment="Center">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{passagem}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" pattern="#,##0.00">
|
||||
<reportElement uuid="5a0bd7e9-4f49-4024-8b2b-6444f3f23cb4" stretchType="RelativeToTallestObject" x="680" y="0" width="53" height="20"/>
|
||||
<box>
|
||||
<topPen lineWidth="0.25"/>
|
||||
<leftPen lineWidth="0.25"/>
|
||||
<bottomPen lineWidth="0.25"/>
|
||||
<rightPen lineWidth="0.25"/>
|
||||
</box>
|
||||
<textElement textAlignment="Center">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{precioPagado}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" pattern="#,##0.00">
|
||||
<reportElement uuid="0682a7fc-c7f6-4494-afeb-4d4267136edb" stretchType="RelativeToTallestObject" x="733" y="0" width="53" height="20"/>
|
||||
<box>
|
||||
<topPen lineWidth="0.25"/>
|
||||
<leftPen lineWidth="0.25"/>
|
||||
<bottomPen lineWidth="0.25"/>
|
||||
<rightPen lineWidth="0.25"/>
|
||||
</box>
|
||||
<textElement textAlignment="Center">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{empresa}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" pattern="#,##0.00">
|
||||
<reportElement uuid="668a4faf-a3c9-48a6-9724-3072d7455b25" stretchType="RelativeToTallestObject" x="786" y="0" width="53" height="20"/>
|
||||
<box>
|
||||
<topPen lineWidth="0.25"/>
|
||||
<leftPen lineWidth="0.25"/>
|
||||
<bottomPen lineWidth="0.25"/>
|
||||
<rightPen lineWidth="0.25"/>
|
||||
</box>
|
||||
<textElement textAlignment="Center">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{passageiroCod}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true">
|
||||
<reportElement uuid="a3487a1b-d380-47f5-857b-b70e10504790" stretchType="RelativeToTallestObject" x="839" y="0" width="46" height="20"/>
|
||||
<box>
|
||||
<topPen lineWidth="0.25"/>
|
||||
<leftPen lineWidth="0.25"/>
|
||||
<bottomPen lineWidth="0.25"/>
|
||||
<rightPen lineWidth="0.25"/>
|
||||
</box>
|
||||
<textElement textAlignment="Center">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{nomePassageiro}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" pattern="dd/MM/yyyy HH:mm">
|
||||
<reportElement uuid="da7ad02c-f0d2-46c8-8c86-0a6dcc32f606" stretchType="RelativeToTallestObject" x="885" y="0" width="79" height="20"/>
|
||||
<box>
|
||||
<topPen lineWidth="0.25"/>
|
||||
<leftPen lineWidth="0.25"/>
|
||||
<bottomPen lineWidth="0.25"/>
|
||||
<rightPen lineWidth="0.25"/>
|
||||
</box>
|
||||
<textElement textAlignment="Center">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{legalizado}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true">
|
||||
<reportElement uuid="1f7cb37d-4f34-448b-9438-b4a2b858552e" stretchType="RelativeToTallestObject" x="333" y="0" width="89" height="20"/>
|
||||
<box>
|
||||
<topPen lineWidth="0.25"/>
|
||||
<leftPen lineWidth="0.25"/>
|
||||
<bottomPen lineWidth="0.25"/>
|
||||
<rightPen lineWidth="0.25"/>
|
||||
</box>
|
||||
<textElement textAlignment="Center">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{estado}]]></textFieldExpression>
|
||||
</textField>
|
||||
</band>
|
||||
</detail>
|
||||
<columnFooter>
|
||||
<band splitType="Stretch"/>
|
||||
</columnFooter>
|
||||
<pageFooter>
|
||||
<band splitType="Stretch"/>
|
||||
</pageFooter>
|
||||
<summary>
|
||||
<band splitType="Stretch"/>
|
||||
</summary>
|
||||
<noData>
|
||||
<band height="35">
|
||||
<textField>
|
||||
<reportElement uuid="ed192bd7-4c3c-4f7f-a805-6d71234d513c" x="0" y="8" width="910" height="20"/>
|
||||
<textElement markup="none">
|
||||
<font size="11" isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{msg.noData}]]></textFieldExpression>
|
||||
</textField>
|
||||
</band>
|
||||
</noData>
|
||||
</jasperReport>
|
Binary file not shown.
|
@ -0,0 +1,326 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="RelatorioCorridas" pageWidth="1205" pageHeight="595" orientation="Landscape" whenNoDataType="NoDataSection" columnWidth="1165" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="dc003bfe-c791-4f88-acc6-736e8c97f7e2">
|
||||
<property name="ireport.zoom" value="1.5026296018031564"/>
|
||||
<property name="ireport.x" value="0"/>
|
||||
<property name="ireport.y" value="0"/>
|
||||
<property name="net.sf.jasperreports.export.xls.exclude.origin.band.2" value="title"/>
|
||||
<property name="net.sf.jasperreports.export.xls.exclude.origin.band.3" value="pageHeader"/>
|
||||
<property name="net.sf.jasperreports.export.xls.exclude.origin.keep.first.band.2" value="columnHeader"/>
|
||||
<property name="net.sf.jasperreports.export.xls.remove.empty.space.between.rows" value="true"/>
|
||||
<property name="net.sf.jasperreports.export.xls.remove.empty.space.between.columns" value="true"/>
|
||||
<parameter name="DATA" class="java.util.Date"/>
|
||||
<field name="nit" class="java.lang.String"/>
|
||||
<field name="razaoSocial" class="java.lang.String"/>
|
||||
<field name="numContrato" class="java.lang.String"/>
|
||||
<field name="dataInicio" class="java.util.Date"/>
|
||||
<field name="valorContrato" class="java.math.BigDecimal"/>
|
||||
<field name="adicional" class="java.math.BigDecimal"/>
|
||||
<field name="executado" class="java.math.BigDecimal"/>
|
||||
<field name="saldoAtual" class="java.math.BigDecimal"/>
|
||||
<variable name="totalValorContrato" class="java.math.BigDecimal" calculation="Sum">
|
||||
<variableExpression><![CDATA[$F{valorContrato}]]></variableExpression>
|
||||
</variable>
|
||||
<variable name="totalAdicional" class="java.math.BigDecimal" calculation="Sum">
|
||||
<variableExpression><![CDATA[$F{adicional}]]></variableExpression>
|
||||
</variable>
|
||||
<variable name="totalExecutado" class="java.math.BigDecimal" calculation="Sum">
|
||||
<variableExpression><![CDATA[$F{executado}]]></variableExpression>
|
||||
</variable>
|
||||
<variable name="totalSaldo" class="java.math.BigDecimal" calculation="Sum">
|
||||
<variableExpression><![CDATA[$F{saldoAtual}]]></variableExpression>
|
||||
</variable>
|
||||
<background>
|
||||
<band splitType="Stretch"/>
|
||||
</background>
|
||||
<title>
|
||||
<band height="62" splitType="Stretch">
|
||||
<textField>
|
||||
<reportElement uuid="96572021-01f9-4d05-938c-11ca5721f81c" x="0" y="20" width="149" height="20"/>
|
||||
<textElement textAlignment="Left"/>
|
||||
<textFieldExpression><![CDATA[new java.util.Date()]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement uuid="f6fe1c2b-09af-45e6-9883-f6aa7fe3016c" x="0" y="0" width="1015" height="20"/>
|
||||
<textElement markup="none">
|
||||
<font size="14" isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{header.titulo.relatorio}]]></textFieldExpression>
|
||||
</textField>
|
||||
</band>
|
||||
</title>
|
||||
<pageHeader>
|
||||
<band splitType="Stretch"/>
|
||||
</pageHeader>
|
||||
<columnHeader>
|
||||
<band height="20" splitType="Stretch">
|
||||
<textField isStretchWithOverflow="true">
|
||||
<reportElement uuid="c06195d4-ba58-47be-aef7-1563b191de27" stretchType="RelativeToTallestObject" x="0" y="0" width="70" height="20"/>
|
||||
<box>
|
||||
<topPen lineWidth="0.25"/>
|
||||
<leftPen lineWidth="0.25"/>
|
||||
<bottomPen lineWidth="0.25"/>
|
||||
<rightPen lineWidth="0.25"/>
|
||||
</box>
|
||||
<textElement markup="none">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{label.nit}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true">
|
||||
<reportElement uuid="1ecd7528-3828-4cf5-a9c8-f85e07e4ba28" stretchType="RelativeToTallestObject" x="312" y="0" width="51" height="20"/>
|
||||
<box>
|
||||
<topPen lineWidth="0.25"/>
|
||||
<leftPen lineWidth="0.25"/>
|
||||
<bottomPen lineWidth="0.25"/>
|
||||
<rightPen lineWidth="0.25"/>
|
||||
</box>
|
||||
<textElement textAlignment="Center" markup="none">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{label.contrato}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true">
|
||||
<reportElement uuid="1f6c0d70-a694-43e9-8ad3-aebfb91eed3c" stretchType="RelativeToTallestObject" x="503" y="0" width="90" height="20"/>
|
||||
<box>
|
||||
<topPen lineWidth="0.25"/>
|
||||
<leftPen lineWidth="0.25"/>
|
||||
<bottomPen lineWidth="0.25"/>
|
||||
<rightPen lineWidth="0.25"/>
|
||||
</box>
|
||||
<textElement markup="none">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{label.adicional}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true">
|
||||
<reportElement uuid="838fd9f8-3595-4eb7-8b1c-a593b306bce3" stretchType="RelativeToTallestObject" x="593" y="0" width="59" height="20"/>
|
||||
<box>
|
||||
<topPen lineWidth="0.25"/>
|
||||
<leftPen lineWidth="0.25"/>
|
||||
<bottomPen lineWidth="0.25"/>
|
||||
<rightPen lineWidth="0.25"/>
|
||||
</box>
|
||||
<textElement textAlignment="Center" markup="none">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{label.executado}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true">
|
||||
<reportElement uuid="162ffd2f-696a-459d-ae23-2df0b308fa43" stretchType="RelativeToTallestObject" x="363" y="0" width="51" height="20"/>
|
||||
<box>
|
||||
<topPen lineWidth="0.25"/>
|
||||
<leftPen lineWidth="0.25"/>
|
||||
<bottomPen lineWidth="0.25"/>
|
||||
<rightPen lineWidth="0.25"/>
|
||||
</box>
|
||||
<textElement textAlignment="Center" markup="none">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{label.inicio}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true">
|
||||
<reportElement uuid="a7946998-7bb2-4936-b0c4-c54ca8749dfa" stretchType="RelativeToTallestObject" x="70" y="0" width="242" height="20"/>
|
||||
<box>
|
||||
<topPen lineWidth="0.25"/>
|
||||
<leftPen lineWidth="0.25"/>
|
||||
<bottomPen lineWidth="0.25"/>
|
||||
<rightPen lineWidth="0.25"/>
|
||||
</box>
|
||||
<textElement markup="none">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{label.razaoSocial}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true">
|
||||
<reportElement uuid="1f8dae8e-1925-477d-b9de-059ba69c84f5" stretchType="RelativeToTallestObject" x="414" y="0" width="89" height="20"/>
|
||||
<box>
|
||||
<topPen lineWidth="0.25"/>
|
||||
<leftPen lineWidth="0.25"/>
|
||||
<bottomPen lineWidth="0.25"/>
|
||||
<rightPen lineWidth="0.25"/>
|
||||
</box>
|
||||
<textElement textAlignment="Center" markup="none">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{label.valorContrato}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true">
|
||||
<reportElement uuid="21c168b8-f4de-4072-a332-f747335b42e1" stretchType="RelativeToTallestObject" x="652" y="0" width="69" height="20"/>
|
||||
<box>
|
||||
<topPen lineWidth="0.25"/>
|
||||
<leftPen lineWidth="0.25"/>
|
||||
<bottomPen lineWidth="0.25"/>
|
||||
<rightPen lineWidth="0.25"/>
|
||||
</box>
|
||||
<textElement textAlignment="Center" markup="none">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{label.saldo}]]></textFieldExpression>
|
||||
</textField>
|
||||
</band>
|
||||
</columnHeader>
|
||||
<detail>
|
||||
<band height="20" splitType="Stretch">
|
||||
<textField isStretchWithOverflow="true">
|
||||
<reportElement uuid="7a8c77d7-97f8-4e37-8ebc-97c6ab05eaed" stretchType="RelativeToTallestObject" x="0" y="0" width="70" height="20"/>
|
||||
<box>
|
||||
<topPen lineWidth="0.25"/>
|
||||
<leftPen lineWidth="0.25"/>
|
||||
<bottomPen lineWidth="0.25"/>
|
||||
<rightPen lineWidth="0.25"/>
|
||||
</box>
|
||||
<textElement>
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{nit}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true">
|
||||
<reportElement uuid="b31c9ab2-0cfe-4db1-83ca-57aba183a88b" stretchType="RelativeToTallestObject" x="312" y="0" width="51" height="20"/>
|
||||
<box>
|
||||
<topPen lineWidth="0.25"/>
|
||||
<leftPen lineWidth="0.25"/>
|
||||
<bottomPen lineWidth="0.25"/>
|
||||
<rightPen lineWidth="0.25"/>
|
||||
</box>
|
||||
<textElement textAlignment="Center">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{numContrato}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" pattern="¤ #,##0.00">
|
||||
<reportElement uuid="4768cf26-74b8-48a5-b8eb-cbcc63d5d968" stretchType="RelativeToTallestObject" x="503" y="0" width="90" height="20"/>
|
||||
<box>
|
||||
<topPen lineWidth="0.25"/>
|
||||
<leftPen lineWidth="0.25"/>
|
||||
<bottomPen lineWidth="0.25"/>
|
||||
<rightPen lineWidth="0.25"/>
|
||||
</box>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{adicional}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" pattern="dd/MM/yyyy HH:mm">
|
||||
<reportElement uuid="301029ea-db8d-48bd-8e13-ed67f6140081" stretchType="RelativeToTallestObject" x="70" y="0" width="242" height="20"/>
|
||||
<box>
|
||||
<topPen lineWidth="0.25"/>
|
||||
<leftPen lineWidth="0.25"/>
|
||||
<bottomPen lineWidth="0.25"/>
|
||||
<rightPen lineWidth="0.25"/>
|
||||
</box>
|
||||
<textElement>
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{razaoSocial}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" pattern="dd/MM/yyyy">
|
||||
<reportElement uuid="7da11eed-f034-4eb3-bba2-0c7547074136" stretchType="RelativeToTallestObject" x="363" y="0" width="51" height="20"/>
|
||||
<box>
|
||||
<topPen lineWidth="0.25"/>
|
||||
<leftPen lineWidth="0.25"/>
|
||||
<bottomPen lineWidth="0.25"/>
|
||||
<rightPen lineWidth="0.25"/>
|
||||
</box>
|
||||
<textElement textAlignment="Center">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{dataInicio}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" pattern="¤ #,##0.00">
|
||||
<reportElement uuid="cf5d37e0-ce0e-4089-bcaa-edf01bf46fc3" stretchType="RelativeToTallestObject" x="593" y="0" width="59" height="20"/>
|
||||
<box>
|
||||
<topPen lineWidth="0.25"/>
|
||||
<leftPen lineWidth="0.25"/>
|
||||
<bottomPen lineWidth="0.25"/>
|
||||
<rightPen lineWidth="0.25"/>
|
||||
</box>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{executado}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" pattern="¤ #,##0.00">
|
||||
<reportElement uuid="5a0bd7e9-4f49-4024-8b2b-6444f3f23cb4" stretchType="RelativeToTallestObject" x="652" y="0" width="69" height="20"/>
|
||||
<box>
|
||||
<topPen lineWidth="0.25"/>
|
||||
<leftPen lineWidth="0.25"/>
|
||||
<bottomPen lineWidth="0.25"/>
|
||||
<rightPen lineWidth="0.25"/>
|
||||
</box>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{saldoAtual}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" pattern="¤ #,##0.00">
|
||||
<reportElement uuid="1f7cb37d-4f34-448b-9438-b4a2b858552e" stretchType="RelativeToTallestObject" x="414" y="0" width="89" height="20"/>
|
||||
<box>
|
||||
<topPen lineWidth="0.25"/>
|
||||
<leftPen lineWidth="0.25"/>
|
||||
<bottomPen lineWidth="0.25"/>
|
||||
<rightPen lineWidth="0.25"/>
|
||||
</box>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{valorContrato}]]></textFieldExpression>
|
||||
</textField>
|
||||
</band>
|
||||
</detail>
|
||||
<columnFooter>
|
||||
<band splitType="Stretch"/>
|
||||
</columnFooter>
|
||||
<pageFooter>
|
||||
<band splitType="Stretch"/>
|
||||
</pageFooter>
|
||||
<summary>
|
||||
<band height="24" splitType="Stretch">
|
||||
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||
<reportElement uuid="031670b3-591b-4717-8bb1-e867b1e8f1b2" stretchType="RelativeToTallestObject" x="325" y="0" width="89" height="20"/>
|
||||
<textElement textAlignment="Right" verticalAlignment="Middle" markup="none">
|
||||
<font fontName="SansSerif" size="6" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA["Total"]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement uuid="d169ead1-c200-4cea-b249-e8a257d16fa5" stretchType="RelativeToTallestObject" x="652" y="0" width="69" height="20"/>
|
||||
<textElement textAlignment="Right" verticalAlignment="Middle">
|
||||
<font size="6" isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$V{totalSaldo}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement uuid="437c41be-28e9-4440-9e30-5a84160ddbed" stretchType="RelativeToTallestObject" x="593" y="0" width="59" height="20"/>
|
||||
<textElement textAlignment="Right" verticalAlignment="Middle">
|
||||
<font size="6" isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$V{totalExecutado}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement uuid="3039dd63-6e97-4d8d-bc6e-8a17eaf962c3" stretchType="RelativeToTallestObject" x="503" y="0" width="90" height="20"/>
|
||||
<textElement textAlignment="Right" verticalAlignment="Middle">
|
||||
<font size="6" isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$V{totalAdicional}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement uuid="3424d8bf-d824-430a-922a-b42b5ba230ae" stretchType="RelativeToTallestObject" x="414" y="0" width="89" height="20"/>
|
||||
<textElement textAlignment="Right" verticalAlignment="Middle">
|
||||
<font size="6" isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$V{totalValorContrato}]]></textFieldExpression>
|
||||
</textField>
|
||||
</band>
|
||||
</summary>
|
||||
<noData>
|
||||
<band height="35">
|
||||
<textField>
|
||||
<reportElement uuid="ed192bd7-4c3c-4f7f-a805-6d71234d513c" x="0" y="8" width="910" height="20"/>
|
||||
<textElement markup="none">
|
||||
<font size="11" isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{msg.noData}]]></textFieldExpression>
|
||||
</textField>
|
||||
</band>
|
||||
</noData>
|
||||
</jasperReport>
|
Binary file not shown.
|
@ -1,7 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="RelatorioVendasBilheteiro" pageWidth="1900" pageHeight="595" orientation="Landscape" whenNoDataType="NoDataSection" columnWidth="1860" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="b92fb063-a827-4619-8a69-5c78e3afbb8c">
|
||||
<property name="ireport.zoom" value="1.7715610000000048"/>
|
||||
<property name="ireport.x" value="2276"/>
|
||||
<property name="ireport.x" value="1598"/>
|
||||
<property name="ireport.y" value="0"/>
|
||||
<property name="net.sf.jasperreports.export.xls.exclude.origin.band.2" value="pageHeader"/>
|
||||
<property name="net.sf.jasperreports.export.xls.exclude.origin.keep.first.band.2" value="columnHeader"/>
|
||||
|
@ -32,6 +32,10 @@
|
|||
<field name="TOTAL_BILHETE" class="java.math.BigDecimal"/>
|
||||
<field name="CLASSE" class="java.lang.String"/>
|
||||
<field name="OUTROS" class="java.math.BigDecimal"/>
|
||||
<field name="FORMA_PAGO" class="java.lang.String"/>
|
||||
<field name="NUM_LINHA" class="java.lang.String"/>
|
||||
<field name="DESC_LINHA" class="java.lang.String"/>
|
||||
<field name="VALOR_SEGURO" class="java.math.BigDecimal"/>
|
||||
<background>
|
||||
<band splitType="Stretch"/>
|
||||
</background>
|
||||
|
@ -129,261 +133,321 @@
|
|||
</band>
|
||||
</pageHeader>
|
||||
<columnHeader>
|
||||
<band height="15" splitType="Stretch">
|
||||
<band height="17" splitType="Stretch">
|
||||
<staticText>
|
||||
<reportElement uuid="148c467d-8b63-428c-8221-9219699357ba" x="244" y="0" width="92" height="15"/>
|
||||
<reportElement uuid="148c467d-8b63-428c-8221-9219699357ba" x="207" y="1" width="70" height="15"/>
|
||||
<textElement textAlignment="Left" markup="none">
|
||||
<font size="8" isBold="true"/>
|
||||
<font size="7" isBold="true"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Cód. Bilheteiro]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement uuid="8e3279f3-98b6-4f3d-9804-91dd4a58dd96" x="0" y="0" width="84" height="15"/>
|
||||
<reportElement uuid="8e3279f3-98b6-4f3d-9804-91dd4a58dd96" x="0" y="1" width="67" height="15"/>
|
||||
<textElement textAlignment="Left" markup="none">
|
||||
<font size="8" isBold="true"/>
|
||||
<font size="7" isBold="true"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Cód. Agência]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement uuid="10b5fd24-35e6-4e26-b46c-d57521e8225a" x="336" y="0" width="175" height="15"/>
|
||||
<reportElement uuid="10b5fd24-35e6-4e26-b46c-d57521e8225a" x="277" y="1" width="136" height="15"/>
|
||||
<textElement textAlignment="Left" markup="none">
|
||||
<font size="8" isBold="true"/>
|
||||
<font size="7" isBold="true"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Nome Bilheteiro]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement uuid="b58aa408-1e97-42ca-9908-20720337c538" mode="Transparent" x="512" y="0" width="91" height="15" forecolor="#000000" backcolor="#FFFFFF"/>
|
||||
<reportElement uuid="b58aa408-1e97-42ca-9908-20720337c538" mode="Transparent" x="413" y="1" width="64" height="15" forecolor="#000000" backcolor="#FFFFFF"/>
|
||||
<textElement textAlignment="Left" 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="7" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
|
||||
<paragraph lineSpacing="Single"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Num. Passagem]]></text>
|
||||
<text><![CDATA[Num. Passag.]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement uuid="f3e8c856-93bd-41f2-8da5-3a1898409894" mode="Transparent" x="1239" y="0" width="50" height="15" forecolor="#000000" backcolor="#FFFFFF"/>
|
||||
<reportElement uuid="f3e8c856-93bd-41f2-8da5-3a1898409894" mode="Transparent" x="1381" y="1" width="36" height="15" forecolor="#000000" backcolor="#FFFFFF"/>
|
||||
<textElement textAlignment="Left" 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="7" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
|
||||
<paragraph lineSpacing="Single"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Pedágio]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement uuid="9819c745-3e18-49a6-a9f0-67386dc37552" mode="Transparent" x="814" y="0" width="210" height="15" forecolor="#000000" backcolor="#FFFFFF"/>
|
||||
<reportElement uuid="9819c745-3e18-49a6-a9f0-67386dc37552" mode="Transparent" x="676" y="1" width="199" height="15" forecolor="#000000" backcolor="#FFFFFF"/>
|
||||
<textElement textAlignment="Left" 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="7" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
|
||||
<paragraph lineSpacing="Single"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Destino]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement uuid="0f12e71c-4bea-4274-bd7e-e58a5e265bc4" mode="Transparent" x="1289" y="0" width="50" height="15" forecolor="#000000" backcolor="#FFFFFF"/>
|
||||
<reportElement uuid="0f12e71c-4bea-4274-bd7e-e58a5e265bc4" mode="Transparent" x="1417" y="1" width="50" height="15" forecolor="#000000" backcolor="#FFFFFF"/>
|
||||
<textElement textAlignment="Left" 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="7" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
|
||||
<paragraph lineSpacing="Single"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Tarifa]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement uuid="cba6abf0-5eaa-44cf-9011-8a532a8281b7" x="84" y="0" width="160" height="15"/>
|
||||
<reportElement uuid="cba6abf0-5eaa-44cf-9011-8a532a8281b7" x="67" y="1" width="140" height="15"/>
|
||||
<textElement textAlignment="Left" markup="none">
|
||||
<font size="8" isBold="true"/>
|
||||
<font size="7" isBold="true"/>
|
||||
</textElement>
|
||||
<text><![CDATA[ Descrição Agência]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement uuid="3e99e1ff-08e3-4832-8053-8108eee2b7a7" mode="Transparent" x="603" y="0" width="210" height="15" forecolor="#000000" backcolor="#FFFFFF"/>
|
||||
<reportElement uuid="3e99e1ff-08e3-4832-8053-8108eee2b7a7" mode="Transparent" x="477" y="1" width="199" height="15" forecolor="#000000" backcolor="#FFFFFF"/>
|
||||
<textElement textAlignment="Left" 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="7" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
|
||||
<paragraph lineSpacing="Single"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Origem]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement uuid="83f66491-4f20-403b-8e81-7487d5a03d5f" mode="Transparent" x="1167" y="0" width="72" height="15" forecolor="#000000" backcolor="#FFFFFF"/>
|
||||
<reportElement uuid="83f66491-4f20-403b-8e81-7487d5a03d5f" mode="Transparent" x="1316" y="1" width="65" height="15" forecolor="#000000" backcolor="#FFFFFF"/>
|
||||
<textElement textAlignment="Left" 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="7" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
|
||||
<paragraph lineSpacing="Single"/>
|
||||
</textElement>
|
||||
<text><![CDATA[T. Embarque]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement uuid="3c0dca5a-1295-4922-aeaa-0f96aab0b9b9" mode="Transparent" x="1024" y="0" width="143" height="15" forecolor="#000000" backcolor="#FFFFFF"/>
|
||||
<reportElement uuid="3c0dca5a-1295-4922-aeaa-0f96aab0b9b9" mode="Transparent" x="1086" y="1" width="72" height="15" forecolor="#000000" backcolor="#FFFFFF"/>
|
||||
<textElement textAlignment="Left" 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="7" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
|
||||
<paragraph lineSpacing="Single"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Tipo do Bilhete]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement uuid="c5ac6452-b793-4851-a3d9-c82827933b06" mode="Transparent" x="1389" y="0" width="70" height="15" forecolor="#000000" backcolor="#FFFFFF"/>
|
||||
<reportElement uuid="c5ac6452-b793-4851-a3d9-c82827933b06" mode="Transparent" x="1517" y="1" width="69" height="15" forecolor="#000000" backcolor="#FFFFFF"/>
|
||||
<textElement textAlignment="Left" 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="7" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
|
||||
<paragraph lineSpacing="Single"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Total Bilhetes]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement uuid="39b203b7-c27c-474e-a12b-a3fe0e1fd88a" mode="Transparent" x="1459" y="0" width="135" height="15" forecolor="#000000" backcolor="#FFFFFF"/>
|
||||
<reportElement uuid="39b203b7-c27c-474e-a12b-a3fe0e1fd88a" mode="Transparent" x="1586" y="1" width="82" height="15" forecolor="#000000" backcolor="#FFFFFF"/>
|
||||
<textElement textAlignment="Left" 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="7" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
|
||||
<paragraph lineSpacing="Single"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Status da Passagem]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement uuid="f9b05f2d-0048-4518-ba5f-36311649801a" mode="Transparent" x="1594" y="0" width="45" height="15" forecolor="#000000" backcolor="#FFFFFF"/>
|
||||
<reportElement uuid="f9b05f2d-0048-4518-ba5f-36311649801a" mode="Transparent" x="1668" y="1" width="33" height="15" forecolor="#000000" backcolor="#FFFFFF"/>
|
||||
<textElement textAlignment="Left" 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="7" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
|
||||
<paragraph lineSpacing="Single"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Serviço]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement uuid="9e64f28e-32bb-41a5-bcda-fe0b863830bd" mode="Transparent" x="1780" y="0" width="80" height="15" forecolor="#000000" backcolor="#FFFFFF"/>
|
||||
<reportElement uuid="9e64f28e-32bb-41a5-bcda-fe0b863830bd" mode="Transparent" x="1805" y="1" width="54" height="15" forecolor="#000000" backcolor="#FFFFFF"/>
|
||||
<textElement textAlignment="Left" 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="7" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
|
||||
<paragraph lineSpacing="Single"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Data Viagem]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement uuid="60a0ad6b-68e7-4b8f-819e-ac863ac6ba68" x="1639" y="0" width="141" height="15"/>
|
||||
<reportElement uuid="60a0ad6b-68e7-4b8f-819e-ac863ac6ba68" x="1701" y="1" width="103" height="15"/>
|
||||
<textElement markup="none">
|
||||
<font size="8" isBold="true"/>
|
||||
<font size="7" isBold="true"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Classe]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement uuid="875633e7-1078-4040-95e2-6e414146fcac" mode="Transparent" x="1339" y="0" width="50" height="15" forecolor="#000000" backcolor="#FFFFFF"/>
|
||||
<reportElement uuid="875633e7-1078-4040-95e2-6e414146fcac" mode="Transparent" x="1467" y="1" width="50" height="15" forecolor="#000000" backcolor="#FFFFFF"/>
|
||||
<textElement textAlignment="Left" 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="7" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
|
||||
<paragraph lineSpacing="Single"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Outros]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement uuid="a587db5b-1f80-4be7-8739-4511621fa0ff" mode="Transparent" x="1158" y="1" width="109" height="15" forecolor="#000000" backcolor="#FFFFFF"/>
|
||||
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
|
||||
<font fontName="SansSerif" size="7" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
|
||||
<paragraph lineSpacing="Single"/>
|
||||
</textElement>
|
||||
<text><![CDATA[F. Pagamento]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement uuid="109a40f6-7c21-4975-a560-0486a9111282" mode="Transparent" x="1267" y="1" width="49" height="15" forecolor="#000000" backcolor="#FFFFFF"/>
|
||||
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
|
||||
<font fontName="SansSerif" size="7" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
|
||||
<paragraph lineSpacing="Single"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Seguro]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement uuid="c9977b3d-0e56-4e5f-912e-bebb6577f879" mode="Transparent" x="865" y="1" width="61" height="15" forecolor="#000000" backcolor="#FFFFFF"/>
|
||||
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
|
||||
<font fontName="SansSerif" size="7" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
|
||||
<paragraph lineSpacing="Single"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Num. Linha]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement uuid="72adc966-5f40-4a08-9bcc-02c7f4397370" mode="Transparent" x="926" y="1" width="159" height="15" forecolor="#000000" backcolor="#FFFFFF"/>
|
||||
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
|
||||
<font fontName="SansSerif" size="7" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
|
||||
<paragraph lineSpacing="Single"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Desc. Linha]]></text>
|
||||
</staticText>
|
||||
</band>
|
||||
</columnHeader>
|
||||
<detail>
|
||||
<band height="15" splitType="Stretch">
|
||||
<band height="17" splitType="Stretch">
|
||||
<textField isStretchWithOverflow="true" isBlankWhenNull="false">
|
||||
<reportElement uuid="bc091860-adab-47d8-8352-982bc8e484a3" x="0" y="0" width="84" height="15"/>
|
||||
<reportElement uuid="bc091860-adab-47d8-8352-982bc8e484a3" x="0" y="1" width="67" height="15"/>
|
||||
<textElement textAlignment="Left">
|
||||
<font fontName="SansSerif" size="8"/>
|
||||
<font fontName="SansSerif" size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{CODIGO_AGENCIA}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" isBlankWhenNull="false">
|
||||
<reportElement uuid="e3a43e5d-2326-47c4-9d47-8c4d69d18d99" x="84" y="0" width="160" height="15"/>
|
||||
<reportElement uuid="e3a43e5d-2326-47c4-9d47-8c4d69d18d99" x="67" y="1" width="140" height="15"/>
|
||||
<textElement textAlignment="Left">
|
||||
<font fontName="SansSerif" size="8"/>
|
||||
<font fontName="SansSerif" size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{NOME_AGENCIA}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" isBlankWhenNull="false">
|
||||
<reportElement uuid="82c36c16-1662-4af9-a285-c935ab350e79" x="244" y="0" width="92" height="15"/>
|
||||
<reportElement uuid="82c36c16-1662-4af9-a285-c935ab350e79" x="207" y="1" width="70" height="15"/>
|
||||
<textElement textAlignment="Left">
|
||||
<font fontName="SansSerif" size="8"/>
|
||||
<font fontName="SansSerif" size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{CODIGO_BILHETEIRO}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" isBlankWhenNull="false">
|
||||
<reportElement uuid="ef45dd24-19e8-4e92-9759-f8e7a5c990eb" x="336" y="0" width="175" height="15"/>
|
||||
<reportElement uuid="ef45dd24-19e8-4e92-9759-f8e7a5c990eb" x="277" y="1" width="136" height="15"/>
|
||||
<textElement textAlignment="Left">
|
||||
<font fontName="SansSerif" size="8"/>
|
||||
<font fontName="SansSerif" size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{NOME_BILHETEIRO}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" isBlankWhenNull="false">
|
||||
<reportElement uuid="4cd8a33f-6aaa-47cb-949e-38c6b74d3d39" x="512" y="0" width="91" height="15"/>
|
||||
<reportElement uuid="4cd8a33f-6aaa-47cb-949e-38c6b74d3d39" x="413" y="1" width="64" height="15"/>
|
||||
<textElement textAlignment="Left">
|
||||
<font fontName="SansSerif" size="8"/>
|
||||
<font fontName="SansSerif" size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{NUMERO_PASSAGEM}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" isBlankWhenNull="false">
|
||||
<reportElement uuid="17011486-0d4c-4e22-b534-48e0bb025673" x="603" y="0" width="210" height="15"/>
|
||||
<reportElement uuid="17011486-0d4c-4e22-b534-48e0bb025673" x="477" y="1" width="199" height="15"/>
|
||||
<textElement textAlignment="Left">
|
||||
<font fontName="SansSerif" size="8"/>
|
||||
<font fontName="SansSerif" size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{ORIGEM}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" isBlankWhenNull="false">
|
||||
<reportElement uuid="a89c84e4-0e13-4e85-a565-9eb0bc6e5423" x="814" y="0" width="210" height="15"/>
|
||||
<reportElement uuid="a89c84e4-0e13-4e85-a565-9eb0bc6e5423" x="676" y="1" width="189" height="15"/>
|
||||
<textElement textAlignment="Left">
|
||||
<font fontName="SansSerif" size="8"/>
|
||||
<font fontName="SansSerif" size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{DESTINO}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" isBlankWhenNull="false">
|
||||
<reportElement uuid="7be97f5f-b36b-4679-befb-e5f2b4532963" x="1024" y="0" width="143" height="15"/>
|
||||
<reportElement uuid="7be97f5f-b36b-4679-befb-e5f2b4532963" x="1086" y="0" width="72" height="15"/>
|
||||
<textElement textAlignment="Left">
|
||||
<font fontName="SansSerif" size="8"/>
|
||||
<font fontName="SansSerif" size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{TIPO_BILHETE}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="false">
|
||||
<reportElement uuid="7c1e2d86-f9ce-4730-866c-dc6cbdd0cf2c" x="1167" y="0" width="72" height="15"/>
|
||||
<reportElement uuid="7c1e2d86-f9ce-4730-866c-dc6cbdd0cf2c" x="1316" y="1" width="65" height="15"/>
|
||||
<textElement textAlignment="Left">
|
||||
<font fontName="SansSerif" size="8"/>
|
||||
<font fontName="SansSerif" size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{TX_EMBARQUE}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="false">
|
||||
<reportElement uuid="7c0246f5-739b-440c-a242-915117bd9fd1" x="1239" y="0" width="50" height="15"/>
|
||||
<reportElement uuid="7c0246f5-739b-440c-a242-915117bd9fd1" x="1381" y="1" width="36" height="15"/>
|
||||
<textElement textAlignment="Left">
|
||||
<font fontName="SansSerif" size="8"/>
|
||||
<font fontName="SansSerif" size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{PEDAGIO}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="false">
|
||||
<reportElement uuid="dd401917-6047-4e1b-9722-31fe8d096594" x="1289" y="0" width="50" height="15"/>
|
||||
<reportElement uuid="dd401917-6047-4e1b-9722-31fe8d096594" x="1417" y="1" width="50" height="15"/>
|
||||
<textElement textAlignment="Left">
|
||||
<font fontName="SansSerif" size="8"/>
|
||||
<font fontName="SansSerif" size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{TARIFA}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="false">
|
||||
<reportElement uuid="4dafd61b-ce2b-4690-b029-2a1382113099" x="1389" y="0" width="70" height="15"/>
|
||||
<reportElement uuid="4dafd61b-ce2b-4690-b029-2a1382113099" x="1517" y="1" width="69" height="15"/>
|
||||
<textElement textAlignment="Left">
|
||||
<font fontName="SansSerif" size="8"/>
|
||||
<font fontName="SansSerif" size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{TOTAL_BILHETE}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" isBlankWhenNull="false">
|
||||
<reportElement uuid="8ad565b3-b12c-4fef-a1c7-836e7415436d" x="1459" y="0" width="135" height="15"/>
|
||||
<reportElement uuid="8ad565b3-b12c-4fef-a1c7-836e7415436d" x="1586" y="1" width="82" height="15"/>
|
||||
<textElement textAlignment="Left">
|
||||
<font fontName="SansSerif" size="8"/>
|
||||
<font fontName="SansSerif" size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{STATUS_PASSAGEM}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" isBlankWhenNull="false">
|
||||
<reportElement uuid="b0200cfc-1b6b-4636-9f4b-5fe5d87c2687" x="1594" y="0" width="45" height="15"/>
|
||||
<reportElement uuid="b0200cfc-1b6b-4636-9f4b-5fe5d87c2687" x="1668" y="1" width="33" height="15"/>
|
||||
<textElement textAlignment="Left">
|
||||
<font fontName="SansSerif" size="8"/>
|
||||
<font fontName="SansSerif" size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{SERVICO}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" pattern="dd/MM/yyyy" isBlankWhenNull="false">
|
||||
<reportElement uuid="27ec5d64-d949-4b02-a4a7-d6c5db93b3bd" x="1780" y="0" width="80" height="15"/>
|
||||
<reportElement uuid="27ec5d64-d949-4b02-a4a7-d6c5db93b3bd" x="1805" y="1" width="54" height="15"/>
|
||||
<textElement textAlignment="Left">
|
||||
<font fontName="SansSerif" size="8"/>
|
||||
<font fontName="SansSerif" size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{DATA_VIAGEM}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" isBlankWhenNull="false">
|
||||
<reportElement uuid="f5f01da5-4ea3-41ba-8b58-b1f7e8e70601" x="1639" y="0" width="141" height="15"/>
|
||||
<reportElement uuid="f5f01da5-4ea3-41ba-8b58-b1f7e8e70601" x="1701" y="1" width="103" height="15"/>
|
||||
<textElement textAlignment="Left">
|
||||
<font fontName="SansSerif" size="8"/>
|
||||
<font fontName="SansSerif" size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{CLASSE}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="false">
|
||||
<reportElement uuid="8ea95b30-4077-4b9c-843a-0ec275a5a2e9" x="1339" y="0" width="50" height="15"/>
|
||||
<reportElement uuid="8ea95b30-4077-4b9c-843a-0ec275a5a2e9" x="1467" y="1" width="50" height="15"/>
|
||||
<textElement textAlignment="Left">
|
||||
<font fontName="SansSerif" size="8"/>
|
||||
<font fontName="SansSerif" size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{OUTROS}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" isBlankWhenNull="false">
|
||||
<reportElement uuid="f9b933fd-8935-4e7e-8413-9cfeb26acead" x="1158" y="0" width="109" height="15"/>
|
||||
<textElement textAlignment="Left">
|
||||
<font fontName="SansSerif" size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{FORMA_PAGO}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="false">
|
||||
<reportElement uuid="13ac6ae0-ff26-4126-9df9-8b50705990aa" x="1267" y="1" width="49" height="15"/>
|
||||
<textElement textAlignment="Left">
|
||||
<font fontName="SansSerif" size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{VALOR_SEGURO}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" isBlankWhenNull="false">
|
||||
<reportElement uuid="b94b4ed0-8c08-4d1c-996a-4f2d843a0feb" x="926" y="1" width="159" height="15"/>
|
||||
<textElement textAlignment="Left">
|
||||
<font fontName="SansSerif" size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{DESC_LINHA}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" isBlankWhenNull="false">
|
||||
<reportElement uuid="1958e57a-de97-4d73-8e9f-b17d9ea660c7" x="865" y="1" width="61" height="15"/>
|
||||
<textElement textAlignment="Left">
|
||||
<font fontName="SansSerif" size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{NUM_LINHA}]]></textFieldExpression>
|
||||
</textField>
|
||||
</band>
|
||||
</detail>
|
||||
<noData>
|
||||
|
|
|
@ -33,6 +33,7 @@ public class ItemReporteControleEstoqueBoletos {
|
|||
private String ID;
|
||||
private String tipoAidf;
|
||||
private Integer quantidade;
|
||||
private Integer puntoVentaId;
|
||||
|
||||
|
||||
public Integer getEstacionId() {
|
||||
|
@ -199,6 +200,13 @@ public class ItemReporteControleEstoqueBoletos {
|
|||
public void setQuantidade(Integer quantidade) {
|
||||
this.quantidade = quantidade;
|
||||
}
|
||||
|
||||
public Integer getPuntoVentaId() {
|
||||
return puntoVentaId;
|
||||
}
|
||||
public void setPuntoVentaId(Integer puntoVentaId) {
|
||||
this.puntoVentaId = puntoVentaId;
|
||||
}
|
||||
@Override
|
||||
public int hashCode() {
|
||||
final int prime = 31;
|
||||
|
|
|
@ -0,0 +1,31 @@
|
|||
package com.rjconsultores.ventaboletos.relatorios.utilitarios;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
@Getter
|
||||
@Setter
|
||||
public class RelatorioDetalheContratoBean {
|
||||
|
||||
private String tiquete;
|
||||
private Date dataVenda;
|
||||
private String tipoDoc;
|
||||
private String fatura;
|
||||
private String estado;
|
||||
private String origem;
|
||||
private String destino;
|
||||
private String passagem;
|
||||
private BigDecimal preco;
|
||||
private BigDecimal precioPagado;
|
||||
private String empresa;
|
||||
private Long passageiroCod;
|
||||
private String nomePassageiro;
|
||||
private Integer legalizado;
|
||||
private String nomeUsuario;
|
||||
private Long clienteId;
|
||||
private String nomCliente;
|
||||
|
||||
}
|
|
@ -0,0 +1,22 @@
|
|||
package com.rjconsultores.ventaboletos.relatorios.utilitarios;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
@Getter
|
||||
@Setter
|
||||
public class RelatorioSaldosContratosBean {
|
||||
|
||||
private String nit;
|
||||
private String razaoSocial;
|
||||
private String numContrato;
|
||||
private Date dataInicio;
|
||||
private BigDecimal valorContrato;
|
||||
private BigDecimal adicional;
|
||||
private BigDecimal executado;
|
||||
private BigDecimal saldoAtual;
|
||||
|
||||
}
|
|
@ -0,0 +1,140 @@
|
|||
/*
|
||||
* To change this template, choose Tools | Templates
|
||||
* and open the template in the editor.
|
||||
*/
|
||||
package com.rjconsultores.ventaboletos.web.gui.controladores.catalogos;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.context.annotation.Scope;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.zkoss.util.resource.Labels;
|
||||
import org.zkoss.zhtml.Messagebox;
|
||||
import org.zkoss.zk.ui.Component;
|
||||
import org.zkoss.zk.ui.event.Event;
|
||||
import org.zkoss.zk.ui.event.EventListener;
|
||||
import org.zkoss.zul.Paging;
|
||||
import org.zkoss.zul.Textbox;
|
||||
|
||||
import com.rjconsultores.ventaboletos.entidad.TipoIdentificacion;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyListbox;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.paginacion.HibernateSearchObject;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.paginacion.PagedListWrapper;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderTipoIdentificacion;
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
/**
|
||||
*
|
||||
* @author Administrador
|
||||
*/
|
||||
@Controller("busquedaTipoDocumentoController")
|
||||
@Scope("prototype")
|
||||
public class BusquedaTipoDocumentoController extends MyGenericForwardComposer {
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private static final long serialVersionUID = 4233778656660930728L;
|
||||
@Autowired
|
||||
private transient PagedListWrapper<TipoIdentificacion> plwClaseServico;
|
||||
private MyListbox tipoIdentificacionList;
|
||||
private Paging pagingTipoIdentificacion;
|
||||
private Textbox txtNome;
|
||||
private static Logger log = LogManager.getLogger(BusquedaTipoDocumentoController.class);
|
||||
|
||||
public MyListbox getTipoIdentificacionList() {
|
||||
return tipoIdentificacionList;
|
||||
}
|
||||
|
||||
public void setTipoIdentificacionList(MyListbox TipoIdentificacionList) {
|
||||
this.tipoIdentificacionList = TipoIdentificacionList;
|
||||
}
|
||||
|
||||
public Paging getPagingTipoIdentificacion() {
|
||||
return pagingTipoIdentificacion;
|
||||
}
|
||||
|
||||
public void setPagingTipoIdentificacion(Paging pagingTipoIdentificacion) {
|
||||
this.pagingTipoIdentificacion = pagingTipoIdentificacion;
|
||||
}
|
||||
|
||||
public Textbox getTxtNome() {
|
||||
return txtNome;
|
||||
}
|
||||
|
||||
public void setTxtNome(Textbox txtNome) {
|
||||
this.txtNome = txtNome;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void doAfterCompose(Component comp) throws Exception {
|
||||
super.doAfterCompose(comp);
|
||||
|
||||
tipoIdentificacionList.setItemRenderer(new RenderTipoIdentificacion());
|
||||
tipoIdentificacionList.addEventListener("onDoubleClick", new EventListener() {
|
||||
|
||||
@Override
|
||||
public void onEvent(Event event) throws Exception {
|
||||
TipoIdentificacion c = (TipoIdentificacion) tipoIdentificacionList.getSelected();
|
||||
verTipoIdentificacion(c);
|
||||
}
|
||||
});
|
||||
|
||||
refreshLista();
|
||||
|
||||
txtNome.focus();
|
||||
}
|
||||
|
||||
@SuppressWarnings({ "rawtypes", "unchecked" })
|
||||
private void verTipoIdentificacion(TipoIdentificacion t) {
|
||||
Map args = new HashMap();
|
||||
if (t != null) {
|
||||
args.put("tipoDocumento", t);
|
||||
args.put("tipoDocumentoList", tipoIdentificacionList);
|
||||
}
|
||||
|
||||
|
||||
openWindow("/gui/catalogos/editarTipoDocumento.zul",
|
||||
Labels.getLabel("editarTipoDocumentoController.window.title"), args, MODAL);
|
||||
}
|
||||
|
||||
private void refreshLista() {
|
||||
HibernateSearchObject<TipoIdentificacion> tipoIdentificacionBusqueda =
|
||||
new HibernateSearchObject<TipoIdentificacion>(TipoIdentificacion.class,
|
||||
pagingTipoIdentificacion.getPageSize());
|
||||
|
||||
tipoIdentificacionBusqueda.addFilterLike("desctipo",
|
||||
"%" + txtNome.getText().trim().concat("%"));
|
||||
tipoIdentificacionBusqueda.addFilterNotEqual("tipoIdentificacionId", -1);
|
||||
|
||||
tipoIdentificacionBusqueda.addSortAsc("desctipo");
|
||||
tipoIdentificacionBusqueda.addFilterEqual("activo", Boolean.TRUE);
|
||||
|
||||
plwClaseServico.init(tipoIdentificacionBusqueda, tipoIdentificacionList, pagingTipoIdentificacion);
|
||||
|
||||
if (tipoIdentificacionList.getData().length == 0) {
|
||||
try {
|
||||
Messagebox.show(Labels.getLabel("MSG.ningunRegistro"),
|
||||
Labels.getLabel("busquedaTipoIdentificacionController.window.title"),
|
||||
Messagebox.OK, Messagebox.INFORMATION);
|
||||
} catch (InterruptedException ex) {
|
||||
log.error("Erro ao mostrar mensagem", ex);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void onClick$btnPesquisa(Event ev) {
|
||||
refreshLista();
|
||||
}
|
||||
|
||||
public void onClick$btnRefresh(Event ev) {
|
||||
refreshLista();
|
||||
}
|
||||
|
||||
public void onClick$btnNovo(Event ev) {
|
||||
verTipoIdentificacion(null);
|
||||
}
|
||||
}
|
|
@ -1,7 +1,3 @@
|
|||
/*
|
||||
* To change this template, choose Tools | Templates
|
||||
* and open the template in the editor.
|
||||
*/
|
||||
package com.rjconsultores.ventaboletos.web.gui.controladores.catalogos;
|
||||
|
||||
import java.io.ByteArrayInputStream;
|
||||
|
@ -53,6 +49,7 @@ import org.zkoss.util.resource.Labels;
|
|||
import org.zkoss.zk.ui.Component;
|
||||
import org.zkoss.zk.ui.Executions;
|
||||
import org.zkoss.zk.ui.UiException;
|
||||
import org.zkoss.zk.ui.event.DropEvent;
|
||||
import org.zkoss.zk.ui.event.Event;
|
||||
import org.zkoss.zk.ui.event.EventListener;
|
||||
import org.zkoss.zk.ui.event.InputEvent;
|
||||
|
@ -68,6 +65,7 @@ import org.zkoss.zul.Groupbox;
|
|||
import org.zkoss.zul.Image;
|
||||
import org.zkoss.zul.Intbox;
|
||||
import org.zkoss.zul.Label;
|
||||
import org.zkoss.zul.Listitem;
|
||||
import org.zkoss.zul.Messagebox;
|
||||
import org.zkoss.zul.Radio;
|
||||
import org.zkoss.zul.Row;
|
||||
|
@ -89,6 +87,7 @@ import com.rjconsultores.ventaboletos.entidad.EmpresaAsistenciaDeViajeConfig;
|
|||
import com.rjconsultores.ventaboletos.entidad.EmpresaCertificadoConfig;
|
||||
import com.rjconsultores.ventaboletos.entidad.EmpresaCieloLinkConfig;
|
||||
import com.rjconsultores.ventaboletos.entidad.EmpresaComprovantePassagemConfig;
|
||||
import com.rjconsultores.ventaboletos.entidad.EmpresaConfigLayout;
|
||||
import com.rjconsultores.ventaboletos.entidad.EmpresaContaBancaria;
|
||||
import com.rjconsultores.ventaboletos.entidad.EmpresaCrediBancoConfig;
|
||||
import com.rjconsultores.ventaboletos.entidad.EmpresaEmail;
|
||||
|
@ -98,6 +97,7 @@ import com.rjconsultores.ventaboletos.entidad.EmpresaEmailFlexBus;
|
|||
import com.rjconsultores.ventaboletos.entidad.EmpresaImposto;
|
||||
import com.rjconsultores.ventaboletos.entidad.EmpresaIziPayConfig;
|
||||
import com.rjconsultores.ventaboletos.entidad.EmpresaMercadoPagoConfig;
|
||||
import com.rjconsultores.ventaboletos.entidad.EmpresaNequiConfig;
|
||||
import com.rjconsultores.ventaboletos.entidad.EmpresaPMArtespConfig;
|
||||
import com.rjconsultores.ventaboletos.entidad.EmpresaRecargaConfig;
|
||||
import com.rjconsultores.ventaboletos.entidad.EmpresaSaferConfig;
|
||||
|
@ -110,6 +110,7 @@ import com.rjconsultores.ventaboletos.entidad.InstiFinanceira;
|
|||
import com.rjconsultores.ventaboletos.entidad.OrgaoConcedente;
|
||||
import com.rjconsultores.ventaboletos.entidad.Parada;
|
||||
import com.rjconsultores.ventaboletos.entidad.TipoEventoExtra;
|
||||
import com.rjconsultores.ventaboletos.entidad.TipoVenta;
|
||||
import com.rjconsultores.ventaboletos.enums.EnumTipoCertificado;
|
||||
import com.rjconsultores.ventaboletos.enums.EnumTipoIntegracao;
|
||||
import com.rjconsultores.ventaboletos.enums.TipoCstGratuidade;
|
||||
|
@ -124,6 +125,7 @@ import com.rjconsultores.ventaboletos.service.EmpresaAsistenciaDeViajeConfigServ
|
|||
import com.rjconsultores.ventaboletos.service.EmpresaCertificadoConfigService;
|
||||
import com.rjconsultores.ventaboletos.service.EmpresaCieloLinkService;
|
||||
import com.rjconsultores.ventaboletos.service.EmpresaComprovantePassagemConfigService;
|
||||
import com.rjconsultores.ventaboletos.service.EmpresaConfigLayoutService;
|
||||
import com.rjconsultores.ventaboletos.service.EmpresaCrediBancoConfigService;
|
||||
import com.rjconsultores.ventaboletos.service.EmpresaEmailConfigService;
|
||||
import com.rjconsultores.ventaboletos.service.EmpresaEmailEComerceService;
|
||||
|
@ -132,6 +134,7 @@ import com.rjconsultores.ventaboletos.service.EmpresaEmailService;
|
|||
import com.rjconsultores.ventaboletos.service.EmpresaImpostoService;
|
||||
import com.rjconsultores.ventaboletos.service.EmpresaIziPayService;
|
||||
import com.rjconsultores.ventaboletos.service.EmpresaMercadoPagoConfigService;
|
||||
import com.rjconsultores.ventaboletos.service.EmpresaNequiConfigService;
|
||||
import com.rjconsultores.ventaboletos.service.EmpresaPMArtespConfigService;
|
||||
import com.rjconsultores.ventaboletos.service.EmpresaRecargaService;
|
||||
import com.rjconsultores.ventaboletos.service.EmpresaSaferConfigService;
|
||||
|
@ -143,6 +146,7 @@ import com.rjconsultores.ventaboletos.service.ImpresionLayoutConfigService;
|
|||
import com.rjconsultores.ventaboletos.service.InstiFinanceiraService;
|
||||
import com.rjconsultores.ventaboletos.service.OrgaoConcedenteService;
|
||||
import com.rjconsultores.ventaboletos.service.TipoEventoExtraService;
|
||||
import com.rjconsultores.ventaboletos.service.TipoVentaService;
|
||||
import com.rjconsultores.ventaboletos.utilerias.ApplicationProperties;
|
||||
import com.rjconsultores.ventaboletos.utilerias.CustomEnum;
|
||||
import com.rjconsultores.ventaboletos.utilerias.RegistroConDependenciaException;
|
||||
|
@ -163,8 +167,10 @@ import com.rjconsultores.ventaboletos.web.utilerias.render.RenderComEmpCategoria
|
|||
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderComEmpFormapago;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderComEmpTipoEventoExtra;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderEmpresaContaBancaria;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderEmpresaEmpresaConfigLayout;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderEmpresaImposto;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderEmpresaInscricaoEstadual;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderEmpresaSicfeFormasPagamento;
|
||||
|
||||
/**
|
||||
*
|
||||
|
@ -175,6 +181,7 @@ import com.rjconsultores.ventaboletos.web.utilerias.render.RenderEmpresaInscrica
|
|||
@SuppressWarnings({"unused", "rawtypes", "unchecked"})
|
||||
public class EditarEmpresaController extends MyGenericForwardComposer {
|
||||
|
||||
private static final String TITULO = "editarEmpresaController.window.title";
|
||||
private static final long serialVersionUID = 1L;
|
||||
private static Logger log = LogManager.getLogger(EditarEmpresaController.class);
|
||||
@Autowired
|
||||
|
@ -220,6 +227,8 @@ public class EditarEmpresaController extends MyGenericForwardComposer {
|
|||
@Autowired
|
||||
private EmpresaCrediBancoConfigService empresaCrediBancoConfigService;
|
||||
@Autowired
|
||||
private EmpresaNequiConfigService empresaNequiConfigService;
|
||||
@Autowired
|
||||
private EmpresaAsistenciaDeViajeConfigService empresaAsistenciaDeViajeConfigService;
|
||||
@Autowired
|
||||
private EmpresaComprovantePassagemConfigService empresaComprovantePassagemConfigService;
|
||||
|
@ -228,6 +237,9 @@ public class EditarEmpresaController extends MyGenericForwardComposer {
|
|||
private EmpresaPMArtespConfigService empresaPMArtespConfigService;
|
||||
@Autowired
|
||||
private OrgaoConcedenteService orgaoConcedenteService;
|
||||
@Autowired
|
||||
private TipoVentaService tipoVentaService;
|
||||
private List<TipoVenta> lsTiposVenta;
|
||||
|
||||
private Empresa empresa;
|
||||
private EmpresaEmail empresaEmail;
|
||||
|
@ -243,6 +255,7 @@ public class EditarEmpresaController extends MyGenericForwardComposer {
|
|||
private EmpresaCertificadoConfig empresaCertificadoConfigSaftao;
|
||||
private List<EmpresaSicfeConfig> empresaSicfeConfig;
|
||||
private List<EmpresaCrediBancoConfig> empresaCrediBancoConfig;
|
||||
private EmpresaNequiConfig empresaNequiConfig;
|
||||
private List<EmpresaAsistenciaDeViajeConfig> empresaAsistenciaDeViajeConfig;
|
||||
private List<EmpresaComprovantePassagemConfig> empresaComprovantePassagemConfig;
|
||||
private MyListbox empresaList;
|
||||
|
@ -294,7 +307,7 @@ public class EditarEmpresaController extends MyGenericForwardComposer {
|
|||
//IziPay
|
||||
private Textbox txtIziPayClientId;
|
||||
private Textbox txtIziPaySecret;
|
||||
private Textbox txtIziPayDiasCancela;
|
||||
private Textbox txtIziPayMinutosCancela;
|
||||
private Textbox txtIziPayUrl;
|
||||
|
||||
//Recarga Celular
|
||||
|
@ -577,12 +590,16 @@ public class EditarEmpresaController extends MyGenericForwardComposer {
|
|||
private Textbox txtSicfeDepartamento;
|
||||
private Textbox txtSicfeEndereco;
|
||||
private Textbox txtSicfeRazaoSocial;
|
||||
private Textbox txtSicfeSucursal;
|
||||
|
||||
private MyCheckboxSiNo chkSicfeUsaRUTCliente;
|
||||
private MyCheckboxSiNo chkSicfeUsaTermica;
|
||||
private MyCheckboxSiNo chkSicfeDesconto100Emite;
|
||||
private MyCheckboxSiNo chkSicfeCreditoOrdemServico;
|
||||
|
||||
private MyListbox empresaFormasPagamentoSicfe;
|
||||
private MyListbox empresaFormasPagamentoSicfeSelecionado;
|
||||
|
||||
private Checkbox chkIndProducaoCrediBanco;
|
||||
private Textbox txtUsuarioCrediBanco;
|
||||
private Textbox txtSenhaCrediBanco;
|
||||
|
@ -628,6 +645,23 @@ public class EditarEmpresaController extends MyGenericForwardComposer {
|
|||
private MyComboboxImpresionLayoutConfig cmbImpresionLayoutConfigEmail;
|
||||
|
||||
private ImpresionLayoutConfigService impresionLayoutConfigService;
|
||||
|
||||
private Combobox cmbConfigLayoutTiposVenda;
|
||||
private MyComboboxImpresionLayoutConfig cmbImpresionLayoutConfig;
|
||||
private MyListbox empresaLayoutConfigList;
|
||||
private Checkbox chkindLayoutEmailConfig;
|
||||
private List<EmpresaConfigLayout> lsEmpresaConfigLayout;
|
||||
|
||||
private Textbox txtClientIdNequi;
|
||||
private Textbox txtApiKeyNequi;
|
||||
private Textbox txtCodeEmpresaNequi;
|
||||
private Textbox txtUrlNequi;
|
||||
private Textbox txtHashNequi;
|
||||
|
||||
@Autowired
|
||||
private EmpresaConfigLayoutService empresaConfigLayoutService;
|
||||
|
||||
|
||||
|
||||
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,})$";
|
||||
|
@ -649,7 +683,8 @@ public class EditarEmpresaController extends MyGenericForwardComposer {
|
|||
lsTodosEstados = estadoService.obtenerTodos();
|
||||
|
||||
lsCidades = new ArrayList<Ciudad>();
|
||||
lsBanco = instFinanceiraService.obtenerTodos();
|
||||
lsBanco = instFinanceiraService.obtenerTodos();
|
||||
lsTiposVenta = tipoVentaService.obtenerTodos();
|
||||
|
||||
if (empresa != null && empresa.getEmpresaId() != null) {
|
||||
empresaEmail = empresaEmailService.buscarPorEmpresa(empresa);
|
||||
|
@ -660,9 +695,11 @@ public class EditarEmpresaController extends MyGenericForwardComposer {
|
|||
empresaCertificadoConfigSaftao = empresaCertificadoConfigService.buscarPorEmpresa(empresa, EnumTipoCertificado.SAFTAO);
|
||||
empresaSicfeConfig = empresaSicfeConfigService.buscarByEmpresa(empresa.getEmpresaId());
|
||||
empresaCrediBancoConfig = empresaCrediBancoConfigService.buscarByEmpresa(empresa.getEmpresaId());
|
||||
empresaNequiConfig = empresaNequiConfigService.buscarByEmpresa(empresa.getEmpresaId());
|
||||
empresaAsistenciaDeViajeConfig = empresaAsistenciaDeViajeConfigService.buscarByEmpresa(empresa.getEmpresaId());
|
||||
empresaComprovantePassagemConfig = empresaComprovantePassagemConfigService.buscarByEmpresa(empresa.getEmpresaId());
|
||||
empresaPMArtespConfig = empresaPMArtespConfigService.buscarPorEmpresa(empresa);
|
||||
lsEmpresaConfigLayout = empresaConfigLayoutService.buscarByEmpresa(empresa.getEmpresaId());
|
||||
}
|
||||
|
||||
if (empresa != null && empresa.getEmpresaId() != null) {
|
||||
|
@ -742,7 +779,7 @@ public class EditarEmpresaController extends MyGenericForwardComposer {
|
|||
txtIziPayClientId.setText(empresaIziPayConfig.getClientId());
|
||||
txtIziPaySecret.setText(empresaIziPayConfig.getSecret());
|
||||
txtIziPayUrl.setText(empresaIziPayConfig.getUrl());
|
||||
txtIziPayDiasCancela.setText(empresaIziPayConfig.getDiasCancela().toString());
|
||||
txtIziPayMinutosCancela.setText(empresaIziPayConfig.getMinutosCancela().toString());
|
||||
}
|
||||
|
||||
if (empresaRecargaConfig != null) {
|
||||
|
@ -811,6 +848,7 @@ public class EditarEmpresaController extends MyGenericForwardComposer {
|
|||
|
||||
preencheInformacoesSicfe();
|
||||
preencheInformacoesCrediBanco();
|
||||
preencheInformacoesNequi();
|
||||
preencheInformacoesAsistenciaDeViaje();
|
||||
preencheInformacoesComprovantePassagem();
|
||||
|
||||
|
@ -968,7 +1006,13 @@ public class EditarEmpresaController extends MyGenericForwardComposer {
|
|||
txtNumInscricaoMunicipal.setValue("ISENTO");
|
||||
txtNumInscricaoMunicipal.setDisabled(true);
|
||||
ckIsento.setChecked(true);
|
||||
|
||||
|
||||
empresaLayoutConfigList.setItemRenderer(new RenderEmpresaEmpresaConfigLayout());
|
||||
|
||||
empresaFormasPagamentoSicfe.setItemRenderer(new RenderEmpresaSicfeFormasPagamento());
|
||||
empresaFormasPagamentoSicfeSelecionado.setItemRenderer(new RenderEmpresaSicfeFormasPagamento());
|
||||
empresaFormasPagamentoSicfe.addEventListener("onDrop", new _DragEvent());
|
||||
empresaFormasPagamentoSicfeSelecionado.addEventListener("onDrop", new _DragEvent());
|
||||
|
||||
if (empresa.getEmpresaId() != null) {
|
||||
empresa = empresaService.obtenerID(empresa.getEmpresaId());
|
||||
|
@ -982,6 +1026,8 @@ public class EditarEmpresaController extends MyGenericForwardComposer {
|
|||
|
||||
//retirar caracteres cnpj - mantis: 16363
|
||||
retirarCaracteresEspeciaisCNPJ();
|
||||
|
||||
empresaLayoutConfigList.setData(lsEmpresaConfigLayout);
|
||||
}
|
||||
|
||||
txtNome.focus();
|
||||
|
@ -1064,13 +1110,14 @@ public class EditarEmpresaController extends MyGenericForwardComposer {
|
|||
empresa.setLicenca(tokenLicensa);
|
||||
|
||||
Messagebox.show(Labels.getLabel("editarEmpresaController.MSG.licencaOK"),
|
||||
Labels.getLabel("editarEmpresaController.window.title"), Messagebox.OK, Messagebox.INFORMATION);
|
||||
Labels.getLabel(TITULO), Messagebox.OK, Messagebox.INFORMATION);
|
||||
}else{
|
||||
txtLicenca.setText("");
|
||||
Messagebox.show(Labels.getLabel("editarEmpresaController.MSG.licencaNOK"),
|
||||
Labels.getLabel("editarEmpresaController.window.title"), Messagebox.OK, Messagebox.ERROR);
|
||||
Labels.getLabel(TITULO), Messagebox.OK, Messagebox.ERROR);
|
||||
}
|
||||
}
|
||||
|
||||
public void onClick$chkAutenticacao(Event ev) {
|
||||
if(chkAutenticacao.isChecked()){
|
||||
textEmail.setDisabled(false);
|
||||
|
@ -1226,7 +1273,7 @@ public class EditarEmpresaController extends MyGenericForwardComposer {
|
|||
|
||||
if (!validarEmail()) {
|
||||
Messagebox.show(Labels.getLabel("editarTipoPuntoVentaController.MSG.emailInvalido"),
|
||||
Labels.getLabel("editarEmpresaController.window.title"),
|
||||
Labels.getLabel(TITULO),
|
||||
Messagebox.OK, Messagebox.EXCLAMATION);
|
||||
txtEmail.focus();
|
||||
return;
|
||||
|
@ -1255,7 +1302,7 @@ public class EditarEmpresaController extends MyGenericForwardComposer {
|
|||
(empresa.getTarBPe() == null || empresa.getTarBPe().isEmpty()) ||
|
||||
(empresa.getCrtBPe() == null)) {
|
||||
Messagebox.show(Labels.getLabel("editarEmpresaController.MSG.InfoBPeInvalido"),
|
||||
Labels.getLabel("editarEmpresaController.window.title"),
|
||||
Labels.getLabel(TITULO),
|
||||
Messagebox.OK, Messagebox.EXCLAMATION);
|
||||
txtEmail.focus();
|
||||
return;
|
||||
|
@ -1377,14 +1424,14 @@ public class EditarEmpresaController extends MyGenericForwardComposer {
|
|||
//Se tiver marcado é necessário preencher as duas datas
|
||||
if(inicioEmbarque == null || fimEmbarque == null) {
|
||||
Messagebox.show(Labels.getLabel("editarEmpresaController.indHabilitaHorarioEmbarque.erro"),
|
||||
Labels.getLabel("editarEmpresaController.window.title"),
|
||||
Labels.getLabel(TITULO),
|
||||
Messagebox.OK, Messagebox.EXCLAMATION);
|
||||
return;
|
||||
}
|
||||
|
||||
if(fimEmbarque.after(inicioEmbarque)) {
|
||||
Messagebox.show(Labels.getLabel("editarEmpresaController.indHabilitaHorarioEmbarque.erroInicioAntesDoFInal"),
|
||||
Labels.getLabel("editarEmpresaController.window.title"),
|
||||
Labels.getLabel(TITULO),
|
||||
Messagebox.OK, Messagebox.EXCLAMATION);
|
||||
return;
|
||||
}
|
||||
|
@ -1546,33 +1593,53 @@ public class EditarEmpresaController extends MyGenericForwardComposer {
|
|||
|
||||
empresaMercadoPagoConfigService.actualizacion(empresaMercadoPagoConfig);
|
||||
}
|
||||
|
||||
if (empresaNequiConfig == null) {
|
||||
empresaNequiConfig = new EmpresaNequiConfig();
|
||||
empresaNequiConfig.setEmpresa(empresa);
|
||||
empresaNequiConfig.setClienteIdNequi(txtClientIdNequi.getValue());
|
||||
empresaNequiConfig.setApiKey(txtApiKeyNequi.getValue());
|
||||
empresaNequiConfig.setCode(txtCodeEmpresaNequi.getValue());
|
||||
empresaNequiConfig.setHash(txtHashNequi.getValue());
|
||||
empresaNequiConfig.setUrl(txtUrlNequi.getValue());
|
||||
|
||||
empresaNequiConfig = empresaNequiConfigService.suscribir(empresaNequiConfig);
|
||||
} else {
|
||||
empresaNequiConfig.setClienteIdNequi(txtClientIdNequi.getValue());
|
||||
empresaNequiConfig.setApiKey(txtApiKeyNequi.getValue());
|
||||
empresaNequiConfig.setCode(txtCodeEmpresaNequi.getValue());
|
||||
empresaNequiConfig.setHash(txtHashNequi.getValue());
|
||||
empresaNequiConfig.setUrl(txtUrlNequi.getValue());
|
||||
empresaNequiConfigService.actualizacion(empresaNequiConfig);
|
||||
}
|
||||
|
||||
|
||||
adicionaInformacoesSicfe();
|
||||
adicionaInformacoesCrediBanco();
|
||||
adicionaInformacoesAsistenciaDeViaje();
|
||||
adicionaInformacoesComprovantePassagem();
|
||||
|
||||
|
||||
salvarEmpresaConfigLayout();
|
||||
|
||||
//INTEGRACAO TIPO DE PASSAGEM PM ARTESP
|
||||
salvarEmpresaPMArtespConfig();
|
||||
|
||||
Messagebox.show(Labels.getLabel("editarEmpresaController.MSG.suscribirOK"),
|
||||
Labels.getLabel("editarEmpresaController.window.title"),
|
||||
Messagebox.show(Labels.getLabel(MSG_OK),
|
||||
Labels.getLabel(TITULO),
|
||||
Messagebox.OK, Messagebox.INFORMATION);
|
||||
|
||||
|
||||
|
||||
if (cadastroEmpresaNova){
|
||||
Messagebox.show(
|
||||
Labels.getLabel("editarEmpresaController.MSG.tokenNovaEmpresaOK", new String[] {empresa.getToken()}),
|
||||
Labels.getLabel("editarEmpresaController.window.title"),
|
||||
Labels.getLabel(TITULO),
|
||||
Messagebox.OK, Messagebox.EXCLAMATION);
|
||||
}else{
|
||||
|
||||
List<Empresa> lsEmpresa = Arrays.asList(new Empresa[]{empresa});
|
||||
List<Empresa> lsEmpresa = Arrays.asList(empresa);
|
||||
if (empresaService.filtrarApenasEmpresasLicencaValida(lsEmpresa).isEmpty()){
|
||||
Messagebox.show(
|
||||
Labels.getLabel("editarEmpresaController.MSG.licencaNOK"),
|
||||
Labels.getLabel("editarEmpresaController.window.title"),
|
||||
Labels.getLabel(TITULO),
|
||||
Messagebox.OK, Messagebox.EXCLAMATION);
|
||||
}
|
||||
|
||||
|
@ -1584,7 +1651,7 @@ public class EditarEmpresaController extends MyGenericForwardComposer {
|
|||
EditarEmpresaController.log.error("editarEmpresaController: ", ex);
|
||||
|
||||
Messagebox.show(Labels.getLabel(ex.getMessage()),
|
||||
Labels.getLabel("editarEmpresaController.window.title"), Messagebox.OK, Messagebox.ERROR);
|
||||
Labels.getLabel(TITULO), Messagebox.OK, Messagebox.ERROR);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1595,7 +1662,7 @@ public class EditarEmpresaController extends MyGenericForwardComposer {
|
|||
txtTokenIntegracaoARTESP.getValue() == null || txtUrlIntegracaoARTESP.getValue() == null) {
|
||||
|
||||
Messagebox.show(Labels.getLabel("editarEmpresaController.MSG.InfoCamposIntegracaoPMArtespInvalido"),
|
||||
Labels.getLabel("editarEmpresaController.window.title"), Messagebox.OK, Messagebox.EXCLAMATION);
|
||||
Labels.getLabel(TITULO), Messagebox.OK, Messagebox.EXCLAMATION);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
@ -1635,6 +1702,25 @@ public class EditarEmpresaController extends MyGenericForwardComposer {
|
|||
}
|
||||
}
|
||||
|
||||
private void salvarEmpresaConfigLayout() {
|
||||
|
||||
for (EmpresaConfigLayout empresaEmpresaConfigLayoutInTheList : lsEmpresaConfigLayout) {
|
||||
|
||||
if (empresaEmpresaConfigLayoutInTheList != null
|
||||
&& empresaEmpresaConfigLayoutInTheList.getEmpresaconfiglayoutId() != null) {
|
||||
if (empresaEmpresaConfigLayoutInTheList.getActivo()) {
|
||||
empresaConfigLayoutService.actualizacion(empresaEmpresaConfigLayoutInTheList);
|
||||
} else {
|
||||
empresaConfigLayoutService.borrar(empresaEmpresaConfigLayoutInTheList);
|
||||
}
|
||||
|
||||
} else {
|
||||
empresaConfigLayoutService.suscribir(empresaEmpresaConfigLayoutInTheList);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
private Date buscarHora(Date horaEmbarque) {
|
||||
if (horaEmbarque != null) {
|
||||
GregorianCalendar gHoraSalida = new GregorianCalendar();
|
||||
|
@ -1720,10 +1806,10 @@ public class EditarEmpresaController extends MyGenericForwardComposer {
|
|||
empresaIziPayConfig.setSecret(txtIziPaySecret.getValue());
|
||||
empresaIziPayConfig.setUrl(txtIziPayUrl.getValue());
|
||||
|
||||
empresaIziPayConfig.setDiasCancela(
|
||||
StringUtils.isEmpty(txtIziPayDiasCancela.getValue())?
|
||||
empresaIziPayConfig.setMinutosCancela(
|
||||
StringUtils.isEmpty(txtIziPayMinutosCancela.getValue())?
|
||||
30:
|
||||
Integer.parseInt(txtIziPayDiasCancela.getValue())
|
||||
Integer.parseInt(txtIziPayMinutosCancela.getValue())
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -1758,7 +1844,30 @@ public class EditarEmpresaController extends MyGenericForwardComposer {
|
|||
chkSicfeUsaRUTCliente.setChecked(BooleanUtils.toBoolean(mapConfigSicfe.get("indRUTCliente")));
|
||||
chkSicfeUsaTermica.setChecked(BooleanUtils.toBoolean(mapConfigSicfe.get("indUsaTermica")));
|
||||
chkSicfeDesconto100Emite.setChecked(BooleanUtils.toBoolean(mapConfigSicfe.get("indDesconto100Emite")));
|
||||
chkSicfeCreditoOrdemServico.setChecked(BooleanUtils.toBoolean(mapConfigSicfe.get("indCreditoOrdemServico")));
|
||||
txtSicfeSucursal.setText(mapConfigSicfe.get("sucursal"));
|
||||
}
|
||||
|
||||
String[] valorSelecionado = mapConfigSicfe.get("formasPagoOrdemServico") != null
|
||||
? mapConfigSicfe.get("formasPagoOrdemServico").toString().replace("[", "").replace("]", "")
|
||||
.replace(" ", "").trim().split(",")
|
||||
: null;
|
||||
|
||||
int tamanhoSelecionado = valorSelecionado != null ? valorSelecionado.length : 0;
|
||||
|
||||
Short[] selecionados = new Short[tamanhoSelecionado];
|
||||
|
||||
for (int i = 0; i < tamanhoSelecionado; i++) {
|
||||
if (StringUtils.isNotBlank(valorSelecionado[i])) {
|
||||
selecionados[i] = Short.valueOf(valorSelecionado[i]);
|
||||
} else {
|
||||
selecionados[i] = -1;
|
||||
}
|
||||
}
|
||||
|
||||
empresaFormasPagamentoSicfe.setData(formaPagoService.buscarNotIn(selecionados));
|
||||
|
||||
if (selecionados.length > 0) {
|
||||
empresaFormasPagamentoSicfeSelecionado.setData(formaPagoService.buscarIn(selecionados));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1786,7 +1895,8 @@ public class EditarEmpresaController extends MyGenericForwardComposer {
|
|||
salvaValoresSicfe("indRUTCliente", String.valueOf(chkSicfeUsaRUTCliente.isChecked()), mapConfigSicfe);
|
||||
salvaValoresSicfe("indUsaTermica", String.valueOf(chkSicfeUsaTermica.isChecked()), mapConfigSicfe);
|
||||
salvaValoresSicfe("indDesconto100Emite", String.valueOf(chkSicfeDesconto100Emite.isChecked()), mapConfigSicfe);
|
||||
salvaValoresSicfe("indCreditoOrdemServico", String.valueOf(chkSicfeCreditoOrdemServico.isChecked()), mapConfigSicfe);
|
||||
salvaValoresSicfe("formasPagoOrdemServico", Arrays.asList(retornaIdsFormaPagamento(empresaFormasPagamentoSicfeSelecionado.getListData())), mapConfigSicfe);
|
||||
salvaValoresSicfe("sucursal", txtSicfeSucursal.getValue(), mapConfigSicfe);
|
||||
}
|
||||
|
||||
private Map<String, String> retornaValoresSicfe() {
|
||||
|
@ -1828,6 +1938,19 @@ public class EditarEmpresaController extends MyGenericForwardComposer {
|
|||
txtClientSecretCrediBanco.setText(mapConfigCrediBanco.get("clientSecret"));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
private void preencheInformacoesNequi() {
|
||||
if(empresaNequiConfig!=null) {
|
||||
txtClientIdNequi.setValue(empresaNequiConfig.getClienteIdNequi());
|
||||
txtApiKeyNequi.setValue(empresaNequiConfig.getApiKey());
|
||||
txtCodeEmpresaNequi.setValue(empresaNequiConfig.getCode());
|
||||
txtHashNequi.setValue(empresaNequiConfig.getHash());
|
||||
txtUrlNequi.setValue(empresaNequiConfig.getUrl());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private void adicionaInformacoesCrediBanco() {
|
||||
Map<String, String> mapConfiCrediBanco = retornaValoresCrediBanco();
|
||||
|
@ -1849,6 +1972,7 @@ public class EditarEmpresaController extends MyGenericForwardComposer {
|
|||
|
||||
return map;
|
||||
}
|
||||
|
||||
|
||||
private void salvaValoresCrediBanco(String chave, Object valor, Map<String, String> mapConfigCrediBanco) {
|
||||
|
||||
|
@ -2117,7 +2241,7 @@ public class EditarEmpresaController extends MyGenericForwardComposer {
|
|||
|
||||
int resp = Messagebox.show(
|
||||
Labels.getLabel("editarEmpresaController.MSG.borrarPergunta"),
|
||||
Labels.getLabel("editarEmpresaController.window.title"),
|
||||
Labels.getLabel(TITULO),
|
||||
Messagebox.YES | Messagebox.NO, Messagebox.QUESTION);
|
||||
|
||||
if (resp == Messagebox.YES) {
|
||||
|
@ -2127,7 +2251,7 @@ public class EditarEmpresaController extends MyGenericForwardComposer {
|
|||
} catch (RegistroConDependenciaException e) {
|
||||
Messagebox.show(
|
||||
Labels.getLabel("editarEmpresaController.MSG.noPuedeBorrar"),
|
||||
Labels.getLabel("editarEmpresaController.window.title"),
|
||||
Labels.getLabel(TITULO),
|
||||
Messagebox.OK, Messagebox.INFORMATION);
|
||||
return;
|
||||
|
||||
|
@ -2135,7 +2259,7 @@ public class EditarEmpresaController extends MyGenericForwardComposer {
|
|||
|
||||
Messagebox.show(
|
||||
Labels.getLabel("editarEmpresaController.MSG.borrarOK"),
|
||||
Labels.getLabel("editarEmpresaController.window.title"),
|
||||
Labels.getLabel(TITULO),
|
||||
Messagebox.OK, Messagebox.INFORMATION);
|
||||
|
||||
empresaList.removeItem(empresa);
|
||||
|
@ -2421,7 +2545,7 @@ public void onClick$btnTestEmailFlexBus(Event ev) throws InterruptedException {
|
|||
empresa.getComEmpCategorias().add(comEmpCategoria);
|
||||
|
||||
Messagebox.show(Labels.getLabel("editarEmpresaController.msg.adicionarComissaoCategoria"),
|
||||
Labels.getLabel("editarEmpresaController.window.title"),
|
||||
Labels.getLabel(TITULO),
|
||||
Messagebox.OK, Messagebox.INFORMATION);
|
||||
|
||||
}
|
||||
|
@ -2429,7 +2553,7 @@ public void onClick$btnTestEmailFlexBus(Event ev) throws InterruptedException {
|
|||
} catch (Exception e) {
|
||||
EditarEmpresaController.log.error(e.getMessage(), e);
|
||||
Messagebox.show(Labels.getLabel("MSG.Error"),
|
||||
Labels.getLabel("editarEmpresaController.window.title"),
|
||||
Labels.getLabel(TITULO),
|
||||
Messagebox.OK, Messagebox.ERROR);
|
||||
}
|
||||
}
|
||||
|
@ -2439,7 +2563,7 @@ public void onClick$btnTestEmailFlexBus(Event ev) throws InterruptedException {
|
|||
if (comEmpCategoriaList.getSelected() != null) {
|
||||
int resp = Messagebox.show(
|
||||
Labels.getLabel("editarEmpresaController.MSG.borrarComissaoCategoriaPergunta"),
|
||||
Labels.getLabel("editarEmpresaController.window.title"),
|
||||
Labels.getLabel(TITULO),
|
||||
Messagebox.YES | Messagebox.NO, Messagebox.QUESTION);
|
||||
|
||||
if (resp == Messagebox.YES) {
|
||||
|
@ -2449,7 +2573,7 @@ public void onClick$btnTestEmailFlexBus(Event ev) throws InterruptedException {
|
|||
empresa.getComEmpCategorias().remove(comEmpCategoria);
|
||||
|
||||
Messagebox.show(Labels.getLabel("editarEmpresaController.msg.removerComissaoCategoria"),
|
||||
Labels.getLabel("editarEmpresaController.window.title"),
|
||||
Labels.getLabel(TITULO),
|
||||
Messagebox.OK, Messagebox.INFORMATION);
|
||||
}
|
||||
}
|
||||
|
@ -2457,7 +2581,7 @@ public void onClick$btnTestEmailFlexBus(Event ev) throws InterruptedException {
|
|||
} catch (Exception e) {
|
||||
EditarEmpresaController.log.error(e.getMessage(), e);
|
||||
Messagebox.show(Labels.getLabel("MSG.Error"),
|
||||
Labels.getLabel("editarEmpresaController.window.title"),
|
||||
Labels.getLabel(TITULO),
|
||||
Messagebox.OK, Messagebox.ERROR);
|
||||
}
|
||||
}
|
||||
|
@ -2485,7 +2609,7 @@ public void onClick$btnTestEmailFlexBus(Event ev) throws InterruptedException {
|
|||
empresa.getComEmpFormapagos().add(comEmpFormapago);
|
||||
|
||||
Messagebox.show(Labels.getLabel("editarEmpresaController.msg.adicionarComissaoFormapago"),
|
||||
Labels.getLabel("editarEmpresaController.window.title"),
|
||||
Labels.getLabel(TITULO),
|
||||
Messagebox.OK, Messagebox.INFORMATION);
|
||||
|
||||
}
|
||||
|
@ -2493,7 +2617,7 @@ public void onClick$btnTestEmailFlexBus(Event ev) throws InterruptedException {
|
|||
} catch (Exception e) {
|
||||
EditarEmpresaController.log.error(e.getMessage(), e);
|
||||
Messagebox.show(Labels.getLabel("MSG.Error"),
|
||||
Labels.getLabel("editarEmpresaController.window.title"),
|
||||
Labels.getLabel(TITULO),
|
||||
Messagebox.OK, Messagebox.ERROR);
|
||||
}
|
||||
}
|
||||
|
@ -2503,7 +2627,7 @@ public void onClick$btnTestEmailFlexBus(Event ev) throws InterruptedException {
|
|||
if (comEmpFormapagoList.getSelected() != null) {
|
||||
int resp = Messagebox.show(
|
||||
Labels.getLabel("editarEmpresaController.MSG.borrarComissaoFormapagoPergunta"),
|
||||
Labels.getLabel("editarEmpresaController.window.title"),
|
||||
Labels.getLabel(TITULO),
|
||||
Messagebox.YES | Messagebox.NO, Messagebox.QUESTION);
|
||||
|
||||
if (resp == Messagebox.YES) {
|
||||
|
@ -2513,7 +2637,7 @@ public void onClick$btnTestEmailFlexBus(Event ev) throws InterruptedException {
|
|||
empresa.getComEmpFormapagos().remove(comEmpFormapago);
|
||||
|
||||
Messagebox.show(Labels.getLabel("editarEmpresaController.msg.removerComissaoFormapago"),
|
||||
Labels.getLabel("editarEmpresaController.window.title"),
|
||||
Labels.getLabel(TITULO),
|
||||
Messagebox.OK, Messagebox.INFORMATION);
|
||||
}
|
||||
}
|
||||
|
@ -2521,7 +2645,7 @@ public void onClick$btnTestEmailFlexBus(Event ev) throws InterruptedException {
|
|||
} catch (Exception e) {
|
||||
EditarEmpresaController.log.error(e.getMessage(), e);
|
||||
Messagebox.show(Labels.getLabel("MSG.Error"),
|
||||
Labels.getLabel("editarEmpresaController.window.title"),
|
||||
Labels.getLabel(TITULO),
|
||||
Messagebox.OK, Messagebox.ERROR);
|
||||
}
|
||||
}
|
||||
|
@ -2554,7 +2678,7 @@ public void onClick$btnTestEmailFlexBus(Event ev) throws InterruptedException {
|
|||
empresa.getComEmpTipoEventoExtras().add(comEmpTipoEventoExtra);
|
||||
|
||||
Messagebox.show(Labels.getLabel("editarEmpresaController.msg.adicionarComissaoTipoEventoExtra"),
|
||||
Labels.getLabel("editarEmpresaController.window.title"),
|
||||
Labels.getLabel(TITULO),
|
||||
Messagebox.OK, Messagebox.INFORMATION);
|
||||
|
||||
}
|
||||
|
@ -2562,7 +2686,7 @@ public void onClick$btnTestEmailFlexBus(Event ev) throws InterruptedException {
|
|||
} catch (Exception e) {
|
||||
EditarEmpresaController.log.error(e.getMessage(), e);
|
||||
Messagebox.show(Labels.getLabel("MSG.Error"),
|
||||
Labels.getLabel("editarEmpresaController.window.title"),
|
||||
Labels.getLabel(TITULO),
|
||||
Messagebox.OK, Messagebox.ERROR);
|
||||
}
|
||||
}
|
||||
|
@ -2572,7 +2696,7 @@ public void onClick$btnTestEmailFlexBus(Event ev) throws InterruptedException {
|
|||
if (comEmpTipoEventoExtraList.getSelected() != null) {
|
||||
int resp = Messagebox.show(
|
||||
Labels.getLabel("editarEmpresaController.MSG.borrarComissaoTipoEventoExtraPergunta"),
|
||||
Labels.getLabel("editarEmpresaController.window.title"),
|
||||
Labels.getLabel(TITULO),
|
||||
Messagebox.YES | Messagebox.NO, Messagebox.QUESTION);
|
||||
|
||||
if (resp == Messagebox.YES) {
|
||||
|
@ -2582,7 +2706,7 @@ public void onClick$btnTestEmailFlexBus(Event ev) throws InterruptedException {
|
|||
comEmpTipoEventoExtraList.removeItem(comEmpTipoEventoExtra);
|
||||
|
||||
Messagebox.show(Labels.getLabel("editarEmpresaController.msg.removerComissaoTipoEventoExtra"),
|
||||
Labels.getLabel("editarEmpresaController.window.title"),
|
||||
Labels.getLabel(TITULO),
|
||||
Messagebox.OK, Messagebox.INFORMATION);
|
||||
}
|
||||
}
|
||||
|
@ -2590,7 +2714,7 @@ public void onClick$btnTestEmailFlexBus(Event ev) throws InterruptedException {
|
|||
} catch (Exception e) {
|
||||
EditarEmpresaController.log.error(e.getMessage(), e);
|
||||
Messagebox.show(Labels.getLabel("MSG.Error"),
|
||||
Labels.getLabel("editarEmpresaController.window.title"),
|
||||
Labels.getLabel(TITULO),
|
||||
Messagebox.OK, Messagebox.ERROR);
|
||||
}
|
||||
}
|
||||
|
@ -2628,10 +2752,10 @@ public void onClick$btnTestEmailFlexBus(Event ev) throws InterruptedException {
|
|||
}
|
||||
|
||||
Messagebox.show(Labels.getLabel("editarEmpresaController.lblMsgCadastrarStoreMercadoPago.value"),
|
||||
Labels.getLabel("editarEmpresaController.window.title"),
|
||||
Labels.getLabel(TITULO),
|
||||
Messagebox.OK, Messagebox.INFORMATION);
|
||||
} else {
|
||||
Messagebox.show(storeVO.toString(), Labels.getLabel("editarEmpresaController.window.title"),
|
||||
Messagebox.show(storeVO.toString(), Labels.getLabel(TITULO),
|
||||
Messagebox.OK, Messagebox.ERROR);
|
||||
}
|
||||
|
||||
|
@ -2673,10 +2797,10 @@ public void onClick$btnTestEmailFlexBus(Event ev) throws InterruptedException {
|
|||
}
|
||||
|
||||
Messagebox.show(Labels.getLabel("editarEmpresaController.lblMsgCadastrarPOSMercadoPago.value"),
|
||||
Labels.getLabel("editarEmpresaController.window.title"),
|
||||
Labels.getLabel(TITULO),
|
||||
Messagebox.OK, Messagebox.INFORMATION);
|
||||
} else {
|
||||
Messagebox.show(storeVO.toString(), Labels.getLabel("editarEmpresaController.window.title"),
|
||||
Messagebox.show(storeVO.toString(), Labels.getLabel(TITULO),
|
||||
Messagebox.OK, Messagebox.ERROR);
|
||||
}
|
||||
}
|
||||
|
@ -2953,7 +3077,85 @@ public void onClick$btnTestEmailFlexBus(Event ev) throws InterruptedException {
|
|||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
public void onClick$btnAdicionarConfigLayout(Event ev) throws InterruptedException {
|
||||
|
||||
if (cmbConfigLayoutTiposVenda.getSelectedItem() == null || cmbImpresionLayoutConfig.getSelectedItem() == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
TipoVenta tipoVenta = (TipoVenta) cmbConfigLayoutTiposVenda.getSelectedItem().getValue();
|
||||
ImpresionLayoutConfig impresionLayoutConfig = (ImpresionLayoutConfig) cmbImpresionLayoutConfig.getSelectedItem()
|
||||
.getValue();
|
||||
|
||||
EmpresaConfigLayout empresaConfigLayoutToAdd = new EmpresaConfigLayout();
|
||||
empresaConfigLayoutToAdd.setActivo(Boolean.TRUE);
|
||||
empresaConfigLayoutToAdd.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||
empresaConfigLayoutToAdd.setFecmodif(Calendar.getInstance().getTime());
|
||||
empresaConfigLayoutToAdd.setEmpresa(empresa);
|
||||
empresaConfigLayoutToAdd.setTipoVenta(tipoVenta);
|
||||
empresaConfigLayoutToAdd.setImpresionlayoutconfigId(impresionLayoutConfig);
|
||||
empresaConfigLayoutToAdd.setIndEmail(chkindLayoutEmailConfig.isChecked());
|
||||
|
||||
boolean achou = Boolean.FALSE;
|
||||
for (EmpresaConfigLayout empresaEmpresaConfigLayoutInTheList : lsEmpresaConfigLayout) {
|
||||
if (empresaEmpresaConfigLayoutInTheList != null && empresaEmpresaConfigLayoutInTheList.getActivo()
|
||||
&& empresaConfigLayoutToAdd.getTipoVenta()
|
||||
.equals(empresaEmpresaConfigLayoutInTheList.getTipoVenta())
|
||||
&& empresaConfigLayoutToAdd.getImpresionlayoutconfigId()
|
||||
.equals(empresaEmpresaConfigLayoutInTheList.getImpresionlayoutconfigId())
|
||||
&& empresaConfigLayoutToAdd.getIndEmail()
|
||||
.equals(empresaEmpresaConfigLayoutInTheList.getIndEmail())) {
|
||||
achou = Boolean.TRUE;
|
||||
}
|
||||
}
|
||||
|
||||
if (!achou) {
|
||||
lsEmpresaConfigLayout.add(empresaConfigLayoutToAdd);
|
||||
|
||||
List<EmpresaConfigLayout> tempList = new ArrayList<EmpresaConfigLayout>();
|
||||
if (lsEmpresaContaBancaria != null) {
|
||||
for (EmpresaConfigLayout empresaConfigLayout : lsEmpresaConfigLayout) {
|
||||
if (empresaConfigLayout.getActivo()) {
|
||||
tempList.add(empresaConfigLayout);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
empresaLayoutConfigList.setData(tempList);
|
||||
|
||||
} else {
|
||||
Messagebox.show(Labels.getLabel("editarEmpresaController.MSG.jaExisteConfigLayoutComAsMesmasInfoCadastradas"),
|
||||
Labels.getLabel("editarEmpresaController.tabConfiguracaoLayout.value"), Messagebox.OK,
|
||||
Messagebox.EXCLAMATION);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
public void onClick$btnRemoverConfigLayout(Event ev) {
|
||||
|
||||
EmpresaConfigLayout empresaToRemove = (EmpresaConfigLayout) empresaLayoutConfigList.getSelected();
|
||||
|
||||
if (empresaToRemove != null) {
|
||||
lsEmpresaConfigLayout.remove(empresaToRemove);
|
||||
empresaToRemove.setFecmodif(Calendar.getInstance().getTime());
|
||||
empresaToRemove.setActivo(Boolean.FALSE);
|
||||
empresaToRemove.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||
lsEmpresaConfigLayout.add(empresaToRemove);
|
||||
empresaLayoutConfigList.updateItem(empresaToRemove);
|
||||
empresaLayoutConfigList.removeItem(empresaToRemove);
|
||||
} else {
|
||||
try {
|
||||
Messagebox.show(Labels.getLabel("editarEmpresaController.MSG.selecioneUmItemConfigLayout"),
|
||||
Labels.getLabel("editarEmpresaController.tabConfiguracaoLayout.value"), Messagebox.OK,
|
||||
Messagebox.EXCLAMATION);
|
||||
} catch (InterruptedException e) {
|
||||
EditarEmpresaController.log.error("editarEmpresaController: " + e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void retirarCaracteresEspeciaisCNPJ() {
|
||||
if(empresa != null && empresa.getCnpj() != null && empresa.getCnpj().contains("-")
|
||||
|| empresa.getCnpj().contains(".") || empresa.getCnpj().contains("/")) {
|
||||
|
@ -3199,7 +3401,7 @@ public void onClick$btnTestEmailFlexBus(Event ev) throws InterruptedException {
|
|||
|
||||
int resp = Messagebox.show(
|
||||
Labels.getLabel("editarEmpresaController.mantemVdaCajaVdaEmbarcada.pergunta", new Object[] {"\n"}),
|
||||
Labels.getLabel("editarEmpresaController.window.title"),
|
||||
Labels.getLabel(TITULO),
|
||||
Messagebox.YES | Messagebox.NO, Messagebox.QUESTION);
|
||||
|
||||
if(resp == Messagebox.NO) {
|
||||
|
@ -3262,6 +3464,40 @@ public void onClick$btnTestEmailFlexBus(Event ev) throws InterruptedException {
|
|||
validarCPFCNPJ(numDoc);
|
||||
}
|
||||
|
||||
private class _DragEvent implements EventListener {
|
||||
@Override
|
||||
public void onEvent(Event event) throws Exception {
|
||||
|
||||
MyListbox droppedListbox = (MyListbox) (((DropEvent) event).getTarget());
|
||||
Listitem draggedListitem = (Listitem) ((DropEvent) event).getDragged();
|
||||
MyListbox draggedListBox = (MyListbox) draggedListitem.getParent();
|
||||
|
||||
if (draggedListitem instanceof Listitem) {
|
||||
|
||||
if (!droppedListbox.equals(draggedListBox)) {
|
||||
if (draggedListitem.getIndex() >= 0) {
|
||||
droppedListbox
|
||||
.addItemNovo(draggedListBox.getListModel().getElementAt(draggedListitem.getIndex()));
|
||||
draggedListBox
|
||||
.removeItem(draggedListBox.getListModel().getElementAt(draggedListitem.getIndex()));
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
} else {
|
||||
droppedListbox.appendChild(draggedListitem);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private Short[] retornaIdsFormaPagamento(List<FormaPago> idFormasPagos) {
|
||||
Short[] retorno = new Short[idFormasPagos.size()];
|
||||
for (int i = 0; i < idFormasPagos.size(); i++) {
|
||||
retorno[i] = idFormasPagos.get(i).getFormapagoId();
|
||||
}
|
||||
return retorno;
|
||||
}
|
||||
|
||||
public void uploadFile(UploadEvent event) {
|
||||
org.zkoss.util.media.Media media = event.getMedia();
|
||||
|
||||
|
@ -3274,7 +3510,7 @@ public void onClick$btnTestEmailFlexBus(Event ev) throws InterruptedException {
|
|||
} else {
|
||||
Messagebox.show(
|
||||
Labels.getLabel("editarMarcaController.MSG.errorIMG") + " " + media,
|
||||
Labels.getLabel("editarEmpresaController.window.title"),
|
||||
Labels.getLabel(TITULO),
|
||||
Messagebox.OK, Messagebox.ERROR);
|
||||
}
|
||||
|
||||
|
@ -3378,7 +3614,7 @@ public void onClick$btnTestEmailFlexBus(Event ev) throws InterruptedException {
|
|||
}
|
||||
|
||||
if(StringUtils.isNotBlank(msg)) {
|
||||
Messagebox.show(Labels.getLabel(msg), Labels.getLabel("editarEmpresaController.window.title"),
|
||||
Messagebox.show(Labels.getLabel(msg), Labels.getLabel(TITULO),
|
||||
Messagebox.OK, Messagebox.EXCLAMATION);
|
||||
return false;
|
||||
}
|
||||
|
@ -3436,7 +3672,7 @@ public void onClick$btnTestEmailFlexBus(Event ev) throws InterruptedException {
|
|||
} else {
|
||||
Messagebox.show(
|
||||
Labels.getLabel("editarMarcaController.MSG.errorIMG") + " " + media,
|
||||
Labels.getLabel("editarEmpresaController.window.title"),
|
||||
Labels.getLabel(TITULO),
|
||||
Messagebox.OK, Messagebox.ERROR);
|
||||
}
|
||||
|
||||
|
@ -3665,5 +3901,45 @@ public void onClick$btnTestEmailFlexBus(Event ev) throws InterruptedException {
|
|||
public void setLsTipoIntegracao(List<EnumTipoIntegracao> lsTipoIntegracao) {
|
||||
this.lsTipoIntegracao = lsTipoIntegracao;
|
||||
}
|
||||
|
||||
public List<TipoVenta> getLsTiposVenta() {
|
||||
return lsTiposVenta;
|
||||
}
|
||||
|
||||
public void setLsTiposVenta(List<TipoVenta> lsTiposVenta) {
|
||||
this.lsTiposVenta = lsTiposVenta;
|
||||
}
|
||||
|
||||
public List<EmpresaConfigLayout> getLsEmpresaConfigLayout() {
|
||||
return lsEmpresaConfigLayout;
|
||||
}
|
||||
|
||||
public void setLsEmpresaConfigLayout(List<EmpresaConfigLayout> lsEmpresaConfigLayout) {
|
||||
this.lsEmpresaConfigLayout = lsEmpresaConfigLayout;
|
||||
}
|
||||
|
||||
public MyListbox getEmpresaLayoutConfigList() {
|
||||
return empresaLayoutConfigList;
|
||||
}
|
||||
|
||||
public void setEmpresaLayoutConfigList(MyListbox empresaLayoutConfigList) {
|
||||
this.empresaLayoutConfigList = empresaLayoutConfigList;
|
||||
}
|
||||
|
||||
public MyListbox getEmpresaFormasPagamentoSicfe() {
|
||||
return empresaFormasPagamentoSicfe;
|
||||
}
|
||||
|
||||
public void setEmpresaFormasPagamentoSicfe(MyListbox empresaFormasPagamentoSicfe) {
|
||||
this.empresaFormasPagamentoSicfe = empresaFormasPagamentoSicfe;
|
||||
}
|
||||
|
||||
public MyListbox getEmpresaFormasPagamentoSicfeSelecionado() {
|
||||
return empresaFormasPagamentoSicfeSelecionado;
|
||||
}
|
||||
|
||||
public void setEmpresaFormasPagamentoSicfeSelecionado(MyListbox empresaFormasPagamentoSicfeSelecionado) {
|
||||
this.empresaFormasPagamentoSicfeSelecionado = empresaFormasPagamentoSicfeSelecionado;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -0,0 +1,179 @@
|
|||
/*
|
||||
* To change this template, choose Tools | Templates
|
||||
* and open the template in the editor.
|
||||
*/
|
||||
package com.rjconsultores.ventaboletos.web.gui.controladores.catalogos;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.context.annotation.Scope;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.zkoss.util.resource.Labels;
|
||||
import org.zkoss.zhtml.Messagebox;
|
||||
import org.zkoss.zk.ui.Component;
|
||||
import org.zkoss.zk.ui.Executions;
|
||||
import org.zkoss.zk.ui.event.Event;
|
||||
import org.zkoss.zul.Button;
|
||||
import org.zkoss.zul.Checkbox;
|
||||
|
||||
import com.rjconsultores.ventaboletos.entidad.TipoIdentificacion;
|
||||
import com.rjconsultores.ventaboletos.enums.TipoClasseServicoBPe;
|
||||
import com.rjconsultores.ventaboletos.service.TipoIdentificacionService;
|
||||
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyListbox;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyTextbox;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Administrador
|
||||
*/
|
||||
@Controller("editarTipoDocumentoController")
|
||||
@Scope("prototype")
|
||||
public class EditarTipoDocumentoController extends MyGenericForwardComposer {
|
||||
|
||||
private static final long serialVersionUID = 5671864130172992489L;
|
||||
|
||||
private static Logger log = LogManager.getLogger(EditarTipoDocumentoController.class);
|
||||
|
||||
|
||||
private TipoIdentificacion tipoDocumento;
|
||||
private MyListbox tipoDocumentoList;
|
||||
private Button btnApagar;
|
||||
private Checkbox chkExibeConfirmacaoTotalbus;
|
||||
private Button btnSalvar;
|
||||
|
||||
@Autowired
|
||||
TipoIdentificacionService tipoIdentificacionService;
|
||||
private MyTextbox txtDescTipoDocumento;
|
||||
|
||||
|
||||
@Override
|
||||
public void doAfterCompose(Component comp) throws Exception {
|
||||
super.doAfterCompose(comp);
|
||||
btnSalvar.setVisible(true);
|
||||
btnSalvar.setDisabled(false);
|
||||
tipoDocumento = (TipoIdentificacion) Executions.getCurrent().getArg().get("tipoDocumento");
|
||||
tipoDocumentoList = (MyListbox) Executions.getCurrent().getArg().get("tipoDocumentoList");
|
||||
if (tipoDocumento==null) {
|
||||
btnApagar.setVisible(Boolean.FALSE);
|
||||
}else {
|
||||
chkExibeConfirmacaoTotalbus.setChecked(tipoDocumento.getIndExibeConfirmacaoTotalbus());
|
||||
}
|
||||
txtDescTipoDocumento.focus();
|
||||
}
|
||||
|
||||
public void onClick$btnSalvar(Event ev) throws InterruptedException {
|
||||
|
||||
|
||||
txtDescTipoDocumento.getValue();
|
||||
chkExibeConfirmacaoTotalbus.getValue();
|
||||
String descTipoDoc = txtDescTipoDocumento.getValue();
|
||||
if(StringUtils.isBlank(descTipoDoc)) {
|
||||
Messagebox.show(
|
||||
Labels.getLabel("MSG.Registro.Existe"),
|
||||
Labels.getLabel("editarClaseServicioController.window.title"),
|
||||
Messagebox.OK, Messagebox.EXCLAMATION);
|
||||
return;
|
||||
}
|
||||
try {
|
||||
|
||||
TipoIdentificacion tipoDocumentoJaExistentes = null;
|
||||
if(tipoDocumento ==null) {
|
||||
tipoDocumentoJaExistentes = tipoIdentificacionService.buscarPorNome(descTipoDoc.trim());
|
||||
if(tipoDocumentoJaExistentes ==null){
|
||||
tipoDocumento = new TipoIdentificacion();
|
||||
tipoDocumento.setActivo(Boolean.TRUE);
|
||||
tipoDocumento.setFecmodif(new Date());
|
||||
tipoDocumento.setDesctipo(txtDescTipoDocumento.getValue());
|
||||
tipoDocumento.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (tipoDocumentoJaExistentes==null) {
|
||||
tipoDocumento.setIndExibeConfirmacaoTotalbus(chkExibeConfirmacaoTotalbus.isChecked());
|
||||
if (tipoDocumento.getTipoIdentificacionId() == null) {
|
||||
tipoIdentificacionService.suscribir(tipoDocumento);
|
||||
tipoDocumentoList.addItem(tipoDocumento);
|
||||
} else {
|
||||
tipoIdentificacionService.actualizacion(tipoDocumento);
|
||||
tipoDocumentoList.updateItem(tipoDocumento);
|
||||
}
|
||||
|
||||
Messagebox.show(
|
||||
Labels.getLabel("editarClaseServicioController.MSG.suscribirOK"),
|
||||
Labels.getLabel("editarTipoDocumentoController.window.title"),
|
||||
Messagebox.OK, Messagebox.INFORMATION);
|
||||
|
||||
closeWindow();
|
||||
} else {
|
||||
Messagebox.show(
|
||||
Labels.getLabel("MSG.Registro.Existe"),
|
||||
Labels.getLabel("editarTipoDocumentoController.window.title"),
|
||||
Messagebox.OK, Messagebox.EXCLAMATION);
|
||||
}
|
||||
} catch (Exception ex) {
|
||||
log.error("Erro ao editar Tipo de Documento", ex);
|
||||
Messagebox.show(
|
||||
Labels.getLabel("MSG.Error"),
|
||||
Labels.getLabel("editarTipoDocumentoController.window.title"),
|
||||
Messagebox.OK, Messagebox.ERROR);
|
||||
}
|
||||
}
|
||||
|
||||
public void onClick$btnApagar(Event ev) throws InterruptedException {
|
||||
int resp = Messagebox.show(
|
||||
Labels.getLabel("editarTipoDocumentoController.MSG.borrarPergunta"),
|
||||
Labels.getLabel("editarTipoDocumentoController.window.title"),
|
||||
Messagebox.YES | Messagebox.NO, Messagebox.QUESTION);
|
||||
|
||||
if (resp == Messagebox.YES) {
|
||||
tipoIdentificacionService.borrar(tipoDocumento);
|
||||
|
||||
Messagebox.show(
|
||||
Labels.getLabel("editarTipoDocumentoController.MSG.borrarOK"),
|
||||
Labels.getLabel("editarTipoDocumentoController.window.title"),
|
||||
Messagebox.OK, Messagebox.INFORMATION);
|
||||
|
||||
tipoDocumentoList.removeItem(tipoDocumento);
|
||||
closeWindow();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public Button getBtnApagar() {
|
||||
return btnApagar;
|
||||
}
|
||||
|
||||
public void setBtnApagar(Button btnApagar) {
|
||||
this.btnApagar = btnApagar;
|
||||
}
|
||||
|
||||
public List<TipoClasseServicoBPe> getTiposClasseServicoBPe() {
|
||||
return TipoClasseServicoBPe.getList();
|
||||
}
|
||||
|
||||
public TipoIdentificacion getTipoDocumento() {
|
||||
return tipoDocumento;
|
||||
}
|
||||
|
||||
public void setTipoDocumento(TipoIdentificacion tipoDocumento) {
|
||||
this.tipoDocumento = tipoDocumento;
|
||||
}
|
||||
|
||||
public Button getBtnSalvar() {
|
||||
return btnSalvar;
|
||||
}
|
||||
|
||||
public void setBtnSalvar(Button btnSalvar) {
|
||||
this.btnSalvar = btnSalvar;
|
||||
}
|
||||
|
||||
|
||||
}
|
|
@ -0,0 +1,169 @@
|
|||
package com.rjconsultores.ventaboletos.web.gui.controladores.configuracioneccomerciales;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.context.annotation.Scope;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.zkoss.lang.Strings;
|
||||
import org.zkoss.util.resource.Labels;
|
||||
import org.zkoss.zhtml.Messagebox;
|
||||
import org.zkoss.zk.ui.Component;
|
||||
import org.zkoss.zk.ui.event.Event;
|
||||
import org.zkoss.zul.Button;
|
||||
import org.zkoss.zul.Combobox;
|
||||
import org.zkoss.zul.Comboitem;
|
||||
import org.zkoss.zul.Longbox;
|
||||
import org.zkoss.zul.Textbox;
|
||||
|
||||
import com.rjconsultores.ventaboletos.entidad.GrupoContrato;
|
||||
import com.rjconsultores.ventaboletos.entidad.Parada;
|
||||
import com.rjconsultores.ventaboletos.entidad.Transportadora;
|
||||
import com.rjconsultores.ventaboletos.entidad.Voucher;
|
||||
import com.rjconsultores.ventaboletos.enums.SituacaoVoucher;
|
||||
import com.rjconsultores.ventaboletos.service.GrupoContratoService;
|
||||
import com.rjconsultores.ventaboletos.service.ParadaService;
|
||||
import com.rjconsultores.ventaboletos.service.TransportadoraService;
|
||||
import com.rjconsultores.ventaboletos.service.VoucherService;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
||||
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
@Getter
|
||||
@Setter
|
||||
@Controller("busquedaFaturarVoucherController")
|
||||
@Scope("prototype")
|
||||
public class BusquedaFaturarVoucherController extends MyGenericForwardComposer {
|
||||
|
||||
private static Logger log = LogManager.getLogger(BusquedaFaturarVoucherController.class);
|
||||
private static final long serialVersionUID = 5214942034025004656L;
|
||||
private static final String TITULO = "faturarVoucherController.window.title";
|
||||
|
||||
@Autowired
|
||||
private VoucherService voucherService;
|
||||
|
||||
@Autowired
|
||||
private ParadaService paradaService;
|
||||
|
||||
@Autowired
|
||||
private TransportadoraService transportadoraService;
|
||||
|
||||
@Autowired
|
||||
private GrupoContratoService grupoService;
|
||||
|
||||
private Longbox txtNumInicial;
|
||||
private Longbox txtNumFinal;
|
||||
private Textbox txtNumContrato;
|
||||
private Textbox txtNit;
|
||||
private Textbox txtNome;
|
||||
private Combobox cmbOrigem;
|
||||
private Combobox cmbDestino;
|
||||
private Button btnPesquisar;
|
||||
private Combobox cmbTransportadora;
|
||||
private Combobox cmbGrupo;
|
||||
|
||||
private List<Transportadora> lsTransportadora;
|
||||
private List<GrupoContrato> lsGrupo;
|
||||
|
||||
@Override
|
||||
public void doAfterCompose(Component comp) throws Exception {
|
||||
|
||||
setLsTransportadora(transportadoraService.obtenerTodos());
|
||||
setLsGrupo(grupoService.obtenerTodos());
|
||||
|
||||
super.doAfterCompose(comp);
|
||||
|
||||
}
|
||||
|
||||
public void onClick$btnPesquisar(Event ev) throws InterruptedException {
|
||||
|
||||
String numContrato = null;
|
||||
if( !Strings.isBlank(txtNumContrato.getValue()) ) {
|
||||
numContrato = txtNumContrato.getValue();
|
||||
}
|
||||
|
||||
Transportadora transportadora = null;
|
||||
Comboitem transp = cmbTransportadora.getSelectedItem();
|
||||
if( transp != null ) {
|
||||
transportadora = (Transportadora)transp.getValue();
|
||||
}
|
||||
|
||||
GrupoContrato grupoContrato = null;
|
||||
Comboitem grup = cmbGrupo.getSelectedItem();
|
||||
if( grup != null ) {
|
||||
grupoContrato = (GrupoContrato)grup.getValue();
|
||||
}
|
||||
|
||||
Parada origem = null;
|
||||
Comboitem orig = cmbOrigem.getSelectedItem();
|
||||
if( orig != null ) {
|
||||
origem = (Parada)orig.getValue();
|
||||
}
|
||||
|
||||
Parada destino = null;
|
||||
Comboitem dest = cmbDestino.getSelectedItem();
|
||||
if( dest != null ) {
|
||||
destino = (Parada)dest.getValue();
|
||||
}
|
||||
|
||||
List<Voucher> listaVoucher = voucherService.buscarListaVoucher( txtNumInicial.getValue(),
|
||||
txtNumFinal.getValue(),
|
||||
numContrato,
|
||||
transportadora==null?null:transportadora.getTransportadoraId(),
|
||||
grupoContrato==null?null:grupoContrato.getGrupoContratoId(),
|
||||
SituacaoVoucher.LEGALIZADO.getValor(),
|
||||
origem==null?null:origem.getParadaId(),
|
||||
destino==null?null:destino.getParadaId());
|
||||
if (listaVoucher.isEmpty()) {
|
||||
try {
|
||||
Messagebox.show(Labels.getLabel("MSG.ningunRegistro"),
|
||||
Labels.getLabel(TITULO),
|
||||
Messagebox.OK, Messagebox.INFORMATION);
|
||||
} catch (InterruptedException ex) {
|
||||
log.error(ex);
|
||||
}
|
||||
}else {
|
||||
preencheComplemento(listaVoucher);
|
||||
|
||||
Map<String, Object> args = new HashMap<String, Object>();
|
||||
args.put("listaVoucher", listaVoucher);
|
||||
|
||||
openWindow("/gui/configuraciones_comerciales/negcorporativos/faturarVoucher.zul",
|
||||
Labels.getLabel("editarVoucherController.window.title"), args, MODAL);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public void onBlur$txtNit(Event ev) throws InterruptedException {
|
||||
if(txtNit.getValue() != null && !txtNit.getValue().isEmpty()) {
|
||||
Transportadora transp = transportadoraService.buscarPorNit(txtNit.getValue());
|
||||
if(transp != null) {
|
||||
selecionaCombo(transp, cmbTransportadora);
|
||||
txtNumContrato.setFocus(true);
|
||||
}else {
|
||||
Messagebox.show(
|
||||
Labels.getLabel("faturarVoucherController.MSG.nitNaoEncontrado"),
|
||||
Labels.getLabel(TITULO),
|
||||
Messagebox.OK, Messagebox.ERROR);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void preencheComplemento(List<Voucher> listaVoucher) {
|
||||
for (Voucher item : listaVoucher) {
|
||||
if( StringUtils.isEmpty(item.getDescOrigem()) || StringUtils.isEmpty(item.getDescDestino() )) {
|
||||
List<String> origemDestino = paradaService.buscarDescOrigemDestino(item.getOrigenId(), item.getDestinoId());
|
||||
if(! origemDestino.isEmpty() ) {
|
||||
item.setDescOrigem( origemDestino.get(0) );
|
||||
item.setDescDestino( origemDestino.get(1) );
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -75,6 +75,11 @@ public class EditarVoucherController extends MyGenericForwardComposer {
|
|||
voucher = (Voucher) Executions.getCurrent().getArg().get("voucher");
|
||||
voucherList = (MyListbox) Executions.getCurrent().getArg().get("voucherList");
|
||||
|
||||
if(voucher == null) {
|
||||
Long voucherId = (Long) Executions.getCurrent().getArg().get("voucherId");
|
||||
voucher = voucherService.obtenerID(voucherId);
|
||||
}
|
||||
|
||||
if( voucher.getClienteCorporativoId() !=null ) {
|
||||
Voucher sub = voucher;
|
||||
voucher = voucherService.obtenerID(voucher.getVoucherId());
|
||||
|
|
|
@ -0,0 +1,169 @@
|
|||
package com.rjconsultores.ventaboletos.web.gui.controladores.configuracioneccomerciales;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.context.annotation.Scope;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.zkoss.util.resource.Labels;
|
||||
import org.zkoss.zhtml.Messagebox;
|
||||
import org.zkoss.zk.ui.Component;
|
||||
import org.zkoss.zk.ui.Executions;
|
||||
import org.zkoss.zk.ui.event.Event;
|
||||
import org.zkoss.zk.ui.event.EventListener;
|
||||
import org.zkoss.zul.Button;
|
||||
import org.zkoss.zul.Datebox;
|
||||
import org.zkoss.zul.Longbox;
|
||||
import org.zkoss.zul.Paging;
|
||||
|
||||
import com.rjconsultores.ventaboletos.entidad.Voucher;
|
||||
import com.rjconsultores.ventaboletos.service.GrupoContratoService;
|
||||
import com.rjconsultores.ventaboletos.service.ParadaService;
|
||||
import com.rjconsultores.ventaboletos.service.TransportadoraService;
|
||||
import com.rjconsultores.ventaboletos.service.VoucherService;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyListbox;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderFaturarVoucher;
|
||||
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
@Getter
|
||||
@Setter
|
||||
@Controller("faturarVoucherController")
|
||||
@Scope("prototype")
|
||||
public class FaturarVoucherController extends MyGenericForwardComposer {
|
||||
|
||||
private static Logger log = LogManager.getLogger(FaturarVoucherController.class);
|
||||
private static final long serialVersionUID = 5214942034025004656L;
|
||||
private static final String TITULO = "faturarVoucherController.window.title";
|
||||
|
||||
@Autowired
|
||||
private VoucherService voucherService;
|
||||
|
||||
@Autowired
|
||||
private ParadaService paradaService;
|
||||
|
||||
@Autowired
|
||||
private TransportadoraService transportadoraService;
|
||||
|
||||
@Autowired
|
||||
private GrupoContratoService grupoService;
|
||||
|
||||
private MyListbox voucherList;
|
||||
private Paging pagingFaturar;
|
||||
private Longbox txtFatura;
|
||||
private Datebox datCorte;
|
||||
private Button btnFaturar;
|
||||
private Button btnFaturarFim;
|
||||
|
||||
@Override
|
||||
@SuppressWarnings("unchecked")
|
||||
public void doAfterCompose(Component comp) throws Exception {
|
||||
super.doAfterCompose(comp);
|
||||
|
||||
List<Voucher> listaVoucher = (List<Voucher>) Executions.getCurrent().getArg().get("listaVoucher");
|
||||
voucherList.setData(listaVoucher);
|
||||
voucherList.setItemRenderer(new RenderFaturarVoucher());
|
||||
voucherList.addEventListener("onDoubleClick", new EventListener() {
|
||||
|
||||
@Override
|
||||
public void onEvent(Event event) throws Exception {
|
||||
Voucher cc = (Voucher) voucherList.getSelected();
|
||||
verVoucher(cc);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@SuppressWarnings({ "rawtypes", "unchecked" })
|
||||
private void verVoucher(Voucher gc) {
|
||||
if (gc == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
Map args = new HashMap();
|
||||
args.put("voucher", gc);
|
||||
args.put("voucherList", voucherList);
|
||||
|
||||
openWindow("/gui/configuraciones_comerciales/negcorporativos/editarVoucher.zul",
|
||||
Labels.getLabel("editarVoucherController.window.title"), args, MODAL);
|
||||
}
|
||||
|
||||
public void onClick$btnSalvar(Event ev) throws InterruptedException {
|
||||
onClick$btnFaturar(ev);
|
||||
}
|
||||
|
||||
public void onClick$btnFaturar(Event ev) throws InterruptedException {
|
||||
try {
|
||||
if(validaCampos()) {
|
||||
executaFaturamento();
|
||||
}
|
||||
} catch (Exception ex) {
|
||||
log.error(ex.getMessage());
|
||||
Messagebox.show(
|
||||
Labels.getLabel("MSG.Error"),
|
||||
Labels.getLabel(TITULO),
|
||||
Messagebox.OK, Messagebox.ERROR);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
private void executaFaturamento() {
|
||||
|
||||
voucherService.faturar( voucherList.getListData(),
|
||||
txtFatura.getValue(),
|
||||
datCorte.getValue() );
|
||||
|
||||
try {
|
||||
Messagebox.show(
|
||||
Labels.getLabel("MSG.suscribirOK"),
|
||||
Labels.getLabel(TITULO),
|
||||
Messagebox.OK, Messagebox.INFORMATION);
|
||||
} catch (InterruptedException e) {
|
||||
log.error(e);
|
||||
}
|
||||
|
||||
closeWindow();
|
||||
|
||||
}
|
||||
|
||||
private boolean validaCampos() throws InterruptedException {
|
||||
|
||||
if ( txtFatura.getValue() != null && datCorte.getValue() != null ){
|
||||
int resp = Messagebox.show(
|
||||
Labels.getLabel("faturarVoucherController.MSG.faturaCorteDefault"),
|
||||
Labels.getLabel(TITULO),
|
||||
Messagebox.YES | Messagebox.NO, Messagebox.QUESTION);
|
||||
|
||||
return resp == Messagebox.YES;
|
||||
}else if ( txtFatura.getValue() != null ){
|
||||
int resp = Messagebox.show(
|
||||
Labels.getLabel("faturarVoucherController.MSG.faturaDefault"),
|
||||
Labels.getLabel(TITULO),
|
||||
Messagebox.YES | Messagebox.NO, Messagebox.QUESTION);
|
||||
|
||||
return resp == Messagebox.YES;
|
||||
}else if ( datCorte.getValue() != null ){
|
||||
int resp = Messagebox.show(
|
||||
Labels.getLabel("faturarVoucherController.MSG.corteDefault"),
|
||||
Labels.getLabel(TITULO),
|
||||
Messagebox.YES | Messagebox.NO, Messagebox.QUESTION);
|
||||
|
||||
return resp == Messagebox.YES;
|
||||
}else {
|
||||
int resp = Messagebox.show(
|
||||
Labels.getLabel("faturarVoucherController.MSG.faturaCorteVazio"),
|
||||
Labels.getLabel(TITULO),
|
||||
Messagebox.YES | Messagebox.NO, Messagebox.QUESTION);
|
||||
|
||||
return resp == Messagebox.YES;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,194 @@
|
|||
package com.rjconsultores.ventaboletos.web.gui.controladores.configuracioneccomerciales;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.context.annotation.Scope;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.zkoss.util.resource.Labels;
|
||||
import org.zkoss.zhtml.Messagebox;
|
||||
import org.zkoss.zk.ui.Component;
|
||||
import org.zkoss.zk.ui.event.Event;
|
||||
import org.zkoss.zk.ui.event.EventListener;
|
||||
import org.zkoss.zul.Button;
|
||||
import org.zkoss.zul.Combobox;
|
||||
import org.zkoss.zul.Comboitem;
|
||||
import org.zkoss.zul.Decimalbox;
|
||||
import org.zkoss.zul.Longbox;
|
||||
import org.zkoss.zul.Paging;
|
||||
import org.zkoss.zul.Textbox;
|
||||
|
||||
import com.rjconsultores.ventaboletos.entidad.Parada;
|
||||
import com.rjconsultores.ventaboletos.entidad.Transportadora;
|
||||
import com.rjconsultores.ventaboletos.entidad.Voucher;
|
||||
import com.rjconsultores.ventaboletos.exception.BusinessException;
|
||||
import com.rjconsultores.ventaboletos.service.ParadaService;
|
||||
import com.rjconsultores.ventaboletos.service.TransportadoraService;
|
||||
import com.rjconsultores.ventaboletos.service.VoucherService;
|
||||
import com.rjconsultores.ventaboletos.vo.configuracioneccomerciales.VoucherVO;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyListbox;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderPadrao;
|
||||
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
@Getter
|
||||
@Setter
|
||||
@Controller("legalizacaoMassivaController")
|
||||
@Scope("prototype")
|
||||
public class LegalizacaoMassivaController extends MyGenericForwardComposer {
|
||||
|
||||
private static Logger log = LogManager.getLogger(LegalizacaoMassivaController.class);
|
||||
private static final long serialVersionUID = 1L;
|
||||
private static final String TITULO = "legalizacaoMassivaController.window.title";
|
||||
|
||||
@Autowired
|
||||
private VoucherService voucherService;
|
||||
|
||||
@Autowired
|
||||
private ParadaService paradaService;
|
||||
|
||||
@Autowired
|
||||
private TransportadoraService transportadoraService;
|
||||
|
||||
private MyListbox voucherList;
|
||||
private Paging pagingLegalizar;
|
||||
private Longbox txtNumInicial;
|
||||
private Longbox txtNumFinal;
|
||||
private Textbox txtNumContrato;
|
||||
private Textbox txtNit;
|
||||
private Textbox txtNome;
|
||||
private Combobox cmbOrigem;
|
||||
private Combobox cmbDestino;
|
||||
private Button btnLegalizar;
|
||||
private Combobox cmbTransportadora;
|
||||
private Decimalbox txtValorLegalizado;
|
||||
|
||||
private List<Transportadora> lsTransportadora;
|
||||
|
||||
@Override
|
||||
public void doAfterCompose(Component comp) throws Exception {
|
||||
|
||||
setLsTransportadora(transportadoraService.obtenerTodos());
|
||||
|
||||
super.doAfterCompose(comp);
|
||||
|
||||
voucherList.setItemRenderer(new RenderPadrao<VoucherVO>(VoucherVO.class));
|
||||
voucherList.addEventListener("onDoubleClick", new EventListener() {
|
||||
|
||||
@Override
|
||||
public void onEvent(Event event) throws Exception {
|
||||
VoucherVO cc = (VoucherVO) voucherList.getSelected();
|
||||
verVoucher(cc);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@SuppressWarnings({ "rawtypes", "unchecked" })
|
||||
private void verVoucher(VoucherVO gc) {
|
||||
if (gc == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
Map args = new HashMap();
|
||||
args.put("voucherId", gc.getVoucherId());
|
||||
|
||||
openWindow("/gui/configuraciones_comerciales/negcorporativos/editarVoucher.zul",
|
||||
Labels.getLabel("editarVoucherController.window.title"), args, MODAL);
|
||||
}
|
||||
|
||||
public void onClick$btnLegalizar(Event ev) throws InterruptedException {
|
||||
try {
|
||||
validaCampos();
|
||||
|
||||
executaLegalizacao();
|
||||
|
||||
} catch (BusinessException bex) {
|
||||
Messagebox.show(
|
||||
bex.getMessage(),
|
||||
Labels.getLabel(TITULO),
|
||||
Messagebox.OK, Messagebox.ERROR);
|
||||
} catch (Exception ex) {
|
||||
log.error(ex.getMessage());
|
||||
Messagebox.show(
|
||||
Labels.getLabel("MSG.Error"),
|
||||
Labels.getLabel(TITULO),
|
||||
Messagebox.OK, Messagebox.ERROR);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public void onBlur$txtNit(Event ev) throws InterruptedException {
|
||||
if(txtNit.getValue() != null && !txtNit.getValue().isEmpty()) {
|
||||
Transportadora transp = transportadoraService.buscarPorNit(txtNit.getValue());
|
||||
if(transp != null) {
|
||||
selecionaCombo(transp, cmbTransportadora);
|
||||
txtNumContrato.setFocus(true);
|
||||
}else {
|
||||
Messagebox.show(
|
||||
Labels.getLabel("legalizacaoMassivaController.MSG.nitNaoEncontrado"),
|
||||
Labels.getLabel(TITULO),
|
||||
Messagebox.OK, Messagebox.ERROR);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void executaLegalizacao() {
|
||||
|
||||
Transportadora transportadora;
|
||||
transportadora = (Transportadora)cmbTransportadora.getSelectedItem().getValue();
|
||||
|
||||
Parada origem = null;
|
||||
Comboitem orig = cmbOrigem.getSelectedItem();
|
||||
if( orig != null ) {
|
||||
origem = (Parada)orig.getValue();
|
||||
}
|
||||
|
||||
Parada destino = null;
|
||||
Comboitem dest = cmbDestino.getSelectedItem();
|
||||
if( dest != null ) {
|
||||
destino = (Parada)dest.getValue();
|
||||
}
|
||||
|
||||
List<VoucherVO> processamento = voucherService.legalizar( txtNumInicial.getValue(),
|
||||
txtNumFinal.getValue(),
|
||||
txtNumContrato.getValue(),
|
||||
transportadora,
|
||||
txtValorLegalizado.getValue(),
|
||||
origem,
|
||||
destino);
|
||||
|
||||
voucherList.setData(processamento);
|
||||
preencheComplemento();
|
||||
pagingLegalizar.setVisible(true);
|
||||
voucherList.setVisible(true);
|
||||
}
|
||||
|
||||
private void validaCampos() throws BusinessException {
|
||||
if ( txtNumInicial.getValue() == null
|
||||
|| txtNumFinal.getValue() == null
|
||||
|| txtValorLegalizado.getValue() == null
|
||||
|| cmbTransportadora.getSelectedItem() == null ){
|
||||
throw new BusinessException("legalizacaoMassivaController.MSG.camposObrigatorios");
|
||||
}
|
||||
}
|
||||
|
||||
private void preencheComplemento() {
|
||||
for (Object item : voucherList.getListData()) {
|
||||
VoucherVO obj = (VoucherVO)item;
|
||||
if( StringUtils.isEmpty(obj.getDescOrigem()) || StringUtils.isEmpty(obj.getDescDestino() )) {
|
||||
List<String> origemDestino = paradaService.buscarDescOrigemDestino(obj.getOrigenId(), obj.getDestinoId());
|
||||
if(! origemDestino.isEmpty() ) {
|
||||
obj.setDescOrigem( origemDestino.get(0) );
|
||||
obj.setDescDestino( origemDestino.get(1) );
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,6 +1,5 @@
|
|||
package com.rjconsultores.ventaboletos.web.gui.controladores.esquemaoperacional;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.commons.lang.BooleanUtils;
|
||||
|
@ -82,7 +81,16 @@ public class EditarAliasClasseController extends MyGenericForwardComposer {
|
|||
|
||||
public void onClick$btnSalvar(Event ev) throws InterruptedException {
|
||||
|
||||
cmbAlias.getValue();
|
||||
cmbClasse.getValue();
|
||||
|
||||
try {
|
||||
if(cmbRuta.getSelectedItem() == null) {
|
||||
aliasClasse.setRuta(null);
|
||||
}
|
||||
if(cmbEmpresa.getSelectedItem() == null) {
|
||||
aliasClasse.setEmpresa(null);
|
||||
}
|
||||
aliasClasse.setIndSomenteImpressao(chkSomenteImpressao.isChecked() ? Boolean.TRUE : Boolean.FALSE);
|
||||
aliasClasseService.suscribirActualizar(aliasClasse);
|
||||
aliasClasseList.updateItem(aliasClasse);
|
||||
|
|
|
@ -25,8 +25,10 @@ import org.zkoss.zul.Doublebox;
|
|||
import org.zkoss.zul.Intbox;
|
||||
import org.zkoss.zul.ListModelList;
|
||||
import org.zkoss.zul.Messagebox;
|
||||
import org.zkoss.zul.Row;
|
||||
import org.zkoss.zul.Tab;
|
||||
import org.zkoss.zul.Textbox;
|
||||
import org.zkoss.zul.api.Hbox;
|
||||
|
||||
import com.rjconsultores.ventaboletos.entidad.ClaseServicio;
|
||||
import com.rjconsultores.ventaboletos.entidad.Conexion;
|
||||
|
@ -55,6 +57,8 @@ import com.rjconsultores.ventaboletos.service.ConexionService;
|
|||
import com.rjconsultores.ventaboletos.service.RutaEmpresaService;
|
||||
import com.rjconsultores.ventaboletos.service.RutaService;
|
||||
import com.rjconsultores.ventaboletos.service.TipoPuntoVentaService;
|
||||
import com.rjconsultores.ventaboletos.utilerias.ApplicationProperties;
|
||||
import com.rjconsultores.ventaboletos.utilerias.CustomEnum;
|
||||
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
||||
import com.rjconsultores.ventaboletos.vo.parada.ConexionCtrlVO;
|
||||
import com.rjconsultores.ventaboletos.vo.parada.ConexionRutaConfVO;
|
||||
|
@ -141,7 +145,6 @@ public class GerarConexionPorRutaController extends MyGenericForwardComposer {
|
|||
private Combobox cmbOrigemConexao;
|
||||
private Combobox cmbDestinoConexao;
|
||||
|
||||
private Button btnFiltrar;
|
||||
List<ParadaVOConexionRuta> localidadesGeradasFiltro;
|
||||
private List<Parada> lsOrigemConexao;
|
||||
private List<Parada> lsDestinoConexao;
|
||||
|
@ -149,6 +152,18 @@ public class GerarConexionPorRutaController extends MyGenericForwardComposer {
|
|||
|
||||
private boolean isConexionGerada;
|
||||
|
||||
private Checkbox chkBloqueioTrechoA;
|
||||
private Checkbox chkBloqueioTrechoB;
|
||||
private Checkbox chkBloqueioTrechoC;
|
||||
|
||||
private Hbox rowTrechoA;
|
||||
private Hbox rowTrechoB;
|
||||
private Hbox rowTrechoC;
|
||||
private Row linhaBloqueio;
|
||||
|
||||
private Intbox txtTempoAteSaida;
|
||||
private Intbox txtPorcentagemOcupacao;
|
||||
|
||||
@Override
|
||||
public void doAfterCompose(Component comp) throws Exception {
|
||||
|
||||
|
@ -165,8 +180,14 @@ public class GerarConexionPorRutaController extends MyGenericForwardComposer {
|
|||
conexionRutaConfList = (MyListbox) Executions.getCurrent().getArg().get("conexionRutaConfList");
|
||||
conexoesCtrl = new ArrayList<>();
|
||||
|
||||
if (!ApplicationProperties.getInstance().isCustomHabilitado(CustomEnum.USA_BLOQUEIO_TRECHO_CONEXAO.getDescricao())) {
|
||||
rowTrechoA.setVisible(Boolean.FALSE);
|
||||
rowTrechoB.setVisible(Boolean.FALSE);
|
||||
rowTrechoC.setVisible(Boolean.FALSE);
|
||||
linhaBloqueio.setVisible(Boolean.FALSE);
|
||||
}
|
||||
|
||||
if (conexionRutaConf != null) {
|
||||
|
||||
|
||||
btnSalvar.setDisabled(false);
|
||||
btnApagar.setDisabled(false);
|
||||
|
@ -176,6 +197,12 @@ public class GerarConexionPorRutaController extends MyGenericForwardComposer {
|
|||
txtTiempoMax.setValue(conexionRutaConf.getTiempoMax());
|
||||
txtDesconto.setValue(conexionRutaConf.getDescuento() == null ? null : conexionRutaConf.getDescuento().doubleValue());
|
||||
|
||||
txtTempoAteSaida.setValue(conexionRutaConf.getMinutosAntesPartida());
|
||||
txtPorcentagemOcupacao.setValue(conexionRutaConf.getPorcentagemOcupacao());
|
||||
chkBloqueioTrechoA.setChecked(conexionRutaConf.getIsBloqueioTrechoA());
|
||||
chkBloqueioTrechoB.setChecked(conexionRutaConf.getIsBloqueioTrechoB());
|
||||
chkBloqueioTrechoC.setChecked(conexionRutaConf.getIsBloqueioTrechoC());
|
||||
|
||||
configuraExcecaoPorPontoVenda();
|
||||
|
||||
configuraExcecaoPorTipoVenda();
|
||||
|
@ -397,6 +424,13 @@ public class GerarConexionPorRutaController extends MyGenericForwardComposer {
|
|||
conexionRutaConf.setTiempoMin(txtTiempoMin.getValue());
|
||||
conexionRutaConf.setTiempoMax(txtTiempoMax.getValue());
|
||||
|
||||
conexionRutaConf.setMinutosAntesPartida(txtTempoAteSaida.getValue());
|
||||
conexionRutaConf.setPorcentagemOcupacao(txtPorcentagemOcupacao.getValue());
|
||||
|
||||
conexionRutaConf.setIsBloqueioTrechoA(chkBloqueioTrechoA.isChecked());
|
||||
conexionRutaConf.setIsBloqueioTrechoB(chkBloqueioTrechoB.isChecked());
|
||||
conexionRutaConf.setIsBloqueioTrechoC(chkBloqueioTrechoC.isChecked());
|
||||
|
||||
Double desconto = txtDesconto.getValue() == null ? 0d : txtDesconto.getValue();
|
||||
Boolean descontoAlterado = false;
|
||||
BigDecimal descontoAnterior = conexionRutaConf.getDescuento();
|
||||
|
|
|
@ -18,6 +18,7 @@ import org.zkoss.zul.Paging;
|
|||
|
||||
import com.rjconsultores.ventaboletos.entidad.SolicitudExpreso;
|
||||
import com.rjconsultores.ventaboletos.entidad.TrayectosExpresos;
|
||||
import com.rjconsultores.ventaboletos.service.LogAuditoriaService;
|
||||
import com.rjconsultores.ventaboletos.service.TrayectosExpresosService;
|
||||
import com.rjconsultores.ventaboletos.utilerias.DateUtil;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
||||
|
@ -38,6 +39,9 @@ public class AsignarBusExpresosController extends MyGenericForwardComposer{
|
|||
|
||||
@Autowired
|
||||
TrayectosExpresosService trayectoService;
|
||||
|
||||
@Autowired
|
||||
private LogAuditoriaService logAuditoriaService;
|
||||
|
||||
MyTextbox txtNumSolicitud;
|
||||
MyTextbox txtRuta;
|
||||
|
@ -54,6 +58,7 @@ public class AsignarBusExpresosController extends MyGenericForwardComposer{
|
|||
|
||||
SolicitudExpreso expreso;
|
||||
TrayectosExpresos trayecto;
|
||||
TrayectosExpresos trayectoClone;
|
||||
|
||||
@Override
|
||||
public void doAfterCompose(Component comp) throws Exception {
|
||||
|
@ -65,6 +70,8 @@ public class AsignarBusExpresosController extends MyGenericForwardComposer{
|
|||
@Override
|
||||
public void onEvent(Event arg0) throws Exception {
|
||||
trayecto = (TrayectosExpresos)arg0.getTarget().getAttribute("data");
|
||||
trayecto.clonar();
|
||||
trayectoClone = trayecto.getCloneObject();
|
||||
|
||||
Media fluec = Fileupload.get();
|
||||
|
||||
|
@ -75,6 +82,8 @@ public class AsignarBusExpresosController extends MyGenericForwardComposer{
|
|||
trayecto.setDocFluec(bytesIs);
|
||||
|
||||
trayectoService.actualizacion(trayecto);
|
||||
|
||||
logAuditoriaService.auditar(trayectoClone, trayecto, null);
|
||||
} else {
|
||||
Messagebox.show(
|
||||
Labels.getLabel("cargaContratoController.MSG.errorFormatoContrato") + " " + fluec,
|
||||
|
|
|
@ -39,6 +39,7 @@ import org.zkoss.zul.Paging;
|
|||
import com.rjconsultores.ventaboletos.entidad.Empresa;
|
||||
import com.rjconsultores.ventaboletos.entidad.SolicitudExpreso;
|
||||
import com.rjconsultores.ventaboletos.service.EmpresaService;
|
||||
import com.rjconsultores.ventaboletos.service.LogAuditoriaService;
|
||||
import com.rjconsultores.ventaboletos.service.SolicitudExpresosService;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyDatebox;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
||||
|
@ -64,6 +65,12 @@ public class CargaContratoExpressosController extends MyGenericForwardComposer{
|
|||
@Autowired
|
||||
private EmpresaService empresaService;
|
||||
|
||||
@Autowired
|
||||
SolicitudExpresosService solicitudExpresosService;
|
||||
|
||||
@Autowired
|
||||
private LogAuditoriaService logAuditoriaService;
|
||||
|
||||
private List<Empresa> lsEmpresa;
|
||||
private Combobox cmbEmpresa;
|
||||
private MyListbox expresosList;
|
||||
|
@ -73,9 +80,8 @@ public class CargaContratoExpressosController extends MyGenericForwardComposer{
|
|||
private MyDatebox txtFechaInicio;
|
||||
private MyDatebox txtFechaFin;
|
||||
|
||||
@Autowired
|
||||
SolicitudExpresosService solicitudExpresosService;
|
||||
SolicitudExpreso expreso;
|
||||
SolicitudExpreso expresoClone;
|
||||
|
||||
@Override
|
||||
public void doAfterCompose(Component comp) throws Exception {
|
||||
|
@ -88,6 +94,8 @@ public class CargaContratoExpressosController extends MyGenericForwardComposer{
|
|||
@Override
|
||||
public void onEvent(Event event) throws Exception {
|
||||
expreso = (SolicitudExpreso) expresosList.getSelected();
|
||||
expreso.clonar();
|
||||
expresoClone = expreso.getCloneObject();
|
||||
}
|
||||
});
|
||||
|
||||
|
@ -100,12 +108,12 @@ public class CargaContratoExpressosController extends MyGenericForwardComposer{
|
|||
|
||||
Date fechaInicio = txtFechaInicio.getValue();
|
||||
if(fechaInicio != null) {
|
||||
buscarExpresos.addFilterGreaterOrEqual("FECSOLICITUD", fechaInicio);
|
||||
buscarExpresos.addFilterGreaterOrEqual("fechaSolicitud", fechaInicio);
|
||||
}
|
||||
|
||||
Date fechaFin = txtFechaFin.getValue();
|
||||
if(fechaFin != null) {
|
||||
buscarExpresos.addFilterLessOrEqual("FECSOLICITUD", fechaFin);
|
||||
buscarExpresos.addFilterLessOrEqual("fechaSolicitud", fechaFin);
|
||||
}
|
||||
|
||||
if(ckServiciosInactivos.isChecked()) {
|
||||
|
@ -121,7 +129,7 @@ public class CargaContratoExpressosController extends MyGenericForwardComposer{
|
|||
plwTrayectosExpresos.init(buscarExpresos, expresosList, pagingExpresos);
|
||||
}
|
||||
|
||||
public void onUpload(UploadEvent event) throws IOException, InterruptedException {
|
||||
public void onUpload(UploadEvent event) throws IOException, InterruptedException, CloneNotSupportedException {
|
||||
if(expreso == null) {
|
||||
Messagebox.show(
|
||||
Labels.getLabel("cargaContratoController.MSG.errorExpresoNull"),
|
||||
|
@ -137,6 +145,8 @@ public class CargaContratoExpressosController extends MyGenericForwardComposer{
|
|||
expreso.setDocContrato(bytesIs);
|
||||
|
||||
solicitudExpresosService.actualizacion(expreso);
|
||||
|
||||
logAuditoriaService.auditar(expresoClone, expreso, null);
|
||||
} else {
|
||||
Messagebox.show(
|
||||
Labels.getLabel("cargaContratoController.MSG.errorFormatoContrato") + " " + media,
|
||||
|
|
|
@ -11,6 +11,7 @@ import org.zkoss.zul.Messagebox;
|
|||
import org.zkoss.zul.Window;
|
||||
|
||||
import com.rjconsultores.ventaboletos.entidad.TrayectosExpresos;
|
||||
import com.rjconsultores.ventaboletos.service.LogAuditoriaService;
|
||||
import com.rjconsultores.ventaboletos.service.TrayectosExpresosService;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyTextbox;
|
||||
|
@ -23,7 +24,11 @@ public class CargarPlacaBusExpresoController extends MyGenericForwardComposer{
|
|||
@Autowired
|
||||
TrayectosExpresosService trayectosExpresosService;
|
||||
|
||||
@Autowired
|
||||
private LogAuditoriaService logAuditoriaService;
|
||||
|
||||
TrayectosExpresos trayecto;
|
||||
TrayectosExpresos trayectoClone;
|
||||
|
||||
private MyTextbox txtRuta;
|
||||
private MyTextbox txtNumPlaca;
|
||||
|
@ -32,7 +37,8 @@ public class CargarPlacaBusExpresoController extends MyGenericForwardComposer{
|
|||
public void doAfterCompose(Component comp) throws Exception {
|
||||
super.doAfterCompose(comp);
|
||||
trayecto = (TrayectosExpresos) Executions.getCurrent().getArg().get("trayecto");
|
||||
//winCotizarExpresso = (Window) Executions.getCurrent().getArg().get("winCotizarExpresso");
|
||||
trayecto.clonar();
|
||||
trayectoClone = trayecto.getCloneObject();
|
||||
|
||||
txtRuta.setValue(trayecto.getDescTrayecto() == null ? "" : trayecto.getDescTrayecto());
|
||||
}
|
||||
|
@ -46,6 +52,9 @@ public class CargarPlacaBusExpresoController extends MyGenericForwardComposer{
|
|||
}else {
|
||||
trayecto.setNumPlaca(txtNumPlaca.getValue());
|
||||
trayectosExpresosService.actualizacion(trayecto);
|
||||
|
||||
logAuditoriaService.auditar(trayectoClone, trayecto, null);
|
||||
|
||||
this.closeWindow();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -59,6 +59,7 @@ import com.rjconsultores.ventaboletos.entidad.SolicitudExpreso;
|
|||
import com.rjconsultores.ventaboletos.entidad.TrayectosExpresos;
|
||||
import com.rjconsultores.ventaboletos.service.CiudadService;
|
||||
import com.rjconsultores.ventaboletos.service.ConstanteService;
|
||||
import com.rjconsultores.ventaboletos.service.LogAuditoriaService;
|
||||
import com.rjconsultores.ventaboletos.service.SolicitudExpresosService;
|
||||
import com.rjconsultores.ventaboletos.service.TrayectosExpresosService;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
||||
|
@ -90,8 +91,14 @@ public class CotizarExpresoController extends MyGenericForwardComposer{
|
|||
@Autowired
|
||||
ConstanteService constanteService;
|
||||
|
||||
@Autowired
|
||||
private LogAuditoriaService logAuditoriaService;
|
||||
|
||||
SolicitudExpreso expreso;
|
||||
SolicitudExpreso expresoClone;
|
||||
|
||||
TrayectosExpresos trayecto;
|
||||
TrayectosExpresos trayectoClone;
|
||||
|
||||
private MyTextbox txtNumSolicitud;
|
||||
private MyTextbox txtRuta;
|
||||
|
@ -123,6 +130,8 @@ public class CotizarExpresoController extends MyGenericForwardComposer{
|
|||
super.doAfterCompose(comp);
|
||||
|
||||
expreso = (SolicitudExpreso) Executions.getCurrent().getArg().get("expreso");
|
||||
expreso.clonar();
|
||||
expresoClone = expreso.getCloneObject();
|
||||
|
||||
trayectosList.setItemRenderer(new RenderTrayectosExpreso());
|
||||
trayectosList.addEventListener("onDoubleClick", new EventListener() {
|
||||
|
@ -199,6 +208,8 @@ public class CotizarExpresoController extends MyGenericForwardComposer{
|
|||
expreso.setStatusSolicitudExpresoId(2);
|
||||
solicitudExpresosService.actualizacion(expreso);
|
||||
|
||||
logAuditoriaService.auditar(expresoClone, expreso, null);
|
||||
|
||||
enviarEmail();
|
||||
}
|
||||
}
|
||||
|
@ -207,9 +218,13 @@ public class CotizarExpresoController extends MyGenericForwardComposer{
|
|||
refreshLista();
|
||||
}
|
||||
|
||||
private void agregarTrayectoExpreso() {
|
||||
private void agregarTrayectoExpreso() throws CloneNotSupportedException {
|
||||
|
||||
trayecto = new TrayectosExpresos();
|
||||
|
||||
trayecto.clonar();
|
||||
trayectoClone = trayecto.getCloneObject();
|
||||
|
||||
trayecto.setSolicitudExpresoId(expreso);
|
||||
trayecto.setDescTrayecto(cmbOrigen.getValue() + " - " + cmbDestino.getValue());
|
||||
trayecto.setCantVehiculos(0);
|
||||
|
@ -217,6 +232,8 @@ public class CotizarExpresoController extends MyGenericForwardComposer{
|
|||
|
||||
trayectosExpresosService.suscribir(trayecto);
|
||||
|
||||
logAuditoriaService.auditar(trayectoClone, trayecto, null);
|
||||
|
||||
refreshLista();
|
||||
}
|
||||
|
||||
|
|
|
@ -23,6 +23,7 @@ import com.rjconsultores.ventaboletos.entidad.Empresa;
|
|||
import com.rjconsultores.ventaboletos.entidad.SolicitudExpreso;
|
||||
import com.rjconsultores.ventaboletos.entidad.TrayectosExpresos;
|
||||
import com.rjconsultores.ventaboletos.service.EmpresaService;
|
||||
import com.rjconsultores.ventaboletos.service.LogAuditoriaService;
|
||||
import com.rjconsultores.ventaboletos.service.SolicitudExpresosService;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyDatebox;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
||||
|
@ -46,6 +47,9 @@ public class CumplimientoServicioExpresosController extends MyGenericForwardComp
|
|||
@Autowired
|
||||
SolicitudExpresosService solicitudExpreso;
|
||||
|
||||
@Autowired
|
||||
private LogAuditoriaService logAuditoriaService;
|
||||
|
||||
private List<Empresa> lsEmpresa;
|
||||
private Paging pagingExpresos;
|
||||
private Combobox cmbEmpresa;
|
||||
|
@ -55,6 +59,7 @@ public class CumplimientoServicioExpresosController extends MyGenericForwardComp
|
|||
private MyDatebox txtFechaFin;
|
||||
|
||||
SolicitudExpreso expreso;
|
||||
SolicitudExpreso expresoClone;
|
||||
|
||||
@Override
|
||||
public void doAfterCompose(Component comp) throws Exception {
|
||||
|
@ -65,6 +70,8 @@ public class CumplimientoServicioExpresosController extends MyGenericForwardComp
|
|||
@Override
|
||||
public void onEvent(Event arg0) throws Exception {
|
||||
expreso = (SolicitudExpreso)arg0.getTarget().getAttribute("data");
|
||||
expreso.clonar();
|
||||
expresoClone = expreso.getCloneObject();
|
||||
|
||||
Media cumplimiento = Fileupload.get();
|
||||
|
||||
|
@ -76,6 +83,8 @@ public class CumplimientoServicioExpresosController extends MyGenericForwardComp
|
|||
|
||||
solicitudExpreso.actualizacion(expreso);
|
||||
|
||||
logAuditoriaService.auditar(expresoClone, expreso, null);
|
||||
|
||||
refreshLista();
|
||||
} else {
|
||||
Messagebox.show(
|
||||
|
@ -95,12 +104,12 @@ public class CumplimientoServicioExpresosController extends MyGenericForwardComp
|
|||
|
||||
Date fechaInicio = txtFechaInicio.getValue();
|
||||
if(fechaInicio != null) {
|
||||
buscarExpresos.addFilterGreaterOrEqual("FECSOLICITUD", fechaInicio);
|
||||
buscarExpresos.addFilterGreaterOrEqual("fechaSolicitud", fechaInicio);
|
||||
}
|
||||
|
||||
Date fechaFin = txtFechaFin.getValue();
|
||||
if(fechaFin != null) {
|
||||
buscarExpresos.addFilterLessOrEqual("FECSOLICITUD", fechaFin);
|
||||
buscarExpresos.addFilterLessOrEqual("fechaSolicitud", fechaFin);
|
||||
}
|
||||
|
||||
if(ckServiciosInactivos.isChecked()) {
|
||||
|
|
|
@ -62,12 +62,12 @@ public class DocumentosExpresosController extends MyGenericForwardComposer{
|
|||
|
||||
Date fechaInicio = txtFechaInicio.getValue();
|
||||
if(fechaInicio != null) {
|
||||
buscarExpresos.addFilterGreaterOrEqual("FECSOLICITUD", fechaInicio);
|
||||
buscarExpresos.addFilterGreaterOrEqual("fechaSolicitud", fechaInicio);
|
||||
}
|
||||
|
||||
Date fechaFin = txtFechaFin.getValue();
|
||||
if(fechaFin != null) {
|
||||
buscarExpresos.addFilterLessOrEqual("FECSOLICITUD", fechaFin);
|
||||
buscarExpresos.addFilterLessOrEqual("fechaSolicitud", fechaFin);
|
||||
}
|
||||
|
||||
if(ckServiciosInactivos.isChecked()) {
|
||||
|
|
|
@ -87,12 +87,12 @@ public class ExpressosPorCotizarController extends MyGenericForwardComposer{
|
|||
|
||||
Date fechaInicio = txtFechaInicio.getValue();
|
||||
if(fechaInicio != null) {
|
||||
buscarExpresos.addFilterGreaterOrEqual("FECSOLICITUD", fechaInicio);
|
||||
buscarExpresos.addFilterGreaterOrEqual("fechaSolicitud", fechaInicio);
|
||||
}
|
||||
|
||||
Date fechaFin = txtFechaFin.getValue();
|
||||
if(fechaFin != null) {
|
||||
buscarExpresos.addFilterLessOrEqual("FECSOLICITUD", fechaFin);
|
||||
buscarExpresos.addFilterLessOrEqual("fechaSolicitud", fechaFin);
|
||||
}
|
||||
|
||||
if(ckServiciosInactivos.isChecked()) {
|
||||
|
|
|
@ -0,0 +1,94 @@
|
|||
package com.rjconsultores.ventaboletos.web.gui.controladores.expressos;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.context.annotation.Scope;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.zkoss.util.resource.Labels;
|
||||
import org.zkoss.zk.ui.Component;
|
||||
import org.zkoss.zk.ui.event.Event;
|
||||
import org.zkoss.zul.Messagebox;
|
||||
import org.zkoss.zul.Paging;
|
||||
|
||||
import com.rjconsultores.ventaboletos.entidad.SolicitudExpreso;
|
||||
import com.rjconsultores.ventaboletos.entidad.TrayectosExpresos;
|
||||
import com.rjconsultores.ventaboletos.service.SolicitudExpresosService;
|
||||
import com.rjconsultores.ventaboletos.utilerias.DateUtil;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyDatebox;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyListbox;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.paginacion.HibernateSearchObject;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.paginacion.PagedListWrapper;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderExpresosPorCotizar;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderInformeViajesOcasionales;
|
||||
|
||||
@Controller("informeViajesOcasionalesExpresosController")
|
||||
@Scope("prototype")
|
||||
public class InformeViajesOcasionalesExpresosController extends MyGenericForwardComposer{
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@Autowired
|
||||
private transient PagedListWrapper<TrayectosExpresos> plwTrayectosExpresos;
|
||||
|
||||
private MyDatebox dtInicio;
|
||||
private MyDatebox dtFim;
|
||||
private MyListbox expresosList;
|
||||
private Paging pagingExpresos;
|
||||
|
||||
@Override
|
||||
public void doAfterCompose(Component comp) throws Exception {
|
||||
super.doAfterCompose(comp);
|
||||
|
||||
expresosList.setItemRenderer(new RenderInformeViajesOcasionales());
|
||||
|
||||
refreshLista();
|
||||
}
|
||||
|
||||
private void refreshLista() throws InterruptedException {
|
||||
HibernateSearchObject<TrayectosExpresos> buscarExpresos =
|
||||
new HibernateSearchObject<TrayectosExpresos>(TrayectosExpresos.class, pagingExpresos.getPageSize());
|
||||
|
||||
Date fechaInicio = dtInicio.getValue();
|
||||
if(fechaInicio != null) {
|
||||
buscarExpresos.addFilterGreaterOrEqual("solicitudExpresoId.fechaSolicitud", DateUtil.inicioFecha(fechaInicio));
|
||||
}else {
|
||||
Messagebox.show(
|
||||
Labels.getLabel("MSG.Error.dataObrigatoria"),
|
||||
Labels.getLabel("winInformeViajesOcasionalesExpresos.title"),
|
||||
Messagebox.OK, Messagebox.ERROR);
|
||||
return;
|
||||
}
|
||||
|
||||
Date fechaFin = dtFim.getValue();
|
||||
if(fechaFin != null) {
|
||||
buscarExpresos.addFilterLessOrEqual("solicitudExpresoId.fechaSolicitud", DateUtil.fimFecha(fechaFin));
|
||||
}else {
|
||||
Messagebox.show(
|
||||
Labels.getLabel("MSG.Error.dataObrigatoria"),
|
||||
Labels.getLabel("winInformeViajesOcasionalesExpresos.title"),
|
||||
Messagebox.OK, Messagebox.ERROR);
|
||||
return;
|
||||
}
|
||||
|
||||
plwTrayectosExpresos.init(buscarExpresos, expresosList, pagingExpresos);
|
||||
}
|
||||
|
||||
public void onClick$btnPesquisa(Event ev) throws InterruptedException {
|
||||
refreshLista();
|
||||
}
|
||||
|
||||
public void onClick$btnImprimir(Event ev) throws InterruptedException {}
|
||||
|
||||
public MyListbox getExpresosList() {
|
||||
return expresosList;
|
||||
}
|
||||
|
||||
public void setExpresosList(MyListbox expresosList) {
|
||||
this.expresosList = expresosList;
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,168 @@
|
|||
package com.rjconsultores.ventaboletos.web.gui.controladores.expressos;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.Date;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Map.Entry;
|
||||
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.context.annotation.Scope;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.zkoss.util.resource.Labels;
|
||||
import org.zkoss.zhtml.Messagebox;
|
||||
import org.zkoss.zk.ui.Component;
|
||||
import org.zkoss.zk.ui.event.Event;
|
||||
import org.zkoss.zul.Datebox;
|
||||
import org.zkoss.zul.Paging;
|
||||
|
||||
import com.rjconsultores.ventaboletos.entidad.Empresa;
|
||||
import com.rjconsultores.ventaboletos.entidad.LogAuditoria;
|
||||
import com.rjconsultores.ventaboletos.service.LogAuditoriaService;
|
||||
import com.rjconsultores.ventaboletos.utilerias.DateUtil;
|
||||
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyListbox;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyTextbox;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.paginacion.HibernateSearchObject;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.paginacion.PagedListWrapper;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderLogAuditoria;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderLogAuditoriaExpresos;
|
||||
import com.trg.search.Filter;
|
||||
|
||||
import br.com.rjconsultores.auditador.enums.AuditadorTipoAlteracao;
|
||||
|
||||
@Controller("logExpresosController")
|
||||
@Scope("prototype")
|
||||
public class LogExpresosController extends MyGenericForwardComposer{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@Autowired
|
||||
private LogAuditoriaService logAuditoriaService;
|
||||
|
||||
@Autowired
|
||||
private transient PagedListWrapper<LogAuditoria> plwLogAuditoria;
|
||||
|
||||
private static Logger log = LogManager.getLogger(LogExpresosController.class);
|
||||
|
||||
private MyComboboxEstandar cmbTipoAlteracao;
|
||||
private MyListbox logAuditoriaList;
|
||||
private Paging pagingLogAuditoria;
|
||||
|
||||
private Datebox dtInicio;
|
||||
private Datebox dtFim;
|
||||
|
||||
private MyTextbox txtCampoAlterado;
|
||||
private MyTextbox txtCveUsuario;
|
||||
private MyTextbox txtValorNovo;
|
||||
private MyTextbox txtValorAnterior;
|
||||
private MyTextbox txtIdAuditado;
|
||||
|
||||
private Map<String, String> nomeTelas;
|
||||
private List<String> lsTela;
|
||||
|
||||
@Override
|
||||
public void doAfterCompose(Component comp) throws Exception {
|
||||
lsTela = recuperarChavesClasse(logAuditoriaService.listarTodasAsTelas());
|
||||
|
||||
super.doAfterCompose(comp);
|
||||
|
||||
logAuditoriaList.setItemRenderer(new RenderLogAuditoriaExpresos());
|
||||
}
|
||||
|
||||
private void refreshLista(boolean isGerarRelatorio) throws Exception {
|
||||
HibernateSearchObject<LogAuditoria> sistemaBusqueda = new HibernateSearchObject<LogAuditoria>(LogAuditoria.class, pagingLogAuditoria.getPageSize());
|
||||
|
||||
Date dataInicio = dtInicio.getValue();
|
||||
Date dataFim = dtFim.getValue();
|
||||
|
||||
sistemaBusqueda.addFilterGreaterOrEqual("fecmodif", DateUtil.inicioFecha(dataInicio));
|
||||
sistemaBusqueda.addFilterLessOrEqual("fecmodif", DateUtil.fimFecha(dataFim));
|
||||
|
||||
String campoAlterado = txtCampoAlterado.getText();
|
||||
if (StringUtils.isNotBlank(campoAlterado)) {
|
||||
sistemaBusqueda.addFilterLike("campoAlterado", "%" + campoAlterado.trim().concat("%"));
|
||||
}
|
||||
|
||||
String valorNovo = txtValorNovo.getText();
|
||||
if (StringUtils.isNotBlank(valorNovo)) {
|
||||
sistemaBusqueda.addFilterLike("valorNovo", "%" + valorNovo.trim().concat("%"));
|
||||
}
|
||||
|
||||
String valorAnterior = txtValorAnterior.getText();
|
||||
if (StringUtils.isNotBlank(valorAnterior)) {
|
||||
sistemaBusqueda.addFilterLike("valorAnterior", "%" + valorAnterior.trim().concat("%"));
|
||||
}
|
||||
|
||||
String idAuditado = txtIdAuditado.getValue();
|
||||
if (StringUtils.isNotBlank(idAuditado)) {
|
||||
sistemaBusqueda.addFilterLike("idAuditado", idAuditado + "%");
|
||||
}
|
||||
|
||||
String cveUsuario = txtCveUsuario.getText();
|
||||
if (StringUtils.isNotBlank(cveUsuario)) {
|
||||
sistemaBusqueda.addFilterLike("usuario.claveUsuario", "%" + cveUsuario.trim().concat("%"));
|
||||
}
|
||||
|
||||
//sistemaBusqueda.addFilterEqual("tela", recuperarChaveNomeTela("auditarClasse.SolicitudExpreso"));
|
||||
sistemaBusqueda.addFilterEqual("tela", "auditarClasse.SolicitudExpreso");
|
||||
|
||||
AuditadorTipoAlteracao tipoAlteracao = cmbTipoAlteracao.getSelectedItem() != null ? (AuditadorTipoAlteracao) cmbTipoAlteracao.getSelectedItem().getValue() : null;
|
||||
if(tipoAlteracao != null) {
|
||||
sistemaBusqueda.addFilterEqual("tipoAlteracao", tipoAlteracao.toString());
|
||||
}
|
||||
|
||||
sistemaBusqueda.addSortAsc("fecmodif");
|
||||
sistemaBusqueda.addFilterEqual("activo", Boolean.TRUE);
|
||||
|
||||
plwLogAuditoria.init(sistemaBusqueda, logAuditoriaList, pagingLogAuditoria);
|
||||
|
||||
if (logAuditoriaList.getData().length == 0) {
|
||||
if(isGerarRelatorio){
|
||||
throw new Exception(Labels.getLabel("MSG.ningunRegistroRelatorio"));
|
||||
}else{
|
||||
try {
|
||||
Messagebox.show(Labels.getLabel("MSG.ningunRegistro"),Labels.getLabel("busquedaLogAuditoriaController.window.title"), Messagebox.OK, Messagebox.INFORMATION);
|
||||
} catch (InterruptedException ex) {
|
||||
log.error("", ex);
|
||||
}
|
||||
}
|
||||
}else {
|
||||
//configurarNomesTelas();
|
||||
}
|
||||
}
|
||||
|
||||
private List<String> recuperarChavesClasse(List<String> lsTela) {
|
||||
|
||||
nomeTelas = new HashMap<String, String>();
|
||||
List<String> lsTelasAux = new ArrayList<String>();
|
||||
|
||||
for (String tela : lsTela) {
|
||||
lsTelasAux.add(Labels.getLabel(tela, tela));
|
||||
nomeTelas.put(tela, Labels.getLabel(tela, tela));
|
||||
}
|
||||
Collections.sort(lsTelasAux);
|
||||
return lsTelasAux;
|
||||
}
|
||||
|
||||
private String recuperarChaveNomeTela(String tela) {
|
||||
|
||||
String chave = null;
|
||||
for (Entry<String, String> entry : nomeTelas.entrySet()) {
|
||||
if (entry.getValue().equals(tela)) {
|
||||
chave = entry.getKey();
|
||||
}
|
||||
}
|
||||
return chave;
|
||||
}
|
||||
|
||||
public void onClick$btnPesquisa(Event ev) throws Exception {
|
||||
refreshLista(false);
|
||||
}
|
||||
}
|
|
@ -10,6 +10,7 @@ import org.zkoss.zul.Window;
|
|||
|
||||
import com.rjconsultores.ventaboletos.entidad.SolicitudExpreso;
|
||||
import com.rjconsultores.ventaboletos.entidad.TrayectosExpresos;
|
||||
import com.rjconsultores.ventaboletos.service.LogAuditoriaService;
|
||||
import com.rjconsultores.ventaboletos.service.TrayectosExpresosService;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyTextbox;
|
||||
|
@ -23,7 +24,11 @@ public class ModificarTrayectoExpresoController extends MyGenericForwardComposer
|
|||
@Autowired
|
||||
TrayectosExpresosService trayectosExpresosService;
|
||||
|
||||
@Autowired
|
||||
private LogAuditoriaService logAuditoriaService;
|
||||
|
||||
TrayectosExpresos trayecto;
|
||||
TrayectosExpresos trayectoClone;
|
||||
|
||||
private Window winCotizarExpresso;
|
||||
|
||||
|
@ -35,6 +40,11 @@ public class ModificarTrayectoExpresoController extends MyGenericForwardComposer
|
|||
public void doAfterCompose(Component comp) throws Exception {
|
||||
super.doAfterCompose(comp);
|
||||
trayecto = (TrayectosExpresos) Executions.getCurrent().getArg().get("trayecto");
|
||||
|
||||
trayecto.clonar();
|
||||
trayectoClone = trayecto.getCloneObject();
|
||||
|
||||
|
||||
winCotizarExpresso = (Window) Executions.getCurrent().getArg().get("winCotizarExpresso");
|
||||
|
||||
txtRuta.setValue(trayecto.getDescTrayecto());
|
||||
|
@ -62,6 +72,8 @@ public class ModificarTrayectoExpresoController extends MyGenericForwardComposer
|
|||
|
||||
trayectosExpresosService.actualizacion(trayecto);
|
||||
|
||||
logAuditoriaService.auditar(trayectoClone, trayecto, null);
|
||||
|
||||
winCotizarExpresso.focus();
|
||||
|
||||
this.closeWindow();
|
||||
|
|
|
@ -24,7 +24,7 @@ import com.rjconsultores.ventaboletos.web.utilerias.render.RenderProgramacionVeh
|
|||
@Controller("programacionVehiculoExpresosController")
|
||||
@Scope("prototype")
|
||||
public class ProgramacionVehiculosExpresosController extends MyGenericForwardComposer{
|
||||
private static final long serialVersionUID = 1L;
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@Autowired
|
||||
private transient PagedListWrapper<SolicitudExpreso> plwTrayectosExpresos;
|
||||
|
@ -57,12 +57,12 @@ private static final long serialVersionUID = 1L;
|
|||
|
||||
Date fechaInicio = txtFechaInicio.getValue();
|
||||
if(fechaInicio != null) {
|
||||
buscarExpresos.addFilterGreaterOrEqual("FECSOLICITUD", fechaInicio);
|
||||
buscarExpresos.addFilterGreaterOrEqual("fechaSolicitud", fechaInicio);
|
||||
}
|
||||
|
||||
Date fechaFin = txtFechaFin.getValue();
|
||||
if(fechaFin != null) {
|
||||
buscarExpresos.addFilterLessOrEqual("FECSOLICITUD", fechaFin);
|
||||
buscarExpresos.addFilterLessOrEqual("fechaSolicitud", fechaFin);
|
||||
}
|
||||
|
||||
if(ckServiciosInactivos.isChecked()) {
|
||||
|
|
|
@ -0,0 +1,67 @@
|
|||
package com.rjconsultores.ventaboletos.web.gui.controladores.expressos;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.context.annotation.Scope;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.zkoss.util.resource.Labels;
|
||||
import org.zkoss.zk.ui.Component;
|
||||
import org.zkoss.zk.ui.event.Event;
|
||||
import org.zkoss.zul.Messagebox;
|
||||
import org.zkoss.zul.Paging;
|
||||
|
||||
import com.rjconsultores.ventaboletos.entidad.TrayectosExpresos;
|
||||
import com.rjconsultores.ventaboletos.utilerias.DateUtil;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyDatebox;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyListbox;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.paginacion.HibernateSearchObject;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.paginacion.PagedListWrapper;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderInformeViajesOcasionales;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderSeguimientoExpresos;
|
||||
|
||||
@Controller("seguimientoExpresosController")
|
||||
@Scope("prototype")
|
||||
public class SeguimientoExpresosController extends MyGenericForwardComposer{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@Autowired
|
||||
private transient PagedListWrapper<TrayectosExpresos> plwTrayectosExpresos;
|
||||
|
||||
private MyDatebox dtInicio;
|
||||
private MyDatebox dtFim;
|
||||
private MyListbox expresosList;
|
||||
private Paging pagingExpresos;
|
||||
|
||||
@Override
|
||||
public void doAfterCompose(Component comp) throws Exception {
|
||||
super.doAfterCompose(comp);
|
||||
|
||||
expresosList.setItemRenderer(new RenderSeguimientoExpresos());
|
||||
|
||||
refreshLista();
|
||||
}
|
||||
|
||||
private void refreshLista() throws InterruptedException {
|
||||
HibernateSearchObject<TrayectosExpresos> buscarExpresos =
|
||||
new HibernateSearchObject<TrayectosExpresos>(TrayectosExpresos.class, pagingExpresos.getPageSize());
|
||||
|
||||
Date fechaInicio = dtInicio.getValue();
|
||||
if(fechaInicio != null) {
|
||||
buscarExpresos.addFilterGreaterOrEqual("solicitudExpresoId.fechaSolicitud", DateUtil.inicioFecha(fechaInicio));
|
||||
}
|
||||
|
||||
Date fechaFin = dtFim.getValue();
|
||||
if(fechaFin != null) {
|
||||
buscarExpresos.addFilterLessOrEqual("solicitudExpresoId.fechaSolicitud", DateUtil.fimFecha(fechaFin));
|
||||
}
|
||||
|
||||
plwTrayectosExpresos.init(buscarExpresos, expresosList, pagingExpresos);
|
||||
}
|
||||
|
||||
public void onClick$btnPesquisa(Event ev) throws InterruptedException {
|
||||
refreshLista();
|
||||
}
|
||||
|
||||
}
|
|
@ -15,6 +15,7 @@ import org.zkoss.zk.ui.event.Event;
|
|||
import org.zkoss.zk.ui.event.EventListener;
|
||||
import org.zkoss.zul.Combobox;
|
||||
import org.zkoss.zul.Comboitem;
|
||||
import org.zkoss.zul.Intbox;
|
||||
import org.zkoss.zul.Paging;
|
||||
import org.zkoss.zul.Textbox;
|
||||
|
||||
|
@ -63,6 +64,7 @@ public class BusquedaAidfController extends MyGenericForwardComposer {
|
|||
|
||||
private Textbox txtDocFiscal;
|
||||
private Textbox txtSerie;
|
||||
private Intbox txtAidf;
|
||||
|
||||
|
||||
@Override
|
||||
|
@ -155,6 +157,10 @@ public class BusquedaAidfController extends MyGenericForwardComposer {
|
|||
aidfBusqueda.addFilterLike("serie", txtSerie.getValue());
|
||||
}
|
||||
|
||||
if(txtAidf.getValue() != null){
|
||||
aidfBusqueda.addFilterEqual("aidfId", txtAidf.getValue());
|
||||
}
|
||||
|
||||
aidfBusqueda.addSortDesc("fecvencimiento");
|
||||
aidfBusqueda.addSortDesc("aidfId");
|
||||
|
||||
|
|
|
@ -0,0 +1,81 @@
|
|||
package com.rjconsultores.ventaboletos.web.gui.controladores.relatorios;
|
||||
|
||||
import java.sql.ResultSet;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
import javax.sql.DataSource;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.context.annotation.Scope;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.zkoss.util.resource.Labels;
|
||||
import org.zkoss.zk.ui.Component;
|
||||
import org.zkoss.zk.ui.event.Event;
|
||||
import org.zkoss.zul.Combobox;
|
||||
import org.zkoss.zul.Comboitem;
|
||||
import org.zkoss.zul.ComboitemRenderer;
|
||||
import org.zkoss.zul.Datebox;
|
||||
import org.zkoss.zul.Radio;
|
||||
|
||||
import com.rjconsultores.ventaboletos.entidad.ContratoCorporativo;
|
||||
import com.rjconsultores.ventaboletos.entidad.Empresa;
|
||||
import com.rjconsultores.ventaboletos.entidad.Parada;
|
||||
import com.rjconsultores.ventaboletos.enums.DataGeracaoLegalizacaoEnum;
|
||||
import com.rjconsultores.ventaboletos.enums.EstadoBilheteConsultarEnum;
|
||||
import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioCorridas;
|
||||
import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioDetalheContrato;
|
||||
import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyTextbox;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.NamedParameterStatement;
|
||||
|
||||
@Controller("relatorioDetalheContratoController")
|
||||
@Scope("prototype")
|
||||
public class RelatorioDetalheContratoController extends MyGenericForwardComposer {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
@Autowired
|
||||
private DataSource dataSourceRead;
|
||||
|
||||
|
||||
private Datebox datInicial;
|
||||
private Datebox datFinal;
|
||||
private MyTextbox txtNumContrato;
|
||||
private Combobox cbxSaldoContrato;
|
||||
private Radio rdbCriacao;
|
||||
private Radio rdbLegalizacao;
|
||||
private Radio rdbFaturado;
|
||||
private Radio rdbNaoFaturado;
|
||||
private Radio rdbTodos;
|
||||
|
||||
@Override
|
||||
public void doAfterCompose(Component comp) throws Exception {
|
||||
|
||||
super.doAfterCompose(comp);
|
||||
|
||||
}
|
||||
|
||||
public void onClick$btnExecutarRelatorio(Event ev) throws Exception {
|
||||
|
||||
Map<String, Object> parametros = new HashMap<String, Object>();
|
||||
parametros.put("NUMCONTRATO", txtNumContrato.getValue());
|
||||
|
||||
if (datInicial.getValue() != null) {
|
||||
parametros.put("DATA_DE", new java.sql.Date(((java.util.Date) datInicial.getValue()).getTime()));
|
||||
}
|
||||
if (datFinal.getValue() != null) {
|
||||
parametros.put("DATA_ATE", new java.sql.Date(((java.util.Date) datFinal.getValue()).getTime()));
|
||||
}
|
||||
parametros.put("GERACAO", rdbCriacao.isChecked() ? DataGeracaoLegalizacaoEnum.GERACAO : DataGeracaoLegalizacaoEnum.LEGALIZACAO);
|
||||
parametros.put("ESTADO_BILHETES", rdbFaturado.isChecked() ? EstadoBilheteConsultarEnum.FATURADO : rdbNaoFaturado.isChecked() ? EstadoBilheteConsultarEnum.NAO_FATURADO : EstadoBilheteConsultarEnum.TODOS);
|
||||
|
||||
Relatorio relatorio = new RelatorioDetalheContrato(parametros, dataSourceRead.getConnection());
|
||||
|
||||
Map<String, Object> args = new HashMap<String, Object>();
|
||||
args.put("relatorio", relatorio);
|
||||
|
||||
openWindow("/component/reportView.zul",
|
||||
Labels.getLabel("relatorioDetalheContratoController.window.title"), args, MODAL);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,111 @@
|
|||
package com.rjconsultores.ventaboletos.web.gui.controladores.relatorios;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import javax.sql.DataSource;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.context.annotation.Scope;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.zkoss.util.resource.Labels;
|
||||
import org.zkoss.zk.ui.Component;
|
||||
import org.zkoss.zk.ui.event.Event;
|
||||
import org.zkoss.zul.Comboitem;
|
||||
import org.zkoss.zul.Datebox;
|
||||
import org.zkoss.zul.Radio;
|
||||
import org.zkoss.zul.Radiogroup;
|
||||
|
||||
import com.rjconsultores.ventaboletos.entidad.Empresa;
|
||||
import com.rjconsultores.ventaboletos.entidad.GrupoContrato;
|
||||
import com.rjconsultores.ventaboletos.enums.EstadoBilheteConsultarEnum;
|
||||
import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioSaldosDeContratos;
|
||||
import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio;
|
||||
import com.rjconsultores.ventaboletos.service.EmpresaService;
|
||||
import com.rjconsultores.ventaboletos.service.GrupoContratoService;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEmpresa;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyTextbox;
|
||||
|
||||
@Controller("relatorioSaldosContratosController")
|
||||
@Scope("prototype")
|
||||
public class RelatorioSaldosContratosController extends MyGenericForwardComposer {
|
||||
@Autowired
|
||||
private DataSource dataSourceRead;
|
||||
@Autowired
|
||||
private EmpresaService empresaService;
|
||||
@Autowired
|
||||
private GrupoContratoService grupoContratoService;
|
||||
|
||||
private Datebox datInicial;
|
||||
private Datebox datFinal;
|
||||
private MyTextbox txtNumContrato;
|
||||
private MyComboboxEmpresa cmbEmpresa;
|
||||
private MyComboboxEstandar cmbGrupoContrato;
|
||||
private Radiogroup rdgStatus;
|
||||
|
||||
private List<Empresa> lsEmpresa;
|
||||
private List<GrupoContrato> lsGrupoContrato;
|
||||
|
||||
@Override
|
||||
public void doAfterCompose(Component comp) throws Exception {
|
||||
lsEmpresa = empresaService.obtenerTodos();
|
||||
lsGrupoContrato = grupoContratoService.obtenerTodos();
|
||||
super.doAfterCompose(comp);
|
||||
|
||||
}
|
||||
|
||||
public void onClick$btnExecutarRelatorio(Event ev) throws Exception {
|
||||
|
||||
Map<String, Object> parametros = new HashMap<String, Object>();
|
||||
parametros.put("NUMCONTRATO", txtNumContrato.getValue());
|
||||
|
||||
Comboitem cbiEmpresa = cmbEmpresa.getSelectedItem();
|
||||
if (cbiEmpresa != null) {
|
||||
Empresa empresa = (Empresa) cbiEmpresa.getValue();
|
||||
parametros.put("EMPRESA_ID", empresa.getEmpresaId());
|
||||
}
|
||||
|
||||
Comboitem cbiGrupoContrato = cmbGrupoContrato.getSelectedItem();
|
||||
if (cbiGrupoContrato != null) {
|
||||
GrupoContrato grupo = (GrupoContrato) cbiGrupoContrato.getValue();
|
||||
parametros.put("GRUPOCONTRATO_ID", grupo.getGrupoContratoId());
|
||||
}
|
||||
|
||||
if (datInicial.getValue() != null) {
|
||||
parametros.put("DATA_DE", new java.sql.Date(((java.util.Date) datInicial.getValue()).getTime()));
|
||||
}
|
||||
|
||||
if (datFinal.getValue() != null) {
|
||||
parametros.put("DATA_ATE", new java.sql.Date(((java.util.Date) datFinal.getValue()).getTime()));
|
||||
}
|
||||
parametros.put("STATUS", Integer.valueOf(rdgStatus.getSelectedItem().getValue()));
|
||||
|
||||
|
||||
Relatorio relatorio = new RelatorioSaldosDeContratos(parametros, dataSourceRead.getConnection());
|
||||
|
||||
Map<String, Object> args = new HashMap<String, Object>();
|
||||
args.put("relatorio", relatorio);
|
||||
|
||||
openWindow("/component/reportView.zul",
|
||||
Labels.getLabel("relatorioSaldosContratosController.window.title"), args, MODAL);
|
||||
}
|
||||
|
||||
public List<Empresa> getLsEmpresa() {
|
||||
return lsEmpresa;
|
||||
}
|
||||
|
||||
public void setLsEmpresa(List<Empresa> lsEmpresa) {
|
||||
this.lsEmpresa = lsEmpresa;
|
||||
}
|
||||
|
||||
public List<GrupoContrato> getLsGrupoContrato() {
|
||||
return lsGrupoContrato;
|
||||
}
|
||||
|
||||
public void setLsGrupoContrato(List<GrupoContrato> lsGrupoContrato) {
|
||||
this.lsGrupoContrato = lsGrupoContrato;
|
||||
}
|
||||
}
|
|
@ -42,9 +42,11 @@ import com.rjconsultores.ventaboletos.service.ClaseServicioService;
|
|||
import com.rjconsultores.ventaboletos.service.MarcaService;
|
||||
import com.rjconsultores.ventaboletos.service.OperadorEmbarcadaService;
|
||||
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.InputMessageBox;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxPuntoVenta;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyListbox;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.api.CacheOperadorEmbarcada;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.paginacion.HibernateSearchObject;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.paginacion.PagedListWrapper;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.render.ItemRenderRutaOperadorEmbarcada;
|
||||
|
@ -553,7 +555,13 @@ public class EditarOperadorEmbarcadaController extends MyGenericForwardComposer
|
|||
|
||||
operador = operadorService.suscribirActualizar(operador, linhas, listaServicos);
|
||||
|
||||
Usuario usuario = operador.getUsuario();
|
||||
String OperadorId = operadorEdicao.getOperadorEmbarcadaId().toString();
|
||||
|
||||
String senha = InputMessageBox.showQuestion(Labels.getLabel("limparCacheAPI.message.senha"),
|
||||
Labels.getLabel("limparCacheAPI.title"), Messagebox.OK);
|
||||
|
||||
CacheOperadorEmbarcada.getInstance().limparCacheOperador(OperadorId, senha, usuario);
|
||||
}
|
||||
try {
|
||||
Messagebox.show(Labels.getLabel("busquedaOperadorEmbarcada.mensage.operadorSalvo"), Labels.getLabel("busquedaOperadorEmbarcada.mensage.operadorSalvo.title"),
|
||||
|
@ -582,6 +590,12 @@ public class EditarOperadorEmbarcadaController extends MyGenericForwardComposer
|
|||
|
||||
if (resp == Messagebox.YES) {
|
||||
|
||||
String senha = InputMessageBox.showQuestion(Labels.getLabel("limparCacheAPI.message.senha"),
|
||||
Labels.getLabel("limparCacheAPI.title"), Messagebox.OK);
|
||||
|
||||
Usuario usuario = operadorEdicao.getUsuario();
|
||||
String OperadorId = operadorEdicao.getOperadorEmbarcadaId().toString();
|
||||
|
||||
operadorService.apagar(operadorEdicao);
|
||||
|
||||
Messagebox.show(
|
||||
|
@ -589,6 +603,8 @@ public class EditarOperadorEmbarcadaController extends MyGenericForwardComposer
|
|||
Labels.getLabel("busquedaOperadorEmbarcada.MSG.borrarPergunta.title"),
|
||||
Messagebox.OK, Messagebox.INFORMATION);
|
||||
|
||||
CacheOperadorEmbarcada.getInstance().limparCacheOperador(OperadorId, senha, usuario);
|
||||
|
||||
closeWindow();
|
||||
}
|
||||
} catch (Exception ex) {
|
||||
|
|
|
@ -24,6 +24,7 @@ import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
|||
import com.rjconsultores.ventaboletos.web.utilerias.InputMessageBox;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.api.ApiCallRunnable;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.api.ETipoEnvio;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.spring.AppContext;
|
||||
|
||||
/**
|
||||
|
@ -119,7 +120,7 @@ public class LimparCacheApiController extends MyGenericForwardComposer {
|
|||
urlBase,
|
||||
user.getClaveUsuario(),
|
||||
secret,
|
||||
false);
|
||||
ETipoEnvio.POST);
|
||||
Thread thread = new Thread(cache);
|
||||
thread.start();
|
||||
thread.join();
|
||||
|
|
|
@ -23,6 +23,7 @@ public class MyGenericForwardComposer extends GenericForwardComposer {
|
|||
private static final long serialVersionUID = 1L;
|
||||
public static int OVERLAPPED = PantallaUtileria.OVERLAPPED;
|
||||
public static int MODAL = PantallaUtileria.MODAL;
|
||||
public static String MSG_OK = "MSG.suscribirOK";
|
||||
private static Logger log = LogManager.getLogger(MyGenericForwardComposer.class);
|
||||
|
||||
public void openWindow(String component, String title, Map args) {
|
||||
|
@ -73,7 +74,15 @@ public class MyGenericForwardComposer extends GenericForwardComposer {
|
|||
}
|
||||
|
||||
public void selecionaCombo( Object campo, Combobox combo ) {
|
||||
if( campo !=null ) {
|
||||
for(Object obj : combo.getItems()) {
|
||||
Comboitem item = (Comboitem)obj;
|
||||
if(item.getValue().equals(campo)) {
|
||||
combo.setSelectedItem(item);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if( combo.getItems().isEmpty() ) {
|
||||
Comboitem item = new Comboitem(campo.toString());
|
||||
item.setAttribute("value", campo);
|
||||
item.setValue(campo);
|
||||
|
|
|
@ -10,6 +10,7 @@ import org.apache.http.HttpEntity;
|
|||
import org.apache.http.HttpResponse;
|
||||
import org.apache.http.auth.UsernamePasswordCredentials;
|
||||
import org.apache.http.client.config.RequestConfig;
|
||||
import org.apache.http.client.methods.HttpDelete;
|
||||
import org.apache.http.client.methods.HttpGet;
|
||||
import org.apache.http.client.methods.HttpPost;
|
||||
import org.apache.http.client.methods.HttpUriRequest;
|
||||
|
@ -39,7 +40,7 @@ public class ApiCallRunnable implements Runnable {
|
|||
private String retorno;
|
||||
private String urlBase;
|
||||
private String user = "internal";
|
||||
private boolean get = true;
|
||||
private ETipoEnvio tipoEnvio;
|
||||
|
||||
public String getUrl() {
|
||||
return url;
|
||||
|
@ -71,14 +72,14 @@ public class ApiCallRunnable implements Runnable {
|
|||
this.urlBase = urlOriginal;
|
||||
}
|
||||
|
||||
public ApiCallRunnable(String url, String tenant, String urlBase, String user, String secret, boolean get) {
|
||||
public ApiCallRunnable(String url, String tenant, String urlBase, String user, String secret, ETipoEnvio tipoEnvio) {
|
||||
super();
|
||||
this.secret = secret;
|
||||
this.url = url;
|
||||
this.tenant = tenant;
|
||||
this.urlBase = urlBase;
|
||||
this.user = user;
|
||||
this.get = get;
|
||||
this.tipoEnvio = tipoEnvio;
|
||||
}
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
|
@ -90,10 +91,12 @@ public class ApiCallRunnable implements Runnable {
|
|||
|
||||
HttpUriRequest request;
|
||||
|
||||
if(isGet()) {
|
||||
request = new HttpGet(url);
|
||||
}else {
|
||||
if(ETipoEnvio.POST.equals(tipoEnvio)) {
|
||||
request = new HttpPost(url);
|
||||
} else if(ETipoEnvio.DELETE.equals(tipoEnvio)) {
|
||||
request = new HttpDelete(url);
|
||||
} else {
|
||||
request = new HttpGet(url);
|
||||
}
|
||||
|
||||
UsernamePasswordCredentials creds = null;
|
||||
|
@ -172,12 +175,12 @@ public class ApiCallRunnable implements Runnable {
|
|||
this.secret = secret;
|
||||
}
|
||||
|
||||
public boolean isGet() {
|
||||
return get;
|
||||
public ETipoEnvio getTipoEnvio() {
|
||||
return tipoEnvio;
|
||||
}
|
||||
|
||||
public void setGet(boolean get) {
|
||||
this.get = get;
|
||||
public void setTipoEnvio(ETipoEnvio tipoEnvio) {
|
||||
this.tipoEnvio = tipoEnvio;
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,120 @@
|
|||
package com.rjconsultores.ventaboletos.web.utilerias.api;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.springframework.context.ApplicationContext;
|
||||
import org.zkoss.util.resource.Labels;
|
||||
|
||||
import com.rjconsultores.ventaboletos.entidad.Empresa;
|
||||
import com.rjconsultores.ventaboletos.entidad.Usuario;
|
||||
import com.rjconsultores.ventaboletos.enums.CacheApiEnum;
|
||||
import com.rjconsultores.ventaboletos.service.ConstanteService;
|
||||
import com.rjconsultores.ventaboletos.service.UsuarioEmpresaService;
|
||||
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.spring.AppContext;
|
||||
|
||||
public class CacheOperadorEmbarcada {
|
||||
|
||||
private static CacheOperadorEmbarcada instance;
|
||||
|
||||
public final String URL_API_EMB = "URL_API_EMB";
|
||||
|
||||
private static Logger log = LogManager.getLogger(CacheOperadorEmbarcada.class);
|
||||
|
||||
public static CacheOperadorEmbarcada getInstance() {
|
||||
if(instance == null) {
|
||||
instance = new CacheOperadorEmbarcada();
|
||||
}
|
||||
|
||||
return instance;
|
||||
}
|
||||
|
||||
public void limparCacheOperador(String OperadorId, String senha, Usuario usuario) {
|
||||
try {
|
||||
log.info("Inicio limparCacheOperador, OperadorId: " + OperadorId);
|
||||
CacheApiEnum entidade = CacheApiEnum.OPERADOR_ESPECIFICO;
|
||||
|
||||
String[] urls = getURLSAPI();
|
||||
|
||||
if (urls == null || urls.length == 0) {
|
||||
log.info(Labels.getLabel("limparCacheAPI.message.naoconfigurado"));
|
||||
return;
|
||||
}
|
||||
|
||||
Usuario user = UsuarioLogado.getUsuarioLogado();
|
||||
|
||||
List<Empresa> empresas = buscarEmpresas(usuario);
|
||||
|
||||
for (String url : urls) {
|
||||
|
||||
if (StringUtils.isBlank(url) || url.contains("|")) {
|
||||
log.info(Labels.getLabel("limparCacheAPI.message.naoconfigurado"));
|
||||
return;
|
||||
}
|
||||
|
||||
String tenant = StringUtils.substringBetween(url, "[", "]");
|
||||
if (tenant != null) {
|
||||
url = url.replaceAll("\\[.*?\\]", "");
|
||||
}
|
||||
String urlBase = url;
|
||||
|
||||
for(Empresa emp : empresas) {
|
||||
|
||||
url = montarUrlRequest(url, entidade.getUri(), OperadorId, emp.getEmpresaId());
|
||||
|
||||
log.info("URL: " + url);
|
||||
|
||||
ApiCallRunnable cache = new ApiCallRunnable(
|
||||
url,
|
||||
tenant,
|
||||
urlBase,
|
||||
user.getClaveUsuario(),
|
||||
senha,
|
||||
ETipoEnvio.DELETE);
|
||||
|
||||
Thread thread = new Thread(cache);
|
||||
thread.start();
|
||||
thread.join();
|
||||
|
||||
log.info(cache.getRetorno());
|
||||
}
|
||||
}
|
||||
|
||||
log.info("Final limparCacheOperador, OperadorId: " + OperadorId);
|
||||
} catch (Exception e) {
|
||||
log.error("Erro ao limpar cache operador embarcada", e);
|
||||
}
|
||||
}
|
||||
|
||||
private String montarUrlRequest(String url, String uri, String OperadorId, Integer empresaId) {
|
||||
url = url.toLowerCase();
|
||||
|
||||
if (!url.endsWith("/")) {
|
||||
url += "/";
|
||||
}
|
||||
|
||||
uri = uri.replace("operador_id", OperadorId);
|
||||
uri = uri.replace("empresa_id", empresaId.toString());
|
||||
|
||||
return url.concat(uri);
|
||||
}
|
||||
|
||||
private List<Empresa> buscarEmpresas(Usuario usuario) {
|
||||
ApplicationContext appContext = AppContext.getApplicationContext();
|
||||
UsuarioEmpresaService usuarioEmpService = (UsuarioEmpresaService) appContext.getBean("usuarioEmpresaService");
|
||||
|
||||
return usuarioEmpService.obtenerEmpresa(usuario);
|
||||
}
|
||||
|
||||
private String[] getURLSAPI() {
|
||||
ApplicationContext appContext = AppContext.getApplicationContext();
|
||||
ConstanteService constanteService = (ConstanteService) appContext.getBean("constanteService");
|
||||
String constante = constanteService.buscarURLAPIEmb();
|
||||
|
||||
return constante == null ? null : constante.split("\\|");
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
package com.rjconsultores.ventaboletos.web.utilerias.api;
|
||||
|
||||
public enum ETipoEnvio {
|
||||
GET, POST, DELETE;
|
||||
}
|
|
@ -0,0 +1,26 @@
|
|||
package com.rjconsultores.ventaboletos.web.utilerias.menu.item.catalogos;
|
||||
|
||||
import org.zkoss.util.resource.Labels;
|
||||
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.PantallaUtileria;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.menu.DefaultItemMenuSistema;
|
||||
|
||||
public class ItemMenuTipoDocumento extends DefaultItemMenuSistema {
|
||||
|
||||
public ItemMenuTipoDocumento() {
|
||||
super("indexController.mniTipoDocumento.label");
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getClaveMenu() {
|
||||
return "COM.RJCONSULTORES.ADMINISTRACION.GUI.CATALOGO.MENU.TIPODOCUMENTO";
|
||||
}
|
||||
|
||||
@Override
|
||||
public void ejecutar() {
|
||||
PantallaUtileria.openWindow("/gui/catalogos/busquedaTipoDocumento.zul",
|
||||
Labels.getLabel("busquedaTipoDocumentoController.window.title"), getArgs(), desktop);
|
||||
|
||||
}
|
||||
|
||||
}
|
|
@ -13,7 +13,7 @@ public class ItemMenuCargaContrato extends DefaultItemMenuSistema{
|
|||
|
||||
@Override
|
||||
public String getClaveMenu() {
|
||||
return null;
|
||||
return "COM.RJCONSULTORES.ADMINISTRACION.GUI.EXPRESSOS.TAXADECONTRATO";
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -12,7 +12,7 @@ public class ItemMenuCumplimientoServicio extends DefaultItemMenuSistema{
|
|||
|
||||
@Override
|
||||
public String getClaveMenu() {
|
||||
return null;
|
||||
return "COM.RJCONSULTORES.ADMINISTRACION.GUI.EXPRESSOS.CONFORMIDADEDESERVICO";
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -13,7 +13,7 @@ public class ItemMenuDocumentos extends DefaultItemMenuSistema{
|
|||
|
||||
@Override
|
||||
public String getClaveMenu() {
|
||||
return null;
|
||||
return "COM.RJCONSULTORES.ADMINISTRACION.GUI.EXPRESSOS.DOCUMENTOS";
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -0,0 +1,25 @@
|
|||
package com.rjconsultores.ventaboletos.web.utilerias.menu.item.expressos;
|
||||
|
||||
import org.zkoss.util.resource.Labels;
|
||||
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.PantallaUtileria;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.menu.DefaultItemMenuSistema;
|
||||
|
||||
public class ItemMenuInformeViajesOcasionales extends DefaultItemMenuSistema {
|
||||
public ItemMenuInformeViajesOcasionales() {
|
||||
super("indexController.mniExpressosInformeViajesOcasionales.label");
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getClaveMenu() {
|
||||
return "COM.RJCONSULTORES.ADMINISTRACION.GUI.EXPRESSOS.INFORMEVIAJESOCASIONALES";
|
||||
}
|
||||
|
||||
@Override
|
||||
public void ejecutar() {
|
||||
PantallaUtileria.openWindow("/gui/expressos/informeViajesOcasionales.zul",
|
||||
Labels.getLabel("indexController.mniExpressosInformeViajesOcasionales.label"),
|
||||
getArgs(), desktop);
|
||||
|
||||
}
|
||||
}
|
|
@ -0,0 +1,25 @@
|
|||
package com.rjconsultores.ventaboletos.web.utilerias.menu.item.expressos;
|
||||
|
||||
import org.zkoss.util.resource.Labels;
|
||||
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.PantallaUtileria;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.menu.DefaultItemMenuSistema;
|
||||
|
||||
public class ItemMenuLog extends DefaultItemMenuSistema {
|
||||
public ItemMenuLog() {
|
||||
super("indexController.mniExpressosLog.label");
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getClaveMenu() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void ejecutar() {
|
||||
PantallaUtileria.openWindow("/gui/expressos/log.zul",
|
||||
Labels.getLabel("indexController.mniExpressosLog.label"),
|
||||
getArgs(), desktop);
|
||||
|
||||
}
|
||||
}
|
|
@ -13,7 +13,7 @@ public class ItemMenuPorCotizar extends DefaultItemMenuSistema {
|
|||
|
||||
@Override
|
||||
public String getClaveMenu() {
|
||||
return null;
|
||||
return "COM.RJCONSULTORES.ADMINISTRACION.GUI.EXPRESSOS.EXPRESSOASERCOTADO" ;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -12,7 +12,7 @@ public class ItemMenuProgramacionVehiculo extends DefaultItemMenuSistema{
|
|||
|
||||
@Override
|
||||
public String getClaveMenu() {
|
||||
return null;
|
||||
return "COM.RJCONSULTORES.ADMINISTRACION.GUI.EXPRESSOS.PROGRAMACAODEVEICULOS";
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -0,0 +1,25 @@
|
|||
package com.rjconsultores.ventaboletos.web.utilerias.menu.item.expressos;
|
||||
|
||||
import org.zkoss.util.resource.Labels;
|
||||
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.PantallaUtileria;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.menu.DefaultItemMenuSistema;
|
||||
|
||||
public class ItemMenuSeguimientoExpresos extends DefaultItemMenuSistema {
|
||||
public ItemMenuSeguimientoExpresos() {
|
||||
super("indexController.mniExpressosSeguimientoExpresos.label");
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getClaveMenu() {
|
||||
return "COM.RJCONSULTORES.ADMINISTRACION.GUI.EXPRESSOS.SEGUIMIENTOEXPRESOS";
|
||||
}
|
||||
|
||||
@Override
|
||||
public void ejecutar() {
|
||||
PantallaUtileria.openWindow("/gui/expressos/seguimientoExpresos.zul",
|
||||
Labels.getLabel("indexController.mniExpressosSeguimientoExpresos.label"),
|
||||
getArgs(), desktop);
|
||||
|
||||
}
|
||||
}
|
|
@ -10,6 +10,6 @@ public class MenuExpressos extends DefaultItemMenuSistema {
|
|||
|
||||
@Override
|
||||
public String getClaveMenu() {
|
||||
return "COM.RJCONSULTORES.ADMINISTRACION.GUI.EXPRESSOS";
|
||||
return "COM.RJCONSULTORES.ADMINISTRACION.GUI.EXPRESOS";
|
||||
}
|
||||
}
|
||||
|
|
|
@ -0,0 +1,25 @@
|
|||
package com.rjconsultores.ventaboletos.web.utilerias.menu.item.negcorporativos;
|
||||
|
||||
import org.zkoss.util.resource.Labels;
|
||||
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.PantallaUtileria;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.menu.DefaultItemMenuSistema;
|
||||
|
||||
public class ItemMenuFaturarVoucher extends DefaultItemMenuSistema {
|
||||
|
||||
public ItemMenuFaturarVoucher() {
|
||||
super("indexController.mniFaturarVoucher.label");
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getClaveMenu() {
|
||||
return "COM.RJCONSULTORES.ADMINISTRACION.GUI.CONFIGURACIONECCOMERCIALES.MENU.FATURARVOUCHER";
|
||||
}
|
||||
|
||||
@Override
|
||||
public void ejecutar() {
|
||||
PantallaUtileria.openWindow("/gui/configuraciones_comerciales/negcorporativos/busquedaFaturarVoucher.zul",
|
||||
Labels.getLabel("faturarVoucherController.window.title"), getArgs() ,desktop);
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,25 @@
|
|||
package com.rjconsultores.ventaboletos.web.utilerias.menu.item.negcorporativos;
|
||||
|
||||
import org.zkoss.util.resource.Labels;
|
||||
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.PantallaUtileria;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.menu.DefaultItemMenuSistema;
|
||||
|
||||
public class ItemMenuLegalizar extends DefaultItemMenuSistema {
|
||||
|
||||
public ItemMenuLegalizar() {
|
||||
super("indexController.mniLegalizar.label");
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getClaveMenu() {
|
||||
return "COM.RJCONSULTORES.ADMINISTRACION.GUI.CONFIGURACIONECCOMERCIALES.MENU.LEGALIZAR";
|
||||
}
|
||||
|
||||
@Override
|
||||
public void ejecutar() {
|
||||
PantallaUtileria.openWindow("/gui/configuraciones_comerciales/negcorporativos/legalizacaoMassiva.zul",
|
||||
Labels.getLabel("legalizacaoMassivaController.window.title"), getArgs() ,desktop);
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,25 @@
|
|||
package com.rjconsultores.ventaboletos.web.utilerias.menu.item.negcorporativos;
|
||||
|
||||
import org.zkoss.util.resource.Labels;
|
||||
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.PantallaUtileria;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.menu.DefaultItemMenuSistema;
|
||||
|
||||
public class ItemMenuRelatorioDetalheContrato extends DefaultItemMenuSistema {
|
||||
|
||||
public ItemMenuRelatorioDetalheContrato() {
|
||||
super("indexController.mniRelatorioDetalheContrato.label");
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getClaveMenu() {
|
||||
return "COM.RJCONSULTORES.ADMINISTRACION.GUI.RELATORIOS.NEGCORPORATIVOS.MENU.RELATORIODETALHESCONTRATO";
|
||||
}
|
||||
|
||||
@Override
|
||||
public void ejecutar() {
|
||||
PantallaUtileria.openWindow("/gui/relatorios/filtroRelatorioDetalheContrato.zul",
|
||||
Labels.getLabel("relatorioDetalheContratoController.window.title"), getArgs(), desktop);
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,25 @@
|
|||
package com.rjconsultores.ventaboletos.web.utilerias.menu.item.negcorporativos;
|
||||
|
||||
import org.zkoss.util.resource.Labels;
|
||||
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.PantallaUtileria;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.menu.DefaultItemMenuSistema;
|
||||
|
||||
public class ItemMenuRelatorioSaldosContratos extends DefaultItemMenuSistema {
|
||||
|
||||
public ItemMenuRelatorioSaldosContratos() {
|
||||
super("indexController.mniRelatorioSaldosContratos.label");
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getClaveMenu() {
|
||||
return "COM.RJCONSULTORES.ADMINISTRACION.GUI.RELATORIOS.NEGCORPORATIVOS.MENU.RELATORIOSALDOSCONTRATOS";
|
||||
}
|
||||
|
||||
@Override
|
||||
public void ejecutar() {
|
||||
PantallaUtileria.openWindow("/gui/relatorios/filtroRelatorioSaldosContratos.zul",
|
||||
Labels.getLabel("relatorioSaldosContratosController.window.title"), getArgs(), desktop);
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,15 @@
|
|||
package com.rjconsultores.ventaboletos.web.utilerias.menu.item.negcorporativos;
|
||||
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.menu.DefaultItemMenuSistema;
|
||||
|
||||
public class SubMenuNegociosCorporativos extends DefaultItemMenuSistema {
|
||||
|
||||
public SubMenuNegociosCorporativos() {
|
||||
super("indexController.mnSubMenuNegCorporativo.label");
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getClaveMenu() {
|
||||
return "COM.RJCONSULTORES.ADMINISTRACION.GUI.RELATORIOS.NEGCORPORATIVOS";
|
||||
}
|
||||
}
|
|
@ -2,6 +2,7 @@ catalogos=com.rjconsultores.ventaboletos.web.utilerias.menu.item.catalogos.MenuC
|
|||
catalogos.mensagemRecusa=com.rjconsultores.ventaboletos.web.utilerias.menu.item.catalogos.ItemMenuMensagemRecusa
|
||||
catalogos.claseServicio=com.rjconsultores.ventaboletos.web.utilerias.menu.item.catalogos.ItemMenuClaseServicio
|
||||
catalogos.categoria=com.rjconsultores.ventaboletos.web.utilerias.menu.item.catalogos.ItemMenuCategoria
|
||||
catalogos.tipoDocumento=com.rjconsultores.ventaboletos.web.utilerias.menu.item.catalogos.ItemMenuTipoDocumento
|
||||
catalogos.grupoCategoria=com.rjconsultores.ventaboletos.web.utilerias.menu.item.catalogos.ItemMenuGrupoCategoria
|
||||
catalogos.curso=com.rjconsultores.ventaboletos.web.utilerias.menu.item.catalogos.ItemMenuCurso
|
||||
catalogos.escola=com.rjconsultores.ventaboletos.web.utilerias.menu.item.catalogos.ItemMenuEscola
|
||||
|
@ -65,6 +66,8 @@ confComerciales.negCorporativos.grupoContrato=com.rjconsultores.ventaboletos.web
|
|||
confComerciales.negCorporativos.Contrato=com.rjconsultores.ventaboletos.web.utilerias.menu.item.negcorporativos.ItemMenuContrato
|
||||
confComerciales.negCorporativos.Transportadora=com.rjconsultores.ventaboletos.web.utilerias.menu.item.negcorporativos.ItemMenuTransportadora
|
||||
confComerciales.negCorporativos.Voucher=com.rjconsultores.ventaboletos.web.utilerias.menu.item.negcorporativos.ItemMenuVoucher
|
||||
confComerciales.negCorporativos.Legalizar=com.rjconsultores.ventaboletos.web.utilerias.menu.item.negcorporativos.ItemMenuLegalizar
|
||||
confComerciales.negCorporativos.Faturar=com.rjconsultores.ventaboletos.web.utilerias.menu.item.negcorporativos.ItemMenuFaturarVoucher
|
||||
confComerciales.impressaofiscal=com.rjconsultores.ventaboletos.web.utilerias.menu.item.impressaofiscal.SubMenuImpressaoFiscal
|
||||
confComerciales.impressaofiscal.totnaofiscalEmpresa=com.rjconsultores.ventaboletos.web.utilerias.menu.item.impressaofiscal.ItemMenuTotnaofiscalEmpresa
|
||||
confComerciales.impressaofiscal.formapagoEmpresa=com.rjconsultores.ventaboletos.web.utilerias.menu.item.impressaofiscal.ItemMenuFormapagoEmpresa
|
||||
|
@ -273,6 +276,9 @@ analitico.gerenciais.pacote.boletos=com.rjconsultores.ventaboletos.web.utilerias
|
|||
analitico.gerenciais.pacote.detalhado=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioVendasPacotesDetalhado
|
||||
analitico.gerenciais.pacote.resumido=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioVendasPacotesResumido
|
||||
analitico.gerenciais.relatorioRemessaCNAB=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioRemessaCNAB
|
||||
analitico.gerenciais.negociosCorporativos=com.rjconsultores.ventaboletos.web.utilerias.menu.item.negcorporativos.SubMenuNegociosCorporativos
|
||||
analitico.gerenciais.negociosCorporativos.RelatorioDetalhesContrato=com.rjconsultores.ventaboletos.web.utilerias.menu.item.negcorporativos.ItemMenuRelatorioDetalheContrato
|
||||
analitico.gerenciais.negociosCorporativos.RelatorioSaldosContratos=com.rjconsultores.ventaboletos.web.utilerias.menu.item.negcorporativos.ItemMenuRelatorioSaldosContratos
|
||||
analitico.integracion=com.rjconsultores.ventaboletos.web.utilerias.menu.item.analitico.integracion.SubMenuIntegracion
|
||||
analitico.integracion.sisdap=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioSisdap
|
||||
analitico.integracion.sie=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioSie
|
||||
|
@ -360,8 +366,8 @@ expressos.cargaContrato=com.rjconsultores.ventaboletos.web.utilerias.menu.item.e
|
|||
expressos.programacionVehiculo=com.rjconsultores.ventaboletos.web.utilerias.menu.item.expressos.ItemMenuProgramacionVehiculo
|
||||
expressos.documentos=com.rjconsultores.ventaboletos.web.utilerias.menu.item.expressos.ItemMenuDocumentos
|
||||
expressos.cumplimientoServicio=com.rjconsultores.ventaboletos.web.utilerias.menu.item.expressos.ItemMenuCumplimientoServicio
|
||||
#expressos.log=com.rjconsultores.ventaboletos.web.utilerias.menu.item.expressos.ItemMenuLog
|
||||
#expressos.InformeViajesOcasionales=com.rjconsultores.ventaboletos.web.utilerias.menu.item.expressos.ItemMenuInformeViajesOcasionales
|
||||
#expressos.seguimientoExpresos=com.rjconsultores.ventaboletos.web.utilerias.menu.item.expressos.ItemMenuSeguimientoExpresos
|
||||
expressos.log=com.rjconsultores.ventaboletos.web.utilerias.menu.item.expressos.ItemMenuLog
|
||||
expressos.InformeViajesOcasionales=com.rjconsultores.ventaboletos.web.utilerias.menu.item.expressos.ItemMenuInformeViajesOcasionales
|
||||
expressos.seguimientoExpresos=com.rjconsultores.ventaboletos.web.utilerias.menu.item.expressos.ItemMenuSeguimientoExpresos
|
||||
ayuda=com.rjconsultores.ventaboletos.web.utilerias.menu.item.ayuda.MenuAyuda
|
||||
ayuda.version=com.rjconsultores.ventaboletos.web.utilerias.menu.item.ayuda.ItemMenuVersion
|
|
@ -117,8 +117,6 @@ public class RenderDocumentosExpresos implements ListitemRenderer {
|
|||
Listitem listItem = (Listitem) event.getTarget().getParent().getParent();
|
||||
expreso = (SolicitudExpreso)listItem.getAttribute("data");
|
||||
|
||||
//trayectos = trayectosServices.obtenerTrayectosPorServicioId(expreso);
|
||||
|
||||
TrayectosExpresosService trayectosServices = (TrayectosExpresosService)AppContext.getApplicationContext().getBean("trayectosExpresosService");
|
||||
trayectos = trayectosServices.obtenerTrayectosPorServicioId(expreso);
|
||||
|
||||
|
|
|
@ -0,0 +1,41 @@
|
|||
package com.rjconsultores.ventaboletos.web.utilerias.render;
|
||||
|
||||
import org.zkoss.zul.Checkbox;
|
||||
import org.zkoss.zul.Listcell;
|
||||
import org.zkoss.zul.Listitem;
|
||||
import org.zkoss.zul.ListitemRenderer;
|
||||
|
||||
import com.rjconsultores.ventaboletos.entidad.EmpresaConfigLayout;
|
||||
|
||||
public class RenderEmpresaEmpresaConfigLayout implements ListitemRenderer {
|
||||
|
||||
@Override
|
||||
public void render(Listitem listItem, Object selected) throws Exception {
|
||||
|
||||
Listcell lc = new Listcell();
|
||||
|
||||
if (selected != null) {
|
||||
EmpresaConfigLayout empresaConfigLayout = (EmpresaConfigLayout) selected;
|
||||
|
||||
lc = new Listcell(empresaConfigLayout.getTipoVenta() != null ? empresaConfigLayout.getTipoVenta().getDesctipoventa(): "");
|
||||
lc.setParent(listItem);
|
||||
|
||||
lc = new Listcell(
|
||||
empresaConfigLayout.getImpresionlayoutconfigId() != null
|
||||
? empresaConfigLayout.getImpresionlayoutconfigId().getDescricao() + " - "
|
||||
+ empresaConfigLayout.getImpresionlayoutconfigId().getLinguagem().name()
|
||||
: "");
|
||||
lc.setParent(listItem);
|
||||
|
||||
lc = new Listcell();
|
||||
boolean indEmail = empresaConfigLayout.getIndEmail() != null ? empresaConfigLayout.getIndEmail() : false;
|
||||
Checkbox chk = new Checkbox();
|
||||
chk.setDisabled(Boolean.TRUE);
|
||||
chk.setChecked(indEmail);
|
||||
lc.appendChild(chk);
|
||||
lc.setParent(listItem);
|
||||
|
||||
listItem.setAttribute("data", empresaConfigLayout);
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,54 @@
|
|||
package com.rjconsultores.ventaboletos.web.utilerias.render;
|
||||
|
||||
import org.zkoss.zk.ui.event.DropEvent;
|
||||
import org.zkoss.zk.ui.event.Event;
|
||||
import org.zkoss.zk.ui.event.EventListener;
|
||||
import org.zkoss.zul.Listcell;
|
||||
import org.zkoss.zul.Listitem;
|
||||
import org.zkoss.zul.ListitemRenderer;
|
||||
|
||||
import com.rjconsultores.ventaboletos.entidad.FormaPago;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyListbox;
|
||||
|
||||
public class RenderEmpresaSicfeFormasPagamento implements ListitemRenderer {
|
||||
|
||||
@Override
|
||||
public void render(Listitem lstm, Object selected) throws Exception {
|
||||
|
||||
lstm.addEventListener("onDrop", new EventListener() {
|
||||
@Override
|
||||
public void onEvent(Event event) throws Exception {
|
||||
|
||||
Listitem droppedListitem = (Listitem) (((DropEvent) event).getTarget());
|
||||
Listitem draggedListitem = (Listitem) ((DropEvent) event).getDragged();
|
||||
|
||||
MyListbox droppedListBox = (MyListbox) droppedListitem.getParent();
|
||||
MyListbox draggedListBox = (MyListbox) draggedListitem.getParent();
|
||||
|
||||
if (draggedListitem instanceof Listitem) {
|
||||
|
||||
if (!droppedListBox.equals(draggedListBox)) {
|
||||
if (draggedListitem.getIndex() > -1) {
|
||||
droppedListBox.addItemNovo(draggedListitem.getIndex(),
|
||||
draggedListBox.getListModel().getElementAt(draggedListitem.getIndex()));
|
||||
draggedListBox
|
||||
.removeItem(draggedListBox.getListModel().getElementAt(draggedListitem.getIndex()));
|
||||
}
|
||||
}
|
||||
} else {
|
||||
droppedListBox.insertBefore(draggedListitem, droppedListitem);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
FormaPago entity = (FormaPago) selected;
|
||||
|
||||
Listcell lc = new Listcell(entity.getDescpago());
|
||||
lc.setParent(lstm);
|
||||
|
||||
lstm.setDroppable("true");
|
||||
lstm.setDraggable("true");
|
||||
lstm.setAttribute("data", entity);
|
||||
|
||||
}
|
||||
}
|
|
@ -20,6 +20,7 @@ import com.rjconsultores.ventaboletos.entidad.SolicitudExpreso;
|
|||
import com.rjconsultores.ventaboletos.entidad.TipoCortesia;
|
||||
import com.rjconsultores.ventaboletos.entidad.Usuario;
|
||||
import com.rjconsultores.ventaboletos.service.ConstanteService;
|
||||
import com.rjconsultores.ventaboletos.service.LogAuditoriaService;
|
||||
import com.rjconsultores.ventaboletos.service.SolicitudExpresosService;
|
||||
import com.rjconsultores.ventaboletos.utilerias.DateUtil;
|
||||
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
||||
|
@ -31,18 +32,22 @@ import com.rjconsultores.ventaboletos.web.utilerias.spring.AppContext;
|
|||
|
||||
public class RenderExpresosPorCotizar implements ListitemRenderer {
|
||||
|
||||
private ExpressosPorCotizarController expresosControllerWindow;
|
||||
|
||||
private SolicitudExpreso expreso;
|
||||
|
||||
private Usuario usuario;
|
||||
|
||||
@Autowired
|
||||
SolicitudExpresosService expresosService;
|
||||
|
||||
@Autowired
|
||||
ConstanteService constanteService;
|
||||
|
||||
@Autowired
|
||||
private LogAuditoriaService logAuditoriaService;
|
||||
|
||||
private ExpressosPorCotizarController expresosControllerWindow;
|
||||
|
||||
private SolicitudExpreso expreso;
|
||||
SolicitudExpreso expresoClone;
|
||||
|
||||
private Usuario usuario;
|
||||
|
||||
public RenderExpresosPorCotizar(ExpressosPorCotizarController window) {
|
||||
super();
|
||||
expresosControllerWindow = window;
|
||||
|
@ -148,6 +153,8 @@ public class RenderExpresosPorCotizar implements ListitemRenderer {
|
|||
public void onEvent(Event event) throws Exception {
|
||||
Listitem listItem = (Listitem) event.getTarget().getParent().getParent();
|
||||
expreso = (SolicitudExpreso)listItem.getAttribute("data");
|
||||
expreso.clonar();
|
||||
expresoClone = expreso.getCloneObject();
|
||||
|
||||
usuario = UsuarioLogado.getUsuarioLogado();
|
||||
|
||||
|
@ -156,6 +163,8 @@ public class RenderExpresosPorCotizar implements ListitemRenderer {
|
|||
expreso.setFechaHoraAutorizaCredito(Calendar.getInstance().getTime());
|
||||
|
||||
expresosService.actualizacion(expreso);
|
||||
|
||||
logAuditoriaService.auditar(expresoClone, expreso, null);
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
@ -0,0 +1,100 @@
|
|||
package com.rjconsultores.ventaboletos.web.utilerias.render;
|
||||
|
||||
import java.text.NumberFormat;
|
||||
import java.text.SimpleDateFormat;
|
||||
|
||||
import org.zkoss.lang.Strings;
|
||||
import org.zkoss.zk.ui.event.Event;
|
||||
import org.zkoss.zk.ui.event.EventListener;
|
||||
import org.zkoss.zk.ui.event.Events;
|
||||
import org.zkoss.zul.Datebox;
|
||||
import org.zkoss.zul.Listcell;
|
||||
import org.zkoss.zul.Listitem;
|
||||
import org.zkoss.zul.ListitemRenderer;
|
||||
|
||||
import com.rjconsultores.ventaboletos.entidad.Voucher;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyTextbox;
|
||||
|
||||
public class RenderFaturarVoucher implements ListitemRenderer {
|
||||
|
||||
public void render(Listitem lstm, Object o) throws Exception {
|
||||
Voucher vo = (Voucher) o;
|
||||
|
||||
SimpleDateFormat df = new SimpleDateFormat("dd/MM/yyyy");
|
||||
NumberFormat cf = NumberFormat.getInstance();
|
||||
|
||||
Listcell lc = new Listcell(vo.getVoucherId().toString());
|
||||
lc.setParent(lstm);
|
||||
|
||||
lc = new Listcell(vo.getContrato().getNumContrato());
|
||||
lc.setParent(lstm);
|
||||
|
||||
if(vo.getDataValidade() != null){
|
||||
lc = new Listcell(df.format(vo.getDataValidade()));
|
||||
}else{
|
||||
lc = new Listcell("");
|
||||
}
|
||||
lc.setParent(lstm);
|
||||
|
||||
//numero Fatura
|
||||
if( Strings.isBlank(vo.getNumFatura())){
|
||||
lc = new Listcell();
|
||||
MyTextbox txtFatura = new MyTextbox();
|
||||
txtFatura.setWidth("100px;");
|
||||
|
||||
txtFatura.addEventListener(Events.ON_CHANGE, new EventListener() {
|
||||
@Override
|
||||
public void onEvent(Event event) throws Exception {
|
||||
vo.setNumFatura(txtFatura.getValue());
|
||||
}
|
||||
});
|
||||
|
||||
lc.appendChild(txtFatura);
|
||||
}else {
|
||||
lc = new Listcell(vo.getNumFatura());
|
||||
}
|
||||
lc.setParent(lstm);
|
||||
|
||||
//Data Corte
|
||||
if( Strings.isBlank(vo.getNumFatura())){
|
||||
lc = new Listcell();
|
||||
Datebox datCorte = new Datebox();
|
||||
datCorte.setWidth("100px;");
|
||||
|
||||
datCorte.addEventListener(Events.ON_BLUR, new EventListener() {
|
||||
@Override
|
||||
public void onEvent(Event event) throws Exception {
|
||||
vo.setDataCorte(datCorte.getValue());
|
||||
}
|
||||
});
|
||||
|
||||
lc.appendChild(datCorte);
|
||||
}else {
|
||||
lc = new Listcell(df.format(vo.getDataCorte()));
|
||||
}
|
||||
lc.setParent(lstm);
|
||||
|
||||
//Valor Licitado
|
||||
if(vo.getValorLicitado() != null){
|
||||
lc = new Listcell(cf.format(vo.getValorLicitado()));
|
||||
}else{
|
||||
lc = new Listcell("");
|
||||
}
|
||||
lc.setParent(lstm);
|
||||
|
||||
if(vo.getValorLegalizado() != null){
|
||||
lc = new Listcell(cf.format(vo.getValorLegalizado()));
|
||||
}else{
|
||||
lc = new Listcell("");
|
||||
}
|
||||
lc.setParent(lstm);
|
||||
|
||||
lc = new Listcell(vo.getDescOrigem());
|
||||
lc.setParent(lstm);
|
||||
|
||||
lc = new Listcell(vo.getDescDestino());
|
||||
lc.setParent(lstm);
|
||||
|
||||
lstm.setAttribute("data", vo);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,114 @@
|
|||
package com.rjconsultores.ventaboletos.web.utilerias.render;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.zkoss.util.resource.Labels;
|
||||
import org.zkoss.zul.Listcell;
|
||||
import org.zkoss.zul.Listitem;
|
||||
import org.zkoss.zul.ListitemRenderer;
|
||||
|
||||
import com.rjconsultores.ventaboletos.entidad.Constante;
|
||||
import com.rjconsultores.ventaboletos.entidad.SolicitudExpreso;
|
||||
import com.rjconsultores.ventaboletos.entidad.TrayectosExpresos;
|
||||
import com.rjconsultores.ventaboletos.entidad.Usuario;
|
||||
import com.rjconsultores.ventaboletos.service.ConstanteService;
|
||||
import com.rjconsultores.ventaboletos.service.UsuarioService;
|
||||
import com.rjconsultores.ventaboletos.utilerias.DateUtil;
|
||||
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.spring.AppContext;
|
||||
|
||||
public class RenderInformeViajesOcasionales implements ListitemRenderer {
|
||||
|
||||
public RenderInformeViajesOcasionales() {
|
||||
super();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void render(Listitem item, Object data) throws Exception {
|
||||
TrayectosExpresos expresos = (TrayectosExpresos) data;
|
||||
|
||||
Listcell lc = new Listcell(""); //Empresa
|
||||
lc.setParent(item);
|
||||
|
||||
lc = new Listcell(DateUtil.getStringDate(expresos.getSolicitudExpresoId().getFechaSolicitud(), "dd/MM/yyyy")); //Fecha solicitud
|
||||
lc.setParent(item);
|
||||
|
||||
lc = new Listcell(expresos.getSolicitudExpresoId().getSolicitudExpresoId().toString()); //# solicitud
|
||||
lc.setParent(item);
|
||||
|
||||
lc = new Listcell(""); //Agencia contrató
|
||||
lc.setParent(item);
|
||||
|
||||
lc = new Listcell(expresos.getSolicitudExpresoId().getStatusSolicitudExpresoId().toString()); //Estado
|
||||
lc.setParent(item);
|
||||
|
||||
lc = new Listcell(""); //NIT
|
||||
lc.setParent(item);
|
||||
|
||||
lc = new Listcell(""); //Razón social empresa solicitó
|
||||
lc.setParent(item);
|
||||
|
||||
//Forma pgo
|
||||
ConstanteService constanteService = (ConstanteService)AppContext.getApplicationContext().getBean("constanteService");
|
||||
Constante constante = constanteService.buscarPorNomeConstante("FORMAPAGOCREDITO_ID");
|
||||
String pagoCreditoConstante = constante == null ? "" : constante.getValorconstante();
|
||||
|
||||
if(expresos.getSolicitudExpresoId().getFormaPagoId() == null || expresos.getSolicitudExpresoId().getFormaPagoId() != Integer.valueOf(pagoCreditoConstante)) {
|
||||
lc = new Listcell(Labels.getLabel("label.classePagamento.contado"));
|
||||
lc.setParent(item);
|
||||
}else {
|
||||
lc = new Listcell(Labels.getLabel("expresosController.lbl.pagadoCredito"));
|
||||
lc.setParent(item);
|
||||
}
|
||||
|
||||
lc = new Listcell(expresos.getSolicitudExpresoId().getValorCotizacion().toString()); //Valor expreso
|
||||
lc.setParent(item);
|
||||
|
||||
//Usuario
|
||||
UsuarioService usuarioService = (UsuarioService)AppContext.getApplicationContext().getBean("usuarioService");
|
||||
Usuario usuario = usuarioService.obtenerCompletoID(expresos.getUsuarioId());
|
||||
lc = new Listcell(usuario.getNombUsuarioCompleto());
|
||||
lc.setParent(item);
|
||||
|
||||
lc = new Listcell(expresos.getTrayectoExpresoId().toString()); //ID trayecto
|
||||
lc.setParent(item);
|
||||
|
||||
lc = new Listcell(expresos.getSolicitudExpresoId().getCiudadOrigen().getNombciudad()); //Origen
|
||||
lc.setParent(item);
|
||||
|
||||
lc = new Listcell(expresos.getSolicitudExpresoId().getCiudadDestino().getNombciudad()); //Destino
|
||||
lc.setParent(item);
|
||||
|
||||
lc = new Listcell(""); //Observaciones
|
||||
lc.setParent(item);
|
||||
|
||||
lc = new Listcell(DateUtil.getStringDate(expresos.getSolicitudExpresoId().getFechaHoraIda()), "dd/MM/yyyy hh:mm:ss"); //Fecha salida
|
||||
lc.setParent(item);
|
||||
|
||||
lc = new Listcell(""); //Servicio
|
||||
lc.setParent(item);
|
||||
|
||||
lc = new Listcell(""); //# Despacho
|
||||
lc.setParent(item);
|
||||
|
||||
lc = new Listcell(""); //Inteno
|
||||
lc.setParent(item);
|
||||
|
||||
lc = new Listcell(expresos.getNumPlaca() == null ? "N/A" : expresos.getNumPlaca().toString()); //Placa
|
||||
lc.setParent(item);
|
||||
|
||||
lc = new Listcell(expresos.getSolicitudExpresoId().getCantidadPasajeros() == null ? "N/A" : expresos.getSolicitudExpresoId().getCantidadPasajeros().toString()); //Pasajeros
|
||||
lc.setParent(item);
|
||||
|
||||
lc = new Listcell(expresos.getValorTrayecto() == null ? "N/A" : expresos.getValorTrayecto().toString()); //valor trayecto
|
||||
lc.setParent(item);
|
||||
|
||||
lc = new Listcell(""); //Fecha despacho
|
||||
lc.setParent(item);
|
||||
|
||||
lc = new Listcell(""); //Kilómetros
|
||||
lc.setParent(item);
|
||||
|
||||
item.setAttribute("data", expresos);
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,39 @@
|
|||
package com.rjconsultores.ventaboletos.web.utilerias.render;
|
||||
|
||||
import org.zkoss.zul.Listcell;
|
||||
import org.zkoss.zul.Listitem;
|
||||
import org.zkoss.zul.ListitemRenderer;
|
||||
|
||||
import com.rjconsultores.ventaboletos.entidad.LogAuditoria;
|
||||
import com.rjconsultores.ventaboletos.utilerias.DateUtil;
|
||||
|
||||
public class RenderLogAuditoriaExpresos implements ListitemRenderer {
|
||||
|
||||
public void render(Listitem lstm, Object o) throws Exception {
|
||||
LogAuditoria logAuditoria = (LogAuditoria) o;
|
||||
|
||||
Listcell lc = new Listcell(DateUtil.getStringDate(logAuditoria.getFecmodif(), "dd/MM/yyyy HH:mm"));
|
||||
lc.setParent(lstm);
|
||||
|
||||
lc = new Listcell(logAuditoria.getIdAuditado() != null ? logAuditoria.getIdAuditado().toString() : "");
|
||||
lc.setParent(lstm);
|
||||
|
||||
lc = new Listcell(String.format("%s - %s", logAuditoria.getUsuario().getClaveUsuario(), logAuditoria.getUsuario().getNombusuario()));
|
||||
lc.setParent(lstm);
|
||||
|
||||
lc = new Listcell(logAuditoria.getTipoAlteracao());
|
||||
lc.setParent(lstm);
|
||||
|
||||
lc = new Listcell(logAuditoria.getCampoAlterado());
|
||||
lc.setParent(lstm);
|
||||
|
||||
lc = new Listcell(logAuditoria.getValorNovo());
|
||||
lc.setParent(lstm);
|
||||
|
||||
lc = new Listcell(logAuditoria.getValorAnterior());
|
||||
lc.setParent(lstm);
|
||||
|
||||
lstm.setAttribute("data", logAuditoria);
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,67 @@
|
|||
package com.rjconsultores.ventaboletos.web.utilerias.render;
|
||||
|
||||
import org.zkoss.util.resource.Labels;
|
||||
import org.zkoss.zul.Listcell;
|
||||
import org.zkoss.zul.Listitem;
|
||||
import org.zkoss.zul.ListitemRenderer;
|
||||
|
||||
import com.rjconsultores.ventaboletos.entidad.Constante;
|
||||
import com.rjconsultores.ventaboletos.entidad.TrayectosExpresos;
|
||||
import com.rjconsultores.ventaboletos.entidad.Usuario;
|
||||
import com.rjconsultores.ventaboletos.service.ConstanteService;
|
||||
import com.rjconsultores.ventaboletos.service.UsuarioService;
|
||||
import com.rjconsultores.ventaboletos.utilerias.DateUtil;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.spring.AppContext;
|
||||
|
||||
public class RenderSeguimientoExpresos implements ListitemRenderer {
|
||||
|
||||
public RenderSeguimientoExpresos() {
|
||||
super();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void render(Listitem item, Object data) throws Exception {
|
||||
TrayectosExpresos expresos = (TrayectosExpresos) data;
|
||||
|
||||
Listcell lc = new Listcell(expresos.getSolicitudExpresoId().getSolicitudExpresoId().toString()); //# solicitud
|
||||
lc.setParent(item);
|
||||
|
||||
lc = new Listcell(DateUtil.getStringDate(expresos.getSolicitudExpresoId().getFechaSolicitud(), "dd/MM/yyyy")); //Fecha solicitud
|
||||
lc.setParent(item);
|
||||
|
||||
lc = new Listcell(expresos.getSolicitudExpresoId().getCiudadOrigen().getNombciudad() + " - " + expresos.getSolicitudExpresoId().getCiudadDestino().getNombciudad()); //Ruta
|
||||
lc.setParent(item);
|
||||
|
||||
lc = new Listcell(expresos.getSolicitudExpresoId().getIndViajeRedondo() == true ? Labels.getLabel("expressosPorCotizarController.lhIdaRegreso.label") : Labels.getLabel("expresosController.lbl.idaVuelta")); //Ruta
|
||||
lc.setParent(item);
|
||||
|
||||
lc = new Listcell(DateUtil.getStringDate(expresos.getSolicitudExpresoId().getFechaHoraIda()), "dd/MM/yyyy hh:mm:ss"); //Fecha salida
|
||||
lc.setParent(item);
|
||||
|
||||
lc = new Listcell(DateUtil.getStringDate(expresos.getSolicitudExpresoId().getFechaHoraRegreso()), "dd/MM/yyyy hh:mm:ss"); //Fecha salida
|
||||
lc.setParent(item);
|
||||
|
||||
lc = new Listcell(expresos.getSolicitudExpresoId().getDescSitioPartidaIda());
|
||||
lc.setParent(item);
|
||||
|
||||
lc = new Listcell(expresos.getSolicitudExpresoId().getDescSitioPartidaRegreso());
|
||||
lc.setParent(item);
|
||||
|
||||
lc = new Listcell(expresos.getNumPlaca() == null ? "N/A" : expresos.getNumPlaca().toString()); //Placa
|
||||
lc.setParent(item);
|
||||
|
||||
lc = new Listcell(expresos.getSolicitudExpresoId().getStatusSolicitudExpresoId().toString()); //Estado
|
||||
lc.setParent(item);
|
||||
|
||||
lc = new Listcell(expresos.getSolicitudExpresoId().getDocContrato() != null ? Labels.getLabel("MSG.SI") : Labels.getLabel("MSG.NO"));
|
||||
lc.setParent(item);
|
||||
|
||||
lc = new Listcell(expresos.getDocFluec() != null ? Labels.getLabel("MSG.SI") : Labels.getLabel("MSG.NO"));
|
||||
lc.setParent(item);
|
||||
|
||||
lc = new Listcell(expresos.getSolicitudExpresoId().getDocListaPasajeros() != null ? Labels.getLabel("MSG.SI") : Labels.getLabel("MSG.NO"));
|
||||
lc.setParent(item);
|
||||
|
||||
item.setAttribute("data", expresos);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,31 @@
|
|||
/*
|
||||
* To change this template, choose Tools | Templates
|
||||
* and open the template in the editor.
|
||||
*/
|
||||
package com.rjconsultores.ventaboletos.web.utilerias.render;
|
||||
|
||||
import com.rjconsultores.ventaboletos.entidad.ClaseServicio;
|
||||
import com.rjconsultores.ventaboletos.entidad.TipoIdentificacion;
|
||||
|
||||
import org.zkoss.zul.Listcell;
|
||||
import org.zkoss.zul.Listitem;
|
||||
import org.zkoss.zul.ListitemRenderer;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Administrador
|
||||
*/
|
||||
public class RenderTipoIdentificacion implements ListitemRenderer {
|
||||
|
||||
public void render(Listitem lstm, Object o) throws Exception {
|
||||
TipoIdentificacion tipoIdentificacion = (TipoIdentificacion) o;
|
||||
|
||||
Listcell lc = new Listcell(tipoIdentificacion.getTipoIdentificacionId().toString());
|
||||
lc.setParent(lstm);
|
||||
|
||||
lc = new Listcell(tipoIdentificacion.getDesctipo());
|
||||
lc.setParent(lstm);
|
||||
|
||||
lstm.setAttribute("data", tipoIdentificacion);
|
||||
}
|
||||
}
|
|
@ -483,6 +483,8 @@
|
|||
<value>com.rjconsultores.ventaboletos.entidad.DescontoContrato</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.ConfComprovantePassagem</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.Voucher</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.EmpresaConfigLayout</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.EmpresaNequiConfig</value>
|
||||
</list>
|
||||
</property>
|
||||
|
||||
|
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,52 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<?page contentType="text/html;charset=UTF-8"?>
|
||||
<?variable-resolver class="org.zkoss.zkplus.spring.DelegatingVariableResolver"?>
|
||||
<?init class="org.zkoss.zkplus.databind.AnnotateDataBinderInit" arg0="winBusquedaTipoDocumento"?>
|
||||
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
|
||||
|
||||
<zk xmlns="http://www.zkoss.org/2005/zul">
|
||||
<window id="winBusquedaTipoDocumento" title="${c:l('busquedaTipoDocumentoController.window.title')}" apply="${busquedaTipoDocumentoController}"
|
||||
contentStyle="overflow:auto" height="450px" width="600px" border="normal" >
|
||||
<toolbar>
|
||||
<button id="btnRefresh" image="/gui/img/refresh.png" width="35px"
|
||||
tooltiptext="${c:l('busquedaClaseServicioController.btnRefresh.tooltiptext')}" />
|
||||
<separator orient="vertical" />
|
||||
<button id="btnNovo" image="/gui/img/add.png" width="35px"
|
||||
tooltiptext="${c:l('busquedaClaseServicioController.btnNovo.tooltiptext')}" />
|
||||
<separator orient="vertical" />
|
||||
<button id="btnCerrar" onClick="winBusquedaTipoDocumento.detach()" image="/gui/img/exit.png" width="35px"
|
||||
tooltiptext="${c:l('busquedaClaseServicioController.btnCerrar.tooltiptext')}"/>
|
||||
</toolbar>
|
||||
|
||||
<grid fixedLayout="true">
|
||||
<columns>
|
||||
<column width="30%" />
|
||||
<column width="70%" />
|
||||
</columns>
|
||||
<rows>
|
||||
<row>
|
||||
<label value="${c:l('busquedaTipoDocumentoController.txtTipoDocumento.label')}"/>
|
||||
<textbox id="txtNome" width="300px" use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"/>
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
|
||||
<toolbar>
|
||||
<button id="btnPesquisa" image="/gui/img/find.png"
|
||||
label="${c:l('busquedaClaseServicioController.btnPesquisa.label')}"/>
|
||||
</toolbar>
|
||||
|
||||
<paging id="pagingTipoIdentificacion" pageSize="20"/>
|
||||
<listbox id="tipoIdentificacionList" use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
||||
vflex="true" multiple="false" height="80%">
|
||||
<listhead sizable="true">
|
||||
<listheader image="/gui/img/create_doc.gif"
|
||||
label="${c:l('busquedaClaseServicioController.lhId.label')}" width="70px"
|
||||
sort="auto(tipoIdentificacionId)"/>
|
||||
<listheader id="lhDesc" image="/gui/img/create_doc.gif"
|
||||
label="${c:l('busquedaClaseServicioController.lhDesc.label')}"
|
||||
sort="auto(desctipo)"/>
|
||||
</listhead>
|
||||
</listbox>
|
||||
</window>
|
||||
</zk>
|
|
@ -1,84 +1,84 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<?page contentType="text/html;charset=UTF-8"?>
|
||||
<?variable-resolver class="org.zkoss.zkplus.spring.DelegatingVariableResolver"?>
|
||||
<?init class="org.zkoss.zkplus.databind.AnnotateDataBinderInit" arg0="winEditarClaseServicio"?>
|
||||
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
|
||||
|
||||
<zk xmlns="http://www.zkoss.org/2005/zul">
|
||||
<window id="winEditarClaseServicio" border="normal"
|
||||
apply="${editarClaseServicioController}"
|
||||
width="400px" height="457x" contentStyle="overflow:auto"
|
||||
title="${c:l('editarClaseServicioController.window.title')}">
|
||||
<toolbar>
|
||||
<hbox spacing="5px" style="padding:1px" align="right">
|
||||
<button id="btnApagar" height="20"
|
||||
image="/gui/img/remove.png" width="35px"
|
||||
tooltiptext="${c:l('editarClaseServicioController.btnApagar.tooltiptext')}"/>
|
||||
<button id="btnSalvar" height="20"
|
||||
image="/gui/img/save.png" width="35px"
|
||||
tooltiptext="${c:l('editarClaseServicioController.btnSalvar.tooltiptext')}"/>
|
||||
<button id="btnFechar" height="20"
|
||||
image="/gui/img/exit.png" width="35px"
|
||||
onClick="winEditarClaseServicio.detach()"
|
||||
tooltiptext="${c:l('editarClaseServicioController.btnFechar.tooltiptext')}"/>
|
||||
</hbox>
|
||||
</toolbar>
|
||||
|
||||
<grid fixedLayout="true">
|
||||
<columns>
|
||||
<column width="40%" />
|
||||
<column width="60%" />
|
||||
</columns>
|
||||
<rows>
|
||||
<row>
|
||||
<label id="lbNome" value="${c:l('editarClaseServicioController.lbNome.value')}"/>
|
||||
<textbox id="txtNome" width="100%" maxlength="30" constraint="no empty"
|
||||
value="@{winEditarClaseServicio$composer.claseServicio.descclase}"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"/>
|
||||
</row>
|
||||
<row>
|
||||
<label id="lbTipoServico" value="${c:l('editarClaseServicioController.lbTipoServico.value')}"/>
|
||||
<combobox id="cmbTipoServico"
|
||||
constraint="no empty" width="99%" mold="rounded"
|
||||
buttonVisible="true"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||
model="@{winEditarClaseServicio$composer.tiposClasseServicoBPe}">
|
||||
</combobox>
|
||||
</row>
|
||||
<row>
|
||||
<label
|
||||
value="${c:l('editarClaseServicioController.lbMonitrip.value')}" />
|
||||
<combobox id="cmbDescontoMonitrip"
|
||||
mold="rounded" buttonVisible="true" width="100%"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||
model="@{winEditarClaseServicio$composer.lsTipoDescontoMonitrips}"
|
||||
selectedItem="@{winEditarClaseServicio$composer.claseServicio.tipoDescontoMonitrip}" />
|
||||
</row>
|
||||
<row>
|
||||
<label
|
||||
value="${c:l('editarClaseServicioController.labelCoeficiente.value')}" />
|
||||
<textbox id="txtCoeficiente"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextboxDecimal"
|
||||
precision="14" scale="9" width="50%" />
|
||||
</row>
|
||||
<row>
|
||||
<label
|
||||
value="${c:l('editarClaseServicioController.labelPorcPricingSemelhante.value')}" />
|
||||
<textbox id="porcPricingSemelhante"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextboxDecimal"
|
||||
precision="5" scale="2" width="50%"
|
||||
value="@{winEditarClaseServicio$composer.claseServicio.porcPricingSemelhante,converter=com.rjconsultores.ventaboletos.web.utilerias.StringDecimalToDecimalConverter}" />
|
||||
|
||||
</row>
|
||||
|
||||
|
||||
<row>
|
||||
<label
|
||||
value="${c:l('editarClaseServicioController.labelNaoVendeSeguroOpcional.value')}" />
|
||||
<checkbox id="chkNaoVendeSeguroOpcional" />
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
|
||||
</window>
|
||||
</zk>
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<?page contentType="text/html;charset=UTF-8"?>
|
||||
<?variable-resolver class="org.zkoss.zkplus.spring.DelegatingVariableResolver"?>
|
||||
<?init class="org.zkoss.zkplus.databind.AnnotateDataBinderInit" arg0="winEditarClaseServicio"?>
|
||||
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
|
||||
|
||||
<zk xmlns="http://www.zkoss.org/2005/zul">
|
||||
<window id="winEditarClaseServicio" border="normal"
|
||||
apply="${editarClaseServicioController}"
|
||||
width="400px" height="457x" contentStyle="overflow:auto"
|
||||
title="${c:l('editarClaseServicioController.window.title')}">
|
||||
<toolbar>
|
||||
<hbox spacing="5px" style="padding:1px" align="right">
|
||||
<button id="btnApagar" height="20"
|
||||
image="/gui/img/remove.png" width="35px"
|
||||
tooltiptext="${c:l('editarClaseServicioController.btnApagar.tooltiptext')}"/>
|
||||
<button id="btnSalvar" height="20"
|
||||
image="/gui/img/save.png" width="35px"
|
||||
tooltiptext="${c:l('editarClaseServicioController.btnSalvar.tooltiptext')}"/>
|
||||
<button id="btnFechar" height="20"
|
||||
image="/gui/img/exit.png" width="35px"
|
||||
onClick="winEditarClaseServicio.detach()"
|
||||
tooltiptext="${c:l('editarClaseServicioController.btnFechar.tooltiptext')}"/>
|
||||
</hbox>
|
||||
</toolbar>
|
||||
|
||||
<grid fixedLayout="true">
|
||||
<columns>
|
||||
<column width="40%" />
|
||||
<column width="60%" />
|
||||
</columns>
|
||||
<rows>
|
||||
<row>
|
||||
<label id="lbNome" value="${c:l('editarClaseServicioController.lbNome.value')}"/>
|
||||
<textbox id="txtNome" width="100%" maxlength="30" constraint="no empty"
|
||||
value="@{winEditarClaseServicio$composer.claseServicio.descclase}"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"/>
|
||||
</row>
|
||||
<row>
|
||||
<label id="lbTipoServico" value="${c:l('editarClaseServicioController.lbTipoServico.value')}"/>
|
||||
<combobox id="cmbTipoServico"
|
||||
constraint="no empty" width="99%" mold="rounded"
|
||||
buttonVisible="true"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||
model="@{winEditarClaseServicio$composer.tiposClasseServicoBPe}">
|
||||
</combobox>
|
||||
</row>
|
||||
<row>
|
||||
<label
|
||||
value="${c:l('editarClaseServicioController.lbMonitrip.value')}" />
|
||||
<combobox id="cmbDescontoMonitrip"
|
||||
mold="rounded" buttonVisible="true" width="100%"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||
model="@{winEditarClaseServicio$composer.lsTipoDescontoMonitrips}"
|
||||
selectedItem="@{winEditarClaseServicio$composer.claseServicio.tipoDescontoMonitrip}" />
|
||||
</row>
|
||||
<row>
|
||||
<label
|
||||
value="${c:l('editarClaseServicioController.labelCoeficiente.value')}" />
|
||||
<textbox id="txtCoeficiente"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextboxDecimal"
|
||||
precision="14" scale="9" width="50%" />
|
||||
</row>
|
||||
<row>
|
||||
<label
|
||||
value="${c:l('editarClaseServicioController.labelPorcPricingSemelhante.value')}" />
|
||||
<textbox id="porcPricingSemelhante"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextboxDecimal"
|
||||
precision="5" scale="2" width="50%"
|
||||
value="@{winEditarClaseServicio$composer.claseServicio.porcPricingSemelhante,converter=com.rjconsultores.ventaboletos.web.utilerias.StringDecimalToDecimalConverter}" />
|
||||
|
||||
</row>
|
||||
|
||||
|
||||
<row>
|
||||
<label
|
||||
value="${c:l('editarClaseServicioController.labelNaoVendeSeguroOpcional.value')}" />
|
||||
<checkbox id="chkNaoVendeSeguroOpcional" />
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
|
||||
</window>
|
||||
</zk>
|
||||
|
|
|
@ -53,8 +53,10 @@
|
|||
<tab label="${c:l('editarEmpresaController.saftao.titulo')}" id="tabSaftao" visible="false" />
|
||||
<tab label="${c:l('editarEmpresaController.sicfe.titulo')}" id="tabSicfe" />
|
||||
<tab label="${c:l('editarEmpresaController.lblCrediBanco.value')}" id="tabCrediBanco" />
|
||||
<tab label="${c:l('editarEmpresaController.lblNequi.value')}" id="tabNequi" />
|
||||
<tab label="${c:l('editarEmpresaController.lblAsistenciaDeViaje.value')}" id="tabAssistenteViagem" />
|
||||
<tab label="${c:l('editarEmpresaController.tabComprovantePassagem.value')}" id="tabComprovantePassagem" />
|
||||
<tab label="${c:l('editarEmpresaController.tabConfiguracaoLayout.value')}" />
|
||||
</tabs>
|
||||
|
||||
<tabpanels style="overflow: auto">
|
||||
|
@ -2347,8 +2349,8 @@
|
|||
</row>
|
||||
<row>
|
||||
<label
|
||||
value="${c:l('editarEmpresaController.lblDiasCancela.value')}" />
|
||||
<textbox id="txtIziPayDiasCancela"
|
||||
value="${c:l('editarEmpresaController.lblMinutosCancela.value')}" />
|
||||
<textbox id="txtIziPayMinutosCancela"
|
||||
width="50%"
|
||||
maxlength="20"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextboxCustom" />
|
||||
|
@ -2753,10 +2755,27 @@
|
|||
<label value="${c:l('editarEmpresaController.sicfe.indDesconto100Emite')}" />
|
||||
<checkbox id="chkSicfeDesconto100Emite" use="com.rjconsultores.ventaboletos.web.utilerias.MyCheckboxSiNo" />
|
||||
</row>
|
||||
<row>
|
||||
<label value="${c:l('editarEmpresaController.sicfe.indCreditoOrdemServico')}" />
|
||||
<checkbox id="chkSicfeCreditoOrdemServico" use="com.rjconsultores.ventaboletos.web.utilerias.MyCheckboxSiNo" />
|
||||
</row>
|
||||
<row>
|
||||
|
||||
<groupbox closable="false" mold="3d" >
|
||||
<caption label="${c:l('editarEmpresaController.sicfe.empresaFormasPagamentoSicfe')}" />
|
||||
<hlayout>
|
||||
<listbox id="empresaFormasPagamentoSicfe" use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox" height="120px" width="200px"
|
||||
droppable="true">
|
||||
</listbox>
|
||||
</hlayout>
|
||||
</groupbox>
|
||||
|
||||
<groupbox width="215px" closable="false" mold="3d" >
|
||||
<caption label="${c:l('editarEmpresaController.sicfe.empresaFormasPagamentoSicfeSelecionado')}" />
|
||||
<hlayout>
|
||||
<listbox id="empresaFormasPagamentoSicfeSelecionado" use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox" height="120px" width="200px"
|
||||
droppable="true">
|
||||
</listbox>
|
||||
</hlayout>
|
||||
</groupbox>
|
||||
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
<groupbox id="gbHabilitaSicfe" open="false" onOpen="chkIsSicfeHabilitado.setChecked(event.open);">
|
||||
|
@ -2842,6 +2861,10 @@
|
|||
<row>
|
||||
<label value="${c:l('editarEmpresaController.sicfe.txtSicfeRazaoSocial')}" />
|
||||
<textbox id="txtSicfeRazaoSocial" width="80%" maxlength="255" />
|
||||
</row>
|
||||
<row>
|
||||
<label value="${c:l('editarEmpresaController.sicfe.txtSicfeSucursal')}" />
|
||||
<textbox id="txtSicfeSucursal" width="80%" maxlength="255" />
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
|
@ -2886,6 +2909,39 @@
|
|||
</grid>
|
||||
</tabpanel>
|
||||
|
||||
<!-- Nequi -->
|
||||
<tabpanel>
|
||||
<grid fixedLayout="true">
|
||||
<columns>
|
||||
<column width="25%" />
|
||||
<column width="75%" />
|
||||
</columns>
|
||||
<rows>
|
||||
|
||||
<row>
|
||||
<label value="${c:l('editarEmpresaController.lblClientIdNequi.value')}" />
|
||||
<textbox id="txtClientIdNequi" width="80%" maxlength="50" />
|
||||
</row>
|
||||
<row>
|
||||
<label value="${c:l('editarEmpresaController.lblApiKeyNequi.value')}" />
|
||||
<textbox id="txtApiKeyNequi" width="80%" maxlength="100" />
|
||||
</row>
|
||||
<row>
|
||||
<label value="${c:l('editarEmpresaController.lblCodeEmpresaNequi.value')}" />
|
||||
<textbox id="txtCodeEmpresaNequi" width="80%" maxlength="50" />
|
||||
</row>
|
||||
<row>
|
||||
<label value="${c:l('editarEmpresaController.lblUrlNequi.value')}" />
|
||||
<textbox id="txtUrlNequi" width="80%" maxlength="250" />
|
||||
</row>
|
||||
<row>
|
||||
<label value="${c:l('editarEmpresaController.lblHashNequi.value')}" />
|
||||
<textbox id="txtHashNequi" width="80%" maxlength="250" />
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
</tabpanel>
|
||||
|
||||
<!-- Assistência de viagem -->
|
||||
<tabpanel>
|
||||
<grid fixedLayout="true">
|
||||
|
@ -3093,7 +3149,60 @@
|
|||
|
||||
</tabpanels>
|
||||
</tabbox>
|
||||
</tabpanel>
|
||||
</tabpanel>
|
||||
|
||||
<!-- Configuracao Layout -->
|
||||
<tabpanel>
|
||||
<grid fixedLayout="true">
|
||||
<columns>
|
||||
<column width="30%" />
|
||||
<column width="70%" />
|
||||
</columns>
|
||||
<rows>
|
||||
<row>
|
||||
<label
|
||||
value="${c:l('editarEmpresaController.cmbConfigLayoutTiposVenda')}" />
|
||||
<combobox id="cmbConfigLayoutTiposVenda"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||
width="98%" mold="rounded" buttonVisible="true"
|
||||
model="@{winEditarEmpresa$composer.lsTiposVenta}" />
|
||||
</row>
|
||||
<row>
|
||||
<label value="${c:l('editarEmpresaController.cmbImpresionLayoutConfig')}" />
|
||||
<combobox id="cmbImpresionLayoutConfig"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxImpresionLayoutConfig" mold="rounded" buttonVisible="true" width="100%" />
|
||||
</row>
|
||||
<row>
|
||||
<label value="${c:l('editarEmpresaController.lblLayoutEmail')}" />
|
||||
<checkbox id="chkindLayoutEmailConfig"/>
|
||||
</row>
|
||||
<row>
|
||||
<label />
|
||||
<hbox>
|
||||
<button
|
||||
id="btnAdicionarConfigLayout" height="20"
|
||||
image="/gui/img/add.png" width="35px"
|
||||
tooltiptext="${c:l('tooltiptext.btnAgregar')}" />
|
||||
<button id="btnRemoverConfigLayout"
|
||||
height="20" image="/gui/img/remove.png" width="35px"
|
||||
tooltiptext="${c:l('tooltiptext.btnEliminar')}" />
|
||||
</hbox>
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
<listbox id="empresaLayoutConfigList"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
||||
vflex="true" multiple="false">
|
||||
<listhead sizable="true">
|
||||
<listheader image="/gui/img/create_doc.gif"
|
||||
label="${c:l('editarEmpresaController.cmbConfigLayoutTiposVenda')}" sort="auto(tipoVenta.desctipoventa)" />
|
||||
<listheader image="/gui/img/create_doc.gif"
|
||||
label="${c:l('editarEmpresaController.cmbImpresionLayoutConfig')}" sort="auto(impresionlayoutconfigId.descricao)" />
|
||||
<listheader image="/gui/img/create_doc.gif"
|
||||
label="${c:l('editarEmpresaController.lblLayoutEmail')}" sort="auto(indEmail)" />
|
||||
</listhead>
|
||||
</listbox>
|
||||
</tabpanel>
|
||||
|
||||
</tabpanels>
|
||||
</tabbox>
|
||||
|
|
|
@ -0,0 +1,47 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<?page contentType="text/html;charset=UTF-8"?>
|
||||
<?variable-resolver class="org.zkoss.zkplus.spring.DelegatingVariableResolver"?>
|
||||
<?init class="org.zkoss.zkplus.databind.AnnotateDataBinderInit" arg0="winEditarTipoDocumento"?>
|
||||
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
|
||||
|
||||
<zk xmlns="http://www.zkoss.org/2005/zul">
|
||||
<window id="winEditarTipoDocumento" border="normal"
|
||||
apply="${editarTipoDocumentoController}"
|
||||
width="400px" height="457x" contentStyle="overflow:auto"
|
||||
title="${c:l('editarTipoDocumentoController.window.title')}">
|
||||
<toolbar>
|
||||
<hbox spacing="5px" style="padding:1px" align="right">
|
||||
<button id="btnApagar" height="20" disabled="false"
|
||||
image="/gui/img/remove.png" width="35px"
|
||||
tooltiptext="${c:l('editarClaseServicioController.btnApagar.tooltiptext')}"/>
|
||||
<button id="btnSalvar" height="20" disabled="false"
|
||||
image="/gui/img/save.png" width="35px"
|
||||
tooltiptext="${c:l('editarClaseServicioController.btnSalvar.tooltiptext')}"/>
|
||||
<button id="btnFechar" height="20"
|
||||
image="/gui/img/exit.png" width="35px"
|
||||
onClick="winEditarTipoDocumento.detach()"
|
||||
tooltiptext="${c:l('editarClaseServicioController.btnFechar.tooltiptext')}"/>
|
||||
</hbox>
|
||||
</toolbar>
|
||||
|
||||
<grid fixedLayout="true">
|
||||
<columns>
|
||||
<column width="40%" />
|
||||
<column width="60%" />
|
||||
</columns>
|
||||
<rows>
|
||||
<row>
|
||||
<label id="lbNome" value="${c:l('editarTipoDocumentoController.txtTipoDocumento.label')}"/>
|
||||
<textbox id="txtDescTipoDocumento" width="100%" maxlength="30"
|
||||
value="@{winEditarTipoDocumento$composer.tipoDocumento.desctipo}"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"/>
|
||||
</row>
|
||||
<row>
|
||||
<label
|
||||
value="${c:l('editarTipoDocumentoController.chkExibeConfirmacaoTotalbus.label')}" />
|
||||
<checkbox id="chkExibeConfirmacaoTotalbus" />
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
</window>
|
||||
</zk>
|
|
@ -50,7 +50,7 @@
|
|||
|
||||
<toolbar>
|
||||
<button id="btnPesquisa" image="/gui/img/find.png"
|
||||
label="${c:l('busquedaClienteCorporativoController.btnPesquisa.label')}" />
|
||||
label="${c:l('label.btnPesquisar')}" />
|
||||
</toolbar>
|
||||
|
||||
<paging id="pagingClienteCorporativo" pageSize="20" />
|
||||
|
|
|
@ -66,7 +66,7 @@
|
|||
|
||||
<toolbar>
|
||||
<button id="btnPesquisa" image="/gui/img/find.png"
|
||||
label="${c:l('label.btnPesquisa')}" />
|
||||
label="${c:l('label.btnPesquisar')}" />
|
||||
</toolbar>
|
||||
|
||||
<paging id="pagingContrato" pageSize="20" />
|
||||
|
|
|
@ -0,0 +1,83 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<?page contentType="text/html;charset=UTF-8"?>
|
||||
<?variable-resolver class="org.zkoss.zkplus.spring.DelegatingVariableResolver"?>
|
||||
<?init class="org.zkoss.zkplus.databind.AnnotateDataBinderInit" arg0="winBusquedaFaturarVoucher"?>
|
||||
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
|
||||
|
||||
<zk xmlns="http://www.zkoss.org/2005/zul">
|
||||
<window id="winBusquedaFaturarVoucher" border="normal"
|
||||
apply="${busquedaFaturarVoucherController}"
|
||||
height="220px" width="800px" contentStyle="overflow:auto" sizable="true"
|
||||
title="${c:l('faturarVoucherController.window.title')}" >
|
||||
|
||||
<toolbar>
|
||||
<hbox spacing="5px" style="padding:1px" align="right">
|
||||
<button id="btnCerrar"
|
||||
onClick="winBusquedaFaturarVoucher.detach()" image="/gui/img/exit.png"
|
||||
width="35px"
|
||||
tooltiptext="${c:l('tooltiptext.btnFechar')}" />
|
||||
</hbox>
|
||||
</toolbar>
|
||||
|
||||
<grid fixedLayout="true">
|
||||
<columns>
|
||||
<column width="15%" />
|
||||
<column width="35%" />
|
||||
<column width="15%" />
|
||||
<column width="35%" />
|
||||
</columns>
|
||||
<rows>
|
||||
<row>
|
||||
<label value="${c:l('label.numInicial')}" />
|
||||
<longbox id="txtNumInicial" constraint="no negative" maxlength="15" width="100px" />
|
||||
|
||||
<label value="${c:l('label.numFinal')}" />
|
||||
<longbox id="txtNumFinal" constraint="no negative" maxlength="15" width="100px" />
|
||||
</row>
|
||||
<row>
|
||||
<label value="${c:l('label.nit')}" />
|
||||
<textbox id="txtNit" maxlength="20" width="150px" />
|
||||
|
||||
<label value="${c:l('label.transportadora')}"/>
|
||||
<combobox id="cmbTransportadora"
|
||||
buttonVisible="true"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||
model="@{winBusquedaFaturarVoucher$composer.lsTransportadora}"
|
||||
mold="rounded" width="95%" />
|
||||
</row>
|
||||
<row>
|
||||
<label value="${c:l('label.numContrato')}" />
|
||||
<textbox id="txtNumContrato" constraint="no negative" maxlength="15" width="100px" />
|
||||
|
||||
<label value="${c:l('label.grupoContrato')}" />
|
||||
<combobox id="cmbGrupo"
|
||||
buttonVisible="true"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||
model="@{winBusquedaFaturarVoucher$composer.lsGrupo}"
|
||||
mold="rounded" width="95%" />
|
||||
</row>
|
||||
<row>
|
||||
<label value="${c:l('label.origem')}" />
|
||||
<combobox id="cmbOrigem"
|
||||
buttonVisible="true"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada"
|
||||
mold="rounded" width="95%" />
|
||||
|
||||
<label value="${c:l('label.destino')}" />
|
||||
<combobox id="cmbDestino"
|
||||
buttonVisible="true"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada"
|
||||
mold="rounded" width="95%" />
|
||||
</row>
|
||||
<row spans="4" align="center">
|
||||
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
|
||||
<toolbar>
|
||||
<button id="btnPesquisar" image="/gui/img/find.png"
|
||||
label="${c:l('label.btnPesquisar')}" />
|
||||
</toolbar>
|
||||
</window>
|
||||
</zk>
|
|
@ -47,7 +47,7 @@
|
|||
|
||||
<toolbar>
|
||||
<button id="btnPesquisa" image="/gui/img/find.png"
|
||||
label="${c:l('busquedaGrupoContratoController.btnPesquisa.label')}" />
|
||||
label="${c:l('label.btnPesquisar')}" />
|
||||
</toolbar>
|
||||
|
||||
<paging id="pagingGrupoContrato" pageSize="20" />
|
||||
|
|
|
@ -51,7 +51,7 @@
|
|||
|
||||
<toolbar>
|
||||
<button id="btnPesquisa" image="/gui/img/find.png"
|
||||
label="${c:l('label.btnPesquisa')}" />
|
||||
label="${c:l('label.btnPesquisar')}" />
|
||||
</toolbar>
|
||||
|
||||
<paging id="pagingTransportadora" pageSize="20" />
|
||||
|
|
|
@ -80,7 +80,7 @@
|
|||
|
||||
<toolbar>
|
||||
<button id="btnPesquisa" image="/gui/img/find.png"
|
||||
label="${c:l('label.btnPesquisa')}" />
|
||||
label="${c:l('label.btnPesquisar')}" />
|
||||
</toolbar>
|
||||
|
||||
<paging id="pagingVoucher" pageSize="20" />
|
||||
|
|
|
@ -117,12 +117,14 @@
|
|||
</columns>
|
||||
<rows>
|
||||
<row>
|
||||
<label id="lbValorLegalizado" value="${c:l('label.valorLegalizado')}" />
|
||||
<decimalbox id="txtValorLegalizado"
|
||||
maxlength="12" format="0.00"
|
||||
constraint="no negative" width="100px"
|
||||
value="@{winEditarVoucher$composer.voucher.valorLegalizado}" />
|
||||
</row>
|
||||
<label value="${c:l('label.transportadora')}"/>
|
||||
<combobox id="cmbTransportadora" width="95%"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||
model="@{winEditarVoucher$composer.lsTransportadora}"
|
||||
value="@{winEditarVoucher$composer.voucher.transportadora}"
|
||||
mold="rounded" buttonVisible="true" />
|
||||
</row>
|
||||
|
||||
<row>
|
||||
<label id="lbValorTransp" value="${c:l('label.valorTransportadora')}" />
|
||||
<decimalbox id="txtValorTransp"
|
||||
|
@ -132,20 +134,19 @@
|
|||
</row>
|
||||
|
||||
<row>
|
||||
<label value="${c:l('label.transportadora')}"/>
|
||||
<combobox id="cmbTransportadora" width="95%"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||
model="@{winEditarVoucher$composer.lsTransportadora}"
|
||||
value="@{winEditarVoucher$composer.voucher.transportadora}"
|
||||
mold="rounded" buttonVisible="true" />
|
||||
</row>
|
||||
<label id="lbValorLegalizado" value="${c:l('label.valorLegalizado')}" />
|
||||
<decimalbox id="txtValorLegalizado"
|
||||
maxlength="12" format="0.00"
|
||||
constraint="no negative" width="100px"
|
||||
value="@{winEditarVoucher$composer.voucher.valorLegalizado}" />
|
||||
</row>
|
||||
|
||||
<row spans="4" align="center">
|
||||
<button id="btnLegalizar" height="20"
|
||||
image="/gui/img/ok.png" width="120px"
|
||||
label="Legalizar " />
|
||||
</row>
|
||||
|
||||
|
||||
</rows>
|
||||
</grid>
|
||||
</tabpanel>
|
||||
|
|
|
@ -0,0 +1,78 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<?page contentType="text/html;charset=UTF-8"?>
|
||||
<?variable-resolver class="org.zkoss.zkplus.spring.DelegatingVariableResolver"?>
|
||||
<?init class="org.zkoss.zkplus.databind.AnnotateDataBinderInit" arg0="winFaturarVoucher"?>
|
||||
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
|
||||
|
||||
<zk xmlns="http://www.zkoss.org/2005/zul">
|
||||
<window id="winFaturarVoucher" border="normal"
|
||||
apply="${faturarVoucherController}"
|
||||
height="500px" width="1100px" contentStyle="overflow:auto" sizable="true"
|
||||
title="${c:l('faturarVoucherController.window.title')}" >
|
||||
|
||||
<toolbar>
|
||||
<hbox spacing="5px" style="padding:1px" align="right">
|
||||
<button id="btnSalvar" height="20"
|
||||
image="/gui/img/save.png" width="35px"
|
||||
tooltiptext="${c:l('tooltiptext.btnSalvar')}" />
|
||||
<button id="btnCerrar"
|
||||
onClick="winFaturarVoucher.detach()" image="/gui/img/exit.png"
|
||||
width="35px"
|
||||
tooltiptext="${c:l('tooltiptext.btnFechar')}" />
|
||||
</hbox>
|
||||
</toolbar>
|
||||
|
||||
<grid fixedLayout="true">
|
||||
<columns>
|
||||
<column width="15%" />
|
||||
<column width="35%" />
|
||||
<column width="15%" />
|
||||
<column width="35%" />
|
||||
</columns>
|
||||
<rows>
|
||||
<row>
|
||||
<label value="${c:l('label.numFatura')}" />
|
||||
<longbox id="txtFatura" constraint="no negative" maxlength="15" width="100px" />
|
||||
|
||||
<label id="lbDataCorte" value="${c:l('label.dataCorte')}" />
|
||||
<datebox id="datCorte" width="100px"
|
||||
format="dd/MM/yyyy" maxlength="10" />
|
||||
</row>
|
||||
|
||||
</rows>
|
||||
</grid>
|
||||
|
||||
<toolbar>
|
||||
<button id="btnFaturar" height="20"
|
||||
image="/gui/img/ok.png" width="120px"
|
||||
label="${c:l('label.btnFaturar')}" />
|
||||
</toolbar>
|
||||
|
||||
<paging id="pagingFaturar" pageSize="10" />
|
||||
<listbox id="voucherList"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
||||
multiple="false">
|
||||
<listhead sizable="true">
|
||||
<listheader id="lhNumVoucher" image="/gui/img/create_doc.gif"
|
||||
label="${c:l('label.voucher')}" width="10%" />
|
||||
<listheader id="lhNumContrato" image="/gui/img/create_doc.gif"
|
||||
label="${c:l('label.numContrato')}" width="100px" />
|
||||
<listheader id="lhValidade" image="/gui/img/create_doc.gif"
|
||||
label="${c:l('label.dataValidade')}" width="100px;" />
|
||||
<listheader id="lhNumFatura" image="/gui/img/create_doc.gif"
|
||||
label="${c:l('label.numFatura')}" width="120px;" />
|
||||
<listheader id="lhDatCorte" image="/gui/img/create_doc.gif"
|
||||
label="${c:l('label.dataCorte')}" width="120px;" />
|
||||
<listheader id="lhValor" image="/gui/img/create_doc.gif"
|
||||
label="${c:l('label.valorLicitado')}" width="10%" />
|
||||
<listheader id="lhValorLegal" image="/gui/img/create_doc.gif"
|
||||
label="${c:l('label.valorLegalizado')}" width="10%" />
|
||||
<listheader id="lhOrigem" image="/gui/img/create_doc.gif"
|
||||
label="${c:l('label.origem')}" width="20%" />
|
||||
<listheader id="lhDestino" image="/gui/img/create_doc.gif"
|
||||
label="${c:l('label.destino')}" width="20%" />
|
||||
</listhead>
|
||||
</listbox>
|
||||
|
||||
</window>
|
||||
</zk>
|
|
@ -0,0 +1,108 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<?page contentType="text/html;charset=UTF-8"?>
|
||||
<?variable-resolver class="org.zkoss.zkplus.spring.DelegatingVariableResolver"?>
|
||||
<?init class="org.zkoss.zkplus.databind.AnnotateDataBinderInit" arg0="winLegalizar"?>
|
||||
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
|
||||
|
||||
<zk xmlns="http://www.zkoss.org/2005/zul">
|
||||
<window id="winLegalizar" border="normal"
|
||||
apply="${legalizacaoMassivaController}"
|
||||
height="500px" width="1000px" contentStyle="overflow:auto" sizable="true"
|
||||
title="${c:l('legalizacaoMassivaController.window.title')}" >
|
||||
|
||||
<toolbar>
|
||||
<hbox spacing="5px" style="padding:1px" align="right">
|
||||
<button id="btnCerrar"
|
||||
onClick="winLegalizar.detach()" image="/gui/img/exit.png"
|
||||
width="35px"
|
||||
tooltiptext="${c:l('tooltiptext.btnFechar')}" />
|
||||
</hbox>
|
||||
</toolbar>
|
||||
|
||||
<grid fixedLayout="true">
|
||||
<columns>
|
||||
<column width="15%" />
|
||||
<column width="35%" />
|
||||
<column width="15%" />
|
||||
<column width="35%" />
|
||||
</columns>
|
||||
<rows>
|
||||
<row>
|
||||
<label value="${c:l('label.numInicial')}" />
|
||||
<longbox id="txtNumInicial" constraint="no negative" maxlength="15" width="100px" />
|
||||
|
||||
<label value="${c:l('label.numFinal')}" />
|
||||
<longbox id="txtNumFinal" constraint="no negative" maxlength="15" width="100px" />
|
||||
</row>
|
||||
<row>
|
||||
<label value="${c:l('label.nit')}" />
|
||||
<textbox id="txtNit" maxlength="20" width="150px" />
|
||||
|
||||
<label value="${c:l('label.transportadora')}"/>
|
||||
<combobox id="cmbTransportadora" width="95%"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||
model="@{winLegalizar$composer.lsTransportadora}"
|
||||
mold="rounded" buttonVisible="true" />
|
||||
|
||||
</row>
|
||||
<row>
|
||||
<label value="${c:l('label.numContrato')}" />
|
||||
<textbox id="txtNumContrato" constraint="no negative" maxlength="15" width="100px" />
|
||||
|
||||
<label id="lbValorLegalizado" value="${c:l('label.valorLegalizado')}" />
|
||||
<decimalbox id="txtValorLegalizado"
|
||||
maxlength="12" format="0.00"
|
||||
constraint="no negative" width="100px" />
|
||||
</row>
|
||||
<row>
|
||||
<label value="${c:l('label.origem')}" />
|
||||
<combobox id="cmbOrigem" width="95%"
|
||||
autodrop="false" mold="rounded" buttonVisible="true"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada" />
|
||||
|
||||
<label value="${c:l('label.destino')}" />
|
||||
<combobox id="cmbDestino" width="95%"
|
||||
autodrop="false" mold="rounded" buttonVisible="true"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada" />
|
||||
</row>
|
||||
<row spans="4" align="center">
|
||||
<button id="btnLegalizar" height="20"
|
||||
image="/gui/img/ok.png" width="120px"
|
||||
label="${c:l('label.btnLegalizar')}" />
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
|
||||
<paging id="pagingLegalizar" pageSize="20" visible="false"/>
|
||||
<listbox id="voucherList" visible="false"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
||||
multiple="false">
|
||||
<listhead sizable="true">
|
||||
<listheader id="lhNumVoucher" image="/gui/img/create_doc.gif"
|
||||
label="${c:l('label.voucher')}" width="10%"
|
||||
sort="auto(voucherId)" />
|
||||
<listheader id="lhNumContrato" image="/gui/img/create_doc.gif"
|
||||
label="${c:l('label.numContrato')}" width="100px"
|
||||
sort="auto(numContrato)" />
|
||||
<listheader id="lhSituacao" image="/gui/img/create_doc.gif"
|
||||
label="${c:l('label.situacao')}" width="100px"
|
||||
sort="auto(status)" />
|
||||
<listheader id="lhValidade" image="/gui/img/create_doc.gif"
|
||||
label="${c:l('label.dataValidade')}"
|
||||
sort="auto(dataValidade)" width="100px;" />
|
||||
<listheader id="lhValor" image="/gui/img/create_doc.gif"
|
||||
label="${c:l('label.valorLicitado')}" width="10%"
|
||||
sort="auto(valorLicitado)" />
|
||||
<listheader id="lhValorLegal" image="/gui/img/create_doc.gif"
|
||||
label="${c:l('label.valorLegalizado')}" width="10%"
|
||||
sort="auto(valorLegalizado)" />
|
||||
<listheader id="lhRuta" image="/gui/img/create_doc.gif"
|
||||
label="${c:l('label.trecho')}" width="30%"
|
||||
sort="auto(trecho)" />
|
||||
<listheader id="lhMensagem" image="/gui/img/create_doc.gif"
|
||||
label="${c:l('label.mensagem')}" width="20%"
|
||||
sort="auto(mensagem)" />
|
||||
</listhead>
|
||||
</listbox>
|
||||
</window>
|
||||
</zk>
|
|
@ -27,78 +27,97 @@
|
|||
|
||||
<grid fixedLayout="true">
|
||||
<columns>
|
||||
<column width="30%" />
|
||||
<column width="70%" />
|
||||
<column width="35%" />
|
||||
<column width="65%" />
|
||||
</columns>
|
||||
<rows>
|
||||
<row>
|
||||
<label value="${c:l('label.classe')}"/>
|
||||
<row>
|
||||
<label value="${c:l('label.classe')}" width="50%"/>
|
||||
<combobox id="cmbClasse"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||
model="@{winEditarAliasClasse$composer.lsClasse}"
|
||||
mold="rounded" buttonVisible="true"
|
||||
constraint="no empty" width="90%"
|
||||
constraint="no empty" width="55%"
|
||||
initialValue="@{winEditarAliasClasse$composer.aliasClasse.classe}"
|
||||
selectedItem="@{winEditarAliasClasse$composer.aliasClasse.classe}" />
|
||||
|
||||
|
||||
</row>
|
||||
<row>
|
||||
<label value="${c:l('label.alias')}"/>
|
||||
|
||||
<label value="${c:l('label.alias')}"/>
|
||||
<hlayout>
|
||||
<combobox id="cmbAlias"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||
model="@{winEditarAliasClasse$composer.lsClasse}"
|
||||
mold="rounded" buttonVisible="true"
|
||||
constraint="no empty" width="90%"
|
||||
initialValue="@{winEditarAliasClasse$composer.aliasClasse.alias}"
|
||||
selectedItem="@{winEditarAliasClasse$composer.aliasClasse.alias}"/>
|
||||
selectedItem="@{winEditarAliasClasse$composer.aliasClasse.alias}"/>
|
||||
<image src="/gui/img/Question_mark_1.png" tooltiptext="${c:l('editarAliasClasseController.lbAlias.help')}" style="cursor: help" />
|
||||
</hlayout>
|
||||
</row>
|
||||
<row>
|
||||
|
||||
<label value="${c:l('label.orgaoConcedente')}" />
|
||||
<combobox id="cmbOrgaoConcedente"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||
model="@{winEditarAliasClasse$composer.lsOrgaoConcedente}"
|
||||
mold="rounded" buttonVisible="true"
|
||||
constraint="no empty" width="90%"
|
||||
constraint="no empty" width="55%"
|
||||
initialValue="@{winEditarAliasClasse$composer.aliasClasse.orgaoConcedente}"
|
||||
selectedItem="@{winEditarAliasClasse$composer.aliasClasse.orgaoConcedente}" />
|
||||
</row>
|
||||
<row spans="1,3">
|
||||
<row>
|
||||
<label
|
||||
value="${c:l('relatorioAidfDetalhadoController.lbEmpresa.value')}" />
|
||||
<combobox id="cmbEmpresa"
|
||||
buttonVisible="true"
|
||||
mold="rounded"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||
model="@{winEditarAliasClasse$composer.lsEmpresa}"
|
||||
initialValue="@{winEditarAliasClasse$composer.aliasClasse.empresa}"
|
||||
selectedItem="@{winEditarAliasClasse$composer.aliasClasse.empresa}"
|
||||
width="90%" />
|
||||
width="55%" />
|
||||
|
||||
</row>
|
||||
<row>
|
||||
<label
|
||||
value="${c:l('lb.filtro.linha')}" />
|
||||
<combobox id="cmbRuta"
|
||||
buttonVisible="true"
|
||||
mold="rounded"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||
initialValue="@{winEditarAliasClasse$composer.aliasClasse.ruta}"
|
||||
selectedItem="@{winEditarAliasClasse$composer.aliasClasse.ruta}"
|
||||
model="@{winEditarAliasClasse$composer.lsRuta}"
|
||||
width="90%" />
|
||||
width="55%" />
|
||||
|
||||
</row>
|
||||
<row>
|
||||
<label
|
||||
value="${c:l('editarAliasServicoController.tipoClasseConfortoMonitrip.classeConfortoMonitrip')}" />
|
||||
<hlayout>
|
||||
<combobox id="cmbClasseServicioConforto"
|
||||
buttonVisible="true"
|
||||
mold="rounded"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||
model="@{winEditarAliasClasse$composer.lsClasseServicoConfortoMonitrip}"
|
||||
initialValue="@{winEditarAliasClasse$composer.aliasClasse.classeConfortoMonitrip}"
|
||||
selectedItem="@{winEditarAliasClasse$composer.aliasClasse.classeConfortoMonitrip}"
|
||||
tooltiptext="${c:l('editarAliasServicoController.tooltiptext.indSomenteImpressao')}"
|
||||
width="90%" />
|
||||
<image src="/gui/img/Question_mark_1.png" tooltiptext="${c:l('editarAliasClasseController.lbClasseConforto.help')}" style="cursor: help" />
|
||||
</hlayout>
|
||||
</row>
|
||||
<row><label
|
||||
<row>
|
||||
<label
|
||||
value="${c:l('editarAliasServicoController.indSomenteImpressao')}" />
|
||||
<hlayout>
|
||||
<checkbox id="chkSomenteImpressao"
|
||||
value="@{winEditarAliasClasse$composer.aliasClasse.indSomenteImpressao}" />
|
||||
<image src="/gui/img/Question_mark_1.png" tooltiptext="${c:l('editarAliasClasseController.lbSomenteImpressao.help')}" style="cursor: help" />
|
||||
</hlayout>
|
||||
</row>
|
||||
<row>
|
||||
<label
|
||||
|
@ -106,6 +125,7 @@
|
|||
<textbox id="txtMensagem"
|
||||
maxlength="150" width="90%" rows="6"
|
||||
value="@{winEditarAliasClasse$composer.aliasClasse.mensagem}" />
|
||||
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
|
|
|
@ -33,9 +33,9 @@
|
|||
|
||||
<grid fixedLayout="true">
|
||||
<columns>
|
||||
<column width="10%" />
|
||||
<column width="15%" />
|
||||
<column width="40%" />
|
||||
<column width="50%" />
|
||||
<column width="45%" />
|
||||
</columns>
|
||||
<rows>
|
||||
<row spans="1,2">
|
||||
|
@ -60,6 +60,21 @@
|
|||
<doublebox id="txtDesconto" maxlength="7"/>
|
||||
</hlayout>
|
||||
|
||||
</row>
|
||||
|
||||
<row id="linhaBloqueio">
|
||||
<label value="${c:l('editarConexionController.bloqueioTrecho.configuracao')}" />
|
||||
|
||||
<hlayout>
|
||||
<label value="${c:l('editarConexionController.bloqueioTrecho.tempoAteSaida')}" />
|
||||
<intbox id="txtTempoAteSaida" maxlength="7"/>
|
||||
</hlayout>
|
||||
|
||||
<hlayout>
|
||||
<label value="${c:l('editarConexionController.bloqueioTrecho.porcentagemOcupacao')}" />
|
||||
<intbox id="txtPorcentagemOcupacao" maxlength="7"/>
|
||||
</hlayout>
|
||||
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
|
@ -95,6 +110,12 @@
|
|||
</row>
|
||||
<row>
|
||||
<vbox height="100%" width="100%">
|
||||
|
||||
<hbox id="rowTrechoA" style="padding:1%">
|
||||
<label value="${c:l('editarConexionController.bloqueioTrecho.bloquearTrechos')}" />
|
||||
<checkbox id="chkBloqueioTrechoA" />
|
||||
</hbox>
|
||||
|
||||
<hbox>
|
||||
<label
|
||||
value="${c:l('editarConexionPorRutaController.labelLinhaA.value')}" />
|
||||
|
@ -121,6 +142,12 @@
|
|||
</listbox>
|
||||
</vbox>
|
||||
<vbox height="100%" width="100%">
|
||||
|
||||
<hbox id="rowTrechoB" style="padding:1%">
|
||||
<label value="${c:l('editarConexionController.bloqueioTrecho.bloquearTrechos')}" />
|
||||
<checkbox id="chkBloqueioTrechoB" />
|
||||
</hbox>
|
||||
|
||||
<hbox>
|
||||
<label
|
||||
value="${c:l('editarConexionPorRutaController.labelLinhaB.value')}" />
|
||||
|
@ -147,6 +174,12 @@
|
|||
</listbox>
|
||||
</vbox>
|
||||
<vbox height="100%" width="100%">
|
||||
|
||||
<hbox id="rowTrechoC" style="padding:1%">
|
||||
<label value="${c:l('editarConexionController.bloqueioTrecho.bloquearTrechos')}" />
|
||||
<checkbox id="chkBloqueioTrechoC" />
|
||||
</hbox>
|
||||
|
||||
<hbox>
|
||||
<label
|
||||
value="${c:l('editarConexionPorRutaController.labelLinhaC.value')}" />
|
||||
|
|
|
@ -52,22 +52,6 @@
|
|||
image="/gui/img/find.png"
|
||||
label="${c:l('expressosPorCotizarBuscarController.lblDesc.label')}" />
|
||||
</toolbar>
|
||||
<!--
|
||||
<toolbar>
|
||||
<button
|
||||
id="btnVerDetalle"
|
||||
tooltiptext="Ver Detalle"
|
||||
label="${c:l('expressosPorCotizarVerDetalleController.lblDesc.label')}"/>
|
||||
<button
|
||||
id="btnCotizar"
|
||||
tooltiptext="Cotizar"
|
||||
label="${c:l('expressosPorCotizarCotizarController.lblDesc.label')}"/>
|
||||
<button
|
||||
id="btnPagoCredito"
|
||||
tooltiptext="Cotizar"
|
||||
label="${c:l('expressosPorCotizarPagoCreditoController.lblDesc.label')}"/>
|
||||
</toolbar>
|
||||
-->
|
||||
<paging id="pagingExpresos" pageSize="20" />
|
||||
<listbox id="expresosList"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
||||
|
|
|
@ -0,0 +1,97 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<?page contentType="text/html;charset=UTF-8"?>
|
||||
<?variable-resolver class="org.zkoss.zkplus.spring.DelegatingVariableResolver"?>
|
||||
<?init class="org.zkoss.zkplus.databind.AnnotateDataBinderInit" arg0="winInformeViajesOcasionalesExpresos"?>
|
||||
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
|
||||
|
||||
<zk xmlns="http://www.zkoss.org/2005/zul">
|
||||
<window id="winInformeViajesOcasionalesExpresos" title="${c:l('winInformeViajesOcasionalesExpresos.title')}"
|
||||
border="normal" height="484px" width="1200px" position="center" mode="overlapped"
|
||||
apply="${informeViajesOcasionalesExpresosController}">
|
||||
<toolbar>
|
||||
<button id="btnCerrar" onClick="winInformeViajesOcasionalesExpresos.detach()" image="/gui/img/exit.png" width="35px"
|
||||
tooltiptext="${c:l('busquedaLogAuditoriaController.btnCerrar.tooltiptext')}"/>
|
||||
</toolbar>
|
||||
|
||||
<grid fixedLayout="true">
|
||||
<columns>
|
||||
<column width="17%" />
|
||||
<column width="35%" />
|
||||
<column width="13%" />
|
||||
<column width="35%" />
|
||||
</columns>
|
||||
<rows>
|
||||
<row>
|
||||
<label
|
||||
value="${c:l('lb.dataIni.value')}" />
|
||||
<datebox id="dtInicio" width="40%" mold="rounded"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyDatebox"
|
||||
format="dd/MM/yyyy" maxlength="10" />
|
||||
<label
|
||||
value="${c:l('lb.dataFin.value')}" />
|
||||
<datebox id="dtFim" width="40%" mold="rounded"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyDatebox"
|
||||
format="dd/MM/yyyy" maxlength="10" />
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
<toolbar>
|
||||
<button id="btnPesquisa" image="/gui/img/find.png"
|
||||
label="${c:l('tooltiptext.btnPesquisa')}"/>
|
||||
<button id="btnImprimir" image="/gui/img/pdf.png"
|
||||
label="${c:l('tooltiptext.btnImprimir')}"/>
|
||||
</toolbar>
|
||||
<paging id="pagingExpresos" pageSize="20" />
|
||||
<listbox id="expresosList" use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
||||
multiple="false" height="50%" vflex="true">
|
||||
<listhead sizable="true">
|
||||
<listheader image="/gui/img/create_doc.gif"
|
||||
label="${c:l('expressosPorCotizarEmpresaController.lblDesc.label')}" width="110px"/>
|
||||
<listheader image="/gui/img/create_doc.gif"
|
||||
label="${c:l('expressosPorCotizarController.lhFechaSolicitud.label')}" width="120px"/>
|
||||
<listheader image="/gui/img/create_doc.gif"
|
||||
label="${c:l('expressosPorCotizarController.lhNumSolicitud.label')}" width="100px"/>
|
||||
<listheader image="/gui/img/create_doc.gif"
|
||||
label="${c:l('expressosPorCotizarController.lhAgenciaContrato.label')}" width="130px"/>
|
||||
<listheader image="/gui/img/create_doc.gif"
|
||||
label="${c:l('expressosPorCotizarController.lhEstado.label')}" width="110px"/>
|
||||
<listheader image="/gui/img/create_doc.gif"
|
||||
label="${c:l('expressosPorCotizarController.lhNit.label')}" width="100px"/>
|
||||
<listheader image="/gui/img/create_doc.gif"
|
||||
label="${c:l('expressosPorCotizarController.lhRazonSocial.label')}" width="130px"/>
|
||||
<listheader image="/gui/img/create_doc.gif"
|
||||
label="${c:l('expressosPorCotizarController.lhFormaPago.label')}" width="120px"/>
|
||||
<listheader image="/gui/img/create_doc.gif"
|
||||
label="${c:l('expressosPorCotizarController.lhValorTrayecto.label')}" width="120px"/>
|
||||
<listheader image="/gui/img/create_doc.gif"
|
||||
label="${c:l('auditoriaController.lhUsuario.label')}" width="120px"/>
|
||||
<listheader image="/gui/img/create_doc.gif"
|
||||
label="${c:l('expressosPorCotizarController.lhTrayecto.label')}" width="120px"/>
|
||||
<listheader image="/gui/img/create_doc.gif"
|
||||
label="${c:l('expressosPorCotizarController.lblOrigen.label')}" width="120px"/>
|
||||
<listheader image="/gui/img/create_doc.gif"
|
||||
label="${c:l('expressosPorCotizarController.lblDestino.label')}" width="120px"/>
|
||||
<listheader image="/gui/img/create_doc.gif"
|
||||
label="${c:l('expressosPorCotizarController.lblObservaciones.label')}" width="240px"/>
|
||||
<listheader image="/gui/img/create_doc.gif"
|
||||
label="${c:l('expressosPorCotizarController.lhFechaIda.label')}" width="120px"/>
|
||||
<listheader image="/gui/img/create_doc.gif"
|
||||
label="${c:l('expressosPorCotizarController.lhTipoServicio.label')}" width="120px"/>
|
||||
<listheader image="/gui/img/create_doc.gif"
|
||||
label="${c:l('expressosPorCotizarController.lhNumDespacho.label')}" width="120px"/>
|
||||
<listheader image="/gui/img/create_doc.gif"
|
||||
label="${c:l('expressosPorCotizarController.lhInterno.label')}" width="100px"/>
|
||||
<listheader image="/gui/img/create_doc.gif"
|
||||
label="${c:l('expressosPorCotizarController.lhPlacaVehiculo.label')}" width="100px"/>
|
||||
<listheader image="/gui/img/create_doc.gif"
|
||||
label="${c:l('expressosPorCotizarController.lhCantidadPasajeros.label')}" width="150px"/>
|
||||
<listheader image="/gui/img/create_doc.gif"
|
||||
label="${c:l('expressosPorCotizarController.lhValorTrayecto.label')}" width="150px"/>
|
||||
<listheader image="/gui/img/create_doc.gif"
|
||||
label="${c:l('expressosPorCotizarController.lhFechaDespacho.label')}" width="130px"/>
|
||||
<listheader image="/gui/img/create_doc.gif"
|
||||
label="${c:l('expressosPorCotizarController.lhKilometros.label')}" width="100px"/>
|
||||
</listhead>
|
||||
</listbox>
|
||||
</window>
|
||||
</zk>
|
|
@ -0,0 +1,92 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<?page contentType="text/html;charset=UTF-8"?>
|
||||
<?variable-resolver class="org.zkoss.zkplus.spring.DelegatingVariableResolver"?>
|
||||
<?init class="org.zkoss.zkplus.databind.AnnotateDataBinderInit" arg0="winLogExpresos"?>
|
||||
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
|
||||
|
||||
<zk xmlns="http://www.zkoss.org/2005/zul">
|
||||
<window id="winLogExpresos" title="${c:l('winLogExpresos.title')}"
|
||||
border="normal" height="484px" width="1095px" position="center" mode="overlapped"
|
||||
apply="${logExpresosController}">
|
||||
<toolbar>
|
||||
<button id="btnCerrar" onClick="winLogExpresos.detach()" image="/gui/img/exit.png" width="35px"
|
||||
tooltiptext="${c:l('busquedaLogAuditoriaController.btnCerrar.tooltiptext')}"/>
|
||||
</toolbar>
|
||||
|
||||
<grid fixedLayout="true">
|
||||
<columns>
|
||||
<column width="17%" />
|
||||
<column width="35%" />
|
||||
<column width="13%" />
|
||||
<column width="35%" />
|
||||
</columns>
|
||||
<rows>
|
||||
<row>
|
||||
<label
|
||||
value="${c:l('lb.dataIni.value')}" />
|
||||
<datebox id="dtInicio" width="40%" mold="rounded"
|
||||
format="dd/MM/yyyy" maxlength="10"
|
||||
constraint="no empty" />
|
||||
<label
|
||||
value="${c:l('lb.dataFin.value')}" />
|
||||
<datebox id="dtFim" width="40%" mold="rounded"
|
||||
format="dd/MM/yyyy" maxlength="10"
|
||||
constraint="no empty" />
|
||||
</row>
|
||||
<row>
|
||||
<label
|
||||
value="${c:l('busquedaLogAuditoriaController.lblCampoAlterado')}" />
|
||||
<textbox id="txtCampoAlterado"
|
||||
width="70%"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
|
||||
<label
|
||||
value="${c:l('busquedaLogAuditoriaController.lblValorNovo')}" />
|
||||
<textbox id="txtValorNovo"
|
||||
width="70%"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
|
||||
</row>
|
||||
<row>
|
||||
<label value="${c:l('indexController.mniUsuario.label')}"/>
|
||||
<textbox id="txtCveUsuario"
|
||||
width="70%"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"/>
|
||||
<label
|
||||
value="${c:l('busquedaLogAuditoriaController.lblValorAnterior')}" />
|
||||
<textbox id="txtValorAnterior"
|
||||
width="70%"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
|
||||
</row>
|
||||
<row spans="1, 3">
|
||||
<label value="${c:l('busquedaLogAuditoriaController.lblIdAuditado')}"/>
|
||||
<textbox id="txtIdAuditado"
|
||||
width="40%"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
<toolbar>
|
||||
<button id="btnPesquisa" image="/gui/img/find.png"
|
||||
label="${c:l('tooltiptext.btnPesquisa')}"/>
|
||||
</toolbar>
|
||||
<paging id="pagingLogAuditoria" pageSize="20" />
|
||||
<listbox id="logAuditoriaList" use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
||||
multiple="false" height="50%" vflex="true">
|
||||
<listhead sizable="true">
|
||||
<listheader image="/gui/img/create_doc.gif"
|
||||
label="${c:l('busquedaLogAuditoriaController.lblDtAlteracao')}" width="110px"/>
|
||||
<listheader image="/gui/img/create_doc.gif"
|
||||
label="${c:l('busquedaLogAuditoriaController.lblIdAuditado')}" width="120px"/>
|
||||
<listheader image="/gui/img/create_doc.gif"
|
||||
label="${c:l('indexController.mniUsuario.label')}" width="130px"/>
|
||||
<listheader image="/gui/img/create_doc.gif"
|
||||
label="${c:l('busquedaLogAuditoriaController.lblTipoAlteracao')}" width="110px"/>
|
||||
<listheader image="/gui/img/create_doc.gif"
|
||||
label="${c:l('busquedaLogAuditoriaController.lblCampoAlterado')}" width="120px"/>
|
||||
<listheader image="/gui/img/create_doc.gif"
|
||||
label="${c:l('busquedaLogAuditoriaController.lblValorNovo')}" width="240px"/>
|
||||
<listheader image="/gui/img/create_doc.gif"
|
||||
label="${c:l('busquedaLogAuditoriaController.lblValorAnterior')}" width="240px"/>
|
||||
</listhead>
|
||||
</listbox>
|
||||
</window>
|
||||
</zk>
|
|
@ -0,0 +1,77 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<?page contentType="text/html;charset=UTF-8"?>
|
||||
<?variable-resolver class="org.zkoss.zkplus.spring.DelegatingVariableResolver"?>
|
||||
<?init class="org.zkoss.zkplus.databind.AnnotateDataBinderInit" arg0="winSeguimientoExpresos"?>
|
||||
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
|
||||
|
||||
<zk xmlns="http://www.zkoss.org/2005/zul">
|
||||
<window id="winSeguimientoExpresos" title="${c:l('winSeguimientoExpresos.title')}"
|
||||
border="normal" height="484px" width="1200px" position="center" mode="overlapped"
|
||||
apply="${seguimientoExpresosController}">
|
||||
<toolbar>
|
||||
<button id="btnCerrar" onClick="winSeguimientoExpresos.detach()" image="/gui/img/exit.png" width="35px"
|
||||
tooltiptext="${c:l('busquedaLogAuditoriaController.btnCerrar.tooltiptext')}"/>
|
||||
</toolbar>
|
||||
|
||||
<grid fixedLayout="true">
|
||||
<columns>
|
||||
<column width="17%" />
|
||||
<column width="35%" />
|
||||
<column width="13%" />
|
||||
<column width="35%" />
|
||||
</columns>
|
||||
<rows>
|
||||
<row>
|
||||
<label
|
||||
value="${c:l('lb.dataIni.value')}" />
|
||||
<datebox id="dtInicio" width="40%" mold="rounded"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyDatebox"
|
||||
format="dd/MM/yyyy" maxlength="10" />
|
||||
<label
|
||||
value="${c:l('lb.dataFin.value')}" />
|
||||
<datebox id="dtFim" width="40%" mold="rounded"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyDatebox"
|
||||
format="dd/MM/yyyy" maxlength="10" />
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
<toolbar>
|
||||
<button id="btnPesquisa" image="/gui/img/find.png"
|
||||
label="${c:l('tooltiptext.btnPesquisa')}"/>
|
||||
<button id="btnImprimir" image="/gui/img/pdf.png"
|
||||
label="${c:l('tooltiptext.btnImprimir')}"/>
|
||||
</toolbar>
|
||||
<paging id="pagingExpresos" pageSize="20" />
|
||||
<listbox id="expresosList" use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
||||
multiple="false" height="50%" vflex="true">
|
||||
<listhead sizable="true">
|
||||
<listheader image="/gui/img/create_doc.gif"
|
||||
label="${c:l('expressosPorCotizarController.lhNumSolicitud.label')}" width="100px"/>
|
||||
<listheader image="/gui/img/create_doc.gif"
|
||||
label="${c:l('expressosPorCotizarController.lhFechaSolicitud.label')}" width="120px"/>
|
||||
<listheader image="/gui/img/create_doc.gif"
|
||||
label="${c:l('expressosPorCotizarController.lhRuta.label')}" width="120px"/>
|
||||
<listheader image="/gui/img/create_doc.gif"
|
||||
label="${c:l('expressosPorCotizarController.lhIdaRegreso.label')}" width="120px"/>
|
||||
<listheader image="/gui/img/create_doc.gif"
|
||||
label="${c:l('expressosPorCotizarController.lhFechaIda.label')}" width="120px"/>
|
||||
<listheader image="/gui/img/create_doc.gif"
|
||||
label="${c:l('expressosPorCotizarController.lhFechaRegreso.label')}" width="120px"/>
|
||||
<listheader image="/gui/img/create_doc.gif"
|
||||
label="${c:l('expressosPorCotizarController.lhSitioRecogidaIda.label')}" width="120px"/>
|
||||
<listheader image="/gui/img/create_doc.gif"
|
||||
label="${c:l('expressosPorCotizarController.lhSitioRecogidaRegreso.label')}" width="120px"/>
|
||||
<listheader image="/gui/img/create_doc.gif"
|
||||
label="${c:l('expressosPorCotizarController.lhPlacaVehiculo.label')}" width="120px"/>
|
||||
<listheader image="/gui/img/create_doc.gif"
|
||||
label="${c:l('expressosPorCotizarController.lhEstado.label')}" width="120px"/>
|
||||
<listheader image="/gui/img/create_doc.gif"
|
||||
label="${c:l('expresosController.lh.contratoAdjunto')}" width="130px"/>
|
||||
<listheader image="/gui/img/create_doc.gif"
|
||||
label="${c:l('expresosController.lh.fuecAdjunto')}" width="130px"/>
|
||||
<listheader image="/gui/img/create_doc.gif"
|
||||
label="${c:l('expresosController.lh.listaPasajerosAdjunto')}" width="130px"/>
|
||||
</listhead>
|
||||
</listbox>
|
||||
</window>
|
||||
</zk>
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue