fixes bug#14453 bug#14829 bug#15005
dev: julio qua: git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@96092 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
952f807919
commit
a0a0fc57d5
|
@ -19,6 +19,7 @@ import org.zkoss.util.resource.Labels;
|
|||
import org.zkoss.zhtml.Messagebox;
|
||||
import org.zkoss.zk.ui.Component;
|
||||
import org.zkoss.zk.ui.event.Event;
|
||||
import org.zkoss.zul.Checkbox;
|
||||
import org.zkoss.zul.Comboitem;
|
||||
import org.zkoss.zul.Datebox;
|
||||
import org.zkoss.zul.Filedownload;
|
||||
|
@ -57,6 +58,8 @@ public class BusquedaBpeExportacaoController extends MyGenericForwardComposer {
|
|||
private MyComboboxEstandar cmbEmpresa;
|
||||
private MyComboboxEstandar cmbEstado;
|
||||
|
||||
private Checkbox consultaOtimizada;
|
||||
|
||||
@Override
|
||||
public void doAfterCompose(Component comp) throws Exception {
|
||||
lsEmpresa = empresaService.obtenerTodos();
|
||||
|
@ -82,7 +85,7 @@ public class BusquedaBpeExportacaoController extends MyGenericForwardComposer {
|
|||
|
||||
if (empresa != null && estado != null) {
|
||||
String nomeArquivo = getNomeArquivoExportacaoECF(datInicial.getValue(), estado, "BPE");
|
||||
String writerExp = bpeService.buscarArquivoExportacaoBPE(datInicial.getValue(), datFinal.getValue(), empresa, estado, nomeArquivo);
|
||||
String writerExp = bpeService.buscarArquivoExportacaoBPE(datInicial.getValue(), datFinal.getValue(), empresa, estado, nomeArquivo, consultaOtimizada.isChecked());
|
||||
|
||||
File arquivo = criarArquivo(writerExp, nomeArquivo);
|
||||
|
||||
|
|
|
@ -15,6 +15,7 @@ import org.zkoss.util.resource.Labels;
|
|||
import org.zkoss.zhtml.Messagebox;
|
||||
import org.zkoss.zk.ui.Component;
|
||||
import org.zkoss.zk.ui.event.Event;
|
||||
import org.zkoss.zul.Checkbox;
|
||||
import org.zkoss.zul.Datebox;
|
||||
import org.zkoss.zul.Radio;
|
||||
|
||||
|
@ -61,6 +62,7 @@ public class BusquedaBpeRdiController extends MyGenericForwardComposer {
|
|||
private MyListbox estadoList;
|
||||
|
||||
private Radio radSim;
|
||||
private Checkbox consultaOtimizada;
|
||||
|
||||
@Override
|
||||
public void doAfterCompose(Component comp) throws Exception {
|
||||
|
@ -90,7 +92,7 @@ public class BusquedaBpeRdiController extends MyGenericForwardComposer {
|
|||
return;
|
||||
}
|
||||
|
||||
List<FiscalRdi> list = bpeService.buscarBpeRDI(datInicial.getValue(), datFinal.getValue(), empresa, estados, radSim.isChecked());
|
||||
List<FiscalRdi> list = bpeService.buscarBpeRDI(datInicial.getValue(), datFinal.getValue(), empresa, estados, radSim.isChecked(), consultaOtimizada.isChecked());
|
||||
|
||||
Map<String, Object> parametros = new HashMap<String, Object>();
|
||||
parametros.put("list", list);
|
||||
|
|
|
@ -49,6 +49,10 @@
|
|||
model="@{winBusquedaBpeExportacao$composer.lsEmpresa}"
|
||||
constraint="no empty" />
|
||||
</row>
|
||||
|
||||
<row spans="3">
|
||||
<checkbox id="consultaOtimizada" checked="false" label="Consulta Otimizada" />
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
|
||||
|
|
|
@ -61,6 +61,10 @@
|
|||
</radiogroup>
|
||||
</row>
|
||||
|
||||
<row spans="3">
|
||||
<checkbox id="consultaOtimizada" checked="false" label="Consulta Otimizada" />
|
||||
</row>
|
||||
|
||||
</rows>
|
||||
</grid>
|
||||
|
||||
|
|
Loading…
Reference in New Issue