bug#10801
dev:fabio qua:renato git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@80720 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
53c8ea409b
commit
eec408b813
|
@ -0,0 +1,190 @@
|
|||
package com.rjconsultores.ventaboletos.relatorios.impl;
|
||||
|
||||
import java.sql.Connection;
|
||||
import java.sql.ResultSet;
|
||||
import java.sql.SQLException;
|
||||
import java.sql.Timestamp;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import org.apache.log4j.Logger;
|
||||
|
||||
import com.rjconsultores.ventaboletos.relatorios.utilitarios.DataSource;
|
||||
import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio;
|
||||
import com.rjconsultores.ventaboletos.relatorios.utilitarios.RelatorioVendasConexaoBean;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.NamedParameterStatement;
|
||||
|
||||
import net.sf.jasperreports.engine.data.JRBeanCollectionDataSource;
|
||||
|
||||
public class RelatorioVendasConexao extends Relatorio {
|
||||
|
||||
private static Logger log = Logger.getLogger(RelatorioVendasConexao.class);
|
||||
|
||||
private List<RelatorioVendasConexaoBean> lsDadosRelatorio;
|
||||
|
||||
private Timestamp fecInicio;
|
||||
private Timestamp fecFinal;
|
||||
private Integer empresaId;
|
||||
private Integer puntoventaId;
|
||||
|
||||
public RelatorioVendasConexao(Map<String, Object> parametros, Connection conexao) throws Exception {
|
||||
super(parametros, conexao);
|
||||
|
||||
this.setCustomDataSource(new DataSource(this) {
|
||||
|
||||
@Override
|
||||
public void initDados() throws Exception {
|
||||
Map<String, Object> parametros = this.relatorio.getParametros();
|
||||
fecInicio = (Timestamp) parametros.get("dataFiltroInicial");
|
||||
fecFinal = (Timestamp) parametros.get("dataFiltroFinal");
|
||||
if(parametros.get("EMPRESA_ID")!=null){
|
||||
empresaId = Integer.valueOf(parametros.get("EMPRESA_ID").toString());
|
||||
}
|
||||
if(parametros.get("PUNTOVENTA_ID")!=null){
|
||||
puntoventaId = Integer.valueOf(parametros.get("PUNTOVENTA_ID").toString());
|
||||
}
|
||||
|
||||
Connection conexao = this.relatorio.getConexao();
|
||||
processarVendasConexao(conexao);
|
||||
|
||||
setCollectionDataSource(new JRBeanCollectionDataSource(lsDadosRelatorio));
|
||||
}
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
private void processarVendasConexao(Connection conexao) {
|
||||
ResultSet rset = null;
|
||||
NamedParameterStatement stmt = null;
|
||||
|
||||
try {
|
||||
|
||||
stmt = carregarNamedParameterStatement(conexao);
|
||||
rset = stmt.executeQuery();
|
||||
processarResultado(rset);
|
||||
fecharConexaoBanco(conexao, stmt, rset);
|
||||
|
||||
} catch (Exception e) {
|
||||
log.error(e.getMessage(), e);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private void fecharConexaoBanco(Connection conexao, NamedParameterStatement stmt, ResultSet rset) {
|
||||
try {
|
||||
if(rset != null && !rset.isClosed()) {
|
||||
rset.close();
|
||||
}
|
||||
if(stmt != null && !stmt.isClosed()) {
|
||||
stmt.close();
|
||||
}
|
||||
if(conexao != null && !conexao.isClosed()) {
|
||||
conexao.close();
|
||||
}
|
||||
} catch (SQLException e) {
|
||||
log.error(e.getMessage(), e);
|
||||
}
|
||||
}
|
||||
|
||||
private void processarResultado(ResultSet rset) throws SQLException {
|
||||
if(lsDadosRelatorio == null) {
|
||||
lsDadosRelatorio = new ArrayList<RelatorioVendasConexaoBean>();
|
||||
}
|
||||
|
||||
while (rset.next()) {
|
||||
RelatorioVendasConexaoBean bean = new RelatorioVendasConexaoBean();
|
||||
bean.setNombpuntoventa(rset.getString("NOMBPUNTOVENTA"));
|
||||
bean.setNombempresa(rset.getString("NOMBEMPRESA"));
|
||||
bean.setEmpresaId(rset.getInt("EMPRESA_ID"));
|
||||
bean.setDescpago(rset.getString("DESCPAGO"));
|
||||
bean.setImporte(rset.getBigDecimal("IMPORTE"));
|
||||
bean.setNegate(!bean.getEmpresaId().equals(empresaId));
|
||||
|
||||
lsDadosRelatorio.add(bean);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private NamedParameterStatement carregarNamedParameterStatement(Connection conexao) throws SQLException {
|
||||
String sql = getSql();
|
||||
log.info(sql);
|
||||
|
||||
NamedParameterStatement stmt = new NamedParameterStatement(conexao, sql);
|
||||
|
||||
if(fecInicio != null) {
|
||||
stmt.setTimestamp("fecInicio", fecInicio);
|
||||
}
|
||||
if(fecFinal != null) {
|
||||
stmt.setTimestamp("fecFinal", fecFinal);
|
||||
}
|
||||
if(empresaId != null) {
|
||||
stmt.setInt("EMPRESA_ID", empresaId);
|
||||
}
|
||||
if(puntoventaId != null && puntoventaId > -1) {
|
||||
stmt.setInt("PUNTOVENTA_ID", puntoventaId);
|
||||
}
|
||||
|
||||
return stmt;
|
||||
}
|
||||
|
||||
protected String getSql() {
|
||||
|
||||
StringBuilder sQuery = new StringBuilder();
|
||||
sQuery.append("SELECT PV.NOMBPUNTOVENTA, E.NOMBEMPRESA, E.EMPRESA_ID, NVL(CT.NUMTARJETA,FP.DESCPAGO) AS DESCPAGO, CFP.FORMAPAGO_ID, SUM(CFP.IMPORTE) AS IMPORTE ")
|
||||
.append("FROM CAJA C ")
|
||||
.append("JOIN CAJA_FORMAPAGO CFP ON CFP.CAJA_ID = C.CAJA_ID ")
|
||||
.append("LEFT JOIN CAJA_DET_PAGO CDP ON CDP.CAJAFORMAPAGO_ID = CFP.CAJAFORMAPAGO_ID ")
|
||||
.append("LEFT JOIN CAJA_TARJETA CT ON CT.CAJADETPAGO_ID = CDP.CAJADETPAGO_ID ")
|
||||
.append("JOIN FORMA_PAGO FP ON FP.FORMAPAGO_ID = CFP.FORMAPAGO_ID ")
|
||||
.append("JOIN MARCA M ON C.MARCA_ID = M.MARCA_ID ")
|
||||
.append("JOIN EMPRESA E ON E.EMPRESA_ID = M.EMPRESA_ID ")
|
||||
.append("JOIN PUNTO_VENTA PV ON PV.PUNTOVENTA_ID = C.PUNTOVENTA_ID ")
|
||||
.append("WHERE C.INDCONEXION = 1 ")
|
||||
.append("AND C.INDREIMPRESION = 0 ")
|
||||
.append("AND C.TIPOVENTA_ID <> 6 ")
|
||||
.append("AND C.NUMOPERACION IN ( ")
|
||||
.append(" SELECT C.NUMOPERACION ")
|
||||
.append(" FROM CAJA C ")
|
||||
.append(" JOIN MARCA M ON C.MARCA_ID = M.MARCA_ID ")
|
||||
.append(" JOIN EMPRESA E ON E.EMPRESA_ID = M.EMPRESA_ID ")
|
||||
.append(" JOIN PUNTO_VENTA PV ON PV.PUNTOVENTA_ID = C.PUNTOVENTA_ID ")
|
||||
.append(" WHERE C.INDCONEXION = 1 ")
|
||||
.append(" AND C.INDREIMPRESION = 0 ")
|
||||
.append(" AND C.TIPOVENTA_ID <> 6 ");
|
||||
|
||||
if(fecInicio != null) {
|
||||
sQuery.append("AND NVL(C.FECHORVENTA_H,C.FECHORVENTA) >= :fecInicio ");
|
||||
}
|
||||
if(fecFinal != null) {
|
||||
sQuery.append("AND NVL(C.FECHORVENTA_H,C.FECHORVENTA) <= :fecFinal ");
|
||||
}
|
||||
if(empresaId != null) {
|
||||
sQuery.append("AND E.EMPRESA_ID = :EMPRESA_ID ");
|
||||
}
|
||||
if(puntoventaId != null && puntoventaId > -1) {
|
||||
sQuery.append("AND C.PUNTOVENTA_ID = :PUNTOVENTA_ID ");
|
||||
}
|
||||
|
||||
sQuery.append(") ")
|
||||
.append("GROUP BY PV.NOMBPUNTOVENTA, E.NOMBEMPRESA, E.EMPRESA_ID, NVL(CT.NUMTARJETA,FP.DESCPAGO), CFP.FORMAPAGO_ID ")
|
||||
.append("ORDER BY PV.NOMBPUNTOVENTA, NVL(CT.NUMTARJETA,FP.DESCPAGO)");
|
||||
|
||||
return sQuery.toString();
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void processaParametros() throws Exception {
|
||||
}
|
||||
|
||||
public List<RelatorioVendasConexaoBean> getLsDadosRelatorio() {
|
||||
return lsDadosRelatorio;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getNome() {
|
||||
return super.getNome();
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,19 @@
|
|||
#geral
|
||||
msg.noData=Não foi possivel obter dados com os parâmetros informados.
|
||||
|
||||
#Labels cabeçalho
|
||||
cabecalho.nome=Relatório Vendas de Conexão
|
||||
cabecalho.relatorio=Relatório:
|
||||
cabecalho.periodo=Período:
|
||||
cabecalho.periodoA=à
|
||||
cabecalho.dataHora=Data/Hora:
|
||||
cabecalho.impressorPor=Impressor por:
|
||||
cabecalho.pagina=Página
|
||||
cabecalho.de=de
|
||||
cabecalho.filtros=Filtros:
|
||||
cabecalho.usuario=Usuário:
|
||||
label.nombPuntoVenta=Agência
|
||||
label.total=Total
|
||||
label.puntoVenta=Agência:
|
||||
label.diferenca=Diferença
|
||||
label.descpago=Forma Pag./Num. Cartão
|
|
@ -0,0 +1,19 @@
|
|||
#geral
|
||||
msg.noData=Não foi possivel obter dados com os parâmetros informados.
|
||||
|
||||
#Labels cabeçalho
|
||||
cabecalho.nome=Relatório Vendas de Conexão
|
||||
cabecalho.relatorio=Relatório:
|
||||
cabecalho.periodo=Período:
|
||||
cabecalho.periodoA=à
|
||||
cabecalho.dataHora=Data/Hora:
|
||||
cabecalho.impressorPor=Impressor por:
|
||||
cabecalho.pagina=Página
|
||||
cabecalho.de=de
|
||||
cabecalho.filtros=Filtros:
|
||||
cabecalho.usuario=Usuário:
|
||||
label.nombPuntoVenta=Agência
|
||||
label.total=Total
|
||||
label.puntoVenta=Agência:
|
||||
label.diferenca=Diferença
|
||||
label.descpago=Forma Pag./Num. Cartão
|
Binary file not shown.
|
@ -0,0 +1,271 @@
|
|||
<?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="RelatorioVendasConexao" pageWidth="842" pageHeight="595" orientation="Landscape" whenNoDataType="NoDataSection" columnWidth="802" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="84b9dfcf-8ec5-4f51-80cc-7339e3b158b4">
|
||||
<property name="ireport.zoom" value="0.75"/>
|
||||
<property name="ireport.x" value="0"/>
|
||||
<property name="ireport.y" value="0"/>
|
||||
<style name="Crosstab Data Text" hAlign="Center"/>
|
||||
<parameter name="fecInicio" class="java.lang.String"/>
|
||||
<parameter name="fecFinal" class="java.lang.String"/>
|
||||
<parameter name="noDataRelatorio" class="java.lang.String"/>
|
||||
<parameter name="empresa" class="java.lang.String"/>
|
||||
<parameter name="puntoventa" class="java.lang.String"/>
|
||||
<queryString>
|
||||
<![CDATA[]]>
|
||||
</queryString>
|
||||
<field name="nombpuntoventa" class="java.lang.String"/>
|
||||
<field name="nombempresa" class="java.lang.String"/>
|
||||
<field name="importe" class="java.math.BigDecimal"/>
|
||||
<field name="descpago" class="java.lang.String"/>
|
||||
<background>
|
||||
<band splitType="Stretch"/>
|
||||
</background>
|
||||
<title>
|
||||
<band height="81" splitType="Stretch">
|
||||
<textField>
|
||||
<reportElement x="0" y="0" width="620" height="20" uuid="43b2c28d-4760-4890-b00d-25e931e79c74"/>
|
||||
<textElement markup="none">
|
||||
<font size="14" isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{cabecalho.nome}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="dd/MM/yyyy HH:mm">
|
||||
<reportElement x="638" y="0" width="164" height="20" uuid="4d1bcd65-c9a6-44b4-8dca-cc3c4c20c9a5"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[new java.util.Date()]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement x="0" y="20" width="620" height="20" uuid="fd05bd35-30d9-4baf-aa56-f8e5d3c3268b"/>
|
||||
<textElement>
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{cabecalho.periodo} + " " + $P{fecInicio} + " " + $R{cabecalho.periodoA} + " " + $P{fecFinal}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement x="53" y="41" width="748" height="20" uuid="8fa1c53b-1da7-4d4d-a75c-ab1543acae2a"/>
|
||||
<textFieldExpression><![CDATA[$P{empresa}]]></textFieldExpression>
|
||||
</textField>
|
||||
<staticText>
|
||||
<reportElement x="0" y="41" width="53" height="20" uuid="a91f6081-4740-4e36-8965-41b6cde4cc20"/>
|
||||
<text><![CDATA[Empresa:]]></text>
|
||||
</staticText>
|
||||
<textField>
|
||||
<reportElement x="0" y="61" width="53" height="20" uuid="1a29d731-e121-4507-8c0b-e93f437e8d80"/>
|
||||
<textFieldExpression><![CDATA[$R{label.puntoVenta}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement x="53" y="61" width="748" height="20" uuid="53d53aa5-d8c9-43c6-b17d-1e6b49697237"/>
|
||||
<textFieldExpression><![CDATA[$P{puntoventa}]]></textFieldExpression>
|
||||
</textField>
|
||||
</band>
|
||||
</title>
|
||||
<pageHeader>
|
||||
<band height="22">
|
||||
<textField>
|
||||
<reportElement x="606" y="1" width="195" height="20" uuid="701a95fd-2c75-40c1-bb18-0e784375e289"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{cabecalho.pagina} + " " + $V{PAGE_NUMBER}+ " " + $R{cabecalho.de} + " " + $V{PAGE_NUMBER}]]></textFieldExpression>
|
||||
</textField>
|
||||
</band>
|
||||
</pageHeader>
|
||||
<columnFooter>
|
||||
<band splitType="Stretch"/>
|
||||
</columnFooter>
|
||||
<pageFooter>
|
||||
<band splitType="Stretch"/>
|
||||
</pageFooter>
|
||||
<summary>
|
||||
<band height="78" splitType="Stretch">
|
||||
<crosstab>
|
||||
<reportElement x="0" y="0" width="802" height="78" uuid="904f7c5a-f414-4e1b-b933-ffb824f25575"/>
|
||||
<crosstabHeaderCell>
|
||||
<cellContents>
|
||||
<box>
|
||||
<topPen lineWidth="0.25"/>
|
||||
<bottomPen lineWidth="0.25"/>
|
||||
</box>
|
||||
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||
<reportElement stretchType="RelativeToTallestObject" x="117" y="0" width="123" height="30" forecolor="#000000" uuid="7512873e-79c6-4cf2-9277-2702a4e861a6"/>
|
||||
<box leftPadding="2">
|
||||
<leftPen lineWidth="0.25"/>
|
||||
<bottomPen lineWidth="0.0"/>
|
||||
</box>
|
||||
<textElement verticalAlignment="Middle" markup="none"/>
|
||||
<textFieldExpression><![CDATA[$R{label.descpago}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||
<reportElement stretchType="RelativeToTallestObject" x="0" y="0" width="117" height="30" forecolor="#000000" uuid="92a91170-a8ae-4bff-bd8d-e6473e901982"/>
|
||||
<box leftPadding="2">
|
||||
<leftPen lineWidth="0.0"/>
|
||||
<bottomPen lineWidth="0.0"/>
|
||||
</box>
|
||||
<textElement verticalAlignment="Middle" markup="none"/>
|
||||
<textFieldExpression><![CDATA[$R{label.nombPuntoVenta}]]></textFieldExpression>
|
||||
</textField>
|
||||
</cellContents>
|
||||
</crosstabHeaderCell>
|
||||
<rowGroup name="nombpuntoventa" width="117" totalPosition="End">
|
||||
<bucket class="java.lang.String">
|
||||
<bucketExpression><![CDATA[$F{nombpuntoventa}]]></bucketExpression>
|
||||
</bucket>
|
||||
<crosstabRowHeader>
|
||||
<cellContents backcolor="#F0F8FF" mode="Transparent">
|
||||
<box>
|
||||
<topPen lineWidth="0.0"/>
|
||||
<bottomPen lineWidth="0.25"/>
|
||||
</box>
|
||||
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||
<reportElement style="Crosstab Data Text" stretchType="RelativeToTallestObject" x="0" y="0" width="117" height="25" uuid="26ee5370-4618-492a-a4b2-625a85a63b7e"/>
|
||||
<box leftPadding="2"/>
|
||||
<textElement textAlignment="Left" verticalAlignment="Middle"/>
|
||||
<textFieldExpression><![CDATA[$V{nombpuntoventa}]]></textFieldExpression>
|
||||
</textField>
|
||||
</cellContents>
|
||||
</crosstabRowHeader>
|
||||
<crosstabTotalRowHeader>
|
||||
<cellContents backcolor="#005FB3" mode="Transparent">
|
||||
<box>
|
||||
<topPen lineWidth="0.0"/>
|
||||
<bottomPen lineWidth="0.0"/>
|
||||
</box>
|
||||
</cellContents>
|
||||
</crosstabTotalRowHeader>
|
||||
</rowGroup>
|
||||
<rowGroup name="descpago" width="123" totalPosition="End">
|
||||
<bucket class="java.lang.String">
|
||||
<bucketExpression><![CDATA[$F{descpago}]]></bucketExpression>
|
||||
</bucket>
|
||||
<crosstabRowHeader>
|
||||
<cellContents backcolor="#F0F8FF" mode="Transparent">
|
||||
<box>
|
||||
<leftPen lineWidth="0.25"/>
|
||||
</box>
|
||||
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||
<reportElement style="Crosstab Data Text" stretchType="RelativeToTallestObject" x="0" y="0" width="123" height="25" uuid="f8a5166e-d5fe-4231-9179-cd6380f48ecd"/>
|
||||
<box leftPadding="2"/>
|
||||
<textElement textAlignment="Left" verticalAlignment="Middle"/>
|
||||
<textFieldExpression><![CDATA[$V{descpago}]]></textFieldExpression>
|
||||
</textField>
|
||||
</cellContents>
|
||||
</crosstabRowHeader>
|
||||
<crosstabTotalRowHeader>
|
||||
<cellContents backcolor="#BFE1FF" mode="Transparent">
|
||||
<box>
|
||||
<topPen lineWidth="0.25"/>
|
||||
<leftPen lineWidth="0.25"/>
|
||||
<bottomPen lineWidth="0.25"/>
|
||||
</box>
|
||||
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||
<reportElement stretchType="RelativeToTallestObject" x="0" y="0" width="123" height="25" forecolor="#000000" uuid="c5d2af03-d189-4cfe-bb29-5d21f1d4c271"/>
|
||||
<box leftPadding="2">
|
||||
<topPen lineWidth="0.0"/>
|
||||
</box>
|
||||
<textElement verticalAlignment="Middle" markup="none"/>
|
||||
<textFieldExpression><![CDATA[$R{label.total}]]></textFieldExpression>
|
||||
</textField>
|
||||
</cellContents>
|
||||
</crosstabTotalRowHeader>
|
||||
</rowGroup>
|
||||
<columnGroup name="nombempresa" height="30">
|
||||
<bucket class="java.lang.String">
|
||||
<bucketExpression><![CDATA[$F{nombempresa}]]></bucketExpression>
|
||||
</bucket>
|
||||
<crosstabColumnHeader>
|
||||
<cellContents backcolor="#F0F8FF" mode="Transparent">
|
||||
<box>
|
||||
<topPen lineWidth="0.25"/>
|
||||
<leftPen lineWidth="0.25"/>
|
||||
<bottomPen lineWidth="0.25"/>
|
||||
</box>
|
||||
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||
<reportElement style="Crosstab Data Text" stretchType="RelativeToTallestObject" x="0" y="0" width="124" height="30" uuid="bd83b727-846d-46a2-991f-979065d54489"/>
|
||||
<box rightPadding="0"/>
|
||||
<textElement verticalAlignment="Middle"/>
|
||||
<textFieldExpression><![CDATA[$V{nombempresa}]]></textFieldExpression>
|
||||
</textField>
|
||||
</cellContents>
|
||||
</crosstabColumnHeader>
|
||||
<crosstabTotalColumnHeader>
|
||||
<cellContents mode="Transparent"/>
|
||||
</crosstabTotalColumnHeader>
|
||||
</columnGroup>
|
||||
<measure name="importeMeasure" class="java.math.BigDecimal" calculation="Sum">
|
||||
<measureExpression><![CDATA[$F{importe}]]></measureExpression>
|
||||
</measure>
|
||||
<crosstabCell width="124" height="25">
|
||||
<cellContents mode="Transparent">
|
||||
<box>
|
||||
<leftPen lineWidth="0.25"/>
|
||||
</box>
|
||||
<textField isStretchWithOverflow="true" pattern="¤ #,##0.00" isBlankWhenNull="true">
|
||||
<reportElement style="Crosstab Data Text" stretchType="RelativeToTallestObject" x="0" y="0" width="124" height="25" uuid="87348f54-18cf-4ab8-91f6-1cee0e674818"/>
|
||||
<box rightPadding="0"/>
|
||||
<textElement verticalAlignment="Middle"/>
|
||||
<textFieldExpression><![CDATA[$V{importeMeasure}]]></textFieldExpression>
|
||||
</textField>
|
||||
</cellContents>
|
||||
</crosstabCell>
|
||||
<crosstabCell width="124" height="0" rowTotalGroup="nombpuntoventa">
|
||||
<cellContents backcolor="#005FB3" mode="Transparent">
|
||||
<box>
|
||||
<topPen lineWidth="0.0"/>
|
||||
</box>
|
||||
</cellContents>
|
||||
</crosstabCell>
|
||||
<crosstabCell width="50" columnTotalGroup="nombempresa">
|
||||
<cellContents backcolor="#BFE1FF" mode="Transparent">
|
||||
<textField>
|
||||
<reportElement style="Crosstab Data Text" x="0" y="0" width="50" height="25" uuid="5e0ed85a-2b5b-4a98-b500-a3ac3fd951a0"/>
|
||||
<textFieldExpression><![CDATA[$V{importeMeasure}]]></textFieldExpression>
|
||||
</textField>
|
||||
</cellContents>
|
||||
</crosstabCell>
|
||||
<crosstabCell rowTotalGroup="nombpuntoventa" columnTotalGroup="nombempresa">
|
||||
<cellContents backcolor="#005FB3" mode="Transparent">
|
||||
<textField>
|
||||
<reportElement style="Crosstab Data Text" x="0" y="0" width="50" height="25" forecolor="#FFFFFF" uuid="57ef4861-998c-40bf-bbc0-6863c81d9665"/>
|
||||
<textFieldExpression><![CDATA[$V{importeMeasure}]]></textFieldExpression>
|
||||
</textField>
|
||||
</cellContents>
|
||||
</crosstabCell>
|
||||
<crosstabCell width="124" height="25" rowTotalGroup="descpago">
|
||||
<cellContents backcolor="#BFE1FF" mode="Transparent">
|
||||
<box>
|
||||
<topPen lineWidth="0.25"/>
|
||||
<leftPen lineWidth="0.25"/>
|
||||
<bottomPen lineWidth="0.25"/>
|
||||
</box>
|
||||
<textField isStretchWithOverflow="true" pattern="¤ #,##0.00" isBlankWhenNull="true">
|
||||
<reportElement style="Crosstab Data Text" stretchType="RelativeToTallestObject" x="0" y="0" width="124" height="25" forecolor="#000000" uuid="51125553-b9f3-4d1e-aa6c-f0d1256b48af"/>
|
||||
<box>
|
||||
<topPen lineWidth="0.0"/>
|
||||
</box>
|
||||
<textElement verticalAlignment="Middle"/>
|
||||
<textFieldExpression><![CDATA[$V{importeMeasure}]]></textFieldExpression>
|
||||
</textField>
|
||||
</cellContents>
|
||||
</crosstabCell>
|
||||
<crosstabCell rowTotalGroup="descpago" columnTotalGroup="nombempresa">
|
||||
<cellContents backcolor="#BFE1FF" mode="Transparent">
|
||||
<textField>
|
||||
<reportElement style="Crosstab Data Text" x="0" y="0" width="50" height="25" uuid="dc16ce87-9e47-41f4-87f8-5012fbdb0a1d"/>
|
||||
<textFieldExpression><![CDATA[$V{importeMeasure}]]></textFieldExpression>
|
||||
</textField>
|
||||
</cellContents>
|
||||
</crosstabCell>
|
||||
</crosstab>
|
||||
</band>
|
||||
</summary>
|
||||
<noData>
|
||||
<band height="20">
|
||||
<textField isBlankWhenNull="true">
|
||||
<reportElement positionType="Float" x="0" y="0" width="555" height="20" isPrintWhenDetailOverflows="true" uuid="d7df66c6-4dc0-4f3b-88f4-b22094d29091"/>
|
||||
<textElement verticalAlignment="Middle"/>
|
||||
<textFieldExpression><![CDATA[$R{msg.noData}]]></textFieldExpression>
|
||||
</textField>
|
||||
</band>
|
||||
</noData>
|
||||
</jasperReport>
|
|
@ -0,0 +1,62 @@
|
|||
package com.rjconsultores.ventaboletos.relatorios.utilitarios;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
public class RelatorioVendasConexaoBean {
|
||||
|
||||
private String nombpuntoventa;
|
||||
private String nombempresa;
|
||||
private Integer empresaId;
|
||||
private BigDecimal importe;
|
||||
private String descpago;
|
||||
private boolean negate;
|
||||
|
||||
public String getNombpuntoventa() {
|
||||
return nombpuntoventa;
|
||||
}
|
||||
|
||||
public void setNombpuntoventa(String nombpuntoventa) {
|
||||
this.nombpuntoventa = nombpuntoventa;
|
||||
}
|
||||
|
||||
public String getNombempresa() {
|
||||
return nombempresa;
|
||||
}
|
||||
|
||||
public void setNombempresa(String nombempresa) {
|
||||
this.nombempresa = nombempresa;
|
||||
}
|
||||
|
||||
public Integer getEmpresaId() {
|
||||
return empresaId;
|
||||
}
|
||||
|
||||
public void setEmpresaId(Integer empresaId) {
|
||||
this.empresaId = empresaId;
|
||||
}
|
||||
|
||||
public BigDecimal getImporte() {
|
||||
return importe;
|
||||
}
|
||||
|
||||
public void setImporte(BigDecimal importe) {
|
||||
this.importe = importe;
|
||||
}
|
||||
|
||||
public String getDescpago() {
|
||||
return descpago;
|
||||
}
|
||||
|
||||
public void setDescpago(String descpago) {
|
||||
this.descpago = descpago;
|
||||
}
|
||||
|
||||
public boolean isNegate() {
|
||||
return negate;
|
||||
}
|
||||
|
||||
public void setNegate(boolean negate) {
|
||||
this.negate = negate;
|
||||
}
|
||||
|
||||
}
|
|
@ -1,7 +1,6 @@
|
|||
package com.rjconsultores.ventaboletos.web.gui.controladores.esquemaoperacional;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Calendar;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
|
||||
|
@ -35,6 +34,7 @@ public class EditarConexionConfController extends MyGenericForwardComposer {
|
|||
private MyComboboxEstandar cmbClasseServicio;
|
||||
private MyListbox listBoxDesconto;
|
||||
private Decimalbox txtValorDesconto;
|
||||
private Decimalbox txtValorDescontoTasaEmbarque;
|
||||
|
||||
private ConexionConf conexionConf;
|
||||
private Conexion conexion;
|
||||
|
@ -86,6 +86,7 @@ public class EditarConexionConfController extends MyGenericForwardComposer {
|
|||
public void onClick$btnAddDesconto(Event event) throws InterruptedException {
|
||||
ConexionDescuento conexionDescuento = new ConexionDescuento();
|
||||
conexionDescuento.setDescuento(txtValorDesconto.getValue());
|
||||
conexionDescuento.setDescuentoTasaEmbarque(txtValorDescontoTasaEmbarque.getValue());
|
||||
conexionDescuento.setConexion(conexion);
|
||||
conexionDescuento.setGrupo(conexion.getNumgrupo());
|
||||
conexionDescuento.setSecuencia(conexion.getNumsecuencia());
|
||||
|
@ -96,6 +97,7 @@ public class EditarConexionConfController extends MyGenericForwardComposer {
|
|||
txtValorDesconto.setConstraint("");
|
||||
txtValorDesconto.setText("");
|
||||
txtValorDesconto.setConstraint("no empty");
|
||||
txtValorDescontoTasaEmbarque.setText("");
|
||||
cmbClasseServicio.setSelectedIndex(-1);
|
||||
} else {
|
||||
cmbClasseServicio.setSelectedIndex(-1);
|
||||
|
|
|
@ -27,7 +27,6 @@ import com.rjconsultores.ventaboletos.entidad.ConexionExcepcion;
|
|||
import com.rjconsultores.ventaboletos.entidad.ConexionExcepcionRuta;
|
||||
import com.rjconsultores.ventaboletos.entidad.Parada;
|
||||
import com.rjconsultores.ventaboletos.entidad.Ruta;
|
||||
import com.rjconsultores.ventaboletos.entidad.Tramo;
|
||||
import com.rjconsultores.ventaboletos.service.ConexionConfService;
|
||||
import com.rjconsultores.ventaboletos.service.ConexionCtrlService;
|
||||
import com.rjconsultores.ventaboletos.service.ConexionDescuentoService;
|
||||
|
|
|
@ -0,0 +1,115 @@
|
|||
package com.rjconsultores.ventaboletos.web.gui.controladores.relatorios;
|
||||
|
||||
import java.sql.SQLException;
|
||||
import java.sql.Timestamp;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.Date;
|
||||
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.util.resource.Labels;
|
||||
import org.zkoss.zk.ui.Component;
|
||||
import org.zkoss.zk.ui.event.Event;
|
||||
import org.zkoss.zul.Comboitem;
|
||||
import org.zkoss.zul.Datebox;
|
||||
|
||||
import com.rjconsultores.ventaboletos.entidad.Empresa;
|
||||
import com.rjconsultores.ventaboletos.entidad.PuntoVenta;
|
||||
import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioVendasConexao;
|
||||
import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio;
|
||||
import com.rjconsultores.ventaboletos.utilerias.DateUtil;
|
||||
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxPuntoVenta;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
||||
|
||||
@Controller("relatorioVendasConexaoController")
|
||||
@Scope("prototype")
|
||||
public class RelatorioVendasConexaoController extends MyGenericForwardComposer {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@Autowired
|
||||
private DataSource dataSourceRead;
|
||||
|
||||
private MyComboboxEstandar cmbEmpresa;
|
||||
private List<Empresa> lsEmpresa;
|
||||
|
||||
private Datebox dataInicial;
|
||||
private Datebox dataFinal;
|
||||
|
||||
private MyComboboxPuntoVenta cmbPuntoVenta;
|
||||
|
||||
@Override
|
||||
public void doAfterCompose(Component comp) throws Exception {
|
||||
super.doAfterCompose(comp);
|
||||
this.lsEmpresa = UsuarioLogado.getUsuarioLogado().getEmpresa();
|
||||
}
|
||||
|
||||
public void onClick$btnExecutarRelatorio(Event ev) throws Exception {
|
||||
excutarRelatorios();
|
||||
}
|
||||
|
||||
public void excutarRelatorios() throws SQLException, Exception {
|
||||
|
||||
SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy");
|
||||
Date dataDe = dataInicial.getValue();
|
||||
Date dataAte = dataFinal.getValue();
|
||||
|
||||
Timestamp fecVentaInicial = new Timestamp(DateUtil.inicioFecha(dataDe).getTime());
|
||||
Timestamp fecVentaFinal = new Timestamp(DateUtil.fimFecha(dataAte).getTime());
|
||||
|
||||
Map<String, Object> parametros = new HashMap<String, Object>();
|
||||
parametros.put("fecInicio", sdf.format(dataDe));
|
||||
parametros.put("fecFinal", sdf.format(dataAte));
|
||||
|
||||
parametros.put("dataFiltroInicial", fecVentaInicial);
|
||||
parametros.put("dataFiltroFinal", fecVentaFinal);
|
||||
|
||||
Comboitem itemEmpresa = cmbEmpresa.getSelectedItem();
|
||||
if (itemEmpresa != null) {
|
||||
Empresa empresa = (Empresa) itemEmpresa.getValue();
|
||||
parametros.put("EMPRESA_ID", empresa.getEmpresaId());
|
||||
parametros.put("empresa", empresa.getNombempresa());
|
||||
} else {
|
||||
parametros.put("empresa", "Todas;");
|
||||
}
|
||||
|
||||
Comboitem itemPuntoventa = cmbPuntoVenta.getSelectedItem();
|
||||
if(itemPuntoventa != null) {
|
||||
PuntoVenta puntoVenta = (PuntoVenta) itemPuntoventa.getValue();
|
||||
if(puntoVenta.getPuntoventaId() > -1) {
|
||||
parametros.put("PUNTOVENTA_ID", puntoVenta.getPuntoventaId());
|
||||
parametros.put("puntoventa", puntoVenta.getNombpuntoventa());
|
||||
} else {
|
||||
parametros.put("puntoventa", "Todas;");
|
||||
}
|
||||
} else {
|
||||
parametros.put("puntoventa", "Todas;");
|
||||
|
||||
}
|
||||
|
||||
Map<String, Object> args = new HashMap<String, Object>();
|
||||
Relatorio relatorio = new RelatorioVendasConexao(parametros, dataSourceRead.getConnection());
|
||||
args.put("relatorio", relatorio);
|
||||
|
||||
openWindow("/component/reportView.zul",
|
||||
Labels.getLabel("indexController.mniRelatorioVendasConexao.label"), args, MODAL);
|
||||
|
||||
}
|
||||
|
||||
public List<Empresa> getLsEmpresa() {
|
||||
return lsEmpresa;
|
||||
}
|
||||
|
||||
public void setLsEmpresa(List<Empresa> lsEmpresa) {
|
||||
this.lsEmpresa = lsEmpresa;
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,25 @@
|
|||
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 ItemMenuRelatorioVendasConexao extends DefaultItemMenuSistema {
|
||||
|
||||
public ItemMenuRelatorioVendasConexao() {
|
||||
super("indexController.mniRelatorioVendasConexao.label");
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getClaveMenu() {
|
||||
return "COM.RJCONSULTORES.ADMINISTRACION.GUI.RELATORIOS.MENU.RELATORIOVENDASCONEXAO";
|
||||
}
|
||||
|
||||
@Override
|
||||
public void ejecutar() {
|
||||
PantallaUtileria.openWindow("/gui/relatorios/filtroRelatorioVendasConexao.zul",
|
||||
Labels.getLabel("indexController.mniRelatorioVendasConexao.label"), getArgs(), desktop);
|
||||
}
|
||||
|
||||
}
|
|
@ -187,6 +187,7 @@ analitico.gerenciais.financeiro.relatorioVendasParcelamento=com.rjconsultores.ve
|
|||
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.financeiro.relatorioVendasPercurso=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioVendasPercurso
|
||||
analitico.gerenciais.financeiro.vendasConexao=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioVendasConexao
|
||||
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.detalhado=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioVendasPacotesDetalhado
|
||||
|
|
|
@ -14,6 +14,9 @@ public class RenderConexionDescuento implements ListitemRenderer {
|
|||
Listcell lc = new Listcell(conexionDescuento.getDescuento().toString());
|
||||
lc.setParent(listItem);
|
||||
|
||||
lc = new Listcell(conexionDescuento.getDescuentoTasaEmbarque() != null ? conexionDescuento.getDescuentoTasaEmbarque().toString() : "");
|
||||
lc.setParent(listItem);
|
||||
|
||||
lc = new Listcell(conexionDescuento.getClaseServicio().getDescclase());
|
||||
lc.setParent(listItem);
|
||||
}
|
||||
|
|
|
@ -61,6 +61,8 @@ lb.CentroResultado = Centro de Resultado
|
|||
lb.ate = Hasta
|
||||
lb.dataIni.value = Fecha Ini
|
||||
lb.dataFin.value = Fecha fin
|
||||
lb.empresa = Empresa
|
||||
lb.puntoventa = Punto Venta
|
||||
|
||||
# Reporte
|
||||
relatorio.lb.btnExecutarRelatorio = Ejecutar reporte
|
||||
|
@ -298,6 +300,7 @@ indexController.mniRelatorioVendasParcelamento.label=Ventas con Parcelamiento
|
|||
indexController.mniRelatorioImpressaoPosterior.label=Impresión posterior
|
||||
indexController.mniRelatorioServicoBloqueadoVendaInternet.label = Corrida bloqueada en venta internet
|
||||
indexController.mniRelatorioDocumentosFiscais.label = Report Documentos Fiscais
|
||||
indexController.mniRelatorioVendasConexao.label = Reporte Ventas Conexion
|
||||
|
||||
indexController.mniRelatorioRemessaCNAB.label = Remessa de Lote (CNAB 400)
|
||||
|
||||
|
@ -6314,6 +6317,15 @@ editarConexionConfController.window.title = Editar configuración de la conexió
|
|||
editarConexionConfController.MSG.suscribirOK = Configuración de conexión se guardó exitosamente.
|
||||
editarConexionConfController.MSG.desativarOK = Conexión se desactivó exitosamente.
|
||||
editarConexionConfController.MSG.ativarOK = Conexión se activo exitosamente.
|
||||
editarConexionController.label.desconto=Descuento %
|
||||
editarConexionController.label.descontoTasaEmbarque=Descuento Tasa de Embarque %
|
||||
editarConexionController.label.classeServicio= Clase
|
||||
editarConexionConfController.MSG.classeRepetida=La clase seleccionada ya consta en la tabla de descuentos!
|
||||
editarConexionConfController.MSG.nenhumItemSelecionado=Ningún ítem de la tabla seleccionado!
|
||||
editarConexionConfController.btnConfirmar.tooltiptext=Confirmar
|
||||
editarConexionConfController.MSG.conexionCtrlExistente=Ya existe una conexión para el origen y el destino informado!
|
||||
editarConexionController.MSG.trechoInexistente=El tramo informado no existe!
|
||||
editarConexionController.MSG.conexaoInvalida=Verifique las conexiones y certifíquese de que todas de mismo grupo contengan el número de servicio o que los números de servicio estén vacíos!
|
||||
|
||||
#atualizaCorridaFecHusoFecVerano
|
||||
atualizaCorridaFecHusoFecVerano.numcorrida=Corrida
|
||||
|
|
|
@ -69,6 +69,8 @@ lb.CentroResultado = Centro de Resultado
|
|||
lb.ate = até
|
||||
lb.dataIni.value = Data Inicial
|
||||
lb.dataFin.value = Data Final
|
||||
lb.empresa = Empresa
|
||||
lb.puntoventa = Ponto de Venda (Agência)
|
||||
|
||||
# Relatório
|
||||
relatorio.lb.btnExecutarRelatorio = Executar Relatório
|
||||
|
@ -316,6 +318,7 @@ indexController.mniRelatorioVendasParcelamento.label=Vendas com Parcelamento
|
|||
indexController.mniRelatorioImpressaoPosterior.label=Impressão Posterior
|
||||
indexController.mniRelatorioServicoBloqueadoVendaInternet.label = Serviço Bloqueado na Venda Internet
|
||||
indexController.mniRelatorioDocumentosFiscais.label = Relatório Documentos Fiscais
|
||||
indexController.mniRelatorioVendasConexao.label = Relatório Vendas de Conexão
|
||||
|
||||
indexController.mnSubMenuImpressaoFiscal.label=Impressão Fiscal
|
||||
indexController.mnSubMenuRelatorioImpressaoFiscal.label=Importação Fiscal
|
||||
|
@ -6588,13 +6591,14 @@ editarConexionConfController.MSG.suscribirOK = Configuração de Conexão salva
|
|||
editarConexionConfController.MSG.desativarOK = Conexão desativada com sucesso.
|
||||
editarConexionConfController.MSG.ativarOK = Conexao ativada com sucesso.
|
||||
editarConexionController.label.desconto=Desconto %
|
||||
editarConexionController.label.descontoTasaEmbarque=Desconto Taxa de Embarque %
|
||||
editarConexionController.label.classeServicio= Classe
|
||||
editarConexionConfController.MSG.classeRepetida=A classe selecionada já consta na tabela de descontos!
|
||||
editarConexionConfController.MSG.nenhumItemSelecionado=Nenhum item da tabela selecionado!
|
||||
editarConexionConfController.btnConfirmar.tooltiptext=Confirmar
|
||||
editarConexionConfController.MSG.conexionCtrlExistente=Já existe uma conexão para a origem e o destino informado!
|
||||
editarConexionController.MSG.trechoInexistente=O trecho informado não existe!
|
||||
editarConexionController.MSG.conexaoInvalida= Verifique as conexoes e certifique-se de que todas de mesmo grupo contenham o número de serviço ou que os números de serviço estejam vazios!
|
||||
editarConexionController.MSG.conexaoInvalida=Verifique as conexoes e certifique-se de que todas de mesmo grupo contenham o número de serviço ou que os números de serviço estejam vazios!
|
||||
|
||||
|
||||
#atualizaCorridaFecHusoFecVerano
|
||||
|
|
|
@ -59,6 +59,12 @@
|
|||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||
mold="rounded" buttonVisible="true" width="100%" constraint="no empty"/>
|
||||
</row>
|
||||
|
||||
<row spans="1,3">
|
||||
<label
|
||||
value="${c:l('editarConexionController.label.descontoTasaEmbarque')}" />
|
||||
<decimalbox id="txtValorDescontoTasaEmbarque" width="23%" />
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
|
||||
|
@ -79,6 +85,9 @@
|
|||
<listheader
|
||||
label="${c:l('editarConexionController.label.desconto')}" />
|
||||
|
||||
<listheader
|
||||
label="${c:l('editarConexionController.label.descontoTasaEmbarque')}" />
|
||||
|
||||
<listheader
|
||||
label="${c:l('editarConexionController.label.classeServicio')}" />
|
||||
</listhead>
|
||||
|
|
|
@ -35,6 +35,7 @@
|
|||
buttonVisible="true"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||
model="@{winFiltroRelatorioVendasComissao$composer.lsEmpresa}"
|
||||
mold="rounded"
|
||||
width="95%" />
|
||||
<label
|
||||
value="${c:l('relatorioCancelamentoVendaCartaoController.lbPuntoVenta.value')}"/>
|
||||
|
|
|
@ -0,0 +1,58 @@
|
|||
<?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="winFiltroRelatorioVendasConexao"?>
|
||||
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
|
||||
|
||||
<zk xmlns="http://www.zkoss.org/2005/zul">
|
||||
<window id="winFiltroRelatorioVendasConexao"
|
||||
apply="${relatorioVendasConexaoController}"
|
||||
contentStyle="overflow:auto" width="700px" border="normal">
|
||||
<grid fixedLayout="true">
|
||||
<columns>
|
||||
<column width="15%" />
|
||||
<column width="35%" />
|
||||
<column width="15%" />
|
||||
<column width="35%" />
|
||||
</columns>
|
||||
<rows>
|
||||
<row>
|
||||
<label
|
||||
value="${c:l('lb.empresa')}" />
|
||||
<combobox id="cmbEmpresa"
|
||||
buttonVisible="true"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||
model="@{winFiltroRelatorioVendasConexao$composer.lsEmpresa}"
|
||||
width="95%"
|
||||
mold="rounded"
|
||||
constraint="no empty" />
|
||||
|
||||
<label
|
||||
value="${c:l('lb.puntoventa')}" />
|
||||
<combobox id="cmbPuntoVenta"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxPuntoVenta"
|
||||
mold="rounded" buttonVisible="true" width="90%"
|
||||
constraint="no empty" />
|
||||
</row>
|
||||
|
||||
<row>
|
||||
<label
|
||||
value="${c:l('lb.dataIni.value')}" />
|
||||
<datebox id="dataInicial" width="100%" mold="rounded"
|
||||
format="dd/MM/yyyy" constraint="no empty"
|
||||
maxlength="10" />
|
||||
<label
|
||||
value="${c:l('lb.dataFin.value')}" />
|
||||
<datebox id="dataFinal" width="100%" mold="rounded"
|
||||
format="dd/MM/yyyy" constraint="no empty"
|
||||
maxlength="10" />
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
<toolbar>
|
||||
<button id="btnExecutarRelatorio" image="/gui/img/enginer.png"
|
||||
label="${c:l('relatorio.lb.btnExecutarRelatorio')}" />
|
||||
</toolbar>
|
||||
</window>
|
||||
</zk>
|
||||
|
Loading…
Reference in New Issue