fixes bug#1296
parent
9eb9d6d54b
commit
09506cf4fe
|
@ -184,7 +184,6 @@ import com.rjconsultores.ventaboletos.web.utilerias.render.RenderCategoriaBloque
|
||||||
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderCobrancaAdcPuntoVenta;
|
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderCobrancaAdcPuntoVenta;
|
||||||
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderCobrancaAdcicionalHistorico;
|
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderCobrancaAdcicionalHistorico;
|
||||||
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderEmpresaBloquear;
|
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderEmpresaBloquear;
|
||||||
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderFormaPago;
|
|
||||||
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderHistoricoFormaPago;
|
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderHistoricoFormaPago;
|
||||||
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderHistoricoFormaPagoSelecao;
|
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderHistoricoFormaPagoSelecao;
|
||||||
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderParadaPtoVtaCheckin;
|
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderParadaPtoVtaCheckin;
|
||||||
|
@ -201,8 +200,6 @@ import com.rjconsultores.wsag.GeradorTitulosAG;
|
||||||
//import com.rjconsultores.wsag.WSAGLog;
|
//import com.rjconsultores.wsag.WSAGLog;
|
||||||
import com.rjconsultores.wsag.WSAGLog;
|
import com.rjconsultores.wsag.WSAGLog;
|
||||||
|
|
||||||
import bsh.ParseException;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author Rafius
|
* @author Rafius
|
||||||
|
@ -293,6 +290,7 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
private MyListbox ptovtaEstoqueList;
|
private MyListbox ptovtaEstoqueList;
|
||||||
private MyListbox ptovtaComissaoList;
|
private MyListbox ptovtaComissaoList;
|
||||||
private MyListbox ptovtaCatIndList;
|
private MyListbox ptovtaCatIndList;
|
||||||
|
private List<PtovtaCatInd> ptovtaCatIndListTemp;
|
||||||
private MyListbox fechamentoParamptovtaList;
|
private MyListbox fechamentoParamptovtaList;
|
||||||
private MyTextbox txtDiasemtransito;
|
private MyTextbox txtDiasemtransito;
|
||||||
private MyListbox ptovtaHistoricoList;
|
private MyListbox ptovtaHistoricoList;
|
||||||
|
@ -303,7 +301,6 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
private MyListbox ptovtaAntifraudeList;
|
private MyListbox ptovtaAntifraudeList;
|
||||||
private MyListbox ptovtaExcecaoMultaCancList;
|
private MyListbox ptovtaExcecaoMultaCancList;
|
||||||
private Bandbox bbCategoria;
|
private Bandbox bbCategoria;
|
||||||
private Bandbox bbPesquisaHistoricoFormaPago;
|
|
||||||
|
|
||||||
private List<Categoria> lsCategoriaBloquear;
|
private List<Categoria> lsCategoriaBloquear;
|
||||||
|
|
||||||
|
@ -685,6 +682,7 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
cobrancaAdicionalList.setItemRenderer(new RenderCobrancaAdcPuntoVenta());
|
cobrancaAdicionalList.setItemRenderer(new RenderCobrancaAdcPuntoVenta());
|
||||||
historicoCobrancaList.setItemRenderer(new RenderCobrancaAdcicionalHistorico());
|
historicoCobrancaList.setItemRenderer(new RenderCobrancaAdcicionalHistorico());
|
||||||
ptovtaCatIndList.setItemRenderer(new RenderPtovtaCatInd());
|
ptovtaCatIndList.setItemRenderer(new RenderPtovtaCatInd());
|
||||||
|
ptovtaCatIndListTemp = new ArrayList<PtovtaCatInd>();
|
||||||
ptovtaHistoricoList.setItemRenderer(new PuntoVendaHistoricoBloqueioListItemRenderer());
|
ptovtaHistoricoList.setItemRenderer(new PuntoVendaHistoricoBloqueioListItemRenderer());
|
||||||
categoriasBloqImpPosteriorList.setItemRenderer(new RenderCategoriaBloqueioVendaImpPosterior());
|
categoriasBloqImpPosteriorList.setItemRenderer(new RenderCategoriaBloqueioVendaImpPosterior());
|
||||||
ptovtaHistoricoFormaPagoList.setItemRenderer(new PuntoVendaHistoricoFormaPagoListItemRenderer());
|
ptovtaHistoricoFormaPagoList.setItemRenderer(new PuntoVendaHistoricoFormaPagoListItemRenderer());
|
||||||
|
@ -759,6 +757,7 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
ptovtaPtoVtaCheckinList.setData(puntoVenta.getPtovtaCheckinList());
|
ptovtaPtoVtaCheckinList.setData(puntoVenta.getPtovtaCheckinList());
|
||||||
ptovtaPtoVtaSeguroList.setData(puntoVenta.getPtovtaSeguroList());
|
ptovtaPtoVtaSeguroList.setData(puntoVenta.getPtovtaSeguroList());
|
||||||
ptovtaCatIndList.setData(puntoVenta.getPtovtaCatIndList());
|
ptovtaCatIndList.setData(puntoVenta.getPtovtaCatIndList());
|
||||||
|
ptovtaCatIndListTemp.addAll(puntoVenta.getPtovtaCatIndList());
|
||||||
ptovtaHistoricoList.setData(puntoVenta.getHistoricoPuntoVentaList());
|
ptovtaHistoricoList.setData(puntoVenta.getHistoricoPuntoVentaList());
|
||||||
ptovtaHistoricoFormaPagoList.setData(puntoVenta.getHistoricoFormaPagoPuntoVentaList());
|
ptovtaHistoricoFormaPagoList.setData(puntoVenta.getHistoricoFormaPagoPuntoVentaList());
|
||||||
categoriasBloqImpPosteriorList.setData(puntoVenta.getCategoriaBloqImpPosteriorList());
|
categoriasBloqImpPosteriorList.setData(puntoVenta.getCategoriaBloqImpPosteriorList());
|
||||||
|
@ -1814,6 +1813,7 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
}
|
}
|
||||||
|
|
||||||
puntoVenta.addPtovtaCatInd(pto);
|
puntoVenta.addPtovtaCatInd(pto);
|
||||||
|
ptovtaCatIndListTemp.add(pto);
|
||||||
|
|
||||||
|
|
||||||
ptovtaCatIndList.setData(puntoVenta.getPtovtaCatIndList());
|
ptovtaCatIndList.setData(puntoVenta.getPtovtaCatIndList());
|
||||||
|
@ -1855,6 +1855,7 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
PtovtaCatInd pto = (PtovtaCatInd) ptovtaCatIndList.getSelected();
|
PtovtaCatInd pto = (PtovtaCatInd) ptovtaCatIndList.getSelected();
|
||||||
if (pto.getPtovtaCategoriaId() != null) {
|
if (pto.getPtovtaCategoriaId() != null) {
|
||||||
ptovtaCatIndService.borrar(pto);
|
ptovtaCatIndService.borrar(pto);
|
||||||
|
ptovtaCatIndListTemp.remove(pto);
|
||||||
}
|
}
|
||||||
puntoVenta.removePtovtaCatInd(pto);
|
puntoVenta.removePtovtaCatInd(pto);
|
||||||
ptovtaCatIndList.setData(puntoVenta.getPtovtaCatIndList());
|
ptovtaCatIndList.setData(puntoVenta.getPtovtaCatIndList());
|
||||||
|
@ -2099,6 +2100,7 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
puntoVenta.setTempoMinimoParaImpressao(txtTempoParaImpressao.getValue());
|
puntoVenta.setTempoMinimoParaImpressao(txtTempoParaImpressao.getValue());
|
||||||
puntoVenta.setNodo(nodoService.obtenerId(1));
|
puntoVenta.setNodo(nodoService.obtenerId(1));
|
||||||
puntoVenta.setDateAbertura(dateAbertura.getValue());
|
puntoVenta.setDateAbertura(dateAbertura.getValue());
|
||||||
|
puntoVenta.setPtovtaCatIndList(ptovtaCatIndListTemp);
|
||||||
|
|
||||||
if (dateFechamento.getValue() != null && dateFechamento.getValue().compareTo(dateAbertura.getValue()) < 0) {
|
if (dateFechamento.getValue() != null && dateFechamento.getValue().compareTo(dateAbertura.getValue()) < 0) {
|
||||||
Messagebox.show(
|
Messagebox.show(
|
||||||
|
@ -4793,5 +4795,4 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue