fix bug #0009384 - Desenvolvimento do Relatório de AIDF Detalhado

git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@72182 d1611594-4594-4d17-8e1d-87c2c4800839
master
bruno.neves 2017-08-02 13:35:53 +00:00
parent 9fcfa479d5
commit 6b9b422517
12 changed files with 656 additions and 0 deletions

View File

@ -0,0 +1,91 @@
package com.rjconsultores.ventaboletos.relatorios.impl;
import java.sql.Connection;
import java.sql.ResultSet;
import java.util.HashMap;
import java.util.Map;
import com.rjconsultores.ventaboletos.relatorios.utilitarios.ArrayDataSource;
import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio;
import com.rjconsultores.ventaboletos.web.utilerias.NamedParameterStatement;
public class RelatorioAidfDetalhado extends Relatorio {
public RelatorioAidfDetalhado(Map<String, Object> parametros, Connection conexao) throws Exception
{
super(parametros, conexao);
this.setCustomDataSource(new ArrayDataSource(this) {
public void initDados() throws Exception {
Connection conexao = this.relatorio.getConexao();
Map<String, Object> parametros = this.relatorio.getParametros();
String sql = getSql();
NamedParameterStatement stmt = new NamedParameterStatement(conexao, sql);
ResultSet rset = stmt.executeQuery();
while (rset.next()) {
Map<String, Object> dataResult = new HashMap<String, Object>();
dataResult.put("aidf", rset.getString("aidf"));
dataResult.put("empresa", rset.getString("nombempresa"));
dataResult.put("estacao", rset.getString("estacao"));
dataResult.put("agencia", rset.getString("nombpuntoventa"));
dataResult.put("serie", rset.getString("serie"));
dataResult.put("subserie", rset.getString("subserie"));
dataResult.put("numeracao", rset.getString("numeracao"));
dataResult.put("folios", rset.getString("folios"));
dataResult.put("forminicio", rset.getString("forminicial"));
dataResult.put("formfinal", rset.getString("formfinal"));
this.dados.add(dataResult);
}
this.resultSet = rset;
}
});
}
@Override
protected void processaParametros() throws Exception {
}
private String getSql() {
StringBuilder sql = new StringBuilder();
sql.append(" select a.aidf_id as aidf, e.nombempresa, p.nombpuntoventa, a.serie, ab.estacion_id as estacao, a.subserie, a.forminicial, a.formfinal,");
sql.append(" concat(a.forminicial, concat('-',a.formfinal)) as numeracao,");
sql.append(" concat(fp.foliopreimpreso,concat('-',dab.numfoliofinal)) as folios ");
sql.append(" from aidf a ");
sql.append(" inner join empresa e on e.empresa_id = a.empresa_id ");
sql.append(" inner join abasto_boleto ab on a.empresa_id = ab.empresa_id and ab.ACTIVO = 1 ");
sql.append(" inner join det_abasto_boleto dab on dab.abastoboleto_id = ab.abastoboleto_id and dab.ACTIVO = 1 ");
sql.append(" inner join punto_venta p on p.puntoventa_id = ab.puntoventa_id and p.ACTIVO = 1");
sql.append(" inner join folio_preimpreso fp on (a.serie=fp.numeserie or concat(a.aidf_id, concat(a.serie,a.subserie))=fp.numeserie) and fp.ACTIVO = 1");
sql.append("where (case when (length(dab.numseriepreimpresa) < 3) then '0' else substr(dab.numseriepreimpresa,0,3) end) = cast(a.aidf_id as varchar(10))");
sql.append(" and a.ACTIVO = 1");
if(parametros.get("EMPRESA_ID") != null){
sql.append(" and a.empresa_id = ").append(parametros.get("EMPRESA_ID"));
}
if(parametros.get("SERIE") != null){
sql.append(" and (a.serie ='").append(parametros.get("SERIE")).append("'");
sql.append(" or concat(a.aidf_id, concat(a.SERIE,a.SUBSERIE))='").append(parametros.get("SERIE")).append("')");
}
if(parametros.get("AIDF") != null){
sql.append(" and a.aidf_id like'%").append(parametros.get("AIDF")).append("%'");
}
if(parametros.get("INICIOFORM") != null){
sql.append(" and a.forminicial >= ").append(parametros.get("INICIOFORM"));
}
if(parametros.get("FIMFORM") != null){
sql.append(" and a.formfinal <= ").append(parametros.get("FIMFORM"));
}
sql.append(" group by a.aidf_id, e.nombempresa, p.nombpuntoventa, a.serie, ab.estacion_id , a.subserie,concat(a.forminicial, concat('-',a.formfinal)), a.forminicial, a.formfinal, ");
sql.append(" concat(fp.foliopreimpreso,concat('-',dab.numfoliofinal)) ");
sql.append(" order by a.aidf_id");
return sql.toString();
}
}

