fixes bug#21460
dev:valdevir qua: git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@105915 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
37bb26c7e7
commit
9272dc63bc
|
@ -542,7 +542,7 @@ public class EditarPuntoVentaComissaoController extends MyGenericForwardComposer
|
|||
|
||||
private boolean verificarCampos() throws InterruptedException {
|
||||
if((ptovtaComissao.getSeguroReceita() || ptovtaComissao.getSeguroDev()) &&
|
||||
(isNullOrZero(ptovtaComissao.getSeguroobrigatorioBaixa()) || isNullOrZero(ptovtaComissao.getSeguroobrigatorioAlta()))) {
|
||||
isNullOrZero(ptovtaComissao.getSeguroobrigatorioBaixa()) && isNullOrZero(ptovtaComissao.getSeguroobrigatorioAlta())) {
|
||||
|
||||
Messagebox.show(
|
||||
Labels.getLabel("editarPuntoVentaComissaoController.INFO.seguroMarcadoSemValor"),
|
||||
|
@ -552,7 +552,7 @@ public class EditarPuntoVentaComissaoController extends MyGenericForwardComposer
|
|||
return false;
|
||||
}
|
||||
|
||||
if((!ptovtaComissao.getSeguroReceita() || !ptovtaComissao.getSeguroDev()) &&
|
||||
if(!ptovtaComissao.getSeguroReceita() && !ptovtaComissao.getSeguroDev() &&
|
||||
(!isNullOrZero(ptovtaComissao.getSeguroobrigatorioBaixa()) || !isNullOrZero(ptovtaComissao.getSeguroobrigatorioAlta()))) {
|
||||
|
||||
Messagebox.show(
|
||||
|
|
|
@ -0,0 +1,288 @@
|
|||
package com.rjconsultores.ventaboletos.web.gui.controladores.relatorios;
|
||||
|
||||
import java.io.InputStream;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import org.apache.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.Filedownload;
|
||||
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.Textbox;
|
||||
|
||||
import com.rjconsultores.ventaboletos.entidad.Categoria;
|
||||
import com.rjconsultores.ventaboletos.entidad.Empresa;
|
||||
import com.rjconsultores.ventaboletos.entidad.Ruta;
|
||||
import com.rjconsultores.ventaboletos.exception.BusinessException;
|
||||
import com.rjconsultores.ventaboletos.service.CategoriaService;
|
||||
import com.rjconsultores.ventaboletos.service.EmpresaService;
|
||||
import com.rjconsultores.ventaboletos.service.RelatorioAgepanService;
|
||||
import com.rjconsultores.ventaboletos.service.RutaService;
|
||||
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.render.RenderRelatorioLinhaHorario;
|
||||
|
||||
@Controller("relatorioGratuidadeAGEPANController")
|
||||
@Scope("prototype")
|
||||
public class RelatorioGratuidadeAGEPANController extends MyGenericForwardComposer {
|
||||
|
||||
private static Logger log = Logger.getLogger(RelatorioGratuidadeAGEPANController.class);
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@Autowired
|
||||
private CategoriaService categoriaService;
|
||||
@Autowired
|
||||
private EmpresaService empresaService;
|
||||
@Autowired
|
||||
private RutaService rutaService;
|
||||
@Autowired
|
||||
private RelatorioAgepanService relatorioAgepanService;
|
||||
|
||||
private Datebox datInicialVenda;
|
||||
private Datebox datFinalVenda;
|
||||
private MyComboboxEstandar cmbEmpresa;
|
||||
private MyComboboxEstandar cmbTipoGratuidade;
|
||||
|
||||
private List<Categoria> lsCategorias;
|
||||
private List<Empresa> lsEmpresas;
|
||||
|
||||
private Textbox txtPalavraPesquisaLinha;
|
||||
private MyListbox linhaList;
|
||||
private MyListbox linhaListSelList;
|
||||
private MyListbox selectedTipoGratuidadeList;
|
||||
|
||||
private List<Categoria> listSelectedTipoGratuidade;
|
||||
|
||||
public void onClick$btnRemoveTipoGratuidade(Event ev) throws InterruptedException {
|
||||
Categoria categoria = (Categoria) selectedTipoGratuidadeList.getSelectedItem().getValue();
|
||||
listSelectedTipoGratuidade.remove(categoria);
|
||||
selectedTipoGratuidadeList.setData(listSelectedTipoGratuidade);
|
||||
}
|
||||
|
||||
public void onClick$btnAddTipoTipoGratuidade(Event ev) throws InterruptedException {
|
||||
if (cmbTipoGratuidade.getSelectedItem() != null) {
|
||||
listSelectedTipoGratuidade.add((Categoria) cmbTipoGratuidade.getSelectedItem().getValue());
|
||||
selectedTipoGratuidadeList.setData(listSelectedTipoGratuidade);
|
||||
selectedTipoGratuidadeList.setSelectedItem(null);
|
||||
}
|
||||
}
|
||||
|
||||
public void onClick$btnPesquisaLinha(Event ev) {
|
||||
executarPesquisaLinha();
|
||||
}
|
||||
|
||||
public void onClick$btnLimparLinha(Event ev) {
|
||||
linhaList.clearSelection();
|
||||
linhaListSelList.setData(new ArrayList<Ruta>());
|
||||
|
||||
linhaList.setItemRenderer(new RenderRelatorioLinhaHorario());
|
||||
linhaListSelList.setItemRenderer(new RenderRelatorioLinhaHorario());
|
||||
}
|
||||
|
||||
public void onDoubleClick$linhaList(Event ev) {
|
||||
linhaListSelList.addItemNovo(linhaList.getSelected());
|
||||
}
|
||||
|
||||
public MyListbox getSelectedTipoGratuidadeList() {
|
||||
return selectedTipoGratuidadeList;
|
||||
}
|
||||
|
||||
public void setSelectedTipoGratuidadeList(MyListbox selectedTipoGratuidadeList) {
|
||||
this.selectedTipoGratuidadeList = selectedTipoGratuidadeList;
|
||||
}
|
||||
|
||||
public List<Categoria> getListSelectedTipoGratuidade() {
|
||||
return listSelectedTipoGratuidade;
|
||||
}
|
||||
|
||||
public void setListSelectedTipoGratuidade(List<Categoria> listSelectedTipoGratuidade) {
|
||||
this.listSelectedTipoGratuidade = listSelectedTipoGratuidade;
|
||||
}
|
||||
|
||||
private void executarPesquisaLinha() {
|
||||
|
||||
String palavraPesquisaRuta = txtPalavraPesquisaLinha.getText();
|
||||
linhaList.setData(rutaService.buscaRuta(palavraPesquisaRuta));
|
||||
|
||||
if (linhaList.getData().length == 0) {
|
||||
try {
|
||||
Messagebox.show(Labels.getLabel("MSG.ningunRegistro"),
|
||||
Labels.getLabel("relatorioGratuidadeAGEPANController.window.title"),
|
||||
Messagebox.OK, Messagebox.INFORMATION);
|
||||
} catch (InterruptedException ex) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void executarRelatorio() throws Exception {
|
||||
|
||||
Map<String, Object> parametros = new HashMap<String, Object>();
|
||||
|
||||
SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy");
|
||||
if (this.datInicialVenda.getValue() != null) {
|
||||
parametros.put("fecInicioVenda", sdf.format(this.datInicialVenda.getValue()));
|
||||
}
|
||||
|
||||
if (this.datFinalVenda.getValue() != null) {
|
||||
parametros.put("fecFinalVenda", sdf.format(this.datFinalVenda.getValue()));
|
||||
}
|
||||
|
||||
if (parametros.get("fecInicioVenda") == null && parametros.get("datFinalVenda") == null) {
|
||||
Messagebox.show(Labels.getLabel("relatorioGratuidadeAGEPANController.data.obrigatoria"),
|
||||
Labels.getLabel("relatorioGratuidadeAGEPANController.window.title"),
|
||||
Messagebox.OK, Messagebox.INFORMATION);
|
||||
return;
|
||||
}
|
||||
|
||||
if (listSelectedTipoGratuidade.isEmpty()) {
|
||||
Messagebox.show(Labels.getLabel("relatorioGratuidadeAGEPANController.tipo.obrigatoria"),
|
||||
Labels.getLabel("relatorioGratuidadeAGEPANController.window.title"),
|
||||
Messagebox.OK, Messagebox.INFORMATION);
|
||||
return;
|
||||
}
|
||||
|
||||
StringBuilder tipGratu = new StringBuilder();
|
||||
StringBuilder tipGratuIds = new StringBuilder();
|
||||
for (Categoria categoria : listSelectedTipoGratuidade) {
|
||||
tipGratu.append(categoria.getDesccategoria()).append(",");
|
||||
tipGratuIds.append(categoria.getCategoriaId()).append(",");
|
||||
}
|
||||
|
||||
// removendo ultima virgula
|
||||
tipGratuIds = tipGratuIds.delete(tipGratuIds.length() -1, tipGratuIds.length());
|
||||
tipGratu = tipGratu.delete(tipGratu.length() -1, tipGratu.length());
|
||||
|
||||
parametros.put("tipGratu", tipGratu.append(";").toString());
|
||||
parametros.put("tipGratuIds", tipGratuIds.toString());
|
||||
|
||||
StringBuilder linhas = new StringBuilder();
|
||||
StringBuilder linhaIds = new StringBuilder();
|
||||
|
||||
if (linhaListSelList.getListData().isEmpty()) {
|
||||
linhas.append("Todas");
|
||||
linhaIds.append("Todas");
|
||||
} else {
|
||||
for (Object obj : linhaListSelList.getListData()) {
|
||||
Ruta ruta = (Ruta)obj;
|
||||
linhas.append(ruta.getDescruta()).append(",");
|
||||
linhaIds.append(ruta.getRutaId()).append(",");
|
||||
}
|
||||
|
||||
// removendo ultima virgula
|
||||
linhaIds = linhaIds.delete(linhaIds.length() -1, linhaIds.length());
|
||||
linhas = linhas.delete(linhas.length() -1, linhas.length());
|
||||
}
|
||||
|
||||
parametros.put("linhas", linhas.append(";").toString());
|
||||
parametros.put("linhaIds", linhaIds.toString());
|
||||
|
||||
if (cmbEmpresa.getSelectedIndex() != -1) {
|
||||
parametros.put("empresa", ((Empresa) cmbEmpresa.getSelectedItem().getValue()).getEmpresaId());
|
||||
parametros.put("nomb_empresa", ((Empresa) cmbEmpresa.getSelectedItem().getValue()).getNombempresa());
|
||||
|
||||
}else{
|
||||
parametros.put("nomb_empresa", "Todas" );
|
||||
}
|
||||
|
||||
|
||||
try {
|
||||
InputStream arquivo = relatorioAgepanService.gerarArquivoGratuidadeAgepan(parametros);
|
||||
|
||||
Filedownload.save(arquivo, "application/xls", "gratuidadeAGEPAN.xls");
|
||||
} catch (BusinessException e) {
|
||||
log.error(e.getMessage(), e);
|
||||
Messagebox.show(e.getMessage(),
|
||||
Labels.getLabel("relatorioGratuidadeAGEPANController.window.title"),
|
||||
Messagebox.OK, Messagebox.ERROR);
|
||||
} catch (Exception e) {
|
||||
log.error(e.getMessage(), e);
|
||||
Messagebox.show(Labels.getLabel("MSG.Error").concat(" - ").concat(e.toString()),
|
||||
Labels.getLabel("relatorioGratuidadeAGEPANController.window.title"),
|
||||
Messagebox.OK, Messagebox.ERROR);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public void onClick$btnExecutarRelatorio(Event ev) throws Exception {
|
||||
executarRelatorio();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void doAfterCompose(Component comp) throws Exception {
|
||||
super.doAfterCompose(comp);
|
||||
lsEmpresas = empresaService.obtenerTodos();
|
||||
lsCategorias = categoriaService.obtenerTodos();
|
||||
listSelectedTipoGratuidade = new ArrayList<Categoria>();
|
||||
|
||||
linhaList.setItemRenderer(new RenderRelatorioLinhaHorario());
|
||||
linhaListSelList.setItemRenderer(new RenderRelatorioLinhaHorario());
|
||||
}
|
||||
|
||||
public List<Categoria> getLsCategorias() {
|
||||
return lsCategorias;
|
||||
}
|
||||
|
||||
public void setLsCategorias(List<Categoria> lsCategorias) {
|
||||
this.lsCategorias = lsCategorias;
|
||||
}
|
||||
|
||||
public Datebox getDatInicialVenda() {
|
||||
return datInicialVenda;
|
||||
}
|
||||
|
||||
public void setDatInicialVenda(Datebox datInicialVenda) {
|
||||
this.datInicialVenda = datInicialVenda;
|
||||
}
|
||||
|
||||
public Datebox getDatFinalVenda() {
|
||||
return datFinalVenda;
|
||||
}
|
||||
|
||||
public void setDatFinalVenda(Datebox datFinalVenda) {
|
||||
this.datFinalVenda = datFinalVenda;
|
||||
}
|
||||
|
||||
public MyComboboxEstandar getCmbTipoGratuidade() {
|
||||
return cmbTipoGratuidade;
|
||||
}
|
||||
|
||||
public void setCmbTipoGratuidade(MyComboboxEstandar cmbTipoGratuidade) {
|
||||
this.cmbTipoGratuidade = cmbTipoGratuidade;
|
||||
}
|
||||
|
||||
public MyListbox getLinhaListSelList() {
|
||||
return linhaListSelList;
|
||||
}
|
||||
|
||||
public void setLinhaListSelList(MyListbox linhaListSelList) {
|
||||
this.linhaListSelList = linhaListSelList;
|
||||
}
|
||||
|
||||
public Textbox getTxtPalavraPesquisaLinha() {
|
||||
return txtPalavraPesquisaLinha;
|
||||
}
|
||||
|
||||
public void setTxtPalavraPesquisaLinha(Textbox txtPalavraPesquisaLinha) {
|
||||
this.txtPalavraPesquisaLinha = txtPalavraPesquisaLinha;
|
||||
}
|
||||
|
||||
public List<Empresa> getLsEmpresas() {
|
||||
return lsEmpresas;
|
||||
}
|
||||
|
||||
public void setLsEmpresas(List<Empresa> lsEmpresas) {
|
||||
this.lsEmpresas = lsEmpresas;
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,25 @@
|
|||
package com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorio.bpe;
|
||||
|
||||
import org.zkoss.util.resource.Labels;
|
||||
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.PantallaUtileria;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.menu.DefaultItemMenuSistema;
|
||||
|
||||
public class ItemMenuRelatorioGratuidadeAGEPAN extends DefaultItemMenuSistema {
|
||||
|
||||
public ItemMenuRelatorioGratuidadeAGEPAN() {
|
||||
super("indexController.mniRelatorioGratuidadeAGEPAN.label");
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getClaveMenu() {
|
||||
return "COM.RJCONSULTORES.ADMINISTRACION.GUI.RELATORIOS.MENU.RELATORIOGRATUIDADEAGEPAN";
|
||||
}
|
||||
|
||||
@Override
|
||||
public void ejecutar() {
|
||||
PantallaUtileria.openWindow("/gui/relatorios/filtroRelatorioGratuidadeAGEPAN.zul",
|
||||
Labels.getLabel("relatorioGratuidadeAGEPANController.window.title"), getArgs() ,desktop);
|
||||
}
|
||||
|
||||
}
|
|
@ -264,6 +264,7 @@ analitico.integracion.bpe.exportacao=com.rjconsultores.ventaboletos.web.utileria
|
|||
analitico.integracion.bpe.rdi=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorio.bpe.ItemMenuBpeRdi
|
||||
analitico.integracion.bpe.financeiro=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorio.bpe.ItemMenuBpeFinanceiro
|
||||
analitico.integracion.bpe.devolucion=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorio.bpe.ItemMenuBpeDevolucao
|
||||
analitico.integracion.bpe.gratuidadesAGEPAN=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorio.bpe.ItemMenuRelatorioGratuidadeAGEPAN
|
||||
analitico.integracion.sgti=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorio.sgti.SubMenuSGTI
|
||||
analitico.integracion.cashmonitor=com.rjconsultores.ventaboletos.web.utilerias.menu.item.integracion.cashmonitor.SubMenuCashMonitor
|
||||
analitico.integracion.cashmonitor.relatoriovendacartaocashmonitor=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioVendaCartaoCashMonitor
|
||||
|
|
|
@ -93,6 +93,7 @@ relatorio.lb.btnSalvarRelatorioPdf = Guardar reporte en PDF
|
|||
relatorio.lb.btnSalvarRelatorioXls = Guardar reporte en XLS
|
||||
relatorio.parametro.msgNoData = No fue posible obtener datos con los parámetros informados.
|
||||
relatorio.parametro.dataMenorDataAtual=Data não pode ser menor do que a Data Atual
|
||||
relatorio.lb.btnGerarArquivo=Generar Arquivo
|
||||
|
||||
|
||||
# tooltip botões
|
||||
|
@ -304,6 +305,7 @@ indexController.mniRelatorioMovimentacaoBilhete.label = Movimentações de Bilhe
|
|||
indexController.mniRelatorioEncerramentoCheckin.label = Encerramento do Checkin
|
||||
indexController.mniRelatorioGratuidade.label = Gratuidades
|
||||
indexController.mniRelatorioGratuidadeANTT.label = Gratuidades ANTT
|
||||
indexController.mniRelatorioGratuidadeAGEPAN.label = Gratuidades AGEPAN
|
||||
indexController.mniRelatorioExportacaoIdosoARTESP.label = Reporte Exportación Ancianos ARTESP
|
||||
indexController.mniRelatorioGratuidadeIdosoDeficiente.label = Gratuidades Idoso/Deficiente
|
||||
indexController.mniRelatorioAproveitamentoFinanceiro.label = Aproveitamento Financeiro
|
||||
|
@ -8967,3 +8969,22 @@ editarOperadoresDispositivoController.btnBorrarUsuario.tooltiptext = Eliminar
|
|||
editarOperadoresDispositivoController.btnSalvar.tooltiptext = Salvar
|
||||
editarOperadoresDispositivoController.MSG.naoAdicionadoItemNovo = Não foi adicionado ítem novo na lista
|
||||
editarOperadoresDispositivoController.MSG.suscribirOK = Usuario do dipositivo alterados com sucesso
|
||||
|
||||
# Relatório Gratuidade AGEPAN
|
||||
relatorioGratuidadeAGEPANController.window.title = Gratuidades AGEPAN
|
||||
relatorioGratuidadeAGEPANController.data.obrigatoria = Data inicial e Final são obrigatórias
|
||||
relatorioGratuidadeAGEPANController.tipo.obrigatoria = Tipo de passagens é obrigatório
|
||||
relatorioGratuidadeAGEPANController.lbEmpresa.value = Empresa
|
||||
relatorioGratuidadeAGEPANController.lbAgencia.value = Agência
|
||||
relatorioGratuidadeAGEPANController.lbLinha.value = Linha
|
||||
relatorioGratuidadeAGEPANController.lbOrigem.value = Origem
|
||||
relatorioGratuidadeAGEPANController.lbDestino.value = Destino
|
||||
relatorioGratuidadeAGEPANController.lbTipoGratuidade.value = Tipos de Passagens
|
||||
relatorioGratuidadeAGEPANController.lbDataIniVenda.value = Data Inicial Venda
|
||||
relatorioGratuidadeAGEPANController.lbDataFinVenda.value = Data Final Venda
|
||||
relatorioGratuidadeAGEPANController.btnPesquisa.value = Pesquisar
|
||||
relatorioGratuidadeAGEPANController.btnLimpar.value = Limpar
|
||||
relatorioGratuidadeAGEPANController.lbNumRuta.value = Num. Linha
|
||||
relatorioGratuidadeAGEPANController.lbPrefixo.value = Prefixo
|
||||
relatorioGratuidadeAGEPANController.lvVenda = Venda
|
||||
relatorioGratuidadeAGEPANController.lbOrgao.value = Orgão Concedente
|
|
@ -95,6 +95,7 @@ relatorio.lb.btnSalvarRelatorioXls = Salvar Relatório em XLS
|
|||
relatorio.parametro.msgNoData = Não foi possivel obter dados com os parâmetros informados.
|
||||
relatorio.lb.btnExecutarRelatorioEstavel = Executar Relatório - Versão Estável
|
||||
relatorio.parametro.dataMenorDataAtual=Data não pode ser menor do que a Data Atual
|
||||
relatorio.lb.btnGerarArquivo=Gerar Arquivo
|
||||
|
||||
|
||||
# tooltip botões
|
||||
|
@ -317,6 +318,7 @@ indexController.mniRelatorioGratuidade.label = Relatório Tipo Passagem
|
|||
indexController.mniRelatorioGratuidadeANTT.label = Relatório Gratuidades ANTT
|
||||
indexController.mniRelatorioGratuidadeARTESP.label = Relatório Gratuidade ARTESP
|
||||
indexController.mniRelatorioGratuidadeAGER.label = Relatório Gratuidade AGER
|
||||
indexController.mniRelatorioGratuidadeAGEPAN.label = Gratuidades AGEPAN
|
||||
indexController.mniRelatorioOperacionalFinanceiro.label = Relatório Operacional Financeiro
|
||||
indexController.mniRelatorioBilhetesVendidos.label = Bilhetes Vendidos
|
||||
indexController.mniRelatorioGratuidadeIdosoDeficiente.label = Gratuidades Idoso/Deficiente
|
||||
|
@ -9527,3 +9529,22 @@ editarOperadoresDispositivoController.btnSalvar.tooltiptext = Salvar
|
|||
editarOperadoresDispositivoController.MSG.naoAdicionadoItemNovo = Não foi adicionado ítem novo na lista
|
||||
editarOperadoresDispositivoController.MSG.suscribirOK = Usuario do dipositivo alterados com sucesso
|
||||
editarOperadoresDispositivoController.MSG.existemUsuariosAtrelados = Existem usuários atrelados não foram. Deseja sair mesmo assim ?
|
||||
|
||||
# Gratuidade AGEPAN
|
||||
relatorioGratuidadeAGEPANController.window.title = Gratuidades AGEPAN
|
||||
relatorioGratuidadeAGEPANController.data.obrigatoria = Data inicial e Final são obrigatórias
|
||||
relatorioGratuidadeAGEPANController.tipo.obrigatoria = Tipo de passagens é obrigatório
|
||||
relatorioGratuidadeAGEPANController.lbEmpresa.value = Empresa
|
||||
relatorioGratuidadeAGEPANController.lbAgencia.value = Agência
|
||||
relatorioGratuidadeAGEPANController.lbLinha.value = Linha
|
||||
relatorioGratuidadeAGEPANController.lbOrigem.value = Origem
|
||||
relatorioGratuidadeAGEPANController.lbDestino.value = Destino
|
||||
relatorioGratuidadeAGEPANController.lbTipoGratuidade.value = Tipos de Passagens
|
||||
relatorioGratuidadeAGEPANController.lbDataIniVenda.value = Data Inicial Venda
|
||||
relatorioGratuidadeAGEPANController.lbDataFinVenda.value = Data Final Venda
|
||||
relatorioGratuidadeAGEPANController.btnPesquisa.value = Pesquisar
|
||||
relatorioGratuidadeAGEPANController.btnLimpar.value = Limpar
|
||||
relatorioGratuidadeAGEPANController.lbNumRuta.value = Num. Linha
|
||||
relatorioGratuidadeAGEPANController.lbPrefixo.value = Prefixo
|
||||
relatorioGratuidadeAGEPANController.lvVenda = Venda
|
||||
relatorioGratuidadeAGEPANController.lbOrgao.value = Orgão Concedente
|
|
@ -0,0 +1,167 @@
|
|||
<?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="winFiltroRelatorioGratuidadeAGEPAN"?>
|
||||
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
|
||||
|
||||
<zk xmlns="http://www.zkoss.org/2005/zul">
|
||||
<window id="winFiltroRelatorioGratuidadeAGEPAN"
|
||||
apply="${relatorioGratuidadeAGEPANController}"
|
||||
contentStyle="overflow:auto" height="400px" width="570px"
|
||||
border="normal">
|
||||
|
||||
<grid fixedLayout="true">
|
||||
<columns>
|
||||
<column width="20%" />
|
||||
<column width="30%" />
|
||||
<column width="20%" />
|
||||
<column width="30%" />
|
||||
</columns>
|
||||
<rows>
|
||||
<row>
|
||||
<label
|
||||
value="${c:l('relatorioGratuidadeAGEPANController.lbDataIniVenda.value')}" />
|
||||
<datebox id="datInicialVenda" width="90%" mold="rounded"
|
||||
format="dd/MM/yyyy"
|
||||
maxlength="10" />
|
||||
|
||||
<label
|
||||
value="${c:l('relatorioGratuidadeAGEPANController.lbDataFinVenda.value')}" />
|
||||
<datebox id="datFinalVenda" width="90%" mold="rounded"
|
||||
format="dd/MM/yyyy"
|
||||
maxlength="10" />
|
||||
</row>
|
||||
|
||||
<row spans="1,3">
|
||||
<label
|
||||
value="${c:l('relatorioGratuidadeAGEPANController.lbEmpresa.value')}" />
|
||||
<combobox id="cmbEmpresa" width="100%"
|
||||
maxlength="60" mold="rounded" buttonVisible="true"
|
||||
constraint="no empty"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||
model="@{winFiltroRelatorioGratuidadeAGEPAN$composer.lsEmpresas}" />
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
|
||||
<grid fixedLayout="true">
|
||||
<columns>
|
||||
<column width="25%" />
|
||||
<column width="75%" />
|
||||
</columns>
|
||||
<rows>
|
||||
|
||||
<row>
|
||||
<label
|
||||
value="${c:l('relatorioGratuidadeAGEPANController.lbLinha.value')}" />
|
||||
|
||||
<bandbox id="bbPesquisaLinha" width="100%"
|
||||
mold="rounded" readonly="true">
|
||||
<bandpopup>
|
||||
<vbox>
|
||||
<hbox>
|
||||
<textbox
|
||||
id="txtPalavraPesquisaLinha" />
|
||||
<button id="btnPesquisaLinha"
|
||||
image="/gui/img/find.png"
|
||||
label="${c:l('relatorioGratuidadeAGEPANController.btnPesquisa.value')}" />
|
||||
<button id="btnLimparLinha"
|
||||
image="/gui/img/eraser.png"
|
||||
label="${c:l('relatorioGratuidadeAGEPANController.btnLimpar.value')}" />
|
||||
</hbox>
|
||||
|
||||
<listbox id="linhaList" mold="paging"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
||||
vflex="true" multiple="false" height="60%" width="410px">
|
||||
<listhead>
|
||||
|
||||
<listheader
|
||||
label="${c:l('relatorioGratuidadeAGEPANController.lbNumRuta.value')}"
|
||||
width="18%" />
|
||||
|
||||
<listheader
|
||||
label="${c:l('relatorioGratuidadeAGEPANController.lbPrefixo.value')}"
|
||||
width="20%" />
|
||||
<listheader
|
||||
label="${c:l('lb.dec')}" width="35%" />
|
||||
<listheader
|
||||
label="${c:l('relatorioGratuidadeAGEPANController.lbOrgao.value')}"
|
||||
width="27%" />
|
||||
</listhead>
|
||||
</listbox>
|
||||
<paging id="pagingLinha" pageSize="10" />
|
||||
</vbox>
|
||||
</bandpopup>
|
||||
</bandbox>
|
||||
</row>
|
||||
|
||||
<row>
|
||||
<cell colspan="2">
|
||||
<borderlayout height="100px">
|
||||
<center border="0">
|
||||
<listbox id="linhaListSelList"
|
||||
mold="paging"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
||||
vflex="true" multiple="true" height="60%" width="100%">
|
||||
<listhead>
|
||||
<listheader
|
||||
label="${c:l('relatorioGratuidadeAGEPANController.lbNumRuta.value')}"
|
||||
width="18%" />
|
||||
<listheader
|
||||
label="${c:l('relatorioGratuidadeAGEPANController.lbPrefixo.value')}"
|
||||
width="20%" />
|
||||
<listheader
|
||||
label="${c:l('lb.dec')}" width="35%" />
|
||||
<listheader
|
||||
label="${c:l('relatorioGratuidadeAGEPANController.lbOrgao.value')}"
|
||||
width="20%" />
|
||||
<listheader width="7%" />
|
||||
</listhead>
|
||||
</listbox>
|
||||
</center>
|
||||
</borderlayout>
|
||||
</cell>
|
||||
</row>
|
||||
|
||||
<row>
|
||||
<label value="${c:l('relatorioGratuidadeAGEPANController.lbTipoGratuidade.value')}" />
|
||||
<combobox id="cmbTipoGratuidade" width="100%"
|
||||
maxlength="60" mold="rounded" buttonVisible="true"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||
model="@{winFiltroRelatorioGratuidadeAGEPAN$composer.lsCategorias}"/>
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
<grid fixedLayout="true">
|
||||
<columns>
|
||||
<column width="100%" />
|
||||
</columns>
|
||||
<rows>
|
||||
<row>
|
||||
<toolbar>
|
||||
<button id="btnRemoveTipoGratuidade" height="20"
|
||||
image="/gui/img/remove.png" width="35px"
|
||||
tooltiptext="${c:l('generarTarifaOrgaoController.labelRemoveRuta.value')}" />
|
||||
<button id="btnAddTipoTipoGratuidade" height="20"
|
||||
image="/gui/img/add.png" width="35px"
|
||||
tooltiptext="${c:l('generarTarifaOrgaoController.labelAddRuta.value')}" />
|
||||
</toolbar>
|
||||
</row>
|
||||
<row>
|
||||
<listbox id="selectedTipoGratuidadeList" mold="paging"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
||||
vflex="true" multiple="false" height="60%" >
|
||||
<listhead sizable="true">
|
||||
<listheader image="/gui/img/builder.gif"
|
||||
label="${c:l('generarTarifaOrgaoController.labelEmpresa.value')}" width="100%"/>
|
||||
</listhead>
|
||||
</listbox>
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
<toolbar>
|
||||
<button id="btnExecutarRelatorio" image="/gui/img/vis.png"
|
||||
label="${c:l('relatorio.lb.btnGerarArquivo')}" />
|
||||
</toolbar>
|
||||
</window>
|
||||
</zk>
|
Loading…
Reference in New Issue