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-87c2c4800839master
parent
3e92448f65
commit
5a96db3a9a
|
@ -18,6 +18,7 @@ import org.apache.log4j.Logger;
|
||||||
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;
|
||||||
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
import org.zkoss.util.resource.Labels;
|
import org.zkoss.util.resource.Labels;
|
||||||
import org.zkoss.zk.ui.Component;
|
import org.zkoss.zk.ui.Component;
|
||||||
import org.zkoss.zk.ui.Executions;
|
import org.zkoss.zk.ui.Executions;
|
||||||
|
@ -41,6 +42,7 @@ import org.zkoss.zul.Radio;
|
||||||
import org.zkoss.zul.Textbox;
|
import org.zkoss.zul.Textbox;
|
||||||
import org.zkoss.zul.api.Timebox;
|
import org.zkoss.zul.api.Timebox;
|
||||||
|
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.Categoria;
|
||||||
import com.rjconsultores.ventaboletos.entidad.Ciudad;
|
import com.rjconsultores.ventaboletos.entidad.Ciudad;
|
||||||
import com.rjconsultores.ventaboletos.entidad.Colonia;
|
import com.rjconsultores.ventaboletos.entidad.Colonia;
|
||||||
import com.rjconsultores.ventaboletos.entidad.Empresa;
|
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.Nodo;
|
||||||
import com.rjconsultores.ventaboletos.entidad.Parada;
|
import com.rjconsultores.ventaboletos.entidad.Parada;
|
||||||
import com.rjconsultores.ventaboletos.entidad.ParamRecoleccion;
|
import com.rjconsultores.ventaboletos.entidad.ParamRecoleccion;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.PerfilFuncion;
|
||||||
import com.rjconsultores.ventaboletos.entidad.PtoVtaCheckin;
|
import com.rjconsultores.ventaboletos.entidad.PtoVtaCheckin;
|
||||||
import com.rjconsultores.ventaboletos.entidad.PtoVtaSeguro;
|
import com.rjconsultores.ventaboletos.entidad.PtoVtaSeguro;
|
||||||
import com.rjconsultores.ventaboletos.entidad.PtoVtaUsuarioBancario;
|
import com.rjconsultores.ventaboletos.entidad.PtoVtaUsuarioBancario;
|
||||||
import com.rjconsultores.ventaboletos.entidad.PtovtaAgencia;
|
import com.rjconsultores.ventaboletos.entidad.PtovtaAgencia;
|
||||||
import com.rjconsultores.ventaboletos.entidad.PtovtaAntecipacomissao;
|
import com.rjconsultores.ventaboletos.entidad.PtovtaAntecipacomissao;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.PtovtaCatInd;
|
||||||
import com.rjconsultores.ventaboletos.entidad.PtovtaComissao;
|
import com.rjconsultores.ventaboletos.entidad.PtovtaComissao;
|
||||||
import com.rjconsultores.ventaboletos.entidad.PtovtaDiversos;
|
import com.rjconsultores.ventaboletos.entidad.PtovtaDiversos;
|
||||||
import com.rjconsultores.ventaboletos.entidad.PtovtaEmpresa;
|
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.PtovtaTitular;
|
||||||
import com.rjconsultores.ventaboletos.entidad.PuntoVenta;
|
import com.rjconsultores.ventaboletos.entidad.PuntoVenta;
|
||||||
import com.rjconsultores.ventaboletos.entidad.TipoPuntoVenta;
|
import com.rjconsultores.ventaboletos.entidad.TipoPuntoVenta;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.Usuario;
|
||||||
import com.rjconsultores.ventaboletos.entidad.UsuarioBancario;
|
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.ColoniaService;
|
||||||
import com.rjconsultores.ventaboletos.service.EmpresaService;
|
import com.rjconsultores.ventaboletos.service.EmpresaService;
|
||||||
import com.rjconsultores.ventaboletos.service.FormaPagoService;
|
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.PtoVtaCheckinService;
|
||||||
import com.rjconsultores.ventaboletos.service.PtoVtaSeguroService;
|
import com.rjconsultores.ventaboletos.service.PtoVtaSeguroService;
|
||||||
import com.rjconsultores.ventaboletos.service.PtoVtaUsuarioBancarioService;
|
import com.rjconsultores.ventaboletos.service.PtoVtaUsuarioBancarioService;
|
||||||
|
import com.rjconsultores.ventaboletos.service.PtovtaCatIndService;
|
||||||
import com.rjconsultores.ventaboletos.service.PtovtaComissaoService;
|
import com.rjconsultores.ventaboletos.service.PtovtaComissaoService;
|
||||||
import com.rjconsultores.ventaboletos.service.PtovtaEmpresaBloqueadaService;
|
import com.rjconsultores.ventaboletos.service.PtovtaEmpresaBloqueadaService;
|
||||||
import com.rjconsultores.ventaboletos.service.PtovtaEmpresaService;
|
import com.rjconsultores.ventaboletos.service.PtovtaEmpresaService;
|
||||||
import com.rjconsultores.ventaboletos.service.PuntoVentaService;
|
import com.rjconsultores.ventaboletos.service.PuntoVentaService;
|
||||||
import com.rjconsultores.ventaboletos.service.TipoPuntoVentaService;
|
import com.rjconsultores.ventaboletos.service.TipoPuntoVentaService;
|
||||||
import com.rjconsultores.ventaboletos.service.UsuarioBancarioService;
|
import com.rjconsultores.ventaboletos.service.UsuarioBancarioService;
|
||||||
|
import com.rjconsultores.ventaboletos.service.UsuarioService;
|
||||||
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
||||||
import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxPuntoVenta;
|
import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxPuntoVenta;
|
||||||
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
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.RenderEmpresaBloquear;
|
||||||
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderParadaPtoVtaCheckin;
|
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderParadaPtoVtaCheckin;
|
||||||
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderPtoVtaSeguro;
|
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderPtoVtaSeguro;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderPtovtaCatInd;
|
||||||
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderPtovtaComissao;
|
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 {
|
public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
|
|
||||||
private static final long serialVersionUID = 1L;
|
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
|
@Autowired
|
||||||
private PuntoVentaService puntoVentaService;
|
private PuntoVentaService puntoVentaService;
|
||||||
@Autowired
|
@Autowired
|
||||||
|
@ -138,6 +151,12 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
private PtoVtaCheckinService ptoVtaCheckinService;
|
private PtoVtaCheckinService ptoVtaCheckinService;
|
||||||
@Autowired
|
@Autowired
|
||||||
private PtoVtaSeguroService ptoVtaSeguroService;
|
private PtoVtaSeguroService ptoVtaSeguroService;
|
||||||
|
@Autowired
|
||||||
|
private CategoriaService categoriaService;
|
||||||
|
@Autowired
|
||||||
|
private PtovtaCatIndService ptovtaCatIndService;
|
||||||
|
@Autowired
|
||||||
|
private UsuarioService usuarioService;
|
||||||
|
|
||||||
private PuntoVenta puntoVenta;
|
private PuntoVenta puntoVenta;
|
||||||
private Textbox txtCP;
|
private Textbox txtCP;
|
||||||
|
@ -153,7 +172,9 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
private MyListbox ptovtaHorarioList;
|
private MyListbox ptovtaHorarioList;
|
||||||
private MyListbox ptovtaEstoqueList;
|
private MyListbox ptovtaEstoqueList;
|
||||||
private MyListbox ptovtaComissaoList;
|
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> lsEmpresasBloquear;
|
||||||
private List<Empresa> lsEmpresas;
|
private List<Empresa> lsEmpresas;
|
||||||
|
@ -207,6 +228,8 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
private Combobox cmbReceita;
|
private Combobox cmbReceita;
|
||||||
private Combobox cmbEmpresaComissao;
|
private Combobox cmbEmpresaComissao;
|
||||||
private Combobox cmbEmpresas;
|
private Combobox cmbEmpresas;
|
||||||
|
private Combobox cmbCategorias;
|
||||||
|
|
||||||
private Button btnSalvarFormaPago;
|
private Button btnSalvarFormaPago;
|
||||||
private Button btnApagar;
|
private Button btnApagar;
|
||||||
private Doublebox txtCargosExtras;
|
private Doublebox txtCargosExtras;
|
||||||
|
@ -276,6 +299,7 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
super.doAfterCompose(comp);
|
super.doAfterCompose(comp);
|
||||||
aplicarMascara();
|
aplicarMascara();
|
||||||
|
|
||||||
|
lsCategoriaBloquear = categoriaService.obtenerTodasCategoriasVisibles();
|
||||||
lsEmpresasBloquear = empresaService.obtenerTodos();
|
lsEmpresasBloquear = empresaService.obtenerTodos();
|
||||||
lsEmpresas = UsuarioLogado.getUsuarioLogado().getEmpresa();
|
lsEmpresas = UsuarioLogado.getUsuarioLogado().getEmpresa();
|
||||||
lsMoneda = monedaService.obtenerTodos();
|
lsMoneda = monedaService.obtenerTodos();
|
||||||
|
@ -286,11 +310,12 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
lsTipoPuntoVenta = tipoPuntoVentaService.obtenerTodosExceto(TipoPuntoVenta.TODOS);
|
lsTipoPuntoVenta = tipoPuntoVentaService.obtenerTodosExceto(TipoPuntoVenta.TODOS);
|
||||||
lsUsuarioBancario = usuarioBancarioService.obtenerTodos();
|
lsUsuarioBancario = usuarioBancarioService.obtenerTodos();
|
||||||
|
|
||||||
popularCombobox(cmbTipoConta, cmbPessoa, cmbForm, cmbLote, cmbPosicao, cmbReceita, cmbEmpresas);
|
popularCombobox(cmbTipoConta, cmbPessoa, cmbForm, cmbLote, cmbPosicao, cmbReceita, cmbEmpresas, cmbCategorias);
|
||||||
|
|
||||||
ptovtaEmpresasBloqueadasList.setItemRenderer(new RenderEmpresaBloquear());
|
ptovtaEmpresasBloqueadasList.setItemRenderer(new RenderEmpresaBloquear());
|
||||||
ptovtaPtoVtaCheckinList.setItemRenderer(new RenderParadaPtoVtaCheckin());
|
ptovtaPtoVtaCheckinList.setItemRenderer(new RenderParadaPtoVtaCheckin());
|
||||||
ptovtaPtoVtaSeguroList.setItemRenderer(new RenderPtoVtaSeguro());
|
ptovtaPtoVtaSeguroList.setItemRenderer(new RenderPtoVtaSeguro());
|
||||||
|
ptovtaCatIndList.setItemRenderer(new RenderPtovtaCatInd());
|
||||||
|
|
||||||
ptovtaComissaoList.setItemRenderer(new RenderPtovtaComissao());
|
ptovtaComissaoList.setItemRenderer(new RenderPtovtaComissao());
|
||||||
ptovtaComissaoList.addEventListener("onDoubleClick", new EventListener() {
|
ptovtaComissaoList.addEventListener("onDoubleClick", new EventListener() {
|
||||||
|
@ -318,6 +343,7 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
ptovtaEmpresasBloqueadasList.setData(puntoVenta.getPtovtaEmpresaBloqueadaList());
|
ptovtaEmpresasBloqueadasList.setData(puntoVenta.getPtovtaEmpresaBloqueadaList());
|
||||||
ptovtaPtoVtaCheckinList.setData(puntoVenta.getPtovtaCheckinList());
|
ptovtaPtoVtaCheckinList.setData(puntoVenta.getPtovtaCheckinList());
|
||||||
ptovtaPtoVtaSeguroList.setData(puntoVenta.getPtovtaSeguroList());
|
ptovtaPtoVtaSeguroList.setData(puntoVenta.getPtovtaSeguroList());
|
||||||
|
ptovtaCatIndList.setData(puntoVenta.getPtovtaCatIndList());
|
||||||
|
|
||||||
if (puntoVenta.getColonia() != null) {
|
if (puntoVenta.getColonia() != null) {
|
||||||
cmbCiudad.setText(puntoVenta.getColonia().getCiudad().getNombciudad());
|
cmbCiudad.setText(puntoVenta.getColonia().getCiudad().getNombciudad());
|
||||||
|
@ -559,6 +585,26 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
txtNome.focus();
|
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) {
|
public void clearCombobox(Combobox combobox) {
|
||||||
|
|
||||||
int size = combobox.getItemCount();
|
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(cmbConta);
|
||||||
clearCombobox(cmbPessoa);
|
clearCombobox(cmbPessoa);
|
||||||
|
@ -576,6 +622,7 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
clearCombobox(cmbLote);
|
clearCombobox(cmbLote);
|
||||||
clearCombobox(cmbPosicao);
|
clearCombobox(cmbPosicao);
|
||||||
clearCombobox(cmbEmpresas);
|
clearCombobox(cmbEmpresas);
|
||||||
|
clearCombobox(cmbCategorias);
|
||||||
|
|
||||||
for (Empresa e : lsEmpresasBloquear) {
|
for (Empresa e : lsEmpresasBloquear) {
|
||||||
Comboitem comboItem = new Comboitem(e.getNombempresa());
|
Comboitem comboItem = new Comboitem(e.getNombempresa());
|
||||||
|
@ -619,6 +666,12 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
comboItem.setParent(cmbReceita);
|
comboItem.setParent(cmbReceita);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
for (Categoria c : lsCategoriaBloquear) {
|
||||||
|
Comboitem comboItem = new Comboitem(c.getDesccategoria());
|
||||||
|
comboItem.setValue(c);
|
||||||
|
comboItem.setParent(cmbCategorias);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void onSelect$cmbBanco() {
|
public void onSelect$cmbBanco() {
|
||||||
|
@ -658,8 +711,8 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
return getString;
|
return getString;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void onClick$btnAdicionarEmpresaBloqueada(Event ev){
|
public void onClick$btnAdicionarEmpresaBloqueada(Event ev) {
|
||||||
Empresa e = (Empresa)cmbEmpresas.getSelectedItem().getValue();
|
Empresa e = (Empresa) cmbEmpresas.getSelectedItem().getValue();
|
||||||
|
|
||||||
puntoVenta.addEmpresaBloqueada(e);
|
puntoVenta.addEmpresaBloqueada(e);
|
||||||
|
|
||||||
|
@ -667,7 +720,7 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void onClick$btnApagarEmpresaBloqueada(Event ev){
|
public void onClick$btnApagarEmpresaBloqueada(Event ev) {
|
||||||
try {
|
try {
|
||||||
int resp = Messagebox.show(
|
int resp = Messagebox.show(
|
||||||
Labels.getLabel("editarPuntoVentaController.MSG.borrarEmpresaBloqueadaPergunta"),
|
Labels.getLabel("editarPuntoVentaController.MSG.borrarEmpresaBloqueadaPergunta"),
|
||||||
|
@ -676,21 +729,21 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
|
|
||||||
if (resp == Messagebox.YES) {
|
if (resp == Messagebox.YES) {
|
||||||
|
|
||||||
PtovtaEmpresaBloqueada e = (PtovtaEmpresaBloqueada)ptovtaEmpresasBloqueadasList.getSelected();
|
PtovtaEmpresaBloqueada e = (PtovtaEmpresaBloqueada) ptovtaEmpresasBloqueadasList.getSelected();
|
||||||
|
|
||||||
ptovtaEmpresaBloqueadaService.borrar(e);
|
ptovtaEmpresaBloqueadaService.borrar(e);
|
||||||
|
|
||||||
puntoVenta.removeEmpresaBloqueada(e);
|
puntoVenta.removeEmpresaBloqueada(e);
|
||||||
ptovtaEmpresasBloqueadasList.setData(puntoVenta.getPtovtaEmpresaBloqueadaList());
|
ptovtaEmpresasBloqueadasList.setData(puntoVenta.getPtovtaEmpresaBloqueadaList());
|
||||||
}
|
}
|
||||||
} catch (Exception ex){
|
} catch (Exception ex) {
|
||||||
log.error(ex.toString());
|
log.error(ex.toString());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void onClick$btnAdicionarPtoVtaCheckin(Event ev){
|
public void onClick$btnAdicionarPtoVtaCheckin(Event ev) {
|
||||||
|
|
||||||
if(cmbPtoVtaCheckinParada.getSelectedItem() != null){
|
if (cmbPtoVtaCheckinParada.getSelectedItem() != null) {
|
||||||
|
|
||||||
Parada parada = (Parada) cmbPtoVtaCheckinParada.getSelectedItem().getValue();
|
Parada parada = (Parada) cmbPtoVtaCheckinParada.getSelectedItem().getValue();
|
||||||
|
|
||||||
|
@ -705,9 +758,9 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void onClick$btnApagarPtoVtaCheckin(Event ev){
|
public void onClick$btnApagarPtoVtaCheckin(Event ev) {
|
||||||
try {
|
try {
|
||||||
if(ptovtaPtoVtaCheckinList.getSelected() != null){
|
if (ptovtaPtoVtaCheckinList.getSelected() != null) {
|
||||||
int resp = Messagebox.show(
|
int resp = Messagebox.show(
|
||||||
Labels.getLabel("editarPuntoVentaController.MSG.borrarPtoVtaCheckin"),
|
Labels.getLabel("editarPuntoVentaController.MSG.borrarPtoVtaCheckin"),
|
||||||
Labels.getLabel("editarPuntoVentaController.window.title"),
|
Labels.getLabel("editarPuntoVentaController.window.title"),
|
||||||
|
@ -716,19 +769,19 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
if (resp == Messagebox.YES) {
|
if (resp == Messagebox.YES) {
|
||||||
|
|
||||||
PtoVtaCheckin pto = (PtoVtaCheckin) ptovtaPtoVtaCheckinList.getSelected();
|
PtoVtaCheckin pto = (PtoVtaCheckin) ptovtaPtoVtaCheckinList.getSelected();
|
||||||
if(pto.getPtoVtaCheckinId() != null){
|
if (pto.getPtoVtaCheckinId() != null) {
|
||||||
ptoVtaCheckinService.borrar(pto);
|
ptoVtaCheckinService.borrar(pto);
|
||||||
}
|
}
|
||||||
puntoVenta.removePtovtaCheckin(pto);
|
puntoVenta.removePtovtaCheckin(pto);
|
||||||
ptovtaPtoVtaCheckinList.setData(puntoVenta.getPtovtaCheckinList());
|
ptovtaPtoVtaCheckinList.setData(puntoVenta.getPtovtaCheckinList());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (Exception ex){
|
} catch (Exception ex) {
|
||||||
log.error(ex.toString());
|
log.error(ex.toString());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void onClick$btnAdicionarPtoVtaSeguro(Event ev){
|
public void onClick$btnAdicionarPtoVtaSeguro(Event ev) {
|
||||||
|
|
||||||
if (cmbEmpresaSeguro.getSelectedItem() != null &&
|
if (cmbEmpresaSeguro.getSelectedItem() != null &&
|
||||||
(radIndvendsegopcionalSi.isChecked() || radIndvendsegopcionalNo.isChecked() ||
|
(radIndvendsegopcionalSi.isChecked() || radIndvendsegopcionalNo.isChecked() ||
|
||||||
|
@ -751,9 +804,9 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void onClick$btnApagarPtoVtaSeguro(Event ev){
|
public void onClick$btnApagarPtoVtaSeguro(Event ev) {
|
||||||
try {
|
try {
|
||||||
if(ptovtaPtoVtaSeguroList.getSelected() != null){
|
if (ptovtaPtoVtaSeguroList.getSelected() != null) {
|
||||||
int resp = Messagebox.show(
|
int resp = Messagebox.show(
|
||||||
Labels.getLabel("editarPuntoVentaController.MSG.borrarPtoVtaSeguro"),
|
Labels.getLabel("editarPuntoVentaController.MSG.borrarPtoVtaSeguro"),
|
||||||
Labels.getLabel("editarPuntoVentaController.window.title"),
|
Labels.getLabel("editarPuntoVentaController.window.title"),
|
||||||
|
@ -762,14 +815,50 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
if (resp == Messagebox.YES) {
|
if (resp == Messagebox.YES) {
|
||||||
|
|
||||||
PtoVtaSeguro pto = (PtoVtaSeguro) ptovtaPtoVtaSeguroList.getSelected();
|
PtoVtaSeguro pto = (PtoVtaSeguro) ptovtaPtoVtaSeguroList.getSelected();
|
||||||
if(pto.getPtoVtaSeguroId() != null){
|
if (pto.getPtoVtaSeguroId() != null) {
|
||||||
ptoVtaSeguroService.borrar(pto);
|
ptoVtaSeguroService.borrar(pto);
|
||||||
}
|
}
|
||||||
puntoVenta.removePtovtaSeguro(pto);
|
puntoVenta.removePtovtaSeguro(pto);
|
||||||
ptovtaPtoVtaSeguroList.setData(puntoVenta.getPtovtaSeguroList());
|
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());
|
log.error(ex.toString());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -811,7 +900,7 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
cmbTipoConta.getValue();
|
cmbTipoConta.getValue();
|
||||||
cmbPosicao.getValue();
|
cmbPosicao.getValue();
|
||||||
|
|
||||||
if(puntoVenta.getPuntoVentaPadre() == null && !cmbPuntoVentaPadre.getValue().isEmpty()){
|
if (puntoVenta.getPuntoVentaPadre() == null && !cmbPuntoVentaPadre.getValue().isEmpty()) {
|
||||||
cmbPuntoVentaPadre.getValue(true);
|
cmbPuntoVentaPadre.getValue(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -881,7 +970,7 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
puntoVenta.setColonia((Colonia) cmbColonia.getSelectedItem().getValue());
|
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);
|
puntoVenta.setComissaoId(null);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1025,7 +1114,7 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
|
|
||||||
puntoVentaService.borrar(puntoVenta);
|
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(
|
Messagebox.show(
|
||||||
Labels.getLabel("editarPuntoVentaController.MSG.borrarOK"),
|
Labels.getLabel("editarPuntoVentaController.MSG.borrarOK"),
|
||||||
|
@ -2123,6 +2212,7 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@SuppressWarnings({ "unchecked", "rawtypes" })
|
||||||
public void abrirPtovtaComissao(PtovtaComissao ptovtaComissao) {
|
public void abrirPtovtaComissao(PtovtaComissao ptovtaComissao) {
|
||||||
Map args = new HashMap();
|
Map args = new HashMap();
|
||||||
args.put("ptovtaComissao", ptovtaComissao);
|
args.put("ptovtaComissao", ptovtaComissao);
|
||||||
|
|
|
@ -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);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -122,7 +122,8 @@
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.EstacionSitef</value>
|
<value>com.rjconsultores.ventaboletos.entidad.EstacionSitef</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.Estado</value>
|
<value>com.rjconsultores.ventaboletos.entidad.Estado</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.EsquemaAsiento</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.EsquemaCorrida</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.EsquemaOperacional
|
<value>com.rjconsultores.ventaboletos.entidad.EsquemaOperacional
|
||||||
</value>
|
</value>
|
||||||
|
@ -219,6 +220,7 @@
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.ProductoServicio
|
<value>com.rjconsultores.ventaboletos.entidad.ProductoServicio
|
||||||
</value>
|
</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.PtovtaAgencia</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.PtoVtaCheckin</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.PtoVtaSeguro</value>
|
<value>com.rjconsultores.ventaboletos.entidad.PtoVtaSeguro</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.PtovtaAntecipacomissao
|
<value>com.rjconsultores.ventaboletos.entidad.PtovtaAntecipacomissao
|
||||||
|
@ -228,7 +230,8 @@
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.PtovtaComissao</value>
|
<value>com.rjconsultores.ventaboletos.entidad.PtovtaComissao</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.PtovtaDiversos</value>
|
<value>com.rjconsultores.ventaboletos.entidad.PtovtaDiversos</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.PtovtaEstoque</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.PtovtaHorario</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.PtovtaTitular</value>
|
<value>com.rjconsultores.ventaboletos.entidad.PtovtaTitular</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.PtovtaEmpresa</value>
|
<value>com.rjconsultores.ventaboletos.entidad.PtovtaEmpresa</value>
|
||||||
|
|
|
@ -783,6 +783,7 @@ editarPuntoVentaController.tab.label.estoque = Estoque mínimo
|
||||||
editarPuntoVentaController.tab.label.empresaBloqueada = Empresas Bloqueadas
|
editarPuntoVentaController.tab.label.empresaBloqueada = Empresas Bloqueadas
|
||||||
editarPuntoVentaController.tab.label.localidades = Localidades Permitidas
|
editarPuntoVentaController.tab.label.localidades = Localidades Permitidas
|
||||||
editarPuntoVentaController.tab.label.seguro = Seguro
|
editarPuntoVentaController.tab.label.seguro = Seguro
|
||||||
|
editarPuntoVentaController.tab.label.tipoPassageiroBloqueio = Tipos de Boletos Bloqueados
|
||||||
editarPuntoVentaController.tab.label.usuBancario = Usuarios bancários
|
editarPuntoVentaController.tab.label.usuBancario = Usuarios bancários
|
||||||
editarPuntoVentaController.lbCP.value = Cod. Postal
|
editarPuntoVentaController.lbCP.value = Cod. Postal
|
||||||
editarPuntoVentaController.lblNumPuntoVenda=Número punto de venta
|
editarPuntoVentaController.lblNumPuntoVenda=Número punto de venta
|
||||||
|
@ -791,6 +792,7 @@ editarPuntoVentaController.lbStock.value = Estoque
|
||||||
editarPuntoVentaController.lbCheckStock.value = Validar Estoque
|
editarPuntoVentaController.lbCheckStock.value = Validar Estoque
|
||||||
editarPuntoVentaController.lbVendeSegOpcional.value = Vende Seguro Opcional
|
editarPuntoVentaController.lbVendeSegOpcional.value = Vende Seguro Opcional
|
||||||
editarPuntoVentaController.lbEstanSegOpcional.value = Estan Seguro Opcional
|
editarPuntoVentaController.lbEstanSegOpcional.value = Estan Seguro Opcional
|
||||||
|
editarPuntoVentaController.label.tipoPassagem = Tipo de Boletos
|
||||||
|
|
||||||
# Editar comisión ponto de venta
|
# Editar comisión ponto de venta
|
||||||
editarPuntoVentaComissaoController.window.title = Comisión empresa/Punto de venta
|
editarPuntoVentaComissaoController.window.title = Comisión empresa/Punto de venta
|
||||||
|
|
|
@ -814,6 +814,7 @@ editarPuntoVentaController.tab.label.estoque = Estoque Mínimo
|
||||||
editarPuntoVentaController.tab.label.empresaBloqueada = Empresas Bloqueadas
|
editarPuntoVentaController.tab.label.empresaBloqueada = Empresas Bloqueadas
|
||||||
editarPuntoVentaController.tab.label.localidades = Localidades Permitidas
|
editarPuntoVentaController.tab.label.localidades = Localidades Permitidas
|
||||||
editarPuntoVentaController.tab.label.seguro = Seguro
|
editarPuntoVentaController.tab.label.seguro = Seguro
|
||||||
|
editarPuntoVentaController.tab.label.tipoPassageiroBloqueio = Tipos de Passagens Bloqueadas
|
||||||
editarPuntoVentaController.tab.label.usuBancario = Usuarios bancários
|
editarPuntoVentaController.tab.label.usuBancario = Usuarios bancários
|
||||||
editarPuntoVentaController.lbCP.value = Cod. Postal
|
editarPuntoVentaController.lbCP.value = Cod. Postal
|
||||||
editarPuntoVentaController.lblNumPuntoVenda=Número Agência
|
editarPuntoVentaController.lblNumPuntoVenda=Número Agência
|
||||||
|
@ -822,6 +823,7 @@ editarPuntoVentaController.lbStock.value = Estoque
|
||||||
editarPuntoVentaController.lbCheckStock.value = Validar Estoque
|
editarPuntoVentaController.lbCheckStock.value = Validar Estoque
|
||||||
editarPuntoVentaController.lbVendeSegOpcional.value = Vende Seguro Opcional
|
editarPuntoVentaController.lbVendeSegOpcional.value = Vende Seguro Opcional
|
||||||
editarPuntoVentaController.lbEstanSegOpcional.value = Estan Seguro Opcional
|
editarPuntoVentaController.lbEstanSegOpcional.value = Estan Seguro Opcional
|
||||||
|
editarPuntoVentaController.label.tipoPassagem = Tipo de Passagens
|
||||||
|
|
||||||
# Editar comissão ponto de venda
|
# Editar comissão ponto de venda
|
||||||
editarPuntoVentaComissaoController.window.title = Comissão Empresa/Ponto de Venda
|
editarPuntoVentaComissaoController.window.title = Comissão Empresa/Ponto de Venda
|
||||||
|
|
|
@ -60,6 +60,8 @@
|
||||||
label="${c:l('editarPuntoVentaController.tab.label.localidades')}" />
|
label="${c:l('editarPuntoVentaController.tab.label.localidades')}" />
|
||||||
<tab
|
<tab
|
||||||
label="${c:l('editarPuntoVentaController.tab.label.seguro')}" />
|
label="${c:l('editarPuntoVentaController.tab.label.seguro')}" />
|
||||||
|
<tab visible="@{winEditarPuntoVenta$composer.validaFuncionTipoBoletoBloqueado}"
|
||||||
|
label="${c:l('editarPuntoVentaController.tab.label.tipoPassageiroBloqueio')}" />
|
||||||
</tabs>
|
</tabs>
|
||||||
|
|
||||||
<tabpanels>
|
<tabpanels>
|
||||||
|
@ -263,8 +265,8 @@
|
||||||
<!-- razonsocial -->
|
<!-- razonsocial -->
|
||||||
<label
|
<label
|
||||||
value="${c:l('editarPuntoVentaController.lbdscRazonSocial.value')}" />
|
value="${c:l('editarPuntoVentaController.lbdscRazonSocial.value')}" />
|
||||||
<textbox id="txtRazonSocial"
|
<textbox id="txtRazonSocial" width="70%"
|
||||||
width="70%" maxlength="40"
|
maxlength="40"
|
||||||
value="@{winEditarPuntoVenta$composer.puntoVenta.razonSocial}"
|
value="@{winEditarPuntoVenta$composer.puntoVenta.razonSocial}"
|
||||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
|
||||||
</row>
|
</row>
|
||||||
|
@ -373,8 +375,7 @@
|
||||||
|
|
||||||
<button
|
<button
|
||||||
id="btnAdicionarEmpresaComissao" height="20"
|
id="btnAdicionarEmpresaComissao" height="20"
|
||||||
image="/gui/img/add.png" width="35px"
|
image="/gui/img/add.png" width="35px" disabled="true"
|
||||||
disabled="true"
|
|
||||||
tooltiptext="${c:l('editarConfiguracionReservacionController.btnAddClase.tooltiptext')}" />
|
tooltiptext="${c:l('editarConfiguracionReservacionController.btnAddClase.tooltiptext')}" />
|
||||||
|
|
||||||
</hbox>
|
</hbox>
|
||||||
|
@ -1035,11 +1036,11 @@
|
||||||
<toolbar>
|
<toolbar>
|
||||||
<hbox spacing="5px" style="padding:1px"
|
<hbox spacing="5px" style="padding:1px"
|
||||||
align="right">
|
align="right">
|
||||||
<button id="btnApagarEmpresaBloqueada" height="20"
|
<button id="btnApagarEmpresaBloqueada"
|
||||||
image="/gui/img/remove.png" width="35px"
|
height="20" image="/gui/img/remove.png" width="35px"
|
||||||
tooltiptext="${c:l('editarEmpresaController.btnApagar.tooltiptext')}" />
|
tooltiptext="${c:l('editarEmpresaController.btnApagar.tooltiptext')}" />
|
||||||
<button id="btnAdicionarEmpresaBloqueada" height="20"
|
<button id="btnAdicionarEmpresaBloqueada"
|
||||||
image="/gui/img/add.png" width="35px"
|
height="20" image="/gui/img/add.png" width="35px"
|
||||||
tooltiptext="${c:l('busquedaEmpresaController.btnNovo.tooltiptext')}" />
|
tooltiptext="${c:l('busquedaEmpresaController.btnNovo.tooltiptext')}" />
|
||||||
</hbox>
|
</hbox>
|
||||||
</toolbar>
|
</toolbar>
|
||||||
|
@ -1066,18 +1067,19 @@
|
||||||
value="${c:l('editarPuntoVentaController.lbparada.value')}" />
|
value="${c:l('editarPuntoVentaController.lbparada.value')}" />
|
||||||
<combobox id="cmbPtoVtaCheckinParada"
|
<combobox id="cmbPtoVtaCheckinParada"
|
||||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada"
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada"
|
||||||
mold="rounded" buttonVisible="true" width="70%" sinTodos="true"/>
|
mold="rounded" buttonVisible="true" width="70%"
|
||||||
|
sinTodos="true" />
|
||||||
</row>
|
</row>
|
||||||
</rows>
|
</rows>
|
||||||
</grid>
|
</grid>
|
||||||
<toolbar>
|
<toolbar>
|
||||||
<hbox spacing="5px" style="padding:1px"
|
<hbox spacing="5px" style="padding:1px"
|
||||||
align="right">
|
align="right">
|
||||||
<button id="btnApagarPtoVtaCheckin" height="20"
|
<button id="btnApagarPtoVtaCheckin"
|
||||||
image="/gui/img/remove.png" width="35px"
|
height="20" image="/gui/img/remove.png" width="35px"
|
||||||
tooltiptext="${c:l('editarEmpresaController.btnApagar.tooltiptext')}" />
|
tooltiptext="${c:l('editarEmpresaController.btnApagar.tooltiptext')}" />
|
||||||
<button id="btnAdicionarPtoVtaCheckin" height="20"
|
<button id="btnAdicionarPtoVtaCheckin"
|
||||||
image="/gui/img/add.png" width="35px"
|
height="20" image="/gui/img/add.png" width="35px"
|
||||||
tooltiptext="${c:l('busquedaEmpresaController.btnNovo.tooltiptext')}" />
|
tooltiptext="${c:l('busquedaEmpresaController.btnNovo.tooltiptext')}" />
|
||||||
</hbox>
|
</hbox>
|
||||||
</toolbar>
|
</toolbar>
|
||||||
|
@ -1112,8 +1114,7 @@
|
||||||
value="${c:l('editarPuntoVentaController.lbVendeSegOpcional.value')}" />
|
value="${c:l('editarPuntoVentaController.lbVendeSegOpcional.value')}" />
|
||||||
<radiogroup Id="indvendsegopcional">
|
<radiogroup Id="indvendsegopcional">
|
||||||
<radio id="radIndvendsegopcionalSi"
|
<radio id="radIndvendsegopcionalSi"
|
||||||
label="${c:l('MSG.SI')}"
|
label="${c:l('MSG.SI')}" checked="true" />
|
||||||
checked="true" />
|
|
||||||
<radio id="radIndvendsegopcionalNo"
|
<radio id="radIndvendsegopcionalNo"
|
||||||
label="${c:l('MSG.NO')}" />
|
label="${c:l('MSG.NO')}" />
|
||||||
</radiogroup>
|
</radiogroup>
|
||||||
|
@ -1123,8 +1124,7 @@
|
||||||
value="${c:l('editarPuntoVentaController.lbEstanSegOpcional.value')}" />
|
value="${c:l('editarPuntoVentaController.lbEstanSegOpcional.value')}" />
|
||||||
<radiogroup Id="indestansegopcional">
|
<radiogroup Id="indestansegopcional">
|
||||||
<radio id="radIndestansegopcionalSi"
|
<radio id="radIndestansegopcionalSi"
|
||||||
label="${c:l('MSG.SI')}"
|
label="${c:l('MSG.SI')}" checked="true" />
|
||||||
checked="true" />
|
|
||||||
<radio id="radIndestansegopcionalNo"
|
<radio id="radIndestansegopcionalNo"
|
||||||
label="${c:l('MSG.NO')}" />
|
label="${c:l('MSG.NO')}" />
|
||||||
</radiogroup>
|
</radiogroup>
|
||||||
|
@ -1134,11 +1134,11 @@
|
||||||
<toolbar>
|
<toolbar>
|
||||||
<hbox spacing="5px" style="padding:1px"
|
<hbox spacing="5px" style="padding:1px"
|
||||||
align="right">
|
align="right">
|
||||||
<button id="btnApagarPtoVtaSeguro" height="20"
|
<button id="btnApagarPtoVtaSeguro"
|
||||||
image="/gui/img/remove.png" width="35px"
|
height="20" image="/gui/img/remove.png" width="35px"
|
||||||
tooltiptext="${c:l('editarEmpresaController.btnApagar.tooltiptext')}" />
|
tooltiptext="${c:l('editarEmpresaController.btnApagar.tooltiptext')}" />
|
||||||
<button id="btnAdicionarPtoVtaSeguro" height="20"
|
<button id="btnAdicionarPtoVtaSeguro"
|
||||||
image="/gui/img/add.png" width="35px"
|
height="20" image="/gui/img/add.png" width="35px"
|
||||||
tooltiptext="${c:l('busquedaEmpresaController.btnNovo.tooltiptext')}" />
|
tooltiptext="${c:l('busquedaEmpresaController.btnNovo.tooltiptext')}" />
|
||||||
</hbox>
|
</hbox>
|
||||||
</toolbar>
|
</toolbar>
|
||||||
|
@ -1158,6 +1158,49 @@
|
||||||
</listhead>
|
</listhead>
|
||||||
</listbox>
|
</listbox>
|
||||||
</tabpanel>
|
</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>
|
</tabpanels>
|
||||||
</tabbox>
|
</tabbox>
|
||||||
</window>
|
</window>
|
||||||
|
|
Loading…
Reference in New Issue