fixes bug 0010024 - commit Trunk

git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@76035 d1611594-4594-4d17-8e1d-87c2c4800839
master
bruno.neves 2017-11-06 12:04:18 +00:00
parent d0ed82b904
commit 4687a841f7
2 changed files with 10 additions and 4 deletions

View File

@ -389,6 +389,7 @@ public class ConferenciaController extends MyGenericForwardComposer {
Labels.getLabel("informeIrregularidadeController.window.title"), args);
}
});
}
private void ajustarListsBilhetes() {
@ -438,12 +439,15 @@ public class ConferenciaController extends MyGenericForwardComposer {
List<Component> com = lstm.getChildren();
for (Component component : com) {
Listcell listCell = (Listcell) component;
Boolean tes = listCell.getFirstChild() instanceof Checkbox;
if (listCell.getFirstChild() instanceof Checkbox) {
Checkbox chk = (Checkbox) component.getFirstChild();
chk.setDisabled(getEnableDisableCheckBox(boletoComissao.getConferencia()));
if (!jaPassou) {
chk.setChecked(getCheckedVenta(boletoComissao));
if (boletoComissao.isConferido() && boletoComissao.getLogconferenciaId() == null) {
gravarLogConferenciaBilhete(bilhetesList, boletoComissao, tabBilhetesVenda, "conferenciaController.tab.bilhetes");
//chk.setChecked(getCheckedVenta(boletoComissao));
}
chk.setDisabled(getEnableDisableCheckBox(boletoComissao.getConferencia()));
chk.addEventListener("onCheck", new EventListener() {
@Override
public void onEvent(Event event) throws Exception {
@ -455,6 +459,7 @@ public class ConferenciaController extends MyGenericForwardComposer {
}
}
});
}
}
jaPassou = true;
@ -779,6 +784,7 @@ public class ConferenciaController extends MyGenericForwardComposer {
}
private void carregarBilhetesVendidos(List<BoletoComissao> boletosComissaos, boolean carregarDadosFaltantes) throws BusinessException {
jaPassou = false;
if (isPeriodo) {
lsBilhetes = conferenciaComissaoService.carregarBilhetesComissao(boletosComissaos, conferencias, BoletoStatusComissao.BOLETOS_VENDIDOS, carregarDadosFaltantes);
} else {

View File

@ -21,7 +21,7 @@ public class RenderBoletoComissao implements ListitemRenderer {
@Override
public void render(Listitem lstm, Object o) throws Exception {
BoletoComissao boletoComissao = (BoletoComissao) o;
boletoComissao.setConferido(boletoComissao.getLogconferenciaId() != null);
// boletoComissao.setConferido(boletoComissao.getLogconferenciaId() != null);
Listcell lc = new Listcell();
if(boletoComissao.isExigeConferenciaAba() || boletoComissao.isExigeConferencia() || boletoComissao.isExigeConferenciaBoletoDevolvido()) {