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;
|
||||||
|
@ -275,7 +298,8 @@ 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,12 +310,13 @@ 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());
|
||||||
|
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.setItemRenderer(new RenderPtovtaComissao());
|
||||||
ptovtaComissaoList.addEventListener("onDoubleClick", new EventListener() {
|
ptovtaComissaoList.addEventListener("onDoubleClick", new EventListener() {
|
||||||
@Override
|
@Override
|
||||||
|
@ -314,10 +339,11 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
|
|
||||||
btnAdicionarEmpresaComissao.setDisabled(false);
|
btnAdicionarEmpresaComissao.setDisabled(false);
|
||||||
ptovtaComissaoList.setData(lsPtovtaComissao);
|
ptovtaComissaoList.setData(lsPtovtaComissao);
|
||||||
|
|
||||||
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());
|
||||||
|
@ -348,11 +374,11 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
}
|
}
|
||||||
if (puntoVenta.getNumDoCPuntoVenta() != null) {
|
if (puntoVenta.getNumDoCPuntoVenta() != null) {
|
||||||
txtNumDoCPuntoVenta.setValue(puntoVenta.getNumDoCPuntoVenta());
|
txtNumDoCPuntoVenta.setValue(puntoVenta.getNumDoCPuntoVenta());
|
||||||
}
|
}
|
||||||
if (puntoVenta.getRazonSocial() != null) {
|
if (puntoVenta.getRazonSocial() != null) {
|
||||||
txtRazonSocial.setValue(puntoVenta.getRazonSocial());
|
txtRazonSocial.setValue(puntoVenta.getRazonSocial());
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
puntoVentaList = (MyListbox) Executions.getCurrent().getArg().get("puntoVentaList");
|
puntoVentaList = (MyListbox) Executions.getCurrent().getArg().get("puntoVentaList");
|
||||||
|
@ -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,13 +622,14 @@ 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());
|
||||||
comboItem.setValue(e);
|
comboItem.setValue(e);
|
||||||
comboItem.setParent(cmbEmpresas);
|
comboItem.setParent(cmbEmpresas);
|
||||||
}
|
}
|
||||||
|
|
||||||
for (PtovtaAgencia.enumTipoConta p : PtovtaAgencia.enumTipoConta.values()) {
|
for (PtovtaAgencia.enumTipoConta p : PtovtaAgencia.enumTipoConta.values()) {
|
||||||
Comboitem comboItem = new Comboitem(p.descricao());
|
Comboitem comboItem = new Comboitem(p.descricao());
|
||||||
comboItem.setValue(p.valor());
|
comboItem.setValue(p.valor());
|
||||||
|
@ -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,16 +711,16 @@ 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);
|
||||||
|
|
||||||
ptovtaEmpresasBloqueadasList.setData(puntoVenta.getPtovtaEmpresaBloqueadaList());
|
ptovtaEmpresasBloqueadasList.setData(puntoVenta.getPtovtaEmpresaBloqueadaList());
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
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"),
|
||||||
|
@ -675,23 +728,23 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
Messagebox.YES | Messagebox.NO, Messagebox.QUESTION);
|
Messagebox.YES | Messagebox.NO, Messagebox.QUESTION);
|
||||||
|
|
||||||
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();
|
||||||
|
|
||||||
PtoVtaCheckin pto = new PtoVtaCheckin();
|
PtoVtaCheckin pto = new PtoVtaCheckin();
|
||||||
|
@ -702,12 +755,12 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
|
|
||||||
ptovtaPtoVtaCheckinList.setData(puntoVenta.getPtovtaCheckinList());
|
ptovtaPtoVtaCheckinList.setData(puntoVenta.getPtovtaCheckinList());
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
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,20 +769,20 @@ 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() ||
|
||||||
radIndestansegopcionalSi.isChecked() || radIndestansegopcionalNo.isChecked())) {
|
radIndestansegopcionalSi.isChecked() || radIndestansegopcionalNo.isChecked())) {
|
||||||
|
@ -748,32 +801,68 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
|
|
||||||
ptovtaPtoVtaSeguroList.setData(puntoVenta.getPtovtaSeguroList());
|
ptovtaPtoVtaSeguroList.setData(puntoVenta.getPtovtaSeguroList());
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
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"),
|
||||||
Messagebox.YES | Messagebox.NO, Messagebox.QUESTION);
|
Messagebox.YES | Messagebox.NO, Messagebox.QUESTION);
|
||||||
|
|
||||||
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());
|
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 {
|
public void onClick$btnSalvar(Event ev) throws InterruptedException {
|
||||||
|
|
||||||
txtMaxCancelacion.getValue();
|
txtMaxCancelacion.getValue();
|
||||||
|
@ -807,14 +896,14 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
cmbColonia.getValue();
|
cmbColonia.getValue();
|
||||||
cmbCiudad.getValue();
|
cmbCiudad.getValue();
|
||||||
cmbBanco.getValue();
|
cmbBanco.getValue();
|
||||||
cmbPessoa.getValue();
|
cmbPessoa.getValue();
|
||||||
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);
|
||||||
}
|
}
|
||||||
|
|
||||||
// checar uma forma onde o proprio componente coloque como null o atributo
|
// checar uma forma onde o proprio componente coloque como null o atributo
|
||||||
if (cmbPuntoVentaPadre.getValue().isEmpty()) {
|
if (cmbPuntoVentaPadre.getValue().isEmpty()) {
|
||||||
puntoVenta.setPuntoVentaPadre(null);
|
puntoVenta.setPuntoVentaPadre(null);
|
||||||
|
@ -880,8 +969,8 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
if (cmbColonia.getSelectedItem() != null) {
|
if (cmbColonia.getSelectedItem() != null) {
|
||||||
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,8 +1114,8 @@ 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"),
|
||||||
Labels.getLabel("editarPuntoVentaController.window.title"),
|
Labels.getLabel("editarPuntoVentaController.window.title"),
|
||||||
|
@ -1067,7 +1156,7 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
dateAntecipData.getValue();
|
dateAntecipData.getValue();
|
||||||
txtAntecipRetem.getValue();
|
txtAntecipRetem.getValue();
|
||||||
txtAntecipPercentual.getValue();
|
txtAntecipPercentual.getValue();
|
||||||
|
|
||||||
try {
|
try {
|
||||||
PtovtaAntecipacomissao antecipa = new PtovtaAntecipacomissao();
|
PtovtaAntecipacomissao antecipa = new PtovtaAntecipacomissao();
|
||||||
|
|
||||||
|
@ -2085,7 +2174,7 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
public void setBtnAdicionarEmpresaComissao(Button btnAdicionarEmpresaComissao) {
|
public void setBtnAdicionarEmpresaComissao(Button btnAdicionarEmpresaComissao) {
|
||||||
this.btnAdicionarEmpresaComissao = btnAdicionarEmpresaComissao;
|
this.btnAdicionarEmpresaComissao = btnAdicionarEmpresaComissao;
|
||||||
}
|
}
|
||||||
|
|
||||||
public MyTextbox getTxtNumDoCPuntoVenta() {
|
public MyTextbox getTxtNumDoCPuntoVenta() {
|
||||||
return txtNumDoCPuntoVenta;
|
return txtNumDoCPuntoVenta;
|
||||||
}
|
}
|
||||||
|
@ -2105,7 +2194,7 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
public void onChange$cmbPuntoVentaPadre(Event ev) throws InterruptedException {
|
public void onChange$cmbPuntoVentaPadre(Event ev) throws InterruptedException {
|
||||||
if (puntoVenta.getPuntoventaId() != null) {
|
if (puntoVenta.getPuntoventaId() != null) {
|
||||||
List<PuntoVenta> lsPuntosSubordinados = puntoVentaService.buscarPuntoVentaSubordinados(puntoVenta);
|
List<PuntoVenta> lsPuntosSubordinados = puntoVentaService.buscarPuntoVentaSubordinados(puntoVenta);
|
||||||
|
|
||||||
if (!lsPuntosSubordinados.isEmpty()) {
|
if (!lsPuntosSubordinados.isEmpty()) {
|
||||||
StringBuilder sbPuntosSubordinados = new StringBuilder("\n");
|
StringBuilder sbPuntosSubordinados = new StringBuilder("\n");
|
||||||
for (PuntoVenta pv : lsPuntosSubordinados) {
|
for (PuntoVenta pv : lsPuntosSubordinados) {
|
||||||
|
@ -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>
|
||||||
|
@ -349,7 +352,7 @@
|
||||||
</value>
|
</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.InscricaoEstadual
|
<value>com.rjconsultores.ventaboletos.entidad.InscricaoEstadual
|
||||||
</value>
|
</value>
|
||||||
|
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.OCD
|
<value>com.rjconsultores.ventaboletos.entidad.OCD
|
||||||
</value>
|
</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.OCDParam
|
<value>com.rjconsultores.ventaboletos.entidad.OCDParam
|
||||||
|
|
|
@ -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>
|
||||||
|
@ -249,7 +251,7 @@
|
||||||
constraint="no empty" width="70%" maxlength="30"
|
constraint="no empty" width="70%" maxlength="30"
|
||||||
value="@{winEditarPuntoVenta$composer.puntoVenta.dscContrasenaInternet}"
|
value="@{winEditarPuntoVenta$composer.puntoVenta.dscContrasenaInternet}"
|
||||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
|
||||||
</row>
|
</row>
|
||||||
<row>
|
<row>
|
||||||
<!-- numdocpuntoventa -->
|
<!-- numdocpuntoventa -->
|
||||||
<label
|
<label
|
||||||
|
@ -258,13 +260,13 @@
|
||||||
width="70%" maxlength="20"
|
width="70%" maxlength="20"
|
||||||
value="@{winEditarPuntoVenta$composer.puntoVenta.numDoCPuntoVenta}"
|
value="@{winEditarPuntoVenta$composer.puntoVenta.numDoCPuntoVenta}"
|
||||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
|
||||||
</row>
|
</row>
|
||||||
<row>
|
<row>
|
||||||
<!-- 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>
|
||||||
|
@ -627,7 +628,7 @@
|
||||||
<checkbox id="checkOfpsTerceiros"
|
<checkbox id="checkOfpsTerceiros"
|
||||||
label="${c:l('editarConfiguracionDiversosController.lbOfpsTerceiros.value')}" />
|
label="${c:l('editarConfiguracionDiversosController.lbOfpsTerceiros.value')}" />
|
||||||
</hbox>
|
</hbox>
|
||||||
</row>
|
</row>
|
||||||
</rows>
|
</rows>
|
||||||
</grid>
|
</grid>
|
||||||
</tabpanel>
|
</tabpanel>
|
||||||
|
@ -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>
|
||||||
|
@ -1049,7 +1050,7 @@
|
||||||
<listhead sizable="true">
|
<listhead sizable="true">
|
||||||
<listheader id="lhEmpresa"
|
<listheader id="lhEmpresa"
|
||||||
image="/gui/img/builder.gif"
|
image="/gui/img/builder.gif"
|
||||||
label="${c:l('editarEmpresaController.window.title')}" />
|
label="${c:l('editarEmpresaController.window.title')}" />
|
||||||
</listhead>
|
</listhead>
|
||||||
</listbox>
|
</listbox>
|
||||||
</tabpanel>
|
</tabpanel>
|
||||||
|
@ -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>
|
||||||
|
@ -1087,7 +1089,7 @@
|
||||||
<listhead sizable="true">
|
<listhead sizable="true">
|
||||||
<listheader id="lhPtoVtaCheckin"
|
<listheader id="lhPtoVtaCheckin"
|
||||||
image="/gui/img/builder.gif"
|
image="/gui/img/builder.gif"
|
||||||
label="${c:l('editarPuntoVentaController.lbparada.value')}" />
|
label="${c:l('editarPuntoVentaController.lbparada.value')}" />
|
||||||
</listhead>
|
</listhead>
|
||||||
</listbox>
|
</listbox>
|
||||||
</tabpanel>
|
</tabpanel>
|
||||||
|
@ -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>
|
||||||
|
@ -1148,16 +1148,59 @@
|
||||||
<listhead sizable="true">
|
<listhead sizable="true">
|
||||||
<listheader id="lhPtoVtaSeguroEmpresa"
|
<listheader id="lhPtoVtaSeguroEmpresa"
|
||||||
image="/gui/img/builder.gif"
|
image="/gui/img/builder.gif"
|
||||||
label="${c:l('editarPuntoVentaController.lbEmpresa.value')}" />
|
label="${c:l('editarPuntoVentaController.lbEmpresa.value')}" />
|
||||||
<listheader id="lhPtoVtaSeguroVende"
|
<listheader id="lhPtoVtaSeguroVende"
|
||||||
image="/gui/img/builder.gif"
|
image="/gui/img/builder.gif"
|
||||||
label="${c:l('editarPuntoVentaController.lbVendeSegOpcional.value')}" />
|
label="${c:l('editarPuntoVentaController.lbVendeSegOpcional.value')}" />
|
||||||
<listheader id="lhPtoVtaSeguroEstan"
|
<listheader id="lhPtoVtaSeguroEstan"
|
||||||
image="/gui/img/builder.gif"
|
image="/gui/img/builder.gif"
|
||||||
label="${c:l('editarPuntoVentaController.lbEstanSegOpcional.value')}" />
|
label="${c:l('editarPuntoVentaController.lbEstanSegOpcional.value')}" />
|
||||||
</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