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) {
|
||||||
|
@ -642,7 +645,6 @@ public class ConferenciaController extends MyGenericForwardComposer {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// recarrega as informações
|
// recarrega as informações
|
||||||
if (vendidosAtualizado) {
|
if (vendidosAtualizado) {
|
||||||
this.carregarBilhetesVendidos(this.lsBilhetes, true);
|
this.carregarBilhetesVendidos(this.lsBilhetes, 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 {
|
||||||
|
|
|
@ -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>
|
||||||
|
@ -72,6 +68,7 @@
|
||||||
<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"
|
||||||
|
@ -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>
|
||||||
|
|
||||||
|
<hbox>
|
||||||
|
<vbox>
|
||||||
|
<label style="font-weight:bold;"
|
||||||
|
value="${c:l('conferenciaController.lhTotalFormapago')}" />
|
||||||
|
|
||||||
<listbox id="formapagosList"
|
<listbox id="formapagosList"
|
||||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
||||||
vflex="true" multiple="false" height="290px">
|
vflex="true" multiple="false" height="290px">
|
||||||
<listhead sizable="true">
|
<listhead sizable="true">
|
||||||
<listheader image="/gui/img/builder.gif"
|
<listheader
|
||||||
|
image="/gui/img/builder.gif"
|
||||||
label="${c:l('conferenciaController.lhFormpago.value')}"
|
label="${c:l('conferenciaController.lhFormpago.value')}"
|
||||||
sort="auto(descpago)" />
|
sort="auto(descpago)" />
|
||||||
<listheader image="/gui/img/builder.gif"
|
<listheader
|
||||||
|
image="/gui/img/builder.gif"
|
||||||
label="${c:l('conferenciaController.lbValorTotal.label')}"
|
label="${c:l('conferenciaController.lbValorTotal.label')}"
|
||||||
sort="auto(importe)" />
|
sort="auto(importe)" />
|
||||||
</listhead>
|
</listhead>
|
||||||
</listbox>
|
</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,31 +1012,35 @@
|
||||||
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>
|
||||||
|
|
|
@ -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