Fixes bug #AL-4506
commit
fa4620f47d
8
pom.xml
8
pom.xml
|
@ -4,14 +4,12 @@
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>br.com.rjconsultores</groupId>
|
<groupId>br.com.rjconsultores</groupId>
|
||||||
<artifactId>ventaboletosadm</artifactId>
|
<artifactId>ventaboletosadm</artifactId>
|
||||||
<version>1.131.1</version>
|
<version>1.131.7</version>
|
||||||
|
|
||||||
<packaging>war</packaging>
|
<packaging>war</packaging>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<modelWeb.version>1.101.0</modelWeb.version>
|
<modelWeb.version>1.102.0</modelWeb.version>
|
||||||
<flyway.version>1.88.0</flyway.version>
|
<flyway.version>1.89.0</flyway.version>
|
||||||
|
|
||||||
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
|
|
|
@ -49,19 +49,13 @@ public class RelatorioEstoque extends Relatorio {
|
||||||
String sql = retornarItensConsultaPorPuloFolio(puntoVentaId,empresaId, dtInicio, dtFim, aidfTipoId, aidfId);
|
String sql = retornarItensConsultaPorPuloFolio(puntoVentaId,empresaId, dtInicio, dtFim, aidfTipoId, aidfId);
|
||||||
NamedParameterStatement stmt = new NamedParameterStatement(conexao, sql);
|
NamedParameterStatement stmt = new NamedParameterStatement(conexao, sql);
|
||||||
|
|
||||||
if(dtInicio != null && dtFim != null) {
|
// if(dtInicio != null && dtFim != null) {
|
||||||
stmt.setString("dataInicio", DateUtil.getStringDate(dtInicio, "dd/MM/yyyy") + " 00:00:00");
|
// 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) {
|
// }else if(dtInicio != null) {
|
||||||
stmt.setString("dataInicio", DateUtil.getStringDate(dtInicio, "dd/MM/yyyy") + " 00:00:00");
|
// 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) {
|
if(aidfTipoId != null) {
|
||||||
stmt.setInt("aidfTipo",aidfTipoId);
|
stmt.setInt("aidfTipo",aidfTipoId);
|
||||||
|
@ -109,8 +103,8 @@ public class RelatorioEstoque extends Relatorio {
|
||||||
stmt2.setString("dataInicio", DateUtil.getStringDate(dtInicio, "dd/MM/yyyy") + " 00:00:00");
|
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("dataInicioVenda", DateUtil.getStringDate(c.getTime(), "dd/MM/yyyy") + " 23:59:59");
|
||||||
stmt2.setString("dataFimVenda", DateUtil.getStringDate(new Date(), "dd/MM/yyyy") + " 23:59:59");
|
// stmt2.setString("dataFimVenda", DateUtil.getStringDate(new Date(), "dd/MM/yyyy") + " 23:59:59");
|
||||||
|
|
||||||
if(aidfTipoId != null) {
|
if(aidfTipoId != null) {
|
||||||
stmt2.setInt("aidfTipo",aidfTipoId);
|
stmt2.setInt("aidfTipo",aidfTipoId);
|
||||||
|
@ -153,6 +147,7 @@ public class RelatorioEstoque extends Relatorio {
|
||||||
List<ItemReporteControleEstoqueBoletos> lsTempRetorno = new ArrayList<>();
|
List<ItemReporteControleEstoqueBoletos> lsTempRetorno = new ArrayList<>();
|
||||||
List<ItemReporteControleEstoqueBoletos> lsTempRetornoAux = new ArrayList<>();
|
List<ItemReporteControleEstoqueBoletos> lsTempRetornoAux = new ArrayList<>();
|
||||||
lsEstoquePorSalto = validarFolioPreImpressoPuntoventa(lsEstoquePorSalto, puntoVentaId);
|
lsEstoquePorSalto = validarFolioPreImpressoPuntoventa(lsEstoquePorSalto, puntoVentaId);
|
||||||
|
lsEstoquePorSalto = validarFolioPreImpressoFechorAquicision(lsEstoquePorSalto, dtInicio,dtFim);
|
||||||
for (ItemReporteControleEstoqueBoletos i : lsEstoquePorSalto) {
|
for (ItemReporteControleEstoqueBoletos i : lsEstoquePorSalto) {
|
||||||
if(map.get(i.getID()) == null) {
|
if(map.get(i.getID()) == null) {
|
||||||
for (ItemReporteControleEstoqueBoletos item : lsEstoquePorSalto) {
|
for (ItemReporteControleEstoqueBoletos item : lsEstoquePorSalto) {
|
||||||
|
@ -277,12 +272,12 @@ public class RelatorioEstoque extends Relatorio {
|
||||||
sb.append(" AND Em.empresa_ID = ")
|
sb.append(" AND Em.empresa_ID = ")
|
||||||
.append(empresaId);
|
.append(empresaId);
|
||||||
}
|
}
|
||||||
if(dataInicio!= null && dataFim != null) {
|
// 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) {
|
// }else if(dataInicio!= null) {
|
||||||
sb.append(" AND AI.fecadquisicion >= TO_DATE(:dataInicio,'dd/mm/yyyy hh24:mi:ss') ");
|
// sb.append(" AND AI.fecadquisicion >= TO_DATE(:dataInicio,'dd/mm/yyyy hh24:mi:ss') ");
|
||||||
}
|
// }
|
||||||
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 CJ.fechorventa BETWEEN (SELECT MIN(C.fechorventa) FROM CAJA c ) AND (select MAX(c.fechorventa) FROM CAJA c) ");
|
||||||
sb.append(" AND DAB.NUMFOLIOFINAL < 2147483647 ");
|
sb.append(" AND DAB.NUMFOLIOFINAL < 2147483647 ");
|
||||||
sb.append(" AND DAB.STATUSOPERACION IN(0, ");
|
sb.append(" AND DAB.STATUSOPERACION IN(0, ");
|
||||||
sb.append(" 1, ");
|
sb.append(" 1, ");
|
||||||
|
@ -361,12 +356,12 @@ public class RelatorioEstoque extends Relatorio {
|
||||||
sb.append(" AND Em.empresa_ID = ")
|
sb.append(" AND Em.empresa_ID = ")
|
||||||
.append(empresaId);
|
.append(empresaId);
|
||||||
}
|
}
|
||||||
if(dataInicio!= null && dataFim != null) {
|
// 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) {
|
// }else if(dataInicio!= null) {
|
||||||
sb.append(" AND AI.fecadquisicion >= TO_DATE(:dataInicio,'dd/mm/yyyy hh24:mi:ss') ");
|
// 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 CJ.FECHORVTA BETWEEN (SELECT MIN(CD.FECHORVTA) FROM CAJA_DIVERSOS CD) AND (select MAX(CD.FECHORVTA) FROM CAJA_DIVERSOS CD) ");
|
||||||
sb.append(" AND DAB.NUMFOLIOFINAL < 2147483647 ");
|
sb.append(" AND DAB.NUMFOLIOFINAL < 2147483647 ");
|
||||||
sb.append(" AND DAB.STATUSOPERACION IN(0, ");
|
sb.append(" AND DAB.STATUSOPERACION IN(0, ");
|
||||||
sb.append(" 1, ");
|
sb.append(" 1, ");
|
||||||
|
@ -380,7 +375,7 @@ public class RelatorioEstoque extends Relatorio {
|
||||||
sb.append(" AND DAB.ACTIVO = 1 ");
|
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(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(" 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(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(" GROUP BY DAB.AIDF_ID, ");
|
||||||
sb.append(" DAB.NUMSERIEPREIMPRESA, ");
|
sb.append(" DAB.NUMSERIEPREIMPRESA, ");
|
||||||
|
@ -463,21 +458,20 @@ public class RelatorioEstoque extends Relatorio {
|
||||||
.append("LEFT JOIN aidf_tipo ait ON ait.AIDFTIPO_ID= ai.AIDFTIPO_ID ")
|
.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 ESTADO est ON est.ESTADO_ID = ai.ESTADO_ID ")
|
||||||
.append("LEFT JOIN ESTACION ES ON es.ESTACION_ID = ab.ESTACION_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("LEFT JOIN CAJA_DIVERSOS CJ ON CJ.AIDF_ID = dab.AIDF_ID ")
|
||||||
|
// .append("LEFT JOIN CAJA CC ON (TO_NUMBER(CC.NUMFOLIOPREIMPRESO) BETWEEN TO_NUMBER(DAB.NUMFOLIOINICIAL) AND TO_NUMBER(DAB.NUMFOLIOFINAL) AND (CC.NUMSERIEPREIMPRESA = dab.NUMSERIEPREIMPRESA OR (CC.NUMSERIEPREIMPRESA IS NULL AND dab.NUMSERIEPREIMPRESA IS NULL))) ")
|
||||||
.append("WHERE dab.STATUSOPERACION IN(0,1,4) ")
|
.append("WHERE dab.STATUSOPERACION IN(0,1,4) ")
|
||||||
.append("AND dab.ACTIVO = 1 ")
|
.append("AND dab.ACTIVO = 1 ")
|
||||||
.append(" and dab.NUMFOLIOFINAL < 2147483647 ")
|
.append(" and dab.NUMFOLIOFINAL < 2147483647 ")
|
||||||
.append(" AND DAB.AIDF_ID = AI.AIDF_ID and ai.activo = 1 ")
|
.append(" AND DAB.AIDF_ID = AI.AIDF_ID and ai.activo = 1 ")
|
||||||
.append(aidfTipo != null ? " AND AI.AIDFTIPO_ID = :aidfTipo " : " ")
|
.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 TO_NUMBER(CJ.NUMFOLIOPREIMPRESO) BETWEEN TO_NUMBER(DAB.NUMFOLIOINICIAL) AND TO_NUMBER(DAB.NUMFOLIOFINAL) ")
|
||||||
.append(" AND (cj.NUMSERIEPREIMPRESA = dab.NUMSERIEPREIMPRESA ")
|
// .append(" AND (cj.NUMSERIEPREIMPRESA = dab.NUMSERIEPREIMPRESA ")
|
||||||
.append(" OR (cj.NUMSERIEPREIMPRESA IS NULL ")
|
// .append(" OR (cj.NUMSERIEPREIMPRESA IS NULL ")
|
||||||
.append("AND dab.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') ");
|
// .append(" AND (CJ.FECHORVTA BETWEEN (SELECT MIN(C.FECHORVTA) FROM CAJA_DIVERSOS c ) AND (select MAX(c.FECHORVTA) FROM CAJA_DIVERSOS c) ")
|
||||||
|
// .append(" OR CC.FECHORVENTA BETWEEN (SELECT MIN(C.fechorventa) FROM CAJA c ) AND (select MAX(c.fechorventa) FROM CAJA c)) ");
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (puntoVentaId != null) {
|
if (puntoVentaId != null) {
|
||||||
|
@ -649,4 +643,17 @@ public class RelatorioEstoque extends Relatorio {
|
||||||
return lsEstoquePorSaltoaux;
|
return lsEstoquePorSaltoaux;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private List<ItemReporteControleEstoqueBoletos> validarFolioPreImpressoFechorAquicision(List<ItemReporteControleEstoqueBoletos> lsEstoquePorSalto,Date dataInicial, Date dataFinal) {
|
||||||
|
|
||||||
|
List<ItemReporteControleEstoqueBoletos> lsEstoquePorSaltoaux = new ArrayList<>(lsEstoquePorSalto);
|
||||||
|
|
||||||
|
for (ItemReporteControleEstoqueBoletos itemReporteControleEstoqueBoletos : lsEstoquePorSalto) {
|
||||||
|
if(!(DateUtil.isIgualORMaior(itemReporteControleEstoqueBoletos.getFechorAquisicion(), dataInicial) && DateUtil.isIgualORMenor(itemReporteControleEstoqueBoletos.getFechorAquisicion(), dataFinal))) {
|
||||||
|
lsEstoquePorSaltoaux.remove(itemReporteControleEstoqueBoletos);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
return lsEstoquePorSaltoaux;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,343 @@
|
||||||
|
package com.rjconsultores.ventaboletos.relatorios.impl;
|
||||||
|
|
||||||
|
import java.io.ByteArrayOutputStream;
|
||||||
|
import java.io.File;
|
||||||
|
import java.io.IOException;
|
||||||
|
import java.sql.Connection;
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.Iterator;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
import org.apache.logging.log4j.Logger;
|
||||||
|
|
||||||
|
import org.zkoss.zul.Filedownload;
|
||||||
|
import org.zkoss.zul.Listcell;
|
||||||
|
import org.zkoss.zul.Listhead;
|
||||||
|
import org.zkoss.zul.Listheader;
|
||||||
|
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.DispositivoEmbarcada;
|
||||||
|
import com.rjconsultores.ventaboletos.relatorios.utilitarios.DataSource;
|
||||||
|
import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio;
|
||||||
|
import com.rjconsultores.ventaboletos.relatorios.utilitarios.RelatorioDispositivoEmbarcadaBean;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.MyListbox;
|
||||||
|
|
||||||
|
import net.sf.jasperreports.engine.JRDataSource;
|
||||||
|
import net.sf.jasperreports.engine.JRException;
|
||||||
|
import net.sf.jasperreports.engine.JRField;
|
||||||
|
import net.sf.jasperreports.engine.JRLineBox;
|
||||||
|
import net.sf.jasperreports.engine.JasperCompileManager;
|
||||||
|
import net.sf.jasperreports.engine.JasperExportManager;
|
||||||
|
import net.sf.jasperreports.engine.JasperFillManager;
|
||||||
|
import net.sf.jasperreports.engine.JasperPrint;
|
||||||
|
import net.sf.jasperreports.engine.JasperReport;
|
||||||
|
import net.sf.jasperreports.engine.data.JRBeanCollectionDataSource;
|
||||||
|
import net.sf.jasperreports.engine.data.JRMapCollectionDataSource;
|
||||||
|
import net.sf.jasperreports.engine.design.JRDesignBand;
|
||||||
|
import net.sf.jasperreports.engine.design.JRDesignConditionalStyle;
|
||||||
|
import net.sf.jasperreports.engine.design.JRDesignExpression;
|
||||||
|
import net.sf.jasperreports.engine.design.JRDesignField;
|
||||||
|
import net.sf.jasperreports.engine.design.JRDesignLine;
|
||||||
|
import net.sf.jasperreports.engine.design.JRDesignSection;
|
||||||
|
import net.sf.jasperreports.engine.design.JRDesignStaticText;
|
||||||
|
import net.sf.jasperreports.engine.design.JRDesignStyle;
|
||||||
|
import net.sf.jasperreports.engine.design.JRDesignTextField;
|
||||||
|
import net.sf.jasperreports.engine.design.JRDesignVariable;
|
||||||
|
import net.sf.jasperreports.engine.design.JasperDesign;
|
||||||
|
import net.sf.jasperreports.engine.export.JExcelApiExporter;
|
||||||
|
import net.sf.jasperreports.engine.export.JExcelApiExporterParameter;
|
||||||
|
import net.sf.jasperreports.engine.export.JRPdfExporter;
|
||||||
|
import net.sf.jasperreports.engine.export.JRPdfExporterParameter;
|
||||||
|
import net.sf.jasperreports.engine.export.JRXlsExporterParameter;
|
||||||
|
import net.sf.jasperreports.engine.export.ooxml.JRXlsxExporter;
|
||||||
|
import net.sf.jasperreports.engine.type.HorizontalAlignEnum;
|
||||||
|
import net.sf.jasperreports.engine.type.VerticalAlignEnum;
|
||||||
|
import net.sf.jasperreports.engine.type.WhenNoDataTypeEnum;
|
||||||
|
|
||||||
|
public class RelatorioInformeViajesOcasionalesPdf {
|
||||||
|
|
||||||
|
// private static Logger log = LogManager.getLogger(RelatorioDispositivoEmbarcada.class);
|
||||||
|
public MyListbox viajeExpresosList;
|
||||||
|
|
||||||
|
public RelatorioInformeViajesOcasionalesPdf(final MyListbox expresosList) throws Exception {
|
||||||
|
this.viajeExpresosList = expresosList;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public File generateReport(boolean isPdf) throws JRException, IOException {
|
||||||
|
|
||||||
|
System.setProperty("jasper.reports.compile.class.path", System.getProperty("java.io.tmpdir"));
|
||||||
|
|
||||||
|
JasperDesign jasperDesign = createDesign();
|
||||||
|
JasperReport jasperReport = JasperCompileManager
|
||||||
|
.compileReport(jasperDesign);
|
||||||
|
|
||||||
|
File file = null;
|
||||||
|
|
||||||
|
JRDataSource jrDataSource = prepareDataSource();
|
||||||
|
Map<String, Object> params = new HashMap<String, Object>();
|
||||||
|
|
||||||
|
JasperPrint jasperPrint = JasperFillManager.fillReport(jasperReport,
|
||||||
|
params, jrDataSource);
|
||||||
|
|
||||||
|
if (isPdf) {
|
||||||
|
file = File.createTempFile("pdf", ".pdf");
|
||||||
|
|
||||||
|
if (!file.exists()) {
|
||||||
|
file.mkdir();
|
||||||
|
file.setWritable(true);
|
||||||
|
}
|
||||||
|
|
||||||
|
JRPdfExporter exporter = new JRPdfExporter();
|
||||||
|
exporter.setParameter(JRPdfExporterParameter.JASPER_PRINT, jasperPrint);
|
||||||
|
exporter.setParameter(JRPdfExporterParameter.OUTPUT_FILE_NAME, file.getPath());
|
||||||
|
exporter.exportReport();
|
||||||
|
} else {
|
||||||
|
file = File.createTempFile("xlsx", ".xlsx");
|
||||||
|
|
||||||
|
if (!file.exists()) {
|
||||||
|
file.mkdir();
|
||||||
|
file.setWritable(true);
|
||||||
|
}
|
||||||
|
|
||||||
|
JRXlsxExporter exporter = new JRXlsxExporter();
|
||||||
|
exporter.setParameter(JRXlsExporterParameter.JASPER_PRINT, jasperPrint);
|
||||||
|
exporter.setParameter(JRXlsExporterParameter.OUTPUT_FILE_NAME, file.getPath());
|
||||||
|
exporter.exportReport();
|
||||||
|
}
|
||||||
|
return file;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public byte[] generateReportRender(boolean isPdf) throws Exception {
|
||||||
|
|
||||||
|
System.setProperty("jasper.reports.compile.class.path", System.getProperty("java.io.tmpdir"));
|
||||||
|
System.setProperty("net.sf.jasperreports.compiler.temp.dir", System.getProperty("java.io.tmpdir"));
|
||||||
|
|
||||||
|
JasperDesign jasperDesign = createDesign();
|
||||||
|
JasperReport jasperReport = JasperCompileManager
|
||||||
|
.compileReport(jasperDesign);
|
||||||
|
|
||||||
|
byte[] conteudo = null;
|
||||||
|
|
||||||
|
JRDataSource jrDataSource = prepareDataSource();
|
||||||
|
Map<String, Object> params = new HashMap<String, Object>();
|
||||||
|
|
||||||
|
JasperPrint jasperPrint = JasperFillManager.fillReport(jasperReport,
|
||||||
|
params, jrDataSource);
|
||||||
|
|
||||||
|
if (isPdf) {
|
||||||
|
conteudo = this.renderPdf(jasperPrint);
|
||||||
|
} else {
|
||||||
|
conteudo = this.renderXls(false, jasperPrint);
|
||||||
|
}
|
||||||
|
return conteudo;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
private JRDataSource prepareDataSource() {
|
||||||
|
List<Map<String, ?>> preparedData = new ArrayList<Map<String, ?>>();
|
||||||
|
Map<String, Object> map;
|
||||||
|
map = new HashMap<String, Object>();
|
||||||
|
Boolean isValid = viajeExpresosList.getPaginal() != null;
|
||||||
|
Integer paginaActual = isValid ? viajeExpresosList.getPaginal().getActivePage() : null;
|
||||||
|
|
||||||
|
if (isValid) {
|
||||||
|
for (int i = 0; i < viajeExpresosList.getPaginal().getPageCount(); i++) {
|
||||||
|
viajeExpresosList.getPaginal().setActivePage(i);
|
||||||
|
viajeExpresosList.renderAll();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
for (Integer i = 0; i < viajeExpresosList.getSize(); i++) {
|
||||||
|
List list = viajeExpresosList.getItemAtIndex(i).getChildren();
|
||||||
|
|
||||||
|
map = new HashMap<String, Object>();
|
||||||
|
for (Integer j = 0; j < list.size(); j++) {
|
||||||
|
Listcell linha = (Listcell) list.get(j);
|
||||||
|
map.put(j.toString(),linha.getLabel());
|
||||||
|
}
|
||||||
|
preparedData.add(map);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (isValid && paginaActual != null) {
|
||||||
|
viajeExpresosList.getPaginal().setActivePage(paginaActual);
|
||||||
|
}
|
||||||
|
|
||||||
|
return new JRMapCollectionDataSource(preparedData);
|
||||||
|
}
|
||||||
|
|
||||||
|
public JasperDesign createDesign() throws JRException {
|
||||||
|
|
||||||
|
JRDesignStaticText staticText = null;
|
||||||
|
|
||||||
|
JRDesignTextField textField = null;
|
||||||
|
|
||||||
|
JRDesignBand band = null;
|
||||||
|
|
||||||
|
JRDesignExpression expression = null;
|
||||||
|
|
||||||
|
@SuppressWarnings("unused")
|
||||||
|
JRDesignLine line = null;
|
||||||
|
|
||||||
|
JRDesignField field = null;
|
||||||
|
|
||||||
|
@SuppressWarnings("unused")
|
||||||
|
JRDesignConditionalStyle conditionalStyle = null;
|
||||||
|
|
||||||
|
JRLineBox lineBox = null;
|
||||||
|
|
||||||
|
JRDesignVariable variable = null;
|
||||||
|
|
||||||
|
int x;
|
||||||
|
int y;
|
||||||
|
final int ROW_HEIGHT = 15;
|
||||||
|
final int COLUMN_WIDTH = 90;
|
||||||
|
|
||||||
|
JasperDesign jasperDesign = new JasperDesign();
|
||||||
|
jasperDesign.setName("Aba 1");
|
||||||
|
jasperDesign.setPageWidth(1200);
|
||||||
|
jasperDesign.setPageHeight(800);
|
||||||
|
jasperDesign.setColumnWidth(COLUMN_WIDTH);
|
||||||
|
jasperDesign.setColumnSpacing(0);
|
||||||
|
jasperDesign.setLeftMargin(40);
|
||||||
|
jasperDesign.setRightMargin(40);
|
||||||
|
jasperDesign.setTopMargin(40);
|
||||||
|
jasperDesign.setBottomMargin(40);
|
||||||
|
jasperDesign.setIgnorePagination(true);
|
||||||
|
jasperDesign.setWhenNoDataType(WhenNoDataTypeEnum.ALL_SECTIONS_NO_DETAIL);
|
||||||
|
|
||||||
|
JRDesignStyle normalStyle = new JRDesignStyle();
|
||||||
|
normalStyle.setName("normal");
|
||||||
|
normalStyle.setDefault(true);
|
||||||
|
normalStyle.setFontName("SansSerif");
|
||||||
|
normalStyle.setFontSize((int) 7.5f);
|
||||||
|
lineBox = normalStyle.getLineBox();
|
||||||
|
lineBox.getTopPen().setLineWidth(0.5f);
|
||||||
|
lineBox.getRightPen().setLineWidth(0.5f);
|
||||||
|
lineBox.getBottomPen().setLineWidth(0.5f);
|
||||||
|
lineBox.getLeftPen().setLineWidth(0.5f);
|
||||||
|
jasperDesign.addStyle(normalStyle);
|
||||||
|
|
||||||
|
JRDesignStyle headerStyle = new JRDesignStyle();
|
||||||
|
headerStyle.setName("header");
|
||||||
|
headerStyle.setDefault(true);
|
||||||
|
headerStyle.setFontName("SansSerif");
|
||||||
|
headerStyle.setFontSize((int) 8.5f);
|
||||||
|
headerStyle.setBold(true);
|
||||||
|
lineBox = headerStyle.getLineBox();
|
||||||
|
lineBox.getTopPen().setLineWidth(0.5f);
|
||||||
|
lineBox.getRightPen().setLineWidth(0.5f);
|
||||||
|
lineBox.getBottomPen().setLineWidth(0.5f);
|
||||||
|
lineBox.getLeftPen().setLineWidth(0.5f);
|
||||||
|
jasperDesign.addStyle(headerStyle);
|
||||||
|
|
||||||
|
for (Integer i = 0; i < viajeExpresosList.getItemAtIndex(0).getChildren().size(); i++) {
|
||||||
|
field = new JRDesignField();
|
||||||
|
field.setName(i.toString());
|
||||||
|
field.setValueClass(java.lang.String.class);
|
||||||
|
jasperDesign.addField(field);
|
||||||
|
}
|
||||||
|
|
||||||
|
band = new JRDesignBand();
|
||||||
|
|
||||||
|
jasperDesign.setTitle(band);
|
||||||
|
|
||||||
|
x = 0;
|
||||||
|
y = 0;
|
||||||
|
band = new JRDesignBand();
|
||||||
|
band.setHeight(ROW_HEIGHT);
|
||||||
|
|
||||||
|
Listhead listHead = (Listhead) viajeExpresosList.getHeads().iterator().next();
|
||||||
|
for (Iterator iterator = listHead.getChildren().iterator(); iterator.hasNext();) {
|
||||||
|
Listheader child = (Listheader) iterator.next();
|
||||||
|
staticText = montaHeader(x, y, ROW_HEIGHT, COLUMN_WIDTH, headerStyle, child.getLabel());
|
||||||
|
staticText.setVerticalAlignment(VerticalAlignEnum.JUSTIFIED);
|
||||||
|
band.addElement(staticText);
|
||||||
|
x += staticText.getWidth();
|
||||||
|
}
|
||||||
|
|
||||||
|
jasperDesign.setColumnHeader(band);
|
||||||
|
|
||||||
|
|
||||||
|
band = new JRDesignBand();
|
||||||
|
band.setHeight(ROW_HEIGHT);
|
||||||
|
x = 0;
|
||||||
|
y = 0;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
for (Integer i = 0; i < viajeExpresosList.getItemAtIndex(0).getChildren().size(); i++) {
|
||||||
|
|
||||||
|
textField = new JRDesignTextField();
|
||||||
|
textField.setX(x);
|
||||||
|
textField.setY(y);
|
||||||
|
textField.setWidth(COLUMN_WIDTH);
|
||||||
|
textField.setHeight(ROW_HEIGHT);
|
||||||
|
textField.setStretchWithOverflow(true);
|
||||||
|
textField.setHorizontalAlignment(HorizontalAlignEnum.CENTER);
|
||||||
|
textField.setVerticalAlignment(VerticalAlignEnum.MIDDLE);
|
||||||
|
expression = new JRDesignExpression();
|
||||||
|
expression.setText("$F{" + i.toString() + "}");
|
||||||
|
textField.setExpression(expression);
|
||||||
|
textField.setStyle(normalStyle);
|
||||||
|
band.addElement(textField);
|
||||||
|
x += textField.getWidth();
|
||||||
|
}
|
||||||
|
|
||||||
|
((JRDesignSection) jasperDesign.getDetailSection()).addBand(band);
|
||||||
|
|
||||||
|
band = new JRDesignBand();
|
||||||
|
jasperDesign.setColumnFooter(band);
|
||||||
|
|
||||||
|
band = new JRDesignBand();
|
||||||
|
jasperDesign.setPageFooter(band);
|
||||||
|
|
||||||
|
return jasperDesign;
|
||||||
|
}
|
||||||
|
|
||||||
|
private static JRDesignStaticText montaHeader(int x, int y, final int ROW_HEIGHT, final int COLUMN_WIDTH, JRDesignStyle headerStyle, String nomeColuna) {
|
||||||
|
JRDesignStaticText staticText;
|
||||||
|
staticText = new JRDesignStaticText();
|
||||||
|
staticText.setX(x);
|
||||||
|
staticText.setY(y);
|
||||||
|
staticText.setWidth(COLUMN_WIDTH);
|
||||||
|
staticText.setHeight(ROW_HEIGHT);
|
||||||
|
staticText.setHorizontalAlignment(HorizontalAlignEnum.CENTER);
|
||||||
|
staticText.setStyle(headerStyle);
|
||||||
|
staticText.setText(nomeColuna);
|
||||||
|
return staticText;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
private byte[] renderXls(boolean isCustomXls, JasperPrint jasperPrint) throws Exception {
|
||||||
|
JExcelApiExporter exporterXLS = new JExcelApiExporter();
|
||||||
|
ByteArrayOutputStream output = new ByteArrayOutputStream();
|
||||||
|
|
||||||
|
// As duas propriedades são para quando o arquivo xls chegar no máximo de linhas pular para a próxima aba do arquivo mantis #11294
|
||||||
|
exporterXLS.setParameter(JExcelApiExporterParameter.IS_ONE_PAGE_PER_SHEET, Boolean.TRUE);
|
||||||
|
exporterXLS.setParameter(JExcelApiExporterParameter.MAXIMUM_ROWS_PER_SHEET, 65500);
|
||||||
|
|
||||||
|
exporterXLS.setParameter(JExcelApiExporterParameter.JASPER_PRINT, jasperPrint);
|
||||||
|
exporterXLS.setParameter(JExcelApiExporterParameter.OUTPUT_STREAM, output);
|
||||||
|
|
||||||
|
if (!isCustomXls) {
|
||||||
|
exporterXLS.setParameter(JExcelApiExporterParameter.IS_ONE_PAGE_PER_SHEET, Boolean.FALSE);
|
||||||
|
exporterXLS.setParameter(JExcelApiExporterParameter.IS_DETECT_CELL_TYPE, Boolean.TRUE);
|
||||||
|
exporterXLS.setParameter(JExcelApiExporterParameter.IS_WHITE_PAGE_BACKGROUND, Boolean.FALSE);
|
||||||
|
exporterXLS.setParameter(JExcelApiExporterParameter.IS_REMOVE_EMPTY_SPACE_BETWEEN_ROWS, Boolean.TRUE);
|
||||||
|
exporterXLS.setParameter(JExcelApiExporterParameter.IS_REMOVE_EMPTY_SPACE_BETWEEN_COLUMNS, Boolean.TRUE);
|
||||||
|
}
|
||||||
|
|
||||||
|
// collapseRowSpan
|
||||||
|
// JRXlsExporterParameter.
|
||||||
|
exporterXLS.exportReport();
|
||||||
|
return output.toByteArray();
|
||||||
|
}
|
||||||
|
|
||||||
|
private byte[] renderPdf(JasperPrint jasperPrint) throws Exception {
|
||||||
|
return JasperExportManager.exportReportToPdf(jasperPrint);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -1,34 +1,38 @@
|
||||||
package com.rjconsultores.ventaboletos.web.gui.controladores.expressos;
|
package com.rjconsultores.ventaboletos.web.gui.controladores.expressos;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.io.ByteArrayInputStream;
|
||||||
|
import java.io.InputStream;
|
||||||
|
import java.sql.SQLException;
|
||||||
|
import java.text.SimpleDateFormat;
|
||||||
|
import java.util.Calendar;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.context.annotation.Scope;
|
import org.springframework.context.annotation.Scope;
|
||||||
import org.springframework.stereotype.Controller;
|
import org.springframework.stereotype.Controller;
|
||||||
|
import org.zkoss.util.media.AMedia;
|
||||||
import org.zkoss.util.resource.Labels;
|
import org.zkoss.util.resource.Labels;
|
||||||
import org.zkoss.zk.ui.Component;
|
import org.zkoss.zk.ui.Component;
|
||||||
import org.zkoss.zk.ui.event.Event;
|
import org.zkoss.zk.ui.event.Event;
|
||||||
|
import org.zkoss.zul.Filedownload;
|
||||||
import org.zkoss.zul.Messagebox;
|
import org.zkoss.zul.Messagebox;
|
||||||
import org.zkoss.zul.Paging;
|
import org.zkoss.zul.Paging;
|
||||||
|
|
||||||
import com.rjconsultores.ventaboletos.entidad.SolicitudExpreso;
|
|
||||||
import com.rjconsultores.ventaboletos.entidad.TrayectosExpresos;
|
import com.rjconsultores.ventaboletos.entidad.TrayectosExpresos;
|
||||||
import com.rjconsultores.ventaboletos.service.SolicitudExpresosService;
|
import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioInformeViajesOcasionalesPdf;
|
||||||
import com.rjconsultores.ventaboletos.utilerias.DateUtil;
|
import com.rjconsultores.ventaboletos.utilerias.DateUtil;
|
||||||
import com.rjconsultores.ventaboletos.web.utilerias.MyDatebox;
|
import com.rjconsultores.ventaboletos.web.utilerias.MyDatebox;
|
||||||
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
||||||
import com.rjconsultores.ventaboletos.web.utilerias.MyListbox;
|
import com.rjconsultores.ventaboletos.web.utilerias.MyListbox;
|
||||||
import com.rjconsultores.ventaboletos.web.utilerias.paginacion.HibernateSearchObject;
|
import com.rjconsultores.ventaboletos.web.utilerias.paginacion.HibernateSearchObject;
|
||||||
import com.rjconsultores.ventaboletos.web.utilerias.paginacion.PagedListWrapper;
|
import com.rjconsultores.ventaboletos.web.utilerias.paginacion.PagedListWrapper;
|
||||||
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderExpresosPorCotizar;
|
|
||||||
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderInformeViajesOcasionales;
|
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderInformeViajesOcasionales;
|
||||||
|
|
||||||
@Controller("informeViajesOcasionalesExpresosController")
|
@Controller("informeViajesOcasionalesExpresosController")
|
||||||
@Scope("prototype")
|
@Scope("prototype")
|
||||||
public class InformeViajesOcasionalesExpresosController extends MyGenericForwardComposer{
|
public class InformeViajesOcasionalesExpresosController extends MyGenericForwardComposer{
|
||||||
|
|
||||||
|
private static final String NOME_RELATORIO = "informeViajesOcasionales";
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
|
@ -83,6 +87,26 @@ public class InformeViajesOcasionalesExpresosController extends MyGenericForward
|
||||||
|
|
||||||
public void onClick$btnImprimir(Event ev) throws InterruptedException {}
|
public void onClick$btnImprimir(Event ev) throws InterruptedException {}
|
||||||
|
|
||||||
|
public void onClick$btnExportarPdf(Event ev) throws SQLException, Exception {
|
||||||
|
excutarInformeViajes(true);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void excutarInformeViajes(boolean isPdf)throws SQLException, Exception {
|
||||||
|
RelatorioInformeViajesOcasionalesPdf r = new RelatorioInformeViajesOcasionalesPdf(expresosList);
|
||||||
|
InputStream mediais = new ByteArrayInputStream(r.generateReportRender(isPdf));
|
||||||
|
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd_HH-mm");
|
||||||
|
String nomeRelatorioDownload = NOME_RELATORIO + "_" + sdf.format(Calendar.getInstance().getTime());
|
||||||
|
|
||||||
|
if(isPdf) {
|
||||||
|
AMedia conteudoRelatorioXLS = new AMedia("relatorio.pdf", "pdf", null, mediais);
|
||||||
|
Filedownload.save(conteudoRelatorioXLS.getStreamData(), "application/pdf", nomeRelatorioDownload + ".pdf");
|
||||||
|
}else {
|
||||||
|
AMedia conteudoRelatorioXLS = new AMedia("relatorio.xls", "xls", null, mediais);
|
||||||
|
Filedownload.save(conteudoRelatorioXLS.getStreamData(), "application/xls", nomeRelatorioDownload + ".xls");
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
public MyListbox getExpresosList() {
|
public MyListbox getExpresosList() {
|
||||||
return expresosList;
|
return expresosList;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -92,6 +92,7 @@ public class EditarTipoEventoExtraController extends MyGenericForwardComposer {
|
||||||
private MyComboboxEstandar cmbEmpresa;
|
private MyComboboxEstandar cmbEmpresa;
|
||||||
private MyComboboxPuntoVenta cmbPontoVenda;
|
private MyComboboxPuntoVenta cmbPontoVenda;
|
||||||
private MyComboboxImpresionLayoutConfig cmbImpresionLayoutConfig;
|
private MyComboboxImpresionLayoutConfig cmbImpresionLayoutConfig;
|
||||||
|
private MyComboboxImpresionLayoutConfig cmbImpresionLayoutEmailConfig;
|
||||||
/*Forma de Pagamento*/
|
/*Forma de Pagamento*/
|
||||||
private List<Empresa> lsEmpresas;
|
private List<Empresa> lsEmpresas;
|
||||||
/*Forma de Pagamento*/
|
/*Forma de Pagamento*/
|
||||||
|
@ -144,6 +145,7 @@ public class EditarTipoEventoExtraController extends MyGenericForwardComposer {
|
||||||
rowIndEnviaExcessoDeBagagemSefaz.setVisible(false);
|
rowIndEnviaExcessoDeBagagemSefaz.setVisible(false);
|
||||||
}
|
}
|
||||||
cmbImpresionLayoutConfig.setInitialValue(tipoEventoExtra.getImpresionLayoutConfig());
|
cmbImpresionLayoutConfig.setInitialValue(tipoEventoExtra.getImpresionLayoutConfig());
|
||||||
|
cmbImpresionLayoutEmailConfig.setInitialValue(tipoEventoExtra.getImpresionLayoutEmailConfig());
|
||||||
} else {
|
} else {
|
||||||
rowIndEnviaExcessoDeBagagemSefaz.setVisible(false);
|
rowIndEnviaExcessoDeBagagemSefaz.setVisible(false);
|
||||||
btnApagar.setVisible(false);
|
btnApagar.setVisible(false);
|
||||||
|
@ -292,6 +294,12 @@ public class EditarTipoEventoExtraController extends MyGenericForwardComposer {
|
||||||
tipoEventoExtra.setImpresionLayoutConfig((ImpresionLayoutConfig) cbImpresionLayoutConfig.getValue());
|
tipoEventoExtra.setImpresionLayoutConfig((ImpresionLayoutConfig) cbImpresionLayoutConfig.getValue());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Comboitem cbImpresionLayoutEmailConfig = cmbImpresionLayoutEmailConfig.getSelectedItem();
|
||||||
|
tipoEventoExtra.setImpresionLayoutEmailConfig(null);
|
||||||
|
if (cbImpresionLayoutEmailConfig != null) {
|
||||||
|
tipoEventoExtra.setImpresionLayoutEmailConfig((ImpresionLayoutConfig) cbImpresionLayoutEmailConfig.getValue());
|
||||||
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
tipoEventoExtra.setActivo(Boolean.TRUE);
|
tipoEventoExtra.setActivo(Boolean.TRUE);
|
||||||
tipoEventoExtra.setFecmodif(Calendar.getInstance().getTime());
|
tipoEventoExtra.setFecmodif(Calendar.getInstance().getTime());
|
||||||
|
|
|
@ -27,6 +27,7 @@ import com.rjconsultores.ventaboletos.dao.ConstanteDAO;
|
||||||
import com.rjconsultores.ventaboletos.entidad.Parada;
|
import com.rjconsultores.ventaboletos.entidad.Parada;
|
||||||
import com.rjconsultores.ventaboletos.entidad.PrecioVentaja;
|
import com.rjconsultores.ventaboletos.entidad.PrecioVentaja;
|
||||||
import com.rjconsultores.ventaboletos.entidad.Ruta;
|
import com.rjconsultores.ventaboletos.entidad.Ruta;
|
||||||
|
import com.rjconsultores.ventaboletos.service.ConstanteService;
|
||||||
import com.rjconsultores.ventaboletos.service.CorridaService;
|
import com.rjconsultores.ventaboletos.service.CorridaService;
|
||||||
import com.rjconsultores.ventaboletos.service.ParadaService;
|
import com.rjconsultores.ventaboletos.service.ParadaService;
|
||||||
import com.rjconsultores.ventaboletos.service.RutaService;
|
import com.rjconsultores.ventaboletos.service.RutaService;
|
||||||
|
@ -63,6 +64,9 @@ public class BusquedaPrecioVentajaController extends MyGenericForwardComposer {
|
||||||
@Autowired
|
@Autowired
|
||||||
private ParadaService paradaService;
|
private ParadaService paradaService;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private ConstanteService constanteService;
|
||||||
|
|
||||||
|
|
||||||
private MyListbox precioVentajaList;
|
private MyListbox precioVentajaList;
|
||||||
|
|
||||||
|
@ -109,7 +113,7 @@ public class BusquedaPrecioVentajaController extends MyGenericForwardComposer {
|
||||||
@Override
|
@Override
|
||||||
public void doAfterCompose(Component comp) throws Exception {
|
public void doAfterCompose(Component comp) throws Exception {
|
||||||
super.doAfterCompose(comp);
|
super.doAfterCompose(comp);
|
||||||
itxCorrida.setMaxlength(Boolean.valueOf(constanteDAO.buscarPorNomeConstante(Constantes.NUM_VIAJE_9_DIGITOS).getValorconstante()) ? 9 : 7);
|
itxCorrida.setMaxlength(Boolean.valueOf(constanteService.buscarValorConstantePorNomeConstanteBoolean(Constantes.NUM_VIAJE_9_DIGITOS) ) ? 9 : 7);
|
||||||
|
|
||||||
lsRuta = rutaService.obtenerTodos();
|
lsRuta = rutaService.obtenerTodos();
|
||||||
cmbRuta.setItemRenderer(new MyComboRutaRenderer());
|
cmbRuta.setItemRenderer(new MyComboRutaRenderer());
|
||||||
|
|
|
@ -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);
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
|
@ -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);
|
||||||
|
}
|
||||||
|
}
|
|
@ -7854,7 +7854,9 @@ expresosController.lbl.estadoSolicitado = Required
|
||||||
expresosController.lbl.idaVuelta = Going
|
expresosController.lbl.idaVuelta = Going
|
||||||
expresosController.lbl.pagadoCredito = Paid on Credit
|
expresosController.lbl.pagadoCredito = Paid on Credit
|
||||||
expresosController.lbl.verDetalle = See detail
|
expresosController.lbl.verDetalle = See detail
|
||||||
|
expresosController.lh.contratoAdjunto = Contrato Adjunto
|
||||||
|
expresosController.lh.fuecAdjunto = FUEC Adjunto
|
||||||
|
expresosController.lh.listaPasajerosAdjunto = Lista Pasajeros Adjunto
|
||||||
expresosPorCotizarCotizar.window.title = Express Quote
|
expresosPorCotizarCotizar.window.title = Express Quote
|
||||||
|
|
||||||
expresosPorCotizarPagoCredito.window.title = Credit Payment
|
expresosPorCotizarPagoCredito.window.title = Credit Payment
|
||||||
|
@ -8298,6 +8300,7 @@ indexController.mniExpressosInformeViajesOcasionales.label = Occasional Travel R
|
||||||
indexController.mniExpressosLog.label = Log
|
indexController.mniExpressosLog.label = Log
|
||||||
indexController.mniExpressosPorCotizar.label = Express to be quoted
|
indexController.mniExpressosPorCotizar.label = Express to be quoted
|
||||||
indexController.mniExpressosProgramacionVehiculos.label = Vehicle Programming
|
indexController.mniExpressosProgramacionVehiculos.label = Vehicle Programming
|
||||||
|
indexController.mniExpressosSeguimientoExpresos.label = Seguimiento Expresos
|
||||||
indexController.mniExtrairBpeXmlController.lab0el = Extract BP-e XML
|
indexController.mniExtrairBpeXmlController.lab0el = Extract BP-e XML
|
||||||
indexController.mniFaturarVoucher.label = Voucher Billing
|
indexController.mniFaturarVoucher.label = Voucher Billing
|
||||||
indexController.mniFechamentoParamgeral.label = Config. CtaCte Closing and Company Slip
|
indexController.mniFechamentoParamgeral.label = Config. CtaCte Closing and Company Slip
|
||||||
|
|
|
@ -4494,8 +4494,8 @@ editarContratoController.tab.contrato = Contrato
|
||||||
editarContratoController.tab.desconto = Descuento
|
editarContratoController.tab.desconto = Descuento
|
||||||
editarContratoController.window.title = Contrato
|
editarContratoController.window.title = Contrato
|
||||||
|
|
||||||
editarConvenioController.CupomAleatorioNao.value = Não
|
editarConvenioController.CupomAleatorioNao.value = No
|
||||||
editarConvenioController.CupomAleatorioSim.value = Sim
|
editarConvenioController.CupomAleatorioSim.value = Si
|
||||||
editarConvenioController.Descuento.value = Descuento Fijo
|
editarConvenioController.Descuento.value = Descuento Fijo
|
||||||
editarConvenioController.DescuentoTooltiptext.value = Não é Válido para Bpe
|
editarConvenioController.DescuentoTooltiptext.value = Não é Válido para Bpe
|
||||||
editarConvenioController.Geral.value = Geral
|
editarConvenioController.Geral.value = Geral
|
||||||
|
@ -4527,37 +4527,37 @@ editarConvenioController.btnBorrarConvenioDet.tooltiptext = Eliminar
|
||||||
editarConvenioController.btnFechar.tooltiptext = Cerrar
|
editarConvenioController.btnFechar.tooltiptext = Cerrar
|
||||||
editarConvenioController.btnSalvar.tooltiptext = Guardar
|
editarConvenioController.btnSalvar.tooltiptext = Guardar
|
||||||
editarConvenioController.lbCliente.value = Cliente
|
editarConvenioController.lbCliente.value = Cliente
|
||||||
editarConvenioController.lbCodigoCupom.value = Código Cupom
|
editarConvenioController.lbCodigoCupom.value = Código Cupon
|
||||||
editarConvenioController.lbCpfCliente.value = DOC. Cliente
|
editarConvenioController.lbCpfCliente.value = DOC. Cliente
|
||||||
editarConvenioController.lbCveConvenio.value = Código Convenio
|
editarConvenioController.lbCveConvenio.value = Código Convenio
|
||||||
editarConvenioController.lbDescConvenio.value = Convenio - Descuento
|
editarConvenioController.lbDescConvenio.value = Convenio - Descuento
|
||||||
editarConvenioController.lbIdCliente.value = Id. Cliente
|
editarConvenioController.lbIdCliente.value = Id. Cliente
|
||||||
editarConvenioController.lbMensagemGanhador.value = Mensagem Ganhador
|
editarConvenioController.lbMensagemGanhador.value = Mensage Ganador
|
||||||
editarConvenioController.lbNumDocfinal.value = Doc. Final
|
editarConvenioController.lbNumDocfinal.value = Doc. Final
|
||||||
editarConvenioController.lbNumDocinicio.value = Doc. Inicial
|
editarConvenioController.lbNumDocinicio.value = Doc. Inicial
|
||||||
editarConvenioController.lbNumEmiteCupom.value = Emitir cupom a cada
|
editarConvenioController.lbNumEmiteCupom.value = Emitir cupon cada
|
||||||
editarConvenioController.lbNumeroDocumento.value = Numero de documento
|
editarConvenioController.lbNumeroDocumento.value = Numero de documento
|
||||||
editarConvenioController.lbNumfoliofinal.value = Final:
|
editarConvenioController.lbNumfoliofinal.value = Final:
|
||||||
editarConvenioController.lbNumfolioinicio.value = Inicial:
|
editarConvenioController.lbNumfolioinicio.value = Inicial:
|
||||||
editarConvenioController.lbOutros.value = Outros
|
editarConvenioController.lbOutros.value = Outros
|
||||||
editarConvenioController.lbPedagio.value = Peaje
|
editarConvenioController.lbPedagio.value = Peaje
|
||||||
editarConvenioController.lbPeriodoEmissao.final = Final:
|
editarConvenioController.lbPeriodoEmissao.final = Final:
|
||||||
editarConvenioController.lbPeriodoEmissao.inicial = Inicial:
|
editarConvenioController.lbPeriodoEmissao.inicial = Principio:
|
||||||
editarConvenioController.lbPeriodoEmissao.value = Período de Emisión
|
editarConvenioController.lbPeriodoEmissao.value = Vigencia de campaña
|
||||||
editarConvenioController.lbPeriodoViagem.final = Final:
|
editarConvenioController.lbPeriodoViagem.final = Final:
|
||||||
editarConvenioController.lbPeriodoViagem.inicial = Inicial:
|
editarConvenioController.lbPeriodoViagem.inicial = Principio:
|
||||||
editarConvenioController.lbPeriodoViagem.value = Período de Viaje
|
editarConvenioController.lbPeriodoViagem.value = Vigencia redención
|
||||||
editarConvenioController.lbPorcdescuento.value = Porcentaje
|
editarConvenioController.lbPorcdescuento.value = Porcentaje
|
||||||
editarConvenioController.lbQtdDigitosCupom.value = Qtd dígitos cupom aleatório
|
editarConvenioController.lbQtdDigitosCupom.value = Digitos cupon Aleatoro
|
||||||
editarConvenioController.lbQuantidade.value = Cantidad
|
editarConvenioController.lbQuantidade.value = Cantidad
|
||||||
editarConvenioController.lbSeguro.value = Seguro
|
editarConvenioController.lbSeguro.value = Seguro
|
||||||
editarConvenioController.lbTarifa.value = Tarifa
|
editarConvenioController.lbTarifa.value = Tarifa
|
||||||
editarConvenioController.lbTermoCondicao.value = Termos e condições
|
editarConvenioController.lbTermoCondicao.value = Terminos y condiciones
|
||||||
editarConvenioController.lbTipoDesconto.value = Tipo de Descuento
|
editarConvenioController.lbTipoDesconto.value = Tipo de Descuento
|
||||||
editarConvenioController.lbTxEmbarque.value = Tasa de abordaje
|
editarConvenioController.lbTxEmbarque.value = Tasa de abordaje
|
||||||
editarConvenioController.lbValidaFolio.value = Validar Numero de Documento
|
editarConvenioController.lbValidaFolio.value = Validar Numero de Documento
|
||||||
editarConvenioController.nomeCliente.value = Nombre del Cliente
|
editarConvenioController.nomeCliente.value = Nombre del Cliente
|
||||||
editarConvenioController.rdCupomAleatorio.value = Cupom Aleatório
|
editarConvenioController.rdCupomAleatorio.value = Código cupon Aleatorio
|
||||||
editarConvenioController.tab.label.agencias = Agencias
|
editarConvenioController.tab.label.agencias = Agencias
|
||||||
editarConvenioController.tab.label.desconto = Descuento
|
editarConvenioController.tab.label.desconto = Descuento
|
||||||
editarConvenioController.tab.label.empresas = Empresas
|
editarConvenioController.tab.label.empresas = Empresas
|
||||||
|
@ -7861,7 +7861,9 @@ expresosController.lbl.estadoSolicitado = Solicitado
|
||||||
expresosController.lbl.idaVuelta = Ida
|
expresosController.lbl.idaVuelta = Ida
|
||||||
expresosController.lbl.pagadoCredito = Pagado a Crédito
|
expresosController.lbl.pagadoCredito = Pagado a Crédito
|
||||||
expresosController.lbl.verDetalle = Ver Detalle
|
expresosController.lbl.verDetalle = Ver Detalle
|
||||||
|
expresosController.lh.contratoAdjunto = Contrato Adjunto
|
||||||
|
expresosController.lh.fuecAdjunto = FUEC Adjunto
|
||||||
|
expresosController.lh.listaPasajerosAdjunto = Lista Pasajeros Adjunto
|
||||||
expresosPorCotizarCotizar.window.title = Cotización de Expreso
|
expresosPorCotizarCotizar.window.title = Cotización de Expreso
|
||||||
|
|
||||||
expresosPorCotizarPagoCredito.window.title = Pago a Crédito
|
expresosPorCotizarPagoCredito.window.title = Pago a Crédito
|
||||||
|
@ -8305,6 +8307,7 @@ indexController.mniExpressosInformeViajesOcasionales.label = Informe de Viajes O
|
||||||
indexController.mniExpressosLog.label = Log
|
indexController.mniExpressosLog.label = Log
|
||||||
indexController.mniExpressosPorCotizar.label = Expresos por cotizar
|
indexController.mniExpressosPorCotizar.label = Expresos por cotizar
|
||||||
indexController.mniExpressosProgramacionVehiculos.label = Programación de Vehículos
|
indexController.mniExpressosProgramacionVehiculos.label = Programación de Vehículos
|
||||||
|
indexController.mniExpressosSeguimientoExpresos.label = Seguimiento Expresos
|
||||||
indexController.mniExtrairBpeXmlController.label = Extrair BP-e XML
|
indexController.mniExtrairBpeXmlController.label = Extrair BP-e XML
|
||||||
indexController.mniFaturarVoucher.label = Facturación Bonos
|
indexController.mniFaturarVoucher.label = Facturación Bonos
|
||||||
indexController.mniFechamentoParamgeral.label = Cierre cuenta
|
indexController.mniFechamentoParamgeral.label = Cierre cuenta
|
||||||
|
|
|
@ -7855,7 +7855,9 @@ expresosController.lbl.estadoSolicitado = Requis
|
||||||
expresosController.lbl.idaVuelta = En allant
|
expresosController.lbl.idaVuelta = En allant
|
||||||
expresosController.lbl.pagadoCredito = Payé à crédit
|
expresosController.lbl.pagadoCredito = Payé à crédit
|
||||||
expresosController.lbl.verDetalle = Voir détail
|
expresosController.lbl.verDetalle = Voir détail
|
||||||
|
expresosController.lh.contratoAdjunto = Contrato Adjunto
|
||||||
|
expresosController.lh.fuecAdjunto = FUEC Adjunto
|
||||||
|
expresosController.lh.listaPasajerosAdjunto = Lista Pasajeros Adjunto
|
||||||
expresosPorCotizarCotizar.window.title = Devis express
|
expresosPorCotizarCotizar.window.title = Devis express
|
||||||
|
|
||||||
expresosPorCotizarPagoCredito.window.title = Paiement à crédit
|
expresosPorCotizarPagoCredito.window.title = Paiement à crédit
|
||||||
|
@ -8299,6 +8301,7 @@ indexController.mniExpressosInformeViajesOcasionales.label = Rapport de voyage o
|
||||||
indexController.mniExpressosLog.label = Log
|
indexController.mniExpressosLog.label = Log
|
||||||
indexController.mniExpressosPorCotizar.label = Express à devis
|
indexController.mniExpressosPorCotizar.label = Express à devis
|
||||||
indexController.mniExpressosProgramacionVehiculos.label = Programmation du véhicule
|
indexController.mniExpressosProgramacionVehiculos.label = Programmation du véhicule
|
||||||
|
indexController.mniExpressosSeguimientoExpresos.label = Seguimiento Expresos
|
||||||
indexController.mniExtrairBpeXmlController.label = Extraire BP-e XML
|
indexController.mniExtrairBpeXmlController.label = Extraire BP-e XML
|
||||||
indexController.mniFaturarVoucher.label = Facturation Bons
|
indexController.mniFaturarVoucher.label = Facturation Bons
|
||||||
indexController.mniFechamentoParamgeral.label = Configuration. Clôture du CtaCte et facture de l'entreprise
|
indexController.mniFechamentoParamgeral.label = Configuration. Clôture du CtaCte et facture de l'entreprise
|
||||||
|
|
|
@ -7838,7 +7838,9 @@ expresosController.lbl.cargarPlaca = Anexar Placa
|
||||||
expresosController.lbl.idaVuelta = Ida
|
expresosController.lbl.idaVuelta = Ida
|
||||||
expresosController.lbl.pagadoCredito = Pagado a Crédito
|
expresosController.lbl.pagadoCredito = Pagado a Crédito
|
||||||
expresosController.lbl.verDetalle = Ver detalhe
|
expresosController.lbl.verDetalle = Ver detalhe
|
||||||
|
expresosController.lh.contratoAdjunto = Contrato Adjunto
|
||||||
|
expresosController.lh.fuecAdjunto = FUEC Adjunto
|
||||||
|
expresosController.lh.listaPasajerosAdjunto = Lista Pasajeros Adjunto
|
||||||
expresosPorCotizarCotizar.window.title = Cotação Expressa
|
expresosPorCotizarCotizar.window.title = Cotação Expressa
|
||||||
|
|
||||||
expresosPorCotizarPagoCredito.window.title = Pagamento de crédito
|
expresosPorCotizarPagoCredito.window.title = Pagamento de crédito
|
||||||
|
@ -8280,6 +8282,7 @@ indexController.mniExpressosInformeViajesOcasionales.label = Relatório de viage
|
||||||
indexController.mniExpressosLog.label = Log
|
indexController.mniExpressosLog.label = Log
|
||||||
indexController.mniExpressosPorCotizar.label = Expresso a ser cotado
|
indexController.mniExpressosPorCotizar.label = Expresso a ser cotado
|
||||||
indexController.mniExpressosProgramacionVehiculos.label = Programação de veículos
|
indexController.mniExpressosProgramacionVehiculos.label = Programação de veículos
|
||||||
|
indexController.mniExpressosSeguimientoExpresos.label = Seguimiento Expresos
|
||||||
indexController.mniExtrairBpeXmlController.label = Extrair BP-e XML
|
indexController.mniExtrairBpeXmlController.label = Extrair BP-e XML
|
||||||
indexController.mniFaturarVoucher.label = Faturamento Voucher
|
indexController.mniFaturarVoucher.label = Faturamento Voucher
|
||||||
indexController.mniFechamentoParamgeral.label = Config. de Fechamento CtaCte e Boleto Empresa
|
indexController.mniFechamentoParamgeral.label = Config. de Fechamento CtaCte e Boleto Empresa
|
||||||
|
|
|
@ -38,8 +38,9 @@
|
||||||
<toolbar>
|
<toolbar>
|
||||||
<button id="btnPesquisa" image="/gui/img/find.png"
|
<button id="btnPesquisa" image="/gui/img/find.png"
|
||||||
label="${c:l('tooltiptext.btnPesquisa')}"/>
|
label="${c:l('tooltiptext.btnPesquisa')}"/>
|
||||||
<button id="btnImprimir" image="/gui/img/pdf.png"
|
<button id="btnExportarPdf"
|
||||||
label="${c:l('tooltiptext.btnImprimir')}"/>
|
image="/gui/img/pdf.png"
|
||||||
|
label="${c:l('dispositivoVendaEmbarcadaController.btnExportarPdf.label')}" />
|
||||||
</toolbar>
|
</toolbar>
|
||||||
<paging id="pagingExpresos" pageSize="20" />
|
<paging id="pagingExpresos" pageSize="20" />
|
||||||
<listbox id="expresosList" use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
<listbox id="expresosList" use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
||||||
|
|
|
@ -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>
|
|
@ -6,7 +6,7 @@
|
||||||
|
|
||||||
<zk xmlns="http://www.zkoss.org/2005/zul">
|
<zk xmlns="http://www.zkoss.org/2005/zul">
|
||||||
<window id="winEditarTipoEventoExtra" border="normal"
|
<window id="winEditarTipoEventoExtra" border="normal"
|
||||||
apply="${editarTipoEventoExtraController}" width="520px"
|
apply="${editarTipoEventoExtraController}" width="600px"
|
||||||
contentStyle="overflow:auto"
|
contentStyle="overflow:auto"
|
||||||
title="${c:l('editarTipoEventoExtraController.window.title')}">
|
title="${c:l('editarTipoEventoExtraController.window.title')}">
|
||||||
|
|
||||||
|
@ -66,11 +66,19 @@
|
||||||
</row>
|
</row>
|
||||||
<row>
|
<row>
|
||||||
<label
|
<label
|
||||||
value="${c:l('busquedaImpresionLayoutConfigController.window.title')}" />
|
value="${c:l('editarEmpresaController.cmbImpresionLayoutConfig')}" />
|
||||||
<combobox id="cmbImpresionLayoutConfig"
|
<combobox id="cmbImpresionLayoutConfig"
|
||||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxImpresionLayoutConfig"
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxImpresionLayoutConfig"
|
||||||
selectedItem="@{winEditarTipoEventoExtra$composer.tipoEventoExtra.impresionLayoutConfig}"
|
selectedItem="@{winEditarTipoEventoExtra$composer.tipoEventoExtra.impresionLayoutConfig}"
|
||||||
mold="rounded" buttonVisible="true" width="100%" />
|
mold="rounded" buttonVisible="true" width="100%" />
|
||||||
|
</row>
|
||||||
|
<row>
|
||||||
|
<label
|
||||||
|
value="${c:l('editarEmpresaController.lblLayoutEmail')}" />
|
||||||
|
<combobox id="cmbImpresionLayoutEmailConfig"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxImpresionLayoutConfig"
|
||||||
|
selectedItem="@{winEditarTipoEventoExtra$composer.tipoEventoExtra.impresionLayoutEmailConfig}"
|
||||||
|
mold="rounded" buttonVisible="true" width="100%" />
|
||||||
</row>
|
</row>
|
||||||
<row id="rowIndEnviaExcessoDeBagagemSefaz">
|
<row id="rowIndEnviaExcessoDeBagagemSefaz">
|
||||||
<label
|
<label
|
||||||
|
|
Loading…
Reference in New Issue