Merge branch 'master' into AL-5080
commit
2b04f23ca4
|
@ -102,7 +102,7 @@ public class RelatorioSaldosDeContratos extends Relatorio {
|
|||
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(" left join caixa_contrato cc on cc.contrato_id = c.contrato_id ");
|
||||
sb.append(" left join cliente_corporativo cli on cli.clientecorporativo_id = cli.clientecorporativo_id ");
|
||||
sb.append(" left join cliente_corporativo cli on cli.clientecorporativo_id = c.clientecorporativo_id ");
|
||||
sb.append(" where c.activo = 1 ");
|
||||
|
||||
if(dataInicial != null && dataFinal != null){
|
||||
|
|
|
@ -1,6 +1,10 @@
|
|||
package com.rjconsultores.ventaboletos.web.gui.controladores.configuracioneccomerciales;
|
||||
|
||||
import java.io.ByteArrayInputStream;
|
||||
import java.io.InputStream;
|
||||
import java.util.Calendar;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
|
@ -10,6 +14,7 @@ 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.Filedownload;
|
||||
import org.zkoss.zhtml.Messagebox;
|
||||
import org.zkoss.zk.ui.Component;
|
||||
import org.zkoss.zk.ui.event.Event;
|
||||
|
@ -23,7 +28,10 @@ import com.rjconsultores.ventaboletos.entidad.ClienteCorporativo;
|
|||
import com.rjconsultores.ventaboletos.entidad.ContratoCorporativo;
|
||||
import com.rjconsultores.ventaboletos.service.ClienteCorporativoService;
|
||||
import com.rjconsultores.ventaboletos.service.GrupoContratoService;
|
||||
import com.rjconsultores.ventaboletos.service.MudancaMassivaContratoService;
|
||||
import com.rjconsultores.ventaboletos.utilerias.DateUtil;
|
||||
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
||||
import com.rjconsultores.ventaboletos.vo.configuracioneccomerciales.TarifaGrupoContratoVO;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxClienteCorporativo;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyListbox;
|
||||
|
@ -43,6 +51,8 @@ public class BusquedaContratoController extends MyGenericForwardComposer {
|
|||
private ClienteCorporativoService clienteService;
|
||||
@Autowired
|
||||
private GrupoContratoService grupoService;
|
||||
@Autowired
|
||||
private MudancaMassivaContratoService mudancaMassivaService;
|
||||
|
||||
private MyListbox contratoList;
|
||||
private Paging pagingContrato;
|
||||
|
@ -131,10 +141,14 @@ public class BusquedaContratoController extends MyGenericForwardComposer {
|
|||
}
|
||||
}
|
||||
|
||||
public void onClick$btnPesquisa(Event ev) {
|
||||
public void onClick$btnPesquisar(Event ev) {
|
||||
refreshLista();
|
||||
}
|
||||
|
||||
public void onClick$btnExportar(Event ev) {
|
||||
exportarCvs();
|
||||
}
|
||||
|
||||
public void onClick$btnRefresh(Event ev) {
|
||||
refreshLista();
|
||||
}
|
||||
|
@ -155,4 +169,20 @@ public class BusquedaContratoController extends MyGenericForwardComposer {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void exportarCvs() {
|
||||
StringBuilder resultado = new StringBuilder();
|
||||
for (Object item : contratoList.getListData()) {
|
||||
ContratoCorporativo obj = (ContratoCorporativo)item;
|
||||
List<TarifaGrupoContratoVO> tarifasContrato = mudancaMassivaService.buscarTarifasContrato(obj);
|
||||
for (TarifaGrupoContratoVO vo : tarifasContrato) {
|
||||
resultado.append(vo.toCsv());
|
||||
}
|
||||
}
|
||||
|
||||
InputStream is = new ByteArrayInputStream(resultado.toString().getBytes());
|
||||
String data = DateUtil.getStringDate24Hour(Calendar.getInstance().getTime());
|
||||
Filedownload.save(is, "application/txt", "modificacao_massiva"+data+".csv");
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2482,6 +2482,8 @@ dispositivoVendaEmbarcadaController.btnAdicionar.tooltiptext = Include
|
|||
dispositivoVendaEmbarcadaController.btnApagar.tooltiptext = Delete
|
||||
dispositivoVendaEmbarcadaController.btnCerrar.tooltiptext = Close
|
||||
dispositivoVendaEmbarcadaController.btnExportar.label = Export Report
|
||||
dispositivoVendaEmbarcadaController.btnExportarPdf.label = Save PDF
|
||||
dispositivoVendaEmbarcadaController.btnExportarXls.label = Save XLS
|
||||
dispositivoVendaEmbarcadaController.btnNovo.tooltiptext = Include
|
||||
dispositivoVendaEmbarcadaController.btnPesquisa.label = Search
|
||||
dispositivoVendaEmbarcadaController.btnRefresh.tooltiptext = Update
|
||||
|
@ -8238,6 +8240,7 @@ label.arquivoProcessado = File Processed
|
|||
label.bairro = Neighborhood
|
||||
label.bilheteAberto = Open Tickets
|
||||
label.bilhetesConfirmados = Confirmed Tickets
|
||||
label.btnExportar = Export
|
||||
label.btnFaturar = Invoice
|
||||
label.btnImprimir = Print
|
||||
label.btnLegalizar = Legalize
|
||||
|
@ -8818,6 +8821,7 @@ relatorioBilhetesVendidosController.lbDatFinal.value = End Date
|
|||
relatorioBilhetesVendidosController.lbDatInicial.value = Start Date
|
||||
relatorioBilhetesVendidosController.lbEmpresa.value = Company
|
||||
relatorioBilhetesVendidosController.lbEstado.value = State
|
||||
relatorioBilhetesVendidosController.lbFormaPagamento.value = Payment Method
|
||||
relatorioBilhetesVendidosController.lbNumero.value = Number
|
||||
relatorioBilhetesVendidosController.lbPuntoVenta.value = Agency
|
||||
relatorioBilhetesVendidosController.lbStatus.value = Status
|
||||
|
@ -8826,7 +8830,6 @@ relatorioBilhetesVendidosController.reimpresso.label = Reprinted
|
|||
relatorioBilhetesVendidosController.reservado.label = Reserved
|
||||
relatorioBilhetesVendidosController.transferido.label = Transferred
|
||||
relatorioBilhetesVendidosController.vendido.label = Sold
|
||||
relatorioBilhetesVendidosController.lbFormaPagamento.value= Payment Method
|
||||
# Relatório Bilhetes Vendidos
|
||||
relatorioBilhetesVendidosController.window.title = Tickets Sold
|
||||
relatorioBilhetesVendidosEstoqueAgenciaController.IdaVolta.label = Round trip
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -8246,6 +8246,7 @@ label.arquivoProcessado = Archivo procesado
|
|||
label.bairro = Vecindario
|
||||
label.bilheteAberto = Tiquetes Abierto
|
||||
label.bilhetesConfirmados = Tiquetes Confirmados
|
||||
label.btnExportar = Exportar
|
||||
label.btnFaturar = Factura
|
||||
label.btnImprimir = Imprimir
|
||||
label.btnLegalizar = Legalizar
|
||||
|
@ -8831,6 +8832,7 @@ relatorioBilhetesVendidosController.lbDatFinal.value = Fecha final
|
|||
relatorioBilhetesVendidosController.lbDatInicial.value = Fecha inicio
|
||||
relatorioBilhetesVendidosController.lbEmpresa.value = Empresa
|
||||
relatorioBilhetesVendidosController.lbEstado.value = Estado
|
||||
relatorioBilhetesVendidosController.lbFormaPagamento.value = Forma Pago
|
||||
relatorioBilhetesVendidosController.lbNumero.value = Número
|
||||
relatorioBilhetesVendidosController.lbPuntoVenta.value = Agência
|
||||
relatorioBilhetesVendidosController.lbStatus.value = Status
|
||||
|
@ -8839,7 +8841,6 @@ relatorioBilhetesVendidosController.reimpresso.label = Reimpresso
|
|||
relatorioBilhetesVendidosController.reservado.label = Reservado
|
||||
relatorioBilhetesVendidosController.transferido.label = Transferido
|
||||
relatorioBilhetesVendidosController.vendido.label = Vendido
|
||||
relatorioBilhetesVendidosController.lbFormaPagamento.value= Forma Pago
|
||||
# Relatório Bilhetes Vendidos
|
||||
# Relatório Bilhetes Vendidos
|
||||
relatorioBilhetesVendidosController.window.title = Bilhetes Vendidos
|
||||
|
|
|
@ -2480,6 +2480,8 @@ dispositivoVendaEmbarcadaController.btnAdicionar.tooltiptext = Inclure
|
|||
dispositivoVendaEmbarcadaController.btnApagar.tooltiptext = Supprimer
|
||||
dispositivoVendaEmbarcadaController.btnCerrar.tooltiptext = Fermer
|
||||
dispositivoVendaEmbarcadaController.btnExportar.label = Exporter le rapport
|
||||
dispositivoVendaEmbarcadaController.btnExportarPdf.label = Enregistrer PDF
|
||||
dispositivoVendaEmbarcadaController.btnExportarXls.label = Enregistrer XLS
|
||||
dispositivoVendaEmbarcadaController.btnNovo.tooltiptext = Inclure
|
||||
dispositivoVendaEmbarcadaController.btnPesquisa.label = Recherche
|
||||
dispositivoVendaEmbarcadaController.btnRefresh.tooltiptext = Mise à jour
|
||||
|
@ -8236,6 +8238,7 @@ label.arquivoProcessado = Fichier traité
|
|||
label.bairro = Quartier
|
||||
label.bilheteAberto = Billets ouverts
|
||||
label.bilhetesConfirmados = Billets confirmés
|
||||
label.btnExportar = Exporter
|
||||
label.btnFaturar = Facture
|
||||
label.btnImprimir = Imprimer
|
||||
label.btnLegalizar = Légaliser
|
||||
|
@ -8816,6 +8819,7 @@ relatorioBilhetesVendidosController.lbDatFinal.value = Date de fin
|
|||
relatorioBilhetesVendidosController.lbDatInicial.value = Date de début
|
||||
relatorioBilhetesVendidosController.lbEmpresa.value = Entreprise
|
||||
relatorioBilhetesVendidosController.lbEstado.value = État
|
||||
relatorioBilhetesVendidosController.lbFormaPagamento.value = Mode de paiement
|
||||
relatorioBilhetesVendidosController.lbNumero.value = Nombre
|
||||
relatorioBilhetesVendidosController.lbPuntoVenta.value = Agence
|
||||
relatorioBilhetesVendidosController.lbStatus.value = Statut
|
||||
|
@ -8824,7 +8828,6 @@ relatorioBilhetesVendidosController.reimpresso.label = Réimprimé
|
|||
relatorioBilhetesVendidosController.reservado.label = Réservé
|
||||
relatorioBilhetesVendidosController.transferido.label = Transféré
|
||||
relatorioBilhetesVendidosController.vendido.label = Vendu
|
||||
relatorioBilhetesVendidosController.lbFormaPagamento.value= Mode de paiement
|
||||
# Relatório Bilhetes Vendidos
|
||||
relatorioBilhetesVendidosController.window.title = Billets vendus
|
||||
relatorioBilhetesVendidosEstoqueAgenciaController.IdaVolta.label = Aller-retour
|
||||
|
|
|
@ -2476,6 +2476,8 @@ dispositivoVendaEmbarcadaController.btnAdicionar.tooltiptext = Incluir
|
|||
dispositivoVendaEmbarcadaController.btnApagar.tooltiptext = Eliminar
|
||||
dispositivoVendaEmbarcadaController.btnCerrar.tooltiptext = Fechar
|
||||
dispositivoVendaEmbarcadaController.btnExportar.label = Exportar Relatório
|
||||
dispositivoVendaEmbarcadaController.btnExportarPdf.label = Salvar PDF
|
||||
dispositivoVendaEmbarcadaController.btnExportarXls.label = Salvar XLS
|
||||
dispositivoVendaEmbarcadaController.btnNovo.tooltiptext = Incluir
|
||||
dispositivoVendaEmbarcadaController.btnPesquisa.label = Pesquisa
|
||||
dispositivoVendaEmbarcadaController.btnRefresh.tooltiptext = Atualização
|
||||
|
@ -8222,6 +8224,7 @@ label.arquivoProcessado = Arquivo Processado
|
|||
label.bairro = Bairro
|
||||
label.bilheteAberto = Bilhetes Abertos
|
||||
label.bilhetesConfirmados = Bilhetes Confirmados
|
||||
label.btnExportar = Exportar
|
||||
label.btnFaturar = Faturar
|
||||
label.btnImprimir = Imprimir
|
||||
label.btnLegalizar = Legalizar
|
||||
|
@ -8804,6 +8807,7 @@ relatorioBilhetesVendidosController.lbDatFinal.value = Data Final
|
|||
relatorioBilhetesVendidosController.lbDatInicial.value = Data Inicial
|
||||
relatorioBilhetesVendidosController.lbEmpresa.value = Empresa
|
||||
relatorioBilhetesVendidosController.lbEstado.value = Estado
|
||||
relatorioBilhetesVendidosController.lbFormaPagamento.value = Forma Pagamento
|
||||
relatorioBilhetesVendidosController.lbNumero.value = Número
|
||||
relatorioBilhetesVendidosController.lbPuntoVenta.value = Agência
|
||||
relatorioBilhetesVendidosController.lbStatus.value = Status
|
||||
|
@ -8812,7 +8816,6 @@ relatorioBilhetesVendidosController.reimpresso.label = Reimpresso
|
|||
relatorioBilhetesVendidosController.reservado.label = Reservado
|
||||
relatorioBilhetesVendidosController.transferido.label = Transferido
|
||||
relatorioBilhetesVendidosController.vendido.label = Vendido
|
||||
relatorioBilhetesVendidosController.lbFormaPagamento.value= Forma Pagamento
|
||||
# Relatório Bilhetes Vendidos
|
||||
relatorioBilhetesVendidosController.window.title = Bilhetes Vendidos
|
||||
relatorioBilhetesVendidosEstoqueAgenciaController.IdaVolta.label = Ida/Volta
|
||||
|
|
|
@ -65,8 +65,10 @@
|
|||
</grid>
|
||||
|
||||
<toolbar>
|
||||
<button id="btnPesquisa" image="/gui/img/find.png"
|
||||
<button id="btnPesquisar" image="/gui/img/find.png"
|
||||
label="${c:l('label.btnPesquisar')}" />
|
||||
<button id="btnExportar" image="/gui/img/excel.png"
|
||||
label="${c:l('label.btnExportar')}" />
|
||||
</toolbar>
|
||||
|
||||
<paging id="pagingContrato" pageSize="20" />
|
||||
|
|
Loading…
Reference in New Issue