0004983: Exportação SISDAP
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@34355 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
71100072de
commit
c3d4e3de0d
|
@ -14,10 +14,13 @@ import java.util.zip.ZipOutputStream;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.context.annotation.Scope;
|
import org.springframework.context.annotation.Scope;
|
||||||
import org.springframework.stereotype.Controller;
|
import org.springframework.stereotype.Controller;
|
||||||
|
import org.zkoss.util.resource.Labels;
|
||||||
import org.zkoss.zhtml.Filedownload;
|
import org.zkoss.zhtml.Filedownload;
|
||||||
import org.zkoss.zk.ui.Component;
|
import org.zkoss.zk.ui.Component;
|
||||||
import org.zkoss.zk.ui.event.Event;
|
import org.zkoss.zk.ui.event.Event;
|
||||||
|
import org.zkoss.zul.Combobox;
|
||||||
import org.zkoss.zul.Datebox;
|
import org.zkoss.zul.Datebox;
|
||||||
|
import org.zkoss.zul.Messagebox;
|
||||||
|
|
||||||
import com.rjconsultores.ventaboletos.entidad.Empresa;
|
import com.rjconsultores.ventaboletos.entidad.Empresa;
|
||||||
import com.rjconsultores.ventaboletos.service.EmpresaService;
|
import com.rjconsultores.ventaboletos.service.EmpresaService;
|
||||||
|
@ -33,6 +36,7 @@ public class RelatorioSisdapController extends MyGenericForwardComposer {
|
||||||
private Datebox datInicio;
|
private Datebox datInicio;
|
||||||
private Datebox datFinal;
|
private Datebox datFinal;
|
||||||
private Empresa empresa;
|
private Empresa empresa;
|
||||||
|
private Combobox cmbEmpresa;
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private EmpresaService empresaService;
|
private EmpresaService empresaService;
|
||||||
|
@ -49,6 +53,12 @@ public class RelatorioSisdapController extends MyGenericForwardComposer {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void onClick$btnExecutarRelatorio(Event ev) throws Exception {
|
public void onClick$btnExecutarRelatorio(Event ev) throws Exception {
|
||||||
|
if (cmbEmpresa.getSelectedIndex() < 0){
|
||||||
|
Messagebox.show(Labels.getLabel("relatorioSisdapController.MSG.empresaErro"),
|
||||||
|
Labels.getLabel("filtroRelatorioSisdap.window.title"),
|
||||||
|
Messagebox.OK, Messagebox.INFORMATION);
|
||||||
|
return;
|
||||||
|
}
|
||||||
export(datInicio.getValue(), datFinal.getValue());
|
export(datInicio.getValue(), datFinal.getValue());
|
||||||
closeWindow();
|
closeWindow();
|
||||||
}
|
}
|
||||||
|
|
|
@ -389,6 +389,9 @@ relatorioSisdapController.lbDatInicio.value=Fecha Inicio
|
||||||
relatorioSisdapController.lbDatFinal.value=Fecha Final
|
relatorioSisdapController.lbDatFinal.value=Fecha Final
|
||||||
relatorioSisdapController.lbEmpresa.value=Empresa
|
relatorioSisdapController.lbEmpresa.value=Empresa
|
||||||
relatorioSisdapController.btnCerrar.tooltiptext=Sair
|
relatorioSisdapController.btnCerrar.tooltiptext=Sair
|
||||||
|
relatorioSisdapController.MSG.empresaErro=Debe de seleccionar una Empresa
|
||||||
|
|
||||||
|
filtroRelatorioSisdap.window.title=Relatório SISDAP
|
||||||
|
|
||||||
# Pantalla Editar clase
|
# Pantalla Editar clase
|
||||||
editarClaseServicioController.window.title = Clase de servicio
|
editarClaseServicioController.window.title = Clase de servicio
|
||||||
|
|
|
@ -418,6 +418,9 @@ relatorioSisdapController.lbDatInicio.value=Data Inicio
|
||||||
relatorioSisdapController.lbDatFinal.value=Data Final
|
relatorioSisdapController.lbDatFinal.value=Data Final
|
||||||
relatorioSisdapController.lbEmpresa.value=Empresa
|
relatorioSisdapController.lbEmpresa.value=Empresa
|
||||||
relatorioSisdapController.btnCerrar.tooltiptext=Sair
|
relatorioSisdapController.btnCerrar.tooltiptext=Sair
|
||||||
|
relatorioSisdapController.MSG.empresaErro=Deve selecionar uma empresa!
|
||||||
|
|
||||||
|
filtroRelatorioSisdap.window.title=Relatório SISDAP
|
||||||
|
|
||||||
# Pantalla Editar Classe
|
# Pantalla Editar Classe
|
||||||
editarClaseServicioController.window.title = Tipo de Classe
|
editarClaseServicioController.window.title = Tipo de Classe
|
||||||
|
|
Loading…
Reference in New Issue