P3 - Bloqueio por tipo de Passagem (fixed bug #5381)

git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@36227 d1611594-4594-4d17-8e1d-87c2c4800839
master
julio 2014-06-25 19:59:08 +00:00
parent 3e92448f65
commit 5a96db3a9a
6 changed files with 253 additions and 92 deletions

View File

@ -18,6 +18,7 @@ import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;
import org.springframework.transaction.annotation.Transactional;
import org.zkoss.util.resource.Labels;
import org.zkoss.zk.ui.Component;
import org.zkoss.zk.ui.Executions;
@ -41,6 +42,7 @@ import org.zkoss.zul.Radio;
import org.zkoss.zul.Textbox;
import org.zkoss.zul.api.Timebox;
import com.rjconsultores.ventaboletos.entidad.Categoria;
import com.rjconsultores.ventaboletos.entidad.Ciudad;
import com.rjconsultores.ventaboletos.entidad.Colonia;
import com.rjconsultores.ventaboletos.entidad.Empresa;
@ -51,11 +53,13 @@ import com.rjconsultores.ventaboletos.entidad.Moneda;
import com.rjconsultores.ventaboletos.entidad.Nodo;
import com.rjconsultores.ventaboletos.entidad.Parada;
import com.rjconsultores.ventaboletos.entidad.ParamRecoleccion;
import com.rjconsultores.ventaboletos.entidad.PerfilFuncion;
import com.rjconsultores.ventaboletos.entidad.PtoVtaCheckin;
import com.rjconsultores.ventaboletos.entidad.PtoVtaSeguro;
import com.rjconsultores.ventaboletos.entidad.PtoVtaUsuarioBancario;
import com.rjconsultores.ventaboletos.entidad.PtovtaAgencia;
import com.rjconsultores.ventaboletos.entidad.PtovtaAntecipacomissao;
import com.rjconsultores.ventaboletos.entidad.PtovtaCatInd;
import com.rjconsultores.ventaboletos.entidad.PtovtaComissao;
import com.rjconsultores.ventaboletos.entidad.PtovtaDiversos;
import com.rjconsultores.ventaboletos.entidad.PtovtaEmpresa;
@ -65,7 +69,10 @@ import com.rjconsultores.ventaboletos.entidad.PtovtaHorario;
import com.rjconsultores.ventaboletos.entidad.PtovtaTitular;
import com.rjconsultores.ventaboletos.entidad.PuntoVenta;
import com.rjconsultores.ventaboletos.entidad.TipoPuntoVenta;
import com.rjconsultores.ventaboletos.entidad.Usuario;
import com.rjconsultores.ventaboletos.entidad.UsuarioBancario;
import com.rjconsultores.ventaboletos.entidad.UsuarioPerfil;
import com.rjconsultores.ventaboletos.service.CategoriaService;
import com.rjconsultores.ventaboletos.service.ColoniaService;
import com.rjconsultores.ventaboletos.service.EmpresaService;
import com.rjconsultores.ventaboletos.service.FormaPagoService;
@ -75,12 +82,14 @@ import com.rjconsultores.ventaboletos.service.NodoService;
import com.rjconsultores.ventaboletos.service.PtoVtaCheckinService;
import com.rjconsultores.ventaboletos.service.PtoVtaSeguroService;
import com.rjconsultores.ventaboletos.service.PtoVtaUsuarioBancarioService;
import com.rjconsultores.ventaboletos.service.PtovtaCatIndService;
import com.rjconsultores.ventaboletos.service.PtovtaComissaoService;
import com.rjconsultores.ventaboletos.service.PtovtaEmpresaBloqueadaService;
import com.rjconsultores.ventaboletos.service.PtovtaEmpresaService;
import com.rjconsultores.ventaboletos.service.PuntoVentaService;
import com.rjconsultores.ventaboletos.service.TipoPuntoVentaService;
import com.rjconsultores.ventaboletos.service.UsuarioBancarioService;
import com.rjconsultores.ventaboletos.service.UsuarioService;
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxPuntoVenta;
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
@ -97,6 +106,7 @@ import com.rjconsultores.ventaboletos.web.utilerias.render.PtovtaUsuarioBancario
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderEmpresaBloquear;
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderParadaPtoVtaCheckin;
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderPtoVtaSeguro;
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderPtovtaCatInd;
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderPtovtaComissao;
/**
@ -108,6 +118,9 @@ import com.rjconsultores.ventaboletos.web.utilerias.render.RenderPtovtaComissao;
public class EditarPuntoVentaController extends MyGenericForwardComposer {
private static final long serialVersionUID = 1L;
private static Logger log = Logger.getLogger(EditarPuntoVentaController.class);
public static final String FUNCION_TIPO_BOLETO_BLOQUEADO = "COM.RJCONSULTORES.ADMINISTRACION.PUNTOVENTA.TIPOBOLETOBLOQUEADO";
@Autowired
private PuntoVentaService puntoVentaService;
@Autowired
@ -138,6 +151,12 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
private PtoVtaCheckinService ptoVtaCheckinService;
@Autowired
private PtoVtaSeguroService ptoVtaSeguroService;
@Autowired
private CategoriaService categoriaService;
@Autowired
private PtovtaCatIndService ptovtaCatIndService;
@Autowired
private UsuarioService usuarioService;
private PuntoVenta puntoVenta;
private Textbox txtCP;
@ -153,7 +172,9 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
private MyListbox ptovtaHorarioList;
private MyListbox ptovtaEstoqueList;
private MyListbox ptovtaComissaoList;
private static Logger log = Logger.getLogger(EditarPuntoVentaController.class);
private MyListbox ptovtaCatIndList;
private List<Categoria> lsCategoriaBloquear;
private List<Empresa> lsEmpresasBloquear;
private List<Empresa> lsEmpresas;
@ -207,6 +228,8 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
private Combobox cmbReceita;
private Combobox cmbEmpresaComissao;
private Combobox cmbEmpresas;
private Combobox cmbCategorias;
private Button btnSalvarFormaPago;
private Button btnApagar;
private Doublebox txtCargosExtras;
@ -275,7 +298,8 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
super.doAfterCompose(comp);
aplicarMascara();
lsCategoriaBloquear = categoriaService.obtenerTodasCategoriasVisibles();
lsEmpresasBloquear = empresaService.obtenerTodos();
lsEmpresas = UsuarioLogado.getUsuarioLogado().getEmpresa();
lsMoneda = monedaService.obtenerTodos();
@ -286,12 +310,13 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
lsTipoPuntoVenta = tipoPuntoVentaService.obtenerTodosExceto(TipoPuntoVenta.TODOS);
lsUsuarioBancario = usuarioBancarioService.obtenerTodos();
popularCombobox(cmbTipoConta, cmbPessoa, cmbForm, cmbLote, cmbPosicao, cmbReceita, cmbEmpresas);
popularCombobox(cmbTipoConta, cmbPessoa, cmbForm, cmbLote, cmbPosicao, cmbReceita, cmbEmpresas, cmbCategorias);
ptovtaEmpresasBloqueadasList.setItemRenderer(new RenderEmpresaBloquear());
ptovtaPtoVtaCheckinList.setItemRenderer(new RenderParadaPtoVtaCheckin());
ptovtaPtoVtaSeguroList.setItemRenderer(new RenderPtoVtaSeguro());
ptovtaCatIndList.setItemRenderer(new RenderPtovtaCatInd());
ptovtaEmpresasBloqueadasList.setItemRenderer(new RenderEmpresaBloquear());
ptovtaPtoVtaCheckinList.setItemRenderer(new RenderParadaPtoVtaCheckin());
ptovtaPtoVtaSeguroList.setItemRenderer(new RenderPtoVtaSeguro());
ptovtaComissaoList.setItemRenderer(new RenderPtovtaComissao());
ptovtaComissaoList.addEventListener("onDoubleClick", new EventListener() {
@Override
@ -314,10 +339,11 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
btnAdicionarEmpresaComissao.setDisabled(false);
ptovtaComissaoList.setData(lsPtovtaComissao);
ptovtaEmpresasBloqueadasList.setData(puntoVenta.getPtovtaEmpresaBloqueadaList());
ptovtaPtoVtaCheckinList.setData(puntoVenta.getPtovtaCheckinList());
ptovtaPtoVtaSeguroList.setData(puntoVenta.getPtovtaSeguroList());
ptovtaCatIndList.setData(puntoVenta.getPtovtaCatIndList());
if (puntoVenta.getColonia() != null) {
cmbCiudad.setText(puntoVenta.getColonia().getCiudad().getNombciudad());
@ -348,11 +374,11 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
}
if (puntoVenta.getNumDoCPuntoVenta() != null) {
txtNumDoCPuntoVenta.setValue(puntoVenta.getNumDoCPuntoVenta());
}
}
if (puntoVenta.getRazonSocial() != null) {
txtRazonSocial.setValue(puntoVenta.getRazonSocial());
}
}
}
puntoVentaList = (MyListbox) Executions.getCurrent().getArg().get("puntoVentaList");
@ -559,6 +585,26 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
txtNome.focus();
}
@Transactional
public boolean validaFuncionTipoBoletoBloqueado() {
List<String> listClavesPermisos = new ArrayList<String>();
Usuario usuarioLogado = usuarioService.obtenerID(UsuarioLogado.getUsuarioLogado().getUsuarioId());
List<UsuarioPerfil> listUsuarioPerfil = usuarioLogado.getUsuarioPerfilList();
for (UsuarioPerfil up : listUsuarioPerfil) {
List<PerfilFuncion> listPerfilFuncion = up.getPerfil().getPerfilFuncionList();
for (PerfilFuncion pf : listPerfilFuncion) {
listClavesPermisos.add(pf.getFuncionSistema().getDescruta());
}
}
if (listClavesPermisos.contains(FUNCION_TIPO_BOLETO_BLOQUEADO)) {
return true;
}
return false;
}
public void clearCombobox(Combobox combobox) {
int size = combobox.getItemCount();
@ -568,7 +614,7 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
}
}
public void popularCombobox(Combobox cmbConta, Combobox cmbPessoa, Combobox cmbForm, Combobox cmbLote, Combobox cmbPosicao, Combobox cmbReceita, Combobox cmbEmpresas) throws Exception {
public void popularCombobox(Combobox cmbConta, Combobox cmbPessoa, Combobox cmbForm, Combobox cmbLote, Combobox cmbPosicao, Combobox cmbReceita, Combobox cmbEmpresas, Combobox cmbCategorias) throws Exception {
clearCombobox(cmbConta);
clearCombobox(cmbPessoa);
@ -576,13 +622,14 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
clearCombobox(cmbLote);
clearCombobox(cmbPosicao);
clearCombobox(cmbEmpresas);
clearCombobox(cmbCategorias);
for (Empresa e : lsEmpresasBloquear) {
Comboitem comboItem = new Comboitem(e.getNombempresa());
comboItem.setValue(e);
comboItem.setParent(cmbEmpresas);
}
for (PtovtaAgencia.enumTipoConta p : PtovtaAgencia.enumTipoConta.values()) {
Comboitem comboItem = new Comboitem(p.descricao());
comboItem.setValue(p.valor());
@ -619,6 +666,12 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
comboItem.setParent(cmbReceita);
}
for (Categoria c : lsCategoriaBloquear) {
Comboitem comboItem = new Comboitem(c.getDesccategoria());
comboItem.setValue(c);
comboItem.setParent(cmbCategorias);
}
}
public void onSelect$cmbBanco() {
@ -658,16 +711,16 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
return getString;
}
public void onClick$btnAdicionarEmpresaBloqueada(Event ev){
Empresa e = (Empresa)cmbEmpresas.getSelectedItem().getValue();
public void onClick$btnAdicionarEmpresaBloqueada(Event ev) {
Empresa e = (Empresa) cmbEmpresas.getSelectedItem().getValue();
puntoVenta.addEmpresaBloqueada(e);
ptovtaEmpresasBloqueadasList.setData(puntoVenta.getPtovtaEmpresaBloqueadaList());
}
public void onClick$btnApagarEmpresaBloqueada(Event ev){
public void onClick$btnApagarEmpresaBloqueada(Event ev) {
try {
int resp = Messagebox.show(
Labels.getLabel("editarPuntoVentaController.MSG.borrarEmpresaBloqueadaPergunta"),
@ -675,23 +728,23 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
Messagebox.YES | Messagebox.NO, Messagebox.QUESTION);
if (resp == Messagebox.YES) {
PtovtaEmpresaBloqueada e = (PtovtaEmpresaBloqueada)ptovtaEmpresasBloqueadasList.getSelected();
PtovtaEmpresaBloqueada e = (PtovtaEmpresaBloqueada) ptovtaEmpresasBloqueadasList.getSelected();
ptovtaEmpresaBloqueadaService.borrar(e);
puntoVenta.removeEmpresaBloqueada(e);
ptovtaEmpresasBloqueadasList.setData(puntoVenta.getPtovtaEmpresaBloqueadaList());
}
} catch (Exception ex){
} catch (Exception ex) {
log.error(ex.toString());
}
}
public void onClick$btnAdicionarPtoVtaCheckin(Event ev){
if(cmbPtoVtaCheckinParada.getSelectedItem() != null){
public void onClick$btnAdicionarPtoVtaCheckin(Event ev) {
if (cmbPtoVtaCheckinParada.getSelectedItem() != null) {
Parada parada = (Parada) cmbPtoVtaCheckinParada.getSelectedItem().getValue();
PtoVtaCheckin pto = new PtoVtaCheckin();
@ -702,12 +755,12 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
ptovtaPtoVtaCheckinList.setData(puntoVenta.getPtovtaCheckinList());
}
}
public void onClick$btnApagarPtoVtaCheckin(Event ev){
public void onClick$btnApagarPtoVtaCheckin(Event ev) {
try {
if(ptovtaPtoVtaCheckinList.getSelected() != null){
if (ptovtaPtoVtaCheckinList.getSelected() != null) {
int resp = Messagebox.show(
Labels.getLabel("editarPuntoVentaController.MSG.borrarPtoVtaCheckin"),
Labels.getLabel("editarPuntoVentaController.window.title"),
@ -716,20 +769,20 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
if (resp == Messagebox.YES) {
PtoVtaCheckin pto = (PtoVtaCheckin) ptovtaPtoVtaCheckinList.getSelected();
if(pto.getPtoVtaCheckinId() != null){
if (pto.getPtoVtaCheckinId() != null) {
ptoVtaCheckinService.borrar(pto);
}
puntoVenta.removePtovtaCheckin(pto);
ptovtaPtoVtaCheckinList.setData(puntoVenta.getPtovtaCheckinList());
}
}
} catch (Exception ex){
} catch (Exception ex) {
log.error(ex.toString());
}
}
public void onClick$btnAdicionarPtoVtaSeguro(Event ev){
public void onClick$btnAdicionarPtoVtaSeguro(Event ev) {
if (cmbEmpresaSeguro.getSelectedItem() != null &&
(radIndvendsegopcionalSi.isChecked() || radIndvendsegopcionalNo.isChecked() ||
radIndestansegopcionalSi.isChecked() || radIndestansegopcionalNo.isChecked())) {
@ -748,32 +801,68 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
ptovtaPtoVtaSeguroList.setData(puntoVenta.getPtovtaSeguroList());
}
}
public void onClick$btnApagarPtoVtaSeguro(Event ev){
public void onClick$btnApagarPtoVtaSeguro(Event ev) {
try {
if(ptovtaPtoVtaSeguroList.getSelected() != null){
if (ptovtaPtoVtaSeguroList.getSelected() != null) {
int resp = Messagebox.show(
Labels.getLabel("editarPuntoVentaController.MSG.borrarPtoVtaSeguro"),
Labels.getLabel("editarPuntoVentaController.window.title"),
Messagebox.YES | Messagebox.NO, Messagebox.QUESTION);
if (resp == Messagebox.YES) {
PtoVtaSeguro pto = (PtoVtaSeguro) ptovtaPtoVtaSeguroList.getSelected();
if(pto.getPtoVtaSeguroId() != null){
if (pto.getPtoVtaSeguroId() != null) {
ptoVtaSeguroService.borrar(pto);
}
puntoVenta.removePtovtaSeguro(pto);
ptovtaPtoVtaSeguroList.setData(puntoVenta.getPtovtaSeguroList());
}
}
} catch (Exception ex){
} catch (Exception ex) {
log.error(ex.toString());
}
}
public void onClick$btnAdicionarPtovtaCatInd(Event ev) {
if (cmbCategorias.getSelectedItem() != null) {
Categoria categoria = (Categoria) cmbCategorias.getSelectedItem().getValue();
PtovtaCatInd pto = new PtovtaCatInd();
pto.setCategoria(categoria);
pto.setPuntoVenta(puntoVenta);
puntoVenta.addPtovtaCatInd(pto);
ptovtaCatIndList.setData(puntoVenta.getPtovtaCatIndList());
}
}
public void onClick$btnApagarPtovtaCatInd(Event ev) {
try {
if (ptovtaCatIndList.getSelected() != null) {
int resp = Messagebox.show(
Labels.getLabel("editarPuntoVentaController.MSG.borrarPtoVtaCheckin"),
Labels.getLabel("editarPuntoVentaController.window.title"),
Messagebox.YES | Messagebox.NO, Messagebox.QUESTION);
if (resp == Messagebox.YES) {
PtovtaCatInd pto = (PtovtaCatInd) ptovtaCatIndList.getSelected();
if (pto.getPtovtaCategoriaId() != null) {
ptovtaCatIndService.borrar(pto);
}
puntoVenta.removePtovtaCatInd(pto);
ptovtaCatIndList.setData(puntoVenta.getPtovtaCatIndList());
}
}
} catch (Exception ex) {
log.error(ex.toString());
}
}
public void onClick$btnSalvar(Event ev) throws InterruptedException {
txtMaxCancelacion.getValue();
@ -807,14 +896,14 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
cmbColonia.getValue();
cmbCiudad.getValue();
cmbBanco.getValue();
cmbPessoa.getValue();
cmbPessoa.getValue();
cmbTipoConta.getValue();
cmbPosicao.getValue();
if(puntoVenta.getPuntoVentaPadre() == null && !cmbPuntoVentaPadre.getValue().isEmpty()){
cmbPosicao.getValue();
if (puntoVenta.getPuntoVentaPadre() == null && !cmbPuntoVentaPadre.getValue().isEmpty()) {
cmbPuntoVentaPadre.getValue(true);
}
// checar uma forma onde o proprio componente coloque como null o atributo
if (cmbPuntoVentaPadre.getValue().isEmpty()) {
puntoVenta.setPuntoVentaPadre(null);
@ -880,8 +969,8 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
if (cmbColonia.getSelectedItem() != null) {
puntoVenta.setColonia((Colonia) cmbColonia.getSelectedItem().getValue());
}
if((puntoVenta.getComissaoId() != null) && (puntoVenta.getComissaoId().getPtovtaComissaoId() == null)){
if ((puntoVenta.getComissaoId() != null) && (puntoVenta.getComissaoId().getPtovtaComissaoId() == null)) {
puntoVenta.setComissaoId(null);
}
@ -1025,8 +1114,8 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
puntoVentaService.borrar(puntoVenta);
log.warn("Usuário " + UsuarioLogado.getUsuarioLogado().getNombusuario() + " excluiu o ponto de venda " + puntoVenta.getPuntoventaId() );
log.warn("Usuário " + UsuarioLogado.getUsuarioLogado().getNombusuario() + " excluiu o ponto de venda " + puntoVenta.getPuntoventaId());
Messagebox.show(
Labels.getLabel("editarPuntoVentaController.MSG.borrarOK"),
Labels.getLabel("editarPuntoVentaController.window.title"),
@ -1067,7 +1156,7 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
dateAntecipData.getValue();
txtAntecipRetem.getValue();
txtAntecipPercentual.getValue();
try {
PtovtaAntecipacomissao antecipa = new PtovtaAntecipacomissao();
@ -2085,7 +2174,7 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
public void setBtnAdicionarEmpresaComissao(Button btnAdicionarEmpresaComissao) {
this.btnAdicionarEmpresaComissao = btnAdicionarEmpresaComissao;
}
public MyTextbox getTxtNumDoCPuntoVenta() {
return txtNumDoCPuntoVenta;
}
@ -2105,7 +2194,7 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
public void onChange$cmbPuntoVentaPadre(Event ev) throws InterruptedException {
if (puntoVenta.getPuntoventaId() != null) {
List<PuntoVenta> lsPuntosSubordinados = puntoVentaService.buscarPuntoVentaSubordinados(puntoVenta);
if (!lsPuntosSubordinados.isEmpty()) {
StringBuilder sbPuntosSubordinados = new StringBuilder("\n");
for (PuntoVenta pv : lsPuntosSubordinados) {
@ -2123,6 +2212,7 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
}
}
@SuppressWarnings({ "unchecked", "rawtypes" })
public void abrirPtovtaComissao(PtovtaComissao ptovtaComissao) {
Map args = new HashMap();
args.put("ptovtaComissao", ptovtaComissao);

View File

@ -0,0 +1,21 @@
package com.rjconsultores.ventaboletos.web.utilerias.render;
import org.zkoss.zul.Listcell;
import org.zkoss.zul.Listitem;
import org.zkoss.zul.ListitemRenderer;
import com.rjconsultores.ventaboletos.entidad.PtovtaCatInd;
public class RenderPtovtaCatInd implements ListitemRenderer {
public void render(Listitem lstm, Object o) throws Exception {
PtovtaCatInd pto = (PtovtaCatInd) o;
Listcell lc = new Listcell(pto.getCategoria().getDesccategoria());
lc.setParent(lstm);
lstm.setAttribute("data", pto);
}
}

View File

@ -122,7 +122,8 @@
<value>com.rjconsultores.ventaboletos.entidad.EstacionSitef</value>
<value>com.rjconsultores.ventaboletos.entidad.Estado</value>
<value>com.rjconsultores.ventaboletos.entidad.EsquemaAsiento</value>
<value>com.rjconsultores.ventaboletos.entidad.EsquemaAgrupacion</value>
<value>com.rjconsultores.ventaboletos.entidad.EsquemaAgrupacion
</value>
<value>com.rjconsultores.ventaboletos.entidad.EsquemaCorrida</value>
<value>com.rjconsultores.ventaboletos.entidad.EsquemaOperacional
</value>
@ -219,6 +220,7 @@
<value>com.rjconsultores.ventaboletos.entidad.ProductoServicio
</value>
<value>com.rjconsultores.ventaboletos.entidad.PtovtaAgencia</value>
<value>com.rjconsultores.ventaboletos.entidad.PtovtaCatInd</value>
<value>com.rjconsultores.ventaboletos.entidad.PtoVtaCheckin</value>
<value>com.rjconsultores.ventaboletos.entidad.PtoVtaSeguro</value>
<value>com.rjconsultores.ventaboletos.entidad.PtovtaAntecipacomissao
@ -228,7 +230,8 @@
<value>com.rjconsultores.ventaboletos.entidad.PtovtaComissao</value>
<value>com.rjconsultores.ventaboletos.entidad.PtovtaDiversos</value>
<value>com.rjconsultores.ventaboletos.entidad.PtovtaEstoque</value>
<value>com.rjconsultores.ventaboletos.entidad.PtovtaEmpresaBloqueada</value>
<value>com.rjconsultores.ventaboletos.entidad.PtovtaEmpresaBloqueada
</value>
<value>com.rjconsultores.ventaboletos.entidad.PtovtaHorario</value>
<value>com.rjconsultores.ventaboletos.entidad.PtovtaTitular</value>
<value>com.rjconsultores.ventaboletos.entidad.PtovtaEmpresa</value>
@ -349,7 +352,7 @@
</value>
<value>com.rjconsultores.ventaboletos.entidad.InscricaoEstadual
</value>
<value>com.rjconsultores.ventaboletos.entidad.OCD
</value>
<value>com.rjconsultores.ventaboletos.entidad.OCDParam

View File

@ -783,6 +783,7 @@ editarPuntoVentaController.tab.label.estoque = Estoque mínimo
editarPuntoVentaController.tab.label.empresaBloqueada = Empresas Bloqueadas
editarPuntoVentaController.tab.label.localidades = Localidades Permitidas
editarPuntoVentaController.tab.label.seguro = Seguro
editarPuntoVentaController.tab.label.tipoPassageiroBloqueio = Tipos de Boletos Bloqueados
editarPuntoVentaController.tab.label.usuBancario = Usuarios bancários
editarPuntoVentaController.lbCP.value = Cod. Postal
editarPuntoVentaController.lblNumPuntoVenda=Número punto de venta
@ -791,6 +792,7 @@ editarPuntoVentaController.lbStock.value = Estoque
editarPuntoVentaController.lbCheckStock.value = Validar Estoque
editarPuntoVentaController.lbVendeSegOpcional.value = Vende Seguro Opcional
editarPuntoVentaController.lbEstanSegOpcional.value = Estan Seguro Opcional
editarPuntoVentaController.label.tipoPassagem = Tipo de Boletos
# Editar comisión ponto de venta
editarPuntoVentaComissaoController.window.title = Comisión empresa/Punto de venta

View File

@ -814,6 +814,7 @@ editarPuntoVentaController.tab.label.estoque = Estoque Mínimo
editarPuntoVentaController.tab.label.empresaBloqueada = Empresas Bloqueadas
editarPuntoVentaController.tab.label.localidades = Localidades Permitidas
editarPuntoVentaController.tab.label.seguro = Seguro
editarPuntoVentaController.tab.label.tipoPassageiroBloqueio = Tipos de Passagens Bloqueadas
editarPuntoVentaController.tab.label.usuBancario = Usuarios bancários
editarPuntoVentaController.lbCP.value = Cod. Postal
editarPuntoVentaController.lblNumPuntoVenda=Número Agência
@ -822,6 +823,7 @@ editarPuntoVentaController.lbStock.value = Estoque
editarPuntoVentaController.lbCheckStock.value = Validar Estoque
editarPuntoVentaController.lbVendeSegOpcional.value = Vende Seguro Opcional
editarPuntoVentaController.lbEstanSegOpcional.value = Estan Seguro Opcional
editarPuntoVentaController.label.tipoPassagem = Tipo de Passagens
# Editar comissão ponto de venda
editarPuntoVentaComissaoController.window.title = Comissão Empresa/Ponto de Venda

View File

@ -60,6 +60,8 @@
label="${c:l('editarPuntoVentaController.tab.label.localidades')}" />
<tab
label="${c:l('editarPuntoVentaController.tab.label.seguro')}" />
<tab visible="@{winEditarPuntoVenta$composer.validaFuncionTipoBoletoBloqueado}"
label="${c:l('editarPuntoVentaController.tab.label.tipoPassageiroBloqueio')}" />
</tabs>
<tabpanels>
@ -249,7 +251,7 @@
constraint="no empty" width="70%" maxlength="30"
value="@{winEditarPuntoVenta$composer.puntoVenta.dscContrasenaInternet}"
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
</row>
</row>
<row>
<!-- numdocpuntoventa -->
<label
@ -258,13 +260,13 @@
width="70%" maxlength="20"
value="@{winEditarPuntoVenta$composer.puntoVenta.numDoCPuntoVenta}"
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
</row>
</row>
<row>
<!-- razonsocial -->
<label
value="${c:l('editarPuntoVentaController.lbdscRazonSocial.value')}" />
<textbox id="txtRazonSocial"
width="70%" maxlength="40"
<textbox id="txtRazonSocial" width="70%"
maxlength="40"
value="@{winEditarPuntoVenta$composer.puntoVenta.razonSocial}"
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
</row>
@ -373,8 +375,7 @@
<button
id="btnAdicionarEmpresaComissao" height="20"
image="/gui/img/add.png" width="35px"
disabled="true"
image="/gui/img/add.png" width="35px" disabled="true"
tooltiptext="${c:l('editarConfiguracionReservacionController.btnAddClase.tooltiptext')}" />
</hbox>
@ -627,7 +628,7 @@
<checkbox id="checkOfpsTerceiros"
label="${c:l('editarConfiguracionDiversosController.lbOfpsTerceiros.value')}" />
</hbox>
</row>
</row>
</rows>
</grid>
</tabpanel>
@ -1035,11 +1036,11 @@
<toolbar>
<hbox spacing="5px" style="padding:1px"
align="right">
<button id="btnApagarEmpresaBloqueada" height="20"
image="/gui/img/remove.png" width="35px"
<button id="btnApagarEmpresaBloqueada"
height="20" image="/gui/img/remove.png" width="35px"
tooltiptext="${c:l('editarEmpresaController.btnApagar.tooltiptext')}" />
<button id="btnAdicionarEmpresaBloqueada" height="20"
image="/gui/img/add.png" width="35px"
<button id="btnAdicionarEmpresaBloqueada"
height="20" image="/gui/img/add.png" width="35px"
tooltiptext="${c:l('busquedaEmpresaController.btnNovo.tooltiptext')}" />
</hbox>
</toolbar>
@ -1049,7 +1050,7 @@
<listhead sizable="true">
<listheader id="lhEmpresa"
image="/gui/img/builder.gif"
label="${c:l('editarEmpresaController.window.title')}" />
label="${c:l('editarEmpresaController.window.title')}" />
</listhead>
</listbox>
</tabpanel>
@ -1066,18 +1067,19 @@
value="${c:l('editarPuntoVentaController.lbparada.value')}" />
<combobox id="cmbPtoVtaCheckinParada"
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada"
mold="rounded" buttonVisible="true" width="70%" sinTodos="true"/>
mold="rounded" buttonVisible="true" width="70%"
sinTodos="true" />
</row>
</rows>
</grid>
<toolbar>
<hbox spacing="5px" style="padding:1px"
align="right">
<button id="btnApagarPtoVtaCheckin" height="20"
image="/gui/img/remove.png" width="35px"
<button id="btnApagarPtoVtaCheckin"
height="20" image="/gui/img/remove.png" width="35px"
tooltiptext="${c:l('editarEmpresaController.btnApagar.tooltiptext')}" />
<button id="btnAdicionarPtoVtaCheckin" height="20"
image="/gui/img/add.png" width="35px"
<button id="btnAdicionarPtoVtaCheckin"
height="20" image="/gui/img/add.png" width="35px"
tooltiptext="${c:l('busquedaEmpresaController.btnNovo.tooltiptext')}" />
</hbox>
</toolbar>
@ -1087,7 +1089,7 @@
<listhead sizable="true">
<listheader id="lhPtoVtaCheckin"
image="/gui/img/builder.gif"
label="${c:l('editarPuntoVentaController.lbparada.value')}" />
label="${c:l('editarPuntoVentaController.lbparada.value')}" />
</listhead>
</listbox>
</tabpanel>
@ -1112,8 +1114,7 @@
value="${c:l('editarPuntoVentaController.lbVendeSegOpcional.value')}" />
<radiogroup Id="indvendsegopcional">
<radio id="radIndvendsegopcionalSi"
label="${c:l('MSG.SI')}"
checked="true" />
label="${c:l('MSG.SI')}" checked="true" />
<radio id="radIndvendsegopcionalNo"
label="${c:l('MSG.NO')}" />
</radiogroup>
@ -1123,8 +1124,7 @@
value="${c:l('editarPuntoVentaController.lbEstanSegOpcional.value')}" />
<radiogroup Id="indestansegopcional">
<radio id="radIndestansegopcionalSi"
label="${c:l('MSG.SI')}"
checked="true" />
label="${c:l('MSG.SI')}" checked="true" />
<radio id="radIndestansegopcionalNo"
label="${c:l('MSG.NO')}" />
</radiogroup>
@ -1134,11 +1134,11 @@
<toolbar>
<hbox spacing="5px" style="padding:1px"
align="right">
<button id="btnApagarPtoVtaSeguro" height="20"
image="/gui/img/remove.png" width="35px"
<button id="btnApagarPtoVtaSeguro"
height="20" image="/gui/img/remove.png" width="35px"
tooltiptext="${c:l('editarEmpresaController.btnApagar.tooltiptext')}" />
<button id="btnAdicionarPtoVtaSeguro" height="20"
image="/gui/img/add.png" width="35px"
<button id="btnAdicionarPtoVtaSeguro"
height="20" image="/gui/img/add.png" width="35px"
tooltiptext="${c:l('busquedaEmpresaController.btnNovo.tooltiptext')}" />
</hbox>
</toolbar>
@ -1148,16 +1148,59 @@
<listhead sizable="true">
<listheader id="lhPtoVtaSeguroEmpresa"
image="/gui/img/builder.gif"
label="${c:l('editarPuntoVentaController.lbEmpresa.value')}" />
label="${c:l('editarPuntoVentaController.lbEmpresa.value')}" />
<listheader id="lhPtoVtaSeguroVende"
image="/gui/img/builder.gif"
label="${c:l('editarPuntoVentaController.lbVendeSegOpcional.value')}" />
label="${c:l('editarPuntoVentaController.lbVendeSegOpcional.value')}" />
<listheader id="lhPtoVtaSeguroEstan"
image="/gui/img/builder.gif"
label="${c:l('editarPuntoVentaController.lbEstanSegOpcional.value')}" />
label="${c:l('editarPuntoVentaController.lbEstanSegOpcional.value')}" />
</listhead>
</listbox>
</tabpanel>
<!-- TIPO BOLETO BLOQUEADO -->
<tabpanel height="400px">
<grid fixedLayout="true">
<columns>
<column width="30%" />
<column width="70%" />
</columns>
<rows>
<row>
<label
value="${c:l('editarPuntoVentaController.label.tipoPassagem')}" />
<combobox id="cmbCategorias"
constraint="no empty"
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
width="70%" mold="rounded" buttonVisible="true" />
</row>
</rows>
</grid>
<toolbar>
<hbox spacing="5px" style="padding:1px"
align="right">
<button id="btnApagarPtovtaCatInd"
height="20" image="/gui/img/remove.png" width="35px"
tooltiptext="${c:l('editarEmpresaController.btnApagar.tooltiptext')}" />
<button id="btnAdicionarPtovtaCatInd"
height="20" image="/gui/img/add.png" width="35px"
tooltiptext="${c:l('busquedaEmpresaController.btnNovo.tooltiptext')}" />
</hbox>
</toolbar>
<listbox id="ptovtaCatIndList"
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
vflex="true" multiple="false">
<listhead sizable="true">
<listheader id="lCategoria"
image="/gui/img/builder.gif"
label="${c:l('editarPuntoVentaController.label.tipoPassagem')}" />
</listhead>
</listbox>
</tabpanel>
</tabpanels>
</tabbox>
</window>