RMD - Arquivo Exportação para QS (fixes bug 0006374) - Parte 2 - REDUÇÃO Z
Tempo: 15 horas git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@45272 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
7abbad517d
commit
594ff0b8ba
|
@ -58,12 +58,29 @@ public class BusquedaImportacionFiscalController extends MyGenericForwardCompose
|
|||
try {
|
||||
File arquivo = fiscalService.importacionFiscalECF(datInicial.getValue(), datFinal.getValue(), empresa);
|
||||
InputStream is = new FileInputStream(arquivo);
|
||||
|
||||
Filedownload.save(is, "application/notepad", "fiscal_" + DateUtil.getStringDate(Calendar.getInstance().getTime(), "yyyyMMddhhmm") + ".txt");
|
||||
arquivo.delete();
|
||||
} catch (FileNotFoundException e) {
|
||||
log.error("", e);
|
||||
}
|
||||
}
|
||||
|
||||
public void onClick$btnExeImportacionReducaoZ(Event ev) throws InterruptedException {
|
||||
|
||||
Empresa empresa = null;
|
||||
Comboitem itemEmpresa = cmbEmpresa.getSelectedItem();
|
||||
if (itemEmpresa != null) {
|
||||
empresa = (Empresa) itemEmpresa.getValue();
|
||||
}
|
||||
|
||||
try {
|
||||
File arquivo = fiscalService.importacionFiscalReducaoZ(datInicial.getValue(), datFinal.getValue(), empresa);
|
||||
InputStream is = new FileInputStream(arquivo);
|
||||
Filedownload.save(is, "application/notepad", "fiscal_reducao_z" + DateUtil.getStringDate(Calendar.getInstance().getTime(), "yyyyMMddhhmm") + ".txt");
|
||||
arquivo.delete();
|
||||
} catch (FileNotFoundException e) {
|
||||
log.error("", e);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -5368,7 +5368,8 @@ busquedaImportacionFiscalController.window.title=Impressão Fiscal :: Importaç
|
|||
busquedaImportacionFiscalController.btnPesquisa.label=Pesquisar
|
||||
busquedaImportacionFiscalController.lbDataIni.value = Data Inicio
|
||||
busquedaImportacionFiscalController.lbDataFin.value = Data Final
|
||||
busquedaImportacionFiscalController.btnExe.label = Importar Dados Fiscais
|
||||
busquedaImportacionFiscalController.btnExe.label = Importar Dados Fiscais ECF
|
||||
busquedaImportacionFiscalController.btnExeImportacionReducaoZ.label = Importar Dados Fiscais Redução Z
|
||||
|
||||
editarRelgerencialEmpresaController.MSG.suscribirOK=Relatorio Gerencial gravado com sucesso!
|
||||
editarRelgerencialEmpresaController.window.title=Impressão Fiscal :: Editar Relatorio Gerencial
|
||||
|
|
|
@ -44,8 +44,10 @@
|
|||
</grid>
|
||||
|
||||
<toolbar>
|
||||
<button id="btnExeImportacion" image="/gui/img/save.png"
|
||||
<button id="btnExeImportacion"
|
||||
label="${c:l('busquedaImportacionFiscalController.btnExe.label')}" />
|
||||
<button id="btnExeImportacionReducaoZ"
|
||||
label="${c:l('busquedaImportacionFiscalController.btnExeImportacionReducaoZ.label')}" />
|
||||
</toolbar>
|
||||
|
||||
</window>
|
||||
|
|
Loading…
Reference in New Issue