View File

@ -0,0 +1,24 @@
#geral
msg.noData=Não foi possivel obter dados com os parâmetros informados.
#Labels cabeçalho
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:
#Labels header
label.aidf=AIDF
label.empresa=Empresa
label.agencia=Agência
label.serie=Série
label.bilhete=Bilhetes
label.numeracao=Numeração
label.subserie=Subserie
label.formInicio=F. Inicio
label.formFim=F. Fim

View File

@ -0,0 +1,20 @@
#geral
msg.noData=Não foi possivel obter dados com os parâmetros informados.
#Labels cabeçalho
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:
#Labels header
label.aidf=AIDF
label.empresa=Empresa
label.agencia=Agencia
label.serie=Serie
label.bilhete=Bilhetes
label.numeracao=Numeração

View File

@ -18,3 +18,6 @@ label.agencia=Agencia
label.serie=Serie
label.bilhete=Bilhetes
label.numeracao=Numeração
label.subserie=Subserie
label.formInicio=F. Inicio
label.formFim=F. Fim

View File

@ -0,0 +1,213 @@
<?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="RelatorioAidfDetalhado" pageWidth="842" pageHeight="595" orientation="Landscape" whenNoDataType="NoDataSection" columnWidth="802" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" resourceBundle="/ventaboletosadm/src/java/com/rjconsultores/ventaboletos/relatorios/internacionalizacao/RelatorioAidfDetalhado_es_BR" uuid="c092ef85-9334-4225-93d7-1acb7cf4d021">
<property name="ireport.zoom" value="1.0"/>
<property name="ireport.x" value="0"/>
<property name="ireport.y" value="0"/>
<property name="net.sf.jasperreports.export.xls.exclude.origin.keep.first.band.2" value="pageHeader"/>
<property name="net.sf.jasperreports.export.xls.exclude.origin.keep.first.band.1" value="columnHeader"/>
<parameter name="NOME_RELATORIO" class="java.lang.String"/>
<parameter name="DATA_INICIAL" class="java.util.Date"/>
<parameter name="DATA_FINAL" class="java.util.Date"/>
<parameter name="USUARIO" class="java.lang.String"/>
<parameter name="FILTROS" class="java.lang.String"/>
<queryString>
<![CDATA[]]>
</queryString>
<field name="aidf" class="java.lang.String"/>
<field name="empresa" class="java.lang.String"/>
<field name="agencia" class="java.lang.String"/>
<field name="serie" class="java.lang.String"/>
<field name="numeracao" class="java.lang.String"/>
<field name="folios" class="java.lang.String"/>
<field name="subserie" class="java.lang.String"/>
<field name="forminicio" class="java.lang.String"/>
<field name="formfinal" class="java.lang.String"/>
<background>
<band splitType="Stretch"/>
</background>
<pageHeader>
<band height="82" splitType="Stretch">
<textField pattern="" isBlankWhenNull="false">
<reportElement mode="Transparent" x="0" y="0" width="457" height="35" forecolor="#000000" backcolor="#FFFFFF" uuid="136a5066-d141-4362-af36-0780f0d16542"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="14" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$P{NOME_RELATORIO}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="628" y="0" width="100" height="25" uuid="a9d471fb-1e1d-4d9a-9783-bbf988931192"/>
<textElement textAlignment="Right">
<font size="9" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$R{cabecalho.dataHora}]]></textFieldExpression>
</textField>
<textField pattern="dd/MM/yyyy HH:mm" isBlankWhenNull="false">
<reportElement mode="Transparent" x="728" y="0" width="73" height="25" forecolor="#000000" backcolor="#FFFFFF" uuid="0d200750-aabf-4c7e-b27b-c0e7af4802a9"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[new java.util.Date()]]></textFieldExpression>
</textField>
<line>
<reportElement x="0" y="57" width="802" height="1" uuid="bbf33a72-515f-42fc-8c79-e859aebca31d"/>
</line>
<textField pattern="" isBlankWhenNull="false">
<reportElement mode="Transparent" x="668" y="26" width="112" height="15" forecolor="#000000" backcolor="#FFFFFF" uuid="bae9bec6-8c42-4bee-a070-34b0a7f1aee4"/>
<textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$R{cabecalho.pagina}+" "+$V{PAGE_NUMBER}+" "+$R{cabecalho.de}]]></textFieldExpression>
</textField>
<textField evaluationTime="Report" pattern="" isBlankWhenNull="false">
<reportElement mode="Transparent" x="781" y="26" width="20" height="15" forecolor="#000000" backcolor="#FFFFFF" uuid="314e312c-8f24-42de-8354-3c1f7241a985"/>
<textElement textAlignment="Center" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$V{PAGE_NUMBER}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="false">
<reportElement mode="Transparent" x="698" y="42" width="100" height="15" forecolor="#000000" backcolor="#FFFFFF" uuid="4e030613-9cee-443e-9eaa-b19fa3090976"/>
<textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="7" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$R{cabecalho.impressorPor}+" "+$P{USUARIO}]]></textFieldExpression>
</textField>
<line>
<reportElement x="0" y="77" width="802" height="1" uuid="6ca45088-a58d-43b3-b196-8fc26e128fbf"/>
</line>
<textField>
<reportElement x="0" y="59" width="802" height="14" uuid="b29d0494-2695-420b-bdc1-b13c08bdbcda"/>
<textElement verticalAlignment="Middle">
<font size="8"/>
</textElement>
<textFieldExpression><![CDATA[$P{FILTROS}]]></textFieldExpression>
</textField>
</band>
</pageHeader>
<columnHeader>
<band height="35" splitType="Stretch">
<line>
<reportElement x="1" y="34" width="802" height="1" uuid="a11636cc-5ee1-44cc-8cd1-cbe2ebc47abb"/>
</line>
<staticText>
<reportElement x="1" y="15" width="93" height="20" uuid="ed0c0a45-151a-400e-a30c-fd8afa88438b"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="12" isBold="true"/>
</textElement>
<text><![CDATA[AIDF]]></text>
</staticText>
<staticText>
<reportElement x="429" y="14" width="75" height="20" uuid="0bc3df3b-544b-4e68-ace9-f725d4541781"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="12" isBold="true"/>
</textElement>
<text><![CDATA[Serie]]></text>
</staticText>
<staticText>
<reportElement x="95" y="15" width="166" height="20" uuid="6db7e341-bc01-4843-8be5-fe74d78b7529"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="12" isBold="true"/>
</textElement>
<text><![CDATA[Empresa]]></text>
</staticText>
<staticText>
<reportElement x="261" y="14" width="168" height="20" uuid="d60cb698-201c-4315-bec2-498effeea474"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="12" isBold="true"/>
</textElement>
<text><![CDATA[Agêcia]]></text>
</staticText>
<staticText>
<reportElement x="501" y="14" width="75" height="20" uuid="cac5eac8-5b7f-49e9-a9eb-772fed9c238f"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="12" isBold="true"/>
</textElement>
<text><![CDATA[Subserie]]></text>
</staticText>
<staticText>
<reportElement x="576" y="14" width="105" height="20" uuid="a26b9060-8bd5-4586-af31-e01b0ccf88f9"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="12" isBold="true"/>
</textElement>
<text><![CDATA[Numeração]]></text>
</staticText>
<staticText>
<reportElement x="681" y="14" width="117" height="20" uuid="fcf366c0-0f13-44f7-84de-38ae1122b647"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="12" isBold="true"/>
</textElement>
<text><![CDATA[Folios]]></text>
</staticText>
</band>
</columnHeader>
<detail>
<band height="22" splitType="Stretch">
<textField>
<reportElement x="261" y="0" width="168" height="20" uuid="c35afacb-b160-4ace-b7be-c2e2f54ac1c0"/>
<textElement textAlignment="Center">
<font size="10" isBold="false" isItalic="false"/>
</textElement>
<textFieldExpression><![CDATA[$F{agencia}]]></textFieldExpression>
</textField>
<textField isBlankWhenNull="true">
<reportElement x="95" y="0" width="166" height="20" uuid="73582b2a-b21b-4637-990c-aff7423a8e27"/>
<textElement textAlignment="Center">
<font size="10" isBold="false" isItalic="false"/>
</textElement>
<textFieldExpression><![CDATA[$F{empresa}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" pattern="dd/MM/yyyy" isBlankWhenNull="true">
<reportElement mode="Transparent" x="429" y="0" width="75" height="20" forecolor="#000000" backcolor="#FFFFFF" uuid="29ae3fa8-9db1-46c8-bcf7-cb9aa7bc6eb3"/>
<textElement textAlignment="Center" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="10" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$F{serie}]]></textFieldExpression>
</textField>
<textField pattern="dd/MM/yyyy">
<reportElement x="0" y="1" width="94" height="20" uuid="bfb9d635-bbc1-4e92-890a-df8299bc8daa"/>
<textElement textAlignment="Center">
<font size="10" isBold="false" isItalic="false"/>
</textElement>
<textFieldExpression><![CDATA[$F{aidf}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" pattern="¤ #,##0.00" isBlankWhenNull="true">
<reportElement mode="Transparent" x="576" y="0" width="105" height="20" forecolor="#000000" backcolor="#FFFFFF" uuid="3dbaaef7-dae9-402d-89d4-a8055462f563"/>
<textElement textAlignment="Center" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="10" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$F{numeracao}]]></textFieldExpression>
</textField>
<textField isBlankWhenNull="true">
<reportElement x="504" y="0" width="72" height="20" uuid="3fab32db-2b16-4bb6-bfbd-ba3941f4040f"/>
<textElement textAlignment="Center"/>
<textFieldExpression><![CDATA[$F{subserie}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="681" y="0" width="118" height="20" uuid="f1e52aa0-f61d-4c94-bb09-e51cde37f2cc"/>
<textElement textAlignment="Center"/>
<textFieldExpression><![CDATA[$F{folios}]]></textFieldExpression>
</textField>
</band>
</detail>
<summary>
<band height="77" splitType="Stretch"/>
</summary>
<noData>
<band height="50">
<textField>
<reportElement x="46" y="24" width="530" height="26" uuid="6f13c961-dd50-4e44-ba73-65e0752b8b83"/>
<textElement markup="none">
<font size="11" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$R{msg.noData}]]></textFieldExpression>
</textField>
</band>
</noData>
</jasperReport>

