fixes bug #9388
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@73457 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
a68f77aec1
commit
35880a821d
|
@ -0,0 +1,166 @@
|
||||||
|
package com.rjconsultores.ventaboletos.relatorios.impl;
|
||||||
|
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import java.sql.Connection;
|
||||||
|
import java.sql.ResultSet;
|
||||||
|
import java.sql.Timestamp;
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.Aidf;
|
||||||
|
import com.rjconsultores.ventaboletos.relatorios.utilitarios.DataSource;
|
||||||
|
import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio;
|
||||||
|
import com.rjconsultores.ventaboletos.relatorios.utilitarios.RelatorioDocumentosFiscaisBean;
|
||||||
|
import com.rjconsultores.ventaboletos.utilerias.DateUtil;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.NamedParameterStatement;
|
||||||
|
|
||||||
|
import net.sf.jasperreports.engine.data.JRBeanCollectionDataSource;
|
||||||
|
|
||||||
|
public class RelatorioDocumentosFiscais extends Relatorio {
|
||||||
|
|
||||||
|
public RelatorioDocumentosFiscais(Map<String, Object> parametros, Connection conexao) {
|
||||||
|
super(parametros, conexao);
|
||||||
|
}
|
||||||
|
|
||||||
|
private List<RelatorioDocumentosFiscaisBean> lsDadosRelatorio;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected void processaParametros() throws Exception {
|
||||||
|
|
||||||
|
this.setCustomDataSource(new DataSource(this) {
|
||||||
|
@Override
|
||||||
|
public void initDados() throws Exception {
|
||||||
|
|
||||||
|
Connection conexao = this.relatorio.getConexao();
|
||||||
|
|
||||||
|
Map<String, Object> parametros = this.relatorio.getParametros();
|
||||||
|
|
||||||
|
Integer empresaId = (Integer) parametros.get("EMPRESA_ID");
|
||||||
|
String agencia = (String) parametros.get("PUNTOVENTA");
|
||||||
|
String tipoLinha = (String) parametros.get("TIPO_LINHA");
|
||||||
|
Aidf aidf = (Aidf) parametros.get("AIDF");
|
||||||
|
Boolean somenteCancelado = (Boolean) parametros.get("SOMENTE_CANCELADO");
|
||||||
|
|
||||||
|
String sql = getSql(empresaId, agencia, somenteCancelado, tipoLinha, aidf);
|
||||||
|
|
||||||
|
NamedParameterStatement stmt = new NamedParameterStatement(conexao, sql);
|
||||||
|
|
||||||
|
stmt.setTimestamp("DATA_INICIAL", (Timestamp) parametros.get("DATA_INICIAL"));
|
||||||
|
stmt.setTimestamp("DATA_FINAL", (Timestamp) parametros.get("DATA_FINAL"));
|
||||||
|
|
||||||
|
ResultSet rset = null;
|
||||||
|
rset = stmt.executeQuery();
|
||||||
|
|
||||||
|
lsDadosRelatorio = new ArrayList<RelatorioDocumentosFiscaisBean>();
|
||||||
|
BigDecimal saldo = BigDecimal.ZERO;
|
||||||
|
BigDecimal total = BigDecimal.ZERO;
|
||||||
|
|
||||||
|
while (rset.next()) {
|
||||||
|
|
||||||
|
RelatorioDocumentosFiscaisBean bean = new RelatorioDocumentosFiscaisBean();
|
||||||
|
bean.setNumAIDF((String) (rset.getObject("numAIDF") == null ? "" : rset.getObject("numAIDF")));
|
||||||
|
bean.setFormInicial((String) rset.getObject("formInicial"));
|
||||||
|
bean.setFormFinal((String) rset.getObject("formFinal"));
|
||||||
|
bean.setSerie((String) rset.getObject("serie"));
|
||||||
|
bean.setSubSerie((String) rset.getObject("subSerie"));
|
||||||
|
bean.setValorContabil((BigDecimal) rset.getObject("valorContabil"));
|
||||||
|
bean.setValorBaseCalculo((BigDecimal) rset.getObject("valorBaseCalculo"));
|
||||||
|
bean.setValorAliquiotaICMS((BigDecimal) rset.getObject("valorAliquiotaICMS"));
|
||||||
|
bean.setValorICMS((BigDecimal) rset.getObject("valorICMS"));
|
||||||
|
bean.setOutras((BigDecimal) rset.getObject("outras"));
|
||||||
|
bean.setValorCancelado((BigDecimal) rset.getObject("valorCancelado"));
|
||||||
|
bean.setEstadoId((Integer) Integer.parseInt(rset.getObject("estadoId").toString()));
|
||||||
|
|
||||||
|
lsDadosRelatorio.add(bean);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (lsDadosRelatorio.size() > 0) {
|
||||||
|
setLsDadosRelatorio(lsDadosRelatorio);
|
||||||
|
parametros.put("SALDO", saldo.subtract(total));
|
||||||
|
parametros.put("TOTAL", total);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLsDadosRelatorio(List<RelatorioDocumentosFiscaisBean> lsDadosRelatorio) {
|
||||||
|
this.setCollectionDataSource(new JRBeanCollectionDataSource(lsDadosRelatorio));
|
||||||
|
this.lsDadosRelatorio = lsDadosRelatorio;
|
||||||
|
}
|
||||||
|
|
||||||
|
private String getSql(Integer empresaId, String agencia, Boolean somenteCancelado, String tipoLinha, Aidf aidf) {
|
||||||
|
|
||||||
|
StringBuilder sql = new StringBuilder();
|
||||||
|
sql.append("SELECT coalesce(tabela.numAidf, '') as numAidf, ");
|
||||||
|
sql.append(" tabela.formInicial as formInicial, ");
|
||||||
|
sql.append(" tabela.formFinal as formFinal, ");
|
||||||
|
sql.append(" tabela.serie as serie, ");
|
||||||
|
sql.append(" tabela.subSerie as subSerie , ");
|
||||||
|
sql.append(" coalesce(sum(tabela.valorContabil),0) AS valorContabil, ");
|
||||||
|
sql.append(" (sum(tabela.valorContabil) - (sum(tabela.valorContabil) * tabela.redBaseCalcIcms)) AS valorBaseCalculo, ");
|
||||||
|
sql.append(" tabela.ICMS AS valorAliquiotaICMS, ");
|
||||||
|
sql.append(" (sum(tabela.valorContabil) - (sum(tabela.valorContabil) * tabela.redBaseCalcIcms)) * tabela.ICMS AS valorICMS, ");
|
||||||
|
sql.append(" sum(tabela.valorContabil) - (sum(tabela.valorContabil) - (sum(tabela.valorContabil) * tabela.redBaseCalcIcms)) AS outras, ");
|
||||||
|
sql.append(" coalesce(sum(tabela.valorCancelado),0) AS valorCancelado, ");
|
||||||
|
sql.append(" tabela.estadoId as estadoId ");
|
||||||
|
sql.append("FROM ");
|
||||||
|
sql.append(" (SELECT a.ACFISCAL AS numAidf, ");
|
||||||
|
sql.append(" a.FORMINICIAL AS formInicial, ");
|
||||||
|
sql.append(" a.FORMFINAL AS formFinal, ");
|
||||||
|
sql.append(" a.SERIE AS serie, ");
|
||||||
|
sql.append(" a.SUBSERIE AS subSerie, ");
|
||||||
|
sql.append(" c.MOTIVOCANCELACION_ID AS motivoCancelacion, ");
|
||||||
|
sql.append(" c.PRECIOBASE AS tarifa, ");
|
||||||
|
sql.append(" ed.ICMS AS ICMS, ");
|
||||||
|
sql.append(" CASE WHEN c.MOTIVOCANCELACION_ID IS NULL THEN c.PRECIOPAGADO ELSE 0 END AS valorContabil, ");
|
||||||
|
sql.append(" CASE WHEN c.MOTIVOCANCELACION_ID IS NOT NULL THEN c.PRECIOPAGADO ELSE 0 ");
|
||||||
|
sql.append(" END AS valorCancelado, ");
|
||||||
|
sql.append(" coalesce(ei.PORCREDBASEICMS / 100,0) AS redBaseCalcIcms, ");
|
||||||
|
sql.append(" ei.estado_id AS estadoId, ");
|
||||||
|
sql.append(" po.DESCPARADA AS origem, ");
|
||||||
|
sql.append(" pd.DESCPARADA AS destino, ");
|
||||||
|
sql.append(" CASE WHEN((coalesce(eos.cveestado, eo.cveestado)) = (coalesce(eds.cveestado, ed.cveestado))) then 0 else 1 end as isInterEstadual ");
|
||||||
|
sql.append(" FROM caja c ");
|
||||||
|
sql.append(" INNER JOIN aidf a ON a.aidf_id = c.aidf_id ");
|
||||||
|
sql.append(" JOIN marca m ON c.marca_id = m.marca_id ");
|
||||||
|
sql.append(" JOIN empresa e ON e.empresa_id = m.empresa_id ");
|
||||||
|
sql.append(" JOIN parada po ON po.parada_id = c.origen_id ");
|
||||||
|
sql.append(" JOIN ciudad co ON co.ciudad_id = po.ciudad_id ");
|
||||||
|
sql.append(" JOIN estado eo ON eo.estado_id = co.estado_id ");
|
||||||
|
sql.append(" JOIN parada pd ON pd.parada_id = c.destino_id ");
|
||||||
|
sql.append(" JOIN ciudad cd ON cd.ciudad_id = pd.ciudad_id ");
|
||||||
|
sql.append(" JOIN estado ed ON ed.estado_id = cd.estado_id ");
|
||||||
|
sql.append(" LEFT JOIN alias_servico s ON s.origen_id = c.origen_id ");
|
||||||
|
sql.append(" AND s.destino_id = c.destino_id ");
|
||||||
|
sql.append(" AND (s.corrida_id = c.corrida_id ");
|
||||||
|
sql.append(" OR s.corrida_id IS NULL) ");
|
||||||
|
sql.append(" AND s.ruta_id = c.ruta_id ");
|
||||||
|
sql.append(" LEFT JOIN parada pos ON pos.parada_id = s.aliasorigen_id ");
|
||||||
|
sql.append(" LEFT JOIN ciudad cos ON cos.ciudad_id = pos.ciudad_id ");
|
||||||
|
sql.append(" LEFT JOIN estado eos ON eos.estado_id = cos.estado_id ");
|
||||||
|
sql.append(" LEFT JOIN parada pds ON pds.parada_id = s.aliasdestino_id ");
|
||||||
|
sql.append(" LEFT JOIN ciudad cds ON cds.ciudad_id = pds.ciudad_id ");
|
||||||
|
sql.append(" LEFT JOIN estado eds ON eds.estado_id = cds.estado_id ");
|
||||||
|
sql.append(" INNER JOIN empresa_imposto ei ON ei.empresa_id = e.empresa_id ");
|
||||||
|
|
||||||
|
sql.append(" WHERE c.feccreacion between :DATA_INICIAL and :DATA_FINAL ");
|
||||||
|
sql.append("AND c.EMPRESACORRIDA_ID =" + empresaId + " ");
|
||||||
|
sql.append(somenteCancelado == true ? " AND c.INDCANCELACION = 1" : " ");
|
||||||
|
sql.append("AND a.AIDF_ID = " + aidf.getAidfId() + " ");
|
||||||
|
sql.append(" AND coalesce(eos.cveestado, eo.cveestado) IN ('BA') )tabela ");
|
||||||
|
sql.append(tipoLinha.equals("INTERMUNICIPAL") ? " where tabela.isInterEstadual = 1" : tipoLinha.equals("INTERESTADUAL") ? " where tabela.isInterEstadual = 0" : " ");
|
||||||
|
sql.append("GROUP BY tabela.numAidf, ");
|
||||||
|
sql.append(" tabela.formInicial, ");
|
||||||
|
sql.append(" tabela.formFinal, ");
|
||||||
|
sql.append(" tabela.serie, ");
|
||||||
|
sql.append(" tabela.subSerie, ");
|
||||||
|
sql.append(" tabela.ICMS, ");
|
||||||
|
sql.append(" tabela.redBaseCalcIcms, ");
|
||||||
|
sql.append(" tabela.estadoId");
|
||||||
|
|
||||||
|
return sql.toString();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,23 @@
|
||||||
|
#geral
|
||||||
|
msg.noData=Não foi possivel obter dados com os parâmetros informados.
|
||||||
|
|
||||||
|
#Labels cabeçalho
|
||||||
|
cabecalho.nome=Relatório Documentos Fiscais
|
||||||
|
cabecalho.relatorio=Relatório
|
||||||
|
label.periodo=Período:
|
||||||
|
label.UF=UF
|
||||||
|
label.especie=Espécie
|
||||||
|
label.empresa=Empresa
|
||||||
|
label.formInicial=Nº Inicial
|
||||||
|
label.formFinal=Nº Final
|
||||||
|
label.numAIDF=AIDF
|
||||||
|
label.serie=Série
|
||||||
|
label.subSerie=SubSérie
|
||||||
|
label.valorContabil=Vlr Contábil
|
||||||
|
label.valorBaseCalculo=Vlr Base Cálc.
|
||||||
|
label.valorAliquiotaICMS=Alíquota ICMS
|
||||||
|
label.valorICMS=Valor ICMS
|
||||||
|
label.isentas=Isentas
|
||||||
|
label.outras=Outras
|
||||||
|
label.valorCancelado=Qtd. Cancec
|
||||||
|
header.data=Período
|
Binary file not shown.
|
@ -0,0 +1,312 @@
|
||||||
|
<?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="RelatorioAgenciaFechamento" pageWidth="898" pageHeight="595" orientation="Landscape" whenNoDataType="NoDataSection" columnWidth="858" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" resourceBundle="RelatorioAgenciaFechamento" whenResourceMissingType="Empty" uuid="94834362-0ecc-46da-b0a2-5cdee355da3e">
|
||||||
|
<property name="ireport.zoom" value="2.6573415000000056"/>
|
||||||
|
<property name="ireport.x" value="470"/>
|
||||||
|
<property name="ireport.y" value="0"/>
|
||||||
|
<property name="net.sf.jasperreports.export.xls.exclude.origin.band.2" value="pageHeader"/>
|
||||||
|
<property name="net.sf.jasperreports.export.xls.exclude.origin.keep.first.band.2" value="columnHeader"/>
|
||||||
|
<property name="net.sf.jasperreports.export.xls.remove.empty.space.between.rows" value="true"/>
|
||||||
|
<property name="net.sf.jasperreports.export.xls.remove.empty.space.between.columns" value="true"/>
|
||||||
|
<property name="collapseRowSpan" value="true"/>
|
||||||
|
<parameter name="DATA_INICIAL" class="java.util.Date">
|
||||||
|
<defaultValueExpression><![CDATA[]]></defaultValueExpression>
|
||||||
|
</parameter>
|
||||||
|
<parameter name="DATA_FINAL" class="java.util.Date"/>
|
||||||
|
<parameter name="TITULO" class="java.lang.String"/>
|
||||||
|
<parameter name="EMPRESA" class="java.lang.String"/>
|
||||||
|
<queryString>
|
||||||
|
<![CDATA[]]>
|
||||||
|
</queryString>
|
||||||
|
<field name="numAIDF" class="java.lang.String"/>
|
||||||
|
<field name="formInicial" class="java.lang.String"/>
|
||||||
|
<field name="formFinal" class="java.lang.String"/>
|
||||||
|
<field name="serie" class="java.lang.String"/>
|
||||||
|
<field name="subSerie" class="java.lang.String"/>
|
||||||
|
<field name="valorContabil" class="java.math.BigDecimal"/>
|
||||||
|
<field name="valorBaseCalculo" class="java.math.BigDecimal"/>
|
||||||
|
<field name="valorAliquiotaICMS" class="java.math.BigDecimal"/>
|
||||||
|
<field name="valorICMS" class="java.math.BigDecimal"/>
|
||||||
|
<field name="outras" class="java.math.BigDecimal"/>
|
||||||
|
<field name="valorCancelado" class="java.math.BigDecimal"/>
|
||||||
|
<field name="nomeEstado" class="java.lang.String"/>
|
||||||
|
<field name="nomeOrigem" class="java.lang.String"/>
|
||||||
|
<field name="nomeDestino" class="java.lang.String"/>
|
||||||
|
<field name="codOrigem" class="java.lang.String"/>
|
||||||
|
<field name="codDestino" class="java.lang.String"/>
|
||||||
|
<field name="isentas" class="java.math.BigDecimal"/>
|
||||||
|
<background>
|
||||||
|
<band splitType="Stretch"/>
|
||||||
|
</background>
|
||||||
|
<pageHeader>
|
||||||
|
<band height="48" splitType="Stretch">
|
||||||
|
<textField>
|
||||||
|
<reportElement x="258" y="26" width="53" height="17" uuid="e5d4714c-07cc-42ff-a7a8-76d6f6d3e716"/>
|
||||||
|
<textElement>
|
||||||
|
<font size="12" isBold="true"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$R{header.data}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField>
|
||||||
|
<reportElement x="701" y="6" width="56" height="20" uuid="66b2d0f6-2bf1-4bc7-9ec0-a34444e04d60"/>
|
||||||
|
<textElement>
|
||||||
|
<font size="12"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$R{header.data.hora}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField evaluationTime="Report">
|
||||||
|
<reportElement x="833" y="26" width="22" height="17" uuid="8ca68351-fc00-4f19-b94f-f2fd1f41964f"/>
|
||||||
|
<textElement textAlignment="Right">
|
||||||
|
<font size="12"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[" " + $V{PAGE_NUMBER}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField>
|
||||||
|
<reportElement x="767" y="26" width="42" height="17" uuid="be1692e9-f130-4d08-9173-6ca3e4699030"/>
|
||||||
|
<textElement>
|
||||||
|
<font size="12"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$R{header.pagina}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField>
|
||||||
|
<reportElement x="0" y="0" width="231" height="20" uuid="652312bd-292a-424d-a234-5f157e3699c6"/>
|
||||||
|
<textElement>
|
||||||
|
<font size="14"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$P{TITULO}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField pattern="dd/MM/yyyy HH:mm">
|
||||||
|
<reportElement x="757" y="6" width="98" height="20" uuid="6f671365-868e-41a6-81ee-a308d1d91e1d"/>
|
||||||
|
<textElement textAlignment="Left">
|
||||||
|
<font size="12"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[new java.util.Date()]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField>
|
||||||
|
<reportElement x="809" y="26" width="24" height="17" uuid="7548d623-fb6c-48d4-b8b7-504f5437a79a"/>
|
||||||
|
<textElement textAlignment="Right">
|
||||||
|
<font size="12"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$V{PAGE_NUMBER}+" de"]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<line>
|
||||||
|
<reportElement x="0" y="45" width="857" height="1" uuid="ee05e1fa-6963-4ff9-b3c8-c6cd1bb54e94"/>
|
||||||
|
</line>
|
||||||
|
<textField>
|
||||||
|
<reportElement x="99" y="23" width="132" height="20" uuid="4d4f219a-3607-4255-b549-fc5ada2ad59e"/>
|
||||||
|
<textElement verticalAlignment="Bottom">
|
||||||
|
<font size="10"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$P{EMPRESA}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField pattern="dd/MM/yyyy">
|
||||||
|
<reportElement x="311" y="26" width="53" height="17" uuid="eed2f1a3-3688-4d0c-b0da-77ff99289c93"/>
|
||||||
|
<textFieldExpression><![CDATA[$P{DATA_INICIAL}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField pattern="dd/MM/yyyy">
|
||||||
|
<reportElement x="364" y="26" width="57" height="17" uuid="b151a471-e821-4b4f-b9a2-a5cc73d2e702"/>
|
||||||
|
<textFieldExpression><![CDATA[$P{DATA_FINAL}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
|
<reportElement positionType="FixRelativeToBottom" stretchType="RelativeToTallestObject" x="0" y="23" width="99" height="20" isPrintWhenDetailOverflows="true" uuid="e97938f6-a4ba-488b-b53c-50d9420422ac"/>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Bottom" markup="none">
|
||||||
|
<font size="11" isBold="true"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$R{label.empresa}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
</band>
|
||||||
|
</pageHeader>
|
||||||
|
<columnHeader>
|
||||||
|
<band height="32" splitType="Stretch">
|
||||||
|
<line>
|
||||||
|
<reportElement mode="Transparent" x="0" y="30" width="857" height="1" uuid="ae94e51c-f84c-405c-a9c3-d8fd0c48f03a"/>
|
||||||
|
</line>
|
||||||
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
|
<reportElement positionType="FixRelativeToBottom" stretchType="RelativeToTallestObject" x="0" y="2" width="99" height="26" isPrintWhenDetailOverflows="true" uuid="2cbc8ddc-38e5-4914-8189-5761ddeb2ce9"/>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Bottom" markup="none">
|
||||||
|
<font size="11" isBold="true"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$R{label.numAIDF}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
|
<reportElement positionType="FixRelativeToBottom" stretchType="RelativeToTallestObject" x="99" y="2" width="53" height="26" isPrintWhenDetailOverflows="true" uuid="7965e761-2e24-4f17-84eb-9431c98ce72c"/>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Bottom" markup="none">
|
||||||
|
<font size="11" isBold="true"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$R{label.formInicial}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
|
<reportElement positionType="FixRelativeToBottom" stretchType="RelativeToTallestObject" x="152" y="2" width="53" height="26" isPrintWhenDetailOverflows="true" uuid="bbaa5f53-76e0-491e-9145-e522122709e5"/>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Bottom" markup="none">
|
||||||
|
<font size="11" isBold="true"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$R{label.formFinal}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
|
<reportElement positionType="FixRelativeToBottom" stretchType="RelativeToTallestObject" mode="Transparent" x="205" y="2" width="53" height="26" isPrintWhenDetailOverflows="true" uuid="2b25ca5a-2c25-4c7d-87d1-5bfd205177a9"/>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Bottom" markup="none">
|
||||||
|
<font size="11" isBold="true"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$R{label.serie}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
|
<reportElement positionType="FixRelativeToBottom" stretchType="RelativeToTallestObject" mode="Transparent" x="258" y="2" width="53" height="26" isPrintWhenDetailOverflows="true" uuid="ab6b6770-67e8-4224-9304-8de30d3c1384"/>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Bottom" markup="none">
|
||||||
|
<font size="11" isBold="true"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$R{label.subSerie}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
|
<reportElement positionType="FixRelativeToBottom" stretchType="RelativeToTallestObject" mode="Transparent" x="311" y="2" width="53" height="26" isPrintWhenDetailOverflows="true" uuid="e3f4df4e-24a9-45b3-8ac3-f8b66d46a15f"/>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Bottom" markup="none">
|
||||||
|
<font size="11" isBold="true"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$R{label.valorContabil}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
|
<reportElement positionType="FixRelativeToBottom" stretchType="RelativeToTallestObject" mode="Transparent" x="364" y="2" width="53" height="26" isPrintWhenDetailOverflows="true" uuid="79775d53-3de4-4c0c-8ec7-3be13738dc14"/>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Bottom" markup="none">
|
||||||
|
<font size="11" isBold="true"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$R{label.valorBaseCalculo}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
|
<reportElement positionType="FixRelativeToBottom" stretchType="RelativeToTallestObject" mode="Transparent" x="417" y="2" width="53" height="26" isPrintWhenDetailOverflows="true" uuid="746627ad-15b0-4435-93ce-6d370b75e594"/>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Bottom" markup="none">
|
||||||
|
<font size="11" isBold="true"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$R{label.valorAliquiotaICMS}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
|
<reportElement positionType="FixRelativeToBottom" stretchType="RelativeToTallestObject" mode="Transparent" x="470" y="2" width="53" height="26" isPrintWhenDetailOverflows="true" uuid="0844b500-feab-477d-ade1-2d943491de32"/>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Bottom" markup="none">
|
||||||
|
<font size="11" isBold="true"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$R{label.valorICMS}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
|
<reportElement positionType="FixRelativeToBottom" stretchType="RelativeToTallestObject" mode="Transparent" x="523" y="2" width="53" height="26" isPrintWhenDetailOverflows="true" uuid="3647e647-81bb-4098-afce-52d942daa341"/>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Bottom" markup="none">
|
||||||
|
<font size="11" isBold="true"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$R{label.isentas}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
|
<reportElement positionType="FixRelativeToBottom" stretchType="RelativeToTallestObject" mode="Transparent" x="576" y="2" width="53" height="26" isPrintWhenDetailOverflows="true" uuid="328a6678-fc02-4845-98e6-a3d3bfaa2c73"/>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Bottom" markup="none">
|
||||||
|
<font size="11" isBold="true"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$R{label.outras}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
|
<reportElement positionType="FixRelativeToBottom" stretchType="RelativeToTallestObject" mode="Transparent" x="629" y="2" width="57" height="26" isPrintWhenDetailOverflows="true" uuid="2cca17d2-47ba-4dba-a8c3-96e4f6d7deff"/>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Bottom" markup="none">
|
||||||
|
<font size="11" isBold="true"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$R{label.valorCancelado}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
</band>
|
||||||
|
</columnHeader>
|
||||||
|
<detail>
|
||||||
|
<band height="17" splitType="Stretch">
|
||||||
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
|
<reportElement stretchType="RelativeToTallestObject" mode="Transparent" x="470" y="0" width="53" height="17" isPrintWhenDetailOverflows="true" uuid="784343f8-f7aa-4997-82e7-312878bd9a27"/>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Top" markup="none">
|
||||||
|
<font size="11" isBold="false"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$F{valorICMS}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
|
||||||
|
<reportElement stretchType="RelativeToTallestObject" x="99" y="0" width="53" height="17" isPrintWhenDetailOverflows="true" uuid="ad46494b-0240-46d1-a775-f91f0035d7f8"/>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Top" markup="none">
|
||||||
|
<font size="11" isBold="false"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$F{formInicial}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
|
||||||
|
<reportElement stretchType="RelativeToTallestObject" mode="Transparent" x="311" y="0" width="53" height="17" isPrintWhenDetailOverflows="true" uuid="0ed9578b-73d5-4f51-b21c-07d9419bbc08"/>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Top" markup="none">
|
||||||
|
<font size="11" isBold="false"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$F{valorContabil}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
|
<reportElement stretchType="RelativeToTallestObject" x="152" y="0" width="53" height="17" isPrintWhenDetailOverflows="true" uuid="1ed844e5-7aa4-49ee-8024-765e5ae49f74"/>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Top" markup="none">
|
||||||
|
<font size="11" isBold="false"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$F{formFinal}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
|
<reportElement stretchType="RelativeToTallestObject" mode="Transparent" x="364" y="0" width="53" height="17" isPrintWhenDetailOverflows="true" uuid="92017408-1781-4e17-90b7-5ff86457cf6d"/>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Top" markup="none">
|
||||||
|
<font size="11" isBold="false"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$F{valorBaseCalculo}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
|
||||||
|
<reportElement stretchType="RelativeToTallestObject" mode="Transparent" x="523" y="0" width="53" height="17" isPrintWhenDetailOverflows="true" uuid="b7842ed3-aa20-4fe9-996a-c8397aa66c40"/>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Top" markup="none">
|
||||||
|
<font size="11" isBold="false"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$F{isentas}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
|
||||||
|
<reportElement stretchType="RelativeToTallestObject" mode="Transparent" x="417" y="0" width="53" height="17" isPrintWhenDetailOverflows="true" uuid="36f5d507-0340-4c7e-b44b-5057c1e8bee6"/>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Top" markup="none">
|
||||||
|
<font size="11" isBold="false"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$F{valorAliquiotaICMS}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
|
<reportElement stretchType="RelativeToTallestObject" mode="Transparent" x="576" y="0" width="53" height="17" isPrintWhenDetailOverflows="true" uuid="c24531bc-66b7-459b-9c60-07bea18e98d9"/>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Top" markup="none">
|
||||||
|
<font size="11" isBold="false"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$F{outras}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
|
||||||
|
<reportElement stretchType="RelativeToTallestObject" mode="Transparent" x="629" y="0" width="57" height="17" isPrintWhenDetailOverflows="true" uuid="e2ad1400-e2c6-48b0-98c8-812d3c8f008d"/>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Top" markup="none">
|
||||||
|
<font size="11" isBold="false"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$F{valorCancelado}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
|
<reportElement stretchType="RelativeToTallestObject" mode="Transparent" x="258" y="0" width="53" height="17" isPrintWhenDetailOverflows="true" uuid="7f08e540-2cf9-4da3-b40a-fb7d5275751f"/>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Top" markup="none">
|
||||||
|
<font size="11" isBold="false"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$F{subSerie}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
|
||||||
|
<reportElement stretchType="RelativeToTallestObject" mode="Transparent" x="205" y="0" width="53" height="17" isPrintWhenDetailOverflows="true" uuid="16c5bcd4-ac1c-4c49-b065-5794fb9c2e32"/>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Top" markup="none">
|
||||||
|
<font size="11" isBold="false"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$F{serie}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" isBlankWhenNull="false">
|
||||||
|
<reportElement stretchType="RelativeToTallestObject" x="0" y="0" width="99" height="17" isPrintWhenDetailOverflows="true" uuid="16f536ed-9001-4b34-85f4-a01198390b7d"/>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Top" markup="none">
|
||||||
|
<font size="11" isBold="false"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$F{numAIDF}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
</band>
|
||||||
|
</detail>
|
||||||
|
<lastPageFooter>
|
||||||
|
<band height="18">
|
||||||
|
<line>
|
||||||
|
<reportElement mode="Transparent" x="0" y="0" width="857" height="1" uuid="1653e342-87ec-40f2-94ad-5d27b1020c3a"/>
|
||||||
|
</line>
|
||||||
|
</band>
|
||||||
|
</lastPageFooter>
|
||||||
|
<noData>
|
||||||
|
<band height="20">
|
||||||
|
<textField>
|
||||||
|
<reportElement x="0" y="0" width="857" height="20" uuid="5a6c1b7b-2242-4cf1-b957-723b906ee620"/>
|
||||||
|
<textFieldExpression><![CDATA[$R{msg.noData}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
</band>
|
||||||
|
</noData>
|
||||||
|
</jasperReport>
|
|
@ -0,0 +1,170 @@
|
||||||
|
package com.rjconsultores.ventaboletos.relatorios.utilitarios;
|
||||||
|
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
|
||||||
|
public class RelatorioDocumentosFiscaisBean {
|
||||||
|
|
||||||
|
private String numAIDF;
|
||||||
|
private String formInicial;
|
||||||
|
private String formFinal;
|
||||||
|
private String serie;
|
||||||
|
private String subSerie;
|
||||||
|
private BigDecimal valorContabil;
|
||||||
|
private BigDecimal valorBaseCalculo;
|
||||||
|
private BigDecimal valorAliquiotaICMS;
|
||||||
|
private BigDecimal valorICMS;
|
||||||
|
private BigDecimal outras;
|
||||||
|
private BigDecimal isentas;
|
||||||
|
private BigDecimal valorCancelado;
|
||||||
|
private String nomeEstado;
|
||||||
|
private Integer estadoId;
|
||||||
|
private String nomeOrigem;
|
||||||
|
private String nomeDestino;
|
||||||
|
private String codOrigem;
|
||||||
|
private String codDestino;
|
||||||
|
|
||||||
|
public String getNumAIDF() {
|
||||||
|
return numAIDF;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setNumAIDF(String numAIDF) {
|
||||||
|
this.numAIDF = numAIDF;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getFormInicial() {
|
||||||
|
return formInicial;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFormInicial(String formInicial) {
|
||||||
|
this.formInicial = formInicial;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getFormFinal() {
|
||||||
|
return formFinal;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFormFinal(String formFinal) {
|
||||||
|
this.formFinal = formFinal;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSerie() {
|
||||||
|
return serie;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSerie(String serie) {
|
||||||
|
this.serie = serie;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSubSerie() {
|
||||||
|
return subSerie;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSubSerie(String subSerie) {
|
||||||
|
this.subSerie = subSerie;
|
||||||
|
}
|
||||||
|
|
||||||
|
public BigDecimal getValorContabil() {
|
||||||
|
return valorContabil;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setValorContabil(BigDecimal valorContabil) {
|
||||||
|
this.valorContabil = valorContabil;
|
||||||
|
}
|
||||||
|
|
||||||
|
public BigDecimal getValorBaseCalculo() {
|
||||||
|
return valorBaseCalculo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setValorBaseCalculo(BigDecimal valorBaseCalculo) {
|
||||||
|
this.valorBaseCalculo = valorBaseCalculo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public BigDecimal getValorICMS() {
|
||||||
|
return valorICMS;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setValorICMS(BigDecimal valorICMS) {
|
||||||
|
this.valorICMS = valorICMS;
|
||||||
|
}
|
||||||
|
|
||||||
|
public BigDecimal getOutras() {
|
||||||
|
return outras;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setOutras(BigDecimal outras) {
|
||||||
|
this.outras = outras;
|
||||||
|
}
|
||||||
|
|
||||||
|
public BigDecimal getValorCancelado() {
|
||||||
|
return valorCancelado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setValorCancelado(BigDecimal valorCancelado) {
|
||||||
|
this.valorCancelado = valorCancelado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getNomeEstado() {
|
||||||
|
return nomeEstado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setNomeEstado(String nomeEstado) {
|
||||||
|
this.nomeEstado = nomeEstado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getNomeOrigem() {
|
||||||
|
return nomeOrigem;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setNomeOrigem(String nomeOrigem) {
|
||||||
|
this.nomeOrigem = nomeOrigem;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getNomeDestino() {
|
||||||
|
return nomeDestino;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setNomeDestino(String nomeDestino) {
|
||||||
|
this.nomeDestino = nomeDestino;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCodOrigem() {
|
||||||
|
return codOrigem;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCodOrigem(String codOrigem) {
|
||||||
|
this.codOrigem = codOrigem;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCodDestino() {
|
||||||
|
return codDestino;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCodDestino(String codDestino) {
|
||||||
|
this.codDestino = codDestino;
|
||||||
|
}
|
||||||
|
|
||||||
|
public BigDecimal getValorAliquiotaICMS() {
|
||||||
|
return valorAliquiotaICMS;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setValorAliquiotaICMS(BigDecimal valorAliquiotaICMS) {
|
||||||
|
this.valorAliquiotaICMS = valorAliquiotaICMS;
|
||||||
|
}
|
||||||
|
|
||||||
|
public BigDecimal getIsentas() {
|
||||||
|
return isentas;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setIsentas(BigDecimal isentas) {
|
||||||
|
this.isentas = isentas;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getEstadoId() {
|
||||||
|
return estadoId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEstadoId(Integer estadoId) {
|
||||||
|
this.estadoId = estadoId;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,195 @@
|
||||||
|
package com.rjconsultores.ventaboletos.web.gui.controladores.relatorios;
|
||||||
|
|
||||||
|
import java.sql.Timestamp;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
import javax.sql.DataSource;
|
||||||
|
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.context.annotation.Scope;
|
||||||
|
import org.springframework.stereotype.Controller;
|
||||||
|
import org.zkoss.lang.Objects;
|
||||||
|
import org.zkoss.util.resource.Labels;
|
||||||
|
import org.zkoss.zk.ui.Component;
|
||||||
|
import org.zkoss.zk.ui.event.Event;
|
||||||
|
import org.zkoss.zkplus.databind.BindingListModelList;
|
||||||
|
import org.zkoss.zul.Checkbox;
|
||||||
|
import org.zkoss.zul.Comboitem;
|
||||||
|
import org.zkoss.zul.ComboitemRenderer;
|
||||||
|
import org.zkoss.zul.Datebox;
|
||||||
|
import org.zkoss.zul.Radio;
|
||||||
|
import org.zkoss.zul.Radiogroup;
|
||||||
|
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.Aidf;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.Empresa;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.Estado;
|
||||||
|
import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioDocumentosFiscais;
|
||||||
|
import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio;
|
||||||
|
import com.rjconsultores.ventaboletos.service.AidfService;
|
||||||
|
import com.rjconsultores.ventaboletos.service.EmpresaService;
|
||||||
|
import com.rjconsultores.ventaboletos.service.EstadoService;
|
||||||
|
import com.rjconsultores.ventaboletos.utilerias.DateUtil;
|
||||||
|
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.RenderEstadoUf;
|
||||||
|
|
||||||
|
@Controller("relatorioDocumentosFiscaisController")
|
||||||
|
@Scope("prototype")
|
||||||
|
public class RelatorioDocumentosFiscaisController extends MyGenericForwardComposer {
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
private static final String TODOS_VALUE = new Integer(-1).toString();
|
||||||
|
private static final String TODOS = "TODAS";
|
||||||
|
@Autowired
|
||||||
|
private EmpresaService empresaService;
|
||||||
|
@Autowired
|
||||||
|
private EstadoService estadoService;
|
||||||
|
private List<Empresa> lsEmpresa;
|
||||||
|
private List<Estado> lsEstado;
|
||||||
|
private MyComboboxEstandar cmbEmpresa;
|
||||||
|
private MyComboboxEstandar cmbEstado;
|
||||||
|
private MyComboboxEstandar cmbAidf;
|
||||||
|
private Datebox datInicial;
|
||||||
|
private Datebox datFinal;
|
||||||
|
@Autowired
|
||||||
|
private DataSource dataSourceRead;
|
||||||
|
private List<Aidf> aidfList;
|
||||||
|
private Checkbox ckbSomenteCancelado;
|
||||||
|
private Radiogroup rdgInterestadualMunicial;
|
||||||
|
@Autowired
|
||||||
|
private AidfService aidfService;
|
||||||
|
private List<Aidf> lsAidf;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void doAfterCompose(Component comp) throws Exception {
|
||||||
|
super.doAfterCompose(comp);
|
||||||
|
lsEmpresa = empresaService.obtenerTodos();
|
||||||
|
lsEstado = estadoService.obtenerTodos();
|
||||||
|
}
|
||||||
|
|
||||||
|
@SuppressWarnings({ "rawtypes", "unchecked" })
|
||||||
|
private void executarRelatorio() throws Exception {
|
||||||
|
Relatorio relatorio;
|
||||||
|
|
||||||
|
Map<String, Object> parametros = new HashMap<String, Object>();
|
||||||
|
|
||||||
|
Timestamp dataInicio = new Timestamp((DateUtil.inicioFecha((java.util.Date) this.datInicial.getValue()).getTime()));
|
||||||
|
Timestamp dataFinal = new Timestamp((DateUtil.fimFecha((java.util.Date) this.datFinal.getValue()).getTime()));
|
||||||
|
|
||||||
|
parametros.put("DATA_INICIAL", dataInicio);
|
||||||
|
parametros.put("DATA_FINAL", dataFinal);
|
||||||
|
|
||||||
|
Empresa empresa = (Empresa) cmbEmpresa.getSelectedItem().getValue();
|
||||||
|
Aidf aidf = (Aidf) cmbAidf.getSelectedItem().getValue();
|
||||||
|
Boolean somenteCancelado = ckbSomenteCancelado.isChecked();
|
||||||
|
|
||||||
|
Radio radio = rdgInterestadualMunicial.getSelectedItem();
|
||||||
|
String tipoLinha;
|
||||||
|
if (radio.getValue().equals("1")) {
|
||||||
|
tipoLinha = "INTERMUNICIPAL";
|
||||||
|
}
|
||||||
|
if (radio.getValue().equals("2")) {
|
||||||
|
tipoLinha = "INTERESTADUAL";
|
||||||
|
} else {
|
||||||
|
tipoLinha = "TODOS";
|
||||||
|
}
|
||||||
|
|
||||||
|
parametros.put("AIDF", aidf);
|
||||||
|
parametros.put("TIPO_LINHA", tipoLinha);
|
||||||
|
parametros.put("SOMENTE_CANCELADO", somenteCancelado);
|
||||||
|
if (empresa != null) {
|
||||||
|
parametros.put("EMPRESA", empresa.getNombempresa());
|
||||||
|
parametros.put("EMPRESA_ID", empresa.getEmpresaId());
|
||||||
|
} else {
|
||||||
|
parametros.put("EMPRESA", "TODOS");
|
||||||
|
}
|
||||||
|
parametros.put("TITULO", Labels.getLabel("relatorioDocumentosFiscaisController.window.title"));
|
||||||
|
|
||||||
|
relatorio = new RelatorioDocumentosFiscais(parametros, dataSourceRead.getConnection());
|
||||||
|
|
||||||
|
Map args = new HashMap();
|
||||||
|
args.put("relatorio", relatorio);
|
||||||
|
|
||||||
|
openWindow("/component/reportView.zul",
|
||||||
|
Labels.getLabel("relatorioDocumentosFiscaisController.window.title"), args, MODAL);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void buscaAidf() {
|
||||||
|
Empresa empresa = null;
|
||||||
|
Estado estado = null;
|
||||||
|
|
||||||
|
Comboitem itemEmpresa = cmbEmpresa.getSelectedItem();
|
||||||
|
Comboitem itemEstado = cmbEstado.getSelectedItem();
|
||||||
|
|
||||||
|
if (itemEmpresa != null) {
|
||||||
|
empresa = (Empresa) itemEmpresa.getValue();
|
||||||
|
}
|
||||||
|
if (itemEstado != null) {
|
||||||
|
estado = (Estado) itemEstado.getValue();
|
||||||
|
}
|
||||||
|
|
||||||
|
if (itemEmpresa != null && itemEstado != null) {
|
||||||
|
lsAidf = aidfService.buscaAidfRMD(empresa.getEmpresaId(), estado.getEstadoId());
|
||||||
|
|
||||||
|
ComboitemRenderer aidfRenderer = new ComboitemRenderer() {
|
||||||
|
public void render(Comboitem item, Object data) {
|
||||||
|
if (data instanceof Aidf) {
|
||||||
|
Aidf aidf = (Aidf) data;
|
||||||
|
item.setLabel(aidf.getDocfiscal() + " = " + aidf.getForminicial() + "-" + aidf.getFormfinal());
|
||||||
|
} else {
|
||||||
|
item.setLabel(Objects.toString(data));
|
||||||
|
}
|
||||||
|
item.setValue(data);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
cmbAidf.setItemRenderer(aidfRenderer);
|
||||||
|
cmbAidf.setModel(new BindingListModelList(lsAidf, true));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public void onClick$btnExecutarRelatorio(Event ev) throws Exception {
|
||||||
|
executarRelatorio();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void onSelect$cmbEstado(Event ev) {
|
||||||
|
buscaAidf();
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<Empresa> getLsEmpresa() {
|
||||||
|
return lsEmpresa;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLsEmpresa(List<Empresa> lsEmpresa) {
|
||||||
|
this.lsEmpresa = lsEmpresa;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<Estado> getLsEstado() {
|
||||||
|
return lsEstado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLsEstado(List<Estado> lsEstado) {
|
||||||
|
this.lsEstado = lsEstado;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<Aidf> getLsAidf() {
|
||||||
|
return lsAidf;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLsAidf(List<Aidf> lsAidf) {
|
||||||
|
this.lsAidf = lsAidf;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<Aidf> getAidfList() {
|
||||||
|
return aidfList;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAidfList(List<Aidf> aidfList) {
|
||||||
|
this.aidfList = aidfList;
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,26 @@
|
||||||
|
|
||||||
|
package com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios;
|
||||||
|
|
||||||
|
import org.zkoss.util.resource.Labels;
|
||||||
|
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.PantallaUtileria;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.menu.DefaultItemMenuSistema;
|
||||||
|
|
||||||
|
public class ItemMenuRelatorioDocumentosFiscais extends DefaultItemMenuSistema {
|
||||||
|
|
||||||
|
public ItemMenuRelatorioDocumentosFiscais() {
|
||||||
|
super("indexController.mniRelatorioDocumentosFiscais.label");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String getClaveMenu() {
|
||||||
|
return "COM.RJCONSULTORES.ADMINISTRACION.GUI.RELATORIOS.MENU.RELATORIODOCUMENTOSFISCAIS";
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void ejecutar() {
|
||||||
|
PantallaUtileria.openWindow("/gui/relatorios/filtroRelatorioDocumentosFiscais.zul",
|
||||||
|
Labels.getLabel("relatorioRemarcacaoPassagensTransferenciaController.window.title"), getArgs(), desktop);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -180,6 +180,7 @@ analitico.gerenciais.financeiro.relatorioFormaPagamentoAgencia=com.rjconsultores
|
||||||
analitico.gerenciais.financeiro.relatorioFinanceiroGrupoLinhas=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioFinanceiroGrupoLinhas
|
analitico.gerenciais.financeiro.relatorioFinanceiroGrupoLinhas=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioFinanceiroGrupoLinhas
|
||||||
analitico.gerenciais.financeiro.relatorioVendasPTA=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioVendasPTA
|
analitico.gerenciais.financeiro.relatorioVendasPTA=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioVendasPTA
|
||||||
analitico.gerenciais.financeiro.relatorioServicoBloqueadoVendaInternet=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioServicoBloqueadoVendaInternet
|
analitico.gerenciais.financeiro.relatorioServicoBloqueadoVendaInternet=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioServicoBloqueadoVendaInternet
|
||||||
|
analitico.gerenciais.financeiro.relatorioDocumentosFiscais=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioDocumentosFiscais
|
||||||
analitico.gerenciais.pacote=com.rjconsultores.ventaboletos.web.utilerias.menu.item.analitico.gerenciais.pacote.SubMenuRelatorioPacote
|
analitico.gerenciais.pacote=com.rjconsultores.ventaboletos.web.utilerias.menu.item.analitico.gerenciais.pacote.SubMenuRelatorioPacote
|
||||||
analitico.gerenciais.pacote.boletos=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioVendasPacotesBoletos
|
analitico.gerenciais.pacote.boletos=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioVendasPacotesBoletos
|
||||||
analitico.gerenciais.pacote.detalhado=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioVendasPacotesDetalhado
|
analitico.gerenciais.pacote.detalhado=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioVendasPacotesDetalhado
|
||||||
|
|
|
@ -288,6 +288,7 @@ indexController.mniRelatorioObservacaoConferenciaMovimento.label = Observación
|
||||||
indexController.mniRelatorioErrosIntegracaoBGMController.label = Listar errores BGM
|
indexController.mniRelatorioErrosIntegracaoBGMController.label = Listar errores BGM
|
||||||
indexController.mniRelatorioVendasPTAController.label = Ventas PTA
|
indexController.mniRelatorioVendasPTAController.label = Ventas PTA
|
||||||
indexController.mniRelatorioServicoBloqueadoVendaInternet.label = Corrida bloqueada en venta internet
|
indexController.mniRelatorioServicoBloqueadoVendaInternet.label = Corrida bloqueada en venta internet
|
||||||
|
indexController.mniRelatorioDocumentosFiscais.label = Report Documentos Fiscais
|
||||||
|
|
||||||
indexController.mnSubMenuImpressaoFiscal.label=Impresión fiscal
|
indexController.mnSubMenuImpressaoFiscal.label=Impresión fiscal
|
||||||
indexController.mnSubMenuRelatorioImpressaoFiscal.label=Importación fiscal
|
indexController.mnSubMenuRelatorioImpressaoFiscal.label=Importación fiscal
|
||||||
|
@ -706,6 +707,17 @@ relatorioServicoBloqueadoVendaInternetController.lbDatFinal.value = Fecha final
|
||||||
relatorioServicoBloqueadoVendaInternetController.lbEmpresa.value = Empresa
|
relatorioServicoBloqueadoVendaInternetController.lbEmpresa.value = Empresa
|
||||||
relatorioServicoBloqueadoVendaInternetController.lbAgencia.value = Agencia
|
relatorioServicoBloqueadoVendaInternetController.lbAgencia.value = Agencia
|
||||||
|
|
||||||
|
#Relatório Documentos Fiscais
|
||||||
|
relatorioDocumentosFiscaisController.window.title = Reporte Documentos Fiscais
|
||||||
|
relatorioDocumentosFiscaisController.lbDatInicial.value = Fecha Inicial
|
||||||
|
relatorioDocumentosFiscaisController.lbDatFinal.value = Fecha Final
|
||||||
|
relatorioDocumentosFiscaisController.lbEmpresa.value = Empresa
|
||||||
|
relatorioDocumentosFiscaisController.lbAgencia.value = Punto Venta
|
||||||
|
relatorioDocumentosFiscaisController.lbEspecie.label = Especies
|
||||||
|
relatorioDocumentosFiscaisController.lbAgruparPor.label = Agrupar por:
|
||||||
|
relatorioDocumentosFiscaisController.lbInterestadual.label = Interés
|
||||||
|
relatorioDocumentosFiscaisController.lbIntermunicipal.label = Intermunicipal
|
||||||
|
|
||||||
#Relatorio Tripulacao
|
#Relatorio Tripulacao
|
||||||
relatorioTripulacao.label=Informe Tripulación
|
relatorioTripulacao.label=Informe Tripulación
|
||||||
relatorioTripulacaoController.lbDataInicial=Fecha Inicial
|
relatorioTripulacaoController.lbDataInicial=Fecha Inicial
|
||||||
|
|
|
@ -305,6 +305,7 @@ indexController.mniRelatorioObservacaoConferenciaMovimento.label = Movimentos co
|
||||||
indexController.mniRelatorioErrosIntegracaoBGMController.label = Listar Erros BGM
|
indexController.mniRelatorioErrosIntegracaoBGMController.label = Listar Erros BGM
|
||||||
indexController.mniRelatorioVendasPTA.label = Vendas PTA
|
indexController.mniRelatorioVendasPTA.label = Vendas PTA
|
||||||
indexController.mniRelatorioServicoBloqueadoVendaInternet.label = Serviço Bloqueado na Venda Internet
|
indexController.mniRelatorioServicoBloqueadoVendaInternet.label = Serviço Bloqueado na Venda Internet
|
||||||
|
indexController.mniRelatorioDocumentosFiscais.label = Relatório Documentos Fiscais
|
||||||
|
|
||||||
indexController.mnSubMenuImpressaoFiscal.label=Impressão Fiscal
|
indexController.mnSubMenuImpressaoFiscal.label=Impressão Fiscal
|
||||||
indexController.mnSubMenuRelatorioImpressaoFiscal.label=Importação Fiscal
|
indexController.mnSubMenuRelatorioImpressaoFiscal.label=Importação Fiscal
|
||||||
|
@ -774,8 +775,7 @@ relatorioAidfDetalhadoController.window.title = Relatório Aidf Detalhado
|
||||||
relatorioAidfDetalhadoController.datainicial.value = Data Inicial
|
relatorioAidfDetalhadoController.datainicial.value = Data Inicial
|
||||||
relatorioAidfDetalhadoController.dataFinal.value = Data Final
|
relatorioAidfDetalhadoController.dataFinal.value = Data Final
|
||||||
relatorioAidfDetalhadoController.lbEmpresa.value = Empresa
|
relatorioAidfDetalhadoController.lbEmpresa.value = Empresa
|
||||||
relatorioAidfDetalhadoController.lbSerie.value = Série
|
relatorioAidfDetalhadoController.lbAidf.value = AIDF/Série/SubSerie
|
||||||
relatorioAidfDetalhadoController.lbAidf.value = AIDF
|
|
||||||
relatorioAidfDetalhadoController.lbFormInicial.value = Form. Inicial
|
relatorioAidfDetalhadoController.lbFormInicial.value = Form. Inicial
|
||||||
relatorioAidfDetalhadoController.lbFormFinal.value = Form. Final
|
relatorioAidfDetalhadoController.lbFormFinal.value = Form. Final
|
||||||
relatorioAidfDetalhadoController.msg.agencia.obrigatorio = Uma Agência deve ser selecionada
|
relatorioAidfDetalhadoController.msg.agencia.obrigatorio = Uma Agência deve ser selecionada
|
||||||
|
@ -793,6 +793,27 @@ relatorioVendasPTAController.btnLimpar.label = Limpar Seleção
|
||||||
relatorioVendasPTAController.puntoVentaSelList.codigo = Código
|
relatorioVendasPTAController.puntoVentaSelList.codigo = Código
|
||||||
relatorioVendasPTAController.puntoVentaSelList.nome = Nome
|
relatorioVendasPTAController.puntoVentaSelList.nome = Nome
|
||||||
|
|
||||||
|
#Relatório Documentos Fiscais
|
||||||
|
relatorioDocumentosFiscaisController.window.title = Relatório Documentos Fiscais
|
||||||
|
relatorioDocumentosFiscaisController.lbDatInicial.value = Data Inicial
|
||||||
|
relatorioDocumentosFiscaisController.lbDatFinal.value = Data Final
|
||||||
|
relatorioDocumentosFiscaisController.lbEmpresa.value = Empresa
|
||||||
|
relatorioDocumentosFiscaisController.lbAgencia.value = Agência
|
||||||
|
relatorioDocumentosFiscaisController.lbEspecie.label = Espécie
|
||||||
|
relatorioDocumentosFiscaisController.lbAgruparPor.label = Agrupar por:
|
||||||
|
relatorioDocumentosFiscaisController.lbInterestadual.label = Interestadual
|
||||||
|
relatorioDocumentosFiscaisController.lbIntermunicipal.label = Intermunicipal
|
||||||
|
relatorioDocumentosFiscaisController.lbTodosIntermunicipalInterestadual.label = Todos
|
||||||
|
relatorioDocumentosFiscaisController.lbUF.label = UF
|
||||||
|
relatorioDocumentosFiscaisController.lbLocalidade.label = Localidade
|
||||||
|
relatorioDocumentosFiscaisController.lbTrazerDados.label = Trazer Dados
|
||||||
|
relatorioDocumentosFiscaisController.lbSomenteBilhetesCancelados.label = Somente Bilhetes Cancelados
|
||||||
|
relatorioDocumentosFiscaisController.lbBilhetesBPR.label = Bilhetes BPR
|
||||||
|
relatorioDocumentosFiscaisController.lbBilhetesEB.label = Excesso de Bagagem(EB)
|
||||||
|
relatorioDocumentosFiscaisController.lbAIDF.label = AIDF
|
||||||
|
relatorioDocumentosFiscaisController.lbSerie.label = Série
|
||||||
|
relatorioDocumentosFiscaisController.lbSubserie.label = Subsérie
|
||||||
|
|
||||||
#Relatório de Serviço Bloqueado na Venda Internet
|
#Relatório de Serviço Bloqueado na Venda Internet
|
||||||
relatorioServicoBloqueadoVendaInternetController.window.title = Relatório de Serviço Bloqueado na Venda Internet
|
relatorioServicoBloqueadoVendaInternetController.window.title = Relatório de Serviço Bloqueado na Venda Internet
|
||||||
relatorioServicoBloqueadoVendaInternetController.lbDatInicial.value = Data Inicial
|
relatorioServicoBloqueadoVendaInternetController.lbDatInicial.value = Data Inicial
|
||||||
|
|
|
@ -0,0 +1,143 @@
|
||||||
|
<?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="winFiltroRelatorioDocumentosFiscais"?>
|
||||||
|
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
|
||||||
|
|
||||||
|
<zk xmlns="http://www.zkoss.org/2005/zul">
|
||||||
|
<window id="winFiltroRelatorioDocumentosFiscais"
|
||||||
|
apply="${relatorioDocumentosFiscaisController}"
|
||||||
|
contentStyle="overflow:auto" height="295px" width="600px"
|
||||||
|
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('relatorioDocumentosFiscaisController.lbDatInicial.value')}" />
|
||||||
|
<datebox id="datInicial" width="90%"
|
||||||
|
format="dd/MM/yyyy" constraint="no empty" maxlength="10" />
|
||||||
|
<label
|
||||||
|
value="${c:l('relatorioDocumentosFiscaisController.lbDatFinal.value')}" />
|
||||||
|
<datebox id="datFinal" width="90%"
|
||||||
|
format="dd/MM/yyyy" constraint="no empty" maxlength="10" />
|
||||||
|
</row>
|
||||||
|
</rows>
|
||||||
|
</grid>
|
||||||
|
<grid fixedLayout="true">
|
||||||
|
<columns>
|
||||||
|
<column width="20%" />
|
||||||
|
<column width="80%" />
|
||||||
|
</columns>
|
||||||
|
<rows>
|
||||||
|
<row>
|
||||||
|
<label
|
||||||
|
value="${c:l('relatorioDocumentosFiscaisController.lbAgruparPor.label')}" />
|
||||||
|
<radiogroup Id="rdTipoAgrupamento">
|
||||||
|
<hbox align="center">
|
||||||
|
<radio Id="rdUF" value="2"
|
||||||
|
label="${c:l('relatorioDocumentosFiscaisController.lbUF.label')}" />
|
||||||
|
<radio Id="rdLocalidade" value="0"
|
||||||
|
label="${c:l('relatorioDocumentosFiscaisController.lbLocalidade.label')}" />
|
||||||
|
</hbox>
|
||||||
|
</radiogroup>
|
||||||
|
</row>
|
||||||
|
<row>
|
||||||
|
<label
|
||||||
|
value="${c:l('relatorioDocumentosFiscaisController.lbTrazerDados.label')}" />
|
||||||
|
<radiogroup Id="rdgInterestadualMunicial">
|
||||||
|
<hbox align="center">
|
||||||
|
<radio Id="rdInterestadual" value="1"
|
||||||
|
label="${c:l('relatorioDocumentosFiscaisController.lbInterestadual.label')}" />
|
||||||
|
<radio Id="rdIntermunicipal" value="2"
|
||||||
|
label="${c:l('relatorioDocumentosFiscaisController.lbIntermunicipal.label')}" />
|
||||||
|
<radio
|
||||||
|
Id="rdTodosIntermunicipalInterestadual" value="0" checked="true"
|
||||||
|
label="${c:l('relatorioDocumentosFiscaisController.lbTodosIntermunicipalInterestadual.label')}" />
|
||||||
|
</hbox>
|
||||||
|
</radiogroup>
|
||||||
|
</row>
|
||||||
|
</rows>
|
||||||
|
</grid>
|
||||||
|
<grid fixedLayout="true">
|
||||||
|
<columns>
|
||||||
|
<column width="40%" />
|
||||||
|
<column width="60%" />
|
||||||
|
</columns>
|
||||||
|
<rows>
|
||||||
|
<row>
|
||||||
|
<label
|
||||||
|
value="${c:l('relatorioDocumentosFiscaisController.lbSomenteBilhetesCancelados.label')}" />
|
||||||
|
<checkbox id="ckbSomenteCancelado"></checkbox>
|
||||||
|
</row>
|
||||||
|
</rows>
|
||||||
|
</grid>
|
||||||
|
<grid fixedLayout="true">
|
||||||
|
<columns>
|
||||||
|
<column width="20%" />
|
||||||
|
<column width="80%" />
|
||||||
|
</columns>
|
||||||
|
<rows>
|
||||||
|
<row>
|
||||||
|
<label
|
||||||
|
value="${c:l('relatorioDocumentosFiscaisController.lbEmpresa.value')}" />
|
||||||
|
<combobox id="cmbEmpresa" buttonVisible="true"
|
||||||
|
constraint="no empty"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||||
|
model="@{winFiltroRelatorioDocumentosFiscais$composer.lsEmpresa}"
|
||||||
|
width="50%" />
|
||||||
|
</row>
|
||||||
|
<row>
|
||||||
|
<label
|
||||||
|
value="${c:l('relatorioDocumentosFiscaisController.lbUF.label')}" />
|
||||||
|
<combobox id="cmbEstado"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||||
|
constraint="no empty" mold="rounded" buttonVisible="true"
|
||||||
|
style="width: 230px;"
|
||||||
|
model="@{winFiltroRelatorioDocumentosFiscais$composer.lsEstado}" />
|
||||||
|
</row>
|
||||||
|
|
||||||
|
<row>
|
||||||
|
<label
|
||||||
|
value="${c:l('relatorioDocumentosFiscaisController.lbAIDF.label')}" />
|
||||||
|
<combobox id="cmbAidf" buttonVisible="true"
|
||||||
|
constraint="no empty"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||||
|
model="@{winFiltroRelatorioDocumentosFiscais$composer.aidfList}"
|
||||||
|
width="50%" />
|
||||||
|
</row>
|
||||||
|
</rows>
|
||||||
|
</grid>
|
||||||
|
|
||||||
|
<grid fixedLayout="true">
|
||||||
|
<columns>
|
||||||
|
<column width="20%" />
|
||||||
|
<column width="80%" />
|
||||||
|
</columns>
|
||||||
|
<rows>
|
||||||
|
<row>
|
||||||
|
<label
|
||||||
|
value="${c:l('relatorioDocumentosFiscaisController.lbEspecie.label')}" />
|
||||||
|
<radiogroup Id="rdEspecie">
|
||||||
|
<hbox align="center">
|
||||||
|
<radio Id="rdBilhetesBPR" value="2"
|
||||||
|
label="${c:l('relatorioDocumentosFiscaisController.lbBilhetesBPR.label')}" />
|
||||||
|
<radio Id="rdBilhetesEB" value="0"
|
||||||
|
label="${c:l('relatorioDocumentosFiscaisController.lbBilhetesEB.label')}" />
|
||||||
|
</hbox>
|
||||||
|
</radiogroup>
|
||||||
|
</row>
|
||||||
|
</rows>
|
||||||
|
</grid>
|
||||||
|
<toolbar>
|
||||||
|
<button id="btnExecutarRelatorio" image="/gui/img/find.png"
|
||||||
|
label="${c:l('relatorio.lb.btnExecutarRelatorio')}" />
|
||||||
|
</toolbar>
|
||||||
|
|
||||||
|
</window>
|
||||||
|
</zk>
|
Loading…
Reference in New Issue