0004983: Exportação SISDAP
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@34340 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
f924817ff9
commit
2d3c7aa15e
|
@ -5,7 +5,6 @@ import java.io.FileNotFoundException;
|
|||
import java.io.FileOutputStream;
|
||||
import java.io.FileWriter;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
import java.util.zip.Deflater;
|
||||
|
@ -20,6 +19,8 @@ import org.zkoss.zk.ui.Component;
|
|||
import org.zkoss.zk.ui.event.Event;
|
||||
import org.zkoss.zul.Datebox;
|
||||
|
||||
import com.rjconsultores.ventaboletos.entidad.Empresa;
|
||||
import com.rjconsultores.ventaboletos.service.EmpresaService;
|
||||
import com.rjconsultores.ventaboletos.service.SisdapService;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
||||
|
||||
|
@ -31,12 +32,19 @@ public class RelatorioSisdapController extends MyGenericForwardComposer {
|
|||
|
||||
private Datebox datInicio;
|
||||
private Datebox datFinal;
|
||||
private Empresa empresa;
|
||||
|
||||
@Autowired
|
||||
private EmpresaService empresaService;
|
||||
@Autowired
|
||||
private SisdapService sisdapService;
|
||||
|
||||
private List<Empresa> lsEmpresa;
|
||||
|
||||
@Override
|
||||
public void doAfterCompose(Component comp) throws Exception {
|
||||
lsEmpresa = empresaService.obtenerTodos();
|
||||
|
||||
super.doAfterCompose(comp);
|
||||
}
|
||||
|
||||
|
@ -87,8 +95,8 @@ public class RelatorioSisdapController extends MyGenericForwardComposer {
|
|||
|
||||
public void export(Date fecInicio, Date fecFinal) {
|
||||
|
||||
List<String> movimentoLinhas = sisdapService.getMovimentoLinhas(fecInicio, fecFinal);
|
||||
List<String> movimentoSecoes = sisdapService.getMovimentoSecoes(fecInicio, fecFinal);
|
||||
List<String> movimentoLinhas = sisdapService.getMovimentoLinhas(fecInicio, fecFinal, empresa.getEmpresaId());
|
||||
List<String> movimentoSecoes = sisdapService.getMovimentoSecoes(fecInicio, fecFinal, empresa.getEmpresaId());
|
||||
|
||||
try {
|
||||
FileWriter writer = new FileWriter("movimentoLinhas.txt");
|
||||
|
@ -115,4 +123,20 @@ public class RelatorioSisdapController extends MyGenericForwardComposer {
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
public Empresa getEmpresa() {
|
||||
return empresa;
|
||||
}
|
||||
|
||||
public void setEmpresa(Empresa empresa) {
|
||||
this.empresa = empresa;
|
||||
}
|
||||
|
||||
public List<Empresa> getLsEmpresa() {
|
||||
return lsEmpresa;
|
||||
}
|
||||
|
||||
public void setLsEmpresa(List<Empresa> lsEmpresa) {
|
||||
this.lsEmpresa = lsEmpresa;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -387,6 +387,8 @@ relatorioTaxasLinhaController.lbPuntoVenta.value = Punto de venta
|
|||
# Relatorio Sisdap
|
||||
relatorioSisdapController.lbDatInicio.value=Fecha Inicio
|
||||
relatorioSisdapController.lbDatFinal.value=Fecha Final
|
||||
relatorioSisdapController.lbEmpresa.value=Empresa
|
||||
relatorioSisdapController.btnCerrar.tooltiptext=Sair
|
||||
|
||||
# Pantalla Editar clase
|
||||
editarClaseServicioController.window.title = Clase de servicio
|
||||
|
|
|
@ -416,6 +416,8 @@ relatorioTaxasLinhaController.lbPuntoVenta.value = Agência
|
|||
# Relatorio Sisdap
|
||||
relatorioSisdapController.lbDatInicio.value=Data Inicio
|
||||
relatorioSisdapController.lbDatFinal.value=Data Final
|
||||
relatorioSisdapController.lbEmpresa.value=Empresa
|
||||
relatorioSisdapController.btnCerrar.tooltiptext=Sair
|
||||
|
||||
# Pantalla Editar Classe
|
||||
editarClaseServicioController.window.title = Tipo de Classe
|
||||
|
|
|
@ -8,6 +8,11 @@
|
|||
<window id="winFiltroRelatorioSisdap"
|
||||
apply="${relatorioSisdapController}" contentStyle="overflow:auto"
|
||||
height="260px" width="550px" border="normal">
|
||||
<toolbar>
|
||||
<button id="btnCerrar" onClick="winFiltroRelatorioSisdap.detach()"
|
||||
image="/gui/img/exit.png" width="35px"
|
||||
tooltiptext="${c:l('relatorioSisdapController.btnCerrar.tooltiptext')}" />
|
||||
</toolbar>
|
||||
<grid fixedLayout="true">
|
||||
<columns>
|
||||
<column width="100%" />
|
||||
|
@ -31,6 +36,18 @@
|
|||
lenient="false" constraint="no empty" maxlength="10" />
|
||||
</cell>
|
||||
</row>
|
||||
<row>
|
||||
<cell>
|
||||
<label
|
||||
value="${c:l('relatorioSisdapController.lbEmpresa.value')}" />
|
||||
<space />
|
||||
<combobox id="cmbEmpresa" width="70%"
|
||||
maxlength="60" mold="rounded" buttonVisible="true"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||
model="@{winFiltroRelatorioSisdap$composer.lsEmpresa}"
|
||||
selectedItem="@{winFiltroRelatorioSisdap$composer.empresa}" />
|
||||
</cell>
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
<toolbar>
|
||||
|
|
Loading…
Reference in New Issue