View File

@ -0,0 +1,207 @@
package com.rjconsultores.ventaboletos.web.gui.controladores.relatorios;
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 org.zkoss.zul.Textbox;
import com.rjconsultores.ventaboletos.entidad.Empresa;
import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioAidfDetalhado;
import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio;
import com.rjconsultores.ventaboletos.service.EmpresaService;
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar;
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
@Controller("relatorioAidfDetalhadoController")
@Scope("prototype")
public class RelatorioAidfDetalhadoController extends MyGenericForwardComposer {
private static final long serialVersionUID = 1L;
private Datebox datInicial;
private Datebox datFinal;
private MyComboboxEstandar cmbEmpresa;
private List<Empresa> lsEmpresa;
private Textbox txtSerie;
private Textbox txtAIDF;
private Textbox txtInicioForm;
private Textbox txtFimForm;
@Autowired
private EmpresaService empresaService;
@Autowired
private DataSource dataSourceRead;
@Override
public void doAfterCompose(Component comp) throws Exception {
lsEmpresa = empresaService.obtenerTodos();
super.doAfterCompose(comp);
}
/**
* @throws Exception
*
*/
@SuppressWarnings({ "rawtypes", "unchecked" })
private void executarRelatorio() throws Exception {
Relatorio relatorio;
Map<String, Object> parametros = new HashMap<String, Object>();
StringBuilder filtro = new StringBuilder();
parametros.put("NOME_RELATORIO", Labels.getLabel("relatorioAidfDetalhadoController.window.title"));
parametros.put("USUARIO", UsuarioLogado.getUsuarioLogado().getUsuarioId().toString());
parametros.put("USUARIO_NOME", UsuarioLogado.getUsuarioLogado().getNombusuario());
filtro.append("Empresa: ");
Comboitem itemEmpresa = cmbEmpresa.getSelectedItem();
if (itemEmpresa != null) {
Empresa empresa = (Empresa) itemEmpresa.getValue();
parametros.put("EMPRESA_ID", empresa.getEmpresaId());
filtro.append(empresa.getNombempresa() + ";");
} else {
filtro.append(" Todas;");
}
filtro.append("AIDF: ");
if(!txtAIDF.getValue().equals("")){
parametros.put("AIDF", txtAIDF.getValue());
filtro.append(txtAIDF.getValue() + ";");
}else{
filtro.append(" Todas;");
}
filtro.append("Inicio Form: ");
if(!txtInicioForm.getValue().equals("")){
parametros.put("INICIOFORM", txtInicioForm.getValue());
filtro.append(txtInicioForm.getValue() + ";");
}else{
filtro.append(" Todas;");
}
filtro.append("Final Form: ");
if(!txtFimForm.getValue().equals("")){
parametros.put("FIMFORM", txtFimForm.getValue());
filtro.append(txtFimForm.getValue() + ";");
}else{
filtro.append(" Todas;");
}
filtro.append("Serie: ");
if(!txtSerie.getValue().equals("")){
parametros.put("SERIE", txtSerie.getValue());
filtro.append(txtSerie.getValue() + ";");
}else{
filtro.append(" Todas;");
}
parametros.put("FILTROS", filtro.toString());
relatorio = new RelatorioAidfDetalhado(parametros, dataSourceRead.getConnection());
Map args = new HashMap();
args.put("relatorio", relatorio);
openWindow("/component/reportView.zul",
Labels.getLabel("relatorioAidfDetalhadoController.window.title"), args, MODAL);
}
public void onClick$btnExecutarRelatorio(Event ev) throws Exception{
executarRelatorio();
}
private void executarPesquisa() {
}
public void onClick$btnPesquisa(Event ev) {
executarPesquisa();
}
public void onClick$btnLimpar(Event ev) {
}
public void onDoubleClick$puntoVentaSelList(Event ev) {
}
public void onDoubleClick$puntoVentaList(Event ev) {
}
public Datebox getDatInicial() {
return datInicial;
}
public void setDatInicial(Datebox datInicial) {
this.datInicial = datInicial;
}
public Datebox getDatFinal() {
return datFinal;
}
public void setDatFinal(Datebox datFinal) {
this.datFinal = datFinal;
}
public List<Empresa> getLsEmpresa() {
return lsEmpresa;
}
public void setLsEmpresa(List<Empresa> lsEmpresa) {
this.lsEmpresa = lsEmpresa;
}
public MyComboboxEstandar getCmbEmpresa() {
return cmbEmpresa;
}
public void setCmbEmpresa(MyComboboxEstandar cmbEmpresa) {
this.cmbEmpresa = cmbEmpresa;
}
public Textbox getTxtSerie() {
return txtSerie;
}
public void setTxtSerie(Textbox txtSerie) {
this.txtSerie = txtSerie;
}
public Textbox getTxtAIDF() {
return txtAIDF;
}
public void setTxtAIDF(Textbox txtAIDF) {
this.txtAIDF = txtAIDF;
}
public Textbox getTxtInicioForm() {
return txtInicioForm;
}
public void setTxtInicioForm(Textbox txtInicioForm) {
this.txtInicioForm = txtInicioForm;
}
public Textbox getTxtFimForm() {
return txtFimForm;
}
public void setTxtFimForm(Textbox txtFimForm) {
this.txtFimForm = txtFimForm;
}
}

