fixes bug#23550
dev: Celio qua: git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@109934 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
d498ef6cdb
commit
d8d141f9c1
|
@ -18,6 +18,7 @@ import org.zkoss.zk.ui.Component;
|
||||||
import org.zkoss.zk.ui.event.Event;
|
import org.zkoss.zk.ui.event.Event;
|
||||||
import org.zkoss.zul.Datebox;
|
import org.zkoss.zul.Datebox;
|
||||||
import org.zkoss.zul.Filedownload;
|
import org.zkoss.zul.Filedownload;
|
||||||
|
import org.zkoss.zul.Radiogroup;
|
||||||
import org.zkoss.zul.Textbox;
|
import org.zkoss.zul.Textbox;
|
||||||
|
|
||||||
import com.rjconsultores.integracaoreceitadespesa.BGMApplication;
|
import com.rjconsultores.integracaoreceitadespesa.BGMApplication;
|
||||||
|
@ -43,6 +44,7 @@ public class RelatorioArquivoBGMController extends MyGenericForwardComposer {
|
||||||
private Datebox datInicial;
|
private Datebox datInicial;
|
||||||
private Datebox datFinal;
|
private Datebox datFinal;
|
||||||
private Textbox txtArquivo;
|
private Textbox txtArquivo;
|
||||||
|
private Radiogroup rgLayout;
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private ConstanteService constanteService;
|
private ConstanteService constanteService;
|
||||||
|
@ -87,6 +89,8 @@ public class RelatorioArquivoBGMController extends MyGenericForwardComposer {
|
||||||
private void executarRelatorio() throws Exception {
|
private void executarRelatorio() throws Exception {
|
||||||
Integer puntoVentaId = ((PuntoVenta)cmbPuntoVenta.getSelectedItem().getValue()).getPuntoventaId();
|
Integer puntoVentaId = ((PuntoVenta)cmbPuntoVenta.getSelectedItem().getValue()).getPuntoventaId();
|
||||||
Integer empresaId = ((Empresa)cmbEmpresa.getSelectedItem().getValue()).getEmpresaId();
|
Integer empresaId = ((Empresa)cmbEmpresa.getSelectedItem().getValue()).getEmpresaId();
|
||||||
|
String layoutRelatorio = rgLayout.getSelectedItem().getValue();
|
||||||
|
|
||||||
Connection con = dataSource.getConnection();
|
Connection con = dataSource.getConnection();
|
||||||
|
|
||||||
String fileZip = BGMApplication.getInstance().executaExportacao(
|
String fileZip = BGMApplication.getInstance().executaExportacao(
|
||||||
|
@ -100,7 +104,8 @@ public class RelatorioArquivoBGMController extends MyGenericForwardComposer {
|
||||||
ApplicationProperties.getInstance().isCustomHabilitado(CustomEnum.IS_INCLUI_TIPO_PAGAMENTO_TURISMO_BGM.getDescricao()),
|
ApplicationProperties.getInstance().isCustomHabilitado(CustomEnum.IS_INCLUI_TIPO_PAGAMENTO_TURISMO_BGM.getDescricao()),
|
||||||
false,
|
false,
|
||||||
ApplicationProperties.getInstance().isCustomHabilitado(CustomEnum.IS_COD_RECEITA_FIXO_BGM.getDescricao()),
|
ApplicationProperties.getInstance().isCustomHabilitado(CustomEnum.IS_COD_RECEITA_FIXO_BGM.getDescricao()),
|
||||||
ApplicationProperties.getInstance().isCustomHabilitado(CustomEnum.IS_RECEITA_DESPESAS_OURO_PRATA.getDescricao()));
|
ApplicationProperties.getInstance().isCustomHabilitado(CustomEnum.IS_RECEITA_DESPESAS_OURO_PRATA.getDescricao()),
|
||||||
|
layoutRelatorio.equals("NOVO"));
|
||||||
|
|
||||||
if(this.getPathExternoGravacaoArquivo() != null){
|
if(this.getPathExternoGravacaoArquivo() != null){
|
||||||
Messagebox.show(Labels.getLabel("relatorioArquivoBGMController.arquivoGeradoNoServidor.value"),
|
Messagebox.show(Labels.getLabel("relatorioArquivoBGMController.arquivoGeradoNoServidor.value"),
|
||||||
|
|
|
@ -8224,6 +8224,9 @@ relatorioArquivoBGMController.msg.erro.puntoventa=O Campo Agência é obriga
|
||||||
relatorioArquivoBGMController.msg.erro.empresa=O Campo Empresa é obrigatório!
|
relatorioArquivoBGMController.msg.erro.empresa=O Campo Empresa é obrigatório!
|
||||||
relatorioArquivoBGMController.txtArquivo.value=Local Arq. Servidor
|
relatorioArquivoBGMController.txtArquivo.value=Local Arq. Servidor
|
||||||
relatorioArquivoBGMController.arquivoGeradoNoServidor.value=Arquivo gerado no servidor
|
relatorioArquivoBGMController.arquivoGeradoNoServidor.value=Arquivo gerado no servidor
|
||||||
|
relatorioArquivoBGMController.lbTipoRelatorio.value=Layout
|
||||||
|
relatorioArquivoBGMController.lbTipoPadrao.value=Padrão
|
||||||
|
relatorioArquivoBGMController.lbTipoNovo.value=Novo
|
||||||
|
|
||||||
# Relatorio Exportação SGTI
|
# Relatorio Exportação SGTI
|
||||||
relatorioExportacaoSGTIController.lbDataIni.value=Data Inicial
|
relatorioExportacaoSGTIController.lbDataIni.value=Data Inicial
|
||||||
|
|
|
@ -8036,6 +8036,9 @@ relatorioArquivoBGMController.lbEmpresa.value = Empresa
|
||||||
relatorioArquivoBGMController.lbPuntoVenta.value = Agencia
|
relatorioArquivoBGMController.lbPuntoVenta.value = Agencia
|
||||||
relatorioArquivoBGMController.msg.erro.puntoventa = El Campo Agencia es Obligatório!
|
relatorioArquivoBGMController.msg.erro.puntoventa = El Campo Agencia es Obligatório!
|
||||||
relatorioArquivoBGMController.msg.erro.empresa = El Campo Empresa es Obligatório!
|
relatorioArquivoBGMController.msg.erro.empresa = El Campo Empresa es Obligatório!
|
||||||
|
relatorioArquivoBGMController.lbTipoRelatorio.value=Layout
|
||||||
|
relatorioArquivoBGMController.lbTipoPadrao.value=Padrão
|
||||||
|
relatorioArquivoBGMController.lbTipoNovo.value=Novo
|
||||||
|
|
||||||
# Relatorio Exportação SGTI
|
# Relatorio Exportação SGTI
|
||||||
relatorioExportacaoSGTIController.lbDataIni.value = Fecha Inicial
|
relatorioExportacaoSGTIController.lbDataIni.value = Fecha Inicial
|
||||||
|
|
|
@ -8747,6 +8747,9 @@ relatorioArquivoBGMController.msg.erro.puntoventa = O Campo Agência é obrigat
|
||||||
relatorioArquivoBGMController.msg.erro.empresa = O Campo Empresa é obrigatório!
|
relatorioArquivoBGMController.msg.erro.empresa = O Campo Empresa é obrigatório!
|
||||||
relatorioArquivoBGMController.txtArquivo.value=Local Arq. Servidor
|
relatorioArquivoBGMController.txtArquivo.value=Local Arq. Servidor
|
||||||
relatorioArquivoBGMController.arquivoGeradoNoServidor.value=Arquivo gerado no servidor
|
relatorioArquivoBGMController.arquivoGeradoNoServidor.value=Arquivo gerado no servidor
|
||||||
|
relatorioArquivoBGMController.lbTipoRelatorio.value=Layout
|
||||||
|
relatorioArquivoBGMController.lbTipoPadrao.value=Padrão
|
||||||
|
relatorioArquivoBGMController.lbTipoNovo.value=Novo
|
||||||
|
|
||||||
# Relatorio Exportação SGTI
|
# Relatorio Exportação SGTI
|
||||||
relatorioExportacaoSGTIController.lbDataIni.value = Data Inicial
|
relatorioExportacaoSGTIController.lbDataIni.value = Data Inicial
|
||||||
|
|
|
@ -52,6 +52,15 @@
|
||||||
|
|
||||||
<textbox id="txtArquivo" disabled="true"/>
|
<textbox id="txtArquivo" disabled="true"/>
|
||||||
</row>
|
</row>
|
||||||
|
<row>
|
||||||
|
<label value="${c:l('relatorioArquivoBGMController.lbTipoRelatorio.value')}" />
|
||||||
|
<radiogroup Id="rgLayout" >
|
||||||
|
<label value="${c:l('relatorioArquivoBGMController.lbTipoPadrao.value')}" />
|
||||||
|
<radio value="PADRÃO" checked = "true"/>
|
||||||
|
<label value="${c:l('relatorioArquivoBGMController.lbTipoNovo.value')}" />
|
||||||
|
<radio value="NOVO" />
|
||||||
|
</radiogroup>
|
||||||
|
</row>
|
||||||
</rows>
|
</rows>
|
||||||
</grid>
|
</grid>
|
||||||
<toolbar>
|
<toolbar>
|
||||||
|
|
Loading…
Reference in New Issue