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;
|
||||||
|
@ -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;
|
||||||
|
|
||||||
|
@ -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() {
|
||||||
|
@ -596,7 +600,6 @@ public class ConferenciaController extends MyGenericForwardComposer {
|
||||||
carregarLogsConferencia();
|
carregarLogsConferencia();
|
||||||
carregarResumo(boletosComissaos);
|
carregarResumo(boletosComissaos);
|
||||||
|
|
||||||
|
|
||||||
this.ajustarPendentes(boletosComissaos);
|
this.ajustarPendentes(boletosComissaos);
|
||||||
|
|
||||||
} catch (BusinessException e) {
|
} catch (BusinessException e) {
|
||||||
|
@ -626,36 +629,35 @@ public class ConferenciaController extends MyGenericForwardComposer {
|
||||||
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);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -663,6 +665,7 @@ public class ConferenciaController extends MyGenericForwardComposer {
|
||||||
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 {
|
||||||
|
@ -697,7 +700,6 @@ public class ConferenciaController extends MyGenericForwardComposer {
|
||||||
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;
|
||||||
|
|
||||||
|
@ -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,16 +951,16 @@ 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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1288,7 +1301,7 @@ public class ConferenciaController extends MyGenericForwardComposer {
|
||||||
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);
|
||||||
}
|
}
|
||||||
|
@ -1305,7 +1318,7 @@ public class ConferenciaController extends MyGenericForwardComposer {
|
||||||
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);
|
||||||
}
|
}
|
||||||
|
@ -1320,7 +1333,7 @@ public class ConferenciaController extends MyGenericForwardComposer {
|
||||||
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);
|
||||||
}
|
}
|
||||||
|
@ -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);
|
||||||
|
@ -1442,7 +1455,7 @@ public class ConferenciaController extends MyGenericForwardComposer {
|
||||||
}
|
}
|
||||||
|
|
||||||
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);
|
||||||
|
@ -1450,7 +1463,7 @@ public class ConferenciaController extends MyGenericForwardComposer {
|
||||||
}
|
}
|
||||||
|
|
||||||
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);
|
||||||
|
@ -1458,7 +1471,7 @@ public class ConferenciaController extends MyGenericForwardComposer {
|
||||||
}
|
}
|
||||||
|
|
||||||
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);
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -11,13 +11,9 @@
|
||||||
height="630px" width="1175px" border="normal">
|
height="630px" width="1175px" border="normal">
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
.existeConferencia .z-tab-text {
|
.existeConferencia .z-tab-text { color: #FF0000; }
|
||||||
color: #FF0000;
|
|
||||||
}
|
|
||||||
|
|
||||||
.semConferencia .z-tab-text {
|
.semConferencia .z-tab-text { color: #403E39; }
|
||||||
color: #403E39;
|
|
||||||
}
|
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<toolbar>
|
<toolbar>
|
||||||
|
@ -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,36 +173,52 @@
|
||||||
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"
|
||||||
|
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>
|
</tabpanel>
|
||||||
|
|
||||||
<!-- Bilhetes Manual -->
|
<!-- Bilhetes Manual -->
|
||||||
|
@ -999,33 +1012,37 @@
|
||||||
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"
|
<combobox id="cmbTipoInformativo"
|
||||||
width="50%" mold="rounded" buttonVisible="true"
|
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">
|
||||||
|
|
|
@ -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