View File

@ -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 ItemMenuRelatorioAidfDetalhado extends DefaultItemMenuSistema {
public ItemMenuRelatorioAidfDetalhado() {
super("indexController.mniRelatorioAIDFDetalhado.label");
}
@Override
public String getClaveMenu() {
return "COM.RJCONSULTORES.ADMINISTRACION.GUI.RELATORIOS.MENU.RELATORIOAIDFDETALHADO";
}
@Override
public void ejecutar() {
PantallaUtileria.openWindow("/gui/relatorios/filtroRelatorioAidfDetalhado.zul",
Labels.getLabel("relatorioAidfDetalhadoController.window.title"), getArgs(), desktop);
}
}

View File

@ -125,6 +125,7 @@ ingresosExtras.ingreso=com.rjconsultores.ventaboletos.web.utilerias.menu.item.in
analitico=com.rjconsultores.ventaboletos.web.utilerias.menu.item.analitico.MenuAnalitico
analitico.item=com.rjconsultores.ventaboletos.web.utilerias.menu.item.analitico.ItemMenuAnalitico
analitico.gerenciais=com.rjconsultores.ventaboletos.web.utilerias.menu.item.analitico.gerenciais.SubMenuGerenciais
analitico.gerenciais.aidfDetalhado=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioAidfDetalhado
analitico.gerenciais.confFormulario=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioConferenciaFormularioFisico
analitico.gerenciais.difTransf=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioDiferencasTransferencias
analitico.gerenciais.empresaCorrida=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioEmpresaCorrida

