wilian 2017-03-28 22:02:12 +00:00
parent 39c30773da
commit c68b50fbba
1 changed files with 5 additions and 6 deletions

View File

@ -34,7 +34,6 @@ import com.rjconsultores.ventaboletos.entidad.Empresa;
import com.rjconsultores.ventaboletos.entidad.LogConferencia; import com.rjconsultores.ventaboletos.entidad.LogConferencia;
import com.rjconsultores.ventaboletos.entidad.PuntoVenta; import com.rjconsultores.ventaboletos.entidad.PuntoVenta;
import com.rjconsultores.ventaboletos.entidad.TipoInformativoComissao; import com.rjconsultores.ventaboletos.entidad.TipoInformativoComissao;
import com.rjconsultores.ventaboletos.enums.IndStatusBoleto;
import com.rjconsultores.ventaboletos.enums.comissao.BoletoStatusComissao; import com.rjconsultores.ventaboletos.enums.comissao.BoletoStatusComissao;
import com.rjconsultores.ventaboletos.enums.comissao.StatusLogConferencia; import com.rjconsultores.ventaboletos.enums.comissao.StatusLogConferencia;
import com.rjconsultores.ventaboletos.enums.comissao.TipoLogConferencia; import com.rjconsultores.ventaboletos.enums.comissao.TipoLogConferencia;
@ -667,7 +666,7 @@ public class ConferenciaController extends MyGenericForwardComposer {
private void carregarBilhetesManual(List<BoletoComissao> boletosComissaos) throws BusinessException { private void carregarBilhetesManual(List<BoletoComissao> boletosComissaos) throws BusinessException {
lsBilhetesManual = conferenciaComissaoService.carregarBilhetesComissao(boletosComissaos, conferencia, BoletoStatusComissao.BOLETO_MANUAL, false); lsBilhetesManual = conferenciaComissaoService.carregarBilhetesComissao(boletosComissaos, conferencia, BoletoStatusComissao.BOLETO_MANUAL, false);
totalBilhetesManual = conferenciaComissaoService.totalizarBoletoComissao(lsBilhetesManual, IndStatusBoleto.V); totalBilhetesManual = conferenciaComissaoService.totalizarBoletoComissao(lsBilhetesManual, false);
txtTotalBilhetesManual.setValue(BigDecimalUtil.getBigDecimalToStringDouble2CasasDecimaisFormatado(totalBilhetesManual, LocaleUtil.getLocale())); txtTotalBilhetesManual.setValue(BigDecimalUtil.getBigDecimalToStringDouble2CasasDecimaisFormatado(totalBilhetesManual, LocaleUtil.getLocale()));
txtQtdeTotalBilhetesManual.setValue(String.valueOf(lsBilhetesManual.size())); txtQtdeTotalBilhetesManual.setValue(String.valueOf(lsBilhetesManual.size()));
bilhetesManualList.setData(lsBilhetesManual); bilhetesManualList.setData(lsBilhetesManual);
@ -678,7 +677,7 @@ public class ConferenciaController extends MyGenericForwardComposer {
private void carregarBilhetesVendidos(List<BoletoComissao> boletosComissaos, boolean carregarDadosFaltantes) throws BusinessException { private void carregarBilhetesVendidos(List<BoletoComissao> boletosComissaos, boolean carregarDadosFaltantes) throws BusinessException {
lsBilhetes = conferenciaComissaoService.carregarBilhetesComissao(boletosComissaos, conferencia, BoletoStatusComissao.BOLETOS_VENDIDOS, carregarDadosFaltantes); lsBilhetes = conferenciaComissaoService.carregarBilhetesComissao(boletosComissaos, conferencia, BoletoStatusComissao.BOLETOS_VENDIDOS, carregarDadosFaltantes);
totalBilhetesVendidos = conferenciaComissaoService.totalizarBoletoComissao(lsBilhetes, IndStatusBoleto.V); totalBilhetesVendidos = conferenciaComissaoService.totalizarBoletoComissao(lsBilhetes, false);
txtTotalBilhetes.setValue(BigDecimalUtil.getBigDecimalToStringDouble2CasasDecimaisFormatado(totalBilhetesVendidos, LocaleUtil.getLocale())); txtTotalBilhetes.setValue(BigDecimalUtil.getBigDecimalToStringDouble2CasasDecimaisFormatado(totalBilhetesVendidos, LocaleUtil.getLocale()));
txtQtdeTotalBilhetes.setValue(String.valueOf(lsBilhetes.size())); txtQtdeTotalBilhetes.setValue(String.valueOf(lsBilhetes.size()));
bilhetesList.setData(lsBilhetes); bilhetesList.setData(lsBilhetes);
@ -689,7 +688,7 @@ public class ConferenciaController extends MyGenericForwardComposer {
private void carregarBilhetesCancelados(List<BoletoComissao> boletosComissaos, boolean carregarDadosFaltantes) throws BusinessException { private void carregarBilhetesCancelados(List<BoletoComissao> boletosComissaos, boolean carregarDadosFaltantes) throws BusinessException {
lsBilhetesCancelados = conferenciaComissaoService.carregarBilhetesComissao(boletosComissaos, conferencia, BoletoStatusComissao.BOLETO_CANCELADO, carregarDadosFaltantes); lsBilhetesCancelados = conferenciaComissaoService.carregarBilhetesComissao(boletosComissaos, conferencia, BoletoStatusComissao.BOLETO_CANCELADO, carregarDadosFaltantes);
totalBilhetesCancelados = conferenciaComissaoService.totalizarBoletoComissao(lsBilhetesCancelados); totalBilhetesCancelados = conferenciaComissaoService.totalizarBoletoComissao(lsBilhetesCancelados, false);
txtTotalBilhetesCancelados.setValue(BigDecimalUtil.getBigDecimalToStringDouble2CasasDecimaisFormatado(totalBilhetesCancelados, LocaleUtil.getLocale())); txtTotalBilhetesCancelados.setValue(BigDecimalUtil.getBigDecimalToStringDouble2CasasDecimaisFormatado(totalBilhetesCancelados, LocaleUtil.getLocale()));
txtQtdeTotalBilhetesCancelados.setValue(String.valueOf(lsBilhetesCancelados.size())); txtQtdeTotalBilhetesCancelados.setValue(String.valueOf(lsBilhetesCancelados.size()));
bilhetesCanceladosList.setData(lsBilhetesCancelados); bilhetesCanceladosList.setData(lsBilhetesCancelados);
@ -721,7 +720,7 @@ public class ConferenciaController extends MyGenericForwardComposer {
private void carregarBilhetesGap(List<BoletoComissao> boletosComissaos) throws BusinessException { private void carregarBilhetesGap(List<BoletoComissao> boletosComissaos) throws BusinessException {
lsBilhetesGap = conferenciaComissaoService.carregarBilhetesComissao(boletosComissaos, conferencia, BoletoStatusComissao.GAP_VENDIDOS, false); lsBilhetesGap = conferenciaComissaoService.carregarBilhetesComissao(boletosComissaos, conferencia, BoletoStatusComissao.GAP_VENDIDOS, false);
totalBilhetesGap = conferenciaComissaoService.totalizarBoletoComissao(lsBilhetesGap, IndStatusBoleto.V); totalBilhetesGap = conferenciaComissaoService.totalizarBoletoComissao(lsBilhetesGap, false);
txtTotalBilhetesGap.setValue(BigDecimalUtil.getBigDecimalToStringDouble2CasasDecimaisFormatado(totalBilhetesGap, LocaleUtil.getLocale())); txtTotalBilhetesGap.setValue(BigDecimalUtil.getBigDecimalToStringDouble2CasasDecimaisFormatado(totalBilhetesGap, LocaleUtil.getLocale()));
txtQtdeTotalBilhetesGap.setValue(String.valueOf(lsBilhetesGap.size())); txtQtdeTotalBilhetesGap.setValue(String.valueOf(lsBilhetesGap.size()));
bilhetesGapList.setData(lsBilhetesGap); bilhetesGapList.setData(lsBilhetesGap);
@ -731,7 +730,7 @@ public class ConferenciaController extends MyGenericForwardComposer {
private void carregarBilhetesGapCancelados(List<BoletoComissao> boletosComissaos) throws BusinessException { private void carregarBilhetesGapCancelados(List<BoletoComissao> boletosComissaos) throws BusinessException {
lsBilhetesGapCancelados = conferenciaComissaoService.carregarBilhetesComissao(boletosComissaos, conferencia, BoletoStatusComissao.GAP_CANCELADO, false); lsBilhetesGapCancelados = conferenciaComissaoService.carregarBilhetesComissao(boletosComissaos, conferencia, BoletoStatusComissao.GAP_CANCELADO, false);
totalBilhetesGapCancelados = conferenciaComissaoService.totalizarBoletoComissao(lsBilhetesGapCancelados); totalBilhetesGapCancelados = conferenciaComissaoService.totalizarBoletoComissao(lsBilhetesGapCancelados, false);
txtTotalBilhetesGapCancelados.setValue(BigDecimalUtil.getBigDecimalToStringDouble2CasasDecimaisFormatado(totalBilhetesGapCancelados, LocaleUtil.getLocale())); txtTotalBilhetesGapCancelados.setValue(BigDecimalUtil.getBigDecimalToStringDouble2CasasDecimaisFormatado(totalBilhetesGapCancelados, LocaleUtil.getLocale()));
txtQtdeTotalBilhetesGapCancelados.setValue(String.valueOf(lsBilhetesGapCancelados.size())); txtQtdeTotalBilhetesGapCancelados.setValue(String.valueOf(lsBilhetesGapCancelados.size()));
bilhetesGapCanceladosList.setData(lsBilhetesGapCancelados); bilhetesGapCanceladosList.setData(lsBilhetesGapCancelados);