772 lines
20 KiB
Java
772 lines
20 KiB
Java
/*
|
|
* To change this template, choose Tools | Templates
|
|
* and open the template in the editor.
|
|
*/
|
|
package com.rjconsultores.ventaboletos.entidad;
|
|
|
|
import java.io.Serializable;
|
|
import java.util.ArrayList;
|
|
import java.util.Calendar;
|
|
import java.util.Date;
|
|
import java.util.List;
|
|
|
|
import javax.persistence.Basic;
|
|
import javax.persistence.CascadeType;
|
|
import javax.persistence.Column;
|
|
import javax.persistence.Entity;
|
|
import javax.persistence.FetchType;
|
|
import javax.persistence.GeneratedValue;
|
|
import javax.persistence.GenerationType;
|
|
import javax.persistence.Id;
|
|
import javax.persistence.JoinColumn;
|
|
import javax.persistence.ManyToOne;
|
|
import javax.persistence.OneToMany;
|
|
import javax.persistence.OneToOne;
|
|
import javax.persistence.SequenceGenerator;
|
|
import javax.persistence.Table;
|
|
import javax.persistence.Temporal;
|
|
import javax.persistence.TemporalType;
|
|
|
|
import org.hibernate.annotations.LazyCollection;
|
|
import org.hibernate.annotations.LazyCollectionOption;
|
|
|
|
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
|
|
|
/**
|
|
*
|
|
* @author Rafius
|
|
*/
|
|
@Entity
|
|
@SequenceGenerator(name = "PUNTO_VENTA_SEQ", sequenceName = "PUNTO_VENTA_SEQ", allocationSize = 1)
|
|
@Table(name = "PUNTO_VENTA")
|
|
public class PuntoVenta implements Serializable {
|
|
|
|
private static final long serialVersionUID = 1L;
|
|
@Id
|
|
@Basic(optional = false)
|
|
@GeneratedValue(strategy = GenerationType.AUTO, generator = "PUNTO_VENTA_SEQ")
|
|
@Column(name = "PUNTOVENTA_ID")
|
|
private Integer puntoventaId;
|
|
@Column(name = "NOMBPUNTOVENTA")
|
|
private String nombpuntoventa;
|
|
@Column(name = "DIRECCIONCALLE")
|
|
private String direccioncalle;
|
|
@Column(name = "DIRECCIONNUMERO")
|
|
private String direccionnumero;
|
|
@Column(name = "STATUSAPROBACION")
|
|
private String statusaprobacion;
|
|
@Column(name = "COMENTARIOS")
|
|
private String comentarios;
|
|
@Column(name = "NUMTELEFONOUNO")
|
|
private String numtelefonouno;
|
|
@Column(name = "NUMTELEFONODOS")
|
|
private String numtelefonodos;
|
|
@Column(name = "FECMODIF")
|
|
@Temporal(TemporalType.TIMESTAMP)
|
|
private Date fecmodif;
|
|
@Column(name = "USUARIO_ID")
|
|
private Integer usuarioId;
|
|
@Column(name = "ACTIVO")
|
|
private Boolean activo;
|
|
@Column(name = "DESCCORREO")
|
|
private String descCorreo;
|
|
@OneToOne
|
|
@JoinColumn(name = "EMPRESA_ID")
|
|
private Empresa empresa;
|
|
@OneToOne
|
|
@JoinColumn(name = "COLONIA_ID")
|
|
private Colonia colonia;
|
|
@OneToOne
|
|
@JoinColumn(name = "MONEDA_ID")
|
|
private Moneda moneda;
|
|
@OneToOne
|
|
@JoinColumn(name = "PARADA_ID")
|
|
private Parada parada;
|
|
@JoinColumn(name = "TIPOPTOVTA_ID", referencedColumnName = "TIPOPTOVTA_ID")
|
|
@ManyToOne
|
|
private TipoPuntoVenta tipoPuntoVenta;
|
|
@OneToMany(mappedBy = "puntoVenta")
|
|
private List<ReservacionPuntoVenta> reservacionPuntoventaList;
|
|
@OneToOne
|
|
@JoinColumn(name = "NODO_ID")
|
|
private Nodo nodo;
|
|
@Column(name = "INDCONEXIONBANCARIA")
|
|
private String conexionBancaria;
|
|
@Column(name = "DSCUSUARIOINTERNET")
|
|
private String dscUsuarioInternet;
|
|
@Column(name = "DSCCONTRASENAINTERNET")
|
|
private String dscContrasenaInternet;
|
|
@OneToOne
|
|
@JoinColumn(name = "USUARIOBANCARIO_ID")
|
|
private UsuarioBancario usuarioBancario;
|
|
@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY)
|
|
@JoinColumn(name = "PUNTOVENTA_ID", referencedColumnName = "PUNTOVENTA_ID")
|
|
private List<FormaPagoDet> lsFormaPagoDet;
|
|
@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY)
|
|
@JoinColumn(name = "PUNTOVENTA_ID", referencedColumnName = "PUNTOVENTA_ID")
|
|
private List<ParamRecoleccion> lsParamRecoleccion;
|
|
@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY)
|
|
@JoinColumn(name = "PUNTOVENTA_ID", referencedColumnName = "PUNTOVENTA_ID")
|
|
private List<PtovtaEmpresa> lsPtovtaEmpresa;
|
|
@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY)
|
|
@JoinColumn(name = "PUNTOVENTA_ID", referencedColumnName = "PUNTOVENTA_ID")
|
|
private List<PtoVtaUsuarioBancario> lsPtovtaUsuarioBancario;
|
|
@Column(name = "NUMFAX")
|
|
private String numfax;
|
|
@Column(name = "COMPLE")
|
|
private String compl;
|
|
@OneToMany(cascade = CascadeType.ALL, mappedBy = "puntoventaId")
|
|
private List<PtovtaEstoque> ptovtaEstoqueList;
|
|
@OneToMany(cascade = CascadeType.ALL, mappedBy = "puntoventaId")
|
|
private List<PtovtaHorario> ptovtaHorarioList;
|
|
@OneToMany(cascade = CascadeType.ALL, mappedBy = "puntoventaId")
|
|
private List<PtovtaAntecipacomissao> ptovtaAntecipacomissaoList;
|
|
@JoinColumn(name = "PTOVTACOMISSAO_ID")
|
|
@OneToOne(cascade = CascadeType.ALL)
|
|
private PtovtaComissao comissaoId;
|
|
@JoinColumn(name = "PTOVTADIVERSOS_ID")
|
|
@OneToOne(cascade = CascadeType.ALL)
|
|
private PtovtaDiversos diversosId;
|
|
@JoinColumn(name = "PTOVTAAGENCIA_ID")
|
|
@OneToOne(cascade = CascadeType.ALL)
|
|
private PtovtaAgencia agenciaId;
|
|
@JoinColumn(name = "PTOVTATITULAR_ID")
|
|
@OneToOne(cascade = CascadeType.ALL)
|
|
private PtovtaTitular titularId;
|
|
@Column(name = "NUMPUNTOVENTA")
|
|
private String numPuntoVenta;
|
|
@Column(name = "INDVALIDASTOCK")
|
|
private Boolean indValidaStock;
|
|
@Column(name = "INDPERMISOTASAEMBARQUE")
|
|
private Boolean indPermisoTasaEmbarque;
|
|
@Column(name = "TIEMPOCANCELACION")
|
|
private Integer tiempoCancelacion;
|
|
@OneToOne(cascade = CascadeType.ALL)
|
|
@JoinColumn(name = "PUNTOVENTAPADRE_ID")
|
|
private PuntoVenta puntoVentaPadre;
|
|
|
|
@JoinColumn(name = "PTOVTATIPOEST_ID")
|
|
@ManyToOne
|
|
private PtovtaTipoEstoque ptovtaTipoEstoque;
|
|
|
|
@Column(name = "INDCTRLESTCENTRAL")
|
|
private Boolean usaCrtlEstCentral;
|
|
|
|
@Column(name = "NUMDOCPUNTOVENTA")
|
|
private String numDoCPuntoVenta;
|
|
|
|
@Column(name = "RAZONSOCIAL")
|
|
private String razonSocial;
|
|
|
|
@OneToMany(cascade = CascadeType.ALL, mappedBy = "puntoventaId")
|
|
@LazyCollection(LazyCollectionOption.FALSE)
|
|
private List<PtovtaEmpresaBloqueada> ptovtaEmpresaBloqueadaList;
|
|
|
|
@OneToMany(cascade = CascadeType.ALL, mappedBy = "puntoventaId")
|
|
@LazyCollection(LazyCollectionOption.FALSE)
|
|
private List<PtoVtaCheckin> ptovtaCheckinList;
|
|
|
|
@OneToMany(cascade = CascadeType.ALL, mappedBy = "puntoventaId")
|
|
@LazyCollection(LazyCollectionOption.FALSE)
|
|
private List<PtoVtaSeguro> ptovtaSeguroList;
|
|
|
|
@OneToMany(cascade = CascadeType.ALL, mappedBy = "puntoVenta")
|
|
@LazyCollection(LazyCollectionOption.FALSE)
|
|
private List<PtovtaCatInd> ptovtaCatIndList;
|
|
|
|
public PtovtaEmpresaBloqueada addEmpresaBloqueada(Empresa e) {
|
|
PtovtaEmpresaBloqueada eb = new PtovtaEmpresaBloqueada();
|
|
eb.setEmpresa(e);
|
|
eb.setPuntoventaId(this);
|
|
eb.setActivo(Boolean.TRUE);
|
|
eb.setFecmodif(Calendar.getInstance().getTime());
|
|
eb.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
|
this.ptovtaEmpresaBloqueadaList.add(eb);
|
|
return eb;
|
|
}
|
|
|
|
public void removeEmpresaBloqueada(PtovtaEmpresaBloqueada e) {
|
|
this.ptovtaEmpresaBloqueadaList.remove(e);
|
|
}
|
|
|
|
public void removeEmpresaBloqueada(Empresa e) {
|
|
for (PtovtaEmpresaBloqueada eb : ptovtaEmpresaBloqueadaList) {
|
|
if (eb.getEmpresa().equals(e)) {
|
|
this.ptovtaEmpresaBloqueadaList.remove(e);
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
|
|
public PtovtaTipoEstoque getPtovtaTipoEstoque() {
|
|
return ptovtaTipoEstoque;
|
|
}
|
|
|
|
public void setPtovtaTipoEstoque(PtovtaTipoEstoque ptovtaTipoEstoque) {
|
|
this.ptovtaTipoEstoque = ptovtaTipoEstoque;
|
|
}
|
|
|
|
public PtovtaComissao getComissaoId() {
|
|
return comissaoId;
|
|
}
|
|
|
|
public void setComissaoId(PtovtaComissao comissaoId) {
|
|
this.comissaoId = comissaoId;
|
|
}
|
|
|
|
public PtovtaDiversos getDiversosId() {
|
|
return diversosId;
|
|
}
|
|
|
|
public void setDiversosId(PtovtaDiversos diversosId) {
|
|
this.diversosId = diversosId;
|
|
}
|
|
|
|
public PtovtaTitular getTitularId() {
|
|
return titularId;
|
|
}
|
|
|
|
public void setTitularId(PtovtaTitular titularId) {
|
|
this.titularId = titularId;
|
|
}
|
|
|
|
public PtovtaAgencia getAgenciaId() {
|
|
return agenciaId;
|
|
}
|
|
|
|
public void setAgenciaId(PtovtaAgencia agenciaId) {
|
|
this.agenciaId = agenciaId;
|
|
}
|
|
|
|
public PuntoVenta() {
|
|
this.colonia = new Colonia();
|
|
this.agenciaId = new PtovtaAgencia();
|
|
this.titularId = new PtovtaTitular();
|
|
this.comissaoId = new PtovtaComissao();
|
|
this.diversosId = new PtovtaDiversos();
|
|
}
|
|
|
|
public PuntoVenta(Integer puntoventaId) {
|
|
this.puntoventaId = puntoventaId;
|
|
}
|
|
|
|
public Integer getPuntoventaId() {
|
|
return puntoventaId;
|
|
}
|
|
|
|
public void setPuntoventaId(Integer puntoventaId) {
|
|
this.puntoventaId = puntoventaId;
|
|
}
|
|
|
|
public Nodo getNodo() {
|
|
return nodo;
|
|
}
|
|
|
|
public void setNodo(Nodo nodo) {
|
|
this.nodo = nodo;
|
|
}
|
|
|
|
public String getNombpuntoventa() {
|
|
return nombpuntoventa;
|
|
}
|
|
|
|
public void setNombpuntoventa(String nombpuntoventa) {
|
|
this.nombpuntoventa = nombpuntoventa;
|
|
}
|
|
|
|
public String getDireccioncalle() {
|
|
return direccioncalle;
|
|
}
|
|
|
|
public void setDireccioncalle(String direccioncalle) {
|
|
this.direccioncalle = direccioncalle;
|
|
}
|
|
|
|
public String getDireccionnumero() {
|
|
return direccionnumero;
|
|
}
|
|
|
|
public void setDireccionnumero(String direccionnumero) {
|
|
this.direccionnumero = direccionnumero;
|
|
}
|
|
|
|
public String getStatusaprobacion() {
|
|
return statusaprobacion;
|
|
}
|
|
|
|
public void setStatusaprobacion(String statusaprobacion) {
|
|
this.statusaprobacion = statusaprobacion;
|
|
}
|
|
|
|
public String getComentarios() {
|
|
return comentarios;
|
|
}
|
|
|
|
public void setComentarios(String comentarios) {
|
|
this.comentarios = comentarios;
|
|
}
|
|
|
|
public String getNumtelefonouno() {
|
|
return numtelefonouno;
|
|
}
|
|
|
|
public void setNumtelefonouno(String numtelefonouno) {
|
|
this.numtelefonouno = numtelefonouno;
|
|
}
|
|
|
|
public String getNumtelefonodos() {
|
|
return numtelefonodos;
|
|
}
|
|
|
|
public void setNumtelefonodos(String numtelefonodos) {
|
|
this.numtelefonodos = numtelefonodos;
|
|
}
|
|
|
|
public Date getFecmodif() {
|
|
return fecmodif;
|
|
}
|
|
|
|
public void setFecmodif(Date fecmodif) {
|
|
this.fecmodif = fecmodif;
|
|
}
|
|
|
|
public Integer getUsuarioId() {
|
|
return usuarioId;
|
|
}
|
|
|
|
public void setUsuarioId(Integer usuarioId) {
|
|
this.usuarioId = usuarioId;
|
|
}
|
|
|
|
public Boolean getActivo() {
|
|
return activo;
|
|
}
|
|
|
|
public void setActivo(Boolean activo) {
|
|
this.activo = activo;
|
|
}
|
|
|
|
public TipoPuntoVenta getTipoPuntoVenta() {
|
|
return tipoPuntoVenta;
|
|
}
|
|
|
|
public void setTipoPuntoVenta(TipoPuntoVenta tipoPuntoVenta) {
|
|
this.tipoPuntoVenta = tipoPuntoVenta;
|
|
}
|
|
|
|
public Empresa getEmpresa() {
|
|
return empresa;
|
|
}
|
|
|
|
public void setEmpresa(Empresa empresa) {
|
|
this.empresa = empresa;
|
|
}
|
|
|
|
public List<ReservacionPuntoVenta> getReservacionPuntoventaList() {
|
|
return reservacionPuntoventaList;
|
|
}
|
|
|
|
public void setReservacionPuntoventaList(List<ReservacionPuntoVenta> reservacionPuntoventaList) {
|
|
this.reservacionPuntoventaList = reservacionPuntoventaList;
|
|
}
|
|
|
|
public Moneda getMoneda() {
|
|
return moneda;
|
|
}
|
|
|
|
public void setMoneda(Moneda moneda) {
|
|
this.moneda = moneda;
|
|
}
|
|
|
|
public List<FormaPagoDet> getLsFormaPagoDet() {
|
|
List<FormaPagoDet> tmp = new ArrayList<FormaPagoDet>();
|
|
if (lsFormaPagoDet != null) {
|
|
for (FormaPagoDet ddab : this.lsFormaPagoDet) {
|
|
if (ddab.getActivo()) {
|
|
tmp.add(ddab);
|
|
}
|
|
}
|
|
}
|
|
this.lsFormaPagoDet = tmp;
|
|
return tmp;
|
|
}
|
|
|
|
public List<ParamRecoleccion> getLsParamRecoleccion() {
|
|
List<ParamRecoleccion> tmp = new ArrayList<ParamRecoleccion>();
|
|
if (this.lsParamRecoleccion != null) {
|
|
for (ParamRecoleccion ddab : this.lsParamRecoleccion) {
|
|
if (ddab.getActivo()) {
|
|
tmp.add(ddab);
|
|
}
|
|
}
|
|
}
|
|
this.lsParamRecoleccion = tmp;
|
|
return tmp;
|
|
}
|
|
|
|
public List<PtovtaEmpresa> getLsPtovtaEmpresa() {
|
|
List<PtovtaEmpresa> tmp = new ArrayList<PtovtaEmpresa>();
|
|
if (this.lsPtovtaEmpresa != null) {
|
|
for (PtovtaEmpresa ddab : this.lsPtovtaEmpresa) {
|
|
if (ddab.getActivo()) {
|
|
tmp.add(ddab);
|
|
}
|
|
}
|
|
}
|
|
this.lsPtovtaEmpresa = tmp;
|
|
return tmp;
|
|
}
|
|
|
|
public void setLsPtovtaEmpresa(List<PtovtaEmpresa> lsPtovtaEmpresa) {
|
|
this.lsPtovtaEmpresa = lsPtovtaEmpresa;
|
|
}
|
|
|
|
public List<PtoVtaUsuarioBancario> getLsPtovtaUsuarioBancario() {
|
|
List<PtoVtaUsuarioBancario> tmp = new ArrayList<PtoVtaUsuarioBancario>();
|
|
if (this.lsPtovtaUsuarioBancario != null) {
|
|
for (PtoVtaUsuarioBancario ddab : this.lsPtovtaUsuarioBancario) {
|
|
if (ddab.getActivo()) {
|
|
tmp.add(ddab);
|
|
}
|
|
}
|
|
}
|
|
this.lsPtovtaUsuarioBancario = tmp;
|
|
return tmp;
|
|
}
|
|
|
|
public String getNumfax() {
|
|
return numfax;
|
|
}
|
|
|
|
public void setNumfax(String numfax) {
|
|
this.numfax = numfax;
|
|
}
|
|
|
|
public String getCompl() {
|
|
return compl;
|
|
}
|
|
|
|
public void setCompl(String compl) {
|
|
this.compl = compl;
|
|
}
|
|
|
|
public List<PtovtaEstoque> getPtovtaEstoqueList() {
|
|
return ptovtaEstoqueList;
|
|
}
|
|
|
|
public void setPtovtaEstoqueList(List<PtovtaEstoque> ptovtaEstoqueList) {
|
|
this.ptovtaEstoqueList = ptovtaEstoqueList;
|
|
}
|
|
|
|
public List<PtovtaHorario> getPtovtaHorarioList() {
|
|
|
|
List<PtovtaHorario> tmp = new ArrayList<PtovtaHorario>();
|
|
if (this.ptovtaHorarioList != null) {
|
|
for (PtovtaHorario ddab : this.ptovtaHorarioList) {
|
|
if (ddab.getActivo()) {
|
|
tmp.add(ddab);
|
|
}
|
|
}
|
|
}
|
|
|
|
this.ptovtaHorarioList = tmp;
|
|
return tmp;
|
|
}
|
|
|
|
public void setPtovtaHorarioList(List<PtovtaHorario> ptovtaHorarioList) {
|
|
this.ptovtaHorarioList = ptovtaHorarioList;
|
|
}
|
|
|
|
public List<PtovtaAntecipacomissao> getPtovtaAntecipacomissaoList() {
|
|
|
|
List<PtovtaAntecipacomissao> tmp = new ArrayList<PtovtaAntecipacomissao>();
|
|
if (this.ptovtaAntecipacomissaoList != null) {
|
|
for (PtovtaAntecipacomissao ddab : this.ptovtaAntecipacomissaoList) {
|
|
if (ddab.getActivo()) {
|
|
tmp.add(ddab);
|
|
}
|
|
}
|
|
}
|
|
this.ptovtaAntecipacomissaoList = tmp;
|
|
return tmp;
|
|
|
|
}
|
|
|
|
public void setPtovtaAntecipacomissaoList(List<PtovtaAntecipacomissao> ptovtaAntecipacomissaoList) {
|
|
this.ptovtaAntecipacomissaoList = ptovtaAntecipacomissaoList;
|
|
}
|
|
|
|
public void setLsPtovtaUsuarioBancario(List<PtoVtaUsuarioBancario> lsPtovtaUsuarioBancario) {
|
|
this.lsPtovtaUsuarioBancario = lsPtovtaUsuarioBancario;
|
|
}
|
|
|
|
public void setLsParamRecoleccion(List<ParamRecoleccion> lsParamRecoleccion) {
|
|
this.lsParamRecoleccion = lsParamRecoleccion;
|
|
}
|
|
|
|
public String getConexionBancaria() {
|
|
return conexionBancaria;
|
|
}
|
|
|
|
public void setConexionBancaria(String conexionBancaria) {
|
|
this.conexionBancaria = conexionBancaria;
|
|
}
|
|
|
|
public UsuarioBancario getUsuarioBancario() {
|
|
return usuarioBancario;
|
|
}
|
|
|
|
public void setUsuarioBancario(UsuarioBancario usuarioBancario) {
|
|
this.usuarioBancario = usuarioBancario;
|
|
}
|
|
|
|
public void setLsFormaPagoDet(List<FormaPagoDet> lsFormaPagoDet) {
|
|
this.lsFormaPagoDet = lsFormaPagoDet;
|
|
}
|
|
|
|
// public List<RequisicionBoleto> getRequisicionBoletoList() {
|
|
// return requisicionBoletoList;
|
|
// }
|
|
//
|
|
// public void setRequisicionBoletoList(List<RequisicionBoleto> requisicionBoletoList) {
|
|
// this.requisicionBoletoList = requisicionBoletoList;
|
|
// }
|
|
|
|
@Override
|
|
public int hashCode() {
|
|
int hash = 0;
|
|
hash += (puntoventaId != null ? puntoventaId.hashCode() : 0);
|
|
return hash;
|
|
}
|
|
|
|
@Override
|
|
public boolean equals(Object object) {
|
|
if (!(object instanceof PuntoVenta)) {
|
|
return false;
|
|
}
|
|
PuntoVenta other = (PuntoVenta) object;
|
|
if ((this.puntoventaId == null && other.puntoventaId != null) || (this.puntoventaId != null && !this.puntoventaId.equals(other.puntoventaId))) {
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
|
|
@Override
|
|
public String toString() {
|
|
return this.getNombpuntoventa();
|
|
}
|
|
|
|
/**
|
|
* @return the colonia
|
|
*/
|
|
public Colonia getColonia() {
|
|
return colonia;
|
|
}
|
|
|
|
/**
|
|
* @param colonia
|
|
* the colonia to set
|
|
*/
|
|
public void setColonia(Colonia colonia) {
|
|
this.colonia = colonia;
|
|
}
|
|
|
|
public Parada getParada() {
|
|
return parada;
|
|
}
|
|
|
|
public void setParada(Parada parada) {
|
|
this.parada = parada;
|
|
}
|
|
|
|
public String getDescCorreo() {
|
|
return descCorreo;
|
|
}
|
|
|
|
public void setDescCorreo(String descCorreo) {
|
|
this.descCorreo = descCorreo;
|
|
}
|
|
|
|
public String getDscContrasenaInternet() {
|
|
return dscContrasenaInternet;
|
|
}
|
|
|
|
public void setDscContrasenaInternet(String dscContrasenaInternet) {
|
|
this.dscContrasenaInternet = dscContrasenaInternet;
|
|
}
|
|
|
|
public String getDscUsuarioInternet() {
|
|
return dscUsuarioInternet;
|
|
}
|
|
|
|
public void setDscUsuarioInternet(String dscUsuarioInternet) {
|
|
this.dscUsuarioInternet = dscUsuarioInternet;
|
|
}
|
|
|
|
public String getNumPuntoVenta() {
|
|
return numPuntoVenta;
|
|
}
|
|
|
|
public void setNumPuntoVenta(String numPuntoVenta) {
|
|
this.numPuntoVenta = numPuntoVenta;
|
|
}
|
|
|
|
public Boolean getIndValidaStock() {
|
|
return indValidaStock;
|
|
}
|
|
|
|
public void setIndValidaStock(Boolean indValidaStock) {
|
|
this.indValidaStock = indValidaStock;
|
|
}
|
|
|
|
public Boolean getIndPermisoTasaEmbarque() {
|
|
return indPermisoTasaEmbarque;
|
|
}
|
|
|
|
public void setIndPermisoTasaEmbarque(Boolean indPermisoTasaEmbarque) {
|
|
this.indPermisoTasaEmbarque = indPermisoTasaEmbarque;
|
|
}
|
|
|
|
public Integer getTiempoCancelacion() {
|
|
return tiempoCancelacion;
|
|
}
|
|
|
|
public void setTiempoCancelacion(Integer tiempoCancelacion) {
|
|
this.tiempoCancelacion = tiempoCancelacion;
|
|
}
|
|
|
|
public PuntoVenta getPuntoVentaPadre() {
|
|
return puntoVentaPadre;
|
|
}
|
|
|
|
public void setPuntoVentaPadre(PuntoVenta puntoVentaPadre) {
|
|
this.puntoVentaPadre = puntoVentaPadre;
|
|
}
|
|
|
|
public Boolean isUsaCrtlEstCentral() {
|
|
return usaCrtlEstCentral;
|
|
}
|
|
|
|
public void setUsaCrtlEstCentral(Boolean usaCrtlEstCentral) {
|
|
this.usaCrtlEstCentral = usaCrtlEstCentral;
|
|
}
|
|
|
|
public String getNumDoCPuntoVenta() {
|
|
return numDoCPuntoVenta;
|
|
}
|
|
|
|
public void setNumDoCPuntoVenta(String numDoCPuntoVenta) {
|
|
this.numDoCPuntoVenta = numDoCPuntoVenta;
|
|
}
|
|
|
|
public String getRazonSocial() {
|
|
return razonSocial;
|
|
}
|
|
|
|
public void setRazonSocial(String razonSocial) {
|
|
this.razonSocial = razonSocial;
|
|
}
|
|
|
|
public List<PtovtaEmpresaBloqueada> getPtovtaEmpresaBloqueadaList() {
|
|
List<PtovtaEmpresaBloqueada> lista = new ArrayList<PtovtaEmpresaBloqueada>();
|
|
for (PtovtaEmpresaBloqueada eb : ptovtaEmpresaBloqueadaList) {
|
|
if (eb.getActivo()) {
|
|
lista.add(eb);
|
|
}
|
|
}
|
|
return lista;
|
|
}
|
|
|
|
public void setPtovtaEmpresaBloqueadaList(List<PtovtaEmpresaBloqueada> ptovtaEmpresaBloqueadaList) {
|
|
this.ptovtaEmpresaBloqueadaList = ptovtaEmpresaBloqueadaList;
|
|
}
|
|
|
|
public List<PtoVtaCheckin> getPtovtaCheckinList() {
|
|
List<PtoVtaCheckin> lista = new ArrayList<PtoVtaCheckin>();
|
|
for (PtoVtaCheckin ck : ptovtaCheckinList) {
|
|
if (ck.getActivo()) {
|
|
lista.add(ck);
|
|
}
|
|
}
|
|
return lista;
|
|
}
|
|
|
|
public void setPtovtaCheckinList(List<PtoVtaCheckin> ptovtaCheckinList) {
|
|
this.ptovtaCheckinList = ptovtaCheckinList;
|
|
}
|
|
|
|
public PtoVtaCheckin addPtovtaCheckin(PtoVtaCheckin pto) {
|
|
PtoVtaCheckin pt = new PtoVtaCheckin();
|
|
pt.setPuntoventaId(pto.getPuntoventaId());
|
|
pt.setParadaId(pto.getParadaId());
|
|
pt.setActivo(Boolean.TRUE);
|
|
pt.setFecmodif(Calendar.getInstance().getTime());
|
|
pt.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
|
this.ptovtaCheckinList.add(pt);
|
|
return pt;
|
|
}
|
|
|
|
public void removePtovtaCheckin(PtoVtaCheckin pto) {
|
|
this.ptovtaCheckinList.remove(pto);
|
|
}
|
|
|
|
public List<PtoVtaSeguro> getPtovtaSeguroList() {
|
|
List<PtoVtaSeguro> lista = new ArrayList<PtoVtaSeguro>();
|
|
for (PtoVtaSeguro ck : ptovtaSeguroList) {
|
|
if (ck.getActivo()) {
|
|
lista.add(ck);
|
|
}
|
|
}
|
|
return lista;
|
|
}
|
|
|
|
public void setPtovtaSeguroList(List<PtoVtaSeguro> ptovtaSeguroList) {
|
|
this.ptovtaSeguroList = ptovtaSeguroList;
|
|
}
|
|
|
|
public PtoVtaSeguro addPtovtaSeguro(PtoVtaSeguro pto) {
|
|
PtoVtaSeguro pt = new PtoVtaSeguro();
|
|
pt.setPuntoventaId(pto.getPuntoventaId());
|
|
pt.setEmpresa(pto.getEmpresa());
|
|
pt.setIndVendeSegOpcional(pto.getIndVendeSegOpcional());
|
|
pt.setIndEstanSegOpcional(pto.getIndEstanSegOpcional());
|
|
pt.setActivo(Boolean.TRUE);
|
|
pt.setFecmodif(Calendar.getInstance().getTime());
|
|
pt.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
|
this.ptovtaSeguroList.add(pt);
|
|
return pt;
|
|
}
|
|
|
|
public void removePtovtaSeguro(PtoVtaSeguro pto) {
|
|
this.ptovtaSeguroList.remove(pto);
|
|
}
|
|
|
|
public List<PtovtaCatInd> getPtovtaCatIndList() {
|
|
List<PtovtaCatInd> lista = new ArrayList<PtovtaCatInd>();
|
|
for (PtovtaCatInd ck : ptovtaCatIndList) {
|
|
if (ck.getActivo()) {
|
|
lista.add(ck);
|
|
}
|
|
}
|
|
return lista;
|
|
}
|
|
|
|
public void setPtovtaCatIndList(List<PtovtaCatInd> ptovtaCatIndList) {
|
|
this.ptovtaCatIndList = ptovtaCatIndList;
|
|
}
|
|
|
|
public PtovtaCatInd addPtovtaCatInd(PtovtaCatInd pto) {
|
|
pto.setActivo(Boolean.TRUE);
|
|
pto.setFecmodif(Calendar.getInstance().getTime());
|
|
pto.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
|
|
|
this.ptovtaCatIndList.add(pto);
|
|
return pto;
|
|
}
|
|
|
|
public void removePtovtaCatInd(PtovtaCatInd pto) {
|
|
this.ptovtaCatIndList.remove(pto);
|
|
}
|
|
|
|
}
|