View File

@ -271,6 +271,7 @@ indexController.mniRelatorioCancelamentoVendaCartao.label = Cancelación de Vent
indexController.mniRelatorioCancelamentoTransacao.label = Cancelamento J3
indexController.mniRelatorioTabelaPreco.label = Relátorio de Tabela de Preços
indexController.mniRelatorioAIDF.label = Reporte AIDF
indexController.mniRelatorioAIDFDetalhado.label = AIDF Detalhado
indexController.mniPrecoApanhe.label = Preço Apanhe
indexController.mniRelatorioVendasPacotesResumido.label = Ventas de Paquetes - Resumido
indexController.mniRelatorioVendasPacotesDetalhado.label = Ventas de Paquetes - Detallado
@ -607,6 +608,16 @@ relatorioAidfController.dataFinal.value = Fecha Final
relatorioAidfController.lbEmpresa.value = Empresa
relatorioAidfController.lbSerie.value = Série
#Relatorio Aidf Detalhado
relatorioAidfDetalhadoController.window.title = Relatório Aidf Detalhado
relatorioAidfDetalhadoController.datainicial.value = Data Inicial
relatorioAidfDetalhadoController.dataFinal.value = Data Final
relatorioAidfDetalhadoController.lbEmpresa.value = Empresa
relatorioAidfDetalhadoController.lbSerie.value = Série
relatorioAidfDetalhadoController.lbAidf.value = AIDF
relatorioAidfDetalhadoController.lbFormInicial.value = Form. Inicial
relatorioAidfDetalhadoController.lbFormFinal.value = Form. Final
#Relatorio Tripulacao
relatorioTripulacao.label=Informe Tripulación
relatorioTripulacaoController.lbDataInicial=Fecha Inicial

View File

@ -285,6 +285,7 @@ indexController.mniRelatorioEstornoCartao.label=Estorno Cartão
indexController.mniRelatorioCancelamentoTransacao.label = Cancelamento J3
indexController.mniRelatorioTabelaPreco.label = Tabela de Preços
indexController.mniRelatorioAIDF.label = AIDF
indexController.mniRelatorioAIDFDetalhado.label = AIDF Detalhado
indexController.mniPrecoApanhe.label = Preço Apanhe
indexController.mniRelatorioVendasPacotesResumido.label = Vendas de Pacotes - Resumido
indexController.mniRelatorioVendasPacotesDetalhado.label = Vendas de Pacotes - Detalhado
@ -723,6 +724,16 @@ relatorioAidfController.dataFinal.value = Data Final
relatorioAidfController.lbEmpresa.value = Empresa
relatorioAidfController.lbSerie.value = Série
#Relatorio Aidf Detalhado
relatorioAidfDetalhadoController.window.title = Relatório Aidf Detalhado
relatorioAidfDetalhadoController.datainicial.value = Data Inicial
relatorioAidfDetalhadoController.dataFinal.value = Data Final
relatorioAidfDetalhadoController.lbEmpresa.value = Empresa
relatorioAidfDetalhadoController.lbSerie.value = Série
relatorioAidfDetalhadoController.lbAidf.value = AIDF
relatorioAidfDetalhadoController.lbFormInicial.value = Form. Inicial
relatorioAidfDetalhadoController.lbFormFinal.value = Form. Final
# Pantalla Editar Classe
editarClaseServicioController.window.title = Tipo de Classe
editarClaseServicioController.btnApagar.tooltiptext = Eliminar

View File

@ -0,0 +1,50 @@
<?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="winFiltroRelatorioAidfDetalhado"?>
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
<zk xmlns="http://www.zkoss.org/2005/zul">
<window id="winFiltroRelatorioAidfDetalhado" apply="${relatorioAidfDetalhadoController}"
contentStyle="overflow:auto"
height="178px" width="478px" border="normal">
<grid fixedLayout="true">
<columns>
<column width="25%" />
<column width="30%" />
<column width="15%" />
<column width="30%" />
</columns>
<rows>
<row spans="1,3">
<label value="${c:l('relatorioAidfDetalhadoController.lbAidf.value')}"/>
<textbox id="txtAIDF" maxlength="10" width="100px" use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"/>
</row>
<row spans="1,3">
<label
value="${c:l('relatorioAidfDetalhadoController.lbEmpresa.value')}" />
<combobox id="cmbEmpresa"
buttonVisible="true"
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
model="@{winFiltroRelatorioAidfDetalhado$composer.lsEmpresa}"
width="100%" />
</row>
<row spans="1,3">
<label value="${c:l('relatorioAidfDetalhadoController.lbSerie.value')}"/>
<textbox id="txtSerie" maxlength="10" width="100px" use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"/>
</row>
<row>
<label value="${c:l('relatorioAidfDetalhadoController.lbFormInicial.value')}"/>
<textbox id="txtInicioForm" maxlength="10" width="100px" use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"/>
<label value="${c:l('relatorioAidfDetalhadoController.lbFormFinal.value')}"/>
<textbox id="txtFimForm" maxlength="10" width="100px" use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"/>
</row>
</rows>
</grid>
<toolbar>
<button id="btnExecutarRelatorio" image="/gui/img/find.png"
label="${c:l('relatorio.lb.btnExecutarRelatorio')}" />
</toolbar>
</window>
</zk>