fixed bug #7906 - correção filtros RelatorioObservacaoConferenciaMovimento
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@62122 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
c19e33ad29
commit
9a35465167
|
@ -61,11 +61,20 @@ public class RelatorioObservacaoConferenciaMovimento extends Relatorio {
|
|||
.append("LEFT JOIN EVENTO_EXTRA EE ON EE.EVENTOEXTRA_ID = LOG.EVENTOEXTRA_ID ")
|
||||
.append("LEFT JOIN TIPO_EVENTO_EXTRA TEE ON TEE.TIPOEVENTOEXTRA_ID = EE.TIPOEVENTOEXTRA_ID ")
|
||||
.append("WHERE LOG.ACTIVO = 1 ")
|
||||
.append("AND C.DATAMOVIMENTO BETWEEN :dataInicial AND :dataFinal ")
|
||||
.append("AND LOG.STATUS = :pendencia ")
|
||||
.append("AND B.IMPORTETAXAEMBARQUE = :taxaEmbarque ")
|
||||
.append("AND B.IMPORTEOUTROS = :outros ");
|
||||
.append("AND C.DATAMOVIMENTO BETWEEN :dataInicial AND :dataFinal ");
|
||||
|
||||
if(pendencia){
|
||||
sQuery.append("AND LOG.STATUS = 1 ");
|
||||
}
|
||||
|
||||
if (taxaEmbarque) {
|
||||
sQuery.append("AND B.IMPORTETAXAEMBARQUE > 0 ");
|
||||
}
|
||||
|
||||
if (outros) {
|
||||
sQuery.append("AND B.IMPORTEOUTROS > 0 ");
|
||||
}
|
||||
|
||||
if (credito != null){
|
||||
sQuery.append("AND LOG.INDCREDITO = :credito ");
|
||||
}
|
||||
|
@ -92,9 +101,6 @@ public class RelatorioObservacaoConferenciaMovimento extends Relatorio {
|
|||
}
|
||||
stmt.setDate("dataInicial", new java.sql.Date(dataInicial.getTime()));
|
||||
stmt.setDate("dataFinal", new java.sql.Date(dataFinal.getTime()));
|
||||
stmt.setBoolean("pendencia", pendencia);
|
||||
stmt.setBoolean("taxaEmbarque", taxaEmbarque);
|
||||
stmt.setBoolean("outros", outros);
|
||||
|
||||
if (credito != null){
|
||||
stmt.setBoolean("credito", credito);
|
||||
|
|
Binary file not shown.
|
@ -1,7 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="RelatorioObservacaoConferenciaMovimento" pageWidth="1200" pageHeight="720" orientation="Landscape" whenNoDataType="NoDataSection" columnWidth="1180" leftMargin="10" rightMargin="10" topMargin="20" bottomMargin="20" uuid="84b9dfcf-8ec5-4f51-80cc-7339e3b158b4">
|
||||
<property name="ireport.zoom" value="2.415765000000081"/>
|
||||
<property name="ireport.x" value="1909"/>
|
||||
<property name="ireport.zoom" value="1.50000000000005"/>
|
||||
<property name="ireport.x" value="0"/>
|
||||
<property name="ireport.y" value="0"/>
|
||||
<style name="Crosstab Data Text" hAlign="Center"/>
|
||||
<parameter name="empresa" class="java.lang.String"/>
|
||||
|
@ -219,7 +219,7 @@
|
|||
<textFieldExpression><![CDATA[$F{preco}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||
<reportElement uuid="d1baff93-b9bd-4e66-8826-37f87ab01fd3" stretchType="RelativeToTallestObject" isPrintRepeatedValues="false" mode="Transparent" x="529" y="0" width="375" height="12" backcolor="#E6E6E6"/>
|
||||
<reportElement uuid="d1baff93-b9bd-4e66-8826-37f87ab01fd3" stretchType="RelativeToTallestObject" mode="Transparent" x="529" y="0" width="375" height="12" backcolor="#E6E6E6"/>
|
||||
<textElement verticalAlignment="Middle">
|
||||
<font size="9" isBold="false"/>
|
||||
</textElement>
|
||||
|
|
Loading…
Reference in New Issue