fixes bug #9066
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@69591 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
134245c2c4
commit
a3b0a4db98
|
@ -7,6 +7,7 @@ import java.util.Date;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
import java.util.Set;
|
||||||
|
|
||||||
import org.apache.log4j.Logger;
|
import org.apache.log4j.Logger;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
@ -72,11 +73,11 @@ public class ConferenciaController extends MyGenericForwardComposer {
|
||||||
private static Logger log = Logger.getLogger(ConferenciaController.class);
|
private static Logger log = Logger.getLogger(ConferenciaController.class);
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private ConferenciaComissaoService conferenciaComissaoService;
|
private ConferenciaComissaoService conferenciaComissaoService;
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private TipoInformativoComissaoService tipoInformativoComissaoService;
|
private TipoInformativoComissaoService tipoInformativoComissaoService;
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private ConferenciaPendenciaService conferenciaPendenciaService;
|
private ConferenciaPendenciaService conferenciaPendenciaService;
|
||||||
|
|
||||||
|
@ -87,6 +88,8 @@ public class ConferenciaController extends MyGenericForwardComposer {
|
||||||
private String puntoventa;
|
private String puntoventa;
|
||||||
private Conferencia conferencia;
|
private Conferencia conferencia;
|
||||||
|
|
||||||
|
private MyListbox ecfListBox;
|
||||||
|
|
||||||
private MyListbox eventosFinanceirosList;
|
private MyListbox eventosFinanceirosList;
|
||||||
private List<EventosFinanceirosVO> lsEventosFinanceiros;
|
private List<EventosFinanceirosVO> lsEventosFinanceiros;
|
||||||
|
|
||||||
|
@ -152,7 +155,7 @@ public class ConferenciaController extends MyGenericForwardComposer {
|
||||||
private Radio rDebito;
|
private Radio rDebito;
|
||||||
private Radio rCredito;
|
private Radio rCredito;
|
||||||
private Radio rInformativo;
|
private Radio rInformativo;
|
||||||
|
|
||||||
private Radio rMsmDia;
|
private Radio rMsmDia;
|
||||||
private Radio rDiaPosterior;
|
private Radio rDiaPosterior;
|
||||||
|
|
||||||
|
@ -176,12 +179,12 @@ public class ConferenciaController extends MyGenericForwardComposer {
|
||||||
private ConferenciaComissaoVO conferenciaComissao;
|
private ConferenciaComissaoVO conferenciaComissao;
|
||||||
|
|
||||||
private Combobox cmbTipoInformativo;
|
private Combobox cmbTipoInformativo;
|
||||||
|
|
||||||
private List<TipoInformativoComissao> lsTipoInformativo;
|
private List<TipoInformativoComissao> lsTipoInformativo;
|
||||||
|
|
||||||
private MyComboboxEstandar cmbConferenciaPendencia;
|
private MyComboboxEstandar cmbConferenciaPendencia;
|
||||||
private List<ConferenciaPendencia> lsConferenciaPendencia;
|
private List<ConferenciaPendencia> lsConferenciaPendencia;
|
||||||
|
|
||||||
private Tab tabBilhetesManual;
|
private Tab tabBilhetesManual;
|
||||||
private Tab tabBilhetesVenda;
|
private Tab tabBilhetesVenda;
|
||||||
private Tab tabBilhetesCancelados;
|
private Tab tabBilhetesCancelados;
|
||||||
|
@ -191,7 +194,7 @@ public class ConferenciaController extends MyGenericForwardComposer {
|
||||||
private Tab tabGapDevolvido;
|
private Tab tabGapDevolvido;
|
||||||
private Tab tabEventosFinanceiros;
|
private Tab tabEventosFinanceiros;
|
||||||
private Tab tabOcd;
|
private Tab tabOcd;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void doAfterCompose(Component comp) throws Exception {
|
public void doAfterCompose(Component comp) throws Exception {
|
||||||
lsTipoInformativo = tipoInformativoComissaoService.obtenerTodos();
|
lsTipoInformativo = tipoInformativoComissaoService.obtenerTodos();
|
||||||
|
@ -206,7 +209,7 @@ public class ConferenciaController extends MyGenericForwardComposer {
|
||||||
puntoventa = numPuntoVenta.concat(" - ").concat(nombpuntoventa);
|
puntoventa = numPuntoVenta.concat(" - ").concat(nombpuntoventa);
|
||||||
conferenciaComissao = (ConferenciaComissaoVO) Executions.getCurrent().getArg().get("conferenciaComissao");
|
conferenciaComissao = (ConferenciaComissaoVO) Executions.getCurrent().getArg().get("conferenciaComissao");
|
||||||
recuperarConferencia(conferenciaId);
|
recuperarConferencia(conferenciaId);
|
||||||
|
|
||||||
lsConferenciaPendencia = new ArrayList<ConferenciaPendencia>();
|
lsConferenciaPendencia = new ArrayList<ConferenciaPendencia>();
|
||||||
lsConferenciaPendencia.add(new ConferenciaPendencia(-1, " "));
|
lsConferenciaPendencia.add(new ConferenciaPendencia(-1, " "));
|
||||||
lsConferenciaPendencia.addAll(conferenciaPendenciaService.obtenerTodos());
|
lsConferenciaPendencia.addAll(conferenciaPendenciaService.obtenerTodos());
|
||||||
|
@ -296,23 +299,23 @@ public class ConferenciaController extends MyGenericForwardComposer {
|
||||||
rDebito.setDisabled(true);
|
rDebito.setDisabled(true);
|
||||||
rCredito.setDisabled(true);
|
rCredito.setDisabled(true);
|
||||||
rInformativo.setDisabled(true);
|
rInformativo.setDisabled(true);
|
||||||
|
|
||||||
rMsmDia.setDisabled(false);
|
rMsmDia.setDisabled(false);
|
||||||
rDiaPosterior.setDisabled(false);
|
rDiaPosterior.setDisabled(false);
|
||||||
rMsmDia.setSelected(true);
|
rMsmDia.setSelected(true);
|
||||||
|
|
||||||
} else if (StatusLogConferencia.PENDENCIA.equals(status)) {
|
} else if (StatusLogConferencia.PENDENCIA.equals(status)) {
|
||||||
txtPrecoLog.setDisabled(false);
|
txtPrecoLog.setDisabled(false);
|
||||||
rDebito.setDisabled(false);
|
rDebito.setDisabled(false);
|
||||||
rCredito.setDisabled(false);
|
rCredito.setDisabled(false);
|
||||||
rInformativo.setDisabled(false);
|
rInformativo.setDisabled(false);
|
||||||
|
|
||||||
rMsmDia.setDisabled(false);
|
rMsmDia.setDisabled(false);
|
||||||
rDiaPosterior.setDisabled(false);
|
rDiaPosterior.setDisabled(false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
ajustarListsBilhetes();
|
ajustarListsBilhetes();
|
||||||
|
|
||||||
rDebito.setChecked(Boolean.TRUE);
|
rDebito.setChecked(Boolean.TRUE);
|
||||||
|
@ -321,8 +324,9 @@ public class ConferenciaController extends MyGenericForwardComposer {
|
||||||
formapagosList.setItemRenderer(new RenderFormapagoComissao());
|
formapagosList.setItemRenderer(new RenderFormapagoComissao());
|
||||||
|
|
||||||
popularCombobox();
|
popularCombobox();
|
||||||
|
|
||||||
carregarDados();
|
carregarDados();
|
||||||
|
|
||||||
|
ecfListBox.setItemRenderer(new RenderEcfPontoVenda());
|
||||||
}
|
}
|
||||||
|
|
||||||
private void ajustarListsBilhetes() {
|
private void ajustarListsBilhetes() {
|
||||||
|
@ -595,10 +599,9 @@ public class ConferenciaController extends MyGenericForwardComposer {
|
||||||
carregarOcds();
|
carregarOcds();
|
||||||
carregarLogsConferencia();
|
carregarLogsConferencia();
|
||||||
carregarResumo(boletosComissaos);
|
carregarResumo(boletosComissaos);
|
||||||
|
|
||||||
|
|
||||||
this.ajustarPendentes(boletosComissaos);
|
this.ajustarPendentes(boletosComissaos);
|
||||||
|
|
||||||
} catch (BusinessException e) {
|
} catch (BusinessException e) {
|
||||||
log.error(e.getMessage(), e);
|
log.error(e.getMessage(), e);
|
||||||
}
|
}
|
||||||
|
@ -613,7 +616,7 @@ public class ConferenciaController extends MyGenericForwardComposer {
|
||||||
* @throws BusinessException
|
* @throws BusinessException
|
||||||
*/
|
*/
|
||||||
private void ajustarPendentes(List<BoletoComissao> boletosComissaos) throws BusinessException {
|
private void ajustarPendentes(List<BoletoComissao> boletosComissaos) throws BusinessException {
|
||||||
|
|
||||||
boletosComissaos.removeAll(this.lsBilhetes);
|
boletosComissaos.removeAll(this.lsBilhetes);
|
||||||
boletosComissaos.removeAll(this.lsBilhetesCancelados);
|
boletosComissaos.removeAll(this.lsBilhetesCancelados);
|
||||||
boletosComissaos.removeAll(this.lsBilhetesDevolvidos);
|
boletosComissaos.removeAll(this.lsBilhetesDevolvidos);
|
||||||
|
@ -621,48 +624,48 @@ public class ConferenciaController extends MyGenericForwardComposer {
|
||||||
boletosComissaos.removeAll(this.lsBilhetesGapCancelados);
|
boletosComissaos.removeAll(this.lsBilhetesGapCancelados);
|
||||||
boletosComissaos.removeAll(this.lsBilhetesGapDevolvidos);
|
boletosComissaos.removeAll(this.lsBilhetesGapDevolvidos);
|
||||||
boletosComissaos.removeAll(this.lsBilhetesManual);
|
boletosComissaos.removeAll(this.lsBilhetesManual);
|
||||||
|
|
||||||
boolean vendidosAtualizado = false;
|
boolean vendidosAtualizado = false;
|
||||||
boolean canceladoAtualizado = false;
|
boolean canceladoAtualizado = false;
|
||||||
boolean devolvidoAtualizado = false;
|
boolean devolvidoAtualizado = false;
|
||||||
|
|
||||||
for (BoletoComissao b: boletosComissaos){
|
for (BoletoComissao b : boletosComissaos) {
|
||||||
log.info(b.toString());
|
log.info(b.toString());
|
||||||
if (b.getIndCancelacion()){
|
if (b.getIndCancelacion()) {
|
||||||
if (b.isMotivocancelacionDevolvido()){
|
if (b.isMotivocancelacionDevolvido()) {
|
||||||
this.lsBilhetesDevolvidos.add(b);
|
this.lsBilhetesDevolvidos.add(b);
|
||||||
devolvidoAtualizado = true;
|
devolvidoAtualizado = true;
|
||||||
}else if(b.isMotivocancelacionCancelado()){
|
} else if (b.isMotivocancelacionCancelado()) {
|
||||||
this.lsBilhetesCancelados.add(b);
|
this.lsBilhetesCancelados.add(b);
|
||||||
canceladoAtualizado = true;
|
canceladoAtualizado = true;
|
||||||
}
|
}
|
||||||
} else if(!b.isMotivocancelacionTransferido()){
|
} else if (!b.isMotivocancelacionTransferido()) {
|
||||||
this.lsBilhetes.add(b);
|
this.lsBilhetes.add(b);
|
||||||
vendidosAtualizado = true;
|
vendidosAtualizado = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// recarrega as informações
|
||||||
//recarrega as informações
|
if (vendidosAtualizado) {
|
||||||
if (vendidosAtualizado){
|
this.carregarBilhetesVendidos(this.lsBilhetes, true);
|
||||||
this.carregarBilhetesVendidos(this.lsBilhetes,true);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//recarrega as informações
|
// recarrega as informações
|
||||||
if (canceladoAtualizado){
|
if (canceladoAtualizado) {
|
||||||
this.carregarBilhetesCancelados(this.lsBilhetesCancelados,true);
|
this.carregarBilhetesCancelados(this.lsBilhetesCancelados, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
//recarrega as informações
|
// recarrega as informações
|
||||||
if (devolvidoAtualizado){
|
if (devolvidoAtualizado) {
|
||||||
this.carregarBilhetesDevolvidos(this.lsBilhetesDevolvidos,true);
|
this.carregarBilhetesDevolvidos(this.lsBilhetesDevolvidos, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void carregarResumo(List<BoletoComissao> boletosComissaos) throws BusinessException {
|
private void carregarResumo(List<BoletoComissao> boletosComissaos) throws BusinessException {
|
||||||
resumo = conferenciaComissaoService.gerarResumo(conferencia, boletosComissaos, lsEventosFinanceiros, totalBilhetesManual, totalBilhetesVendidos, totalBilhetesCancelados, totalBilhetesDevolvidos, totalBilhetesGap, totalBilhetesGapCancelados, totalBilhetesGapDevolvidos, totalCreditosEventoFinanceiros, totalDebitosEventoFinanceiros, ocdTotal, totalBilhetesDevolvidosTroca, totalBilhetesGapDevolvidosTroca);
|
resumo = conferenciaComissaoService.gerarResumo(conferencia, boletosComissaos, lsEventosFinanceiros, totalBilhetesManual, totalBilhetesVendidos, totalBilhetesCancelados, totalBilhetesDevolvidos, totalBilhetesGap, totalBilhetesGapCancelados, totalBilhetesGapDevolvidos, totalCreditosEventoFinanceiros, totalDebitosEventoFinanceiros, ocdTotal, totalBilhetesDevolvidosTroca, totalBilhetesGapDevolvidosTroca);
|
||||||
formapagosList.setData(resumo.getTotalFormapago());
|
formapagosList.setData(resumo.getTotalFormapago());
|
||||||
|
ecfListBox.setData(resumo.getListNumSerieECF());
|
||||||
}
|
}
|
||||||
|
|
||||||
private void carregarBilhetesManual(List<BoletoComissao> boletosComissaos) throws BusinessException {
|
private void carregarBilhetesManual(List<BoletoComissao> boletosComissaos) throws BusinessException {
|
||||||
|
@ -671,38 +674,37 @@ public class ConferenciaController extends MyGenericForwardComposer {
|
||||||
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);
|
||||||
|
|
||||||
verificarBilhetesSemConferencia(lsBilhetesManual, tabBilhetesManual);
|
verificarBilhetesSemConferencia(lsBilhetesManual, tabBilhetesManual);
|
||||||
}
|
}
|
||||||
|
|
||||||
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);
|
totalBilhetesVendidos = conferenciaComissaoService.totalizarBoletoComissao(lsBilhetes);
|
||||||
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);
|
||||||
|
|
||||||
verificarBilhetesSemConferencia(lsBilhetes, tabBilhetesVenda);
|
verificarBilhetesSemConferencia(lsBilhetes, tabBilhetesVenda);
|
||||||
}
|
}
|
||||||
|
|
||||||
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);
|
||||||
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);
|
||||||
|
|
||||||
verificarBilhetesSemConferencia(lsBilhetesCancelados, tabBilhetesCancelados);
|
verificarBilhetesSemConferencia(lsBilhetesCancelados, tabBilhetesCancelados);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
private void carregarBilhetesDevolvidos(List<BoletoComissao> boletosComissaos, boolean carregarDadosFaltantes) throws BusinessException {
|
private void carregarBilhetesDevolvidos(List<BoletoComissao> boletosComissaos, boolean carregarDadosFaltantes) throws BusinessException {
|
||||||
totalBilhetesDevolvidos = BigDecimal.ZERO;
|
totalBilhetesDevolvidos = BigDecimal.ZERO;
|
||||||
|
|
||||||
lsBilhetesDevolvidos = conferenciaComissaoService.carregarBilhetesComissao(boletosComissaos, conferencia, BoletoStatusComissao.BOLETO_DEVOLVIDO, carregarDadosFaltantes);
|
lsBilhetesDevolvidos = conferenciaComissaoService.carregarBilhetesComissao(boletosComissaos, conferencia, BoletoStatusComissao.BOLETO_DEVOLVIDO, carregarDadosFaltantes);
|
||||||
|
|
||||||
Map<BoletoStatusComissao, BigDecimal> totais = conferenciaComissaoService.totalizarBoletoComissaoDevolvidosTrocaOcd(lsBilhetesDevolvidos);
|
Map<BoletoStatusComissao, BigDecimal> totais = conferenciaComissaoService.totalizarBoletoComissaoDevolvidosTrocaOcd(lsBilhetesDevolvidos);
|
||||||
|
|
||||||
totalBilhetesDevolvidos = totais.get(BoletoStatusComissao.BOLETO_DEVOLVIDO);
|
totalBilhetesDevolvidos = totais.get(BoletoStatusComissao.BOLETO_DEVOLVIDO);
|
||||||
|
@ -715,7 +717,7 @@ public class ConferenciaController extends MyGenericForwardComposer {
|
||||||
txtQtdeTotalBilhetesDevolvidos.setValue(String.valueOf(lsBilhetesDevolvidos.size()));
|
txtQtdeTotalBilhetesDevolvidos.setValue(String.valueOf(lsBilhetesDevolvidos.size()));
|
||||||
|
|
||||||
bilhetesDevolvidosList.setData(lsBilhetesDevolvidos);
|
bilhetesDevolvidosList.setData(lsBilhetesDevolvidos);
|
||||||
|
|
||||||
verificarBilhetesSemConferencia(lsBilhetesDevolvidos, tabBilhetesDevolvidos);
|
verificarBilhetesSemConferencia(lsBilhetesDevolvidos, tabBilhetesDevolvidos);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -725,7 +727,7 @@ public class ConferenciaController extends MyGenericForwardComposer {
|
||||||
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);
|
||||||
|
|
||||||
verificarBilhetesSemConferencia(lsBilhetesGap, tabGapVenda);
|
verificarBilhetesSemConferencia(lsBilhetesGap, tabGapVenda);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -794,7 +796,7 @@ public class ConferenciaController extends MyGenericForwardComposer {
|
||||||
txtQtdeTotalOcd.setValue(String.valueOf(lsOcds.size()));
|
txtQtdeTotalOcd.setValue(String.valueOf(lsOcds.size()));
|
||||||
}
|
}
|
||||||
ocdsList.setData(lsOcds);
|
ocdsList.setData(lsOcds);
|
||||||
|
|
||||||
verificarOcdsSemConferencia(lsOcds, tabOcd);
|
verificarOcdsSemConferencia(lsOcds, tabOcd);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -838,11 +840,22 @@ public class ConferenciaController extends MyGenericForwardComposer {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void onClick$btnIrregularidade(Event event) throws InterruptedException {
|
public void onClick$btnInformarIrregularidade() throws InterruptedException {
|
||||||
|
List listNumSerie = ecfListBox.getSelectedModelItems();
|
||||||
|
|
||||||
|
if (listNumSerie.isEmpty()) {
|
||||||
|
Messagebox.show(Labels.getLabel("conferenciaController.MSG.nenhumaNumeroSerieEcfSelecionado"),
|
||||||
|
Labels.getLabel("conferenciaController.window.title"),
|
||||||
|
Messagebox.OK, Messagebox.EXCLAMATION);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
Map<String, Object> args = new HashMap<String, Object>();
|
Map<String, Object> args = new HashMap<String, Object>();
|
||||||
args.put("puntoVentaId", puntoventaId);
|
args.put("puntoVentaId", puntoventaId);
|
||||||
|
args.put("listNumSerie", listNumSerie);
|
||||||
openWindow("/gui/comissao/informeIrregularidadeComissao.zul",
|
openWindow("/gui/comissao/informeIrregularidadeComissao.zul",
|
||||||
Labels.getLabel("informeIrregularidadeController.window.title"), args);
|
Labels.getLabel("informeIrregularidadeController.window.title"), args);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private boolean isConferenciaPendente() throws InterruptedException, BusinessException {
|
private boolean isConferenciaPendente() throws InterruptedException, BusinessException {
|
||||||
|
@ -917,12 +930,12 @@ public class ConferenciaController extends MyGenericForwardComposer {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private Short getDebitoCreditoInfo(){
|
private Short getDebitoCreditoInfo() {
|
||||||
if(rCredito.isSelected()){
|
if (rCredito.isSelected()) {
|
||||||
return (short) 1;
|
return (short) 1;
|
||||||
}else if(rDebito.isSelected()){
|
} else if (rDebito.isSelected()) {
|
||||||
return (short) 0;
|
return (short) 0;
|
||||||
}else{
|
} else {
|
||||||
return (short) 2;
|
return (short) 2;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -938,20 +951,20 @@ public class ConferenciaController extends MyGenericForwardComposer {
|
||||||
logConferencia.setStatus(StatusLogConferencia.getStatusLogConferencia((Integer) cmbSituacaoLog.getSelectedItem().getValue()));
|
logConferencia.setStatus(StatusLogConferencia.getStatusLogConferencia((Integer) cmbSituacaoLog.getSelectedItem().getValue()));
|
||||||
logConferencia.setTipo(TipoLogConferencia.AVULSO);
|
logConferencia.setTipo(TipoLogConferencia.AVULSO);
|
||||||
logConferencia.setIndcredito(getDebitoCreditoInfo());
|
logConferencia.setIndcredito(getDebitoCreditoInfo());
|
||||||
if(logConferencia.isIndcredito().equals((short) 2)){
|
if (logConferencia.isIndcredito().equals((short) 2)) {
|
||||||
logConferencia.setTipoInformativoComissao((TipoInformativoComissao)cmbTipoInformativo.getSelectedItem().getValue());
|
logConferencia.setTipoInformativoComissao((TipoInformativoComissao) cmbTipoInformativo.getSelectedItem().getValue());
|
||||||
}
|
}
|
||||||
if(StatusLogConferencia.getStatusLogConferencia((Integer) cmbSituacaoLog.getSelectedItem().getValue()).getValue().equals(1)){
|
if (StatusLogConferencia.getStatusLogConferencia((Integer) cmbSituacaoLog.getSelectedItem().getValue()).getValue().equals(1)) {
|
||||||
logConferencia.setIndmesmodia(rMsmDia.isSelected());
|
logConferencia.setIndmesmodia(rMsmDia.isSelected());
|
||||||
}
|
}
|
||||||
|
|
||||||
if(cmbConferenciaPendencia.getSelectedItem() != null) {
|
if (cmbConferenciaPendencia.getSelectedItem() != null) {
|
||||||
ConferenciaPendencia conferenciaPendencia = (ConferenciaPendencia) cmbConferenciaPendencia.getSelectedItem().getValue();
|
ConferenciaPendencia conferenciaPendencia = (ConferenciaPendencia) cmbConferenciaPendencia.getSelectedItem().getValue();
|
||||||
if(conferenciaPendencia.getConferenciapendenciaId() > -1) {
|
if (conferenciaPendencia.getConferenciapendenciaId() > -1) {
|
||||||
logConferencia.setConferenciaPendencia(conferenciaPendencia);
|
logConferencia.setConferenciaPendencia(conferenciaPendencia);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
conferenciaComissaoService.suscribirLogConferencia(logConferencia);
|
conferenciaComissaoService.suscribirLogConferencia(logConferencia);
|
||||||
|
|
||||||
carregarLogsConferencia();
|
carregarLogsConferencia();
|
||||||
|
@ -971,25 +984,25 @@ public class ConferenciaController extends MyGenericForwardComposer {
|
||||||
}
|
}
|
||||||
|
|
||||||
private boolean validarCamposObservacao() throws InterruptedException {
|
private boolean validarCamposObservacao() throws InterruptedException {
|
||||||
try{
|
try {
|
||||||
if(rInformativo.isSelected() && cmbTipoInformativo.getValue() == null){
|
if (rInformativo.isSelected() && cmbTipoInformativo.getValue() == null) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}catch(Exception e){
|
} catch (Exception e) {
|
||||||
Messagebox.show(Labels.getLabel("conferenciaController.MSG.tipoInfomativoObrigatorio"),
|
Messagebox.show(Labels.getLabel("conferenciaController.MSG.tipoInfomativoObrigatorio"),
|
||||||
Labels.getLabel("conferenciaController.window.title"),
|
Labels.getLabel("conferenciaController.window.title"),
|
||||||
Messagebox.OK,Messagebox.ERROR);
|
Messagebox.OK, Messagebox.ERROR);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
try{
|
try {
|
||||||
if(rInformativo.isSelected() && cmbTipoInformativo.getValue() == null){
|
if (rInformativo.isSelected() && cmbTipoInformativo.getValue() == null) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}catch(Exception e){
|
} catch (Exception e) {
|
||||||
Messagebox.show(Labels.getLabel("conferenciaController.MSG.tipoInfomativoObrigatorio"),
|
Messagebox.show(Labels.getLabel("conferenciaController.MSG.tipoInfomativoObrigatorio"),
|
||||||
Labels.getLabel("conferenciaController.window.title"),
|
Labels.getLabel("conferenciaController.window.title"),
|
||||||
Messagebox.OK,Messagebox.ERROR);
|
Messagebox.OK, Messagebox.ERROR);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1187,7 +1200,7 @@ public class ConferenciaController extends MyGenericForwardComposer {
|
||||||
public Boolean isExibirBotaoReabrirMovimento() {
|
public Boolean isExibirBotaoReabrirMovimento() {
|
||||||
return isMovimentoEncerrado() && isPermissaoReabrirMovimento();
|
return isMovimentoEncerrado() && isPermissaoReabrirMovimento();
|
||||||
}
|
}
|
||||||
|
|
||||||
public Boolean isExibirBotaoLancamentoObservacao() {
|
public Boolean isExibirBotaoLancamentoObservacao() {
|
||||||
return !isMovimentoEncerrado() && (isMaloteRecebido() || !isNaopermiteconfsemmalote());
|
return !isMovimentoEncerrado() && (isMaloteRecebido() || !isNaopermiteconfsemmalote());
|
||||||
}
|
}
|
||||||
|
@ -1287,8 +1300,8 @@ public class ConferenciaController extends MyGenericForwardComposer {
|
||||||
boletoComissao.setStatus(logConferencia.getStatus().getValue());
|
boletoComissao.setStatus(logConferencia.getStatus().getValue());
|
||||||
boletoComissao.setConferido(Boolean.TRUE);
|
boletoComissao.setConferido(Boolean.TRUE);
|
||||||
bilhetes.updateItem(boletoComissao);
|
bilhetes.updateItem(boletoComissao);
|
||||||
|
|
||||||
verificarBilhetesSemConferencia((List<BoletoComissao>)bilhetes.getListData(), tab);
|
verificarBilhetesSemConferencia((List<BoletoComissao>) bilhetes.getListData(), tab);
|
||||||
} catch (BusinessException e) {
|
} catch (BusinessException e) {
|
||||||
log.error(e.getMessage(), e);
|
log.error(e.getMessage(), e);
|
||||||
}
|
}
|
||||||
|
@ -1304,8 +1317,8 @@ public class ConferenciaController extends MyGenericForwardComposer {
|
||||||
boletoComissao.setConferido(Boolean.FALSE);
|
boletoComissao.setConferido(Boolean.FALSE);
|
||||||
removerLogConferencia(logConferencia.getLogconferenciaId());
|
removerLogConferencia(logConferencia.getLogconferenciaId());
|
||||||
bilhetes.updateItem(boletoComissao);
|
bilhetes.updateItem(boletoComissao);
|
||||||
|
|
||||||
verificarBilhetesSemConferencia((List<BoletoComissao>)bilhetes.getListData(), tab);
|
verificarBilhetesSemConferencia((List<BoletoComissao>) bilhetes.getListData(), tab);
|
||||||
} catch (BusinessException e) {
|
} catch (BusinessException e) {
|
||||||
log.error(e.getMessage(), e);
|
log.error(e.getMessage(), e);
|
||||||
}
|
}
|
||||||
|
@ -1319,8 +1332,8 @@ public class ConferenciaController extends MyGenericForwardComposer {
|
||||||
eventoFinanceiro.setStatus(logConferencia.getStatus().getValue());
|
eventoFinanceiro.setStatus(logConferencia.getStatus().getValue());
|
||||||
eventoFinanceiro.setConferido(Boolean.TRUE);
|
eventoFinanceiro.setConferido(Boolean.TRUE);
|
||||||
eventosFinanceirosList.updateItem(eventoFinanceiro);
|
eventosFinanceirosList.updateItem(eventoFinanceiro);
|
||||||
|
|
||||||
verificarEventosFinanceirosSemConferencia((List<EventosFinanceirosVO>)eventosFinanceirosList.getListData(), tabEventosFinanceiros);
|
verificarEventosFinanceirosSemConferencia((List<EventosFinanceirosVO>) eventosFinanceirosList.getListData(), tabEventosFinanceiros);
|
||||||
} catch (BusinessException e) {
|
} catch (BusinessException e) {
|
||||||
log.error(e.getMessage(), e);
|
log.error(e.getMessage(), e);
|
||||||
}
|
}
|
||||||
|
@ -1337,7 +1350,7 @@ public class ConferenciaController extends MyGenericForwardComposer {
|
||||||
removerLogConferencia(logConferencia.getLogconferenciaId());
|
removerLogConferencia(logConferencia.getLogconferenciaId());
|
||||||
eventosFinanceirosList.updateItem(eventoFinanceiro);
|
eventosFinanceirosList.updateItem(eventoFinanceiro);
|
||||||
|
|
||||||
verificarEventosFinanceirosSemConferencia((List<EventosFinanceirosVO>)eventosFinanceirosList.getListData(), tabEventosFinanceiros);
|
verificarEventosFinanceirosSemConferencia((List<EventosFinanceirosVO>) eventosFinanceirosList.getListData(), tabEventosFinanceiros);
|
||||||
} catch (BusinessException e) {
|
} catch (BusinessException e) {
|
||||||
log.error(e.getMessage(), e);
|
log.error(e.getMessage(), e);
|
||||||
}
|
}
|
||||||
|
@ -1351,7 +1364,7 @@ public class ConferenciaController extends MyGenericForwardComposer {
|
||||||
ocd.setStatus(logConferencia.getStatus().getValue());
|
ocd.setStatus(logConferencia.getStatus().getValue());
|
||||||
ocd.setConferido(Boolean.TRUE);
|
ocd.setConferido(Boolean.TRUE);
|
||||||
ocdsList.updateItem(ocd);
|
ocdsList.updateItem(ocd);
|
||||||
|
|
||||||
verificarOcdsSemConferencia((List<OcdVO>) ocdsList.getListData(), tabOcd);
|
verificarOcdsSemConferencia((List<OcdVO>) ocdsList.getListData(), tabOcd);
|
||||||
} catch (BusinessException e) {
|
} catch (BusinessException e) {
|
||||||
log.error(e.getMessage(), e);
|
log.error(e.getMessage(), e);
|
||||||
|
@ -1397,24 +1410,24 @@ public class ConferenciaController extends MyGenericForwardComposer {
|
||||||
this.formapagosList = formapagosList;
|
this.formapagosList = formapagosList;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void onClick$rInformativo(){
|
public void onClick$rInformativo() {
|
||||||
hideShowTipoInformativo(false);
|
hideShowTipoInformativo(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void onClick$rDebito(){
|
public void onClick$rDebito() {
|
||||||
hideShowTipoInformativo(true);
|
hideShowTipoInformativo(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void onClick$rCredito(){
|
public void onClick$rCredito() {
|
||||||
hideShowTipoInformativo(true);
|
hideShowTipoInformativo(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void hideShowTipoInformativo(Boolean disable){
|
private void hideShowTipoInformativo(Boolean disable) {
|
||||||
cmbTipoInformativo.setDisabled(disable);
|
cmbTipoInformativo.setDisabled(disable);
|
||||||
|
|
||||||
if(!disable){
|
if (!disable) {
|
||||||
cmbTipoInformativo.setConstraint("no empty");
|
cmbTipoInformativo.setConstraint("no empty");
|
||||||
}else{
|
} else {
|
||||||
cmbTipoInformativo.setConstraint("");
|
cmbTipoInformativo.setConstraint("");
|
||||||
cmbTipoInformativo.clearErrorMessage();
|
cmbTipoInformativo.clearErrorMessage();
|
||||||
cmbTipoInformativo.setValue(null);
|
cmbTipoInformativo.setValue(null);
|
||||||
|
@ -1436,35 +1449,35 @@ public class ConferenciaController extends MyGenericForwardComposer {
|
||||||
public void setLsConferenciaPendencia(List<ConferenciaPendencia> lsConferenciaPendencia) {
|
public void setLsConferenciaPendencia(List<ConferenciaPendencia> lsConferenciaPendencia) {
|
||||||
this.lsConferenciaPendencia = lsConferenciaPendencia;
|
this.lsConferenciaPendencia = lsConferenciaPendencia;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Boolean isNaopermiteconfsemmalote() {
|
public Boolean isNaopermiteconfsemmalote() {
|
||||||
return empresa.getIndnaopermiteconfsemmalote() != null && empresa.getIndnaopermiteconfsemmalote();
|
return empresa.getIndnaopermiteconfsemmalote() != null && empresa.getIndnaopermiteconfsemmalote();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void verificarBilhetesSemConferencia(List<BoletoComissao> lsBilhetes, Tab tab) throws BusinessException {
|
private void verificarBilhetesSemConferencia(List<BoletoComissao> lsBilhetes, Tab tab) throws BusinessException {
|
||||||
if(conferenciaComissaoService.isBilhetesSemConferencia(lsBilhetes)) {
|
if (conferenciaComissaoService.isBilhetesSemConferencia(lsBilhetes)) {
|
||||||
setTabExigeConferencia(tab);
|
setTabExigeConferencia(tab);
|
||||||
} else {
|
} else {
|
||||||
setTabNaoExigeConferencia(tab);
|
setTabNaoExigeConferencia(tab);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void verificarOcdsSemConferencia(List<OcdVO> lsOcds, Tab tab) throws BusinessException {
|
private void verificarOcdsSemConferencia(List<OcdVO> lsOcds, Tab tab) throws BusinessException {
|
||||||
if(conferenciaComissaoService.isOcdSemConferencia(lsOcds)) {
|
if (conferenciaComissaoService.isOcdSemConferencia(lsOcds)) {
|
||||||
setTabExigeConferencia(tab);
|
setTabExigeConferencia(tab);
|
||||||
} else {
|
} else {
|
||||||
setTabNaoExigeConferencia(tab);
|
setTabNaoExigeConferencia(tab);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void verificarEventosFinanceirosSemConferencia(List<EventosFinanceirosVO> lsEventosFinanceiros, Tab tab) throws BusinessException {
|
private void verificarEventosFinanceirosSemConferencia(List<EventosFinanceirosVO> lsEventosFinanceiros, Tab tab) throws BusinessException {
|
||||||
if(conferenciaComissaoService.isEventosFinanceirosSemConferencia(lsEventosFinanceiros)) {
|
if (conferenciaComissaoService.isEventosFinanceirosSemConferencia(lsEventosFinanceiros)) {
|
||||||
setTabExigeConferencia(tab);
|
setTabExigeConferencia(tab);
|
||||||
} else {
|
} else {
|
||||||
setTabNaoExigeConferencia(tab);
|
setTabNaoExigeConferencia(tab);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void setTabNaoExigeConferencia(Tab tab) {
|
private void setTabNaoExigeConferencia(Tab tab) {
|
||||||
tab.setSclass("semConferencia");
|
tab.setSclass("semConferencia");
|
||||||
tab.invalidate();
|
tab.invalidate();
|
||||||
|
@ -1474,5 +1487,5 @@ public class ConferenciaController extends MyGenericForwardComposer {
|
||||||
tab.setSclass("existeConferencia");
|
tab.setSclass("existeConferencia");
|
||||||
tab.invalidate();
|
tab.invalidate();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
|
@ -1,5 +1,7 @@
|
||||||
package com.rjconsultores.ventaboletos.web.gui.controladores.comissao;
|
package com.rjconsultores.ventaboletos.web.gui.controladores.comissao;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.context.annotation.Scope;
|
import org.springframework.context.annotation.Scope;
|
||||||
import org.springframework.stereotype.Controller;
|
import org.springframework.stereotype.Controller;
|
||||||
|
@ -36,6 +38,20 @@ public class InformeIrregularidadeController extends MyGenericForwardComposer {
|
||||||
super.doAfterCompose(comp);
|
super.doAfterCompose(comp);
|
||||||
Integer puntoVentaId = (Integer) Executions.getCurrent().getArg().get("puntoVentaId");
|
Integer puntoVentaId = (Integer) Executions.getCurrent().getArg().get("puntoVentaId");
|
||||||
puntoVenta = puntoVentaService.obtenerID(puntoVentaId);
|
puntoVenta = puntoVentaService.obtenerID(puntoVentaId);
|
||||||
|
|
||||||
|
txtConteudoEmail.setText(criarConteudoEmail(
|
||||||
|
(List) Executions.getCurrent().getArg().get("listNumSerie")));
|
||||||
|
}
|
||||||
|
|
||||||
|
private String criarConteudoEmail(List listNumSerie) {
|
||||||
|
StringBuilder emailEcf= new StringBuilder( Labels.getLabel("informeIrregularidadeController.mail.msg"));
|
||||||
|
|
||||||
|
for(Object object:listNumSerie){
|
||||||
|
emailEcf.append("\n")
|
||||||
|
.append(object);
|
||||||
|
}
|
||||||
|
|
||||||
|
return emailEcf.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void onClick$btnEnviar(Event event) throws InterruptedException {
|
public void onClick$btnEnviar(Event event) throws InterruptedException {
|
||||||
|
|
|
@ -0,0 +1,16 @@
|
||||||
|
package com.rjconsultores.ventaboletos.web.gui.controladores.comissao;
|
||||||
|
|
||||||
|
import org.zkoss.zul.Listcell;
|
||||||
|
import org.zkoss.zul.Listitem;
|
||||||
|
import org.zkoss.zul.ListitemRenderer;
|
||||||
|
|
||||||
|
public class RenderEcfPontoVenda implements ListitemRenderer {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void render(Listitem listItem, Object object) throws Exception {
|
||||||
|
String numSerie=(String)object;
|
||||||
|
Listcell lc = new Listcell(numSerie);
|
||||||
|
lc.setParent(listItem);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -6723,9 +6723,12 @@ conferenciaController.lhConferido.value = Chequeado
|
||||||
conferenciaController.lhNumoperacionBilhete.value = Localizador
|
conferenciaController.lhNumoperacionBilhete.value = Localizador
|
||||||
conferenciaController.lhFeccorridaServico.value = Fec-Serv
|
conferenciaController.lhFeccorridaServico.value = Fec-Serv
|
||||||
conferenciaController.lhConferenciaPendencia.value = Pendência
|
conferenciaController.lhConferenciaPendencia.value = Pendência
|
||||||
|
conferenciaController.lblNumSerieECF= Numero de Serie
|
||||||
|
conferenciaController.lbImpressorasFiscais=Impressoras ficais
|
||||||
|
conferenciaController.MSG.nenhumaNumeroSerieEcfSelecionado= Selecione o numero de serie de uma ecf para informar a irregularidade!
|
||||||
|
|
||||||
informeIrregularidadeController.window.title=Irregularidade ECF
|
informeIrregularidadeController.window.title=Irregularidade ECF
|
||||||
informeIrregularidadeController.mail.msg= Pela quantidade de ECF's, estão faltando reduções Z. Favor verificar
|
informeIrregularidadeController.mail.msg= Há irregularidade na(s) ECF(s) com o numero de serie:
|
||||||
informeIrregularidadeController.lbMail=E-mail
|
informeIrregularidadeController.lbMail=E-mail
|
||||||
informeIrregularidadeController.lbMsg=Menssagem
|
informeIrregularidadeController.lbMsg=Menssagem
|
||||||
informeIrregularidadeController.mail.enviar=Enviar
|
informeIrregularidadeController.mail.enviar=Enviar
|
||||||
|
|
|
@ -6928,9 +6928,12 @@ conferenciaController.lhConferido.value = Conferido
|
||||||
conferenciaController.lhNumoperacionBilhete.value = Localizador
|
conferenciaController.lhNumoperacionBilhete.value = Localizador
|
||||||
conferenciaController.lhFeccorridaServico.value = DT-Serv
|
conferenciaController.lhFeccorridaServico.value = DT-Serv
|
||||||
conferenciaController.lhConferenciaPendencia.value = Pendência
|
conferenciaController.lhConferenciaPendencia.value = Pendência
|
||||||
|
conferenciaController.lblNumSerieECF= Número de série
|
||||||
|
conferenciaController.lbImpressorasFiscais=Impressoras ficais
|
||||||
|
conferenciaController.MSG.nenhumaNumeroSerieEcfSelecionado= Selecione o numero de serie de uma ecf para informar a irregularidade!
|
||||||
|
|
||||||
informeIrregularidadeController.window.title=Irregularidade ECF
|
informeIrregularidadeController.window.title=Irregularidade ECF
|
||||||
informeIrregularidadeController.mail.msg= Pela quantidade de ECF's, estão faltando reduções Z. Favor verificar
|
informeIrregularidadeController.mail.msg= Há irregularidade na(s) ECF(s) com o número de série:
|
||||||
informeIrregularidadeController.lbMail=E-mail
|
informeIrregularidadeController.lbMail=E-mail
|
||||||
informeIrregularidadeController.lbMsg=Mensagem
|
informeIrregularidadeController.lbMsg=Mensagem
|
||||||
informeIrregularidadeController.mail.enviar=Enviar
|
informeIrregularidadeController.mail.enviar=Enviar
|
||||||
|
|
|
@ -9,17 +9,13 @@
|
||||||
title="${c:l('conferenciaController.window.title')}"
|
title="${c:l('conferenciaController.window.title')}"
|
||||||
apply="${conferenciaController}" contentStyle="overflow:auto"
|
apply="${conferenciaController}" contentStyle="overflow:auto"
|
||||||
height="630px" width="1175px" border="normal">
|
height="630px" width="1175px" border="normal">
|
||||||
|
|
||||||
<style>
|
|
||||||
.existeConferencia .z-tab-text {
|
|
||||||
color: #FF0000;
|
|
||||||
}
|
|
||||||
|
|
||||||
.semConferencia .z-tab-text {
|
<style>
|
||||||
color: #403E39;
|
.existeConferencia .z-tab-text { color: #FF0000; }
|
||||||
}
|
|
||||||
|
.semConferencia .z-tab-text { color: #403E39; }
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<toolbar>
|
<toolbar>
|
||||||
<button id="btnCerrar" image="/gui/img/exit.png"
|
<button id="btnCerrar" image="/gui/img/exit.png"
|
||||||
width="35px"
|
width="35px"
|
||||||
|
@ -71,27 +67,28 @@
|
||||||
<tabbox id="tabboxGeral">
|
<tabbox id="tabboxGeral">
|
||||||
<tabs>
|
<tabs>
|
||||||
<tab id="tabResumo"
|
<tab id="tabResumo"
|
||||||
label="${c:l('conferenciaController.tab.resumo')}" />
|
label="${c:l('conferenciaController.tab.resumo')}" />
|
||||||
|
<tab id="tabECF" label="ECF!" />
|
||||||
<tab id="tabBilhetesManual"
|
<tab id="tabBilhetesManual"
|
||||||
label="${c:l('conferenciaController.tab.bilhetesManual')}" />
|
label="${c:l('conferenciaController.tab.bilhetesManual')}" />
|
||||||
<tab id="tabBilhetesVenda"
|
<tab id="tabBilhetesVenda"
|
||||||
label="${c:l('conferenciaController.tab.bilhetes')}" />
|
label="${c:l('conferenciaController.tab.bilhetes')}" />
|
||||||
<tab id="tabBilhetesCancelados"
|
<tab id="tabBilhetesCancelados"
|
||||||
label="${c:l('conferenciaController.tab.bilhetesCancelados')}" />
|
label="${c:l('conferenciaController.tab.bilhetesCancelados')}" />
|
||||||
<tab id="tabBilhetesDevolvidos"
|
<tab id="tabBilhetesDevolvidos"
|
||||||
label="${c:l('conferenciaController.tab.bilhetesDevolvidos')}" />
|
label="${c:l('conferenciaController.tab.bilhetesDevolvidos')}" />
|
||||||
<tab id="tabGapVenda"
|
<tab id="tabGapVenda"
|
||||||
label="${c:l('conferenciaController.tab.gabVenda')}" />
|
label="${c:l('conferenciaController.tab.gabVenda')}" />
|
||||||
<tab id="tabGapCancelado"
|
<tab id="tabGapCancelado"
|
||||||
label="${c:l('conferenciaController.tab.gabCancelado')}" />
|
label="${c:l('conferenciaController.tab.gabCancelado')}" />
|
||||||
<tab id="tabGapDevolvido"
|
<tab id="tabGapDevolvido"
|
||||||
label="${c:l('conferenciaController.tab.gabDevolvido')}" />
|
label="${c:l('conferenciaController.tab.gabDevolvido')}" />
|
||||||
<tab id="tabEventosFinanceiros"
|
<tab id="tabEventosFinanceiros"
|
||||||
label="${c:l('conferenciaController.tab.eventosFinanceiros')}" />
|
label="${c:l('conferenciaController.tab.eventosFinanceiros')}" />
|
||||||
<tab id="tabOcd"
|
<tab id="tabOcd"
|
||||||
label="${c:l('conferenciaController.tab.ocd')}" />
|
label="${c:l('conferenciaController.tab.ocd')}" />
|
||||||
<tab id="tabObservacoes"
|
<tab id="tabObservacoes"
|
||||||
label="${c:l('conferenciaController.tab.observacoes')}" />
|
label="${c:l('conferenciaController.tab.observacoes')}" />
|
||||||
</tabs>
|
</tabs>
|
||||||
<tabpanels>
|
<tabpanels>
|
||||||
|
|
||||||
|
@ -176,37 +173,53 @@
|
||||||
readonly="true" style="text-align:right" />
|
readonly="true" style="text-align:right" />
|
||||||
</row>
|
</row>
|
||||||
|
|
||||||
<row spans="1,1,4">
|
|
||||||
<label
|
|
||||||
value="${c:l('conferenciaController.lbQuantidadeECF.label')}" />
|
|
||||||
<textbox id="txtQtdECF" width="54%"
|
|
||||||
value="@{winConferencia$composer.resumo.quantidadeEcf}"
|
|
||||||
readonly="true" style="text-align:right" />
|
|
||||||
<button id="btnIrregularidade"
|
|
||||||
width="200px" height="21px"
|
|
||||||
label="${c:l('conferenciaController.lbBtnIrregularidade.label')}" />
|
|
||||||
</row>
|
|
||||||
|
|
||||||
<row spans="6">
|
|
||||||
<label
|
|
||||||
value="${c:l('conferenciaController.lhTotalFormapago')}" />
|
|
||||||
</row>
|
|
||||||
</rows>
|
</rows>
|
||||||
|
|
||||||
</grid>
|
</grid>
|
||||||
<listbox id="formapagosList"
|
|
||||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
<hbox>
|
||||||
vflex="true" multiple="false" height="290px">
|
<vbox>
|
||||||
<listhead sizable="true">
|
<label style="font-weight:bold;"
|
||||||
<listheader image="/gui/img/builder.gif"
|
value="${c:l('conferenciaController.lhTotalFormapago')}" />
|
||||||
label="${c:l('conferenciaController.lhFormpago.value')}"
|
|
||||||
sort="auto(descpago)" />
|
<listbox id="formapagosList"
|
||||||
<listheader image="/gui/img/builder.gif"
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
||||||
label="${c:l('conferenciaController.lbValorTotal.label')}"
|
vflex="true" multiple="false" height="290px">
|
||||||
sort="auto(importe)" />
|
<listhead sizable="true">
|
||||||
</listhead>
|
<listheader
|
||||||
</listbox>
|
image="/gui/img/builder.gif"
|
||||||
</tabpanel>
|
label="${c:l('conferenciaController.lhFormpago.value')}"
|
||||||
|
sort="auto(descpago)" />
|
||||||
|
<listheader
|
||||||
|
image="/gui/img/builder.gif"
|
||||||
|
label="${c:l('conferenciaController.lbValorTotal.label')}"
|
||||||
|
sort="auto(importe)" />
|
||||||
|
</listhead>
|
||||||
|
</listbox>
|
||||||
|
</vbox>
|
||||||
|
|
||||||
|
<vbox style="margin-left:25px">
|
||||||
|
<hbox>
|
||||||
|
<label style="font-weight:bold;"
|
||||||
|
value="${c:l('conferenciaController.lbImpressorasFiscais')}" />
|
||||||
|
|
||||||
|
<button id="btnInformarIrregularidade"
|
||||||
|
style="margin-left: 205px;" width="225px" height="25px"
|
||||||
|
label="${c:l('conferenciaController.lbBtnIrregularidade.label')}" />
|
||||||
|
</hbox>
|
||||||
|
|
||||||
|
<listbox id="ecfListBox"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
||||||
|
vflex="true" multiple="true" height="290px">
|
||||||
|
<listhead sizable="true">
|
||||||
|
<listheader
|
||||||
|
image="/gui/img/builder.gif"
|
||||||
|
label="${c:l('conferenciaController.lblNumSerieECF')}" />
|
||||||
|
</listhead>
|
||||||
|
</listbox>
|
||||||
|
</vbox>
|
||||||
|
</hbox>
|
||||||
|
</tabpanel>
|
||||||
|
|
||||||
<!-- Bilhetes Manual -->
|
<!-- Bilhetes Manual -->
|
||||||
<tabpanel style="overflow:auto;">
|
<tabpanel style="overflow:auto;">
|
||||||
|
@ -819,7 +832,7 @@
|
||||||
<listbox id="eventosFinanceirosList"
|
<listbox id="eventosFinanceirosList"
|
||||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
||||||
vflex="true" multiple="false" height="430px">
|
vflex="true" multiple="false" height="430px">
|
||||||
<listhead sizable="true">
|
<listhead sizable="true">
|
||||||
<listheader
|
<listheader
|
||||||
label="${c:l('conferenciaController.lhConferido.value')}"
|
label="${c:l('conferenciaController.lhConferido.value')}"
|
||||||
width="70px" align="center" sort="auto(orderExigeConferencia)" />
|
width="70px" align="center" sort="auto(orderExigeConferencia)" />
|
||||||
|
@ -998,34 +1011,38 @@
|
||||||
<radio id="rInformativo"
|
<radio id="rInformativo"
|
||||||
label="${c:l('conferenciaController.lbInformativo.value')}" />
|
label="${c:l('conferenciaController.lbInformativo.value')}" />
|
||||||
</radiogroup>
|
</radiogroup>
|
||||||
|
|
||||||
<label id="lblTipoInformativo" value="${c:l('conferenciaController.lhTipoInformativo.value')}" />
|
<label id="lblTipoInformativo"
|
||||||
|
value="${c:l('conferenciaController.lhTipoInformativo.value')}" />
|
||||||
<combobox id="cmbTipoInformativo" disabled="true"
|
|
||||||
width="50%" mold="rounded" buttonVisible="true"
|
<combobox id="cmbTipoInformativo"
|
||||||
|
disabled="true" width="50%" mold="rounded" buttonVisible="true"
|
||||||
model="@{winConferencia$composer.lsTipoInformativo}"
|
model="@{winConferencia$composer.lsTipoInformativo}"
|
||||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"/>
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar" />
|
||||||
</row>
|
</row>
|
||||||
|
|
||||||
<row>
|
<row>
|
||||||
<label value="${c:l('conferenciaController.lbComportamentoData.value')}" />
|
<label
|
||||||
|
value="${c:l('conferenciaController.lbComportamentoData.value')}" />
|
||||||
|
|
||||||
<radiogroup width="100%">
|
<radiogroup width="100%">
|
||||||
<radio id="rDiaPosterior"
|
<radio id="rDiaPosterior"
|
||||||
label="${c:l('conferenciaController.lbDiaPosterior.value')}" disabled="true" />
|
label="${c:l('conferenciaController.lbDiaPosterior.value')}"
|
||||||
|
disabled="true" />
|
||||||
<radio id="rMsmDia"
|
<radio id="rMsmDia"
|
||||||
label="${c:l('conferenciaController.lbMesmoDia.value')}" disabled="true" />
|
label="${c:l('conferenciaController.lbMesmoDia.value')}"
|
||||||
|
disabled="true" />
|
||||||
</radiogroup>
|
</radiogroup>
|
||||||
</row>
|
</row>
|
||||||
|
|
||||||
<row spans="1,3">
|
<row spans="1,3">
|
||||||
<label id="lblConferenciaPendencia" value="${c:l('conferenciaController.lhConferenciaPendencia.value')}" />
|
<label id="lblConferenciaPendencia"
|
||||||
|
value="${c:l('conferenciaController.lhConferenciaPendencia.value')}" />
|
||||||
|
|
||||||
<combobox id="cmbConferenciaPendencia"
|
<combobox id="cmbConferenciaPendencia"
|
||||||
width="60%"
|
width="60%" mold="rounded"
|
||||||
mold="rounded"
|
model="@{winConferencia$composer.lsConferenciaPendencia}"
|
||||||
model="@{winConferencia$composer.lsConferenciaPendencia}"
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar" />
|
||||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"/>
|
|
||||||
</row>
|
</row>
|
||||||
|
|
||||||
<row spans="1,3">
|
<row spans="1,3">
|
||||||
|
@ -1070,7 +1087,7 @@
|
||||||
sort="auto(descdebitocredito)" />
|
sort="auto(descdebitocredito)" />
|
||||||
<listheader image="/gui/img/builder.gif"
|
<listheader image="/gui/img/builder.gif"
|
||||||
label="${c:l('conferenciaController.lhTipoInformativo.value')}"
|
label="${c:l('conferenciaController.lhTipoInformativo.value')}"
|
||||||
sort="auto(desctipoinformativo)" />
|
sort="auto(desctipoinformativo)" />
|
||||||
<listheader image="/gui/img/builder.gif"
|
<listheader image="/gui/img/builder.gif"
|
||||||
label="${c:l('conferenciaController.lhValorLog.value')}"
|
label="${c:l('conferenciaController.lhValorLog.value')}"
|
||||||
sort="auto(preco)" />
|
sort="auto(preco)" />
|
||||||
|
@ -1082,7 +1099,7 @@
|
||||||
sort="auto(descpendencia)" />
|
sort="auto(descpendencia)" />
|
||||||
<listheader image="/gui/img/builder.gif"
|
<listheader image="/gui/img/builder.gif"
|
||||||
label="${c:l('conferenciaController.lbComportamentoData.value')}"
|
label="${c:l('conferenciaController.lbComportamentoData.value')}"
|
||||||
sort="auto(descComportamentoData)" />
|
sort="auto(descComportamentoData)" />
|
||||||
<listheader image="/gui/img/builder.gif"
|
<listheader image="/gui/img/builder.gif"
|
||||||
label="${c:l('conferenciaController.lhFecmodif.value')}"
|
label="${c:l('conferenciaController.lhFecmodif.value')}"
|
||||||
sort="auto(fecmodif)" />
|
sort="auto(fecmodif)" />
|
||||||
|
|
|
@ -19,8 +19,7 @@
|
||||||
<label
|
<label
|
||||||
value="${c:l('informeIrregularidadeController.lbMsg')}" />
|
value="${c:l('informeIrregularidadeController.lbMsg')}" />
|
||||||
<textbox id="txtConteudoEmail" width="99%" height="250px"
|
<textbox id="txtConteudoEmail" width="99%" height="250px"
|
||||||
rows="8" cols="15" constraint="no empty"
|
rows="8" cols="15" constraint="no empty" />
|
||||||
value="${c:l('informeIrregularidadeController.mail.msg')}" />
|
|
||||||
</vbox>
|
</vbox>
|
||||||
<toolbar height="26px" style="padding-left:32px;">
|
<toolbar height="26px" style="padding-left:32px;">
|
||||||
<button id="btnEnviar" height="26px" width="200px"
|
<button id="btnEnviar" height="26px" width="200px"
|
||||||
|
|
Loading…
Reference in New Issue