Fixes Bug #0009359
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@72251 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
3e8cc70973
commit
d66361bda9
|
@ -70,6 +70,10 @@ public class RelatorioReceitaDiariaAgencia extends Relatorio {
|
||||||
String sql = getSql();
|
String sql = getSql();
|
||||||
NamedParameterStatement stmt = new NamedParameterStatement(conexao, sql);
|
NamedParameterStatement stmt = new NamedParameterStatement(conexao, sql);
|
||||||
|
|
||||||
|
if (parametros.get("GRUPO_RUTA") != null) {
|
||||||
|
stmt.setString("GRUPO_RUTA", parametros.get("GRUPO_RUTA").toString());
|
||||||
|
}
|
||||||
|
|
||||||
if (parametros.get("NUMPUNTOVENTA") != null) {
|
if (parametros.get("NUMPUNTOVENTA") != null) {
|
||||||
StringBuilder strNumPuntoVenta = new StringBuilder();
|
StringBuilder strNumPuntoVenta = new StringBuilder();
|
||||||
|
|
||||||
|
@ -625,9 +629,22 @@ public class RelatorioReceitaDiariaAgencia extends Relatorio {
|
||||||
sql.append(" PARADA PD, ");
|
sql.append(" PARADA PD, ");
|
||||||
sql.append(" CIUDAD CO, ");
|
sql.append(" CIUDAD CO, ");
|
||||||
sql.append(" CIUDAD CD, ");
|
sql.append(" CIUDAD CD, ");
|
||||||
sql.append(" TIPO_PTOVTA TP ");
|
sql.append(" TIPO_PTOVTA TP, ");
|
||||||
|
sql.append(" RUTA RU, ");
|
||||||
|
sql.append(" GRUPO_RUTA GR ");
|
||||||
sql.append(" WHERE CJ.PUNTOVENTA_ID = PV.PUNTOVENTA_ID ");
|
sql.append(" WHERE CJ.PUNTOVENTA_ID = PV.PUNTOVENTA_ID ");
|
||||||
|
|
||||||
|
sql.append(" AND CJ.RUTA_ID = RU.RUTA_ID ");
|
||||||
|
sql.append(" AND RU.GRUPORUTA_ID = GR.GRUPORUTA_ID ");
|
||||||
|
|
||||||
|
if ((Boolean) this.getParametros().get("SOMENTE_CANCELADOS")) {
|
||||||
|
sql.append(" AND CJ.MOTIVOCANCELACION_ID is not null ");
|
||||||
|
}
|
||||||
|
|
||||||
|
if (this.getParametros().get("GRUPO_RUTA") != null) {
|
||||||
|
sql.append(" AND GR.GRUPORUTA_ID = :GRUPO_RUTA" );
|
||||||
|
}
|
||||||
|
|
||||||
if ((Boolean) this.getParametros().get("B_DATA_FECHAMENTO")){
|
if ((Boolean) this.getParametros().get("B_DATA_FECHAMENTO")){
|
||||||
sql.append(" AND CJ.FECCORTE BETWEEN :DATA_INICIO AND :DATA_FINAL ");
|
sql.append(" AND CJ.FECCORTE BETWEEN :DATA_INICIO AND :DATA_FINAL ");
|
||||||
}else{
|
}else{
|
||||||
|
|
|
@ -30,13 +30,14 @@ import org.zkoss.zul.Textbox;
|
||||||
|
|
||||||
import com.rjconsultores.ventaboletos.entidad.Empresa;
|
import com.rjconsultores.ventaboletos.entidad.Empresa;
|
||||||
import com.rjconsultores.ventaboletos.entidad.Estado;
|
import com.rjconsultores.ventaboletos.entidad.Estado;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.GrupoRuta;
|
||||||
import com.rjconsultores.ventaboletos.entidad.PuntoVenta;
|
import com.rjconsultores.ventaboletos.entidad.PuntoVenta;
|
||||||
import com.rjconsultores.ventaboletos.entidad.TipoPuntoVenta;
|
import com.rjconsultores.ventaboletos.entidad.TipoPuntoVenta;
|
||||||
import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioReceitaDiariaAgencia;
|
import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioReceitaDiariaAgencia;
|
||||||
import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio;
|
import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio;
|
||||||
import com.rjconsultores.ventaboletos.service.EmpresaService;
|
import com.rjconsultores.ventaboletos.service.EmpresaService;
|
||||||
import com.rjconsultores.ventaboletos.service.EstadoService;
|
import com.rjconsultores.ventaboletos.service.EstadoService;
|
||||||
import com.rjconsultores.ventaboletos.service.PuntoVentaService;
|
import com.rjconsultores.ventaboletos.service.GrupoRutaService;
|
||||||
import com.rjconsultores.ventaboletos.service.TipoPuntoVentaService;
|
import com.rjconsultores.ventaboletos.service.TipoPuntoVentaService;
|
||||||
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
||||||
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
||||||
|
@ -59,24 +60,28 @@ public class RelatorioReceitaDiariaAgenciaController extends MyGenericForwardCom
|
||||||
@Autowired
|
@Autowired
|
||||||
private EstadoService estadoService;
|
private EstadoService estadoService;
|
||||||
@Autowired
|
@Autowired
|
||||||
private EmpresaService empresaService;
|
private GrupoRutaService grupoRutaService;
|
||||||
@Autowired
|
@Autowired
|
||||||
private PuntoVentaService puntoVentaService;
|
private EmpresaService empresaService;
|
||||||
@Autowired
|
@Autowired
|
||||||
private TipoPuntoVentaService tipoPuntoVentaService;
|
private TipoPuntoVentaService tipoPuntoVentaService;
|
||||||
@Autowired
|
@Autowired
|
||||||
private DataSource dataSourceRead;
|
private DataSource dataSourceRead;
|
||||||
|
|
||||||
private List<Estado> lsEstado;
|
private List<Estado> lsEstado;
|
||||||
|
private List<GrupoRuta> lsGrupoRuta;
|
||||||
private List<Empresa> lsEmpresa;
|
private List<Empresa> lsEmpresa;
|
||||||
private List<TipoPuntoVenta> lsTipoPuntoVenta;
|
private List<TipoPuntoVenta> lsTipoPuntoVenta;
|
||||||
|
|
||||||
private List<PuntoVenta> lsNumPuntoVenta;
|
private List<PuntoVenta> lsNumPuntoVenta;
|
||||||
|
|
||||||
|
private Checkbox somenteCancelados;
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private transient PagedListWrapper<PuntoVenta> plwPuntoVenta;
|
private transient PagedListWrapper<PuntoVenta> plwPuntoVenta;
|
||||||
|
|
||||||
private MyListbox puntoVentaList;
|
private MyListbox puntoVentaList;
|
||||||
|
|
||||||
private MyListbox estadoList;
|
private MyListbox estadoList;
|
||||||
private MyListbox puntoVentaSelList;
|
private MyListbox puntoVentaSelList;
|
||||||
private Paging pagingPuntoVenta;
|
private Paging pagingPuntoVenta;
|
||||||
|
@ -89,6 +94,7 @@ public class RelatorioReceitaDiariaAgenciaController extends MyGenericForwardCom
|
||||||
private Combobox cmbPuntoVenta;
|
private Combobox cmbPuntoVenta;
|
||||||
private Combobox cmbTipoPuntoVenta;
|
private Combobox cmbTipoPuntoVenta;
|
||||||
private Combobox cmbReceitaImposto;
|
private Combobox cmbReceitaImposto;
|
||||||
|
private Combobox cmbGrupoRuta;
|
||||||
private Datebox datInicial;
|
private Datebox datInicial;
|
||||||
private Datebox datFinal;
|
private Datebox datFinal;
|
||||||
private Checkbox chkExcessoBagagem;
|
private Checkbox chkExcessoBagagem;
|
||||||
|
@ -96,10 +102,26 @@ public class RelatorioReceitaDiariaAgenciaController extends MyGenericForwardCom
|
||||||
private Radio rd1;
|
private Radio rd1;
|
||||||
private Radio radDataFechamento;
|
private Radio radDataFechamento;
|
||||||
|
|
||||||
|
public Checkbox getSomenteCancelados() {
|
||||||
|
return somenteCancelados;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSomenteCancelados(Checkbox somenteCancelados) {
|
||||||
|
this.somenteCancelados = somenteCancelados;
|
||||||
|
}
|
||||||
|
|
||||||
public Datebox getDatInicial() {
|
public Datebox getDatInicial() {
|
||||||
return datInicial;
|
return datInicial;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public List<GrupoRuta> getLsGrupoRuta() {
|
||||||
|
return lsGrupoRuta;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLsGrupoRuta(List<GrupoRuta> lsGrupoRuta) {
|
||||||
|
this.lsGrupoRuta = lsGrupoRuta;
|
||||||
|
}
|
||||||
|
|
||||||
public void setDatInicial(Datebox datInicial) {
|
public void setDatInicial(Datebox datInicial) {
|
||||||
this.datInicial = datInicial;
|
this.datInicial = datInicial;
|
||||||
}
|
}
|
||||||
|
@ -136,6 +158,14 @@ public class RelatorioReceitaDiariaAgenciaController extends MyGenericForwardCom
|
||||||
this.cmbPuntoVenta = cmbPuntoVenta;
|
this.cmbPuntoVenta = cmbPuntoVenta;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Combobox getCmbGrupoLinha() {
|
||||||
|
return cmbGrupoRuta;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCmbGrupoLinha(Combobox cmbGrupoLinha) {
|
||||||
|
this.cmbGrupoRuta = cmbGrupoLinha;
|
||||||
|
}
|
||||||
|
|
||||||
public MyListbox getPuntoVentaList() {
|
public MyListbox getPuntoVentaList() {
|
||||||
return puntoVentaList;
|
return puntoVentaList;
|
||||||
}
|
}
|
||||||
|
@ -281,9 +311,14 @@ public class RelatorioReceitaDiariaAgenciaController extends MyGenericForwardCom
|
||||||
parametros.put("NOME_RELATORIO", Labels.getLabel("relatorioReceitaDiariaAgenciaController.window.title"));
|
parametros.put("NOME_RELATORIO", Labels.getLabel("relatorioReceitaDiariaAgenciaController.window.title"));
|
||||||
parametros.put("ISDEVOLUCAODESTINO", rd1.isChecked() ? 0 : 1);
|
parametros.put("ISDEVOLUCAODESTINO", rd1.isChecked() ? 0 : 1);
|
||||||
parametros.put("USUARIO", UsuarioLogado.getUsuarioLogado().getUsuarioId().toString());
|
parametros.put("USUARIO", UsuarioLogado.getUsuarioLogado().getUsuarioId().toString());
|
||||||
|
parametros.put("SOMENTE_CANCELADOS", somenteCancelados.isChecked());
|
||||||
|
|
||||||
parametros.put("BASE_CALCULO_IMPOSTO", Integer.valueOf(cmbReceitaImposto.getSelectedItem().getValue().toString()));
|
parametros.put("BASE_CALCULO_IMPOSTO", Integer.valueOf(cmbReceitaImposto.getSelectedItem().getValue().toString()));
|
||||||
|
|
||||||
|
if (cmbGrupoRuta.getSelectedItem() != null && lsGrupoRuta.get(cmbGrupoRuta.getSelectedIndex()).getGrupoRutaId() != null) {
|
||||||
|
parametros.put("GRUPO_RUTA", lsGrupoRuta.get(cmbGrupoRuta.getSelectedIndex()).getGrupoRutaId());
|
||||||
|
}
|
||||||
|
|
||||||
lsNumPuntoVenta = new ArrayList(Arrays.asList(puntoVentaSelList.getData()));
|
lsNumPuntoVenta = new ArrayList(Arrays.asList(puntoVentaSelList.getData()));
|
||||||
|
|
||||||
filtro.append("Agência(s): ");
|
filtro.append("Agência(s): ");
|
||||||
|
@ -363,6 +398,7 @@ public class RelatorioReceitaDiariaAgenciaController extends MyGenericForwardCom
|
||||||
public void doAfterCompose(Component comp) throws Exception {
|
public void doAfterCompose(Component comp) throws Exception {
|
||||||
lsEstado = estadoService.obtenerTodos();
|
lsEstado = estadoService.obtenerTodos();
|
||||||
lsEmpresa = empresaService.obtenerTodos();
|
lsEmpresa = empresaService.obtenerTodos();
|
||||||
|
lsGrupoRuta = grupoRutaService.obtenerTodos();
|
||||||
setLsTipoPuntoVenta(tipoPuntoVentaService.obtenerTodos());
|
setLsTipoPuntoVenta(tipoPuntoVentaService.obtenerTodos());
|
||||||
super.doAfterCompose(comp);
|
super.doAfterCompose(comp);
|
||||||
|
|
||||||
|
|
|
@ -384,6 +384,7 @@ financeiroGrupoLinhasController.lbDataIni.value = Data Início
|
||||||
financeiroGrupoLinhasController.lbDataFin.value = Data Fim
|
financeiroGrupoLinhasController.lbDataFin.value = Data Fim
|
||||||
financeiroGrupoLinhasController.lbEmpresa.value = Empresa
|
financeiroGrupoLinhasController.lbEmpresa.value = Empresa
|
||||||
financeiroGrupoLinhasController.label.somenteCancelados = Somente Cancelados
|
financeiroGrupoLinhasController.label.somenteCancelados = Somente Cancelados
|
||||||
|
financeiroGrupoLinhasController.label.grupo.linhas = Grupo de Linhas
|
||||||
|
|
||||||
# Muestra a Pesquisa Tipo Classe
|
# Muestra a Pesquisa Tipo Classe
|
||||||
busquedaClaseServicioController.window.title = Tipo de Classe
|
busquedaClaseServicioController.window.title = Tipo de Classe
|
||||||
|
@ -4860,6 +4861,9 @@ relatorioTabelaPrecoController.lbEmpresa.value = Empresa
|
||||||
relatorioTabelaPrecoController.lbLinha.value = Linha
|
relatorioTabelaPrecoController.lbLinha.value = Linha
|
||||||
relatorioTabelaPrecoController.msg.informarLinha = É obrigatório informar pelo menos uma linha no filtro.
|
relatorioTabelaPrecoController.msg.informarLinha = É obrigatório informar pelo menos uma linha no filtro.
|
||||||
relatorioTabelaPrecoController.lbLayoutArtesp=Layout ARTESP
|
relatorioTabelaPrecoController.lbLayoutArtesp=Layout ARTESP
|
||||||
|
relatorioTabelaPrecoController.lhDesc.label = Descrição
|
||||||
|
relatorioTabelaPrecoController.lhId.label = ID
|
||||||
|
|
||||||
|
|
||||||
# Editar Motivo cancelamento equivalencia
|
# Editar Motivo cancelamento equivalencia
|
||||||
editarMotivoCancelacionEquivalenciaController.window.title = Equivalencia Motivo de Cancelamento
|
editarMotivoCancelacionEquivalenciaController.window.title = Equivalencia Motivo de Cancelamento
|
||||||
|
@ -6547,8 +6551,12 @@ relatorioGratuidadeController.lbLinhas.value = Linha
|
||||||
relatorioGratuidadeController.lbOrigem.value = Origem
|
relatorioGratuidadeController.lbOrigem.value = Origem
|
||||||
relatorioGratuidadeController.lbDestino.value = Destino
|
relatorioGratuidadeController.lbDestino.value = Destino
|
||||||
relatorioGratuidadeController.lbTipoGratuidade.value = Tipo de Gratuidade
|
relatorioGratuidadeController.lbTipoGratuidade.value = Tipo de Gratuidade
|
||||||
relatorioGratuidadeController.lbDataIni.value = Data Inicio
|
relatorioGratuidadeController.lbDataIniViagem.value = Data Inicio
|
||||||
relatorioGratuidadeController.lbDataFin.value = Data Final
|
relatorioGratuidadeController.lbDataFinViagem.value = Data Final
|
||||||
|
relatorioGratuidadeController.lvViagem = Viagem
|
||||||
|
relatorioGratuidadeController.lbDataIniVenda.value = Data Inicio
|
||||||
|
relatorioGratuidadeController.lbDataFinVenda.value = Data Final
|
||||||
|
relatorioGratuidadeController.lvVenda = Venda
|
||||||
|
|
||||||
# Relatório de Descontos
|
# Relatório de Descontos
|
||||||
relatorioDescontosController.window.title = Relatório de Descontos
|
relatorioDescontosController.window.title = Relatório de Descontos
|
||||||
|
|
|
@ -163,7 +163,17 @@
|
||||||
</radiogroup>
|
</radiogroup>
|
||||||
</cell>
|
</cell>
|
||||||
</row>
|
</row>
|
||||||
|
<row>
|
||||||
|
<label value="${c:l('financeiroGrupoLinhasController.label.somenteCancelados')}" />
|
||||||
|
<checkbox id="somenteCancelados"/>
|
||||||
|
</row>
|
||||||
|
<row>
|
||||||
|
<label value="${c:l('financeiroGrupoLinhasController.label.grupo.linhas')}" />
|
||||||
|
<combobox id="cmbGrupoRuta" width="90%"
|
||||||
|
mold="rounded" buttonVisible="true"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||||
|
model="@{winFiltroRelatorioReceitaDiariaAgencia$composer.lsGrupoRuta}" />
|
||||||
|
</row>
|
||||||
</rows>
|
</rows>
|
||||||
</grid>
|
</grid>
|
||||||
<toolbar>
|
<toolbar>
|
||||||
|
|
Loading…
Reference in New Issue