fixes bug#8701
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@66178 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
2874523be9
commit
28310dcc85
|
@ -0,0 +1,36 @@
|
|||
package com.rjconsultores.ventaboletos.web.gui.controladores.relatorios;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.context.annotation.Scope;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.zkoss.zk.ui.Component;
|
||||
|
||||
import com.rjconsultores.ventaboletos.entidad.Empresa;
|
||||
import com.rjconsultores.ventaboletos.service.EmpresaService;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Lucas
|
||||
*
|
||||
*/
|
||||
@Controller("relatorioFinanceiroReceitasDespesasController")
|
||||
@Scope("prototype")
|
||||
public class RelatorioFinanceiroReceitasDespesasController extends MyGenericForwardComposer {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@Autowired
|
||||
private EmpresaService empresaService;
|
||||
|
||||
private List<Empresa> lsEmpresa;
|
||||
|
||||
@Override
|
||||
public void doAfterCompose(Component comp) throws Exception {
|
||||
lsEmpresa = empresaService.obtenerTodos();
|
||||
super.doAfterCompose(comp);
|
||||
}
|
||||
|
||||
}
|
|
@ -5,20 +5,20 @@ import org.zkoss.util.resource.Labels;
|
|||
import com.rjconsultores.ventaboletos.web.utilerias.PantallaUtileria;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.menu.DefaultItemMenuSistema;
|
||||
|
||||
public class ItemMenuRelatorioFinancieroIngresosGastos extends DefaultItemMenuSistema {
|
||||
public class ItemMenuRelatorioFinanceiroReceitasDespesas extends DefaultItemMenuSistema {
|
||||
|
||||
public ItemMenuRelatorioFinancieroIngresosGastos() {
|
||||
super("indexController.mniRelatorioFinancieroIngresosGastos.label");
|
||||
public ItemMenuRelatorioFinanceiroReceitasDespesas() {
|
||||
super("indexController.mniRelatorioFinanceiroReceitasDespesas.label");
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getClaveMenu() {
|
||||
return "COM.RJCONSULTORES.ADMINISTRACION.GUI.RELATORIOS.MENU.RELATORIOFINANCIEROINGRESOSGASTOS";
|
||||
return "COM.RJCONSULTORES.ADMINISTRACION.GUI.RELATORIOS.MENU.RELATORIOFINANCEIRORECEITASDESPESAS";
|
||||
}
|
||||
|
||||
@Override
|
||||
public void ejecutar() {
|
||||
PantallaUtileria.openWindow("/gui/relatorios/filtroRelatorioAcompanhamentoEquivalentes.zul",
|
||||
PantallaUtileria.openWindow("/gui/relatorios/filtroRelatorioFinanceiroReceitasDespesas.zul",
|
||||
Labels.getLabel("relatorioIngresosGastosFinancieroController.window.title"), getArgs(), desktop);
|
||||
|
||||
}
|
|
@ -6898,4 +6898,4 @@ busquedaTipoConfCondComissaoController.btnCerrar.tooltiptext=Cerrar
|
|||
|
||||
# Reporte Ingresos y Gastos Financieros
|
||||
relatorioIngresosGastosFinancieroController.window.title = Reporte Ingresos y Gastos Financieros
|
||||
indexController.mniRelatorioFinancieroIngresosGastos.label = Ingresos y Gastos
|
||||
indexController.mniRelatorioFinanceiroReceitasDespesas.label = Ingresos y Gastos
|
|
@ -7060,4 +7060,4 @@ busquedaTipoConfCondComissaoController.btnCerrar.tooltiptext=Fechar
|
|||
|
||||
# Reporte Ingresos y Gastos Financieros
|
||||
relatorioIngresosGastosFinancieroController.window.title = Relatório Financeiro de Receitas e Despesas
|
||||
indexController.mniRelatorioFinancieroIngresosGastos.label = Receitas e Despesas
|
||||
indexController.mniRelatorioFinanceiroReceitasDespesas.label = Receitas e Despesas
|
|
@ -0,0 +1,121 @@
|
|||
<?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="winFiltroRelatorioAcompanhamentoEquivalentes"?>
|
||||
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
|
||||
|
||||
<zk xmlns="http://www.zkoss.org/2005/zul">
|
||||
<window id="winFiltroRelatorioFinanceiroReceitasDespesas"
|
||||
apply="${relatorioFinanceiroReceitasDespesasController}"
|
||||
contentStyle="overflow:auto" height="260px" width="550px"
|
||||
border="normal" closable="true">
|
||||
<grid fixedLayout="true">
|
||||
<columns>
|
||||
<column width="50%" />
|
||||
<column width="50%" />
|
||||
</columns>
|
||||
<rows>
|
||||
<row>
|
||||
<cell>
|
||||
<label
|
||||
value="${c:l('relatorioFinanceiroReceitasDespesasController.lbEmpresa.value')}" />
|
||||
<space />
|
||||
<combobox id="cmbEmpresa" mold="rounded"
|
||||
buttonVisible="true"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||
model="@{winFiltroRelatorioAcompanhamentoEquivalentes$composer.lsEmpresa}"
|
||||
constraint="no empty" />
|
||||
</cell>
|
||||
<cell>
|
||||
<label
|
||||
value="${c:l('relatorioFinanceiroReceitasDespesasController.lbMes.value')}" />
|
||||
<space />
|
||||
<datebox id="datMes" format="MM/yyyy"
|
||||
constraint="no empty" maxlength="7" />
|
||||
</cell>
|
||||
</row>
|
||||
<row>
|
||||
<groupbox width="100%" height="130px">
|
||||
<caption
|
||||
label="${c:l('relatorioFinanceiroReceitasDespesasController.lbIndicador.value')}" />
|
||||
<radiogroup id="rdGroupIndicador">
|
||||
<grid width="92%">
|
||||
<columns>
|
||||
<column width="50%" />
|
||||
<column width="50%" />
|
||||
</columns>
|
||||
<rows>
|
||||
<row>
|
||||
<radio
|
||||
radiogroup="rdGroupIndicador" value="1"
|
||||
checked="true"
|
||||
label="${c:l('relatorioFinanceiroReceitasDespesasController.lbIndicador.mpe.value')}" />
|
||||
<radio
|
||||
radiogroup="rdGroupIndicador" value="2"
|
||||
label="${c:l('relatorioFinanceiroReceitasDespesasController.lbIndicador.receitaKm.value')}" />
|
||||
</row>
|
||||
<row>
|
||||
<radio
|
||||
radiogroup="rdGroupIndicador" value="3"
|
||||
label="${c:l('relatorioFinanceiroReceitasDespesasController.lbIndicador.receitaViagem.value')}" />
|
||||
<radio
|
||||
radiogroup="rdGroupIndicador" value="4"
|
||||
label="${c:l('relatorioFinanceiroReceitasDespesasController.lbIndicador.iap.value')}" />
|
||||
</row>
|
||||
<row>
|
||||
<radio
|
||||
radiogroup="rdGroupIndicador" value="5"
|
||||
label="${c:l('relatorioFinanceiroReceitasDespesasController.lbIndicador.paxKm.value')}" />
|
||||
<radio
|
||||
radiogroup="rdGroupIndicador" value="6"
|
||||
label="${c:l('relatorioFinanceiroReceitasDespesasController.lbIndicador.absoluto.value')}" />
|
||||
</row>
|
||||
<row>
|
||||
<radio
|
||||
radiogroup="rdGroupIndicador" value="7"
|
||||
label="${c:l('relatorioFinanceiroReceitasDespesasController.lbIndicador.eq.value')}" />
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
</radiogroup>
|
||||
</groupbox>
|
||||
<groupbox width="100%" height="130px">
|
||||
<caption
|
||||
label="${c:l('relatorioFinanceiroReceitasDespesasController.lbTipoServico.value')}" />
|
||||
<radiogroup id="rdGroupServico">
|
||||
<grid width="92%">
|
||||
<columns>
|
||||
<column width="100%" />
|
||||
</columns>
|
||||
<rows>
|
||||
<row>
|
||||
<radio
|
||||
radiogroup="rdGroupServico" value="1"
|
||||
label="${c:l('relatorioFinanceiroReceitasDespesasController.lbTipoServico.ordinarios.value')}" />
|
||||
</row>
|
||||
<row>
|
||||
<radio
|
||||
radiogroup="rdGroupServico" value="2"
|
||||
label="${c:l('relatorioFinanceiroReceitasDespesasController.lbTipoServico.extraordinarios.value')}" />
|
||||
</row>
|
||||
<row>
|
||||
<radio
|
||||
radiogroup="rdGroupServico" value="-1"
|
||||
checked="true"
|
||||
label="${c:l('relatorioFinanceiroReceitasDespesasController.lbTipoServico.todos.value')}" />
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
</radiogroup>
|
||||
</groupbox>
|
||||
</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