leonardo 2016-02-11 18:42:54 +00:00
parent c92fe595a7
commit 913bcfa07f
2 changed files with 6 additions and 5 deletions

View File

@ -30,6 +30,7 @@ import com.rjconsultores.ventaboletos.entidad.Empresa;
import com.rjconsultores.ventaboletos.entidad.PuntoVenta; import com.rjconsultores.ventaboletos.entidad.PuntoVenta;
import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEmpresa; import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEmpresa;
import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada; import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada;
import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxPuntoVenta;
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer; import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
@Controller("relatorioArquivoBGMController") @Controller("relatorioArquivoBGMController")
@ -41,7 +42,7 @@ public class RelatorioArquivoBGMController extends MyGenericForwardComposer {
private static final int TAMANHO_BUFFER = 4096; // 4kb private static final int TAMANHO_BUFFER = 4096; // 4kb
private MyComboboxEmpresa cmbEmpresa; private MyComboboxEmpresa cmbEmpresa;
private MyComboboxParada cmbPuntoVenta; private MyComboboxPuntoVenta cmbPuntoVenta;
private Datebox datInicial; private Datebox datInicial;
private Datebox datFinal; private Datebox datFinal;
@ -81,7 +82,7 @@ public class RelatorioArquivoBGMController extends MyGenericForwardComposer {
Arquivo.GravaArquivo(file.getAbsolutePath(), totalbus.getDespesasReceitas( Arquivo.GravaArquivo(file.getAbsolutePath(), totalbus.getDespesasReceitas(
cmbPuntoVenta.getSelectedItem() == null ? null : ((PuntoVenta)cmbPuntoVenta.getSelectedItem().getValue()).getPuntoventaId(), cmbPuntoVenta.getSelectedItem() == null ? null : ((PuntoVenta)cmbPuntoVenta.getSelectedItem().getValue()).getPuntoventaId(),
cmbPuntoVenta.getSelectedItem() == null ? null : ((Empresa)cmbPuntoVenta.getSelectedItem().getValue()).getEmpresaId(), cmbEmpresa.getSelectedItem() == null ? null : ((Empresa)cmbEmpresa.getSelectedItem().getValue()).getEmpresaId(),
cal.getTime())); cal.getTime()));
// adiciona um dia para iteração // adiciona um dia para iteração
cal.add(Calendar.DAY_OF_MONTH, 1); cal.add(Calendar.DAY_OF_MONTH, 1);
@ -182,11 +183,11 @@ public class RelatorioArquivoBGMController extends MyGenericForwardComposer {
this.cmbEmpresa = cmbEmpresa; this.cmbEmpresa = cmbEmpresa;
} }
public MyComboboxParada getCmbPuntoVenta() { public MyComboboxPuntoVenta getCmbPuntoVenta() {
return cmbPuntoVenta; return cmbPuntoVenta;
} }
public void setCmbPuntoVenta(MyComboboxParada cmbPuntoVenta) { public void setCmbPuntoVenta(MyComboboxPuntoVenta cmbPuntoVenta) {
this.cmbPuntoVenta = cmbPuntoVenta; this.cmbPuntoVenta = cmbPuntoVenta;
} }

View File

@ -42,7 +42,7 @@
<label <label
value="${c:l('relatorioArquivoBGMController.lbPuntoVenta.value')}" /> value="${c:l('relatorioArquivoBGMController.lbPuntoVenta.value')}" />
<combobox id="cmbPuntoVenta" <combobox id="cmbPuntoVenta"
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxPuntoVenta"
mold="rounded" buttonVisible="true" mold="rounded" buttonVisible="true"
width="70%" /> width="70%" />
</row> </row>