fixed bug #10663
dev:Wilian qas:Wallysson git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@80068 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
4980d57ca9
commit
10298f24aa
|
@ -26,7 +26,7 @@ import javax.persistence.TemporalType;
|
||||||
import com.rjconsultores.ventaboletos.enums.TipoFormapago;
|
import com.rjconsultores.ventaboletos.enums.TipoFormapago;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author Administrador
|
* @author Administrador
|
||||||
*/
|
*/
|
||||||
@Entity
|
@Entity
|
||||||
|
@ -35,7 +35,7 @@ import com.rjconsultores.ventaboletos.enums.TipoFormapago;
|
||||||
public class FormaPago implements Serializable {
|
public class FormaPago implements Serializable {
|
||||||
|
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
@Id
|
@Id
|
||||||
@Basic(optional = false)
|
@Basic(optional = false)
|
||||||
@GeneratedValue(strategy = GenerationType.AUTO, generator = "FORMA_PAGO_SEQ")
|
@GeneratedValue(strategy = GenerationType.AUTO, generator = "FORMA_PAGO_SEQ")
|
||||||
|
@ -69,6 +69,8 @@ public class FormaPago implements Serializable {
|
||||||
private TipoFormapago tipoFormapago;
|
private TipoFormapago tipoFormapago;
|
||||||
@Column(name = "CVESISTEMA")
|
@Column(name = "CVESISTEMA")
|
||||||
private String cveSistema;
|
private String cveSistema;
|
||||||
|
@Column(name = "INDRESTRICAOFORMAPAGO")
|
||||||
|
private String indRestricaoFormaPago;
|
||||||
|
|
||||||
public FormaPago() {
|
public FormaPago() {
|
||||||
super();
|
super();
|
||||||
|
@ -78,7 +80,7 @@ public class FormaPago implements Serializable {
|
||||||
this();
|
this();
|
||||||
this.formapagoId = formapagoId;
|
this.formapagoId = formapagoId;
|
||||||
}
|
}
|
||||||
|
|
||||||
public FormaPago(Short formapagoId, String descpago) {
|
public FormaPago(Short formapagoId, String descpago) {
|
||||||
this();
|
this();
|
||||||
this.formapagoId = formapagoId;
|
this.formapagoId = formapagoId;
|
||||||
|
@ -238,4 +240,18 @@ public class FormaPago implements Serializable {
|
||||||
public void setCveSistema(String cveSistema) {
|
public void setCveSistema(String cveSistema) {
|
||||||
this.cveSistema = 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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue