fixes bug#8755
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@67474 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
2322450686
commit
ae5827ca98
|
@ -2,7 +2,9 @@ package com.rjconsultores.ventaboletos.dao;
|
|||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import com.rjconsultores.ventaboletos.entidad.Caja;
|
||||
import com.rjconsultores.ventaboletos.exception.VendaEmbarcadaBoletoException;
|
||||
import com.rjconsultores.ventaboletos.exception.VendaEmbarcadaBoletoFormapagoException;
|
||||
import com.rjconsultores.ventaboletos.exception.VendaEmbarcadaCajaException;
|
||||
|
@ -22,4 +24,7 @@ public interface CajaDAO {
|
|||
public void gerarVendaEmbarcada(VendaEmbarcadaVO vendaEmbarcada) throws VendaEmbarcadaBoletoException, VendaEmbarcadaBoletoFormapagoException, VendaEmbarcadaCajaException, VendaEmbarcadaCajaFormapagoException;
|
||||
|
||||
public List<CajaDetalleVO> buscarDetalleCaja(Date fechaDesde, Date fechaHasta, Boolean sembilhetesPacote);
|
||||
|
||||
Map<String, List<Caja>> buscarCajaYTarjeta(String... numoperacion);
|
||||
|
||||
}
|
||||
|
|
|
@ -0,0 +1,14 @@
|
|||
package com.rjconsultores.ventaboletos.dao;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
import com.rjconsultores.ventaboletos.entidad.NotaCreditoVendaPacote;
|
||||
import com.rjconsultores.ventaboletos.vo.reembolsoocdnotacredito.ReembolsoOcdNotaCreditoVO;
|
||||
|
||||
public interface NotaCreditoVendaPacoteDAO extends GenericDAO<NotaCreditoVendaPacote, Integer> {
|
||||
|
||||
List<ReembolsoOcdNotaCreditoVO> busquedaDatosReembolsoOcdNotaCreditoRS(Date fecInicial, Date fecFinal,
|
||||
Date fecPagamentoInicial, Date fecPagamentoFinal);
|
||||
|
||||
}
|
|
@ -0,0 +1,14 @@
|
|||
package com.rjconsultores.ventaboletos.dao;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
import com.rjconsultores.ventaboletos.entidad.OCD;
|
||||
import com.rjconsultores.ventaboletos.vo.reembolsoocdnotacredito.ReembolsoOcdNotaCreditoVO;
|
||||
|
||||
public interface OCDDAO extends GenericDAO<OCD, Integer> {
|
||||
|
||||
List<ReembolsoOcdNotaCreditoVO> busquedaDatosReembolsoOcdNotaCreditoRS(Date fecInicial, Date fecFinal,
|
||||
Date fecPagamentoInicial, Date fecPagamentoFinal);
|
||||
|
||||
}
|
|
@ -7,6 +7,7 @@ import java.util.List;
|
|||
import org.hibernate.SQLQuery;
|
||||
import org.hibernate.SessionFactory;
|
||||
import org.hibernate.type.BigDecimalType;
|
||||
import org.hibernate.type.BooleanType;
|
||||
import org.hibernate.type.DateType;
|
||||
import org.hibernate.type.IntegerType;
|
||||
import org.hibernate.type.LongType;
|
||||
|
@ -81,6 +82,7 @@ public class BusquedaDatosTicketHibernateDAO extends GenericHibernateDAO<Pacote,
|
|||
.append("SUM(B.IMPORTEPEDAGIO) AS TOTALPEDAGIO, ")
|
||||
.append("SUM(B.IMPORTEOUTROS) AS TOTALOUTROS, ")
|
||||
.append("SUM(B.IMPORTESEGURO) AS TOTALSEGURO, ")
|
||||
.append("VP.INDENCARGOVENTA, ")
|
||||
.append("(SELECT COUNT(DISTINCT PFP.PACOTEFORMAPAGO_ID) FROM PACOTE_FORMAPAGO PFP WHERE PFP.VENDAPACOTE_ID = VP.VENDAPACOTE_ID) AS QTDEPACOTEFORMAPAGO ")
|
||||
.append("FROM VENDA_PACOTE VP ")
|
||||
.append("JOIN PACOTE P ON P.PACOTE_ID = VP.PACOTE_ID ")
|
||||
|
@ -114,7 +116,7 @@ public class BusquedaDatosTicketHibernateDAO extends GenericHibernateDAO<Pacote,
|
|||
|
||||
sQuery.append("GROUP BY VP.VENDAPACOTE_ID, VP.DATAPACOTE, VP.DATAVENDA, VP.SUBTOTAL, VP.TOTAL, ")
|
||||
.append("VP.DESCONTO, VP.NUMOPERACION, P.PACOTE_ID, P.NOMPACOTE, P.DESCPACOTE, E.NOMBEMPRESA, ")
|
||||
.append("VP.SITUACAO, PV.NOMBPUNTOVENTA, VP.USUARIO_ID, VP.FECMODIF, VP.DATACANCELAMENTO, E.EMPRESA_ID ");
|
||||
.append("VP.SITUACAO, PV.NOMBPUNTOVENTA, VP.USUARIO_ID, VP.FECMODIF, VP.DATACANCELAMENTO, E.EMPRESA_ID, VP.INDENCARGOVENTA ");
|
||||
|
||||
SQLQuery query = getSession().createSQLQuery(sQuery.toString())
|
||||
.addScalar("VENDAPACOTE_ID", LongType.INSTANCE)
|
||||
|
@ -140,7 +142,8 @@ public class BusquedaDatosTicketHibernateDAO extends GenericHibernateDAO<Pacote,
|
|||
.addScalar("QTDEPACOTEFORMAPAGO", IntegerType.INSTANCE)
|
||||
.addScalar("FECMODIF", TimestampType.INSTANCE)
|
||||
.addScalar("DATACANCELAMENTO", TimestampType.INSTANCE)
|
||||
.addScalar("EMPRESA_ID", IntegerType.INSTANCE);
|
||||
.addScalar("EMPRESA_ID", IntegerType.INSTANCE)
|
||||
.addScalar("INDENCARGOVENTA", BooleanType.INSTANCE);
|
||||
|
||||
query.setResultTransformer(new DatosTicketResultTransformer());
|
||||
|
||||
|
|
|
@ -2,15 +2,19 @@ package com.rjconsultores.ventaboletos.dao.hibernate;
|
|||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.Date;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
import org.hibernate.Query;
|
||||
import org.hibernate.SQLQuery;
|
||||
import org.hibernate.SessionFactory;
|
||||
import org.hibernate.transform.AliasToBeanResultTransformer;
|
||||
import org.hibernate.type.BigDecimalType;
|
||||
import org.hibernate.type.BooleanType;
|
||||
import org.hibernate.type.DateType;
|
||||
import org.hibernate.type.IntegerType;
|
||||
import org.hibernate.type.LongType;
|
||||
|
@ -24,6 +28,7 @@ import org.springframework.transaction.annotation.Transactional;
|
|||
|
||||
import com.rjconsultores.ventaboletos.dao.CajaDAO;
|
||||
import com.rjconsultores.ventaboletos.dao.sqlbuilder.SQLBuilder;
|
||||
import com.rjconsultores.ventaboletos.entidad.Caja;
|
||||
import com.rjconsultores.ventaboletos.exception.BusinessException;
|
||||
import com.rjconsultores.ventaboletos.exception.VendaEmbarcadaBoletoException;
|
||||
import com.rjconsultores.ventaboletos.exception.VendaEmbarcadaBoletoFormapagoException;
|
||||
|
@ -170,7 +175,8 @@ public class CajaHibernateDAO extends GenericHibernateDAO<Object, Long> implemen
|
|||
.addScalar("numoperacionOcd", StringType.INSTANCE)
|
||||
.addScalar("notacreditovendapacoteId", LongType.INSTANCE)
|
||||
.addScalar("operadoracartao", StringType.INSTANCE)
|
||||
.addScalar("cvesecretaria", StringType.INSTANCE);
|
||||
.addScalar("cvesecretaria", StringType.INSTANCE)
|
||||
.addScalar("indEncargoVenta", BooleanType.INSTANCE);
|
||||
|
||||
sql.setResultTransformer(new AliasToBeanResultTransformer(CajaDetalleVO.class));
|
||||
|
||||
|
@ -517,4 +523,36 @@ public class CajaHibernateDAO extends GenericHibernateDAO<Object, Long> implemen
|
|||
|
||||
return new BigDecimal(chave += seq);
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@Override
|
||||
public Map<String, List<Caja>> buscarCajaYTarjeta(String... numoperacionList) {
|
||||
|
||||
String queryString = "SELECT DISTINCT c FROM Caja c "
|
||||
+ "LEFT JOIN FETCH c.cajaFormaPago cfp "
|
||||
+ "LEFT JOIN FETCH cfp.cajaDetPago cdp "
|
||||
+ "LEFT JOIN FETCH cdp.cajaTarjetas ct "
|
||||
+ "WHERE c.numoperacion IN(:numoperacion) ";
|
||||
|
||||
Query query = getSession().createQuery(queryString);
|
||||
query.setParameterList("numoperacion", numoperacionList);
|
||||
|
||||
List<Caja> cajaList = query.list();
|
||||
HashMap<String, List<Caja>> result = new HashMap<String, List<Caja>>();
|
||||
for (Caja caja : cajaList) {
|
||||
String numoperacion = caja.getNumoperacion();
|
||||
List<Caja> cajaListTemp = result.get(numoperacion);
|
||||
if (cajaListTemp == null) {
|
||||
cajaListTemp = new ArrayList<Caja>();
|
||||
result.put(numoperacion, cajaListTemp);
|
||||
}
|
||||
cajaListTemp.add(caja);
|
||||
}
|
||||
|
||||
return result;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
|
|
@ -0,0 +1,81 @@
|
|||
package com.rjconsultores.ventaboletos.dao.hibernate;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import org.hibernate.Query;
|
||||
import org.hibernate.SessionFactory;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.factory.annotation.Qualifier;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import com.rjconsultores.ventaboletos.dao.NotaCreditoVendaPacoteDAO;
|
||||
import com.rjconsultores.ventaboletos.entidad.CajaDiversos;
|
||||
import com.rjconsultores.ventaboletos.entidad.CajaDiversosPago;
|
||||
import com.rjconsultores.ventaboletos.entidad.CajaTarjeta;
|
||||
import com.rjconsultores.ventaboletos.entidad.NotaCreditoVendaPacote;
|
||||
import com.rjconsultores.ventaboletos.vo.reembolsoocdnotacredito.ReembolsoOcdNotaCreditoVO;
|
||||
|
||||
@Repository("notaCreditoVendaPacoteDAO")
|
||||
public class NotaCreditoVendaPacoteHibernateDAO extends GenericHibernateDAO<NotaCreditoVendaPacote, Integer>
|
||||
implements NotaCreditoVendaPacoteDAO {
|
||||
|
||||
@Autowired
|
||||
public NotaCreditoVendaPacoteHibernateDAO(@Qualifier("sessionFactory") SessionFactory factory) {
|
||||
setSessionFactory(factory);
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@Override
|
||||
public List<ReembolsoOcdNotaCreditoVO> busquedaDatosReembolsoOcdNotaCreditoRS(Date fecInicial, Date fecFinal, Date fecPagamentoInicial, Date fecPagamentoFinal) {
|
||||
|
||||
Map<String, Object> params = new HashMap<String,Object>();
|
||||
String queryString = "SELECT n FROM NotaCreditoVendaPacote n "
|
||||
+ "LEFT JOIN FETCH n.ocdDatosPagamentoList "
|
||||
+ "WHERE 1=1 ";
|
||||
|
||||
if (fecInicial != null) {
|
||||
queryString += "AND n.datanotacredito >= :fecInicial ";
|
||||
params.put("fecInicial", fecInicial);
|
||||
}
|
||||
if (fecFinal != null) {
|
||||
queryString += "AND n.datanotacredito <= :fecFinal ";
|
||||
params.put("fecFinal", fecFinal);
|
||||
}
|
||||
|
||||
if (fecPagamentoInicial != null) {
|
||||
queryString += "AND n.datapagamento >= :fecPagamentoInicial ";
|
||||
params.put("fecPagamentoInicial", fecPagamentoInicial);
|
||||
}
|
||||
if (fecPagamentoFinal != null) {
|
||||
queryString += "AND n.datapagamento <= :fecPagamentoFinal ";
|
||||
params.put("fecPagamentoFinal", fecPagamentoFinal);
|
||||
}
|
||||
|
||||
Query query = getSession().createQuery(queryString);
|
||||
for (String p : query.getNamedParameters()) {
|
||||
query.setParameter(p, params.get(p));
|
||||
}
|
||||
|
||||
List<ReembolsoOcdNotaCreditoVO> result = new ArrayList<ReembolsoOcdNotaCreditoVO>();
|
||||
List<NotaCreditoVendaPacote> listNotaCredito = query.list();
|
||||
for (NotaCreditoVendaPacote notaCredito :listNotaCredito) {
|
||||
List<CajaTarjeta> cajaTarjetaList = new ArrayList<CajaTarjeta>();
|
||||
List<CajaDiversos> listCajaDiversos = notaCredito.getCajaDiversosList();
|
||||
for (CajaDiversos cajaDiversos : listCajaDiversos) {
|
||||
List<CajaDiversosPago> listCajaDiversosPago = cajaDiversos.getCajaDiversosPagosList();
|
||||
for (CajaDiversosPago cajaDiversosPago : listCajaDiversosPago) {
|
||||
cajaTarjetaList.add(cajaDiversosPago.getCajaTarjeta());
|
||||
}
|
||||
}
|
||||
ReembolsoOcdNotaCreditoVO vo = new ReembolsoOcdNotaCreditoVO(notaCredito, notaCredito.getOcdDatosPagamentoList(), cajaTarjetaList);
|
||||
result.add(vo);
|
||||
}
|
||||
|
||||
return result;
|
||||
|
||||
}
|
||||
}
|
|
@ -0,0 +1,110 @@
|
|||
package com.rjconsultores.ventaboletos.dao.hibernate;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import org.hibernate.Query;
|
||||
import org.hibernate.SessionFactory;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.factory.annotation.Qualifier;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import com.rjconsultores.ventaboletos.dao.CajaDAO;
|
||||
import com.rjconsultores.ventaboletos.dao.OCDDAO;
|
||||
import com.rjconsultores.ventaboletos.entidad.Caja;
|
||||
import com.rjconsultores.ventaboletos.entidad.CajaDetPago;
|
||||
import com.rjconsultores.ventaboletos.entidad.CajaFormaPago;
|
||||
import com.rjconsultores.ventaboletos.entidad.CajaTarjeta;
|
||||
import com.rjconsultores.ventaboletos.entidad.OCD;
|
||||
import com.rjconsultores.ventaboletos.vo.reembolsoocdnotacredito.ReembolsoOcdNotaCreditoVO;
|
||||
|
||||
@Repository("ocdHibernateDAO")
|
||||
public class OCDHibernateDAO extends GenericHibernateDAO<OCD, Integer>
|
||||
implements OCDDAO {
|
||||
|
||||
@Autowired
|
||||
private CajaDAO cajaDAO;
|
||||
|
||||
@Autowired
|
||||
public OCDHibernateDAO(@Qualifier("sessionFactory") SessionFactory factory) {
|
||||
setSessionFactory(factory);
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@Override
|
||||
public List<ReembolsoOcdNotaCreditoVO> busquedaDatosReembolsoOcdNotaCreditoRS(Date fecInicial, Date fecFinal, Date fecPagamentoInicial, Date fecPagamentoFinal) {
|
||||
|
||||
Map<String, Object> params = new HashMap<String,Object>();
|
||||
String queryString = "SELECT o FROM OCD o "
|
||||
+ "LEFT JOIN FETCH o.ocdDatosPagamentos "
|
||||
+ "WHERE 1=1 ";
|
||||
|
||||
if (fecInicial != null) {
|
||||
queryString += "AND o.fecinc >= :fecInicial ";
|
||||
params.put("fecInicial", fecInicial);
|
||||
}
|
||||
if (fecFinal != null) {
|
||||
queryString += "AND o.fecinc <= :fecFinal ";
|
||||
params.put("fecFinal", fecFinal);
|
||||
}
|
||||
|
||||
if (fecPagamentoInicial != null) {
|
||||
queryString += "AND o.fecpagar >= :fecPagamentoInicial ";
|
||||
params.put("fecPagamentoInicial", fecPagamentoInicial);
|
||||
}
|
||||
if (fecPagamentoFinal != null) {
|
||||
queryString += "AND o.fecpagar <= :fecPagamentoFinal ";
|
||||
params.put("fecPagamentoFinal", fecPagamentoFinal);
|
||||
}
|
||||
|
||||
Query query = getSession().createQuery(queryString);
|
||||
for (String p : query.getNamedParameters()) {
|
||||
query.setParameter(p, params.get(p));
|
||||
}
|
||||
|
||||
List<OCD> listOcd = query.list();
|
||||
List<String> numoperacionList = new ArrayList<String>();
|
||||
for (OCD ocd : listOcd) {
|
||||
numoperacionList.add(ocd.getNumoperacion());
|
||||
}
|
||||
|
||||
Map<String, List<Caja>> cajaMap = cajaDAO.buscarCajaYTarjeta(numoperacionList.toArray(new String[0]));
|
||||
|
||||
return transformResult(listOcd, cajaMap);
|
||||
|
||||
}
|
||||
|
||||
private List<ReembolsoOcdNotaCreditoVO> transformResult(List<OCD> listOcd, Map<String, List<Caja>> cajaMap) {
|
||||
|
||||
List<ReembolsoOcdNotaCreditoVO> result = new ArrayList<ReembolsoOcdNotaCreditoVO>();
|
||||
|
||||
for (OCD ocd : listOcd) {
|
||||
|
||||
List<CajaTarjeta> listCajaTarjeta = new ArrayList<CajaTarjeta>();
|
||||
List<Caja> cajaList = cajaMap.get(ocd.getNumoperacion());
|
||||
if (cajaList != null) {
|
||||
for (Caja caja : cajaList) {
|
||||
for (CajaFormaPago cajaFormaPago : caja.getCajaFormaPago()) {
|
||||
CajaDetPago cajaDetPago = cajaFormaPago.getCajaDetPago();
|
||||
if (cajaDetPago != null) {
|
||||
CajaTarjeta cajaTarjeta = cajaDetPago.getCajaTarjetas();
|
||||
if (cajaTarjeta != null) {
|
||||
listCajaTarjeta.add(cajaTarjeta);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
result.add(new ReembolsoOcdNotaCreditoVO(ocd, ocd.getOcdDatosPagamentos(), listCajaTarjeta));
|
||||
|
||||
}
|
||||
|
||||
return result;
|
||||
|
||||
}
|
||||
|
||||
}
|
|
@ -944,7 +944,8 @@ public class SQLBuilderOracle implements SQLBuilder {
|
|||
sb.append(" ocd.ocd_id as \"ocdId\", ocd.numoperacion as \"numoperacionOcd\", ");
|
||||
sb.append(" cdp.notacreditovendapacote_id as \"notacreditovendapacoteId\", ");
|
||||
sb.append(" ct.descoperadoracartao as \"operadoracartao\", ");
|
||||
sb.append(" sec.cvesecretaria as \"cvesecretaria\" ");
|
||||
sb.append(" sec.cvesecretaria as \"cvesecretaria\", ");
|
||||
sb.append(" c.INDENCARGOVENTA as \"indEncargoVenta\" ");
|
||||
sb.append(" from ");
|
||||
sb.append(" caja c ");
|
||||
sb.append(" left join corrida co on co.corrida_id = c.corrida_id and co.feccorrida = c.feccorrida ");
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,238 @@
|
|||
package com.rjconsultores.ventaboletos.entidad;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.FetchType;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.JoinColumn;
|
||||
import javax.persistence.ManyToOne;
|
||||
import javax.persistence.OneToOne;
|
||||
import javax.persistence.Table;
|
||||
import javax.persistence.Temporal;
|
||||
import javax.persistence.TemporalType;
|
||||
|
||||
@Entity
|
||||
@Table(name = "CAJA_DET_PAGO")
|
||||
public class CajaDetPago implements java.io.Serializable {
|
||||
|
||||
private static final long serialVersionUID = 7865266026539127982L;
|
||||
|
||||
@Id
|
||||
@Column(name = "CAJADETPAGO_ID", unique = true, nullable = false, precision = 15, scale = 0)
|
||||
private Long cajaDetPagoId;
|
||||
|
||||
@ManyToOne(fetch = FetchType.LAZY)
|
||||
@JoinColumn(name = "CAJAFORMAPAGO_ID")
|
||||
private CajaFormaPago cajaFormaPago;
|
||||
|
||||
@Column(name = "NUMOPERACION", length = 36)
|
||||
private String numoperacion;
|
||||
|
||||
@OneToOne
|
||||
@JoinColumn(name = "FORMAPAGO_ID")
|
||||
private FormaPago formaPago;
|
||||
|
||||
@Column(name = "NUMDOCUMENTO", length = 60)
|
||||
private String numdocumento;
|
||||
|
||||
@Column(name = "OPCIONAL1", length = 60)
|
||||
private String opcional1;
|
||||
|
||||
@Column(name = "OPCIONAL2", length = 60)
|
||||
private String opcional2;
|
||||
|
||||
@Column(name = "OPCIONAL3", length = 60)
|
||||
private String opcional3;
|
||||
|
||||
@Column(name = "IMPORTE1", precision = 8)
|
||||
private BigDecimal importe1;
|
||||
|
||||
@Column(name = "IMPORTE2", precision = 8)
|
||||
private BigDecimal importe2;
|
||||
|
||||
@Column(name = "INDREPLICA", precision = 1, scale = 0)
|
||||
private Boolean indreplica;
|
||||
|
||||
@Column(name = "ACTIVO", precision = 1, scale = 0)
|
||||
private Boolean activo;
|
||||
|
||||
@Temporal(TemporalType.DATE)
|
||||
@Column(name = "FECMODIF", length = 7)
|
||||
private Date fecmodif;
|
||||
|
||||
@Column(name = "USUARIO_ID", precision = 7, scale = 0)
|
||||
private Integer usuarioId;
|
||||
|
||||
@Column(name = "NODO_ID", precision = 2, scale = 0)
|
||||
private Byte nodoId;
|
||||
|
||||
@ManyToOne
|
||||
@JoinColumn(name = "CAJA_ID")
|
||||
private Caja caja;
|
||||
|
||||
@ManyToOne
|
||||
@JoinColumn(name = "OCD_ID")
|
||||
private OCD ocd;
|
||||
|
||||
@Column(name = "NOTACREDITOVENDAPACOTE_ID", precision = 7, scale = 0)
|
||||
private Integer notacreditovendapacoteId;
|
||||
|
||||
@OneToOne(mappedBy = "cajaDetPago")
|
||||
private CajaTarjeta cajaTarjetas;
|
||||
|
||||
public Long getCajaDetPagoId() {
|
||||
return cajaDetPagoId;
|
||||
}
|
||||
|
||||
public void setCajaDetPagoId(Long cajaDetPagoId) {
|
||||
this.cajaDetPagoId = cajaDetPagoId;
|
||||
}
|
||||
|
||||
public CajaFormaPago getCajaFormaPago() {
|
||||
return cajaFormaPago;
|
||||
}
|
||||
|
||||
public void setCajaFormaPago(CajaFormaPago cajaFormaPago) {
|
||||
this.cajaFormaPago = cajaFormaPago;
|
||||
}
|
||||
|
||||
public String getNumoperacion() {
|
||||
return numoperacion;
|
||||
}
|
||||
|
||||
public void setNumoperacion(String numoperacion) {
|
||||
this.numoperacion = numoperacion;
|
||||
}
|
||||
|
||||
public FormaPago getFormaPago() {
|
||||
return formaPago;
|
||||
}
|
||||
|
||||
public void setFormaPago(FormaPago formaPago) {
|
||||
this.formaPago = formaPago;
|
||||
}
|
||||
|
||||
public String getNumdocumento() {
|
||||
return numdocumento;
|
||||
}
|
||||
|
||||
public void setNumdocumento(String numdocumento) {
|
||||
this.numdocumento = numdocumento;
|
||||
}
|
||||
|
||||
public String getOpcional1() {
|
||||
return opcional1;
|
||||
}
|
||||
|
||||
public void setOpcional1(String opcional1) {
|
||||
this.opcional1 = opcional1;
|
||||
}
|
||||
|
||||
public String getOpcional2() {
|
||||
return opcional2;
|
||||
}
|
||||
|
||||
public void setOpcional2(String opcional2) {
|
||||
this.opcional2 = opcional2;
|
||||
}
|
||||
|
||||
public String getOpcional3() {
|
||||
return opcional3;
|
||||
}
|
||||
|
||||
public void setOpcional3(String opcional3) {
|
||||
this.opcional3 = opcional3;
|
||||
}
|
||||
|
||||
public BigDecimal getImporte1() {
|
||||
return importe1;
|
||||
}
|
||||
|
||||
public void setImporte1(BigDecimal importe1) {
|
||||
this.importe1 = importe1;
|
||||
}
|
||||
|
||||
public BigDecimal getImporte2() {
|
||||
return importe2;
|
||||
}
|
||||
|
||||
public void setImporte2(BigDecimal importe2) {
|
||||
this.importe2 = importe2;
|
||||
}
|
||||
|
||||
public Boolean getIndreplica() {
|
||||
return indreplica;
|
||||
}
|
||||
|
||||
public void setIndreplica(Boolean indreplica) {
|
||||
this.indreplica = indreplica;
|
||||
}
|
||||
|
||||
public Boolean getActivo() {
|
||||
return activo;
|
||||
}
|
||||
|
||||
public void setActivo(Boolean activo) {
|
||||
this.activo = activo;
|
||||
}
|
||||
|
||||
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 Byte getNodoId() {
|
||||
return nodoId;
|
||||
}
|
||||
|
||||
public void setNodoId(Byte nodoId) {
|
||||
this.nodoId = nodoId;
|
||||
}
|
||||
|
||||
public Caja getCaja() {
|
||||
return caja;
|
||||
}
|
||||
|
||||
public void setCaja(Caja caja) {
|
||||
this.caja = caja;
|
||||
}
|
||||
|
||||
public OCD getOcd() {
|
||||
return ocd;
|
||||
}
|
||||
|
||||
public void setOcd(OCD ocd) {
|
||||
this.ocd = ocd;
|
||||
}
|
||||
|
||||
public Integer getNotacreditovendapacoteId() {
|
||||
return notacreditovendapacoteId;
|
||||
}
|
||||
|
||||
public void setNotacreditovendapacoteId(Integer notacreditovendapacoteId) {
|
||||
this.notacreditovendapacoteId = notacreditovendapacoteId;
|
||||
}
|
||||
|
||||
public CajaTarjeta getCajaTarjetas() {
|
||||
return cajaTarjetas;
|
||||
}
|
||||
|
||||
public void setCajaTarjetas(CajaTarjeta cajaTarjetas) {
|
||||
this.cajaTarjetas = cajaTarjetas;
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,432 @@
|
|||
package com.rjconsultores.ventaboletos.entidad;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.JoinColumn;
|
||||
import javax.persistence.ManyToOne;
|
||||
import javax.persistence.OneToMany;
|
||||
import javax.persistence.Table;
|
||||
|
||||
@Entity
|
||||
@Table(name = "CAJA_DIVERSOS")
|
||||
public class CajaDiversos implements java.io.Serializable {
|
||||
|
||||
private static final long serialVersionUID = -3120518309581568769L;
|
||||
|
||||
@Id
|
||||
@Column(name = "CAJADIVERSOS_ID", nullable = false, precision = 15, scale = 0)
|
||||
private Long cajaDiversosId;
|
||||
|
||||
@Column(name = "NUMOPERACION", length = 36)
|
||||
private String numoperacion;
|
||||
|
||||
@Column(name = "NUMOPERACIONDIVERSOS", length = 36)
|
||||
private String numoperaciondiversos;
|
||||
|
||||
@Column(name = "PRODUCTOSERVICIO_ID", precision = 7, scale = 0)
|
||||
private Integer productoservicioId;
|
||||
|
||||
@Column(name = "FECHORVTA", length = 7)
|
||||
private Date fechorvta;
|
||||
|
||||
@Column(name = "PRECIO", precision = 7)
|
||||
private BigDecimal precio;
|
||||
|
||||
@Column(name = "MONEDA_ID", precision = 7, scale = 0)
|
||||
private Integer monedaId;
|
||||
|
||||
@Column(name = "PARIDAD", precision = 7)
|
||||
private BigDecimal paridad;
|
||||
|
||||
@Column(name = "CARGOEXTRA", precision = 7)
|
||||
private BigDecimal cargoextra;
|
||||
|
||||
@Column(name = "NUMFOLIOPREIMPRESO", length = 36)
|
||||
private String numfoliopreimpreso;
|
||||
|
||||
@Column(name = "NUMSERIEPREIMPRESA", length = 30)
|
||||
private String numseriepreimpresa;
|
||||
|
||||
@Column(name = "NUMOPCIONAL1", precision = 15, scale = 0)
|
||||
private Long numopcional1;
|
||||
|
||||
@Column(name = "NUMOPCIONAL2", precision = 15, scale = 0)
|
||||
private Long numopcional2;
|
||||
|
||||
@Column(name = "DESCOPCIONAL1", length = 45)
|
||||
private String descopcional1;
|
||||
|
||||
@Column(name = "DESCOPCIONAL2", length = 45)
|
||||
private String descopcional2;
|
||||
|
||||
@Column(name = "NODO_ID", precision = 2, scale = 0)
|
||||
private Byte nodoId;
|
||||
|
||||
@Column(name = "INDREPLICA", precision = 1, scale = 0)
|
||||
private Boolean indreplica;
|
||||
|
||||
@Column(name = "FECCORTE", length = 7)
|
||||
private Date feccorte;
|
||||
|
||||
@Column(name = "TURNO_ID", precision = 2, scale = 0)
|
||||
private Byte turnoId;
|
||||
|
||||
@Column(name = "INDCANCELACION", precision = 1, scale = 0)
|
||||
private Boolean indcancelacion;
|
||||
|
||||
@Column(name = "NUMFOLIOSISTEMA", length = 36)
|
||||
private String numfoliosistema;
|
||||
|
||||
@ManyToOne
|
||||
@JoinColumn(name = "TIPOVENTA_ID")
|
||||
private TipoVenta tipoVenta;
|
||||
|
||||
@Column(name = "PUNTOVENTAREMOTO_ID", precision = 7, scale = 0)
|
||||
private Integer puntoventaremotoId;
|
||||
|
||||
@Column(name = "USUARIOREMOTO_ID", precision = 7, scale = 0)
|
||||
private Integer usuarioremotoId;
|
||||
|
||||
@Column(name = "ESTACION_ID", precision = 7, scale = 0)
|
||||
private Integer estacionId;
|
||||
|
||||
@Column(name = "ACTIVO", precision = 1, scale = 0)
|
||||
private Boolean activo;
|
||||
|
||||
@Column(name = "FECMODIF", length = 7)
|
||||
private Date fecmodif;
|
||||
|
||||
@Column(name = "USUARIO_ID", precision = 7, scale = 0)
|
||||
private Integer usuarioId;
|
||||
|
||||
@ManyToOne
|
||||
@JoinColumn(name = "PUNTOVENTA_ID")
|
||||
private PuntoVenta puntoVenta;
|
||||
|
||||
@Column(name = "INDREIMPRESION", precision = 1, scale = 0)
|
||||
private Boolean indreimpresion;
|
||||
|
||||
@Column(name = "EVENTOEXTRA_ID", precision = 10, scale = 0)
|
||||
private Long eventoextraId;
|
||||
|
||||
@Column(name = "MOTIVOCANCELACION_ID", precision = 2, scale = 0)
|
||||
private Byte motivocancelacionId;
|
||||
|
||||
@Column(name = "FECINTEGRACION", length = 7)
|
||||
private Date fecintegracion;
|
||||
|
||||
@Column(name = "VENDAPACOTE_ID", precision = 7, scale = 0)
|
||||
private Integer vendapacoteId;
|
||||
|
||||
@Column(name = "FECHORVTA_H", length = 7)
|
||||
private Date fechorvtaH;
|
||||
|
||||
@ManyToOne
|
||||
@JoinColumn(name = "NOTACREDITOVENDAPACOTE_ID", insertable = false, updatable = false)
|
||||
private NotaCreditoVendaPacote notaCreditoVendaPacote;
|
||||
|
||||
@OneToMany(mappedBy = "cajaDiversos")
|
||||
private List<CajaDiversosPago> cajaDiversosPagosList;
|
||||
|
||||
public Long getCajaDiversosId() {
|
||||
return cajaDiversosId;
|
||||
}
|
||||
|
||||
public void setCajaDiversosId(Long cajaDiversosId) {
|
||||
this.cajaDiversosId = cajaDiversosId;
|
||||
}
|
||||
|
||||
public String getNumoperacion() {
|
||||
return numoperacion;
|
||||
}
|
||||
|
||||
public void setNumoperacion(String numoperacion) {
|
||||
this.numoperacion = numoperacion;
|
||||
}
|
||||
|
||||
public String getNumoperaciondiversos() {
|
||||
return numoperaciondiversos;
|
||||
}
|
||||
|
||||
public void setNumoperaciondiversos(String numoperaciondiversos) {
|
||||
this.numoperaciondiversos = numoperaciondiversos;
|
||||
}
|
||||
|
||||
public Integer getProductoservicioId() {
|
||||
return productoservicioId;
|
||||
}
|
||||
|
||||
public void setProductoservicioId(Integer productoservicioId) {
|
||||
this.productoservicioId = productoservicioId;
|
||||
}
|
||||
|
||||
public Date getFechorvta() {
|
||||
return fechorvta;
|
||||
}
|
||||
|
||||
public void setFechorvta(Date fechorvta) {
|
||||
this.fechorvta = fechorvta;
|
||||
}
|
||||
|
||||
public BigDecimal getPrecio() {
|
||||
return precio;
|
||||
}
|
||||
|
||||
public void setPrecio(BigDecimal precio) {
|
||||
this.precio = precio;
|
||||
}
|
||||
|
||||
public Integer getMonedaId() {
|
||||
return monedaId;
|
||||
}
|
||||
|
||||
public void setMonedaId(Integer monedaId) {
|
||||
this.monedaId = monedaId;
|
||||
}
|
||||
|
||||
public BigDecimal getParidad() {
|
||||
return paridad;
|
||||
}
|
||||
|
||||
public void setParidad(BigDecimal paridad) {
|
||||
this.paridad = paridad;
|
||||
}
|
||||
|
||||
public BigDecimal getCargoextra() {
|
||||
return cargoextra;
|
||||
}
|
||||
|
||||
public void setCargoextra(BigDecimal cargoextra) {
|
||||
this.cargoextra = cargoextra;
|
||||
}
|
||||
|
||||
public String getNumfoliopreimpreso() {
|
||||
return numfoliopreimpreso;
|
||||
}
|
||||
|
||||
public void setNumfoliopreimpreso(String numfoliopreimpreso) {
|
||||
this.numfoliopreimpreso = numfoliopreimpreso;
|
||||
}
|
||||
|
||||
public String getNumseriepreimpresa() {
|
||||
return numseriepreimpresa;
|
||||
}
|
||||
|
||||
public void setNumseriepreimpresa(String numseriepreimpresa) {
|
||||
this.numseriepreimpresa = numseriepreimpresa;
|
||||
}
|
||||
|
||||
public Long getNumopcional1() {
|
||||
return numopcional1;
|
||||
}
|
||||
|
||||
public void setNumopcional1(Long numopcional1) {
|
||||
this.numopcional1 = numopcional1;
|
||||
}
|
||||
|
||||
public Long getNumopcional2() {
|
||||
return numopcional2;
|
||||
}
|
||||
|
||||
public void setNumopcional2(Long numopcional2) {
|
||||
this.numopcional2 = numopcional2;
|
||||
}
|
||||
|
||||
public String getDescopcional1() {
|
||||
return descopcional1;
|
||||
}
|
||||
|
||||
public void setDescopcional1(String descopcional1) {
|
||||
this.descopcional1 = descopcional1;
|
||||
}
|
||||
|
||||
public String getDescopcional2() {
|
||||
return descopcional2;
|
||||
}
|
||||
|
||||
public void setDescopcional2(String descopcional2) {
|
||||
this.descopcional2 = descopcional2;
|
||||
}
|
||||
|
||||
public Byte getNodoId() {
|
||||
return nodoId;
|
||||
}
|
||||
|
||||
public void setNodoId(Byte nodoId) {
|
||||
this.nodoId = nodoId;
|
||||
}
|
||||
|
||||
public Boolean getIndreplica() {
|
||||
return indreplica;
|
||||
}
|
||||
|
||||
public void setIndreplica(Boolean indreplica) {
|
||||
this.indreplica = indreplica;
|
||||
}
|
||||
|
||||
public Date getFeccorte() {
|
||||
return feccorte;
|
||||
}
|
||||
|
||||
public void setFeccorte(Date feccorte) {
|
||||
this.feccorte = feccorte;
|
||||
}
|
||||
|
||||
public Byte getTurnoId() {
|
||||
return turnoId;
|
||||
}
|
||||
|
||||
public void setTurnoId(Byte turnoId) {
|
||||
this.turnoId = turnoId;
|
||||
}
|
||||
|
||||
public Boolean getIndcancelacion() {
|
||||
return indcancelacion;
|
||||
}
|
||||
|
||||
public void setIndcancelacion(Boolean indcancelacion) {
|
||||
this.indcancelacion = indcancelacion;
|
||||
}
|
||||
|
||||
public String getNumfoliosistema() {
|
||||
return numfoliosistema;
|
||||
}
|
||||
|
||||
public void setNumfoliosistema(String numfoliosistema) {
|
||||
this.numfoliosistema = numfoliosistema;
|
||||
}
|
||||
|
||||
public TipoVenta getTipoVenta() {
|
||||
return tipoVenta;
|
||||
}
|
||||
|
||||
public void setTipoVenta(TipoVenta tipoVenta) {
|
||||
this.tipoVenta = tipoVenta;
|
||||
}
|
||||
|
||||
public Integer getPuntoventaremotoId() {
|
||||
return puntoventaremotoId;
|
||||
}
|
||||
|
||||
public void setPuntoventaremotoId(Integer puntoventaremotoId) {
|
||||
this.puntoventaremotoId = puntoventaremotoId;
|
||||
}
|
||||
|
||||
public Integer getUsuarioremotoId() {
|
||||
return usuarioremotoId;
|
||||
}
|
||||
|
||||
public void setUsuarioremotoId(Integer usuarioremotoId) {
|
||||
this.usuarioremotoId = usuarioremotoId;
|
||||
}
|
||||
|
||||
public Integer getEstacionId() {
|
||||
return estacionId;
|
||||
}
|
||||
|
||||
public void setEstacionId(Integer estacionId) {
|
||||
this.estacionId = estacionId;
|
||||
}
|
||||
|
||||
public Boolean getActivo() {
|
||||
return activo;
|
||||
}
|
||||
|
||||
public void setActivo(Boolean activo) {
|
||||
this.activo = activo;
|
||||
}
|
||||
|
||||
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 PuntoVenta getPuntoVenta() {
|
||||
return puntoVenta;
|
||||
}
|
||||
|
||||
public void setPuntoVenta(PuntoVenta puntoVenta) {
|
||||
this.puntoVenta = puntoVenta;
|
||||
}
|
||||
|
||||
public Boolean getIndreimpresion() {
|
||||
return indreimpresion;
|
||||
}
|
||||
|
||||
public void setIndreimpresion(Boolean indreimpresion) {
|
||||
this.indreimpresion = indreimpresion;
|
||||
}
|
||||
|
||||
public Long getEventoextraId() {
|
||||
return eventoextraId;
|
||||
}
|
||||
|
||||
public void setEventoextraId(Long eventoextraId) {
|
||||
this.eventoextraId = eventoextraId;
|
||||
}
|
||||
|
||||
public Byte getMotivocancelacionId() {
|
||||
return motivocancelacionId;
|
||||
}
|
||||
|
||||
public void setMotivocancelacionId(Byte motivocancelacionId) {
|
||||
this.motivocancelacionId = motivocancelacionId;
|
||||
}
|
||||
|
||||
public Date getFecintegracion() {
|
||||
return fecintegracion;
|
||||
}
|
||||
|
||||
public void setFecintegracion(Date fecintegracion) {
|
||||
this.fecintegracion = fecintegracion;
|
||||
}
|
||||
|
||||
public Integer getVendapacoteId() {
|
||||
return vendapacoteId;
|
||||
}
|
||||
|
||||
public void setVendapacoteId(Integer vendapacoteId) {
|
||||
this.vendapacoteId = vendapacoteId;
|
||||
}
|
||||
|
||||
public Date getFechorvtaH() {
|
||||
return fechorvtaH;
|
||||
}
|
||||
|
||||
public void setFechorvtaH(Date fechorvtaH) {
|
||||
this.fechorvtaH = fechorvtaH;
|
||||
}
|
||||
|
||||
public NotaCreditoVendaPacote getNotaCreditoVendaPacote() {
|
||||
return notaCreditoVendaPacote;
|
||||
}
|
||||
|
||||
public void setNotaCreditoVendaPacote(NotaCreditoVendaPacote notaCreditoVendaPacote) {
|
||||
this.notaCreditoVendaPacote = notaCreditoVendaPacote;
|
||||
}
|
||||
|
||||
public List<CajaDiversosPago> getCajaDiversosPagosList() {
|
||||
return cajaDiversosPagosList;
|
||||
}
|
||||
|
||||
public void setCajaDiversosPagosList(List<CajaDiversosPago> listCajaDiversosPagos) {
|
||||
this.cajaDiversosPagosList = listCajaDiversosPagos;
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,136 @@
|
|||
package com.rjconsultores.ventaboletos.entidad;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.JoinColumn;
|
||||
import javax.persistence.ManyToOne;
|
||||
import javax.persistence.Table;
|
||||
import javax.persistence.Temporal;
|
||||
import javax.persistence.TemporalType;
|
||||
|
||||
@Entity
|
||||
@Table(name = "CAJA_DIVERSOS_PAGO")
|
||||
public class CajaDiversosPago implements java.io.Serializable {
|
||||
|
||||
private static final long serialVersionUID = 591550428860169139L;
|
||||
|
||||
@Id
|
||||
@Column(name = "CAJADIVERSOSPAGO_ID", unique = true, nullable = false, precision = 15, scale = 0)
|
||||
private Long cajaDiversosPagoId;
|
||||
|
||||
@ManyToOne
|
||||
@JoinColumn(name = "CAJATARJETA_ID")
|
||||
private CajaTarjeta cajaTarjeta;
|
||||
|
||||
@ManyToOne
|
||||
@JoinColumn(name = "CAJADIVERSOS_ID")
|
||||
private CajaDiversos cajaDiversos;
|
||||
|
||||
@ManyToOne
|
||||
@JoinColumn(name = "FORMAPAGO_ID")
|
||||
private FormaPago formaPago;
|
||||
|
||||
@Column(name = "IMPORTE", precision = 7)
|
||||
private BigDecimal importe;
|
||||
|
||||
@Column(name = "NODO_ID", precision = 2, scale = 0)
|
||||
private Byte nodoId;
|
||||
|
||||
@Column(name = "INDREPLICA", precision = 1, scale = 0)
|
||||
private Boolean indreplica;
|
||||
|
||||
@Column(name = "ACTIVO", precision = 1, scale = 0)
|
||||
private Boolean activo;
|
||||
|
||||
@Temporal(TemporalType.DATE)
|
||||
@Column(name = "FECMODIF", length = 7)
|
||||
private Date fecmodif;
|
||||
|
||||
@Column(name = "USUARIO_ID", precision = 7, scale = 0)
|
||||
private Integer usuarioId;
|
||||
|
||||
public Long getCajaDiversosPagoId() {
|
||||
return cajaDiversosPagoId;
|
||||
}
|
||||
|
||||
public void setCajaDiversosPagoId(Long cajaDiversosPagoId) {
|
||||
this.cajaDiversosPagoId = cajaDiversosPagoId;
|
||||
}
|
||||
|
||||
public CajaTarjeta getCajaTarjeta() {
|
||||
return cajaTarjeta;
|
||||
}
|
||||
|
||||
public void setCajaTarjeta(CajaTarjeta cajaTarjeta) {
|
||||
this.cajaTarjeta = cajaTarjeta;
|
||||
}
|
||||
|
||||
public CajaDiversos getCajaDiversos() {
|
||||
return cajaDiversos;
|
||||
}
|
||||
|
||||
public void setCajaDiversos(CajaDiversos cajaDiversos) {
|
||||
this.cajaDiversos = cajaDiversos;
|
||||
}
|
||||
|
||||
public FormaPago getFormaPago() {
|
||||
return formaPago;
|
||||
}
|
||||
|
||||
public void setFormaPago(FormaPago formaPago) {
|
||||
this.formaPago = formaPago;
|
||||
}
|
||||
|
||||
public BigDecimal getImporte() {
|
||||
return importe;
|
||||
}
|
||||
|
||||
public void setImporte(BigDecimal importe) {
|
||||
this.importe = importe;
|
||||
}
|
||||
|
||||
public Byte getNodoId() {
|
||||
return nodoId;
|
||||
}
|
||||
|
||||
public void setNodoId(Byte nodoId) {
|
||||
this.nodoId = nodoId;
|
||||
}
|
||||
|
||||
public Boolean getIndreplica() {
|
||||
return indreplica;
|
||||
}
|
||||
|
||||
public void setIndreplica(Boolean indreplica) {
|
||||
this.indreplica = indreplica;
|
||||
}
|
||||
|
||||
public Boolean getActivo() {
|
||||
return activo;
|
||||
}
|
||||
|
||||
public void setActivo(Boolean activo) {
|
||||
this.activo = activo;
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,136 @@
|
|||
package com.rjconsultores.ventaboletos.entidad;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.JoinColumn;
|
||||
import javax.persistence.ManyToOne;
|
||||
import javax.persistence.OneToOne;
|
||||
import javax.persistence.Table;
|
||||
import javax.persistence.Temporal;
|
||||
import javax.persistence.TemporalType;
|
||||
|
||||
@Entity
|
||||
@Table(name = "CAJA_FORMAPAGO")
|
||||
public class CajaFormaPago implements java.io.Serializable {
|
||||
|
||||
private static final long serialVersionUID = -2927885703968812837L;
|
||||
|
||||
@Id
|
||||
@Column(name = "CAJAFORMAPAGO_ID", unique = true, nullable = false, precision = 15, scale = 0)
|
||||
private Long cajaFormaPagoId;
|
||||
|
||||
@ManyToOne
|
||||
@JoinColumn(name = "CAJA_ID")
|
||||
private Caja caja;
|
||||
|
||||
@ManyToOne
|
||||
@JoinColumn(name = "FORMAPAGO_ID")
|
||||
private FormaPago formapago;
|
||||
|
||||
@Column(name = "IMPORTE", precision = 8)
|
||||
private BigDecimal importe;
|
||||
|
||||
@Column(name = "INDREPLICA", precision = 1, scale = 0)
|
||||
private Boolean indreplica;
|
||||
|
||||
@Column(name = "ACTIVO", precision = 1, scale = 0)
|
||||
private Boolean activo;
|
||||
|
||||
@Temporal(TemporalType.DATE)
|
||||
@Column(name = "FECMODIF", length = 7)
|
||||
private Date fecmodif;
|
||||
|
||||
@Column(name = "USUARIO_ID", precision = 7, scale = 0)
|
||||
private Integer usuarioId;
|
||||
|
||||
@Column(name = "NODO_ID", precision = 2, scale = 0)
|
||||
private Byte nodoId;
|
||||
|
||||
@OneToOne(mappedBy = "cajaFormaPago")
|
||||
private CajaDetPago cajaDetPago;
|
||||
|
||||
public Long getCajaFormaPagoId() {
|
||||
return cajaFormaPagoId;
|
||||
}
|
||||
|
||||
public void setCajaFormaPagoId(Long cajaFormaPagoId) {
|
||||
this.cajaFormaPagoId = cajaFormaPagoId;
|
||||
}
|
||||
|
||||
public Caja getCaja() {
|
||||
return caja;
|
||||
}
|
||||
|
||||
public void setCaja(Caja caja) {
|
||||
this.caja = caja;
|
||||
}
|
||||
|
||||
public FormaPago getFormapago() {
|
||||
return formapago;
|
||||
}
|
||||
|
||||
public void setFormapago(FormaPago formapago) {
|
||||
this.formapago = formapago;
|
||||
}
|
||||
|
||||
public BigDecimal getImporte() {
|
||||
return importe;
|
||||
}
|
||||
|
||||
public void setImporte(BigDecimal importe) {
|
||||
this.importe = importe;
|
||||
}
|
||||
|
||||
public Boolean getIndreplica() {
|
||||
return indreplica;
|
||||
}
|
||||
|
||||
public void setIndreplica(Boolean indreplica) {
|
||||
this.indreplica = indreplica;
|
||||
}
|
||||
|
||||
public Boolean getActivo() {
|
||||
return activo;
|
||||
}
|
||||
|
||||
public void setActivo(Boolean activo) {
|
||||
this.activo = activo;
|
||||
}
|
||||
|
||||
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 Byte getNodoId() {
|
||||
return nodoId;
|
||||
}
|
||||
|
||||
public void setNodoId(Byte nodoId) {
|
||||
this.nodoId = nodoId;
|
||||
}
|
||||
|
||||
public CajaDetPago getCajaDetPago() {
|
||||
return cajaDetPago;
|
||||
}
|
||||
|
||||
public void setCajaDetPago(CajaDetPago cajaDetPago) {
|
||||
this.cajaDetPago = cajaDetPago;
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,260 @@
|
|||
package com.rjconsultores.ventaboletos.entidad;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.sql.Clob;
|
||||
import java.util.Date;
|
||||
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.FetchType;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.JoinColumn;
|
||||
import javax.persistence.ManyToOne;
|
||||
import javax.persistence.OneToOne;
|
||||
import javax.persistence.Table;
|
||||
import javax.persistence.Temporal;
|
||||
import javax.persistence.TemporalType;
|
||||
|
||||
@Entity
|
||||
@Table(name = "CAJA_TARJETA")
|
||||
public class CajaTarjeta implements java.io.Serializable {
|
||||
|
||||
private static final long serialVersionUID = 5807160178691935393L;
|
||||
|
||||
@Id
|
||||
@Column(name = "CAJATARJETA_ID", unique = true, nullable = false, precision = 10, scale = 0)
|
||||
private Long cajaTarjetaId;
|
||||
|
||||
@OneToOne(fetch = FetchType.LAZY)
|
||||
@JoinColumn(name = "CAJADETPAGO_ID")
|
||||
private CajaDetPago cajaDetPago;
|
||||
|
||||
@ManyToOne(fetch = FetchType.LAZY)
|
||||
@JoinColumn(name = "CAJADIVERSOSPAGO_ID")
|
||||
private CajaDiversosPago cajaDiversosPago;
|
||||
|
||||
@Column(name = "NOMBTITULAR", length = 180)
|
||||
private String nombtitular;
|
||||
|
||||
@Column(name = "TIPOTARJETA", length = 66)
|
||||
private String tipotarjeta;
|
||||
|
||||
@Column(name = "NUMTARJETA", length = 48)
|
||||
private String numtarjeta;
|
||||
|
||||
@Column(name = "NUMAUTORIZACION", length = 45)
|
||||
private String numautorizacion;
|
||||
|
||||
@Column(name = "INDREPLICA", precision = 1, scale = 0)
|
||||
private Boolean indreplica;
|
||||
|
||||
@Column(name = "ACTIVO", precision = 1, scale = 0)
|
||||
private Boolean activo;
|
||||
|
||||
@Temporal(TemporalType.DATE)
|
||||
@Column(name = "FECMODIF", length = 7)
|
||||
private Date fecmodif;
|
||||
|
||||
@Column(name = "USUARIO_ID", precision = 7, scale = 0)
|
||||
private Integer usuarioId;
|
||||
|
||||
@Column(name = "NODO_ID", precision = 2, scale = 0)
|
||||
private Byte nodoId;
|
||||
|
||||
@Column(name = "DESCOPERACION", length = 90)
|
||||
private String descoperacion;
|
||||
|
||||
@Temporal(TemporalType.DATE)
|
||||
@Column(name = "FECOPERACION", length = 7)
|
||||
private Date fecoperacion;
|
||||
|
||||
@Column(name = "VOUCHERCLIENTE")
|
||||
private Clob vouchercliente;
|
||||
|
||||
@Column(name = "VOUCHERCOMERCIO")
|
||||
private Clob vouchercomercio;
|
||||
|
||||
@Column(name = "NSU", length = 45)
|
||||
private String nsu;
|
||||
|
||||
@Column(name = "NSUHOST", length = 45)
|
||||
private String nsuhost;
|
||||
|
||||
@Column(name = "IMPORTE", precision = 11)
|
||||
private BigDecimal importe;
|
||||
|
||||
@Column(name = "CANTPARCELAS", precision = 2, scale = 0)
|
||||
private Byte cantparcelas;
|
||||
|
||||
@Column(name = "DESCOPERADORACARTAO", length = 50)
|
||||
private String descoperadoracartao;
|
||||
|
||||
public Long getCajaTarjetaId() {
|
||||
return cajaTarjetaId;
|
||||
}
|
||||
|
||||
public void setCajaTarjetaId(Long cajaTarjetaId) {
|
||||
this.cajaTarjetaId = cajaTarjetaId;
|
||||
}
|
||||
|
||||
public CajaDetPago getCajaDetPago() {
|
||||
return cajaDetPago;
|
||||
}
|
||||
|
||||
public void setCajaDetPago(CajaDetPago cajaDetPago) {
|
||||
this.cajaDetPago = cajaDetPago;
|
||||
}
|
||||
|
||||
public CajaDiversosPago getCajaDiversosPago() {
|
||||
return cajaDiversosPago;
|
||||
}
|
||||
|
||||
public void setCajaDiversosPago(CajaDiversosPago cajaDiversosPago) {
|
||||
this.cajaDiversosPago = cajaDiversosPago;
|
||||
}
|
||||
|
||||
public String getNombtitular() {
|
||||
return nombtitular;
|
||||
}
|
||||
|
||||
public void setNombtitular(String nombtitular) {
|
||||
this.nombtitular = nombtitular;
|
||||
}
|
||||
|
||||
public String getTipotarjeta() {
|
||||
return tipotarjeta;
|
||||
}
|
||||
|
||||
public void setTipotarjeta(String tipotarjeta) {
|
||||
this.tipotarjeta = tipotarjeta;
|
||||
}
|
||||
|
||||
public String getNumtarjeta() {
|
||||
return numtarjeta;
|
||||
}
|
||||
|
||||
public void setNumtarjeta(String numtarjeta) {
|
||||
this.numtarjeta = numtarjeta;
|
||||
}
|
||||
|
||||
public String getNumautorizacion() {
|
||||
return numautorizacion;
|
||||
}
|
||||
|
||||
public void setNumautorizacion(String numautorizacion) {
|
||||
this.numautorizacion = numautorizacion;
|
||||
}
|
||||
|
||||
public Boolean getIndreplica() {
|
||||
return indreplica;
|
||||
}
|
||||
|
||||
public void setIndreplica(Boolean indreplica) {
|
||||
this.indreplica = indreplica;
|
||||
}
|
||||
|
||||
public Boolean getActivo() {
|
||||
return activo;
|
||||
}
|
||||
|
||||
public void setActivo(Boolean activo) {
|
||||
this.activo = activo;
|
||||
}
|
||||
|
||||
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 Byte getNodoId() {
|
||||
return nodoId;
|
||||
}
|
||||
|
||||
public void setNodoId(Byte nodoId) {
|
||||
this.nodoId = nodoId;
|
||||
}
|
||||
|
||||
public String getDescoperacion() {
|
||||
return descoperacion;
|
||||
}
|
||||
|
||||
public void setDescoperacion(String descoperacion) {
|
||||
this.descoperacion = descoperacion;
|
||||
}
|
||||
|
||||
public Date getFecoperacion() {
|
||||
return fecoperacion;
|
||||
}
|
||||
|
||||
public void setFecoperacion(Date fecoperacion) {
|
||||
this.fecoperacion = fecoperacion;
|
||||
}
|
||||
|
||||
public Clob getVouchercliente() {
|
||||
return vouchercliente;
|
||||
}
|
||||
|
||||
public void setVouchercliente(Clob vouchercliente) {
|
||||
this.vouchercliente = vouchercliente;
|
||||
}
|
||||
|
||||
public Clob getVouchercomercio() {
|
||||
return vouchercomercio;
|
||||
}
|
||||
|
||||
public void setVouchercomercio(Clob vouchercomercio) {
|
||||
this.vouchercomercio = vouchercomercio;
|
||||
}
|
||||
|
||||
public String getNsu() {
|
||||
return nsu;
|
||||
}
|
||||
|
||||
public void setNsu(String nsu) {
|
||||
this.nsu = nsu;
|
||||
}
|
||||
|
||||
public String getNsuhost() {
|
||||
return nsuhost;
|
||||
}
|
||||
|
||||
public void setNsuhost(String nsuhost) {
|
||||
this.nsuhost = nsuhost;
|
||||
}
|
||||
|
||||
public BigDecimal getImporte() {
|
||||
return importe;
|
||||
}
|
||||
|
||||
public void setImporte(BigDecimal importe) {
|
||||
this.importe = importe;
|
||||
}
|
||||
|
||||
public Byte getCantparcelas() {
|
||||
return cantparcelas;
|
||||
}
|
||||
|
||||
public void setCantparcelas(Byte cantparcelas) {
|
||||
this.cantparcelas = cantparcelas;
|
||||
}
|
||||
|
||||
public String getDescoperadoracartao() {
|
||||
return descoperadoracartao;
|
||||
}
|
||||
|
||||
public void setDescoperadoracartao(String descoperadoracartao) {
|
||||
this.descoperadoracartao = descoperadoracartao;
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,212 @@
|
|||
package com.rjconsultores.ventaboletos.entidad;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.OneToMany;
|
||||
import javax.persistence.Table;
|
||||
import javax.persistence.Temporal;
|
||||
import javax.persistence.TemporalType;
|
||||
|
||||
@Entity
|
||||
@Table(name = "NOTA_CREDITO_VENDA_PACOTE", schema = "VTABOL")
|
||||
public class NotaCreditoVendaPacote implements java.io.Serializable {
|
||||
|
||||
private static final long serialVersionUID = -4838838474645281215L;
|
||||
|
||||
@Id
|
||||
@Column(name = "NOTACREDITOVENDAPACOTE_ID", unique = true, nullable = false, precision = 7, scale = 0)
|
||||
private Long notaCreditoVendaPacoteId;
|
||||
|
||||
@Column(name = "MOTIVOCANCELVENDAPACOTE_ID", precision = 7, scale = 0)
|
||||
private Integer motivocancelvendapacoteId;
|
||||
|
||||
@Column(name = "VENDAPACOTECANCELAMENTO_ID", precision = 7, scale = 0)
|
||||
private Integer vendapacotecancelamentoId;
|
||||
|
||||
@Column(name = "VENDAPACOTEPAGAMENTO_ID", precision = 7, scale = 0)
|
||||
private Integer vendapacotepagamentoId;
|
||||
|
||||
@Temporal(TemporalType.DATE)
|
||||
@Column(name = "DATAPAGAMENTO", length = 7)
|
||||
private Date datapagamento;
|
||||
|
||||
@Column(name = "VALOR", nullable = false, precision = 7)
|
||||
private BigDecimal valor;
|
||||
|
||||
@Column(name = "SITUACAO", nullable = false, precision = 1, scale = 0)
|
||||
private boolean situacao;
|
||||
|
||||
@Column(name = "USUARIO_ID", precision = 7, scale = 0)
|
||||
private Integer usuarioId;
|
||||
|
||||
@Temporal(TemporalType.DATE)
|
||||
@Column(name = "FECMODIF", nullable = false, length = 7)
|
||||
private Date fecmodif;
|
||||
|
||||
@Column(name = "ACTIVO", nullable = false, precision = 1, scale = 0)
|
||||
private Boolean activo;
|
||||
|
||||
@Column(name = "SALDO_PAGAR", precision = 7)
|
||||
private BigDecimal saldoPagar;
|
||||
|
||||
@Column(name = "PUNTOVENTA_ID", precision = 7, scale = 0)
|
||||
private Integer puntoventaId;
|
||||
|
||||
@Column(name = "PUNTOVENTAPAGAMENTO_ID", precision = 7, scale = 0)
|
||||
private Integer puntoventapagamentoId;
|
||||
|
||||
@Column(name = "USUARIOPAGAMENTO_ID", precision = 7, scale = 0)
|
||||
private Integer usuariopagamentoId;
|
||||
|
||||
@Temporal(TemporalType.DATE)
|
||||
@Column(name = "DATANOTACREDITO", length = 7)
|
||||
private Date datanotacredito;
|
||||
|
||||
@OneToMany(mappedBy = "notaCreditoVendaPacote")
|
||||
private List<CajaDiversos> cajaDiversosList;
|
||||
|
||||
@OneToMany(mappedBy = "notaCreditoVendaPacote")
|
||||
private List<OCDDatosPagamento> ocdDatosPagamentoList;
|
||||
|
||||
public Long getNotaCreditoVendaPacoteId() {
|
||||
return notaCreditoVendaPacoteId;
|
||||
}
|
||||
|
||||
public void setNotaCreditoVendaPacoteId(Long notaCreditoVendaPacoteId) {
|
||||
this.notaCreditoVendaPacoteId = notaCreditoVendaPacoteId;
|
||||
}
|
||||
|
||||
public Integer getMotivocancelvendapacoteId() {
|
||||
return motivocancelvendapacoteId;
|
||||
}
|
||||
|
||||
public void setMotivocancelvendapacoteId(Integer motivocancelvendapacoteId) {
|
||||
this.motivocancelvendapacoteId = motivocancelvendapacoteId;
|
||||
}
|
||||
|
||||
public Integer getVendapacotecancelamentoId() {
|
||||
return vendapacotecancelamentoId;
|
||||
}
|
||||
|
||||
public void setVendapacotecancelamentoId(Integer vendapacotecancelamentoId) {
|
||||
this.vendapacotecancelamentoId = vendapacotecancelamentoId;
|
||||
}
|
||||
|
||||
public Integer getVendapacotepagamentoId() {
|
||||
return vendapacotepagamentoId;
|
||||
}
|
||||
|
||||
public void setVendapacotepagamentoId(Integer vendapacotepagamentoId) {
|
||||
this.vendapacotepagamentoId = vendapacotepagamentoId;
|
||||
}
|
||||
|
||||
public Date getDatapagamento() {
|
||||
return datapagamento;
|
||||
}
|
||||
|
||||
public void setDatapagamento(Date datapagamento) {
|
||||
this.datapagamento = datapagamento;
|
||||
}
|
||||
|
||||
public BigDecimal getValor() {
|
||||
return valor;
|
||||
}
|
||||
|
||||
public void setValor(BigDecimal valor) {
|
||||
this.valor = valor;
|
||||
}
|
||||
|
||||
public boolean isSituacao() {
|
||||
return situacao;
|
||||
}
|
||||
|
||||
public void setSituacao(boolean situacao) {
|
||||
this.situacao = situacao;
|
||||
}
|
||||
|
||||
public Integer getUsuarioId() {
|
||||
return usuarioId;
|
||||
}
|
||||
|
||||
public void setUsuarioId(Integer usuarioId) {
|
||||
this.usuarioId = usuarioId;
|
||||
}
|
||||
|
||||
public Date getFecmodif() {
|
||||
return fecmodif;
|
||||
}
|
||||
|
||||
public void setFecmodif(Date fecmodif) {
|
||||
this.fecmodif = fecmodif;
|
||||
}
|
||||
|
||||
public Boolean getActivo() {
|
||||
return activo;
|
||||
}
|
||||
|
||||
public void setActivo(Boolean activo) {
|
||||
this.activo = activo;
|
||||
}
|
||||
|
||||
public BigDecimal getSaldoPagar() {
|
||||
return saldoPagar;
|
||||
}
|
||||
|
||||
public void setSaldoPagar(BigDecimal saldoPagar) {
|
||||
this.saldoPagar = saldoPagar;
|
||||
}
|
||||
|
||||
public Integer getPuntoventaId() {
|
||||
return puntoventaId;
|
||||
}
|
||||
|
||||
public void setPuntoventaId(Integer puntoventaId) {
|
||||
this.puntoventaId = puntoventaId;
|
||||
}
|
||||
|
||||
public Integer getPuntoventapagamentoId() {
|
||||
return puntoventapagamentoId;
|
||||
}
|
||||
|
||||
public void setPuntoventapagamentoId(Integer puntoventapagamentoId) {
|
||||
this.puntoventapagamentoId = puntoventapagamentoId;
|
||||
}
|
||||
|
||||
public Integer getUsuariopagamentoId() {
|
||||
return usuariopagamentoId;
|
||||
}
|
||||
|
||||
public void setUsuariopagamentoId(Integer usuariopagamentoId) {
|
||||
this.usuariopagamentoId = usuariopagamentoId;
|
||||
}
|
||||
|
||||
public Date getDatanotacredito() {
|
||||
return datanotacredito;
|
||||
}
|
||||
|
||||
public void setDatanotacredito(Date datanotacredito) {
|
||||
this.datanotacredito = datanotacredito;
|
||||
}
|
||||
|
||||
public List<CajaDiversos> getCajaDiversosList() {
|
||||
return cajaDiversosList;
|
||||
}
|
||||
|
||||
public void setCajaDiversosList(List<CajaDiversos> cajaDiversos) {
|
||||
this.cajaDiversosList = cajaDiversos;
|
||||
}
|
||||
|
||||
public List<OCDDatosPagamento> getOcdDatosPagamentoList() {
|
||||
return ocdDatosPagamentoList;
|
||||
}
|
||||
|
||||
public void setOcdDatosPagamentoList(List<OCDDatosPagamento> ocdDatosPagamentos) {
|
||||
this.ocdDatosPagamentoList = ocdDatosPagamentos;
|
||||
}
|
||||
|
||||
}
|
|
@ -2,6 +2,7 @@ package com.rjconsultores.ventaboletos.entidad;
|
|||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.Entity;
|
||||
|
@ -10,6 +11,7 @@ import javax.persistence.GenerationType;
|
|||
import javax.persistence.Id;
|
||||
import javax.persistence.JoinColumn;
|
||||
import javax.persistence.ManyToOne;
|
||||
import javax.persistence.OneToMany;
|
||||
import javax.persistence.SequenceGenerator;
|
||||
import javax.persistence.Table;
|
||||
import javax.persistence.Temporal;
|
||||
|
@ -24,33 +26,66 @@ public class OCD implements java.io.Serializable {
|
|||
*/
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@SequenceGenerator(name = "OCD_SEQ", sequenceName = "OCD_SEQ", allocationSize = 1)
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.AUTO, generator = "OCD_SEQ")
|
||||
@Column(name = "OCD_ID", unique = true, nullable = false, precision = 15, scale = 0)
|
||||
private Long ocdId;
|
||||
|
||||
@Column(name = "BOLETO_ID", precision = 15, scale = 0)
|
||||
private Long boletoId;
|
||||
@JoinColumn(name = "PUNTOVENTA_ID")
|
||||
@ManyToOne
|
||||
private PuntoVenta puntoVenta;
|
||||
|
||||
@Column(name = "NUMTARJETA",length=16)
|
||||
private String numtarjeta;
|
||||
@Column(name = "NUMAUTORIZACION",length=15)
|
||||
private String numautorizacion;
|
||||
@Column(name = "NSU",length=6)
|
||||
private String nsu;
|
||||
|
||||
|
||||
@Column(name = "NUMOPERACION", length = 36)
|
||||
private String numoperacion;
|
||||
|
||||
@Temporal(TemporalType.DATE)
|
||||
@Column(name = "FECPAGAR", length = 7)
|
||||
private Date fecpagar;
|
||||
@Column(name = "VALOR_PAGAR", precision = 7, scale = 2)
|
||||
private BigDecimal valorPagar;
|
||||
@Column(name = "SALDO_PAGAR")
|
||||
private BigDecimal saldoPagar;
|
||||
@Column(name = "PENALIZACION", precision = 7, scale = 2)
|
||||
private BigDecimal penalizacion;
|
||||
|
||||
@Column(name = "USUARIOINC_ID", precision = 7, scale = 0)
|
||||
private Integer usuarioIncId;
|
||||
@Temporal(TemporalType.DATE)
|
||||
@Column(name = "FECINC", length = 7)
|
||||
private Date fecinc;
|
||||
|
||||
@Column(name = "INDPAGO", precision = 1, scale = 0)
|
||||
private Boolean indpago;
|
||||
@Column(name = "USUARIOPAGO_ID", precision = 7, scale = 0)
|
||||
private Integer usuarioPagoId;
|
||||
@Temporal(TemporalType.DATE)
|
||||
@Column(name = "FECPAGO", length = 7)
|
||||
private Date fecpago;
|
||||
@JoinColumn(name = "PUNTOVENTAPAGO_ID")
|
||||
@ManyToOne
|
||||
private PuntoVenta puntoVentaPago;
|
||||
|
||||
@Temporal(TemporalType.DATE)
|
||||
@Column(name = "FECMODIF", length = 7)
|
||||
private Date fecmodif;
|
||||
@Column(name = "USUARIO_ID", precision = 7, scale = 0)
|
||||
private Integer usuarioId;
|
||||
@Column(name = "ACTIVO", precision = 1, scale = 0)
|
||||
private Boolean activo;
|
||||
|
||||
@OneToMany(mappedBy = "ocd")
|
||||
private List<OCDDatosPagamento> ocdDatosPagamentos;
|
||||
|
||||
public OCD(){
|
||||
|
||||
}
|
||||
|
@ -102,10 +137,6 @@ public class OCD implements java.io.Serializable {
|
|||
this.activo = Boolean.TRUE;
|
||||
}
|
||||
|
||||
@SequenceGenerator(name = "OCD_SEQ", sequenceName = "OCD_SEQ", allocationSize = 1)
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.AUTO, generator = "OCD_SEQ")
|
||||
@Column(name = "OCD_ID", unique = true, nullable = false, precision = 15, scale = 0)
|
||||
public Long getOcdId() {
|
||||
return ocdId;
|
||||
}
|
||||
|
@ -113,7 +144,6 @@ public class OCD implements java.io.Serializable {
|
|||
this.ocdId = ocdId;
|
||||
}
|
||||
|
||||
@Column(name = "NUMOPERACION", precision = 7, scale = 0)
|
||||
public String getNumoperacion() {
|
||||
return numoperacion;
|
||||
}
|
||||
|
@ -121,8 +151,6 @@ public class OCD implements java.io.Serializable {
|
|||
this.numoperacion = numoperacion;
|
||||
}
|
||||
|
||||
@Temporal(TemporalType.DATE)
|
||||
@Column(name = "FECPAGAR", length = 7)
|
||||
public Date getFecpagar() {
|
||||
return fecpagar;
|
||||
}
|
||||
|
@ -130,7 +158,6 @@ public class OCD implements java.io.Serializable {
|
|||
this.fecpagar = fecpagar;
|
||||
}
|
||||
|
||||
@Column(name = "VALOR_PAGAR", precision = 7, scale = 2)
|
||||
public BigDecimal getValorPagar() {
|
||||
return valorPagar;
|
||||
}
|
||||
|
@ -138,7 +165,6 @@ public class OCD implements java.io.Serializable {
|
|||
this.valorPagar = valorPagar;
|
||||
}
|
||||
|
||||
@Column(name = "PENALIZACION", precision = 7, scale = 2)
|
||||
public BigDecimal getPenalizacion() {
|
||||
return penalizacion;
|
||||
}
|
||||
|
@ -146,7 +172,6 @@ public class OCD implements java.io.Serializable {
|
|||
this.penalizacion = penalizacion;
|
||||
}
|
||||
|
||||
@Column(name = "USUARIOINC_ID", precision = 7, scale = 0)
|
||||
public Integer getUsuarioIncId() {
|
||||
return usuarioIncId;
|
||||
}
|
||||
|
@ -154,8 +179,6 @@ public class OCD implements java.io.Serializable {
|
|||
this.usuarioIncId = usuarioIncId;
|
||||
}
|
||||
|
||||
@Temporal(TemporalType.DATE)
|
||||
@Column(name = "FECINC", length = 7)
|
||||
public Date getFecinc() {
|
||||
return fecinc;
|
||||
}
|
||||
|
@ -163,7 +186,6 @@ public class OCD implements java.io.Serializable {
|
|||
this.fecinc = fecinc;
|
||||
}
|
||||
|
||||
@Column(name = "INDPAGO", precision = 1, scale = 0)
|
||||
public Boolean getIndpago() {
|
||||
return indpago;
|
||||
}
|
||||
|
@ -171,7 +193,6 @@ public class OCD implements java.io.Serializable {
|
|||
this.indpago = indpago;
|
||||
}
|
||||
|
||||
@Column(name = "USUARIOPAGO_ID", precision = 7, scale = 0)
|
||||
public Integer getUsuarioPagoId() {
|
||||
return usuarioPagoId;
|
||||
}
|
||||
|
@ -179,8 +200,6 @@ public class OCD implements java.io.Serializable {
|
|||
this.usuarioPagoId = usuarioPagoId;
|
||||
}
|
||||
|
||||
@Temporal(TemporalType.DATE)
|
||||
@Column(name = "FECPAGO", length = 7)
|
||||
public Date getFecpago() {
|
||||
return fecpago;
|
||||
}
|
||||
|
@ -188,8 +207,6 @@ public class OCD implements java.io.Serializable {
|
|||
this.fecpago = fecpago;
|
||||
}
|
||||
|
||||
@JoinColumn(name = "PUNTOVENTA_ID")
|
||||
@ManyToOne
|
||||
public PuntoVenta getPuntoVenta() {
|
||||
return puntoVenta;
|
||||
}
|
||||
|
@ -198,8 +215,6 @@ public class OCD implements java.io.Serializable {
|
|||
this.puntoVenta = puntoVenta;
|
||||
}
|
||||
|
||||
@JoinColumn(name = "PUNTOVENTAPAGO_ID")
|
||||
@ManyToOne
|
||||
public PuntoVenta getPuntoVentaPago() {
|
||||
return puntoVentaPago;
|
||||
}
|
||||
|
@ -208,7 +223,6 @@ public class OCD implements java.io.Serializable {
|
|||
this.puntoVentaPago = puntoVentaPago;
|
||||
}
|
||||
|
||||
@Column(name = "BOLETO_ID", precision = 15, scale = 0)
|
||||
public Long getBoletoId() {
|
||||
return boletoId;
|
||||
}
|
||||
|
@ -217,7 +231,6 @@ public class OCD implements java.io.Serializable {
|
|||
this.boletoId = boletoId;
|
||||
}
|
||||
|
||||
@Column(name = "ACTIVO", precision = 1, scale = 0)
|
||||
public Boolean getActivo() {
|
||||
return activo;
|
||||
}
|
||||
|
@ -226,8 +239,6 @@ public class OCD implements java.io.Serializable {
|
|||
this.activo = activo;
|
||||
}
|
||||
|
||||
@Temporal(TemporalType.DATE)
|
||||
@Column(name = "FECMODIF", length = 7)
|
||||
public Date getFecmodif() {
|
||||
return fecmodif;
|
||||
}
|
||||
|
@ -236,7 +247,6 @@ public class OCD implements java.io.Serializable {
|
|||
this.fecmodif = fecmodif;
|
||||
}
|
||||
|
||||
@Column(name = "USUARIO_ID", precision = 7, scale = 0)
|
||||
public Integer getUsuarioId() {
|
||||
return usuarioId;
|
||||
}
|
||||
|
@ -244,7 +254,6 @@ public class OCD implements java.io.Serializable {
|
|||
public void setUsuarioId(Integer usuarioId) {
|
||||
this.usuarioId = usuarioId;
|
||||
}
|
||||
@Column(name = "NUMTARJETA",length=16)
|
||||
public String getNumtarjeta() {
|
||||
return numtarjeta;
|
||||
}
|
||||
|
@ -252,7 +261,6 @@ public class OCD implements java.io.Serializable {
|
|||
public void setNumtarjeta(String numtarjeta) {
|
||||
this.numtarjeta = numtarjeta;
|
||||
}
|
||||
@Column(name = "NUMAUTORIZACION",length=15)
|
||||
public String getNumautorizacion() {
|
||||
return numautorizacion;
|
||||
}
|
||||
|
@ -260,7 +268,7 @@ public class OCD implements java.io.Serializable {
|
|||
public void setNumautorizacion(String numautorizacion) {
|
||||
this.numautorizacion = numautorizacion;
|
||||
}
|
||||
@Column(name = "NSU",length=6)
|
||||
|
||||
public String getNsu() {
|
||||
return nsu;
|
||||
}
|
||||
|
@ -268,5 +276,46 @@ public class OCD implements java.io.Serializable {
|
|||
public void setNsu(String nsu) {
|
||||
this.nsu = nsu;
|
||||
}
|
||||
|
||||
public List<OCDDatosPagamento> getOcdDatosPagamentos() {
|
||||
return ocdDatosPagamentos;
|
||||
}
|
||||
|
||||
public void setOcdDatosPagamentos(List<OCDDatosPagamento> ocdDatosPagamentos) {
|
||||
this.ocdDatosPagamentos = ocdDatosPagamentos;
|
||||
}
|
||||
|
||||
public BigDecimal getSaldoPagar() {
|
||||
return saldoPagar;
|
||||
}
|
||||
|
||||
public void setSaldoPagar(BigDecimal saldoPagar) {
|
||||
this.saldoPagar = saldoPagar;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
final int prime = 31;
|
||||
int result = 1;
|
||||
result = prime * result + ((ocdId == null) ? 0 : ocdId.hashCode());
|
||||
return result;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object obj) {
|
||||
if (this == obj)
|
||||
return true;
|
||||
if (obj == null)
|
||||
return false;
|
||||
if (getClass() != obj.getClass())
|
||||
return false;
|
||||
OCD other = (OCD) obj;
|
||||
if (ocdId == null) {
|
||||
if (other.ocdId != null)
|
||||
return false;
|
||||
} else if (!ocdId.equals(other.ocdId))
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -0,0 +1,156 @@
|
|||
package com.rjconsultores.ventaboletos.entidad;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.JoinColumn;
|
||||
import javax.persistence.ManyToOne;
|
||||
import javax.persistence.Table;
|
||||
|
||||
@Entity
|
||||
@Table(name = "OCD_DATOS_PAGAMENTO")
|
||||
public class OCDDatosPagamento implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 4354050654434171301L;
|
||||
|
||||
@Id
|
||||
@Column(name = "OCDDATOSPAGAMENTO_ID")
|
||||
private Integer ocdDatosPagamentoId;
|
||||
|
||||
@ManyToOne
|
||||
@JoinColumn(name = "OCD_ID")
|
||||
private OCD ocd;
|
||||
|
||||
@Column(name = "TITULARCUENTA")
|
||||
private String titularcuenta;
|
||||
|
||||
@Column(name = "IDENTIFICACION")
|
||||
private String identificacion;
|
||||
|
||||
@Column(name = "BANCO")
|
||||
private String banco;
|
||||
|
||||
@Column(name = "CUENTABANCO")
|
||||
private String cuentabanco;
|
||||
|
||||
@Column(name = "AGENCIA")
|
||||
private String agencia;
|
||||
|
||||
@Column(name = "EMAIL")
|
||||
private String email;
|
||||
|
||||
@Column(name = "TELEFONO")
|
||||
private String telefono;
|
||||
|
||||
@ManyToOne
|
||||
@JoinColumn(name = "NOTACREDITOVENDAPACOTE_ID")
|
||||
private NotaCreditoVendaPacote notaCreditoVendaPacote;
|
||||
|
||||
public OCD getOcd() {
|
||||
return ocd;
|
||||
}
|
||||
|
||||
public void setOcd(OCD ocd) {
|
||||
this.ocd = ocd;
|
||||
}
|
||||
|
||||
public String getTitularcuenta() {
|
||||
return titularcuenta;
|
||||
}
|
||||
|
||||
public void setTitularcuenta(String titularcuenta) {
|
||||
this.titularcuenta = titularcuenta;
|
||||
}
|
||||
|
||||
public String getIdentificacion() {
|
||||
return identificacion;
|
||||
}
|
||||
|
||||
public void setIdentificacion(String identificacion) {
|
||||
this.identificacion = identificacion;
|
||||
}
|
||||
|
||||
public String getBanco() {
|
||||
return banco;
|
||||
}
|
||||
|
||||
public void setBanco(String banco) {
|
||||
this.banco = banco;
|
||||
}
|
||||
|
||||
public String getCuentabanco() {
|
||||
return cuentabanco;
|
||||
}
|
||||
|
||||
public void setCuentabanco(String cuentabanco) {
|
||||
this.cuentabanco = cuentabanco;
|
||||
}
|
||||
|
||||
public String getAgencia() {
|
||||
return agencia;
|
||||
}
|
||||
|
||||
public void setAgencia(String agencia) {
|
||||
this.agencia = agencia;
|
||||
}
|
||||
|
||||
public String getEmail() {
|
||||
return email;
|
||||
}
|
||||
|
||||
public void setEmail(String email) {
|
||||
this.email = email;
|
||||
}
|
||||
|
||||
public String getTelefono() {
|
||||
return telefono;
|
||||
}
|
||||
|
||||
public void setTelefono(String telefono) {
|
||||
this.telefono = telefono;
|
||||
}
|
||||
|
||||
public Integer getOcdDatosPagamentoId() {
|
||||
return ocdDatosPagamentoId;
|
||||
}
|
||||
|
||||
public void setOcdDatosPagamentoId(Integer ocdDatosPagamentoId) {
|
||||
this.ocdDatosPagamentoId = ocdDatosPagamentoId;
|
||||
}
|
||||
|
||||
public NotaCreditoVendaPacote getNotaCreditoVendaPacote() {
|
||||
return notaCreditoVendaPacote;
|
||||
}
|
||||
|
||||
public void setNotaCreditoVendaPacote(NotaCreditoVendaPacote notaCreditoVendaPacote) {
|
||||
this.notaCreditoVendaPacote = notaCreditoVendaPacote;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
final int prime = 31;
|
||||
int result = 1;
|
||||
result = prime * result + ((ocdDatosPagamentoId == null) ? 0 : ocdDatosPagamentoId.hashCode());
|
||||
return result;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object obj) {
|
||||
if (this == obj)
|
||||
return true;
|
||||
if (obj == null)
|
||||
return false;
|
||||
if (getClass() != obj.getClass())
|
||||
return false;
|
||||
OCDDatosPagamento other = (OCDDatosPagamento) obj;
|
||||
if (ocdDatosPagamentoId == null) {
|
||||
if (other.ocdDatosPagamentoId != null)
|
||||
return false;
|
||||
} else if (!ocdDatosPagamentoId.equals(other.ocdDatosPagamentoId))
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,13 @@
|
|||
package com.rjconsultores.ventaboletos.service;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
import com.rjconsultores.ventaboletos.vo.reembolsoocdnotacredito.ReembolsoOcdNotaCreditoVO;
|
||||
|
||||
public interface NotaCreditoVendaPacoteService {
|
||||
|
||||
List<ReembolsoOcdNotaCreditoVO> busquedaDatosReembolsoOcdNotaCreditoRS(Date fecInicial, Date fecFinal,
|
||||
Date fecPagamentoInicial, Date fecPagamentoFinal);
|
||||
|
||||
}
|
|
@ -0,0 +1,14 @@
|
|||
package com.rjconsultores.ventaboletos.service;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
import com.rjconsultores.ventaboletos.entidad.OCD;
|
||||
import com.rjconsultores.ventaboletos.vo.reembolsoocdnotacredito.ReembolsoOcdNotaCreditoVO;
|
||||
|
||||
public interface OCDService extends GenericService<OCD, Integer> {
|
||||
|
||||
List<ReembolsoOcdNotaCreditoVO> busquedaDatosReembolsoOcdNotaCreditoRS(Date fecInicial, Date fecFinal,
|
||||
Date fecPagamentoInicial, Date fecPagamentoFinal);
|
||||
|
||||
}
|
|
@ -0,0 +1,25 @@
|
|||
package com.rjconsultores.ventaboletos.service.impl;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import com.rjconsultores.ventaboletos.dao.NotaCreditoVendaPacoteDAO;
|
||||
import com.rjconsultores.ventaboletos.service.NotaCreditoVendaPacoteService;
|
||||
import com.rjconsultores.ventaboletos.vo.reembolsoocdnotacredito.ReembolsoOcdNotaCreditoVO;
|
||||
|
||||
@Service("notaCreditoVendaPacoteService")
|
||||
public class NotaCreditoVendaPacoteServiceImpl implements NotaCreditoVendaPacoteService {
|
||||
|
||||
@Autowired
|
||||
private NotaCreditoVendaPacoteDAO notaCreditoVendaPacoteDAO;
|
||||
|
||||
@Override
|
||||
public List<ReembolsoOcdNotaCreditoVO> busquedaDatosReembolsoOcdNotaCreditoRS(Date fecInicial, Date fecFinal, Date fecPagamentoInicial, Date fecPagamentoFinal) {
|
||||
return notaCreditoVendaPacoteDAO.busquedaDatosReembolsoOcdNotaCreditoRS(fecInicial, fecFinal, fecPagamentoInicial, fecPagamentoFinal);
|
||||
}
|
||||
|
||||
|
||||
}
|
|
@ -0,0 +1,53 @@
|
|||
package com.rjconsultores.ventaboletos.service.impl;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Propagation;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import com.rjconsultores.ventaboletos.dao.OCDDAO;
|
||||
import com.rjconsultores.ventaboletos.entidad.OCD;
|
||||
import com.rjconsultores.ventaboletos.service.OCDService;
|
||||
import com.rjconsultores.ventaboletos.vo.reembolsoocdnotacredito.ReembolsoOcdNotaCreditoVO;
|
||||
|
||||
@Service("ocdService")
|
||||
public class OCDServiceImpl implements OCDService {
|
||||
|
||||
@Autowired
|
||||
private OCDDAO ocdDAO;
|
||||
|
||||
@Override
|
||||
public List<OCD> obtenerTodos() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public OCD obtenerID(Integer id) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public OCD suscribir(OCD entidad) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public OCD actualizacion(OCD entidad) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void borrar(OCD entidad) {
|
||||
}
|
||||
|
||||
@Transactional(propagation = Propagation.REQUIRED)
|
||||
@Override
|
||||
public List<ReembolsoOcdNotaCreditoVO> busquedaDatosReembolsoOcdNotaCreditoRS(Date fecInicial, Date fecFinal, Date fecPagamentoInicial, Date fecPagamentoFinal) {
|
||||
return ocdDAO.busquedaDatosReembolsoOcdNotaCreditoRS(fecInicial, fecFinal, fecPagamentoInicial, fecPagamentoFinal);
|
||||
}
|
||||
|
||||
|
||||
}
|
|
@ -1,7 +1,13 @@
|
|||
package com.rjconsultores.ventaboletos.utilerias;
|
||||
|
||||
import com.rjconsultores.ventaboletos.entidad.OCD;
|
||||
|
||||
public class OcdUtil {
|
||||
|
||||
public static String generaLocalizadorOCD(OCD ocd) {
|
||||
return generaLocalizadorOCD(ocd.getNumoperacion(), ocd.getOcdId());
|
||||
}
|
||||
|
||||
public static String generaLocalizadorOCD(String numoperacion, Long ocdId) {
|
||||
char letraPosicao1 = (char) (numoperacion.charAt(numoperacion.length() - 1) + 25);
|
||||
char letraPosicao2 = (char) (numoperacion.charAt(numoperacion.length() - 2) + 25);
|
||||
|
|
|
@ -53,6 +53,8 @@ public class PacoteVO {
|
|||
|
||||
/* Auxiliares */
|
||||
private Integer qtdePacoteFormaspago;
|
||||
|
||||
private Boolean indEncargoVenta;
|
||||
|
||||
public Integer getQuantidade() {
|
||||
return quantidade;
|
||||
|
@ -302,4 +304,12 @@ public class PacoteVO {
|
|||
this.empresaId = empresaId;
|
||||
}
|
||||
|
||||
public Boolean getIndEncargoVenta() {
|
||||
return indEncargoVenta;
|
||||
}
|
||||
|
||||
public void setIndEncargoVenta(Boolean indEncargoVenta) {
|
||||
this.indEncargoVenta = indEncargoVenta;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -86,6 +86,7 @@ public class DatosTicketResultTransformer implements ResultTransformer {
|
|||
pacote.setDataalteracao((Date) tupleMap.get("FECMODIF"));
|
||||
pacote.setDatacancelamento((Date) tupleMap.get("DATACANCELAMENTO"));
|
||||
pacote.setEmpresaId((Integer) tupleMap.get("EMPRESA_ID"));
|
||||
pacote.setIndEncargoVenta((Boolean) tupleMap.get("INDENCARGOVENTA"));
|
||||
|
||||
if(StringUtils.isNotBlank(pacote.getDescpacote())){
|
||||
pacote.setDescpacote(StringEscapeUtils.unescapeHtml(pacote.getDescpacote().replaceAll(" ", " ").replaceAll("\\<.*?\\>", " ")).replaceAll("\\s+", " "));
|
||||
|
|
|
@ -10,8 +10,6 @@ import javax.xml.bind.annotation.XmlElementWrapper;
|
|||
import javax.xml.bind.annotation.XmlRootElement;
|
||||
import javax.xml.bind.annotation.XmlTransient;
|
||||
|
||||
import org.hibernate.type.StringType;
|
||||
|
||||
|
||||
@XmlRootElement
|
||||
public class CajaDetalleVO {
|
||||
|
@ -78,6 +76,7 @@ public class CajaDetalleVO {
|
|||
private String numoperacionOcd;
|
||||
private String operadoracartao;
|
||||
private String cvesecretaria;
|
||||
private Boolean indEncargoVenta;
|
||||
|
||||
public Long getCajaId() {
|
||||
return cajaId;
|
||||
|
@ -473,5 +472,11 @@ public class CajaDetalleVO {
|
|||
public void setCvesecretaria(String cvesecretaria) {
|
||||
this.cvesecretaria = cvesecretaria;
|
||||
}
|
||||
public Boolean getIndEncargoVenta() {
|
||||
return indEncargoVenta;
|
||||
}
|
||||
public void setIndEncargoVenta(Boolean indEncargoVenta) {
|
||||
this.indEncargoVenta = indEncargoVenta;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -0,0 +1,318 @@
|
|||
package com.rjconsultores.ventaboletos.vo.reembolsoocdnotacredito;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
import java.util.HashSet;
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
|
||||
import javax.xml.bind.annotation.XmlElement;
|
||||
import javax.xml.bind.annotation.XmlElementWrapper;
|
||||
import javax.xml.bind.annotation.XmlRootElement;
|
||||
|
||||
import com.rjconsultores.ventaboletos.entidad.CajaTarjeta;
|
||||
import com.rjconsultores.ventaboletos.entidad.NotaCreditoVendaPacote;
|
||||
import com.rjconsultores.ventaboletos.entidad.OCD;
|
||||
import com.rjconsultores.ventaboletos.entidad.OCDDatosPagamento;
|
||||
import com.rjconsultores.ventaboletos.utilerias.OcdUtil;
|
||||
|
||||
@XmlRootElement(name = "ocdNotaCredito")
|
||||
public class ReembolsoOcdNotaCreditoVO {
|
||||
|
||||
private String localizador;
|
||||
private Date data;
|
||||
private Date dataPagamento;
|
||||
private BigDecimal valor;
|
||||
|
||||
private Set<ReembolsoOcdNotaCreditoDatosPagamentoVO> datosPagamento;
|
||||
|
||||
private Set<ReembolsoOcdNotaCreditoTarjetaVO> tarjetas;
|
||||
|
||||
public ReembolsoOcdNotaCreditoVO() { }
|
||||
|
||||
public ReembolsoOcdNotaCreditoVO(List<OCDDatosPagamento> listDatosPagamento, List<CajaTarjeta> listCajaTarjeta) {
|
||||
|
||||
this.datosPagamento = new HashSet<ReembolsoOcdNotaCreditoDatosPagamentoVO>();
|
||||
for (OCDDatosPagamento datosPagamento : listDatosPagamento) {
|
||||
this.datosPagamento.add(new ReembolsoOcdNotaCreditoDatosPagamentoVO(datosPagamento));
|
||||
}
|
||||
|
||||
this.tarjetas = new HashSet<ReembolsoOcdNotaCreditoTarjetaVO>();
|
||||
for (CajaTarjeta cajaTarjeta : listCajaTarjeta) {
|
||||
this.tarjetas.add(new ReembolsoOcdNotaCreditoTarjetaVO(cajaTarjeta));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public ReembolsoOcdNotaCreditoVO(OCD ocd, List<OCDDatosPagamento> ocdDatosPagamentoList, List<CajaTarjeta> cajaTarjetaList) {
|
||||
|
||||
this(ocdDatosPagamentoList, cajaTarjetaList);
|
||||
this.localizador = OcdUtil.generaLocalizadorOCD(ocd);
|
||||
this.data = ocd.getFecinc();
|
||||
this.dataPagamento = ocd.getFecpagar();
|
||||
this.valor = ocd.getSaldoPagar();
|
||||
|
||||
}
|
||||
|
||||
public ReembolsoOcdNotaCreditoVO(NotaCreditoVendaPacote notaCredito, List<OCDDatosPagamento> ocdDatosPagamentoList, List<CajaTarjeta> cajaTarjetaList) {
|
||||
|
||||
this(ocdDatosPagamentoList, cajaTarjetaList);
|
||||
this.localizador = String.valueOf(notaCredito.getNotaCreditoVendaPacoteId());
|
||||
this.data = notaCredito.getDatanotacredito();
|
||||
this.dataPagamento = notaCredito.getDatapagamento();
|
||||
this.valor = notaCredito.getValor();
|
||||
|
||||
}
|
||||
|
||||
public String getLocalizador() {
|
||||
return localizador;
|
||||
}
|
||||
|
||||
public void setLocalizador(String localizador) {
|
||||
this.localizador = localizador;
|
||||
}
|
||||
|
||||
public Date getData() {
|
||||
return data;
|
||||
}
|
||||
|
||||
public void setData(Date data) {
|
||||
this.data = data;
|
||||
}
|
||||
|
||||
public Date getDataPagamento() {
|
||||
return dataPagamento;
|
||||
}
|
||||
|
||||
public void setDataPagamento(Date dataPagamento) {
|
||||
this.dataPagamento = dataPagamento;
|
||||
}
|
||||
|
||||
public BigDecimal getValor() {
|
||||
return valor;
|
||||
}
|
||||
|
||||
public void setValor(BigDecimal valor) {
|
||||
this.valor = valor;
|
||||
}
|
||||
|
||||
@XmlElementWrapper
|
||||
@XmlElement(name = "datoPagamento", type = ReembolsoOcdNotaCreditoDatosPagamentoVO.class)
|
||||
public Set<ReembolsoOcdNotaCreditoDatosPagamentoVO> getDatosPagamento() {
|
||||
return datosPagamento;
|
||||
}
|
||||
|
||||
public void setDatosPagamento(Set<ReembolsoOcdNotaCreditoDatosPagamentoVO> datosPagamento) {
|
||||
this.datosPagamento = datosPagamento;
|
||||
}
|
||||
|
||||
@XmlElementWrapper
|
||||
@XmlElement(name = "tarjeta", type = ReembolsoOcdNotaCreditoTarjetaVO.class)
|
||||
public Set<ReembolsoOcdNotaCreditoTarjetaVO> getTarjetas() {
|
||||
return tarjetas;
|
||||
}
|
||||
|
||||
public void setTarjetas(Set<ReembolsoOcdNotaCreditoTarjetaVO> tarjetas) {
|
||||
this.tarjetas = tarjetas;
|
||||
}
|
||||
|
||||
public static class ReembolsoOcdNotaCreditoTarjetaVO {
|
||||
|
||||
private String numtarjeta;
|
||||
private String numautorizacion;
|
||||
private String nsu;
|
||||
|
||||
public ReembolsoOcdNotaCreditoTarjetaVO() { }
|
||||
|
||||
public ReembolsoOcdNotaCreditoTarjetaVO(CajaTarjeta cajaTarjeta) {
|
||||
this.setNumtarjeta(cajaTarjeta.getNumtarjeta());
|
||||
this.setNumautorizacion(cajaTarjeta.getNumautorizacion());
|
||||
this.setNsu(cajaTarjeta.getNsu());
|
||||
}
|
||||
public String getNumtarjeta() {
|
||||
return numtarjeta;
|
||||
}
|
||||
public void setNumtarjeta(String numtarjeta) {
|
||||
this.numtarjeta = numtarjeta;
|
||||
}
|
||||
public String getNumautorizacion() {
|
||||
return numautorizacion;
|
||||
}
|
||||
public void setNumautorizacion(String numautorizacion) {
|
||||
this.numautorizacion = numautorizacion;
|
||||
}
|
||||
public String getNsu() {
|
||||
return nsu;
|
||||
}
|
||||
public void setNsu(String nsu) {
|
||||
this.nsu = nsu;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
final int prime = 31;
|
||||
int result = 1;
|
||||
result = prime * result + ((nsu == null) ? 0 : nsu.hashCode());
|
||||
result = prime * result + ((numautorizacion == null) ? 0 : numautorizacion.hashCode());
|
||||
result = prime * result + ((numtarjeta == null) ? 0 : numtarjeta.hashCode());
|
||||
return result;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object obj) {
|
||||
if (this == obj)
|
||||
return true;
|
||||
if (obj == null)
|
||||
return false;
|
||||
if (getClass() != obj.getClass())
|
||||
return false;
|
||||
ReembolsoOcdNotaCreditoTarjetaVO other = (ReembolsoOcdNotaCreditoTarjetaVO) obj;
|
||||
if (nsu == null) {
|
||||
if (other.nsu != null)
|
||||
return false;
|
||||
} else if (!nsu.equals(other.nsu))
|
||||
return false;
|
||||
if (numautorizacion == null) {
|
||||
if (other.numautorizacion != null)
|
||||
return false;
|
||||
} else if (!numautorizacion.equals(other.numautorizacion))
|
||||
return false;
|
||||
if (numtarjeta == null) {
|
||||
if (other.numtarjeta != null)
|
||||
return false;
|
||||
} else if (!numtarjeta.equals(other.numtarjeta))
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public static class ReembolsoOcdNotaCreditoDatosPagamentoVO {
|
||||
|
||||
private String titularcuenta;
|
||||
private String identificacion;
|
||||
private String banco;
|
||||
private String cuentabanco;
|
||||
private String agencia;
|
||||
private String email;
|
||||
private String telefono;
|
||||
|
||||
public ReembolsoOcdNotaCreditoDatosPagamentoVO() { }
|
||||
|
||||
public ReembolsoOcdNotaCreditoDatosPagamentoVO(OCDDatosPagamento datosPagamento) {
|
||||
this.titularcuenta = datosPagamento.getTitularcuenta();
|
||||
this.identificacion = datosPagamento.getIdentificacion();
|
||||
this.banco = datosPagamento.getBanco();
|
||||
this.cuentabanco = datosPagamento.getCuentabanco();
|
||||
this.agencia = datosPagamento.getAgencia();
|
||||
this.email = datosPagamento.getEmail();
|
||||
this.telefono = datosPagamento.getTelefono();
|
||||
}
|
||||
|
||||
public String getTitularcuenta() {
|
||||
return titularcuenta;
|
||||
}
|
||||
public void setTitularcuenta(String titularcuenta) {
|
||||
this.titularcuenta = titularcuenta;
|
||||
}
|
||||
public String getIdentificacion() {
|
||||
return identificacion;
|
||||
}
|
||||
public void setIdentificacion(String identificacion) {
|
||||
this.identificacion = identificacion;
|
||||
}
|
||||
public String getBanco() {
|
||||
return banco;
|
||||
}
|
||||
public void setBanco(String banco) {
|
||||
this.banco = banco;
|
||||
}
|
||||
public String getCuentabanco() {
|
||||
return cuentabanco;
|
||||
}
|
||||
public void setCuentabanco(String cuentabanco) {
|
||||
this.cuentabanco = cuentabanco;
|
||||
}
|
||||
public String getAgencia() {
|
||||
return agencia;
|
||||
}
|
||||
public void setAgencia(String agencia) {
|
||||
this.agencia = agencia;
|
||||
}
|
||||
public String getEmail() {
|
||||
return email;
|
||||
}
|
||||
public void setEmail(String email) {
|
||||
this.email = email;
|
||||
}
|
||||
public String getTelefono() {
|
||||
return telefono;
|
||||
}
|
||||
public void setTelefono(String telefono) {
|
||||
this.telefono = telefono;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
final int prime = 31;
|
||||
int result = 1;
|
||||
result = prime * result + ((agencia == null) ? 0 : agencia.hashCode());
|
||||
result = prime * result + ((banco == null) ? 0 : banco.hashCode());
|
||||
result = prime * result + ((cuentabanco == null) ? 0 : cuentabanco.hashCode());
|
||||
result = prime * result + ((email == null) ? 0 : email.hashCode());
|
||||
result = prime * result + ((identificacion == null) ? 0 : identificacion.hashCode());
|
||||
result = prime * result + ((telefono == null) ? 0 : telefono.hashCode());
|
||||
result = prime * result + ((titularcuenta == null) ? 0 : titularcuenta.hashCode());
|
||||
return result;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object obj) {
|
||||
if (this == obj)
|
||||
return true;
|
||||
if (obj == null)
|
||||
return false;
|
||||
if (getClass() != obj.getClass())
|
||||
return false;
|
||||
ReembolsoOcdNotaCreditoDatosPagamentoVO other = (ReembolsoOcdNotaCreditoDatosPagamentoVO) obj;
|
||||
if (agencia == null) {
|
||||
if (other.agencia != null)
|
||||
return false;
|
||||
} else if (!agencia.equals(other.agencia))
|
||||
return false;
|
||||
if (banco == null) {
|
||||
if (other.banco != null)
|
||||
return false;
|
||||
} else if (!banco.equals(other.banco))
|
||||
return false;
|
||||
if (cuentabanco == null) {
|
||||
if (other.cuentabanco != null)
|
||||
return false;
|
||||
} else if (!cuentabanco.equals(other.cuentabanco))
|
||||
return false;
|
||||
if (email == null) {
|
||||
if (other.email != null)
|
||||
return false;
|
||||
} else if (!email.equals(other.email))
|
||||
return false;
|
||||
if (identificacion == null) {
|
||||
if (other.identificacion != null)
|
||||
return false;
|
||||
} else if (!identificacion.equals(other.identificacion))
|
||||
return false;
|
||||
if (telefono == null) {
|
||||
if (other.telefono != null)
|
||||
return false;
|
||||
} else if (!telefono.equals(other.telefono))
|
||||
return false;
|
||||
if (titularcuenta == null) {
|
||||
if (other.titularcuenta != null)
|
||||
return false;
|
||||
} else if (!titularcuenta.equals(other.titularcuenta))
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,52 @@
|
|||
package com.rjconsultores.ventaboletos.ws.rs;
|
||||
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
import javax.ws.rs.GET;
|
||||
import javax.ws.rs.Path;
|
||||
import javax.ws.rs.Produces;
|
||||
import javax.ws.rs.QueryParam;
|
||||
import javax.ws.rs.core.MediaType;
|
||||
|
||||
import com.rjconsultores.ventaboletos.service.NotaCreditoVendaPacoteService;
|
||||
import com.rjconsultores.ventaboletos.service.OCDService;
|
||||
import com.rjconsultores.ventaboletos.vo.reembolsoocdnotacredito.ReembolsoOcdNotaCreditoVO;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.spring.AppContext;
|
||||
|
||||
@Path("/reembolsoocdnotacredito")
|
||||
public class ReembolsoOcdNotaCreditoRS {
|
||||
|
||||
private static SimpleDateFormat dateFormat = new SimpleDateFormat("dd/MM/yyyy HH:mm:ss");
|
||||
|
||||
@GET
|
||||
@Produces({ MediaType.APPLICATION_XML })
|
||||
public List<ReembolsoOcdNotaCreditoVO> busquedaDatosReembolsoOcdNotaCreditoRS(@QueryParam("fecinicial") String fecInicialParam,
|
||||
@QueryParam("fecfinal") String fecFinalParam, @QueryParam("fecpagamentoinicial") String fecPagamentoInicialParam,
|
||||
@QueryParam("fecpagamentofinal") String fecPagamentoFinalParam) {
|
||||
|
||||
Date fecInicial = getDateFromString(fecInicialParam);
|
||||
Date fecFinal = getDateFromString(fecFinalParam);
|
||||
Date fecPagamentoInicial = getDateFromString(fecPagamentoInicialParam);
|
||||
Date fecPagamentoFinal = getDateFromString(fecPagamentoFinalParam);
|
||||
|
||||
OCDService ocdService = (OCDService) AppContext.getApplicationContext().getBean(OCDService.class);
|
||||
List<ReembolsoOcdNotaCreditoVO> result = ocdService.busquedaDatosReembolsoOcdNotaCreditoRS(fecInicial, fecFinal, fecPagamentoInicial, fecPagamentoFinal);
|
||||
|
||||
NotaCreditoVendaPacoteService notaCreditoVendaPacoteService = (NotaCreditoVendaPacoteService) AppContext.getApplicationContext().getBean(NotaCreditoVendaPacoteService.class);
|
||||
result.addAll(notaCreditoVendaPacoteService.busquedaDatosReembolsoOcdNotaCreditoRS(fecInicial, fecFinal, fecPagamentoInicial, fecPagamentoFinal));
|
||||
|
||||
return result;
|
||||
|
||||
}
|
||||
|
||||
private Date getDateFromString(String dateString) {
|
||||
try {
|
||||
return dateFormat.parse(dateString);
|
||||
} catch (Exception e) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue