marcus 2013-07-30 21:09:02 +00:00
parent 4ef46e1ba8
commit 68c748ecd0
3 changed files with 6 additions and 5 deletions

View File

@ -26,14 +26,14 @@
ciudad ci,
estado es
where cj.activo = 1
and INSTR($P{LS_CATEGORIA}, cj.categoria_id || ',') > 0
and INSTR($P{LS_CATEGORIA}, '_' || cj.categoria_id || '_') > 0
and cj.empresacorrida_id = $P{EMPRESA_ID}
and cj.empresacorrida_id = em.empresa_id
and cj.puntoventa_id = pv.puntoventa_id
and pv.parada_id = pa.parada_id
and pa.ciudad_id = ci.ciudad_id
and ci.estado_id = es.estado_id
and cj.fechorventa between $P{DATA_INICIO} and $P{DATA_FINAL}
and trunc(cj.fechorventa, 'DAY') between trunc($P{DATA_INICIO}, 'DAY') and trunc($P{DATA_FINAL}, 'DAY')
and ((cj.feccorrida is null) or ($P{PASSAGEM_ABERTA} = 'T'))
order by em.nombempresa, es.cveestado, cj.fechorventa]]>
</queryString>
@ -116,10 +116,10 @@
<textFieldExpression><![CDATA["Período: De " + new SimpleDateFormat("dd/MM/yyyy ").format($P{DATA_INICIO}) + " a " + new SimpleDateFormat("dd/MM/yyyy ").format($P{DATA_FINAL})]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="f892d882-409f-4f4f-b0d2-1628abb65e6f" x="402" y="9" width="151" height="13"/>
<reportElement uuid="f892d882-409f-4f4f-b0d2-1628abb65e6f" x="309" y="9" width="244" height="13"/>
<textElement textAlignment="Right" markup="none"/>
<textFieldExpression><![CDATA["Data/Hora: " +
new SimpleDateFormat("dd/MM/yyyy hh:mm:ss").format(new Date())]]></textFieldExpression>
new SimpleDateFormat("dd/MM/yyyy HH:mm:ss").format(new Date())]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="1a4a2cbf-c63b-4e5b-b4f0-fcdc9ac79c0e" x="402" y="44" width="151" height="13"/>

View File

@ -229,8 +229,9 @@ public class RelatorioPassageirosViajarController extends MyGenericForwardCompos
lsNumCategoria = new ArrayList(Arrays.asList(categoriaSelList.getData()));
StringBuilder strNumCategoria = new StringBuilder();
strNumCategoria.append("_");
for (Categoria c : lsNumCategoria) {
strNumCategoria.append(' ' + c.getCategoriaId().toString() + ',');
strNumCategoria.append(c.getCategoriaId().toString() + '_');
}
parametros.put("LS_CATEGORIA", strNumCategoria.toString());
parametros.put("USUARIO", UsuarioLogado.getUsuarioLogado().getUsuarioId());