dev:Wilian
qas:Wallysson

git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@80068 d1611594-4594-4d17-8e1d-87c2c4800839
master
thiago 2018-03-20 22:16:54 +00:00
parent 4980d57ca9
commit 10298f24aa
2 changed files with 52 additions and 3 deletions

View File

@ -26,7 +26,7 @@ import javax.persistence.TemporalType;
import com.rjconsultores.ventaboletos.enums.TipoFormapago;
/**
*
*
* @author Administrador
*/
@Entity
@ -35,7 +35,7 @@ import com.rjconsultores.ventaboletos.enums.TipoFormapago;
public class FormaPago implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@Basic(optional = false)
@GeneratedValue(strategy = GenerationType.AUTO, generator = "FORMA_PAGO_SEQ")
@ -69,6 +69,8 @@ public class FormaPago implements Serializable {
private TipoFormapago tipoFormapago;
@Column(name = "CVESISTEMA")
private String cveSistema;
@Column(name = "INDRESTRICAOFORMAPAGO")
private String indRestricaoFormaPago;
public FormaPago() {
super();
@ -78,7 +80,7 @@ public class FormaPago implements Serializable {
this();
this.formapagoId = formapagoId;
}
public FormaPago(Short formapagoId, String descpago) {
this();
this.formapagoId = formapagoId;
@ -238,4 +240,18 @@ public class FormaPago implements Serializable {
public void setCveSistema(String cveSistema) {
this.cveSistema = cveSistema;
}
/**
* @return the indRestricaoFormaPago
*/
public String getIndRestricaoFormaPago() {
return indRestricaoFormaPago;
}
/**
* @param indRestricaoFormaPago the indRestricaoFormaPago to set
*/
public void setIndRestricaoFormaPago(String indRestricaoFormaPago) {
this.indRestricaoFormaPago = indRestricaoFormaPago;
}
}

View File

@ -0,0 +1,33 @@
/**
*
*/
package com.rjconsultores.ventaboletos.enums;
/**
* @author Thiago
*
*/
public enum IndRestricaoFormaPago {
NORMAL("NO"),
TARIFA_E_TAXAS("TT"),
SOMENTE_TARIFA("ST");
String sigla;
IndRestricaoFormaPago(String sigla) {
this.sigla = sigla;
}
public String getSigla() {
return sigla;
}
@Override
public String toString() {
return sigla;
}
}