bug #6250: Adm - Telas para Persistirem os dados fiscais
Descrição Telas para persistirem os dados: - Totalizadores não fiscais - Meios de pagamento - Relatórios gerencias git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@43721 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
17ad799471
commit
bb142cb1e7
|
@ -0,0 +1,5 @@
|
|||
package com.rjconsultores.ventaboletos.dao;
|
||||
|
||||
public interface FiscalFormapagoEmpresa extends GenericDAO<FiscalFormapagoEmpresa, Long> {
|
||||
|
||||
}
|
|
@ -1,7 +1,30 @@
|
|||
package com.rjconsultores.ventaboletos.dao;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.rjconsultores.ventaboletos.entidad.FiscalFormapagoEmpresa;
|
||||
import com.rjconsultores.ventaboletos.entidad.FiscalImpressora;
|
||||
import com.rjconsultores.ventaboletos.entidad.FiscalRelgerencialEmpresa;
|
||||
import com.rjconsultores.ventaboletos.entidad.FiscalTotnaofiscalEmpresa;
|
||||
|
||||
public interface FiscalImpressoraDAO extends GenericDAO<FiscalImpressora, Integer>{
|
||||
|
||||
public List<FiscalTotnaofiscalEmpresa> buscarTotsNaoFiscaisEmpresa(Integer empresaEcfId);
|
||||
public List<FiscalTotnaofiscalEmpresa> obtenerTodosTotnaofiscalEmpresa();
|
||||
public FiscalTotnaofiscalEmpresa obtenerIDTotnaofiscalEmpresa(Long id);
|
||||
public FiscalTotnaofiscalEmpresa suscribirTotnaofiscalEmpresa(FiscalTotnaofiscalEmpresa entidad);
|
||||
public FiscalTotnaofiscalEmpresa actualizacionTotnaofiscalEmpres(FiscalTotnaofiscalEmpresa entidad);
|
||||
|
||||
public List<FiscalFormapagoEmpresa> buscarFormaPagoEmpresa(Integer empresaEcfId);
|
||||
public List<FiscalFormapagoEmpresa> obtenerTodosFormapagoEmpresa();
|
||||
public FiscalFormapagoEmpresa obtenerIDFormapagoEmpresa(Long id);
|
||||
public FiscalFormapagoEmpresa suscribirFormapagoEmpresa(FiscalFormapagoEmpresa entidad);
|
||||
public FiscalFormapagoEmpresa actualizacionFormapagoEmpresa(FiscalFormapagoEmpresa entidad);
|
||||
|
||||
public List<FiscalRelgerencialEmpresa> buscarItensRelgerencialEmpresa(Integer empresaEcfId);
|
||||
public List<FiscalRelgerencialEmpresa> obtenerTodosRelgerencialEmpresa();
|
||||
public FiscalRelgerencialEmpresa obtenerIDRelgerencialEmpresa(Long id);
|
||||
public FiscalRelgerencialEmpresa suscribirRelgerencialEmpresa(FiscalRelgerencialEmpresa entidad);
|
||||
public FiscalRelgerencialEmpresa actualizacionRelgerencialEmpresa(FiscalRelgerencialEmpresa entidad);
|
||||
|
||||
}
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
package com.rjconsultores.ventaboletos.dao;
|
||||
|
||||
public interface FiscalRelgerencialEmpresa extends GenericDAO<FiscalRelgerencialEmpresa, Long> {
|
||||
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
package com.rjconsultores.ventaboletos.dao;
|
||||
|
||||
import com.rjconsultores.ventaboletos.entidad.FiscalTotnaofiscalEmpresa;
|
||||
|
||||
public interface FiscalTotnaofiscalEmpresaDAO extends GenericDAO<FiscalTotnaofiscalEmpresa, Long> {
|
||||
}
|
|
@ -0,0 +1,96 @@
|
|||
package com.rjconsultores.ventaboletos.entidad;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
import javax.persistence.Basic;
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.JoinColumn;
|
||||
import javax.persistence.ManyToOne;
|
||||
import javax.persistence.OneToOne;
|
||||
import javax.persistence.SequenceGenerator;
|
||||
import javax.persistence.Table;
|
||||
import javax.persistence.Temporal;
|
||||
import javax.persistence.TemporalType;
|
||||
|
||||
@Entity
|
||||
@SequenceGenerator(name = "FISCAL_FORMAPAGO_EMP_SEQ", sequenceName = "FISCAL_FORMAPAGO_EMP_SEQ", allocationSize = 1)
|
||||
@Table(name = "FISCAL_FORMAPAGO_EMPRESA")
|
||||
public class FiscalFormapagoEmpresa {
|
||||
|
||||
@Id
|
||||
@Basic(optional = false)
|
||||
@Column(name = "FISCALFORMAPAGOEMPRESA_ID")
|
||||
@GeneratedValue(strategy = GenerationType.AUTO, generator = "FISCAL_FORMAPAGO_EMP_SEQ")
|
||||
private Long fiscalformapagoempresaId;
|
||||
@Column(name = "TIPOFORMAPAGO")
|
||||
private String tipoformapago;
|
||||
@Column(name = "DESCRICAO")
|
||||
private String descricao;
|
||||
@ManyToOne
|
||||
@JoinColumn(name = "EMPRESA_ID")
|
||||
private Empresa empresa;
|
||||
@Column(name = "ACTIVO")
|
||||
private Boolean activo;
|
||||
@Column(name = "FECMODIF")
|
||||
@Temporal(TemporalType.TIMESTAMP)
|
||||
private Date fecmodif;
|
||||
@Column(name = "USUARIO_ID")
|
||||
private Integer usuarioId;
|
||||
@ManyToOne
|
||||
@JoinColumn(name = "FORMAPAGO_ID")
|
||||
private FormaPago formaPago;
|
||||
|
||||
|
||||
public String getDescricao() {
|
||||
return descricao;
|
||||
}
|
||||
public void setDescricao(String descricao) {
|
||||
this.descricao = descricao;
|
||||
}
|
||||
public Empresa getEmpresa() {
|
||||
return empresa;
|
||||
}
|
||||
public void setEmpresa(Empresa empresa) {
|
||||
this.empresa = empresa;
|
||||
}
|
||||
public Date getFecmodif() {
|
||||
return fecmodif;
|
||||
}
|
||||
public void setFecmodif(Date fecmodif) {
|
||||
this.fecmodif = fecmodif;
|
||||
}
|
||||
public Integer getUsuarioId() {
|
||||
return usuarioId;
|
||||
}
|
||||
public void setUsuarioId(Integer usuarioId) {
|
||||
this.usuarioId = usuarioId;
|
||||
}
|
||||
public Boolean getActivo() {
|
||||
return activo;
|
||||
}
|
||||
public void setActivo(Boolean activo) {
|
||||
this.activo = activo;
|
||||
}
|
||||
public FormaPago getFormaPago() {
|
||||
return formaPago;
|
||||
}
|
||||
public void setFormaPago(FormaPago formaPago) {
|
||||
this.formaPago = formaPago;
|
||||
}
|
||||
public Long getFiscalformapagoempresaId() {
|
||||
return fiscalformapagoempresaId;
|
||||
}
|
||||
public void setFiscalformapagoempresaId(Long fiscalformapagoempresaId) {
|
||||
this.fiscalformapagoempresaId = fiscalformapagoempresaId;
|
||||
}
|
||||
public String getTipoformapago() {
|
||||
return tipoformapago;
|
||||
}
|
||||
public void setTipoformapago(String tipoformapago) {
|
||||
this.tipoformapago = tipoformapago;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,94 @@
|
|||
package com.rjconsultores.ventaboletos.entidad;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
import javax.persistence.Basic;
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.JoinColumn;
|
||||
import javax.persistence.ManyToOne;
|
||||
import javax.persistence.SequenceGenerator;
|
||||
import javax.persistence.Table;
|
||||
import javax.persistence.Temporal;
|
||||
import javax.persistence.TemporalType;
|
||||
@Entity
|
||||
@SequenceGenerator(name = "FISCAL_RELGERENCIAL_EMP_SEQ", sequenceName = "FISCAL_RELGERENCIAL_EMP_SEQ", allocationSize = 1)
|
||||
@Table(name = "FISCAL_RELGERENCIAL_EMPRESA")
|
||||
public class FiscalRelgerencialEmpresa {
|
||||
|
||||
@Id
|
||||
@Basic(optional = false)
|
||||
@Column(name = "FISCALRELGERENCIAL_ID")
|
||||
@GeneratedValue(strategy = GenerationType.AUTO, generator = "FISCAL_RELGERENCIAL_EMP_SEQ")
|
||||
private Long fiscalrelgerencialId;
|
||||
@Column(name = "TIPORELGERENCIAL")
|
||||
private String tiporelgerencial;
|
||||
@Column(name = "INDICE")
|
||||
private String indice;
|
||||
@Column(name = "DESCRICAO")
|
||||
private String descricao;
|
||||
@ManyToOne
|
||||
@JoinColumn(name = "EMPRESA_ID")
|
||||
private Empresa empresa;
|
||||
@Column(name = "ACTIVO")
|
||||
private Boolean activo;
|
||||
@Column(name = "FECMODIF")
|
||||
@Temporal(TemporalType.TIMESTAMP)
|
||||
private Date fecmodif;
|
||||
@Column(name = "USUARIO_ID")
|
||||
private Integer usuarioId;
|
||||
|
||||
public Long getFiscalrelgerencialId() {
|
||||
return fiscalrelgerencialId;
|
||||
}
|
||||
public void setFiscalrelgerencialId(Long relgerencialId) {
|
||||
this.fiscalrelgerencialId = relgerencialId;
|
||||
}
|
||||
public String getTiporelgerencial() {
|
||||
return tiporelgerencial;
|
||||
}
|
||||
public void setTiporelgerencial(String tiporelgerencial) {
|
||||
this.tiporelgerencial = tiporelgerencial;
|
||||
}
|
||||
public String getIndice() {
|
||||
return indice;
|
||||
}
|
||||
public void setIndice(String indice) {
|
||||
this.indice = indice;
|
||||
}
|
||||
public String getDescricao() {
|
||||
return descricao;
|
||||
}
|
||||
public void setDescricao(String descricao) {
|
||||
this.descricao = descricao;
|
||||
}
|
||||
public Empresa getEmpresa() {
|
||||
return empresa;
|
||||
}
|
||||
public void setEmpresa(Empresa empresa) {
|
||||
this.empresa = empresa;
|
||||
}
|
||||
public Date getFecmodif() {
|
||||
return fecmodif;
|
||||
}
|
||||
public void setFecmodif(Date fecmodif) {
|
||||
this.fecmodif = fecmodif;
|
||||
}
|
||||
public Integer getUsuarioId() {
|
||||
return usuarioId;
|
||||
}
|
||||
public void setUsuarioId(Integer usuarioId) {
|
||||
this.usuarioId = usuarioId;
|
||||
}
|
||||
public Boolean getActivo() {
|
||||
return activo;
|
||||
}
|
||||
public void setActivo(Boolean activo) {
|
||||
this.activo = activo;
|
||||
}
|
||||
|
||||
|
||||
}
|
|
@ -0,0 +1,110 @@
|
|||
package com.rjconsultores.ventaboletos.entidad;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
import javax.persistence.Basic;
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.JoinColumn;
|
||||
import javax.persistence.ManyToOne;
|
||||
import javax.persistence.SequenceGenerator;
|
||||
import javax.persistence.Table;
|
||||
import javax.persistence.Temporal;
|
||||
import javax.persistence.TemporalType;
|
||||
@Entity
|
||||
@SequenceGenerator(name = "FISCAL_TOTNAOFISCAL_EMP_SEQ", sequenceName = "FISCAL_TOTNAOFISCAL_EMP_SEQ", allocationSize = 1)
|
||||
@Table(name = "FISCAL_TOTNAOFISCAL_EMPRESA")
|
||||
public class FiscalTotnaofiscalEmpresa {
|
||||
|
||||
@Id
|
||||
@Basic(optional = false)
|
||||
@Column(name = "FISCALTOTNAOFISCAL_ID")
|
||||
@GeneratedValue(strategy = GenerationType.AUTO, generator = "FISCAL_TOTNAOFISCAL_EMP_SEQ")
|
||||
private Long fiscaltotnaofiscalId;
|
||||
@Column(name = "TIPOTOTALIZADOR")
|
||||
private String tipototalizador;
|
||||
@Column(name = "INDICE")
|
||||
private String indice;
|
||||
@Column(name = "DESCRICAO")
|
||||
private String descricao;
|
||||
@Column(name = "INDIMPORTAR")
|
||||
private Boolean indimportar;
|
||||
@ManyToOne
|
||||
@JoinColumn(name = "EMPRESA_ID")
|
||||
private Empresa empresa;
|
||||
@ManyToOne
|
||||
@JoinColumn(name = "TIPOEVENTOEXTRA_ID")
|
||||
private TipoEventoExtra tipoeventoextra;
|
||||
@Column(name = "ACTIVO")
|
||||
private Boolean activo;
|
||||
@Column(name = "FECMODIF")
|
||||
@Temporal(TemporalType.TIMESTAMP)
|
||||
private Date fecmodif;
|
||||
@Column(name = "USUARIO_ID")
|
||||
private Integer usuarioId;
|
||||
|
||||
|
||||
public String getTipototalizador() {
|
||||
return tipototalizador;
|
||||
}
|
||||
public void setTipototalizador(String tipototalizador) {
|
||||
this.tipototalizador = tipototalizador;
|
||||
}
|
||||
public String getIndice() {
|
||||
return indice;
|
||||
}
|
||||
public void setIndice(String indice) {
|
||||
this.indice = indice;
|
||||
}
|
||||
public String getDescricao() {
|
||||
return descricao;
|
||||
}
|
||||
public void setDescricao(String descricao) {
|
||||
this.descricao = descricao;
|
||||
}
|
||||
public Boolean getIndimportar() {
|
||||
return indimportar;
|
||||
}
|
||||
public void setIndimportar(Boolean indimportar) {
|
||||
this.indimportar = indimportar;
|
||||
}
|
||||
public Empresa getEmpresa() {
|
||||
return empresa;
|
||||
}
|
||||
public void setEmpresa(Empresa empresa) {
|
||||
this.empresa = empresa;
|
||||
}
|
||||
public TipoEventoExtra getTipoeventoextra() {
|
||||
return tipoeventoextra;
|
||||
}
|
||||
public void setTipoeventoextra(TipoEventoExtra tipoeventoextra) {
|
||||
this.tipoeventoextra = tipoeventoextra;
|
||||
}
|
||||
public Date getFecmodif() {
|
||||
return fecmodif;
|
||||
}
|
||||
public void setFecmodif(Date fecmodif) {
|
||||
this.fecmodif = fecmodif;
|
||||
}
|
||||
public Integer getUsuarioId() {
|
||||
return usuarioId;
|
||||
}
|
||||
public void setUsuarioId(Integer usuarioId) {
|
||||
this.usuarioId = usuarioId;
|
||||
}
|
||||
public Boolean getActivo() {
|
||||
return activo;
|
||||
}
|
||||
public void setActivo(Boolean activo) {
|
||||
this.activo = activo;
|
||||
}
|
||||
public Long getFiscaltotnaofiscalId() {
|
||||
return fiscaltotnaofiscalId;
|
||||
}
|
||||
public void setFiscaltotnaofiscalId(Long fiscaltotnaofiscalId) {
|
||||
this.fiscaltotnaofiscalId = fiscaltotnaofiscalId;
|
||||
}
|
||||
}
|
|
@ -51,6 +51,8 @@ public class FormaPago implements Serializable {
|
|||
private String equivalenciaId;
|
||||
@Column(name = "CVEPAGO")
|
||||
private String cvePago;
|
||||
@Column(name = "IMPFISCAL")
|
||||
private Boolean impfiscal;
|
||||
@OneToMany(mappedBy = "formaPago")
|
||||
private List<ConfigRestriccionPago> configRestriccionPagoList;
|
||||
@OneToMany(mappedBy = "formaPago")
|
||||
|
@ -184,4 +186,12 @@ public class FormaPago implements Serializable {
|
|||
public String toString() {
|
||||
return getDescpago();
|
||||
}
|
||||
|
||||
public Boolean getImpfiscal() {
|
||||
return impfiscal;
|
||||
}
|
||||
|
||||
public void setImpfiscal(Boolean impfiscal) {
|
||||
this.impfiscal = impfiscal;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -310,8 +310,7 @@ public class TipoEventoExtra implements Serializable {
|
|||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "com.rjconsultores.ventaboletos.entidad.TipoEventoExtra[tipoeventoextraId="
|
||||
+ tipoeventoextraId + "]";
|
||||
return descTipoEvento;
|
||||
}
|
||||
|
||||
public String getNatureza() {
|
||||
|
@ -329,4 +328,6 @@ public class TipoEventoExtra implements Serializable {
|
|||
public void setContaContabil(String contaContabil) {
|
||||
this.contaContabil = contaContabil;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
|
@ -2,15 +2,34 @@ package com.rjconsultores.ventaboletos.service;
|
|||
|
||||
import java.util.List;
|
||||
|
||||
import com.rjconsultores.ventaboletos.entidad.FiscalFormapagoEmpresa;
|
||||
import com.rjconsultores.ventaboletos.entidad.FiscalImpressora;
|
||||
import com.rjconsultores.ventaboletos.entidad.FiscalRelgerencialEmpresa;
|
||||
import com.rjconsultores.ventaboletos.entidad.FiscalTotnaofiscalEmpresa;
|
||||
|
||||
public interface FiscalImpressoraService{
|
||||
|
||||
public List<FiscalImpressora> obtenerTodos();
|
||||
|
||||
public FiscalImpressora obtenerID(Integer id);
|
||||
|
||||
public FiscalImpressora suscribir(FiscalImpressora entidad);
|
||||
|
||||
public FiscalImpressora actualizacion(FiscalImpressora entidad);
|
||||
|
||||
|
||||
public List<FiscalTotnaofiscalEmpresa> buscarTotsNaoFiscaisEmpresa(Integer empresaEcfId);
|
||||
public List<FiscalTotnaofiscalEmpresa> obtenerTodosTotnaofiscalEmpresa();
|
||||
public FiscalTotnaofiscalEmpresa obtenerIDTotnaofiscalEmpresa(Long id);
|
||||
public FiscalTotnaofiscalEmpresa suscribirTotnaofiscalEmpresa(FiscalTotnaofiscalEmpresa entidad);
|
||||
public FiscalTotnaofiscalEmpresa actualizacionTotnaofiscalEmpresa(FiscalTotnaofiscalEmpresa entidad);
|
||||
|
||||
public List<FiscalFormapagoEmpresa> buscarFormaPagoEmpresa(Integer empresaEcfId);
|
||||
public List<FiscalFormapagoEmpresa> obtenerTodosFormapagoEmpresa();
|
||||
public FiscalFormapagoEmpresa obtenerIDFormapagoEmpresa(Long id);
|
||||
public FiscalFormapagoEmpresa suscribirFormapagoEmpresa(FiscalFormapagoEmpresa entidad);
|
||||
public FiscalFormapagoEmpresa actualizacionFormapagoEmpresa(FiscalFormapagoEmpresa entidad);
|
||||
|
||||
public List<FiscalRelgerencialEmpresa> buscarItensRelgerencialEmpresa(Integer empresaEcfId);
|
||||
public List<FiscalRelgerencialEmpresa> obtenerTodosRelgerencialEmpresa();
|
||||
public FiscalRelgerencialEmpresa obtenerIDRelgerencialEmpresa(Long id);
|
||||
public FiscalRelgerencialEmpresa suscribirRelgerencialEmpresa(FiscalRelgerencialEmpresa entidad);
|
||||
public FiscalRelgerencialEmpresa actualizacionRelgerencialEmpresa(FiscalRelgerencialEmpresa entidad);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue