346 lines
7.6 KiB
Java
346 lines
7.6 KiB
Java
package it.acxent.contab;
|
|
|
|
import it.acxent.anag.Banca;
|
|
import it.acxent.anag.Clifor;
|
|
import it.acxent.db.ApplParmFull;
|
|
import it.acxent.db.CRAdapter;
|
|
import it.acxent.db.DBAdapter;
|
|
import it.acxent.util.Vectumerator;
|
|
import java.sql.Date;
|
|
|
|
public class DocumentoScadenzaCR extends CRAdapter {
|
|
private long id_documentoScadenza;
|
|
|
|
private long id_documento;
|
|
|
|
private Documento documento;
|
|
|
|
private long id_distintaRiba;
|
|
|
|
private DistintaRiba distintaRiba;
|
|
|
|
private Date dataScadenza;
|
|
|
|
private Date dataScadenzaDa;
|
|
|
|
private Date dataScadenzaA;
|
|
|
|
private Date dataScadenzaMDa;
|
|
|
|
private Date dataScadenzaMA;
|
|
|
|
private Date dataFatturaDa;
|
|
|
|
private Date dataFatturaA;
|
|
|
|
private double importoScadenza;
|
|
|
|
private long flgScadenzaSelezionata;
|
|
|
|
private long flgDaEstrarre;
|
|
|
|
private long flgAccorpaScadenze = 1L;
|
|
|
|
private long flgAll;
|
|
|
|
private long id_clifor;
|
|
|
|
private Vectumerator<Banca> vecRiba;
|
|
|
|
private Clifor clifor;
|
|
|
|
private String filePdf;
|
|
|
|
private String numDocumentoDa = "1";
|
|
|
|
private String numDocumentoA = "999999999";
|
|
|
|
private long flgDistinta;
|
|
|
|
private Date dataDistintaRiba = DBAdapter.getToday();
|
|
|
|
private long timestampElaborazione;
|
|
|
|
private long flgSoloRiba;
|
|
|
|
private long flgGestioneDistinta;
|
|
|
|
private long flgTipoPagamento;
|
|
|
|
private long flgOrderImporto;
|
|
|
|
private double totaleRiba;
|
|
|
|
public DocumentoScadenzaCR(ApplParmFull newApplParmFull) {
|
|
super(newApplParmFull);
|
|
}
|
|
|
|
public DocumentoScadenzaCR() {}
|
|
|
|
public long getId_documentoScadenza() {
|
|
return this.id_documentoScadenza;
|
|
}
|
|
|
|
public void setId_documentoScadenza(long id_incassoPagamento) {
|
|
this.id_documentoScadenza = id_incassoPagamento;
|
|
}
|
|
|
|
public void setDataScadenza(Date data) {
|
|
this.dataScadenza = data;
|
|
}
|
|
|
|
public double getImportoScadenza() {
|
|
return this.importoScadenza;
|
|
}
|
|
|
|
public void setImportoScadenza(double importo) {
|
|
this.importoScadenza = importo;
|
|
}
|
|
|
|
public long getId_documento() {
|
|
return this.id_documento;
|
|
}
|
|
|
|
public void setId_documento(long id_documento) {
|
|
this.id_documento = id_documento;
|
|
}
|
|
|
|
public Documento getDocumento() {
|
|
this.documento = (Documento)getSecondaryObject(this.documento, Documento.class, getId_documento());
|
|
return this.documento;
|
|
}
|
|
|
|
public void setDocumento(Documento documento) {
|
|
this.documento = documento;
|
|
}
|
|
|
|
public long getFlgScadenzaSelezionata() {
|
|
return this.flgScadenzaSelezionata;
|
|
}
|
|
|
|
public void setFlgScadenzaSelezionata(long flgTipoIncasso) {
|
|
this.flgScadenzaSelezionata = flgTipoIncasso;
|
|
}
|
|
|
|
public long getId_distintaRiba() {
|
|
return this.id_distintaRiba;
|
|
}
|
|
|
|
public void setId_distintaRiba(long id_distintaRiba) {
|
|
this.id_distintaRiba = id_distintaRiba;
|
|
}
|
|
|
|
public DistintaRiba getDistintaRiba() {
|
|
return this.distintaRiba;
|
|
}
|
|
|
|
public void setDistintaRiba(DistintaRiba distintaRiba) {
|
|
this.distintaRiba = distintaRiba;
|
|
}
|
|
|
|
public Date getDataScadenza() {
|
|
return this.dataScadenza;
|
|
}
|
|
|
|
public Date getDataScadenzaDa() {
|
|
return this.dataScadenzaDa;
|
|
}
|
|
|
|
public void setDataScadenzaDa(Date dataScadenzaDa) {
|
|
this.dataScadenzaDa = dataScadenzaDa;
|
|
}
|
|
|
|
public Date getDataScadenzaA() {
|
|
return this.dataScadenzaA;
|
|
}
|
|
|
|
public void setDataScadenzaA(Date dataScadenzaA) {
|
|
this.dataScadenzaA = dataScadenzaA;
|
|
}
|
|
|
|
public String getFilePdf() {
|
|
return (this.filePdf == null) ? AB_EMPTY_STRING : this.filePdf;
|
|
}
|
|
|
|
public void setFilePdf(String filePdf) {
|
|
this.filePdf = filePdf;
|
|
}
|
|
|
|
public Date getDataScadenzaMDa() {
|
|
return this.dataScadenzaMDa;
|
|
}
|
|
|
|
public void setDataScadenzaMDa(Date dataScadenzaMDa) {
|
|
this.dataScadenzaMDa = dataScadenzaMDa;
|
|
}
|
|
|
|
public Date getDataScadenzaMA() {
|
|
return this.dataScadenzaMA;
|
|
}
|
|
|
|
public void setDataScadenzaMA(Date dataScadenzaMA) {
|
|
this.dataScadenzaMA = dataScadenzaMA;
|
|
}
|
|
|
|
public long getFlgDaEstrarre() {
|
|
return this.flgDaEstrarre;
|
|
}
|
|
|
|
public void setFlgDaEstrarre(long flgDaEstrarre) {
|
|
this.flgDaEstrarre = flgDaEstrarre;
|
|
}
|
|
|
|
public long getFlgAccorpaScadenze() {
|
|
return this.flgAccorpaScadenze;
|
|
}
|
|
|
|
public void setFlgAccorpaScadenze(long flgAccorpaScadenze) {
|
|
this.flgAccorpaScadenze = flgAccorpaScadenze;
|
|
}
|
|
|
|
public long getId_clifor() {
|
|
return this.id_clifor;
|
|
}
|
|
|
|
public void setId_clifor(long id_clifor) {
|
|
this.id_clifor = id_clifor;
|
|
setClifor(null);
|
|
}
|
|
|
|
public Clifor getClifor() {
|
|
this.clifor = (Clifor)getSecondaryObject(this.clifor, Clifor.class, getId_clifor());
|
|
return this.clifor;
|
|
}
|
|
|
|
public void setClifor(Clifor clifor) {
|
|
this.clifor = clifor;
|
|
}
|
|
|
|
public long getFlgAll() {
|
|
return this.flgAll;
|
|
}
|
|
|
|
public void setFlgAll(long flgAll) {
|
|
this.flgAll = flgAll;
|
|
}
|
|
|
|
public String getNumDocumentoDa() {
|
|
return (this.numDocumentoDa == null) ? AB_EMPTY_STRING : this.numDocumentoDa;
|
|
}
|
|
|
|
public void setNumDocumentoDa(String numDocumentoDa) {
|
|
this.numDocumentoDa = numDocumentoDa;
|
|
}
|
|
|
|
public String getNumDocumentoA() {
|
|
return (this.numDocumentoA == null) ? AB_EMPTY_STRING : this.numDocumentoA;
|
|
}
|
|
|
|
public void setNumDocumentoA(String numDocumentoA) {
|
|
this.numDocumentoA = numDocumentoA;
|
|
}
|
|
|
|
public long getFlgDistinta() {
|
|
return this.flgDistinta;
|
|
}
|
|
|
|
public void setFlgDistinta(long flgDistinta) {
|
|
this.flgDistinta = flgDistinta;
|
|
}
|
|
|
|
public Date getDataDistintaRiba() {
|
|
return this.dataDistintaRiba;
|
|
}
|
|
|
|
public void setDataDistintaRiba(Date dataDistintaRiba) {
|
|
this.dataDistintaRiba = dataDistintaRiba;
|
|
}
|
|
|
|
public long getTimestampElaborazione() {
|
|
return this.timestampElaborazione;
|
|
}
|
|
|
|
public void setTimestampElaborazione(long timestampElaborazione) {
|
|
this.timestampElaborazione = timestampElaborazione;
|
|
}
|
|
|
|
public double getMaxDistintaByBanca(long id_banca) {
|
|
double ret = 0.0D;
|
|
while (getVecRiba().hasMoreElements()) {
|
|
Banca row = (Banca)getVecRiba().nextElement();
|
|
if (row.getId_banca() == id_banca) {
|
|
ret = row.getImportoRiba();
|
|
break;
|
|
}
|
|
}
|
|
return ret;
|
|
}
|
|
|
|
public long getFlgSoloRiba() {
|
|
return this.flgSoloRiba;
|
|
}
|
|
|
|
public void setFlgSoloRiba(long flgSoloRiba) {
|
|
this.flgSoloRiba = flgSoloRiba;
|
|
}
|
|
|
|
public Date getDataFatturaDa() {
|
|
return this.dataFatturaDa;
|
|
}
|
|
|
|
public void setDataFatturaDa(Date dataFatturaDa) {
|
|
this.dataFatturaDa = dataFatturaDa;
|
|
}
|
|
|
|
public Date getDataFatturaA() {
|
|
return this.dataFatturaA;
|
|
}
|
|
|
|
public void setDataFatturaA(Date dataFatturaA) {
|
|
this.dataFatturaA = dataFatturaA;
|
|
}
|
|
|
|
public long getFlgGestioneDistinta() {
|
|
return this.flgGestioneDistinta;
|
|
}
|
|
|
|
public void setFlgGestioneDistinta(long flgGestioneDistinta) {
|
|
this.flgGestioneDistinta = flgGestioneDistinta;
|
|
}
|
|
|
|
public long getFlgTipoPagamento() {
|
|
return this.flgTipoPagamento;
|
|
}
|
|
|
|
public void setFlgTipoPagamento(long flgTipoPagamento) {
|
|
this.flgTipoPagamento = flgTipoPagamento;
|
|
}
|
|
|
|
public long getFlgOrderImporto() {
|
|
return this.flgOrderImporto;
|
|
}
|
|
|
|
public void setFlgOrderImporto(long flgOrderImporto) {
|
|
this.flgOrderImporto = flgOrderImporto;
|
|
}
|
|
|
|
public Vectumerator<Banca> getVecRiba() {
|
|
return (this.vecRiba == null) ? DBAdapter.AB_EMPTY_VECTUMERATOR : this.vecRiba;
|
|
}
|
|
|
|
public void setVecRiba(Vectumerator<Banca> vecRiba) {
|
|
this.vecRiba = vecRiba;
|
|
}
|
|
|
|
public String getDescrizioneCR() {
|
|
return "da fare..";
|
|
}
|
|
|
|
public double getTotaleRiba() {
|
|
return this.totaleRiba;
|
|
}
|
|
|
|
public void setTotaleRiba(double totaleRiba) {
|
|
this.totaleRiba = totaleRiba;
|
|
}
|
|
}
|