fixes bug#20325
qua: dev:Valdevir git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@103393 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
81dd042f1c
commit
c8ffd2d5ba
|
@ -116,6 +116,7 @@ public class RelatorioReceitaDiariaAgencia extends Relatorio {
|
||||||
|
|
||||||
stmt.setDate("DATA_INICIO", (java.sql.Date) parametros.get("DATA_INICIO"));
|
stmt.setDate("DATA_INICIO", (java.sql.Date) parametros.get("DATA_INICIO"));
|
||||||
stmt.setDate("DATA_FINAL", (java.sql.Date) parametros.get("DATA_FINAL"));
|
stmt.setDate("DATA_FINAL", (java.sql.Date) parametros.get("DATA_FINAL"));
|
||||||
|
|
||||||
stmt.setString("ISNUMPUNTOVENTATODOS", (String) parametros.get("ISNUMPUNTOVENTATODOS"));
|
stmt.setString("ISNUMPUNTOVENTATODOS", (String) parametros.get("ISNUMPUNTOVENTATODOS"));
|
||||||
|
|
||||||
this.resultSet = stmt.executeQuery();
|
this.resultSet = stmt.executeQuery();
|
||||||
|
@ -711,7 +712,7 @@ public class RelatorioReceitaDiariaAgencia extends Relatorio {
|
||||||
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{
|
||||||
sql.append(" AND TRUNC(CJ.FECHORVENTA) BETWEEN :DATA_INICIO AND :DATA_FINAL ");
|
sql.append(" AND CJ.FECHORVENTA BETWEEN :DATA_INICIO AND :DATA_FINAL ");
|
||||||
}
|
}
|
||||||
|
|
||||||
sql.append(" AND CJ.ACTIVO = 1 ");
|
sql.append(" AND CJ.ACTIVO = 1 ");
|
||||||
|
|
|
@ -224,6 +224,7 @@ public class RelatorioFinanceiroReceitasDespesasController extends MyGenericForw
|
||||||
puntoVentaBusqueda.addFilterOr(Filter.like("nombpuntoventa", "%" + txtPalavraPesquisa.getText().trim().toUpperCase().concat("%")), Filter.like("numPuntoVenta", "%" + txtPalavraPesquisa.getText().trim().toUpperCase().concat("%")));
|
puntoVentaBusqueda.addFilterOr(Filter.like("nombpuntoventa", "%" + txtPalavraPesquisa.getText().trim().toUpperCase().concat("%")), Filter.like("numPuntoVenta", "%" + txtPalavraPesquisa.getText().trim().toUpperCase().concat("%")));
|
||||||
puntoVentaBusqueda.addSortAsc("nombpuntoventa");
|
puntoVentaBusqueda.addSortAsc("nombpuntoventa");
|
||||||
puntoVentaBusqueda.addFilterEqual("activo", Boolean.TRUE);
|
puntoVentaBusqueda.addFilterEqual("activo", Boolean.TRUE);
|
||||||
|
puntoVentaBusqueda.addFilterNotEqual("puntoventaId", -1);
|
||||||
|
|
||||||
plwPuntoVenta.init(puntoVentaBusqueda, puntoVentaList, pagingPuntoVenta);
|
plwPuntoVenta.init(puntoVentaBusqueda, puntoVentaList, pagingPuntoVenta);
|
||||||
|
|
||||||
|
|
|
@ -39,6 +39,7 @@ import com.rjconsultores.ventaboletos.service.EmpresaService;
|
||||||
import com.rjconsultores.ventaboletos.service.EstadoService;
|
import com.rjconsultores.ventaboletos.service.EstadoService;
|
||||||
import com.rjconsultores.ventaboletos.service.GrupoRutaService;
|
import com.rjconsultores.ventaboletos.service.GrupoRutaService;
|
||||||
import com.rjconsultores.ventaboletos.service.TipoPuntoVentaService;
|
import com.rjconsultores.ventaboletos.service.TipoPuntoVentaService;
|
||||||
|
import com.rjconsultores.ventaboletos.utilerias.DateUtil;
|
||||||
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;
|
||||||
import com.rjconsultores.ventaboletos.web.utilerias.MyListbox;
|
import com.rjconsultores.ventaboletos.web.utilerias.MyListbox;
|
||||||
|
@ -292,6 +293,8 @@ public class RelatorioReceitaDiariaAgenciaController extends MyGenericForwardCom
|
||||||
|
|
||||||
puntoVentaBusqueda.addFilterEqual("activo", Boolean.TRUE);
|
puntoVentaBusqueda.addFilterEqual("activo", Boolean.TRUE);
|
||||||
|
|
||||||
|
puntoVentaBusqueda.addFilterNotEqual("puntoventaId", -1);
|
||||||
|
|
||||||
plwPuntoVenta.init(puntoVentaBusqueda, puntoVentaList, pagingPuntoVenta);
|
plwPuntoVenta.init(puntoVentaBusqueda, puntoVentaList, pagingPuntoVenta);
|
||||||
|
|
||||||
if (puntoVentaList.getData().length == 0) {
|
if (puntoVentaList.getData().length == 0) {
|
||||||
|
@ -313,8 +316,8 @@ public class RelatorioReceitaDiariaAgenciaController extends MyGenericForwardCom
|
||||||
Map<String, Object> parametros = new HashMap<String, Object>();
|
Map<String, Object> parametros = new HashMap<String, Object>();
|
||||||
StringBuilder filtro = new StringBuilder();
|
StringBuilder filtro = new StringBuilder();
|
||||||
|
|
||||||
parametros.put("DATA_INICIO", new java.sql.Date(((java.util.Date) this.datInicial.getValue()).getTime()));
|
parametros.put("DATA_INICIO", new java.sql.Date(((java.util.Date) DateUtil.inicioFecha(this.datInicial.getValue())).getTime()));
|
||||||
parametros.put("DATA_FINAL", new java.sql.Date(((java.util.Date) this.datFinal.getValue()).getTime()));
|
parametros.put("DATA_FINAL", new java.sql.Date(((java.util.Date) DateUtil.fimFecha(this.datFinal.getValue())).getTime()));
|
||||||
parametros.put("B_EXCLUI_BAGAGEM", chkExcessoBagagem.isChecked());
|
parametros.put("B_EXCLUI_BAGAGEM", chkExcessoBagagem.isChecked());
|
||||||
parametros.put("B_CONTEMPLAR_GAP", chkContemplarGap.isChecked());
|
parametros.put("B_CONTEMPLAR_GAP", chkContemplarGap.isChecked());
|
||||||
parametros.put("B_DATA_FECHAMENTO", radDataFechamento.isChecked());
|
parametros.put("B_DATA_FECHAMENTO", radDataFechamento.isChecked());
|
||||||
|
|
|
@ -136,6 +136,8 @@ public class RelatorioVendasComissaoController extends MyGenericForwardComposer
|
||||||
|
|
||||||
puntoVentaBusqueda.addFilterEqual("activo", Boolean.TRUE);
|
puntoVentaBusqueda.addFilterEqual("activo", Boolean.TRUE);
|
||||||
|
|
||||||
|
puntoVentaBusqueda.addFilterNotEqual("puntoventaId", -1);
|
||||||
|
|
||||||
plwPuntoVenta.init(puntoVentaBusqueda, puntoVentaList, pagingPuntoVenta);
|
plwPuntoVenta.init(puntoVentaBusqueda, puntoVentaList, pagingPuntoVenta);
|
||||||
|
|
||||||
if (puntoVentaList.getData().length == 0) {
|
if (puntoVentaList.getData().length == 0) {
|
||||||
|
|
Loading…
Reference in New Issue