fixes bug#24595

dev: 
qua:

git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@112582 d1611594-4594-4d17-8e1d-87c2c4800839
master
fabio 2022-06-07 15:54:01 +00:00
parent ff81ac8d34
commit 712a3d5f28
2 changed files with 19 additions and 1 deletions

View File

@ -16,10 +16,12 @@ import org.zkoss.zul.Comboitem;
import org.zkoss.zul.Datebox; import org.zkoss.zul.Datebox;
import org.zkoss.zul.Messagebox; import org.zkoss.zul.Messagebox;
import com.rjconsultores.ventaboletos.entidad.PuntoVenta;
import com.rjconsultores.ventaboletos.entidad.Empresa; import com.rjconsultores.ventaboletos.entidad.Empresa;
import com.rjconsultores.ventaboletos.service.EmpresaService; import com.rjconsultores.ventaboletos.service.EmpresaService;
import com.rjconsultores.ventaboletos.service.SapService; import com.rjconsultores.ventaboletos.service.SapService;
import com.rjconsultores.ventaboletos.vo.integracao.FechamentoCntCorrenteVO; import com.rjconsultores.ventaboletos.vo.integracao.FechamentoCntCorrenteVO;
import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxPuntoVenta;
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer; import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
import com.rjconsultores.ventaboletos.web.utilerias.MyListbox; import com.rjconsultores.ventaboletos.web.utilerias.MyListbox;
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderFechamentoCntcorrente; import com.rjconsultores.ventaboletos.web.utilerias.render.RenderFechamentoCntcorrente;
@ -35,10 +37,12 @@ public class RelatorioSapController extends MyGenericForwardComposer {
private List<Empresa> lsEmpresas; private List<Empresa> lsEmpresas;
private List<FechamentoCntCorrenteVO> lsFechamentoCntcorrente; private List<FechamentoCntCorrenteVO> lsFechamentoCntcorrente;
private Empresa empresa; private Empresa empresa;
private PuntoVenta puntoVenta;
private Boolean reenviar; private Boolean reenviar;
private int qtdEnviar = 0; private int qtdEnviar = 0;
private Combobox cmbEmpresa; private Combobox cmbEmpresa;
private MyComboboxPuntoVenta cmbPuntoVenta;
private Datebox fecBoletoIni; private Datebox fecBoletoIni;
private Datebox fecBoletoFin; private Datebox fecBoletoFin;
private Checkbox chkReenviarGerados; private Checkbox chkReenviarGerados;
@ -97,7 +101,11 @@ public class RelatorioSapController extends MyGenericForwardComposer {
empresa = (Empresa) cmbEmpresa.getSelectedItem().getValue(); empresa = (Empresa) cmbEmpresa.getSelectedItem().getValue();
this.lsFechamentoCntcorrente = sapService.obtenerTodosParaRemessa(empresa, this.fecBoletoIni.getValue(), this.fecBoletoFin.getValue(), chkReenviarGerados.isChecked()); if( cmbPuntoVenta.getSelectedItem() != null ) {
puntoVenta = (PuntoVenta) cmbPuntoVenta.getSelectedItem().getValue();
}
this.lsFechamentoCntcorrente = sapService.obtenerTodosParaRemessa(empresa, this.fecBoletoIni.getValue(), this.fecBoletoFin.getValue(), chkReenviarGerados.isChecked(), puntoVenta);
this.boletoFechamentoList.setData(this.lsFechamentoCntcorrente); this.boletoFechamentoList.setData(this.lsFechamentoCntcorrente);
if(this.lsFechamentoCntcorrente.isEmpty()){ if(this.lsFechamentoCntcorrente.isEmpty()){

View File

@ -48,6 +48,16 @@
maxlength="10" /> maxlength="10" />
</cell> </cell>
</row> </row>
<row>
<label value="${c:l('lb.puntoventa')}" />
<cell colspan="2">
<combobox id="cmbPuntoVenta"
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxPuntoVenta"
mold="rounded"
buttonVisible="true"
width="70%"/>
</cell>
</row>
<row> <row>
<label <label
value="${c:l('relatorioSapController.reenviarGerados.label')}" /> value="${c:l('relatorioSapController.reenviarGerados.label')}" />